1
- $schema : https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json
1
+ $schema : ' https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json'
2
2
3
3
import :
4
- - path : src/*/context.yaml
4
+ - path : src/**/context.yaml
5
+
6
+ variables :
7
+ name : Context Generator
8
+
9
+ prompts :
10
+ - id : my-local-prompt
11
+ description : My local prompt
12
+ messages :
13
+ - role : user
14
+ content : |
15
+ You are an expert in generating {{name}}. You love your work and always aim for clean, efficient, and
16
+ well-structured PHP code, focusing on detail and best practices.
5
17
6
18
documents :
7
- - description : " Context Generator Project Structure"
8
- outputPath : " project-structure.md"
19
+ - description : ' Project structure overview'
20
+ outputPath : project-structure.md
21
+ overwrite : true
9
22
sources :
10
23
- type : tree
11
24
sourcePaths :
12
25
- src
13
26
showCharCount : true
14
27
showSize : true
15
- dirContext :
16
- " src " : " Root directory containing all Context Generator source code."
17
- " src/ConfigLoader " : " Configuration loading system that reads, parses, and validates config files in JSON, PHP, and YAML formats."
18
- " src/Console " : " Command-line interface components providing user interaction through commands."
19
- " src/Document " : " Document definition and compilation system that transforms source content into output files."
20
- " src/Fetcher " : " Content fetching interfaces and registry for retrieving data from various sources."
21
- " src/Lib " : " Utility libraries providing supporting functionality for the core components."
22
- " src/Modifier " : " Content transformation system for filtering, formatting, and sanitizing source content."
23
- " src/Source " : " Source implementations for various content locations (files, URLs, GitHub, etc.)."
24
- " src/Source/Composer " : " Composer integration for accessing package dependencies."
25
- " src/Source/File " : " Local filesystem source implementation."
26
- " src/Source/GitDiff " : " Git diff source for accessing changes in repositories."
27
- " src/Source/Github " : " GitHub API integration for remote repository access."
28
- " src/Source/Text " : " Text source for embedding custom content."
29
- " src/Source/Tree " : " Directory structure visualization source."
30
- " src/Source/Url " : " Web URL source for retrieving online content."
31
- " src/Lib/Content " : " Content building and rendering system for structured document output."
32
- " src/Lib/Finder " : " File discovery components for locating content across different storage types."
33
- " src/Lib/GithubClient " : " GitHub API client for repository access."
34
- " src/Lib/Html " : " HTML processing utilities for web content."
35
- " src/Lib/HttpClient " : " HTTP client abstraction for web requests."
36
- " src/Lib/Logger " : " Logging system for operation visibility."
37
- " src/Lib/PathFilter " : " Path filtering utilities for including/excluding content by pattern."
38
- " src/Lib/Sanitizer " : " Content sanitization for removing sensitive information."
39
- " src/Lib/TreeBuilder " : " Tree visualization generation for directory structures."
40
- " src/Lib/Variable " : " Variable substitution system for configuration values."
41
- description : >-
42
- A hierarchical visualization of the Context Generator project structure, showing
43
- the main directories and files with explanations of their purpose. This provides
44
- a high-level overview of the project organization and helps understand the
45
- relationships between different components.
46
28
47
29
- description : Core Interfaces
48
30
outputPath : core/interfaces.md
@@ -51,17 +33,6 @@ documents:
51
33
sourcePaths : src
52
34
filePattern :
53
35
- ' *Interface.php'
54
- - ' SourceInterface.php'
55
- - ' SourceModifierInterface.php'
56
- - ' FilesInterface.php'
57
- showTreeView : true
58
-
59
- - description : Config parser
60
- outputPath : core/config-parser.md
61
- sources :
62
- - type : file
63
- sourcePaths : src/ConfigLoader
64
- filePattern : ' *.php'
65
36
showTreeView : true
66
37
67
38
- description : " Changes in the Project"
0 commit comments