opensip-cli 0.1.10 → 0.1.11

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 (194) hide show
  1. package/dist/bootstrap/baseline-seams.d.ts.map +1 -1
  2. package/dist/bootstrap/baseline-seams.js +0 -2
  3. package/dist/bootstrap/baseline-seams.js.map +1 -1
  4. package/dist/bootstrap/bootstrap-diagnostics-buffer.d.ts +15 -0
  5. package/dist/bootstrap/bootstrap-diagnostics-buffer.d.ts.map +1 -0
  6. package/dist/bootstrap/bootstrap-diagnostics-buffer.js +24 -0
  7. package/dist/bootstrap/bootstrap-diagnostics-buffer.js.map +1 -0
  8. package/dist/bootstrap/build-command-registration-input.d.ts +2 -0
  9. package/dist/bootstrap/build-command-registration-input.d.ts.map +1 -1
  10. package/dist/bootstrap/build-command-registration-input.js +1 -0
  11. package/dist/bootstrap/build-command-registration-input.js.map +1 -1
  12. package/dist/bootstrap/build-per-run-scope.d.ts +5 -1
  13. package/dist/bootstrap/build-per-run-scope.d.ts.map +1 -1
  14. package/dist/bootstrap/build-per-run-scope.js +8 -2
  15. package/dist/bootstrap/build-per-run-scope.js.map +1 -1
  16. package/dist/bootstrap/bundled-tools.manifest.json +6 -1
  17. package/dist/bootstrap/config-and-capabilities.d.ts +2 -1
  18. package/dist/bootstrap/config-and-capabilities.d.ts.map +1 -1
  19. package/dist/bootstrap/config-and-capabilities.js +18 -5
  20. package/dist/bootstrap/config-and-capabilities.js.map +1 -1
  21. package/dist/bootstrap/deliver-envelope.d.ts.map +1 -1
  22. package/dist/bootstrap/deliver-envelope.js +0 -1
  23. package/dist/bootstrap/deliver-envelope.js.map +1 -1
  24. package/dist/bootstrap/discovery-diagnostics.d.ts +17 -0
  25. package/dist/bootstrap/discovery-diagnostics.d.ts.map +1 -0
  26. package/dist/bootstrap/discovery-diagnostics.js +94 -0
  27. package/dist/bootstrap/discovery-diagnostics.js.map +1 -0
  28. package/dist/bootstrap/dispatch-host-rpc-handler.d.ts.map +1 -1
  29. package/dist/bootstrap/dispatch-host-rpc-handler.js +0 -1
  30. package/dist/bootstrap/dispatch-host-rpc-handler.js.map +1 -1
  31. package/dist/bootstrap/dispatch-replay-result.d.ts.map +1 -1
  32. package/dist/bootstrap/dispatch-replay-result.js +0 -1
  33. package/dist/bootstrap/dispatch-replay-result.js.map +1 -1
  34. package/dist/bootstrap/execute-post-bailout-bootstrap.d.ts.map +1 -1
  35. package/dist/bootstrap/execute-post-bailout-bootstrap.js +8 -2
  36. package/dist/bootstrap/execute-post-bailout-bootstrap.js.map +1 -1
  37. package/dist/bootstrap/index.d.ts +6 -1
  38. package/dist/bootstrap/index.d.ts.map +1 -1
  39. package/dist/bootstrap/index.js +15 -4
  40. package/dist/bootstrap/index.js.map +1 -1
  41. package/dist/bootstrap/load-tool-capabilities.d.ts.map +1 -1
  42. package/dist/bootstrap/load-tool-capabilities.js +14 -2
  43. package/dist/bootstrap/load-tool-capabilities.js.map +1 -1
  44. package/dist/bootstrap/output-plane.d.ts.map +1 -1
  45. package/dist/bootstrap/output-plane.js +1 -0
  46. package/dist/bootstrap/output-plane.js.map +1 -1
  47. package/dist/bootstrap/pre-action-hook.d.ts.map +1 -1
  48. package/dist/bootstrap/pre-action-hook.js +0 -2
  49. package/dist/bootstrap/pre-action-hook.js.map +1 -1
  50. package/dist/bootstrap/pre-action-runtime.d.ts +2 -1
  51. package/dist/bootstrap/pre-action-runtime.d.ts.map +1 -1
  52. package/dist/bootstrap/register-tools-discovery.d.ts +6 -4
  53. package/dist/bootstrap/register-tools-discovery.d.ts.map +1 -1
  54. package/dist/bootstrap/register-tools-discovery.js +32 -19
  55. package/dist/bootstrap/register-tools-discovery.js.map +1 -1
  56. package/dist/bootstrap/register-tools-mount.d.ts +8 -5
  57. package/dist/bootstrap/register-tools-mount.d.ts.map +1 -1
  58. package/dist/bootstrap/register-tools-mount.js +35 -6
  59. package/dist/bootstrap/register-tools-mount.js.map +1 -1
  60. package/dist/bootstrap/register-tools.d.ts.map +1 -1
  61. package/dist/bootstrap/register-tools.js +0 -2
  62. package/dist/bootstrap/register-tools.js.map +1 -1
  63. package/dist/bootstrap/render-bootstrap-diagnostics.d.ts +13 -0
  64. package/dist/bootstrap/render-bootstrap-diagnostics.d.ts.map +1 -0
  65. package/dist/bootstrap/render-bootstrap-diagnostics.js +25 -0
  66. package/dist/bootstrap/render-bootstrap-diagnostics.js.map +1 -0
  67. package/dist/bootstrap/run-plane.d.ts.map +1 -1
  68. package/dist/bootstrap/run-plane.js +9 -4
  69. package/dist/bootstrap/run-plane.js.map +1 -1
  70. package/dist/bootstrap/state-seams.d.ts.map +1 -1
  71. package/dist/bootstrap/state-seams.js +0 -1
  72. package/dist/bootstrap/state-seams.js.map +1 -1
  73. package/dist/bootstrap/synthesize-external-tool.d.ts +0 -37
  74. package/dist/bootstrap/synthesize-external-tool.d.ts.map +1 -1
  75. package/dist/bootstrap/synthesize-external-tool.js +18 -67
  76. package/dist/bootstrap/synthesize-external-tool.js.map +1 -1
  77. package/dist/bootstrap/tool-command-worker-context.d.ts.map +1 -1
  78. package/dist/bootstrap/tool-command-worker-context.js +0 -1
  79. package/dist/bootstrap/tool-command-worker-context.js.map +1 -1
  80. package/dist/bootstrap/tool-command-worker-entry.d.ts.map +1 -1
  81. package/dist/bootstrap/tool-command-worker-entry.js +1 -3
  82. package/dist/bootstrap/tool-command-worker-entry.js.map +1 -1
  83. package/dist/bootstrap/tool-trust.d.ts.map +1 -1
  84. package/dist/bootstrap/tool-trust.js +15 -0
  85. package/dist/bootstrap/tool-trust.js.map +1 -1
  86. package/dist/bootstrap/validate-tool.d.ts.map +1 -1
  87. package/dist/bootstrap/validate-tool.js +63 -6
  88. package/dist/bootstrap/validate-tool.js.map +1 -1
  89. package/dist/cli-context.js +0 -1
  90. package/dist/cli-context.js.map +1 -1
  91. package/dist/commands/agent-catalog.d.ts.map +1 -1
  92. package/dist/commands/agent-catalog.js +14 -5
  93. package/dist/commands/agent-catalog.js.map +1 -1
  94. package/dist/commands/assemble-outcome.d.ts +2 -1
  95. package/dist/commands/assemble-outcome.d.ts.map +1 -1
  96. package/dist/commands/assemble-outcome.js +33 -16
  97. package/dist/commands/assemble-outcome.js.map +1 -1
  98. package/dist/commands/command-scope-index.d.ts +1 -1
  99. package/dist/commands/command-scope-index.js +2 -2
  100. package/dist/commands/command-scope-index.js.map +1 -1
  101. package/dist/commands/completion.d.ts +7 -33
  102. package/dist/commands/completion.d.ts.map +1 -1
  103. package/dist/commands/completion.js +76 -69
  104. package/dist/commands/completion.js.map +1 -1
  105. package/dist/commands/history.d.ts +3 -6
  106. package/dist/commands/history.d.ts.map +1 -1
  107. package/dist/commands/history.js +7 -12
  108. package/dist/commands/history.js.map +1 -1
  109. package/dist/commands/host-command-specs.d.ts +6 -30
  110. package/dist/commands/host-command-specs.d.ts.map +1 -1
  111. package/dist/commands/host-command-specs.js +10 -33
  112. package/dist/commands/host-command-specs.js.map +1 -1
  113. package/dist/commands/host-subcommand-groups.d.ts +8 -72
  114. package/dist/commands/host-subcommand-groups.d.ts.map +1 -1
  115. package/dist/commands/host-subcommand-groups.js +9 -400
  116. package/dist/commands/host-subcommand-groups.js.map +1 -1
  117. package/dist/commands/host-subcommand-plugins.d.ts +20 -0
  118. package/dist/commands/host-subcommand-plugins.d.ts.map +1 -0
  119. package/dist/commands/host-subcommand-plugins.js +116 -0
  120. package/dist/commands/host-subcommand-plugins.js.map +1 -0
  121. package/dist/commands/host-subcommand-sessions.d.ts +8 -0
  122. package/dist/commands/host-subcommand-sessions.d.ts.map +1 -0
  123. package/dist/commands/host-subcommand-sessions.js +201 -0
  124. package/dist/commands/host-subcommand-sessions.js.map +1 -0
  125. package/dist/commands/host-subcommand-shared.d.ts +20 -0
  126. package/dist/commands/host-subcommand-shared.d.ts.map +1 -0
  127. package/dist/commands/host-subcommand-shared.js +15 -0
  128. package/dist/commands/host-subcommand-shared.js.map +1 -0
  129. package/dist/commands/init/file-classifier.d.ts.map +1 -1
  130. package/dist/commands/init/file-classifier.js +0 -1
  131. package/dist/commands/init/file-classifier.js.map +1 -1
  132. package/dist/commands/init/state-machine.d.ts.map +1 -1
  133. package/dist/commands/init/state-machine.js +0 -1
  134. package/dist/commands/init/state-machine.js.map +1 -1
  135. package/dist/commands/plugin/host-dir.d.ts.map +1 -1
  136. package/dist/commands/plugin/host-dir.js +0 -1
  137. package/dist/commands/plugin/host-dir.js.map +1 -1
  138. package/dist/commands/plugin-host-ops.d.ts.map +1 -1
  139. package/dist/commands/plugin-host-ops.js +0 -1
  140. package/dist/commands/plugin-host-ops.js.map +1 -1
  141. package/dist/commands/plugin.d.ts.map +1 -1
  142. package/dist/commands/plugin.js +0 -1
  143. package/dist/commands/plugin.js.map +1 -1
  144. package/dist/commands/session-show.d.ts +3 -1
  145. package/dist/commands/session-show.d.ts.map +1 -1
  146. package/dist/commands/session-show.js +23 -9
  147. package/dist/commands/session-show.js.map +1 -1
  148. package/dist/commands/shared.d.ts +3 -1
  149. package/dist/commands/shared.d.ts.map +1 -1
  150. package/dist/commands/tools/doctor.d.ts +7 -0
  151. package/dist/commands/tools/doctor.d.ts.map +1 -0
  152. package/dist/commands/tools/doctor.js +12 -0
  153. package/dist/commands/tools/doctor.js.map +1 -0
  154. package/dist/commands/tools/index.d.ts.map +1 -1
  155. package/dist/commands/tools/index.js +58 -8
  156. package/dist/commands/tools/index.js.map +1 -1
  157. package/dist/commands/uninstall/targets.d.ts.map +1 -1
  158. package/dist/commands/uninstall/targets.js +0 -1
  159. package/dist/commands/uninstall/targets.js.map +1 -1
  160. package/dist/commands/uninstall.d.ts.map +1 -1
  161. package/dist/commands/uninstall.js +0 -1
  162. package/dist/commands/uninstall.js.map +1 -1
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +4 -4
  165. package/dist/index.js.map +1 -1
  166. package/dist/open-report.d.ts.map +1 -1
  167. package/dist/open-report.js +0 -1
  168. package/dist/open-report.js.map +1 -1
  169. package/dist/report-compose.d.ts.map +1 -1
  170. package/dist/report-compose.js +0 -2
  171. package/dist/report-compose.js.map +1 -1
  172. package/dist/session-replay-registry.js +0 -1
  173. package/dist/session-replay-registry.js.map +1 -1
  174. package/dist/telemetry/sdk-init.d.ts.map +1 -1
  175. package/dist/telemetry/sdk-init.js +1 -1
  176. package/dist/telemetry/sdk-init.js.map +1 -1
  177. package/dist/ui/render-diagnostic.d.ts +20 -0
  178. package/dist/ui/render-diagnostic.d.ts.map +1 -0
  179. package/dist/ui/render-diagnostic.js +22 -0
  180. package/dist/ui/render-diagnostic.js.map +1 -0
  181. package/dist/ui/result-to-view.d.ts.map +1 -1
  182. package/dist/ui/result-to-view.js +13 -102
  183. package/dist/ui/result-to-view.js.map +1 -1
  184. package/dist/ui/views/tools-views.d.ts +2 -1
  185. package/dist/ui/views/tools-views.d.ts.map +1 -1
  186. package/dist/ui/views/tools-views.js +46 -5
  187. package/dist/ui/views/tools-views.js.map +1 -1
  188. package/dist/update-notifier.d.ts.map +1 -1
  189. package/dist/update-notifier.js +0 -1
  190. package/dist/update-notifier.js.map +1 -1
  191. package/dist/update-state.d.ts.map +1 -1
  192. package/dist/update-state.js +0 -1
  193. package/dist/update-state.js.map +1 -1
  194. package/package.json +33 -32
@@ -22,42 +22,13 @@
22
22
  * that can query `opensip fit --list` at completion time.
23
23
  */
24
24
  import { commonFlags } from '@opensip-cli/contracts';
25
- /**
26
- * Internal/machine-facing command names never offered in shell completion.
27
- * These are spawned by the host (sharded build, off-process engine workers,
28
- * machine exports), never typed by a user.
29
- *
30
- * This is the STATIC FALLBACK / default for {@link assembleCompletionInventory}'s
31
- * `internalCommands` argument. The live path passes a descriptor-driven set
32
- * (`visibility: 'internal'` + this fallback), keeping the runtime filter in
33
- * lockstep with the `--help` hide pass. The set still backs the completion-drift
34
- * test, and matters whenever a caller does not supply the descriptor-derived set.
35
- *
36
- * Note: the four `*-run-worker` / `*-shard-worker` names AND
37
- * `graph-equivalence-check` are the Tier-3 `visibility: 'internal'` commands —
38
- * they also flow through the descriptor-driven set. They are listed here so the
39
- * static fallback is correct on its own (the historical gap was the missing
40
- * `graph-equivalence-check`).
41
- */
42
- /**
43
- * Internal/machine-facing command names never offered in shell completion — the
44
- * `visibility: 'internal'` Tier-3 commands: `*-run-worker` / `*-shard-worker` and
45
- * `graph-equivalence-check` are machine-only IPC/CI bootstrap entry points
46
- * (ADR-0028), revealed by `OPENSIP_CLI_SHOW_INTERNAL=1`.
47
- *
48
- * The legacy flat-root export aliases (`catalog-export` / `sarif-export` /
49
- * `graph-baseline-export` / `fit-baseline-export`) were removed entirely, so they
50
- * no longer appear in the tool registry and need no completion suppression — the
51
- * canonical nested `<tool> export` forms are the only export surface.
52
- */
25
+ /** Internal/machine-facing commands excluded from shell completion (host-spawned workers). */
53
26
  export const INTERNAL_COMMANDS = new Set([
54
27
  'graph-shard-worker',
55
28
  'graph-equivalence-check',
56
29
  'fit-run-worker',
57
30
  'sim-run-worker',
58
31
  'graph-run-worker',
59
- // ADR-0054 M4-E: the host-owned dispatch worker subcommand (forked by the
60
- // supervisor; never a public surface).
61
32
  '__tool-command-worker',
62
33
  ]);
63
34
  /** Long `--flag` form of each registry spec (short alias + arg placeholder
@@ -104,6 +75,64 @@ export function specLongFlags(spec) {
104
75
  .filter((f) => f !== undefined);
105
76
  return [...new Set([...common, ...opts, '--help'])];
106
77
  }
78
+ function addFlatSpec(spec, flags, acc) {
79
+ const primaryAliases = spec.aliases ?? [];
80
+ if (primaryAliases.length > 0) {
81
+ acc.parentAliases[spec.name] = primaryAliases;
82
+ }
83
+ for (const name of [spec.name, ...primaryAliases]) {
84
+ acc.subcommands.push(name);
85
+ acc.commandFlags[name] = flags;
86
+ }
87
+ }
88
+ function addNestedSpec(spec, flags, acc) {
89
+ if (spec.parent === undefined)
90
+ return;
91
+ const leaves = (acc.toolGroupLeaves[spec.parent] ??= []);
92
+ for (const name of [spec.name, ...(spec.aliases ?? [])]) {
93
+ leaves.push(name);
94
+ acc.commandFlags[`${spec.parent} ${name}`] = flags;
95
+ }
96
+ }
97
+ function addSpecToInventory(spec, internalCommands, acc) {
98
+ if (internalCommands.has(spec.name))
99
+ return;
100
+ const flags = specLongFlags(spec);
101
+ if (spec.parent !== undefined) {
102
+ addNestedSpec(spec, flags, acc);
103
+ return;
104
+ }
105
+ addFlatSpec(spec, flags, acc);
106
+ }
107
+ function addGroupedCommands(groups, subcommands, groupSubcommands) {
108
+ for (const group of groups) {
109
+ subcommands.push(group.name);
110
+ groupSubcommands[group.name] = group.leaves.map((l) => l.name);
111
+ }
112
+ }
113
+ function foldToolLeaves(toolGroupLeaves, parentAliases, commandFlags, groupSubcommands) {
114
+ for (const [parent, leaves] of Object.entries(toolGroupLeaves)) {
115
+ groupSubcommands[parent] = [...(groupSubcommands[parent] ?? []), ...leaves];
116
+ for (const alias of parentAliases[parent] ?? []) {
117
+ groupSubcommands[alias] = [...(groupSubcommands[alias] ?? []), ...leaves];
118
+ for (const leaf of leaves) {
119
+ const parentFlags = commandFlags[`${parent} ${leaf}`];
120
+ if (parentFlags !== undefined) {
121
+ commandFlags[`${alias} ${leaf}`] = parentFlags;
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ function foldToolPluginGroups(toolPluginGroups, groupSubcommands) {
128
+ for (const group of toolPluginGroups ?? []) {
129
+ const pluginParents = [group.parentVerb, ...(group.parentAliases ?? [])];
130
+ for (const parent of pluginParents) {
131
+ groupSubcommands[parent] = [...(groupSubcommands[parent] ?? []), 'plugin'];
132
+ groupSubcommands[`${parent} plugin`] = group.leaves.map((l) => l.name);
133
+ }
134
+ }
135
+ }
107
136
  /**
108
137
  * Assemble the completion inventory from the live specs. Pure: callers pass
109
138
  * the tool command specs (from the populated `ToolRegistry`), the top-level
@@ -120,56 +149,34 @@ export function specLongFlags(spec) {
120
149
  */
121
150
  export function assembleCompletionInventory(input) {
122
151
  const internalCommands = input.internalCommands ?? INTERNAL_COMMANDS;
123
- const commandFlags = {};
124
- const subcommands = [];
125
- // `parent` → leaf names, accumulated from `parent`-nested tool specs (the
126
- // `<tool> <verb>` grammar). Merged into `groupSubcommands` below so the
127
- // emitted script offers `<parent> <leaf>` exactly like a host group.
128
- const toolGroupLeaves = {};
152
+ const acc = {
153
+ commandFlags: {},
154
+ subcommands: [],
155
+ // `parent` leaf names, accumulated from `parent`-nested tool specs (the
156
+ // `<tool> <verb>` grammar). Merged into `groupSubcommands` below so the
157
+ // emitted script offers `<parent> <leaf>` exactly like a host group.
158
+ toolGroupLeaves: {},
159
+ parentAliases: {},
160
+ };
129
161
  for (const spec of [...input.toolSpecs, ...input.hostSpecs]) {
130
- if (internalCommands.has(spec.name))
131
- continue;
132
- const flags = specLongFlags(spec);
133
- // A `parent`-nested tool spec is a sub-subcommand, NOT a top-level command:
134
- // offer it as a leaf under its parent and key its flags under the qualified
135
- // `${parent} ${name}` path (mirroring the host group leaves).
136
- if (spec.parent !== undefined) {
137
- const leaves = (toolGroupLeaves[spec.parent] ??= []);
138
- for (const name of [spec.name, ...(spec.aliases ?? [])]) {
139
- leaves.push(name);
140
- commandFlags[`${spec.parent} ${name}`] = flags;
141
- }
142
- continue;
143
- }
144
- for (const name of [spec.name, ...(spec.aliases ?? [])]) {
145
- subcommands.push(name);
146
- commandFlags[name] = flags;
147
- }
162
+ addSpecToInventory(spec, internalCommands, acc);
148
163
  }
149
164
  const groupSubcommands = {};
150
- for (const group of input.groups) {
151
- subcommands.push(group.name);
152
- groupSubcommands[group.name] = group.leaves.map((l) => l.name);
153
- }
165
+ addGroupedCommands(input.groups, acc.subcommands, groupSubcommands);
154
166
  // Fold tool-command sub-subcommands into the group map. A primary verb
155
167
  // (e.g. `graph`) is already a top-level subcommand with its own flags; adding
156
168
  // its nested leaves here lets the script also complete `graph export` etc.
157
- for (const [parent, leaves] of Object.entries(toolGroupLeaves)) {
158
- groupSubcommands[parent] = [...(groupSubcommands[parent] ?? []), ...leaves];
159
- }
169
+ foldToolLeaves(acc.toolGroupLeaves, acc.parentAliases, acc.commandFlags, groupSubcommands);
160
170
  // Fold the per-tool `plugin` groups in: `plugin` becomes a completable leaf
161
171
  // under the tool verb (`opensip fit <TAB>` ⇒ `… plugin`), and the bound
162
- // leaf names register under the doubly-nested `${toolVerb} plugin` key for
172
+ // leaf names register under the doubly-nested `${parentVerb} plugin` key for
163
173
  // deeper completion. There is NO top-level `plugin` group anymore.
164
- for (const group of input.toolPluginGroups ?? []) {
165
- groupSubcommands[group.toolVerb] = [...(groupSubcommands[group.toolVerb] ?? []), 'plugin'];
166
- groupSubcommands[`${group.toolVerb} plugin`] = group.leaves.map((l) => l.name);
167
- }
174
+ foldToolPluginGroups(input.toolPluginGroups, groupSubcommands);
168
175
  // `help` is a Commander built-in the script also surfaces.
169
- subcommands.push('help');
176
+ acc.subcommands.push('help');
170
177
  return {
171
- subcommands: [...new Set(subcommands)].sort(),
172
- commandFlags,
178
+ subcommands: [...new Set(acc.subcommands)].sort(),
179
+ commandFlags: acc.commandFlags,
173
180
  groupSubcommands,
174
181
  };
175
182
  }
@@ -1 +1 @@
1
- {"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,wBAAwB,CAAC;AAIzE;;;;;;;;;;;;;;;;GAgBG;AACH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAwB,IAAI,GAAG,CAAC;IAC5D,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,0EAA0E;IAC1E,uCAAuC;IACvC,uBAAuB;CACxB,CAAC,CAAC;AAsDH;;;wEAGwE;AACxE,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CACnC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE;IAC9C,MAAM,KAAK,GAAG,gBAAgB,CAAC,IA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,CAAC;AACH,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,KAAY,EACZ,SAA8B,EAC9B,QAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3D,KAAK,CAAC,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AACjD,CAAC"}
@@ -1,18 +1,15 @@
1
1
  /**
2
2
  * history command — show run history.
3
- *
4
- * Backed by SessionRepo over the project-local SQLite DataStore.
5
- * The CLI bootstrap opens the DataStore in `preAction`; this command
6
- * receives the constructed repo from its caller.
7
3
  */
8
4
  import type { HistoryResult } from '@opensip-cli/contracts';
9
- import type { ToolShortId } from '@opensip-cli/core';
5
+ import type { ToolRegistry, ToolShortId } from '@opensip-cli/core';
10
6
  import type { DataStore } from '@opensip-cli/datastore';
11
7
  export interface ShowHistoryOptions {
12
8
  readonly tool?: ToolShortId;
13
9
  readonly limit?: number;
14
- /** Agent ergonomics: drop the heavy per-session payload (keep showCommand + lightweight summary). */
15
10
  readonly summaryOnly?: boolean;
11
+ /** When set, session list displays canonical tool names. */
12
+ readonly registry?: ToolRegistry;
16
13
  }
17
14
  export declare function showHistory(datastore: DataStore, opts?: ShowHistoryOptions): HistoryResult;
18
15
  //# sourceMappingURL=history.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qGAAqG;IACrG,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,kBAAuB,GAAG,aAAa,CAO9F"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;CAClC;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,kBAAuB,GAAG,aAAa,CAS9F"}
@@ -1,29 +1,24 @@
1
1
  /**
2
2
  * history command — show run history.
3
- *
4
- * Backed by SessionRepo over the project-local SQLite DataStore.
5
- * The CLI bootstrap opens the DataStore in `preAction`; this command
6
- * receives the constructed repo from its caller.
7
3
  */
4
+ import { buildToolIdentityIndex } from '@opensip-cli/core';
8
5
  import { SessionRepo } from '@opensip-cli/session-store';
9
6
  export function showHistory(datastore, opts = {}) {
10
7
  const repo = new SessionRepo(datastore);
11
- const sessions = repo.list(opts).map((s) => toHistorySession(s, opts.summaryOnly));
8
+ const identityIndex = opts.registry === undefined ? undefined : buildToolIdentityIndex(opts.registry);
9
+ const sessions = repo.list(opts).map((s) => toHistorySession(s, opts.summaryOnly, identityIndex));
12
10
  return {
13
11
  type: 'history',
14
12
  sessions,
15
13
  };
16
14
  }
17
- function toHistorySession(session, summaryOnly = false) {
15
+ function toHistorySession(session, summaryOnly = false, identityIndex) {
18
16
  const summary = sessionSummary(session.payload);
19
- // In summary-only mode, drop the (potentially large) tool-owned payload for
20
- // agent "menu" use cases the lightweight summary (if present) + showCommand
21
- // remain. `payload` is `readonly?`, so we omit it by spreading `rest` (without
22
- // payload) and adding `payload` back only when NOT summary-only — no mutation /
23
- // delete (which would need an `any` cast to bypass readonly).
24
- const { payload, ...rest } = session;
17
+ const { payload, tool, ...rest } = session;
18
+ const displayTool = identityIndex === undefined ? tool : identityIndex.canonicalForStoredTool(tool);
25
19
  return {
26
20
  ...rest,
21
+ tool: displayTool,
27
22
  ...(summaryOnly ? {} : { payload }),
28
23
  ...(summary === undefined ? {} : { summary }),
29
24
  showCommand: `opensip sessions show ${session.id} --json`,
@@ -1 +1 @@
1
- {"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,MAAM,UAAU,WAAW,CAAC,SAAoB,EAAE,OAA2B,EAAE;IAC7E,MAAM,IAAI,GAAG,IAAI,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACnF,OAAO;QACL,IAAI,EAAE,SAAS;QACf,QAAQ;KACT,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAsB,EAAE,WAAW,GAAG,KAAK;IACnE,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,4EAA4E;IAC5E,8EAA8E;IAC9E,+EAA+E;IAC/E,gFAAgF;IAChF,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I,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACtE,MAAM,OAAO,GAAI,OAAiC,CAAC,OAAO,CAAC;IAC3D,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACtE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAkC,CAAC;IACvF,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,MAAM,KAAK,QAAQ;QAC1B,OAAO,MAAM,KAAK,QAAQ;QAC1B,OAAO,MAAM,KAAK,QAAQ;QAC1B,OAAO,QAAQ,KAAK,QAAQ,EAC5B,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACrD,CAAC"}
@@ -1,34 +1,10 @@
1
1
  /**
2
- * host-command-specs — the CLI-owned (host) commands expressed as declarative
3
- * {@link CommandSpec}s, mounted through the SAME `mountCommandSpec` plane the
4
- * tools use (launch Phase 6).
5
- *
6
- * Host commands (`init` / `configure` / `sessions` / `report` / `completion` /
7
- * `uninstall` / `tools`) are NOT tool plugins they don't ride on a
8
- * `Tool.commandSpecs` and aren't discovered. Mounting them via the same
9
- * `mountCommandSpec` means the Phase 7 `command-surface-parity` guardrail sees
10
- * ONE uniform command surface: no second, more-privileged raw-Commander path for
11
- * "blessed" CLI-owned commands. The pack-management `plugin {add,list,remove,
12
- * sync}` ops are host-owned too, but mount UNDER each pack-supporting tool
13
- * primary (`opensip fit plugin …`) via {@link mountToolPluginGroups} — there is
14
- * no top-level `opensip plugin`.
15
- *
16
- * Each spec's handler closes over the per-invocation {@link CliCommandsContext}
17
- * (render / setExitCode / datastore thunk / pluginLayouts). The mount layer only
18
- * reaches for `render` / `setExitCode` (the `command-result` + thrown-`ToolError`
19
- * arms) — the `signal-envelope` / `live-view` arms are never exercised by a host
20
- * command, so `CliCommandsContext` is a valid (leaner) `CommandMountContext`.
21
- *
22
- * The action-less subcommand GROUPS (`sessions`, `tools`) + the domain-bound
23
- * per-tool `plugin` group leaves (and {@link mountToolPluginGroups}) live in
24
- * `host-subcommand-groups.ts` (a leaf module that lets `completion.ts` source its
25
- * sub-subcommand names without a cycle). This module assembles the TOP-LEVEL
26
- * specs and mounts the whole surface.
27
- *
28
- * Specs are built per-invocation (in the builders below, not at module load) so
29
- * the `--cwd` defaults that resolve to `process.cwd()` are evaluated fresh each
30
- * run — byte-identical to the former `.option(spec, desc, process.cwd())`
31
- * registrars.
2
+ * host-command-specs — CLI-owned commands as declarative {@link CommandSpec}s,
3
+ * mounted via the same `mountCommandSpec` plane as tools (Phase 6/7 parity).
4
+ * Host commands (`init`, `configure`, `sessions`, `report`, `completion`,
5
+ * `uninstall`, `tools`) are not tool plugins. Action-less groups and per-tool
6
+ * `plugin` leaves live in `host-subcommand-groups.ts`; this module assembles
7
+ * top-level specs. Built per-invocation so `--cwd` defaults stay fresh.
32
8
  */
33
9
  import { type HostSpec } from './host-subcommand-groups.js';
34
10
  import type { CliCommandsContext } from './shared.js';
@@ -1 +1 @@
1
- {"version":3,"file":"host-command-specs.d.ts","sourceRoot":"","sources":["../../src/commands/host-command-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAmBH,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,6BAA6B,CAAC;AAMrC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,wBAAwB,CAAC;AAgUtE;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,QAAQ,EAAE,CAanF;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAWpF"}
1
+ {"version":3,"file":"host-command-specs.d.ts","sourceRoot":"","sources":["../../src/commands/host-command-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmBH,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,6BAA6B,CAAC;AAMrC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,wBAAwB,CAAC;AAiUtE;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,QAAQ,EAAE,CAanF;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAWpF"}
@@ -1,34 +1,10 @@
1
1
  /**
2
- * host-command-specs — the CLI-owned (host) commands expressed as declarative
3
- * {@link CommandSpec}s, mounted through the SAME `mountCommandSpec` plane the
4
- * tools use (launch Phase 6).
5
- *
6
- * Host commands (`init` / `configure` / `sessions` / `report` / `completion` /
7
- * `uninstall` / `tools`) are NOT tool plugins they don't ride on a
8
- * `Tool.commandSpecs` and aren't discovered. Mounting them via the same
9
- * `mountCommandSpec` means the Phase 7 `command-surface-parity` guardrail sees
10
- * ONE uniform command surface: no second, more-privileged raw-Commander path for
11
- * "blessed" CLI-owned commands. The pack-management `plugin {add,list,remove,
12
- * sync}` ops are host-owned too, but mount UNDER each pack-supporting tool
13
- * primary (`opensip fit plugin …`) via {@link mountToolPluginGroups} — there is
14
- * no top-level `opensip plugin`.
15
- *
16
- * Each spec's handler closes over the per-invocation {@link CliCommandsContext}
17
- * (render / setExitCode / datastore thunk / pluginLayouts). The mount layer only
18
- * reaches for `render` / `setExitCode` (the `command-result` + thrown-`ToolError`
19
- * arms) — the `signal-envelope` / `live-view` arms are never exercised by a host
20
- * command, so `CliCommandsContext` is a valid (leaner) `CommandMountContext`.
21
- *
22
- * The action-less subcommand GROUPS (`sessions`, `tools`) + the domain-bound
23
- * per-tool `plugin` group leaves (and {@link mountToolPluginGroups}) live in
24
- * `host-subcommand-groups.ts` (a leaf module that lets `completion.ts` source its
25
- * sub-subcommand names without a cycle). This module assembles the TOP-LEVEL
26
- * specs and mounts the whole surface.
27
- *
28
- * Specs are built per-invocation (in the builders below, not at module load) so
29
- * the `--cwd` defaults that resolve to `process.cwd()` are evaluated fresh each
30
- * run — byte-identical to the former `.option(spec, desc, process.cwd())`
31
- * registrars.
2
+ * host-command-specs — CLI-owned commands as declarative {@link CommandSpec}s,
3
+ * mounted via the same `mountCommandSpec` plane as tools (Phase 6/7 parity).
4
+ * Host commands (`init`, `configure`, `sessions`, `report`, `completion`,
5
+ * `uninstall`, `tools`) are not tool plugins. Action-less groups and per-tool
6
+ * `plugin` leaves live in `host-subcommand-groups.ts`; this module assembles
7
+ * top-level specs. Built per-invocation so `--cwd` defaults stay fresh.
32
8
  */
33
9
  import { EXIT_CODES } from '@opensip-cli/contracts';
34
10
  import { ConfigurationError, defineCommand } from '@opensip-cli/core';
@@ -306,8 +282,9 @@ function buildHostCompletionSurface(ctx) {
306
282
  return {
307
283
  specs: [...buildNonCompletionHostSpecs(ctx), COMPLETION_SELF_SPEC],
308
284
  groups: buildHostSubcommandGroups(ctx),
309
- toolPluginGroups: buildToolPluginGroups(ctx).map((g) => ({
310
- toolVerb: g.toolVerb,
285
+ toolPluginGroups: buildToolPluginGroups(ctx, ctx.tools).map((g) => ({
286
+ parentVerb: g.parentVerb,
287
+ parentAliases: g.parentAliases,
311
288
  leaves: g.leaves.map((l) => ({ name: l.name })),
312
289
  })),
313
290
  };
@@ -352,6 +329,6 @@ export function mountHostCommands(program, ctx) {
352
329
  mountCommandSpec(parent, leaf, ctx);
353
330
  }
354
331
  }
355
- mountToolPluginGroups(program, ctx);
332
+ mountToolPluginGroups(program, ctx, ctx.tools);
356
333
  }
357
334
  //# sourceMappingURL=host-command-specs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-command-specs.js","sourceRoot":"","sources":["../../src/commands/host-command-specs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AAE3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,GAKlB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,GAEtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKlD,kFAAkF;AAClF,MAAM,cAAc,GAAG,gBAAyB,CAAC;AAYjD,SAAS,aAAa,CAAC,GAAuB;IAC5C,OAAO,aAAa,CAA8B;QAChD,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,6EAA6E;QAC1F,0EAA0E;QAC1E,uEAAuE;QACvE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;QACrC,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,QAAQ;gBACf,WAAW,EACT,6HAA6H;gBAC/H,YAAY,EAAE,E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QACxB,kBAAkB,EAAE;QACpB,yEAAyE;QACzE,2EAA2E;QAC3E,0EAA0E;QAC1E,4BAA4B;KAC7B,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAmB,EAAE,GAAuB;IAC5E,KAAK,MAAM,IAAI,IAAI,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,gBAAgB,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,yBAAyB,CAAC,GAAG,CAAC,EAAE,CAAC;QACnD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC1E,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YAChC,gBAAgB,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IACD,qBAAqB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AACjD,CAAC"}
@@ -13,61 +13,15 @@
13
13
  * leaves + inventory here (a module that imports NEITHER `completion.ts` nor
14
14
  * `host-command-specs.ts`) lets both depend on this leaf module without a cycle.
15
15
  *
16
- * The two parents are action-less GROUPS a parent with no action body is not
17
- * a single mountable `CommandSpec`, so it stays a raw `program.command(name)`
18
- * shell (the FINITE, NAMED documented exceptions for the Phase 7
19
- * `command-surface-parity` guardrail's allow-list, see {@link HOST_SUBCOMMAND_GROUPS}).
20
- * Their LEAVES (`sessions list|purge`, `tools list|install|…`) ARE specs.
21
- *
22
- * The PACK-management `plugin {add,list,remove,sync}` ops are NO LONGER a
23
- * top-level group: they mount as a `plugin` group UNDER each pack-supporting
24
- * tool primary (`opensip fit plugin …`, `opensip sim plugin …`) via
25
- * `mountToolPluginGroups`, with the domain pre-bound from the tool (no
26
- * `--domain` flag). Whole Tool plugins remain `opensip tools …`.
16
+ * Leaf specs are split across `host-subcommand-sessions.ts` and
17
+ * `host-subcommand-plugins.ts` to stay under the file-length-limit; this module
18
+ * remains the cycle-free assembly + inventory surface.
27
19
  */
28
- import { type CommandSpec, type ProjectContext } from '@opensip-cli/core';
20
+ import { type HostSpec } from './host-subcommand-shared.js';
29
21
  import type { CliCommandsContext } from './shared.js';
30
- import type { CliProgram } from '@opensip-cli/contracts';
31
- /** A host command spec — handler receives the {@link CliCommandsContext}. */
32
- export type HostSpec = CommandSpec<unknown, CliCommandsContext>;
33
- /** Prefer the discovered project root; fall back to literal cwd; finally process.cwd(). */
34
- export declare function effectiveCwd(opts: {
35
- cwd?: string;
36
- projectContext?: ProjectContext;
37
- }): string;
38
- /**
39
- * Build the four domain-bound `plugin` leaf specs for ONE pack-supporting tool
40
- * (`add`/`list`/`remove`/`sync`, all scoped to `domain`). Shared by the mount
41
- * path (`mountToolPluginGroups`), the command-scope index, and the completion
42
- * inventory so the three derive the SAME leaves.
43
- */
44
- export declare function buildToolPluginLeaves(ctx: CliCommandsContext, domain: string): readonly HostSpec[];
45
- /** One pack-supporting tool's `plugin` group: the tool's primary verb + the
46
- * action-less `plugin` parent + the four domain-bound leaves. */
47
- export interface ToolPluginGroup {
48
- /** The tool primary verb the `plugin` group mounts under (`fit`/`sim`). */
49
- readonly toolVerb: string;
50
- /** The plugin domain (== `toolVerb` for the pack-supporting tools). */
51
- readonly domain: string;
52
- readonly description: string;
53
- readonly leaves: readonly HostSpec[];
54
- }
55
- /**
56
- * Derive the per-tool `plugin` groups from the host's contributed
57
- * `pluginLayouts` — one group per pack-supporting domain (fit/sim). A tool with
58
- * no `pluginLayout` (e.g. `graph`) contributes none, so it gets no `plugin`
59
- * group. The single source the mount path + scope index + completion all read.
60
- */
61
- export declare function buildToolPluginGroups(ctx: CliCommandsContext): readonly ToolPluginGroup[];
62
- /**
63
- * Mount each per-tool `plugin` group UNDER its pack-supporting tool primary
64
- * (`opensip fit plugin …`), domain pre-bound from the tool. The host derives the
65
- * groups from the contributed `pluginLayouts` (fit/sim; graph has none, so no
66
- * group). The tool primary must already be mounted — it is, because the
67
- * composition root mounts tools before the host commands; a domain whose primary
68
- * is absent (isolated host-only tests) is skipped (nowhere to hang it).
69
- */
70
- export declare function mountToolPluginGroups(program: CliProgram, ctx: CliCommandsContext): void;
22
+ export type { HostSpec } from './host-subcommand-shared.js';
23
+ export { effectiveCwd } from './host-subcommand-shared.js';
24
+ export { buildToolPluginLeaves, buildToolPluginGroups, mountToolPluginGroups, type ToolPluginGroup, } from './host-subcommand-plugins.js';
71
25
  /** One subcommand-group parent: a raw action-less `program.command(name)`
72
26
  * shell + the leaf specs that mount onto it. */
73
27
  export interface HostSubcommandGroup {
@@ -82,27 +36,9 @@ export interface HostSubcommandGroup {
82
36
  * allow-lists as documented host exceptions. Every other host command IS a spec.
83
37
  */
84
38
  export declare const HOST_SUBCOMMAND_GROUPS: readonly string[];
85
- /**
86
- * Build the subcommand-group parents with their leaf specs. The mounter turns
87
- * each into a raw parent `program.command(name)` plus `mountCommandSpec(parent,
88
- * leaf)` for each leaf.
89
- */
39
+ /** Build the subcommand-group parents with their leaf specs. */
90
40
  export declare function buildHostSubcommandGroups(ctx: CliCommandsContext): readonly HostSubcommandGroup[];
91
- /**
92
- * The host subcommand-group NAME inventory derived from the live leaf specs —
93
- * the single source the shell-completion script (`completion.ts`) reads for the
94
- * `plugin` / `sessions` sub-subcommand names instead of a second hand-maintained
95
- * list (Phase 6 Task 6.2).
96
- *
97
- * NOTE: only the NAME lists are sourced here — the curated per-command flag
98
- * subsets the completion script offers stay in `completion.ts`, since
99
- * exhaustively deriving every declared flag would change the emitted script. The
100
- * common flags themselves already derive from the shared ADR-0021 registry (the
101
- * same registry the specs' `commonFlags` resolve through), so that half is
102
- * already single-sourced.
103
- */
104
41
  export interface HostCommandInventory {
105
- /** Sub-subcommand names per group (`{ sessions: ['list','purge'], plugin: [...] }`). */
106
42
  readonly groupSubcommands: Readonly<Record<string, readonly string[]>>;
107
43
  }
108
44
  /** Build the host subcommand-group name inventory (single source for completion). */
@@ -1 +1 @@
1
- {"version":3,"file":"host-subcommand-groups.d.ts","sourceRoot":"","sources":["../../src/commands/host-subcommand-groups.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,EAKL,KAAK,WAAW,EAEhB,KAAK,cAAc,EAEpB,MAAM,mBAAmB,CAAC;AAS3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,6EAA6E;AAC7E,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;AAWhE,2FAA2F;AAC3F,wBAAgB,YAAY,CAAC,IAAI,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,cAAc,CAAA;CAAE,GAAG,MAAM,CAE5F;AAyVD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,MAAM,GACb,SAAS,QAAQ,EAAE,CAOrB;AAED;kEACkE;AAClE,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;CACtC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,eAAe,EAAE,CAOzF;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG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