@lesliechan721/aw-plugin-core 0.1.0-beta.6 → 0.1.0-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/aw-capabilities.d.ts +27 -0
  2. package/dist/aw-capabilities.js +117 -0
  3. package/dist/aw-capabilities.js.map +1 -0
  4. package/dist/catalog-file-modes.d.ts +5 -0
  5. package/dist/catalog-file-modes.js +67 -0
  6. package/dist/catalog-file-modes.js.map +1 -0
  7. package/dist/catalog-workspace-resolution.d.ts +3 -0
  8. package/dist/catalog-workspace-resolution.js +34 -0
  9. package/dist/catalog-workspace-resolution.js.map +1 -0
  10. package/dist/generated/plugin-manifest-v3.d.ts +1532 -0
  11. package/dist/generated/{plugin-manifest-v1.js → plugin-manifest-v3.js} +1 -1
  12. package/dist/generated/plugin-manifest-v3.js.map +1 -0
  13. package/dist/index.d.ts +3 -2
  14. package/dist/index.js +2 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/managed-commands.d.ts +167 -0
  17. package/dist/managed-commands.js +463 -0
  18. package/dist/managed-commands.js.map +1 -0
  19. package/dist/manifest-contract.d.ts +3 -6
  20. package/dist/manifest-contract.js +271 -407
  21. package/dist/manifest-contract.js.map +1 -1
  22. package/dist/manifest-type-contract.d.ts +2 -2
  23. package/dist/manifest.d.ts +12 -8
  24. package/dist/manifest.js +18 -7
  25. package/dist/manifest.js.map +1 -1
  26. package/dist/native-runtime/reader-runtime.mjs +34 -0
  27. package/dist/native-runtime/reader.d.mts +6 -0
  28. package/dist/native-runtime/reader.mjs +11 -0
  29. package/dist/native-tools.d.ts +48 -0
  30. package/dist/native-tools.js +192 -0
  31. package/dist/native-tools.js.map +1 -0
  32. package/dist/plugin-authoring-capabilities.d.ts +1 -1
  33. package/dist/plugin-authoring-capabilities.js +133 -26
  34. package/dist/plugin-authoring-capabilities.js.map +1 -1
  35. package/dist/plugin-config.d.ts +47 -0
  36. package/dist/plugin-config.js +1355 -0
  37. package/dist/plugin-config.js.map +1 -0
  38. package/dist/plugin-requirements.d.ts +34 -0
  39. package/dist/plugin-requirements.js +300 -0
  40. package/dist/plugin-requirements.js.map +1 -0
  41. package/dist/plugin-script-contract.d.ts +11 -12
  42. package/dist/plugin-script-contract.js +44 -71
  43. package/dist/plugin-script-contract.js.map +1 -1
  44. package/dist/runtime-config.d.ts +38 -0
  45. package/dist/runtime-config.js +31 -0
  46. package/dist/runtime-config.js.map +1 -0
  47. package/dist/types.d.ts +266 -73
  48. package/dist/workspace.d.ts +37 -9
  49. package/dist/workspace.js +419 -191
  50. package/dist/workspace.js.map +1 -1
  51. package/package.json +16 -6
  52. package/schemas/plugin-manifest-v3.json +2655 -0
  53. package/dist/generated/plugin-manifest-v1.d.ts +0 -368
  54. package/dist/generated/plugin-manifest-v1.js.map +0 -1
  55. package/dist/plugin-release.d.ts +0 -30
  56. package/dist/plugin-release.js +0 -187
  57. package/dist/plugin-release.js.map +0 -1
  58. package/schemas/plugin-manifest-v1.json +0 -329
@@ -1,329 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.agent-workflows.dev/plugin-manifest-v1.json",
4
- "title": "PluginManifestSourceV1",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": ["name", "version", "description", "marketplace"],
8
- "properties": {
9
- "schemaVersion": { "const": 1 },
10
- "name": {
11
- "type": "string",
12
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
13
- },
14
- "version": { "$ref": "#/$defs/semver" },
15
- "description": { "type": "string", "minLength": 1 },
16
- "dependencies": {
17
- "type": "array",
18
- "maxItems": 64,
19
- "uniqueItems": true,
20
- "items": {
21
- "type": "string",
22
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
23
- }
24
- },
25
- "compatibility": { "$ref": "#/$defs/compatibility" },
26
- "skills": { "$ref": "#/$defs/pluginPath" },
27
- "slashCommands": { "$ref": "#/$defs/pluginPath" },
28
- "mcpServers": { "$ref": "#/$defs/pluginPath" },
29
- "apps": { "$ref": "#/$defs/pluginPath" },
30
- "distributions": { "$ref": "#/$defs/distributions" },
31
- "marketplace": { "$ref": "#/$defs/marketplace" },
32
- "interface": { "$ref": "#/$defs/interface" },
33
- "extensions": { "$ref": "#/$defs/extensions" },
34
- "artifacts": { "$ref": "#/$defs/artifacts" },
35
- "buildConfig": { "$ref": "#/$defs/buildConfig" },
36
- "scripts": { "$ref": "#/$defs/scripts" },
37
- "config": { "$ref": "#/$defs/config" }
38
- },
39
- "$defs": {
40
- "semver": {
41
- "type": "string",
42
- "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-((?:0|[1-9][0-9]*|(?:[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))(?:\\.(?:0|[1-9][0-9]*|(?:[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)))*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$"
43
- },
44
- "pluginPath": {
45
- "type": "string",
46
- "pattern": "^\\./"
47
- },
48
- "compatibility": {
49
- "type": "object",
50
- "additionalProperties": false,
51
- "required": ["aw"],
52
- "properties": {
53
- "aw": {
54
- "type": "object",
55
- "additionalProperties": false,
56
- "required": ["minVersion"],
57
- "properties": {
58
- "minVersion": { "$ref": "#/$defs/semver" }
59
- }
60
- }
61
- }
62
- },
63
- "distributions": {
64
- "type": "object",
65
- "additionalProperties": false,
66
- "properties": {
67
- "agentSkills": {
68
- "type": "object",
69
- "additionalProperties": false,
70
- "properties": {
71
- "skills": { "$ref": "#/$defs/pluginPath" }
72
- }
73
- }
74
- }
75
- },
76
- "marketplace": {
77
- "type": "object",
78
- "additionalProperties": false,
79
- "required": ["category", "strict", "policy"],
80
- "properties": {
81
- "category": { "type": "string", "minLength": 1 },
82
- "tags": {
83
- "type": "array",
84
- "items": { "type": "string", "minLength": 1 }
85
- },
86
- "strict": { "type": "boolean" },
87
- "policy": {
88
- "type": "object",
89
- "additionalProperties": false,
90
- "required": ["installation", "authentication"],
91
- "properties": {
92
- "installation": { "enum": ["AVAILABLE", "NOT_AVAILABLE", "INSTALLED_BY_DEFAULT"] },
93
- "authentication": { "enum": ["ON_INSTALL", "ON_USE"] },
94
- "products": {
95
- "type": "array",
96
- "uniqueItems": true,
97
- "items": { "type": "string", "minLength": 1 }
98
- }
99
- }
100
- }
101
- }
102
- },
103
- "stringArray": {
104
- "type": "array",
105
- "items": { "type": "string", "minLength": 1 }
106
- },
107
- "platformOverrides": {
108
- "type": "object",
109
- "additionalProperties": false,
110
- "properties": { "claude": { "type": ["object", "null"] }, "codex": { "type": ["object", "null"] } }
111
- },
112
- "instruction": {
113
- "type": "object",
114
- "additionalProperties": false,
115
- "required": ["name", "title", "content"],
116
- "properties": {
117
- "name": { "type": "string" }, "title": { "type": "string" }, "content": { "type": "string" },
118
- "paths": { "$ref": "#/$defs/stringArray" }, "agentOverrides": { "$ref": "#/$defs/platformOverrides" }
119
- }
120
- },
121
- "permission": {
122
- "type": "object",
123
- "additionalProperties": false,
124
- "required": ["name"],
125
- "properties": {
126
- "name": { "type": "string" }, "allow": { "$ref": "#/$defs/stringArray" },
127
- "ask": { "$ref": "#/$defs/stringArray" }, "deny": { "$ref": "#/$defs/stringArray" },
128
- "agentOverrides": { "$ref": "#/$defs/platformOverrides" }
129
- }
130
- },
131
- "hook": {
132
- "type": "object", "additionalProperties": false, "required": ["event", "command"],
133
- "properties": {
134
- "event": { "type": "string" }, "matcher": { "type": "string" }, "command": { "type": "string" },
135
- "agentOverrides": { "$ref": "#/$defs/platformOverrides" }
136
- }
137
- },
138
- "nativeHook": {
139
- "type": "object", "additionalProperties": false, "required": ["event", "command"],
140
- "properties": { "event": { "type": "string" }, "matcher": { "type": "string" }, "command": { "type": "string" } }
141
- },
142
- "agent": {
143
- "type": "object", "additionalProperties": false, "required": ["name", "description", "prompt"],
144
- "properties": {
145
- "name": { "type": "string" }, "description": { "type": "string" }, "prompt": { "type": "string" },
146
- "tools": { "$ref": "#/$defs/stringArray" }, "agentOverrides": { "$ref": "#/$defs/platformOverrides" }
147
- }
148
- },
149
- "extensions": {
150
- "type": "object", "additionalProperties": false,
151
- "properties": {
152
- "instructions": { "type": "array", "items": { "$ref": "#/$defs/instruction" } },
153
- "permissions": { "type": "array", "items": { "$ref": "#/$defs/permission" } },
154
- "hooks": { "type": "array", "items": { "$ref": "#/$defs/hook" } },
155
- "nativeHooks": {
156
- "type": "object", "additionalProperties": false,
157
- "properties": {
158
- "claude": { "type": "array", "items": { "$ref": "#/$defs/nativeHook" } },
159
- "codex": { "type": "array", "items": { "$ref": "#/$defs/nativeHook" } }
160
- }
161
- },
162
- "agents": { "type": "array", "items": { "$ref": "#/$defs/agent" } }
163
- }
164
- },
165
- "importReference": {
166
- "type": "object", "additionalProperties": false, "required": ["plugin", "export"],
167
- "properties": { "plugin": { "type": "string" }, "export": { "type": "string" } }
168
- },
169
- "artifactTarget": {
170
- "type": "object", "additionalProperties": false,
171
- "required": ["id", "scopes", "target", "states", "refreshKeys"],
172
- "properties": {
173
- "id": { "type": "string" }, "platform": { "enum": ["codex", "claude"] },
174
- "distribution": { "const": "agent-skills" }, "scopes": { "type": "array", "items": { "enum": ["user", "project"] } },
175
- "target": { "enum": ["codex.developerInstructionsBlock", "codex.agentRole", "codex.skill", "claude.skill", "agent-skills.skill"] },
176
- "kind": { "enum": ["instruction", "codexRole", "skill"] },
177
- "projectManagedKind": { "enum": ["skill", "mcpServer", "instruction", "permission", "hook", "agent"] },
178
- "states": { "type": "array", "items": { "enum": ["present", "disabled"] } },
179
- "refreshKeys": { "$ref": "#/$defs/stringArray" }, "requiresCodexProjectConfig": { "type": "boolean" },
180
- "roleKey": { "type": "string" }, "skillKey": { "type": "string" }, "sourceDirs": { "$ref": "#/$defs/stringArray" },
181
- "runtimeImports": {
182
- "type": "array", "items": {
183
- "type": "object", "additionalProperties": false, "required": ["name", "plugin", "export"],
184
- "properties": {
185
- "name": { "type": "string" }, "plugin": { "type": "string" }, "export": { "type": "string" },
186
- "resolved": {
187
- "type": "object", "additionalProperties": false,
188
- "required": ["path", "digest", "providerPluginId", "providerVersion", "source"],
189
- "properties": {
190
- "path": { "type": "string" }, "digest": { "type": "string" }, "providerPluginId": { "type": "string" },
191
- "providerVersion": { "$ref": "#/$defs/semver" }, "source": { "type": "string" }
192
- }
193
- }
194
- }
195
- }
196
- }
197
- }
198
- },
199
- "artifacts": {
200
- "type": "object", "additionalProperties": false,
201
- "properties": { "targets": { "type": "array", "items": { "$ref": "#/$defs/artifactTarget" } } }
202
- },
203
- "fileRules": {
204
- "type": "object", "additionalProperties": false,
205
- "required": ["include", "exclude"],
206
- "properties": { "include": { "$ref": "#/$defs/stringArray" }, "exclude": { "$ref": "#/$defs/stringArray" } }
207
- },
208
- "buildConfig": {
209
- "type": "object", "additionalProperties": false,
210
- "properties": {
211
- "cacheable": { "const": true },
212
- "templates": {
213
- "type": "object", "additionalProperties": false, "required": ["vars", "include"],
214
- "properties": {
215
- "vars": { "type": "object", "additionalProperties": { "$ref": "#/$defs/platformTemplateValue" } },
216
- "include": { "$ref": "#/$defs/stringArray" }
217
- }
218
- },
219
- "fileRules": {
220
- "type": "object", "additionalProperties": false,
221
- "properties": { "claude": { "$ref": "#/$defs/fileRules" }, "codex": { "$ref": "#/$defs/fileRules" } }
222
- },
223
- "manifestOverrides": {
224
- "type": "object", "additionalProperties": false,
225
- "properties": {
226
- "claude": {
227
- "type": "object", "additionalProperties": false,
228
- "properties": { "commands": { "type": "string" }, "outputStyles": { "type": "string" }, "lspServers": {}, "userConfig": {}, "channels": {} }
229
- },
230
- "codex": { "type": "object", "maxProperties": 0 }
231
- }
232
- },
233
- "runtimeExports": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["name", "source"], "properties": { "name": { "type": "string" }, "source": { "type": "string" } } } },
234
- "buildImports": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["plugin", "export", "env"], "properties": { "plugin": { "type": "string" }, "export": { "type": "string" }, "env": { "type": "string" } } } },
235
- "skillRuntimeFiles": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["skill", "target"], "properties": { "skill": { "type": "string" }, "target": { "type": "string" }, "platforms": { "type": "array", "items": { "enum": ["codex", "claude"] } }, "distributions": { "type": "array", "items": { "const": "agent-skills" } }, "source": { "type": "string" }, "import": { "$ref": "#/$defs/importReference" } } } },
236
- "generatedSkillRuntimeFiles": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["skill", "target"], "properties": { "skill": { "type": "string" }, "target": { "type": "string" }, "distributions": { "type": "array", "items": { "const": "agent-skills" } } } } }
237
- }
238
- },
239
- "platformTemplateValue": {
240
- "type": "object", "additionalProperties": false, "required": ["claude", "codex"],
241
- "properties": {
242
- "claude": { "anyOf": [{ "type": "string" }, { "type": "boolean" }] },
243
- "codex": { "anyOf": [{ "type": "string" }, { "type": "boolean" }] }
244
- }
245
- },
246
- "scriptEntry": {
247
- "type": "object", "additionalProperties": false, "required": ["runner", "path"],
248
- "properties": { "runner": { "enum": ["node", "sh", "bash", "pwsh", "powershell", "cmd", "auto"] }, "path": { "type": "string" }, "args": { "$ref": "#/$defs/stringArray" } }
249
- },
250
- "lifecycleDefinition": {
251
- "oneOf": [
252
- { "type": "string" },
253
- { "type": "object", "additionalProperties": false, "properties": { "default": { "$ref": "#/$defs/scriptEntry" }, "unix": { "$ref": "#/$defs/scriptEntry" }, "windows": { "$ref": "#/$defs/scriptEntry" }, "linux": { "$ref": "#/$defs/scriptEntry" }, "darwin": { "$ref": "#/$defs/scriptEntry" }, "win32": { "$ref": "#/$defs/scriptEntry" } } }
254
- ]
255
- },
256
- "scripts": {
257
- "type": "object", "additionalProperties": false,
258
- "properties": {
259
- "timeoutMs": { "type": "integer" },
260
- "lifecycle": { "type": "object", "additionalProperties": false, "properties": { "install": { "$ref": "#/$defs/lifecycleDefinition" }, "upgrade": { "$ref": "#/$defs/lifecycleDefinition" }, "uninstall": { "$ref": "#/$defs/lifecycleDefinition" } } },
261
- "helpers": { "type": "object", "additionalProperties": false, "required": ["config"], "properties": { "config": { "type": "string" } } },
262
- "node": { "type": "object", "additionalProperties": false, "properties": { "packageRoot": { "type": "string" }, "build": { "$ref": "#/$defs/scriptEntry" } } },
263
- "artifacts": { "type": "object", "additionalProperties": false, "properties": { "render": { "$ref": "#/$defs/scriptEntry" } } },
264
- "tests": { "type": "object", "additionalProperties": false, "properties": { "node": { "$ref": "#/$defs/stringArray" } } }
265
- }
266
- },
267
- "configField": {
268
- "type": "object", "additionalProperties": false, "required": ["type"],
269
- "properties": {
270
- "type": { "enum": ["string", "number", "boolean", "enum", "file", "directory"] },
271
- "title": { "type": "string" }, "description": { "type": "string" },
272
- "default": { "anyOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }] },
273
- "required": { "type": "boolean" }, "sensitive": { "type": "boolean" }, "values": { "$ref": "#/$defs/stringArray" },
274
- "min": { "type": "number" }, "max": { "type": "number" }
275
- }
276
- },
277
- "config": {
278
- "type": "object", "additionalProperties": false, "required": ["schema"],
279
- "properties": {
280
- "schema": { "type": "object", "additionalProperties": { "$ref": "#/$defs/configField" } },
281
- "presentation": {
282
- "type": "object", "additionalProperties": false,
283
- "properties": {
284
- "groups": {
285
- "type": "array", "items": {
286
- "type": "object", "additionalProperties": false, "required": ["id", "title", "fields"],
287
- "properties": {
288
- "id": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" },
289
- "fields": { "$ref": "#/$defs/stringArray" }, "advanced": { "type": "boolean" }
290
- }
291
- }
292
- },
293
- "fields": {
294
- "type": "object", "additionalProperties": {
295
- "type": "object", "additionalProperties": false,
296
- "properties": {
297
- "valueLabels": { "type": "object", "additionalProperties": { "type": "string" } },
298
- "recommendedValue": { "anyOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }] },
299
- "placeholder": { "type": "string" }, "unit": { "type": "string" }, "advanced": { "type": "boolean" }
300
- }
301
- }
302
- },
303
- "presets": {
304
- "type": "array", "items": {
305
- "type": "object", "additionalProperties": false, "required": ["id", "title", "values"],
306
- "properties": {
307
- "id": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" },
308
- "values": { "type": "object", "additionalProperties": { "anyOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }] } }
309
- }
310
- }
311
- }
312
- }
313
- }
314
- }
315
- },
316
- "interface": {
317
- "type": "object",
318
- "additionalProperties": false,
319
- "properties": {
320
- "displayName": { "type": "string", "minLength": 1 },
321
- "shortDescription": { "type": "string", "minLength": 1 },
322
- "capabilities": {
323
- "type": "array",
324
- "items": { "type": "string", "minLength": 1 }
325
- }
326
- }
327
- }
328
- }
329
- }