claude-flow 3.77.2 → 3.78.1

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 (38) hide show
  1. package/.claude/helpers/learning-loop.cjs +21 -5
  2. package/README.md +1 -1
  3. package/node_modules/@claude-flow/mcp/dist/transport/http.d.ts +7 -0
  4. package/node_modules/@claude-flow/mcp/dist/transport/http.d.ts.map +1 -1
  5. package/node_modules/@claude-flow/mcp/dist/transport/http.js +33 -29
  6. package/node_modules/@claude-flow/mcp/dist/transport/http.js.map +1 -1
  7. package/node_modules/@claude-flow/mcp/package.json +1 -1
  8. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.d.ts +4 -0
  9. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.d.ts.map +1 -1
  10. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.js +5 -1
  11. package/node_modules/@claude-flow/plugin-agent-federation/dist/transport/midstream-aware-loader.js.map +1 -1
  12. package/node_modules/@claude-flow/security/dist/input-validator.d.ts +2 -2
  13. package/node_modules/@claude-flow/security/dist/input-validator.d.ts.map +1 -1
  14. package/node_modules/@claude-flow/security/dist/input-validator.js +4 -2
  15. package/node_modules/@claude-flow/security/dist/input-validator.js.map +1 -1
  16. package/node_modules/@claude-flow/security/package.json +1 -1
  17. package/package.json +7 -7
  18. package/v3/@claude-flow/cli/README.md +202 -81
  19. package/v3/@claude-flow/cli/catalog-manifest.json +6 -6
  20. package/v3/@claude-flow/cli/dist/src/init/executor.js +10 -4
  21. package/v3/@claude-flow/cli/dist/src/init/helper-companions.d.ts +1 -1
  22. package/v3/@claude-flow/cli/dist/src/init/helper-companions.js +25 -3
  23. package/v3/@claude-flow/cli/dist/src/init/helper-refresh.js +7 -0
  24. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentbbs-federation.d.ts +5 -0
  25. package/v3/@claude-flow/cli/dist/src/mcp-tools/agentbbs-federation.js +36 -5
  26. package/v3/@claude-flow/cli/dist/src/mcp-tools/capability-brain.js +9 -2
  27. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +37 -1
  28. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +4 -2
  29. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +239 -26
  30. package/v3/@claude-flow/cli/dist/src/memory/verified-outcomes.d.ts +10 -1
  31. package/v3/@claude-flow/cli/dist/src/memory/verified-outcomes.js +37 -3
  32. package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +105 -561
  33. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +168 -729
  34. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.js +1 -1
  35. package/v3/@claude-flow/cli/package.json +9 -9
  36. package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +10 -0
  37. package/v3/@claude-flow/shared/dist/mcp/transport/http.js +44 -6
  38. package/v3/@claude-flow/shared/package.json +1 -1
@@ -26,809 +26,248 @@ export declare const LIMITS: Readonly<{
26
26
  entries: 4096;
27
27
  note: 512;
28
28
  }>;
29
- export declare const commandKindSchema: z.ZodEnum<["prompt", "query", "mutation", "workflow", "help"]>;
30
- export declare const modDispositionSchema: z.ZodEnum<["view", "dispatch", "delegate", "legacy"]>;
31
- export declare const commandDefinitionSchema: z.ZodEffects<z.ZodObject<{
29
+ export declare const commandKindSchema: z.ZodEnum<{
30
+ prompt: "prompt";
31
+ query: "query";
32
+ mutation: "mutation";
33
+ workflow: "workflow";
34
+ help: "help";
35
+ }>;
36
+ export declare const modDispositionSchema: z.ZodEnum<{
37
+ legacy: "legacy";
38
+ view: "view";
39
+ dispatch: "dispatch";
40
+ delegate: "delegate";
41
+ }>;
42
+ export declare const commandDefinitionSchema: z.ZodObject<{
32
43
  schemaVersion: z.ZodLiteral<1>;
33
44
  id: z.ZodString;
34
45
  revision: z.ZodNumber;
35
46
  ownerPlugin: z.ZodString;
36
- legacyNames: z.ZodArray<z.ZodString, "many">;
37
- modNames: z.ZodArray<z.ZodString, "many">;
38
- kind: z.ZodEnum<["prompt", "query", "mutation", "workflow", "help"]>;
39
- argumentsSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
47
+ legacyNames: z.ZodArray<z.ZodString>;
48
+ modNames: z.ZodArray<z.ZodString>;
49
+ kind: z.ZodEnum<{
50
+ prompt: "prompt";
51
+ query: "query";
52
+ mutation: "mutation";
53
+ workflow: "workflow";
54
+ help: "help";
55
+ }>;
56
+ argumentsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
40
57
  resultSchemaId: z.ZodOptional<z.ZodString>;
41
58
  prompt: z.ZodOptional<z.ZodObject<{
42
59
  path: z.ZodString;
43
60
  sha256: z.ZodString;
44
- substitution: z.ZodEnum<["$ARGUMENTS", "positional", "none"]>;
45
- }, "strict", z.ZodTypeAny, {
46
- path: string;
47
- sha256: string;
48
- substitution: "none" | "$ARGUMENTS" | "positional";
49
- }, {
50
- path: string;
51
- sha256: string;
52
- substitution: "none" | "$ARGUMENTS" | "positional";
53
- }>>;
61
+ substitution: z.ZodEnum<{
62
+ none: "none";
63
+ $ARGUMENTS: "$ARGUMENTS";
64
+ positional: "positional";
65
+ }>;
66
+ }, z.core.$strict>>;
54
67
  bindingId: z.ZodOptional<z.ZodString>;
55
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
56
- requiredHostFeatures: z.ZodArray<z.ZodString, "many">;
57
- disposition: z.ZodEnum<["view", "dispatch", "delegate", "legacy"]>;
68
+ requiredCapabilities: z.ZodArray<z.ZodString>;
69
+ requiredHostFeatures: z.ZodArray<z.ZodString>;
70
+ disposition: z.ZodEnum<{
71
+ legacy: "legacy";
72
+ view: "view";
73
+ dispatch: "dispatch";
74
+ delegate: "delegate";
75
+ }>;
58
76
  viewId: z.ZodOptional<z.ZodString>;
59
- modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
77
+ modelVisibility: z.ZodEnum<{
78
+ "same-as-legacy": "same-as-legacy";
79
+ "explicit-summary": "explicit-summary";
80
+ }>;
60
81
  source: z.ZodObject<{
61
82
  repository: z.ZodString;
62
83
  commit: z.ZodString;
63
84
  path: z.ZodString;
64
- }, "strict", z.ZodTypeAny, {
65
- path: string;
66
- commit: string;
67
- repository: string;
68
- }, {
69
- path: string;
70
- commit: string;
71
- repository: string;
72
- }>;
73
- }, "strict", z.ZodTypeAny, {
74
- id: string;
75
- source: {
76
- path: string;
77
- commit: string;
78
- repository: string;
79
- };
80
- schemaVersion: 1;
81
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
82
- revision: number;
83
- ownerPlugin: string;
84
- legacyNames: string[];
85
- modNames: string[];
86
- argumentsSchema: Record<string, unknown>;
87
- requiredCapabilities: string[];
88
- requiredHostFeatures: string[];
89
- disposition: "legacy" | "dispatch" | "view" | "delegate";
90
- modelVisibility: "same-as-legacy" | "explicit-summary";
91
- prompt?: {
92
- path: string;
93
- sha256: string;
94
- substitution: "none" | "$ARGUMENTS" | "positional";
95
- } | undefined;
96
- resultSchemaId?: string | undefined;
97
- bindingId?: string | undefined;
98
- viewId?: string | undefined;
99
- }, {
100
- id: string;
101
- source: {
102
- path: string;
103
- commit: string;
104
- repository: string;
105
- };
106
- schemaVersion: 1;
107
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
108
- revision: number;
109
- ownerPlugin: string;
110
- legacyNames: string[];
111
- modNames: string[];
112
- argumentsSchema: Record<string, unknown>;
113
- requiredCapabilities: string[];
114
- requiredHostFeatures: string[];
115
- disposition: "legacy" | "dispatch" | "view" | "delegate";
116
- modelVisibility: "same-as-legacy" | "explicit-summary";
117
- prompt?: {
118
- path: string;
119
- sha256: string;
120
- substitution: "none" | "$ARGUMENTS" | "positional";
121
- } | undefined;
122
- resultSchemaId?: string | undefined;
123
- bindingId?: string | undefined;
124
- viewId?: string | undefined;
125
- }>, {
126
- id: string;
127
- source: {
128
- path: string;
129
- commit: string;
130
- repository: string;
131
- };
132
- schemaVersion: 1;
133
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
134
- revision: number;
135
- ownerPlugin: string;
136
- legacyNames: string[];
137
- modNames: string[];
138
- argumentsSchema: Record<string, unknown>;
139
- requiredCapabilities: string[];
140
- requiredHostFeatures: string[];
141
- disposition: "legacy" | "dispatch" | "view" | "delegate";
142
- modelVisibility: "same-as-legacy" | "explicit-summary";
143
- prompt?: {
144
- path: string;
145
- sha256: string;
146
- substitution: "none" | "$ARGUMENTS" | "positional";
147
- } | undefined;
148
- resultSchemaId?: string | undefined;
149
- bindingId?: string | undefined;
150
- viewId?: string | undefined;
151
- }, {
152
- id: string;
153
- source: {
154
- path: string;
155
- commit: string;
156
- repository: string;
157
- };
158
- schemaVersion: 1;
159
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
160
- revision: number;
161
- ownerPlugin: string;
162
- legacyNames: string[];
163
- modNames: string[];
164
- argumentsSchema: Record<string, unknown>;
165
- requiredCapabilities: string[];
166
- requiredHostFeatures: string[];
167
- disposition: "legacy" | "dispatch" | "view" | "delegate";
168
- modelVisibility: "same-as-legacy" | "explicit-summary";
169
- prompt?: {
170
- path: string;
171
- sha256: string;
172
- substitution: "none" | "$ARGUMENTS" | "positional";
173
- } | undefined;
174
- resultSchemaId?: string | undefined;
175
- bindingId?: string | undefined;
176
- viewId?: string | undefined;
177
- }>;
85
+ }, z.core.$strict>;
86
+ }, z.core.$strict>;
178
87
  export type CommandKind = z.infer<typeof commandKindSchema>;
179
88
  export type ModDisposition = z.infer<typeof modDispositionSchema>;
180
89
  export type CommandDefinition = z.infer<typeof commandDefinitionSchema>;
181
90
  /** Where an inventoried command came from. */
182
- export declare const deliveryChannelSchema: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
91
+ export declare const deliveryChannelSchema: z.ZodEnum<{
92
+ "repo-project-commands": "repo-project-commands";
93
+ "cli-init-template": "cli-init-template";
94
+ "marketplace-plugin": "marketplace-plugin";
95
+ "source-plugin": "source-plugin";
96
+ "mod-registration": "mod-registration";
97
+ }>;
183
98
  export declare const inventorySourceSchema: z.ZodObject<{
184
- channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
99
+ channel: z.ZodEnum<{
100
+ "repo-project-commands": "repo-project-commands";
101
+ "cli-init-template": "cli-init-template";
102
+ "marketplace-plugin": "marketplace-plugin";
103
+ "source-plugin": "source-plugin";
104
+ "mod-registration": "mod-registration";
105
+ }>;
185
106
  package: z.ZodString;
186
107
  sourcePath: z.ZodString;
187
108
  digest: z.ZodString;
188
109
  observedInvocation: z.ZodString;
189
- binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
110
+ binding: z.ZodEnum<{
111
+ "markdown-loader": "markdown-loader";
112
+ "mod-register": "mod-register";
113
+ "mod-middleware-on-markdown": "mod-middleware-on-markdown";
114
+ }>;
190
115
  initCategory: z.ZodOptional<z.ZodString>;
191
- shippedIn: z.ZodArray<z.ZodString, "many">;
192
- }, "strict", z.ZodTypeAny, {
193
- digest: string;
194
- sourcePath: string;
195
- package: string;
196
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
197
- observedInvocation: string;
198
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
199
- shippedIn: string[];
200
- initCategory?: string | undefined;
201
- }, {
202
- digest: string;
203
- sourcePath: string;
204
- package: string;
205
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
206
- observedInvocation: string;
207
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
208
- shippedIn: string[];
209
- initCategory?: string | undefined;
210
- }>;
116
+ shippedIn: z.ZodArray<z.ZodString>;
117
+ }, z.core.$strict>;
211
118
  export declare const catalogEntrySchema: z.ZodObject<{
212
- definition: z.ZodEffects<z.ZodObject<{
119
+ definition: z.ZodObject<{
213
120
  schemaVersion: z.ZodLiteral<1>;
214
121
  id: z.ZodString;
215
122
  revision: z.ZodNumber;
216
123
  ownerPlugin: z.ZodString;
217
- legacyNames: z.ZodArray<z.ZodString, "many">;
218
- modNames: z.ZodArray<z.ZodString, "many">;
219
- kind: z.ZodEnum<["prompt", "query", "mutation", "workflow", "help"]>;
220
- argumentsSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
124
+ legacyNames: z.ZodArray<z.ZodString>;
125
+ modNames: z.ZodArray<z.ZodString>;
126
+ kind: z.ZodEnum<{
127
+ prompt: "prompt";
128
+ query: "query";
129
+ mutation: "mutation";
130
+ workflow: "workflow";
131
+ help: "help";
132
+ }>;
133
+ argumentsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
221
134
  resultSchemaId: z.ZodOptional<z.ZodString>;
222
135
  prompt: z.ZodOptional<z.ZodObject<{
223
136
  path: z.ZodString;
224
137
  sha256: z.ZodString;
225
- substitution: z.ZodEnum<["$ARGUMENTS", "positional", "none"]>;
226
- }, "strict", z.ZodTypeAny, {
227
- path: string;
228
- sha256: string;
229
- substitution: "none" | "$ARGUMENTS" | "positional";
230
- }, {
231
- path: string;
232
- sha256: string;
233
- substitution: "none" | "$ARGUMENTS" | "positional";
234
- }>>;
138
+ substitution: z.ZodEnum<{
139
+ none: "none";
140
+ $ARGUMENTS: "$ARGUMENTS";
141
+ positional: "positional";
142
+ }>;
143
+ }, z.core.$strict>>;
235
144
  bindingId: z.ZodOptional<z.ZodString>;
236
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
237
- requiredHostFeatures: z.ZodArray<z.ZodString, "many">;
238
- disposition: z.ZodEnum<["view", "dispatch", "delegate", "legacy"]>;
145
+ requiredCapabilities: z.ZodArray<z.ZodString>;
146
+ requiredHostFeatures: z.ZodArray<z.ZodString>;
147
+ disposition: z.ZodEnum<{
148
+ legacy: "legacy";
149
+ view: "view";
150
+ dispatch: "dispatch";
151
+ delegate: "delegate";
152
+ }>;
239
153
  viewId: z.ZodOptional<z.ZodString>;
240
- modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
154
+ modelVisibility: z.ZodEnum<{
155
+ "same-as-legacy": "same-as-legacy";
156
+ "explicit-summary": "explicit-summary";
157
+ }>;
241
158
  source: z.ZodObject<{
242
159
  repository: z.ZodString;
243
160
  commit: z.ZodString;
244
161
  path: z.ZodString;
245
- }, "strict", z.ZodTypeAny, {
246
- path: string;
247
- commit: string;
248
- repository: string;
249
- }, {
250
- path: string;
251
- commit: string;
252
- repository: string;
253
- }>;
254
- }, "strict", z.ZodTypeAny, {
255
- id: string;
256
- source: {
257
- path: string;
258
- commit: string;
259
- repository: string;
260
- };
261
- schemaVersion: 1;
262
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
263
- revision: number;
264
- ownerPlugin: string;
265
- legacyNames: string[];
266
- modNames: string[];
267
- argumentsSchema: Record<string, unknown>;
268
- requiredCapabilities: string[];
269
- requiredHostFeatures: string[];
270
- disposition: "legacy" | "dispatch" | "view" | "delegate";
271
- modelVisibility: "same-as-legacy" | "explicit-summary";
272
- prompt?: {
273
- path: string;
274
- sha256: string;
275
- substitution: "none" | "$ARGUMENTS" | "positional";
276
- } | undefined;
277
- resultSchemaId?: string | undefined;
278
- bindingId?: string | undefined;
279
- viewId?: string | undefined;
280
- }, {
281
- id: string;
282
- source: {
283
- path: string;
284
- commit: string;
285
- repository: string;
286
- };
287
- schemaVersion: 1;
288
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
289
- revision: number;
290
- ownerPlugin: string;
291
- legacyNames: string[];
292
- modNames: string[];
293
- argumentsSchema: Record<string, unknown>;
294
- requiredCapabilities: string[];
295
- requiredHostFeatures: string[];
296
- disposition: "legacy" | "dispatch" | "view" | "delegate";
297
- modelVisibility: "same-as-legacy" | "explicit-summary";
298
- prompt?: {
299
- path: string;
300
- sha256: string;
301
- substitution: "none" | "$ARGUMENTS" | "positional";
302
- } | undefined;
303
- resultSchemaId?: string | undefined;
304
- bindingId?: string | undefined;
305
- viewId?: string | undefined;
306
- }>, {
307
- id: string;
308
- source: {
309
- path: string;
310
- commit: string;
311
- repository: string;
312
- };
313
- schemaVersion: 1;
314
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
315
- revision: number;
316
- ownerPlugin: string;
317
- legacyNames: string[];
318
- modNames: string[];
319
- argumentsSchema: Record<string, unknown>;
320
- requiredCapabilities: string[];
321
- requiredHostFeatures: string[];
322
- disposition: "legacy" | "dispatch" | "view" | "delegate";
323
- modelVisibility: "same-as-legacy" | "explicit-summary";
324
- prompt?: {
325
- path: string;
326
- sha256: string;
327
- substitution: "none" | "$ARGUMENTS" | "positional";
328
- } | undefined;
329
- resultSchemaId?: string | undefined;
330
- bindingId?: string | undefined;
331
- viewId?: string | undefined;
332
- }, {
333
- id: string;
334
- source: {
335
- path: string;
336
- commit: string;
337
- repository: string;
338
- };
339
- schemaVersion: 1;
340
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
341
- revision: number;
342
- ownerPlugin: string;
343
- legacyNames: string[];
344
- modNames: string[];
345
- argumentsSchema: Record<string, unknown>;
346
- requiredCapabilities: string[];
347
- requiredHostFeatures: string[];
348
- disposition: "legacy" | "dispatch" | "view" | "delegate";
349
- modelVisibility: "same-as-legacy" | "explicit-summary";
350
- prompt?: {
351
- path: string;
352
- sha256: string;
353
- substitution: "none" | "$ARGUMENTS" | "positional";
354
- } | undefined;
355
- resultSchemaId?: string | undefined;
356
- bindingId?: string | undefined;
357
- viewId?: string | undefined;
162
+ }, z.core.$strict>;
163
+ }, z.core.$strict>;
164
+ status: z.ZodEnum<{
165
+ shipped: "shipped";
166
+ "source-only": "source-only";
167
+ documentation: "documentation";
358
168
  }>;
359
- status: z.ZodEnum<["shipped", "source-only", "documentation"]>;
360
169
  divergent: z.ZodBoolean;
361
170
  sources: z.ZodArray<z.ZodObject<{
362
- channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
171
+ channel: z.ZodEnum<{
172
+ "repo-project-commands": "repo-project-commands";
173
+ "cli-init-template": "cli-init-template";
174
+ "marketplace-plugin": "marketplace-plugin";
175
+ "source-plugin": "source-plugin";
176
+ "mod-registration": "mod-registration";
177
+ }>;
363
178
  package: z.ZodString;
364
179
  sourcePath: z.ZodString;
365
180
  digest: z.ZodString;
366
181
  observedInvocation: z.ZodString;
367
- binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
182
+ binding: z.ZodEnum<{
183
+ "markdown-loader": "markdown-loader";
184
+ "mod-register": "mod-register";
185
+ "mod-middleware-on-markdown": "mod-middleware-on-markdown";
186
+ }>;
368
187
  initCategory: z.ZodOptional<z.ZodString>;
369
- shippedIn: z.ZodArray<z.ZodString, "many">;
370
- }, "strict", z.ZodTypeAny, {
371
- digest: string;
372
- sourcePath: string;
373
- package: string;
374
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
375
- observedInvocation: string;
376
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
377
- shippedIn: string[];
378
- initCategory?: string | undefined;
379
- }, {
380
- digest: string;
381
- sourcePath: string;
382
- package: string;
383
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
384
- observedInvocation: string;
385
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
386
- shippedIn: string[];
387
- initCategory?: string | undefined;
388
- }>, "many">;
389
- notes: z.ZodArray<z.ZodString, "many">;
390
- }, "strict", z.ZodTypeAny, {
391
- sources: {
392
- digest: string;
393
- sourcePath: string;
394
- package: string;
395
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
396
- observedInvocation: string;
397
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
398
- shippedIn: string[];
399
- initCategory?: string | undefined;
400
- }[];
401
- status: "documentation" | "shipped" | "source-only";
402
- divergent: boolean;
403
- definition: {
404
- id: string;
405
- source: {
406
- path: string;
407
- commit: string;
408
- repository: string;
409
- };
410
- schemaVersion: 1;
411
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
412
- revision: number;
413
- ownerPlugin: string;
414
- legacyNames: string[];
415
- modNames: string[];
416
- argumentsSchema: Record<string, unknown>;
417
- requiredCapabilities: string[];
418
- requiredHostFeatures: string[];
419
- disposition: "legacy" | "dispatch" | "view" | "delegate";
420
- modelVisibility: "same-as-legacy" | "explicit-summary";
421
- prompt?: {
422
- path: string;
423
- sha256: string;
424
- substitution: "none" | "$ARGUMENTS" | "positional";
425
- } | undefined;
426
- resultSchemaId?: string | undefined;
427
- bindingId?: string | undefined;
428
- viewId?: string | undefined;
429
- };
430
- notes: string[];
431
- }, {
432
- sources: {
433
- digest: string;
434
- sourcePath: string;
435
- package: string;
436
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
437
- observedInvocation: string;
438
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
439
- shippedIn: string[];
440
- initCategory?: string | undefined;
441
- }[];
442
- status: "documentation" | "shipped" | "source-only";
443
- divergent: boolean;
444
- definition: {
445
- id: string;
446
- source: {
447
- path: string;
448
- commit: string;
449
- repository: string;
450
- };
451
- schemaVersion: 1;
452
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
453
- revision: number;
454
- ownerPlugin: string;
455
- legacyNames: string[];
456
- modNames: string[];
457
- argumentsSchema: Record<string, unknown>;
458
- requiredCapabilities: string[];
459
- requiredHostFeatures: string[];
460
- disposition: "legacy" | "dispatch" | "view" | "delegate";
461
- modelVisibility: "same-as-legacy" | "explicit-summary";
462
- prompt?: {
463
- path: string;
464
- sha256: string;
465
- substitution: "none" | "$ARGUMENTS" | "positional";
466
- } | undefined;
467
- resultSchemaId?: string | undefined;
468
- bindingId?: string | undefined;
469
- viewId?: string | undefined;
470
- };
471
- notes: string[];
472
- }>;
188
+ shippedIn: z.ZodArray<z.ZodString>;
189
+ }, z.core.$strict>>;
190
+ notes: z.ZodArray<z.ZodString>;
191
+ }, z.core.$strict>;
473
192
  export declare const commandCatalogSchema: z.ZodObject<{
474
193
  contractVersion: z.ZodLiteral<"ruflo.command-catalog/1">;
475
194
  sourceCommit: z.ZodString;
476
195
  sourceDigest: z.ZodString;
477
196
  entries: z.ZodArray<z.ZodObject<{
478
- definition: z.ZodEffects<z.ZodObject<{
197
+ definition: z.ZodObject<{
479
198
  schemaVersion: z.ZodLiteral<1>;
480
199
  id: z.ZodString;
481
200
  revision: z.ZodNumber;
482
201
  ownerPlugin: z.ZodString;
483
- legacyNames: z.ZodArray<z.ZodString, "many">;
484
- modNames: z.ZodArray<z.ZodString, "many">;
485
- kind: z.ZodEnum<["prompt", "query", "mutation", "workflow", "help"]>;
486
- argumentsSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
202
+ legacyNames: z.ZodArray<z.ZodString>;
203
+ modNames: z.ZodArray<z.ZodString>;
204
+ kind: z.ZodEnum<{
205
+ prompt: "prompt";
206
+ query: "query";
207
+ mutation: "mutation";
208
+ workflow: "workflow";
209
+ help: "help";
210
+ }>;
211
+ argumentsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
487
212
  resultSchemaId: z.ZodOptional<z.ZodString>;
488
213
  prompt: z.ZodOptional<z.ZodObject<{
489
214
  path: z.ZodString;
490
215
  sha256: z.ZodString;
491
- substitution: z.ZodEnum<["$ARGUMENTS", "positional", "none"]>;
492
- }, "strict", z.ZodTypeAny, {
493
- path: string;
494
- sha256: string;
495
- substitution: "none" | "$ARGUMENTS" | "positional";
496
- }, {
497
- path: string;
498
- sha256: string;
499
- substitution: "none" | "$ARGUMENTS" | "positional";
500
- }>>;
216
+ substitution: z.ZodEnum<{
217
+ none: "none";
218
+ $ARGUMENTS: "$ARGUMENTS";
219
+ positional: "positional";
220
+ }>;
221
+ }, z.core.$strict>>;
501
222
  bindingId: z.ZodOptional<z.ZodString>;
502
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
503
- requiredHostFeatures: z.ZodArray<z.ZodString, "many">;
504
- disposition: z.ZodEnum<["view", "dispatch", "delegate", "legacy"]>;
223
+ requiredCapabilities: z.ZodArray<z.ZodString>;
224
+ requiredHostFeatures: z.ZodArray<z.ZodString>;
225
+ disposition: z.ZodEnum<{
226
+ legacy: "legacy";
227
+ view: "view";
228
+ dispatch: "dispatch";
229
+ delegate: "delegate";
230
+ }>;
505
231
  viewId: z.ZodOptional<z.ZodString>;
506
- modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
232
+ modelVisibility: z.ZodEnum<{
233
+ "same-as-legacy": "same-as-legacy";
234
+ "explicit-summary": "explicit-summary";
235
+ }>;
507
236
  source: z.ZodObject<{
508
237
  repository: z.ZodString;
509
238
  commit: z.ZodString;
510
239
  path: z.ZodString;
511
- }, "strict", z.ZodTypeAny, {
512
- path: string;
513
- commit: string;
514
- repository: string;
515
- }, {
516
- path: string;
517
- commit: string;
518
- repository: string;
519
- }>;
520
- }, "strict", z.ZodTypeAny, {
521
- id: string;
522
- source: {
523
- path: string;
524
- commit: string;
525
- repository: string;
526
- };
527
- schemaVersion: 1;
528
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
529
- revision: number;
530
- ownerPlugin: string;
531
- legacyNames: string[];
532
- modNames: string[];
533
- argumentsSchema: Record<string, unknown>;
534
- requiredCapabilities: string[];
535
- requiredHostFeatures: string[];
536
- disposition: "legacy" | "dispatch" | "view" | "delegate";
537
- modelVisibility: "same-as-legacy" | "explicit-summary";
538
- prompt?: {
539
- path: string;
540
- sha256: string;
541
- substitution: "none" | "$ARGUMENTS" | "positional";
542
- } | undefined;
543
- resultSchemaId?: string | undefined;
544
- bindingId?: string | undefined;
545
- viewId?: string | undefined;
546
- }, {
547
- id: string;
548
- source: {
549
- path: string;
550
- commit: string;
551
- repository: string;
552
- };
553
- schemaVersion: 1;
554
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
555
- revision: number;
556
- ownerPlugin: string;
557
- legacyNames: string[];
558
- modNames: string[];
559
- argumentsSchema: Record<string, unknown>;
560
- requiredCapabilities: string[];
561
- requiredHostFeatures: string[];
562
- disposition: "legacy" | "dispatch" | "view" | "delegate";
563
- modelVisibility: "same-as-legacy" | "explicit-summary";
564
- prompt?: {
565
- path: string;
566
- sha256: string;
567
- substitution: "none" | "$ARGUMENTS" | "positional";
568
- } | undefined;
569
- resultSchemaId?: string | undefined;
570
- bindingId?: string | undefined;
571
- viewId?: string | undefined;
572
- }>, {
573
- id: string;
574
- source: {
575
- path: string;
576
- commit: string;
577
- repository: string;
578
- };
579
- schemaVersion: 1;
580
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
581
- revision: number;
582
- ownerPlugin: string;
583
- legacyNames: string[];
584
- modNames: string[];
585
- argumentsSchema: Record<string, unknown>;
586
- requiredCapabilities: string[];
587
- requiredHostFeatures: string[];
588
- disposition: "legacy" | "dispatch" | "view" | "delegate";
589
- modelVisibility: "same-as-legacy" | "explicit-summary";
590
- prompt?: {
591
- path: string;
592
- sha256: string;
593
- substitution: "none" | "$ARGUMENTS" | "positional";
594
- } | undefined;
595
- resultSchemaId?: string | undefined;
596
- bindingId?: string | undefined;
597
- viewId?: string | undefined;
598
- }, {
599
- id: string;
600
- source: {
601
- path: string;
602
- commit: string;
603
- repository: string;
604
- };
605
- schemaVersion: 1;
606
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
607
- revision: number;
608
- ownerPlugin: string;
609
- legacyNames: string[];
610
- modNames: string[];
611
- argumentsSchema: Record<string, unknown>;
612
- requiredCapabilities: string[];
613
- requiredHostFeatures: string[];
614
- disposition: "legacy" | "dispatch" | "view" | "delegate";
615
- modelVisibility: "same-as-legacy" | "explicit-summary";
616
- prompt?: {
617
- path: string;
618
- sha256: string;
619
- substitution: "none" | "$ARGUMENTS" | "positional";
620
- } | undefined;
621
- resultSchemaId?: string | undefined;
622
- bindingId?: string | undefined;
623
- viewId?: string | undefined;
240
+ }, z.core.$strict>;
241
+ }, z.core.$strict>;
242
+ status: z.ZodEnum<{
243
+ shipped: "shipped";
244
+ "source-only": "source-only";
245
+ documentation: "documentation";
624
246
  }>;
625
- status: z.ZodEnum<["shipped", "source-only", "documentation"]>;
626
247
  divergent: z.ZodBoolean;
627
248
  sources: z.ZodArray<z.ZodObject<{
628
- channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
249
+ channel: z.ZodEnum<{
250
+ "repo-project-commands": "repo-project-commands";
251
+ "cli-init-template": "cli-init-template";
252
+ "marketplace-plugin": "marketplace-plugin";
253
+ "source-plugin": "source-plugin";
254
+ "mod-registration": "mod-registration";
255
+ }>;
629
256
  package: z.ZodString;
630
257
  sourcePath: z.ZodString;
631
258
  digest: z.ZodString;
632
259
  observedInvocation: z.ZodString;
633
- binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
260
+ binding: z.ZodEnum<{
261
+ "markdown-loader": "markdown-loader";
262
+ "mod-register": "mod-register";
263
+ "mod-middleware-on-markdown": "mod-middleware-on-markdown";
264
+ }>;
634
265
  initCategory: z.ZodOptional<z.ZodString>;
635
- shippedIn: z.ZodArray<z.ZodString, "many">;
636
- }, "strict", z.ZodTypeAny, {
637
- digest: string;
638
- sourcePath: string;
639
- package: string;
640
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
641
- observedInvocation: string;
642
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
643
- shippedIn: string[];
644
- initCategory?: string | undefined;
645
- }, {
646
- digest: string;
647
- sourcePath: string;
648
- package: string;
649
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
650
- observedInvocation: string;
651
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
652
- shippedIn: string[];
653
- initCategory?: string | undefined;
654
- }>, "many">;
655
- notes: z.ZodArray<z.ZodString, "many">;
656
- }, "strict", z.ZodTypeAny, {
657
- sources: {
658
- digest: string;
659
- sourcePath: string;
660
- package: string;
661
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
662
- observedInvocation: string;
663
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
664
- shippedIn: string[];
665
- initCategory?: string | undefined;
666
- }[];
667
- status: "documentation" | "shipped" | "source-only";
668
- divergent: boolean;
669
- definition: {
670
- id: string;
671
- source: {
672
- path: string;
673
- commit: string;
674
- repository: string;
675
- };
676
- schemaVersion: 1;
677
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
678
- revision: number;
679
- ownerPlugin: string;
680
- legacyNames: string[];
681
- modNames: string[];
682
- argumentsSchema: Record<string, unknown>;
683
- requiredCapabilities: string[];
684
- requiredHostFeatures: string[];
685
- disposition: "legacy" | "dispatch" | "view" | "delegate";
686
- modelVisibility: "same-as-legacy" | "explicit-summary";
687
- prompt?: {
688
- path: string;
689
- sha256: string;
690
- substitution: "none" | "$ARGUMENTS" | "positional";
691
- } | undefined;
692
- resultSchemaId?: string | undefined;
693
- bindingId?: string | undefined;
694
- viewId?: string | undefined;
695
- };
696
- notes: string[];
697
- }, {
698
- sources: {
699
- digest: string;
700
- sourcePath: string;
701
- package: string;
702
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
703
- observedInvocation: string;
704
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
705
- shippedIn: string[];
706
- initCategory?: string | undefined;
707
- }[];
708
- status: "documentation" | "shipped" | "source-only";
709
- divergent: boolean;
710
- definition: {
711
- id: string;
712
- source: {
713
- path: string;
714
- commit: string;
715
- repository: string;
716
- };
717
- schemaVersion: 1;
718
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
719
- revision: number;
720
- ownerPlugin: string;
721
- legacyNames: string[];
722
- modNames: string[];
723
- argumentsSchema: Record<string, unknown>;
724
- requiredCapabilities: string[];
725
- requiredHostFeatures: string[];
726
- disposition: "legacy" | "dispatch" | "view" | "delegate";
727
- modelVisibility: "same-as-legacy" | "explicit-summary";
728
- prompt?: {
729
- path: string;
730
- sha256: string;
731
- substitution: "none" | "$ARGUMENTS" | "positional";
732
- } | undefined;
733
- resultSchemaId?: string | undefined;
734
- bindingId?: string | undefined;
735
- viewId?: string | undefined;
736
- };
737
- notes: string[];
738
- }>, "many">;
739
- }, "strict", z.ZodTypeAny, {
740
- entries: {
741
- sources: {
742
- digest: string;
743
- sourcePath: string;
744
- package: string;
745
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
746
- observedInvocation: string;
747
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
748
- shippedIn: string[];
749
- initCategory?: string | undefined;
750
- }[];
751
- status: "documentation" | "shipped" | "source-only";
752
- divergent: boolean;
753
- definition: {
754
- id: string;
755
- source: {
756
- path: string;
757
- commit: string;
758
- repository: string;
759
- };
760
- schemaVersion: 1;
761
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
762
- revision: number;
763
- ownerPlugin: string;
764
- legacyNames: string[];
765
- modNames: string[];
766
- argumentsSchema: Record<string, unknown>;
767
- requiredCapabilities: string[];
768
- requiredHostFeatures: string[];
769
- disposition: "legacy" | "dispatch" | "view" | "delegate";
770
- modelVisibility: "same-as-legacy" | "explicit-summary";
771
- prompt?: {
772
- path: string;
773
- sha256: string;
774
- substitution: "none" | "$ARGUMENTS" | "positional";
775
- } | undefined;
776
- resultSchemaId?: string | undefined;
777
- bindingId?: string | undefined;
778
- viewId?: string | undefined;
779
- };
780
- notes: string[];
781
- }[];
782
- contractVersion: "ruflo.command-catalog/1";
783
- sourceCommit: string;
784
- sourceDigest: string;
785
- }, {
786
- entries: {
787
- sources: {
788
- digest: string;
789
- sourcePath: string;
790
- package: string;
791
- channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
792
- observedInvocation: string;
793
- binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
794
- shippedIn: string[];
795
- initCategory?: string | undefined;
796
- }[];
797
- status: "documentation" | "shipped" | "source-only";
798
- divergent: boolean;
799
- definition: {
800
- id: string;
801
- source: {
802
- path: string;
803
- commit: string;
804
- repository: string;
805
- };
806
- schemaVersion: 1;
807
- kind: "help" | "query" | "prompt" | "workflow" | "mutation";
808
- revision: number;
809
- ownerPlugin: string;
810
- legacyNames: string[];
811
- modNames: string[];
812
- argumentsSchema: Record<string, unknown>;
813
- requiredCapabilities: string[];
814
- requiredHostFeatures: string[];
815
- disposition: "legacy" | "dispatch" | "view" | "delegate";
816
- modelVisibility: "same-as-legacy" | "explicit-summary";
817
- prompt?: {
818
- path: string;
819
- sha256: string;
820
- substitution: "none" | "$ARGUMENTS" | "positional";
821
- } | undefined;
822
- resultSchemaId?: string | undefined;
823
- bindingId?: string | undefined;
824
- viewId?: string | undefined;
825
- };
826
- notes: string[];
827
- }[];
828
- contractVersion: "ruflo.command-catalog/1";
829
- sourceCommit: string;
830
- sourceDigest: string;
831
- }>;
266
+ shippedIn: z.ZodArray<z.ZodString>;
267
+ }, z.core.$strict>>;
268
+ notes: z.ZodArray<z.ZodString>;
269
+ }, z.core.$strict>>;
270
+ }, z.core.$strict>;
832
271
  export type DeliveryChannel = z.infer<typeof deliveryChannelSchema>;
833
272
  export type InventorySource = z.infer<typeof inventorySourceSchema>;
834
273
  export type CatalogEntry = z.infer<typeof catalogEntrySchema>;