@camunda8/cli 2.7.0 → 2.8.0-alpha.10

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 (92) hide show
  1. package/PLUGIN-HELP.md +145 -8
  2. package/README.md +1171 -73
  3. package/dist/command-dispatch.d.ts.map +1 -1
  4. package/dist/command-dispatch.js +3 -2
  5. package/dist/command-dispatch.js.map +1 -1
  6. package/dist/command-framework.d.ts.map +1 -1
  7. package/dist/command-framework.js +22 -1
  8. package/dist/command-framework.js.map +1 -1
  9. package/dist/command-registry.d.ts +49 -346
  10. package/dist/command-registry.d.ts.map +1 -1
  11. package/dist/command-registry.js +46 -54
  12. package/dist/command-registry.js.map +1 -1
  13. package/dist/commands/completion.d.ts +16 -33
  14. package/dist/commands/completion.d.ts.map +1 -1
  15. package/dist/commands/completion.js +31 -689
  16. package/dist/commands/completion.js.map +1 -1
  17. package/dist/commands/mcp-proxy.d.ts +0 -17
  18. package/dist/commands/mcp-proxy.d.ts.map +1 -1
  19. package/dist/commands/mcp-proxy.js +3 -104
  20. package/dist/commands/mcp-proxy.js.map +1 -1
  21. package/dist/commands/open.d.ts +3 -44
  22. package/dist/commands/open.d.ts.map +1 -1
  23. package/dist/commands/open.js +5 -81
  24. package/dist/commands/open.js.map +1 -1
  25. package/dist/commands/plugins.d.ts +2 -8
  26. package/dist/commands/plugins.d.ts.map +1 -1
  27. package/dist/commands/plugins.js +2 -28
  28. package/dist/commands/plugins.js.map +1 -1
  29. package/dist/commands/run.d.ts +8 -8
  30. package/dist/commands/run.d.ts.map +1 -1
  31. package/dist/commands/run.js +60 -60
  32. package/dist/commands/run.js.map +1 -1
  33. package/dist/commands/search.d.ts +2 -39
  34. package/dist/commands/search.d.ts.map +1 -1
  35. package/dist/commands/search.js +2 -83
  36. package/dist/commands/search.js.map +1 -1
  37. package/dist/commands/session.d.ts +1 -0
  38. package/dist/commands/session.d.ts.map +1 -1
  39. package/dist/commands/session.js +5 -0
  40. package/dist/commands/session.js.map +1 -1
  41. package/dist/commands/watch.d.ts +2 -1
  42. package/dist/commands/watch.d.ts.map +1 -1
  43. package/dist/commands/watch.js +17 -8
  44. package/dist/commands/watch.js.map +1 -1
  45. package/dist/completion.d.ts +36 -0
  46. package/dist/completion.d.ts.map +1 -0
  47. package/dist/completion.js +816 -0
  48. package/dist/completion.js.map +1 -0
  49. package/dist/config.d.ts.map +1 -1
  50. package/dist/config.js +19 -1
  51. package/dist/config.js.map +1 -1
  52. package/dist/{commands/deployments.d.ts → deployments.d.ts} +1 -1
  53. package/dist/deployments.d.ts.map +1 -0
  54. package/dist/{commands/deployments.js → deployments.js} +8 -8
  55. package/dist/deployments.js.map +1 -0
  56. package/dist/help.d.ts.map +1 -0
  57. package/dist/{commands/help.js → help.js} +107 -43
  58. package/dist/help.js.map +1 -0
  59. package/dist/index.d.ts +23 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +285 -9
  62. package/dist/index.js.map +1 -1
  63. package/dist/mcp-proxy-helpers.d.ts +23 -0
  64. package/dist/mcp-proxy-helpers.d.ts.map +1 -0
  65. package/dist/mcp-proxy-helpers.js +109 -0
  66. package/dist/mcp-proxy-helpers.js.map +1 -0
  67. package/dist/open-helpers.d.ts +52 -0
  68. package/dist/open-helpers.d.ts.map +1 -0
  69. package/dist/open-helpers.js +88 -0
  70. package/dist/open-helpers.js.map +1 -0
  71. package/dist/plugin-loader.d.ts +61 -2
  72. package/dist/plugin-loader.d.ts.map +1 -1
  73. package/dist/plugin-loader.js +229 -22
  74. package/dist/plugin-loader.js.map +1 -1
  75. package/dist/plugin-version.d.ts +15 -0
  76. package/dist/plugin-version.d.ts.map +1 -0
  77. package/dist/plugin-version.js +37 -0
  78. package/dist/plugin-version.js.map +1 -0
  79. package/dist/search-helpers.d.ts +46 -0
  80. package/dist/search-helpers.d.ts.map +1 -0
  81. package/dist/search-helpers.js +90 -0
  82. package/dist/search-helpers.js.map +1 -0
  83. package/dist/watch-constants.d.ts +7 -0
  84. package/dist/watch-constants.d.ts.map +1 -0
  85. package/dist/watch-constants.js +7 -0
  86. package/dist/watch-constants.js.map +1 -0
  87. package/package.json +11 -7
  88. package/dist/commands/deployments.d.ts.map +0 -1
  89. package/dist/commands/deployments.js.map +0 -1
  90. package/dist/commands/help.d.ts.map +0 -1
  91. package/dist/commands/help.js.map +0 -1
  92. /package/dist/{commands/help.d.ts → help.d.ts} +0 -0
@@ -27,10 +27,6 @@ export interface FlagDef {
27
27
  * erased to unknown here since FlagDef holds heterogeneous validators.
28
28
  */
29
29
  validate?: (value: string) => any;
30
- /** When true, this flag appears in the top-level `c8ctl help` Flags section. */
31
- showInTopLevelHelp?: boolean;
32
- /** Context hint shown in the top-level help (e.g. "use with 'get pd'"). */
33
- helpHint?: string;
34
30
  /** Rich description for agent-facing help (AI/programmatic consumers). Shown in Agent Flags section. */
35
31
  agentDescription?: string;
36
32
  /** Scope hint for agent-facing help (e.g. "all commands", "all list/search/get commands"). */
@@ -55,9 +51,47 @@ export interface CommandDef {
55
51
  requiresResource: boolean;
56
52
  /** Valid resource names (canonical short forms used in help). */
57
53
  resources: string[];
58
- /** Flags specific to this verb (beyond global flags). Superset of all resource-specific flags. */
54
+ /**
55
+ * Verb-level flag schema. Per-resource flags must live exclusively in
56
+ * `resourceFlags` — they are *not* duplicated here. Mixing a flag into
57
+ * both buckets defeats unknown-flag detection (#256), and the
58
+ * structural disjointness invariant in
59
+ * `tests/unit/command-registry.test.ts` will fail.
60
+ *
61
+ * **Effective-resolution semantics** (see `ResolvedFlags` in
62
+ * `src/command-framework.ts` and `validateFlags` in `src/index.ts`):
63
+ * the handler's typed `flags` parameter and `validateFlags`'s
64
+ * required-field/validator checks resolve to
65
+ * `resourceFlags[resource] ?? flags`. So for a verb that declares
66
+ * **both** `flags` and `resourceFlags[r]`, the verb-level `flags` are
67
+ * **not** seen by the handler or by `validateFlags` when dispatching to
68
+ * resource `r` — only `resourceFlags[r]` is. Verb-level `flags` are
69
+ * still treated as valid by `detectUnknownFlags`, so
70
+ * `detectUnknownFlags`/`warnUnknownFlags` will not emit an
71
+ * unknown-flag warning for them, and `deriveParseArgsOptions` still
72
+ * includes them so they parse, but they will not flow into the
73
+ * handler's typed parameter for any resource that has its own bucket.
74
+ *
75
+ * Practical guidance: if a flag must be visible to the handler for a
76
+ * given resource, declare it in that resource's `resourceFlags` bucket
77
+ * (typically by spreading a shared constant such as `SEARCH_FLAGS`
78
+ * into each per-resource bucket). Reserve verb-level `flags` for verbs
79
+ * with no `resourceFlags` at all, or for flags that are deliberately
80
+ * parse-only on resources with their own bucket.
81
+ */
59
82
  flags: Record<string, FlagDef>;
60
- /** Per-resource flag scoping. Keys are canonical resource names. */
83
+ /**
84
+ * Per-resource flag scoping. Keys are canonical resource names.
85
+ * Flags declared here must not also appear in `flags` (see above).
86
+ *
87
+ * When a resource has an entry here, the framework resolves the
88
+ * effective flag schema as `resourceFlags[resource]` and **ignores**
89
+ * the verb-level `flags` for handler typing and `validateFlags`.
90
+ * `deriveParseArgsOptions` still includes both buckets so they parse,
91
+ * and the scoping lets `warnUnknownFlags` warn when a flag is passed
92
+ * against a resource that does not declare it. See the doc on `flags`
93
+ * above for the full effective-resolution semantics.
94
+ */
61
95
  resourceFlags?: Record<string, Record<string, FlagDef>>;
62
96
  /** Per-resource positional argument schemas. Keys are canonical resource names. */
63
97
  resourcePositionals?: Record<string, readonly PositionalDef[]>;
@@ -131,6 +165,12 @@ export declare const GLOBAL_FLAGS: {
131
165
  readonly agentDescription: "Comma-separated list of output fields to include.\nReduces context window size when parsing output.\nExample: c8ctl list pi --fields Key,State,processDefinitionId\nCase-insensitive.";
132
166
  readonly agentAppliesTo: "all list/search/get commands";
133
167
  };
168
+ readonly json: {
169
+ readonly type: "boolean";
170
+ readonly description: "Force JSON output for this invocation (does not persist; overrides session state and C8CTL_OUTPUT_MODE)";
171
+ readonly agentDescription: "Per-invocation JSON output. Equivalent to setting outputMode=json for one command without mutating session.json.\nPrecedence: --json > C8CTL_OUTPUT_MODE > persisted session state.";
172
+ readonly agentAppliesTo: "all commands";
173
+ };
134
174
  };
135
175
  /**
136
176
  * Flags shared across all search/list commands.
@@ -165,8 +205,6 @@ export declare const GET_PD_FLAGS: {
165
205
  readonly xml: {
166
206
  readonly type: "boolean";
167
207
  readonly description: "Get BPMN XML (process definitions)";
168
- readonly showInTopLevelHelp: true;
169
- readonly helpHint: "use with 'get pd'";
170
208
  };
171
209
  };
172
210
  export declare const GET_PD_POSITIONALS: readonly [{
@@ -188,136 +226,6 @@ export declare const COMMAND_REGISTRY: {
188
226
  }[];
189
227
  resources: string[];
190
228
  flags: {
191
- mappingRuleId: {
192
- readonly type: "string";
193
- readonly description: "Filter by mapping rule ID";
194
- };
195
- name: {
196
- readonly type: "string";
197
- readonly description: "Filter by name";
198
- };
199
- claimName: {
200
- readonly type: "string";
201
- readonly description: "Filter by claim name";
202
- };
203
- claimValue: {
204
- readonly type: "string";
205
- readonly description: "Filter by claim value";
206
- };
207
- ownerId: {
208
- readonly type: "string";
209
- readonly description: "Filter by owner ID";
210
- };
211
- ownerType: {
212
- readonly type: "string";
213
- readonly description: "Filter by owner type";
214
- };
215
- resourceType: {
216
- readonly type: "string";
217
- readonly description: "Filter by resource type";
218
- };
219
- resourceId: {
220
- readonly type: "string";
221
- readonly description: "Filter by resource ID";
222
- };
223
- tenantId: {
224
- readonly type: "string";
225
- readonly description: "Filter by tenant ID";
226
- readonly validate: typeof TenantId.assumeExists;
227
- };
228
- groupId: {
229
- readonly type: "string";
230
- readonly description: "Filter by group ID";
231
- };
232
- roleId: {
233
- readonly type: "string";
234
- readonly description: "Filter by role ID";
235
- };
236
- username: {
237
- readonly type: "string";
238
- readonly description: "Filter by username";
239
- readonly validate: typeof Username.assumeExists;
240
- };
241
- email: {
242
- readonly type: "string";
243
- readonly description: "Filter by email";
244
- };
245
- state: {
246
- readonly type: "string";
247
- readonly description: "Filter by state";
248
- };
249
- type: {
250
- readonly type: "string";
251
- readonly description: "Filter by job type";
252
- };
253
- processInstanceKey: {
254
- readonly type: "string";
255
- readonly description: "Filter by process instance key";
256
- readonly validate: typeof ProcessInstanceKey.assumeExists;
257
- };
258
- processDefinitionKey: {
259
- readonly type: "string";
260
- readonly description: "Filter by process definition key";
261
- readonly validate: typeof ProcessDefinitionKey.assumeExists;
262
- };
263
- itype: {
264
- readonly type: "string";
265
- readonly description: "Case-insensitive filter by job type";
266
- };
267
- bpmnProcessId: {
268
- readonly type: "string";
269
- readonly description: "Filter by BPMN process ID";
270
- };
271
- id: {
272
- readonly type: "string";
273
- readonly description: "Filter by BPMN process ID (alias)";
274
- };
275
- processDefinitionId: {
276
- readonly type: "string";
277
- readonly description: "Filter by process definition ID";
278
- readonly validate: typeof ProcessDefinitionId.assumeExists;
279
- };
280
- errorType: {
281
- readonly type: "string";
282
- readonly description: "Filter by error type";
283
- };
284
- errorMessage: {
285
- readonly type: "string";
286
- readonly description: "Filter by error message";
287
- };
288
- ierrorMessage: {
289
- readonly type: "string";
290
- readonly description: "Case-insensitive filter by error message";
291
- };
292
- iid: {
293
- readonly type: "string";
294
- readonly description: "Case-insensitive filter by BPMN process ID";
295
- };
296
- assignee: {
297
- readonly type: "string";
298
- readonly description: "Filter by assignee";
299
- };
300
- elementId: {
301
- readonly type: "string";
302
- readonly description: "Filter by element ID";
303
- };
304
- iassignee: {
305
- readonly type: "string";
306
- readonly description: "Case-insensitive filter by assignee";
307
- };
308
- key: {
309
- readonly type: "string";
310
- readonly description: "Filter by key";
311
- };
312
- iname: {
313
- readonly type: "string";
314
- readonly description: "Case-insensitive filter by name";
315
- };
316
- parentProcessInstanceKey: {
317
- readonly type: "string";
318
- readonly description: "Filter by parent process instance key";
319
- readonly validate: typeof ProcessInstanceKey.assumeExists;
320
- };
321
229
  sortBy: {
322
230
  readonly type: "string";
323
231
  readonly description: "Sort results by field";
@@ -610,152 +518,6 @@ export declare const COMMAND_REGISTRY: {
610
518
  }[];
611
519
  resources: string[];
612
520
  flags: {
613
- mappingRuleId: {
614
- readonly type: "string";
615
- readonly description: "Filter by mapping rule ID";
616
- };
617
- name: {
618
- readonly type: "string";
619
- readonly description: "Filter by name";
620
- };
621
- claimName: {
622
- readonly type: "string";
623
- readonly description: "Filter by claim name";
624
- };
625
- claimValue: {
626
- readonly type: "string";
627
- readonly description: "Filter by claim value";
628
- };
629
- ownerId: {
630
- readonly type: "string";
631
- readonly description: "Filter by owner ID";
632
- };
633
- ownerType: {
634
- readonly type: "string";
635
- readonly description: "Filter by owner type";
636
- };
637
- resourceType: {
638
- readonly type: "string";
639
- readonly description: "Filter by resource type";
640
- };
641
- resourceId: {
642
- readonly type: "string";
643
- readonly description: "Filter by resource ID";
644
- };
645
- tenantId: {
646
- readonly type: "string";
647
- readonly description: "Filter by tenant ID";
648
- readonly validate: typeof TenantId.assumeExists;
649
- };
650
- groupId: {
651
- readonly type: "string";
652
- readonly description: "Filter by group ID";
653
- };
654
- roleId: {
655
- readonly type: "string";
656
- readonly description: "Filter by role ID";
657
- };
658
- username: {
659
- readonly type: "string";
660
- readonly description: "Filter by username";
661
- readonly validate: typeof Username.assumeExists;
662
- };
663
- email: {
664
- readonly type: "string";
665
- readonly description: "Filter by email";
666
- };
667
- value: {
668
- readonly type: "string";
669
- readonly description: "Filter by value";
670
- };
671
- processInstanceKey: {
672
- readonly type: "string";
673
- readonly description: "Filter by process instance key";
674
- readonly validate: typeof ProcessInstanceKey.assumeExists;
675
- };
676
- scopeKey: {
677
- readonly type: "string";
678
- readonly description: "Filter by scope key";
679
- };
680
- fullValue: {
681
- readonly type: "boolean";
682
- readonly description: "Return full variable values (not truncated)";
683
- };
684
- iname: {
685
- readonly type: "string";
686
- readonly description: "Case-insensitive filter by name";
687
- };
688
- ivalue: {
689
- readonly type: "string";
690
- readonly description: "Case-insensitive filter by value";
691
- };
692
- state: {
693
- readonly type: "string";
694
- readonly description: "Filter by state";
695
- };
696
- type: {
697
- readonly type: "string";
698
- readonly description: "Filter by job type";
699
- };
700
- processDefinitionKey: {
701
- readonly type: "string";
702
- readonly description: "Filter by process definition key";
703
- readonly validate: typeof ProcessDefinitionKey.assumeExists;
704
- };
705
- itype: {
706
- readonly type: "string";
707
- readonly description: "Case-insensitive filter by job type";
708
- };
709
- bpmnProcessId: {
710
- readonly type: "string";
711
- readonly description: "Filter by BPMN process ID";
712
- };
713
- id: {
714
- readonly type: "string";
715
- readonly description: "Filter by BPMN process ID (alias)";
716
- };
717
- processDefinitionId: {
718
- readonly type: "string";
719
- readonly description: "Filter by process definition ID";
720
- readonly validate: typeof ProcessDefinitionId.assumeExists;
721
- };
722
- errorType: {
723
- readonly type: "string";
724
- readonly description: "Filter by error type";
725
- };
726
- errorMessage: {
727
- readonly type: "string";
728
- readonly description: "Filter by error message";
729
- };
730
- ierrorMessage: {
731
- readonly type: "string";
732
- readonly description: "Case-insensitive filter by error message";
733
- };
734
- iid: {
735
- readonly type: "string";
736
- readonly description: "Case-insensitive filter by BPMN process ID";
737
- };
738
- assignee: {
739
- readonly type: "string";
740
- readonly description: "Filter by assignee";
741
- };
742
- elementId: {
743
- readonly type: "string";
744
- readonly description: "Filter by element ID";
745
- };
746
- iassignee: {
747
- readonly type: "string";
748
- readonly description: "Case-insensitive filter by assignee";
749
- };
750
- key: {
751
- readonly type: "string";
752
- readonly description: "Filter by key";
753
- };
754
- parentProcessInstanceKey: {
755
- readonly type: "string";
756
- readonly description: "Filter by parent process instance key";
757
- readonly validate: typeof ProcessInstanceKey.assumeExists;
758
- };
759
521
  sortBy: {
760
522
  readonly type: "string";
761
523
  readonly description: "Sort results by field";
@@ -1074,55 +836,18 @@ export declare const COMMAND_REGISTRY: {
1074
836
  description: string;
1075
837
  }[];
1076
838
  resources: string[];
1077
- flags: {
1078
- variables: {
1079
- readonly type: "boolean";
1080
- readonly description: "Include variables in output";
1081
- readonly showInTopLevelHelp: true;
1082
- readonly helpHint: "use with 'get pi'";
1083
- };
1084
- userTask: {
1085
- readonly type: "boolean";
1086
- readonly description: "Get form for user task";
1087
- readonly showInTopLevelHelp: true;
1088
- readonly helpHint: "use with 'get form'";
1089
- };
1090
- ut: {
1091
- readonly type: "boolean";
1092
- readonly description: "Alias for --userTask";
1093
- };
1094
- processDefinition: {
1095
- readonly type: "boolean";
1096
- readonly description: "Get form for process definition";
1097
- readonly showInTopLevelHelp: true;
1098
- readonly helpHint: "use with 'get form'";
1099
- };
1100
- pd: {
1101
- readonly type: "boolean";
1102
- readonly description: "Alias for --processDefinition";
1103
- };
1104
- xml: {
1105
- readonly type: "boolean";
1106
- readonly description: "Get BPMN XML (process definitions)";
1107
- readonly showInTopLevelHelp: true;
1108
- readonly helpHint: "use with 'get pd'";
1109
- };
1110
- };
839
+ flags: {};
1111
840
  resourceFlags: {
1112
841
  "process-definition": {
1113
842
  readonly xml: {
1114
843
  readonly type: "boolean";
1115
844
  readonly description: "Get BPMN XML (process definitions)";
1116
- readonly showInTopLevelHelp: true;
1117
- readonly helpHint: "use with 'get pd'";
1118
845
  };
1119
846
  };
1120
847
  form: {
1121
848
  readonly userTask: {
1122
849
  readonly type: "boolean";
1123
850
  readonly description: "Get form for user task";
1124
- readonly showInTopLevelHelp: true;
1125
- readonly helpHint: "use with 'get form'";
1126
851
  };
1127
852
  readonly ut: {
1128
853
  readonly type: "boolean";
@@ -1131,8 +856,6 @@ export declare const COMMAND_REGISTRY: {
1131
856
  readonly processDefinition: {
1132
857
  readonly type: "boolean";
1133
858
  readonly description: "Get form for process definition";
1134
- readonly showInTopLevelHelp: true;
1135
- readonly helpHint: "use with 'get form'";
1136
859
  };
1137
860
  readonly pd: {
1138
861
  readonly type: "boolean";
@@ -1143,8 +866,6 @@ export declare const COMMAND_REGISTRY: {
1143
866
  readonly variables: {
1144
867
  readonly type: "boolean";
1145
868
  readonly description: "Include variables in output";
1146
- readonly showInTopLevelHelp: true;
1147
- readonly helpHint: "use with 'get pi'";
1148
869
  };
1149
870
  };
1150
871
  };
@@ -1218,8 +939,6 @@ export declare const COMMAND_REGISTRY: {
1218
939
  id: {
1219
940
  type: "string";
1220
941
  description: string;
1221
- showInTopLevelHelp: true;
1222
- helpHint: string;
1223
942
  };
1224
943
  bpmnProcessId: {
1225
944
  type: "string";
@@ -1232,19 +951,14 @@ export declare const COMMAND_REGISTRY: {
1232
951
  awaitCompletion: {
1233
952
  type: "boolean";
1234
953
  description: string;
1235
- showInTopLevelHelp: true;
1236
- helpHint: string;
1237
954
  };
1238
955
  fetchVariables: {
1239
956
  type: "boolean";
1240
957
  description: string;
1241
- showInTopLevelHelp: true;
1242
958
  };
1243
959
  requestTimeout: {
1244
960
  type: "string";
1245
961
  description: string;
1246
- showInTopLevelHelp: true;
1247
- helpHint: string;
1248
962
  };
1249
963
  username: {
1250
964
  type: "string";
@@ -1600,14 +1314,10 @@ export declare const COMMAND_REGISTRY: {
1600
1314
  type: "string";
1601
1315
  description: string;
1602
1316
  required: true;
1603
- showInTopLevelHelp: true;
1604
- helpHint: string;
1605
1317
  };
1606
1318
  local: {
1607
1319
  type: "boolean";
1608
1320
  description: string;
1609
- showInTopLevelHelp: true;
1610
- helpHint: string;
1611
1321
  };
1612
1322
  };
1613
1323
  resourcePositionals: {
@@ -1898,8 +1608,6 @@ export declare const COMMAND_REGISTRY: {
1898
1608
  from: {
1899
1609
  type: "string";
1900
1610
  description: string;
1901
- showInTopLevelHelp: true;
1902
- helpHint: string;
1903
1611
  };
1904
1612
  };
1905
1613
  resourcePositionals: {
@@ -2047,12 +1755,7 @@ export declare const COMMAND_REGISTRY: {
2047
1755
  description: string;
2048
1756
  }[];
2049
1757
  resources: string[];
2050
- flags: {
2051
- shell: {
2052
- type: "string";
2053
- description: string;
2054
- };
2055
- };
1758
+ flags: {};
2056
1759
  resourceFlags: {
2057
1760
  install: {
2058
1761
  shell: {
@@ -2141,7 +1844,7 @@ export declare function isValidCommand(verb: string, resource: string): boolean;
2141
1844
  * "string" wins because parseArgs with `type: "string"` can accept any
2142
1845
  * value, whereas `type: "boolean"` would discard the string payload.
2143
1846
  */
2144
- export declare function deriveParseArgsOptions(): Record<string, {
1847
+ export declare function deriveParseArgsOptions(pluginFlags?: Record<string, Record<string, FlagDef>>): Record<string, {
2145
1848
  type: "string" | "boolean";
2146
1849
  short?: string;
2147
1850
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"command-registry.d.ts","sourceRoot":"","sources":["../src/command-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,MAAM,qCAAqC,CAAC;AAI7C,MAAM,WAAW,OAAO;IACvB,8EAA8E;IAC9E,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,wFAAwF;IACxF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;;;;OAMG;IAEH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC;IAClC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,GA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