claude-flow 3.50.0 → 3.51.0

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 (60) hide show
  1. package/.claude/proven-config.json +1 -1
  2. package/.claude/settings.json +11 -2
  3. package/.claude-plugin/marketplace.json +5 -0
  4. package/package.json +1 -1
  5. package/v3/@claude-flow/cli/README.md +0 -2
  6. package/v3/@claude-flow/cli/catalog-manifest.json +4 -4
  7. package/v3/@claude-flow/cli/dist/src/commands/catalog.d.ts +18 -0
  8. package/v3/@claude-flow/cli/dist/src/commands/catalog.js +89 -0
  9. package/v3/@claude-flow/cli/dist/src/commands/doctor.js +8 -3
  10. package/v3/@claude-flow/cli/dist/src/commands/index.js +3 -0
  11. package/v3/@claude-flow/cli/dist/src/commands/init.js +50 -11
  12. package/v3/@claude-flow/cli/dist/src/commands/mission.d.ts +24 -0
  13. package/v3/@claude-flow/cli/dist/src/commands/mission.js +116 -0
  14. package/v3/@claude-flow/cli/dist/src/commands/mods.d.ts +1 -1
  15. package/v3/@claude-flow/cli/dist/src/commands/mods.js +67 -23
  16. package/v3/@claude-flow/cli/dist/src/mcp-client.js +3 -0
  17. package/v3/@claude-flow/cli/dist/src/mcp-tools/capability-brain.js +1 -1
  18. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +1 -0
  19. package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +2 -0
  20. package/v3/@claude-flow/cli/dist/src/mcp-tools/mission-tools.d.ts +22 -0
  21. package/v3/@claude-flow/cli/dist/src/mcp-tools/mission-tools.js +75 -0
  22. package/v3/@claude-flow/cli/dist/src/missions/fold.d.ts +19 -0
  23. package/v3/@claude-flow/cli/dist/src/missions/fold.js +238 -0
  24. package/v3/@claude-flow/cli/dist/src/missions/index.d.ts +10 -0
  25. package/v3/@claude-flow/cli/dist/src/missions/index.js +10 -0
  26. package/v3/@claude-flow/cli/dist/src/missions/observation.d.ts +70 -0
  27. package/v3/@claude-flow/cli/dist/src/missions/observation.js +77 -0
  28. package/v3/@claude-flow/cli/dist/src/missions/schemas.d.ts +735 -0
  29. package/v3/@claude-flow/cli/dist/src/missions/schemas.js +150 -0
  30. package/v3/@claude-flow/cli/dist/src/missions/service.d.ts +88 -0
  31. package/v3/@claude-flow/cli/dist/src/missions/service.js +278 -0
  32. package/v3/@claude-flow/cli/dist/src/missions/store.d.ts +68 -0
  33. package/v3/@claude-flow/cli/dist/src/missions/store.js +209 -0
  34. package/v3/@claude-flow/cli/dist/src/missions/transitions.d.ts +81 -0
  35. package/v3/@claude-flow/cli/dist/src/missions/transitions.js +178 -0
  36. package/v3/@claude-flow/cli/dist/src/mods/apply.d.ts +50 -0
  37. package/v3/@claude-flow/cli/dist/src/mods/apply.js +186 -0
  38. package/v3/@claude-flow/cli/dist/src/mods/command-registry/catalog.d.ts +45 -0
  39. package/v3/@claude-flow/cli/dist/src/mods/command-registry/catalog.js +234 -0
  40. package/v3/@claude-flow/cli/dist/src/mods/command-registry/engine-report.d.ts +66 -0
  41. package/v3/@claude-flow/cli/dist/src/mods/command-registry/engine-report.js +119 -0
  42. package/v3/@claude-flow/cli/dist/src/mods/command-registry/generate.d.ts +51 -0
  43. package/v3/@claude-flow/cli/dist/src/mods/command-registry/generate.js +166 -0
  44. package/v3/@claude-flow/cli/dist/src/mods/command-registry/index.d.ts +9 -0
  45. package/v3/@claude-flow/cli/dist/src/mods/command-registry/index.js +9 -0
  46. package/v3/@claude-flow/cli/dist/src/mods/command-registry/inventory.d.ts +63 -0
  47. package/v3/@claude-flow/cli/dist/src/mods/command-registry/inventory.js +230 -0
  48. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.d.ts +836 -0
  49. package/v3/@claude-flow/cli/dist/src/mods/command-registry/schema.js +137 -0
  50. package/v3/@claude-flow/cli/dist/src/mods/install.d.ts +60 -22
  51. package/v3/@claude-flow/cli/dist/src/mods/install.js +91 -41
  52. package/v3/@claude-flow/cli/dist/src/mods/plugin-repair.d.ts +81 -0
  53. package/v3/@claude-flow/cli/dist/src/mods/plugin-repair.js +120 -0
  54. package/v3/@claude-flow/cli/dist/src/mods/plugin-resolve.d.ts +63 -0
  55. package/v3/@claude-flow/cli/dist/src/mods/plugin-resolve.js +182 -0
  56. package/v3/@claude-flow/cli/dist/src/mods/probe.d.ts +5 -0
  57. package/v3/@claude-flow/cli/dist/src/mods/probe.js +28 -3
  58. package/v3/@claude-flow/cli/dist/src/services/policy-runtime.d.ts +5 -0
  59. package/v3/@claude-flow/cli/dist/src/services/policy-runtime.js +5 -1
  60. package/v3/@claude-flow/cli/package.json +1 -1
@@ -0,0 +1,836 @@
1
+ /**
2
+ * ADR-406 §6 — the canonical command registry contract.
3
+ *
4
+ * `CommandDefinition` mirrors the ADR's proposed TypeScript contract field for
5
+ * field. Every object is `.strict()` (unknown fields are rejected), every
6
+ * string and array is capped, and `argumentsSchema` is capped by its
7
+ * serialized size. A definition carries no executable path, shell template,
8
+ * network grant or approval override: `bindingId` is only a key into a
9
+ * reviewed allowlist owned by runtime code.
10
+ *
11
+ * Inventory facts (where a command was found, its digest, how the engine
12
+ * spells it) live beside the definition in a catalog entry, never inside it,
13
+ * so the §6 shape stays exact.
14
+ */
15
+ import { z } from 'zod';
16
+ export declare const COMMAND_CATALOG_CONTRACT: "ruflo.command-catalog/1";
17
+ export declare const LIMITS: Readonly<{
18
+ id: 160;
19
+ name: 128;
20
+ names: 16;
21
+ path: 512;
22
+ ownerPlugin: 96;
23
+ capabilities: 64;
24
+ capability: 128;
25
+ argumentsSchemaBytes: 4096;
26
+ entries: 4096;
27
+ note: 512;
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<{
32
+ schemaVersion: z.ZodLiteral<1>;
33
+ id: z.ZodString;
34
+ revision: z.ZodNumber;
35
+ 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>>;
40
+ resultSchemaId: z.ZodOptional<z.ZodString>;
41
+ prompt: z.ZodOptional<z.ZodObject<{
42
+ path: z.ZodString;
43
+ 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
+ }>>;
54
+ 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"]>;
58
+ viewId: z.ZodOptional<z.ZodString>;
59
+ modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
60
+ source: z.ZodObject<{
61
+ repository: z.ZodString;
62
+ commit: z.ZodString;
63
+ 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
+ }>;
178
+ export type CommandKind = z.infer<typeof commandKindSchema>;
179
+ export type ModDisposition = z.infer<typeof modDispositionSchema>;
180
+ export type CommandDefinition = z.infer<typeof commandDefinitionSchema>;
181
+ /** 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"]>;
183
+ export declare const inventorySourceSchema: z.ZodObject<{
184
+ channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
185
+ package: z.ZodString;
186
+ sourcePath: z.ZodString;
187
+ digest: z.ZodString;
188
+ observedInvocation: z.ZodString;
189
+ binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
190
+ initCategory: z.ZodOptional<z.ZodString>;
191
+ shippedIn: z.ZodArray<z.ZodString, "many">;
192
+ }, "strict", z.ZodTypeAny, {
193
+ sourcePath: string;
194
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
195
+ digest: string;
196
+ package: string;
197
+ observedInvocation: string;
198
+ binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
199
+ shippedIn: string[];
200
+ initCategory?: string | undefined;
201
+ }, {
202
+ sourcePath: string;
203
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
204
+ digest: string;
205
+ package: string;
206
+ observedInvocation: string;
207
+ binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
208
+ shippedIn: string[];
209
+ initCategory?: string | undefined;
210
+ }>;
211
+ export declare const catalogEntrySchema: z.ZodObject<{
212
+ definition: z.ZodEffects<z.ZodObject<{
213
+ schemaVersion: z.ZodLiteral<1>;
214
+ id: z.ZodString;
215
+ revision: z.ZodNumber;
216
+ 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>>;
221
+ resultSchemaId: z.ZodOptional<z.ZodString>;
222
+ prompt: z.ZodOptional<z.ZodObject<{
223
+ path: z.ZodString;
224
+ 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
+ }>>;
235
+ 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"]>;
239
+ viewId: z.ZodOptional<z.ZodString>;
240
+ modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
241
+ source: z.ZodObject<{
242
+ repository: z.ZodString;
243
+ commit: z.ZodString;
244
+ 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;
358
+ }>;
359
+ status: z.ZodEnum<["shipped", "source-only", "documentation"]>;
360
+ divergent: z.ZodBoolean;
361
+ sources: z.ZodArray<z.ZodObject<{
362
+ channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
363
+ package: z.ZodString;
364
+ sourcePath: z.ZodString;
365
+ digest: z.ZodString;
366
+ observedInvocation: z.ZodString;
367
+ binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
368
+ initCategory: z.ZodOptional<z.ZodString>;
369
+ shippedIn: z.ZodArray<z.ZodString, "many">;
370
+ }, "strict", z.ZodTypeAny, {
371
+ sourcePath: string;
372
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
373
+ digest: string;
374
+ package: string;
375
+ observedInvocation: string;
376
+ binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
377
+ shippedIn: string[];
378
+ initCategory?: string | undefined;
379
+ }, {
380
+ sourcePath: string;
381
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
382
+ digest: string;
383
+ package: string;
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
+ sourcePath: string;
393
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
394
+ digest: string;
395
+ package: string;
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
+ sourcePath: string;
434
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
435
+ digest: string;
436
+ package: string;
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
+ }>;
473
+ export declare const commandCatalogSchema: z.ZodObject<{
474
+ contractVersion: z.ZodLiteral<"ruflo.command-catalog/1">;
475
+ sourceCommit: z.ZodString;
476
+ sourceDigest: z.ZodString;
477
+ entries: z.ZodArray<z.ZodObject<{
478
+ definition: z.ZodEffects<z.ZodObject<{
479
+ schemaVersion: z.ZodLiteral<1>;
480
+ id: z.ZodString;
481
+ revision: z.ZodNumber;
482
+ 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>>;
487
+ resultSchemaId: z.ZodOptional<z.ZodString>;
488
+ prompt: z.ZodOptional<z.ZodObject<{
489
+ path: z.ZodString;
490
+ 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
+ }>>;
501
+ 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"]>;
505
+ viewId: z.ZodOptional<z.ZodString>;
506
+ modelVisibility: z.ZodEnum<["same-as-legacy", "explicit-summary"]>;
507
+ source: z.ZodObject<{
508
+ repository: z.ZodString;
509
+ commit: z.ZodString;
510
+ 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;
624
+ }>;
625
+ status: z.ZodEnum<["shipped", "source-only", "documentation"]>;
626
+ divergent: z.ZodBoolean;
627
+ sources: z.ZodArray<z.ZodObject<{
628
+ channel: z.ZodEnum<["repo-project-commands", "cli-init-template", "marketplace-plugin", "source-plugin", "mod-registration"]>;
629
+ package: z.ZodString;
630
+ sourcePath: z.ZodString;
631
+ digest: z.ZodString;
632
+ observedInvocation: z.ZodString;
633
+ binding: z.ZodEnum<["markdown-loader", "mod-register", "mod-middleware-on-markdown"]>;
634
+ initCategory: z.ZodOptional<z.ZodString>;
635
+ shippedIn: z.ZodArray<z.ZodString, "many">;
636
+ }, "strict", z.ZodTypeAny, {
637
+ sourcePath: string;
638
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
639
+ digest: string;
640
+ package: string;
641
+ observedInvocation: string;
642
+ binding: "markdown-loader" | "mod-register" | "mod-middleware-on-markdown";
643
+ shippedIn: string[];
644
+ initCategory?: string | undefined;
645
+ }, {
646
+ sourcePath: string;
647
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
648
+ digest: string;
649
+ package: string;
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
+ sourcePath: string;
659
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
660
+ digest: string;
661
+ package: string;
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
+ sourcePath: string;
700
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
701
+ digest: string;
702
+ package: string;
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
+ sourcePath: string;
743
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
744
+ digest: string;
745
+ package: string;
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
+ sourcePath: string;
789
+ channel: "repo-project-commands" | "cli-init-template" | "marketplace-plugin" | "source-plugin" | "mod-registration";
790
+ digest: string;
791
+ package: string;
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
+ }>;
832
+ export type DeliveryChannel = z.infer<typeof deliveryChannelSchema>;
833
+ export type InventorySource = z.infer<typeof inventorySourceSchema>;
834
+ export type CatalogEntry = z.infer<typeof catalogEntrySchema>;
835
+ export type CommandCatalog = z.infer<typeof commandCatalogSchema>;
836
+ //# sourceMappingURL=schema.d.ts.map