-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.js
More file actions
199 lines (198 loc) · 6.19 KB
/
plugins.js
File metadata and controls
199 lines (198 loc) · 6.19 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
// Generated output targets rendered by src/build/build.js.
//
// Paths are relative to source roots:
// - shared: src/shared/*
// - plugin: src/plugins/<name>/*
// - skills: src/skills/<skill>/*
//
// Skills are rendered into skills/ by default. Set skillsOutputDir to another
// generated output root-relative directory for standards with a different layout.
//
// The build copies only files listed here. Keep this as an allowlist so outputs
// cannot accidentally receive source specs, local notes, or metadata for another
// target.
const pluginTargets = [
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "claude",
// Human-readable agent product name exposed to EJS templates.
agentName: "Claude Code",
// Manifest path in the generated output root. build.js updates its version.
// Use null for targets that do not have a generated plugin manifest.
manifest: ".claude-plugin/plugin.json",
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Claude-specific package files copied from src/plugins/claude.
plugin: [
".claude-plugin/plugin.json",
"README.md",
],
// Files copied/rendered for every skill directory. Claude needs the
// SKILL.md body only; Codex UI metadata is intentionally omitted.
skills: [
"SKILL.md.ejs",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "codex",
// Human-readable agent product name exposed to EJS templates.
agentName: "Codex",
// Manifest path in the generated output root. build.js updates its version.
// Use null for targets that do not have a generated plugin manifest.
manifest: ".codex-plugin/plugin.json",
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
"assets/logo.svg",
],
// Codex-specific package files copied from src/plugins/codex.
plugin: [
".codex-plugin/plugin.json",
"README.md",
],
// Files copied/rendered for every skill directory. openai.yaml is Codex
// UI metadata and should not be emitted for other products.
skills: [
"SKILL.md.ejs",
"agents/openai.yaml",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "copilot",
// Human-readable agent product name exposed to EJS templates.
agentName: "GitHub Copilot",
// GitHub Copilot skills do not use a repository-level plugin manifest.
manifest: null,
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Copilot-specific package files copied from src/plugins/copilot.
plugin: [
"README.md",
],
// Copilot consumes SKILL.md files directly.
skills: [
"SKILL.md.ejs",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "junie",
// Human-readable agent product name exposed to EJS templates.
agentName: "Junie",
// Junie skills do not use a repository-level plugin manifest.
manifest: null,
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Junie-specific package files copied from src/plugins/junie.
plugin: [
"README.md",
],
// Junie consumes SKILL.md files directly.
skills: [
"SKILL.md.ejs",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "cline",
// Human-readable agent product name exposed to EJS templates.
agentName: "Cline",
// Cline skills do not use a repository-level plugin manifest.
manifest: null,
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Cline-specific package files copied from src/plugins/cline.
plugin: [
"README.md",
],
// Cline consumes SKILL.md files directly.
skills: [
"SKILL.md.ejs",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "antigravity",
// Human-readable agent product name exposed to EJS templates.
agentName: "Antigravity",
// Manifest path in the generated output root. build.js updates its version.
// Use null for targets that do not have a generated plugin manifest.
manifest: "plugin.json",
includes: {
// Product-neutral files copied into the generated output root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Antigravity-specific package files copied from src/plugins/antigravity.
plugin: [
"plugin.json",
"README.md",
],
// Antigravity plugin bundles can include SKILL.md files under skills/.
skills: [
"SKILL.md.ejs",
],
},
},
{
// Target name must match the output submodule directory and
// plugin-versions.json key.
name: "agentskills",
// Human-readable agent standard name exposed to EJS templates.
agentName: "Agent",
// Agent Skills distributions are skill-only and do not use a repository-level manifest.
manifest: null,
// Agent Skills repositories store each skill directory at repository root.
skillsOutputDir: ".",
includes: {
// Product-neutral files copied into the generated package root.
shared: [
"CONTRIBUTING.md",
"SECURITY.md",
],
// Agent Skills-specific package files copied from src/plugins/agentskills.
plugin: [
"README.md",
],
// Agent Skills-compatible clients consume SKILL.md files directly.
skills: [
"SKILL.md.ejs",
],
},
},
];
module.exports = {
pluginTargets,
};