-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
150 lines (150 loc) · 4.33 KB
/
schema.json
File metadata and controls
150 lines (150 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "PIM Configuration Schema",
"description": "Schema for PIM (Prompt Instruction Manager) configuration files",
"type": "object",
"required": ["version"],
"properties": {
"version": {
"type": "integer",
"description": "Configuration schema version",
"const": 1,
"examples": [1]
},
"sources": {
"type": "array",
"description": "List of sources to fetch files from",
"items": {
"type": "object",
"title": "Source",
"description": "A source repository or directory",
"required": ["name", "url"],
"properties": {
"name": {
"type": "string",
"description": "Unique identifier for the source",
"minLength": 1,
"examples": ["org-prompts", "github-repo", "local-dir"]
},
"url": {
"type": "string",
"description": "Local directory path or git repository URL",
"examples": [
"/path/to/directory",
"./relative/path",
"https://github.com/user/repo.git",
"git@github.com:user/repo.git"
]
}
},
"additionalProperties": false
},
"minItems": 0
},
"targets": {
"type": "array",
"description": "List of installation targets",
"items": {
"type": "object",
"title": "Target",
"description": "A target output location with files to include",
"required": ["name", "output"],
"properties": {
"name": {
"type": "string",
"description": "Target name",
"minLength": 1,
"examples": ["copilot-instructions", "documentation", "combined-prompts"]
},
"output": {
"type": "string",
"description": "Output directory path or file path for concatenation",
"examples": [
"./.github/copilot-instructions.md",
"./output",
"./dist/instructions.txt",
"output/"
]
},
"strategy": {
"type": "string",
"description": "Installation strategy (optional, auto-detected based on output file extension)",
"enum": ["flatten", "preserve", "concat"],
"default": "flatten",
"examples": ["flatten", "preserve", "concat"]
},
"include": {
"type": "array",
"description": "List of files to include in this target",
"items": {
"type": "string",
"title": "Include",
"description": "File path in string format. Use '@source-name/path' for other sources, or just 'path' for working_dir. Multiple files can be comma-separated.",
"examples": [
"file.txt",
"path/to/file.md",
"file1.txt, file2.txt",
"@org-prompts/prompts/code-review.md",
"@source/path/to/file.txt, another/file.txt"
]
},
"minItems": 0
}
},
"additionalProperties": false
},
"minItems": 0
}
},
"additionalProperties": false,
"examples": [
{
"version": 1,
"sources": [
{
"name": "org-prompts",
"url": "https://github.com/myorg/ai-prompts"
},
{
"name": "local-prompts",
"url": "/path/to/prompts"
}
],
"targets": [
{
"name": "copilot-instructions",
"output": ".github/copilot-instructions.md",
"strategy": "concat",
"include": [
"instructions/base.md",
"instructions/coding-style.md",
"@org-prompts/prompts/best-practices.md"
]
},
{
"name": "documentation",
"output": "docs/",
"strategy": "preserve",
"include": [
"docs/guide.md",
"docs/api.md",
"@local-prompts/README.md"
]
}
]
},
{
"version": 1,
"targets": [
{
"name": "prompts",
"output": "output/",
"include": [
"prompts/system.txt",
"prompts/user.txt"
]
}
]
}
]
}