harness-config-manager 0.1.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 (175) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1547 -0
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +584 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/config.d.ts +7 -0
  7. package/dist/commands/config.js +49 -0
  8. package/dist/commands/config.js.map +1 -0
  9. package/dist/commands/context.d.ts +24 -0
  10. package/dist/commands/context.js +329 -0
  11. package/dist/commands/context.js.map +1 -0
  12. package/dist/commands/export.d.ts +19 -0
  13. package/dist/commands/export.js +116 -0
  14. package/dist/commands/export.js.map +1 -0
  15. package/dist/commands/import.d.ts +33 -0
  16. package/dist/commands/import.js +81 -0
  17. package/dist/commands/import.js.map +1 -0
  18. package/dist/commands/info.d.ts +19 -0
  19. package/dist/commands/info.js +235 -0
  20. package/dist/commands/info.js.map +1 -0
  21. package/dist/commands/init.d.ts +5 -0
  22. package/dist/commands/init.js +116 -0
  23. package/dist/commands/init.js.map +1 -0
  24. package/dist/commands/install.d.ts +119 -0
  25. package/dist/commands/install.js +533 -0
  26. package/dist/commands/install.js.map +1 -0
  27. package/dist/commands/list.d.ts +9 -0
  28. package/dist/commands/list.js +102 -0
  29. package/dist/commands/list.js.map +1 -0
  30. package/dist/commands/params.d.ts +58 -0
  31. package/dist/commands/params.js +366 -0
  32. package/dist/commands/params.js.map +1 -0
  33. package/dist/commands/refs.d.ts +60 -0
  34. package/dist/commands/refs.js +329 -0
  35. package/dist/commands/refs.js.map +1 -0
  36. package/dist/commands/registry.d.ts +18 -0
  37. package/dist/commands/registry.js +173 -0
  38. package/dist/commands/registry.js.map +1 -0
  39. package/dist/commands/status.d.ts +10 -0
  40. package/dist/commands/status.js +83 -0
  41. package/dist/commands/status.js.map +1 -0
  42. package/dist/commands/targets.d.ts +8 -0
  43. package/dist/commands/targets.js +61 -0
  44. package/dist/commands/targets.js.map +1 -0
  45. package/dist/commands/uninstall.d.ts +71 -0
  46. package/dist/commands/uninstall.js +322 -0
  47. package/dist/commands/uninstall.js.map +1 -0
  48. package/dist/commands/update.d.ts +66 -0
  49. package/dist/commands/update.js +384 -0
  50. package/dist/commands/update.js.map +1 -0
  51. package/dist/commands/validate.d.ts +3 -0
  52. package/dist/commands/validate.js +38 -0
  53. package/dist/commands/validate.js.map +1 -0
  54. package/dist/core/bundle.d.ts +49 -0
  55. package/dist/core/bundle.js +326 -0
  56. package/dist/core/bundle.js.map +1 -0
  57. package/dist/core/config.d.ts +65 -0
  58. package/dist/core/config.js +112 -0
  59. package/dist/core/config.js.map +1 -0
  60. package/dist/core/conflicts.d.ts +67 -0
  61. package/dist/core/conflicts.js +300 -0
  62. package/dist/core/conflicts.js.map +1 -0
  63. package/dist/core/context.d.ts +139 -0
  64. package/dist/core/context.js +432 -0
  65. package/dist/core/context.js.map +1 -0
  66. package/dist/core/deps.d.ts +62 -0
  67. package/dist/core/deps.js +339 -0
  68. package/dist/core/deps.js.map +1 -0
  69. package/dist/core/errors.d.ts +21 -0
  70. package/dist/core/errors.js +26 -0
  71. package/dist/core/errors.js.map +1 -0
  72. package/dist/core/executor.d.ts +9 -0
  73. package/dist/core/executor.js +139 -0
  74. package/dist/core/executor.js.map +1 -0
  75. package/dist/core/flavors.d.ts +128 -0
  76. package/dist/core/flavors.js +386 -0
  77. package/dist/core/flavors.js.map +1 -0
  78. package/dist/core/frontmatter.d.ts +6 -0
  79. package/dist/core/frontmatter.js +20 -0
  80. package/dist/core/frontmatter.js.map +1 -0
  81. package/dist/core/fsx.d.ts +40 -0
  82. package/dist/core/fsx.js +180 -0
  83. package/dist/core/fsx.js.map +1 -0
  84. package/dist/core/github.d.ts +37 -0
  85. package/dist/core/github.js +157 -0
  86. package/dist/core/github.js.map +1 -0
  87. package/dist/core/harnesses.d.ts +142 -0
  88. package/dist/core/harnesses.js +215 -0
  89. package/dist/core/harnesses.js.map +1 -0
  90. package/dist/core/hash.d.ts +12 -0
  91. package/dist/core/hash.js +34 -0
  92. package/dist/core/hash.js.map +1 -0
  93. package/dist/core/logger.d.ts +16 -0
  94. package/dist/core/logger.js +36 -0
  95. package/dist/core/logger.js.map +1 -0
  96. package/dist/core/overlap.d.ts +79 -0
  97. package/dist/core/overlap.js +155 -0
  98. package/dist/core/overlap.js.map +1 -0
  99. package/dist/core/parameters.d.ts +249 -0
  100. package/dist/core/parameters.js +944 -0
  101. package/dist/core/parameters.js.map +1 -0
  102. package/dist/core/paths.d.ts +20 -0
  103. package/dist/core/paths.js +35 -0
  104. package/dist/core/paths.js.map +1 -0
  105. package/dist/core/planner.d.ts +36 -0
  106. package/dist/core/planner.js +364 -0
  107. package/dist/core/planner.js.map +1 -0
  108. package/dist/core/prompt.d.ts +52 -0
  109. package/dist/core/prompt.js +197 -0
  110. package/dist/core/prompt.js.map +1 -0
  111. package/dist/core/refmap.d.ts +91 -0
  112. package/dist/core/refmap.js +331 -0
  113. package/dist/core/refmap.js.map +1 -0
  114. package/dist/core/refs.d.ts +297 -0
  115. package/dist/core/refs.js +801 -0
  116. package/dist/core/refs.js.map +1 -0
  117. package/dist/core/registry.d.ts +119 -0
  118. package/dist/core/registry.js +363 -0
  119. package/dist/core/registry.js.map +1 -0
  120. package/dist/core/rename.d.ts +36 -0
  121. package/dist/core/rename.js +74 -0
  122. package/dist/core/rename.js.map +1 -0
  123. package/dist/core/rollback.d.ts +38 -0
  124. package/dist/core/rollback.js +226 -0
  125. package/dist/core/rollback.js.map +1 -0
  126. package/dist/core/semver.d.ts +56 -0
  127. package/dist/core/semver.js +214 -0
  128. package/dist/core/semver.js.map +1 -0
  129. package/dist/core/state.d.ts +99 -0
  130. package/dist/core/state.js +196 -0
  131. package/dist/core/state.js.map +1 -0
  132. package/dist/core/store.d.ts +30 -0
  133. package/dist/core/store.js +54 -0
  134. package/dist/core/store.js.map +1 -0
  135. package/dist/core/types.d.ts +515 -0
  136. package/dist/core/types.js +49 -0
  137. package/dist/core/types.js.map +1 -0
  138. package/dist/index.d.ts +16 -0
  139. package/dist/index.js +16 -0
  140. package/dist/index.js.map +1 -0
  141. package/dist/merge/blocks.d.ts +48 -0
  142. package/dist/merge/blocks.js +0 -0
  143. package/dist/merge/blocks.js.map +1 -0
  144. package/dist/merge/json-merge.d.ts +66 -0
  145. package/dist/merge/json-merge.js +176 -0
  146. package/dist/merge/json-merge.js.map +1 -0
  147. package/dist/merge/toml.d.ts +48 -0
  148. package/dist/merge/toml.js +118 -0
  149. package/dist/merge/toml.js.map +1 -0
  150. package/dist/targets/claude-code.d.ts +11 -0
  151. package/dist/targets/claude-code.js +94 -0
  152. package/dist/targets/claude-code.js.map +1 -0
  153. package/dist/targets/copilot.d.ts +13 -0
  154. package/dist/targets/copilot.js +126 -0
  155. package/dist/targets/copilot.js.map +1 -0
  156. package/dist/targets/index.d.ts +20 -0
  157. package/dist/targets/index.js +60 -0
  158. package/dist/targets/index.js.map +1 -0
  159. package/dist/targets/opencode.d.ts +32 -0
  160. package/dist/targets/opencode.js +172 -0
  161. package/dist/targets/opencode.js.map +1 -0
  162. package/dist/targets/pi.d.ts +42 -0
  163. package/dist/targets/pi.js +134 -0
  164. package/dist/targets/pi.js.map +1 -0
  165. package/dist/targets/reasonix.d.ts +27 -0
  166. package/dist/targets/reasonix.js +192 -0
  167. package/dist/targets/reasonix.js.map +1 -0
  168. package/dist/targets/shared.d.ts +33 -0
  169. package/dist/targets/shared.js +109 -0
  170. package/dist/targets/shared.js.map +1 -0
  171. package/dist/targets/types.d.ts +40 -0
  172. package/dist/targets/types.js +17 -0
  173. package/dist/targets/types.js.map +1 -0
  174. package/docs/authoring-bundles.md +828 -0
  175. package/package.json +74 -0
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/cli.js ADDED
@@ -0,0 +1,584 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { Command, Option } from 'commander';
4
+ import { configGetCommand, configListCommand, configSetCommand, configUnsetCommand, } from './commands/config.js';
5
+ import { contextAppendCommand, contextListCommand, contextOverrideCommand, contextRemoveCommand, } from './commands/context.js';
6
+ import { exportCommand } from './commands/export.js';
7
+ import { importCommand } from './commands/import.js';
8
+ import { infoCommand } from './commands/info.js';
9
+ import { initCommand } from './commands/init.js';
10
+ import { installCommand } from './commands/install.js';
11
+ import { listCommand } from './commands/list.js';
12
+ import { DEFAULT_PARAMS_FILE, paramsInitCommand, paramsListCommand, } from './commands/params.js';
13
+ import { registryAddCommand, registryListCommand, registryOpenCommand, registryRemoveCommand, } from './commands/registry.js';
14
+ import { refsCheckCommand, refsFixCommand } from './commands/refs.js';
15
+ import { statusCommand } from './commands/status.js';
16
+ import { targetsCommand } from './commands/targets.js';
17
+ import { uninstallCommand } from './commands/uninstall.js';
18
+ import { updateCommand } from './commands/update.js';
19
+ import { validateCommand } from './commands/validate.js';
20
+ import { ConflictError, HcmError } from './core/errors.js';
21
+ import { ALL_FLAVORS } from './core/flavors.js';
22
+ import { ALL_TARGETS } from './core/harnesses.js';
23
+ import { color, configureLogger, log } from './core/logger.js';
24
+ import { closePrompt } from './core/prompt.js';
25
+ import { TARGET_IDS } from './targets/index.js';
26
+ const program = new Command();
27
+ const cwd = process.cwd();
28
+ // Read the version off package.json rather than repeating it here, so that
29
+ // `npm version` is the only place a release bump has to happen. The relative
30
+ // path holds in both layouts: src/cli.ts under tsx, and dist/cli.js in the
31
+ // published tarball, are each one directory below package.json.
32
+ const { version } = createRequire(import.meta.url)('../package.json');
33
+ program
34
+ .name('hcm')
35
+ .description('Define agents, skills, commands, rules and MCP servers once; install them into ' +
36
+ 'Claude Code, GitHub Copilot, Reasonix, OpenCode and Pi with exact, item-level rollback.')
37
+ .version(version)
38
+ .option('-q, --quiet', 'suppress non-essential output')
39
+ .option('-v, --verbose', 'show skipped resources and other details')
40
+ .hook('preAction', (thisCommand) => {
41
+ const options = thisCommand.opts();
42
+ configureLogger({ quiet: options.quiet ?? false, verbose: options.verbose ?? false });
43
+ })
44
+ /**
45
+ * `--target` is variadic, so `hcm install --target pi 1 2` hands `1` and `2`
46
+ * to the option and leaves the command with no bundle at all. Commander then
47
+ * says "missing required argument", which is true and no help whatsoever --
48
+ * so when the command line has a `-t` in it, say what actually happened.
49
+ *
50
+ * Set before any subcommand is defined, since each one copies the output
51
+ * configuration from its parent as it is created.
52
+ */
53
+ .configureOutput({
54
+ writeErr(str) {
55
+ process.stderr.write(str);
56
+ if (!/missing required argument/.test(str))
57
+ return;
58
+ // `--flavor` is variadic for the same reason and swallows names the same
59
+ // way, so the hint names whichever of the two is on the command line.
60
+ const variadic = [
61
+ { flags: ['-t', '--target'], name: '--target', takes: '<harness...>' },
62
+ { flags: ['-f', '--flavor'], name: '--flavor', takes: '<flavor...>' },
63
+ ].find((option) => process.argv.slice(2).some((arg) => option.flags.includes(arg)));
64
+ if (!variadic)
65
+ return;
66
+ process.stderr.write(`${variadic.name} takes every value after it, so bundle names must come first: ` +
67
+ `hcm <command> <bundle...> ${variadic.name} ${variadic.takes}\n`);
68
+ },
69
+ });
70
+ const scopeOption = () => new Option('-s, --scope <scope>', 'install scope').choices(['project', 'user']).default('project');
71
+ /**
72
+ * Which harnesses a command acts on -- one, several, or `all`.
73
+ *
74
+ * Variadic, so `-t claude pi` is two harnesses in one flag, and each value is
75
+ * an id, an alias or any unambiguous prefix of one. Deliberately not
76
+ * `.choices()`: that would reject the shorthands, and it reports a bad value
77
+ * without the hint about `--target` swallowing bundle names that follow it.
78
+ * `core/harnesses.ts` validates instead.
79
+ */
80
+ const targetOption = () => new Option('-t, --target <target...>', `target harness(es): ${TARGET_IDS.join(', ')}, or "${ALL_TARGETS}"`);
81
+ /**
82
+ * Which parts of a bundle to install -- see `core/flavors.ts`.
83
+ *
84
+ * Variadic like `--target`, so `--flavor python csharp` is two of them, and
85
+ * deliberately not `.choices()`: the valid values are the bundle's, not the
86
+ * CLI's, and `core/flavors.ts` refuses an unknown one against the bundle
87
+ * actually being installed. `all` is reserved for "the whole bundle", which is
88
+ * how a narrowed installation is widened again on `hcm update`.
89
+ */
90
+ const flavorOption = () => new Option('-f, --flavor <flavor...>', `install the bundle's common part plus these flavor(s), or "${ALL_FLAVORS}" for all of it`);
91
+ /**
92
+ * Without this, a conflict asks -- when there is a terminal to ask at, and
93
+ * otherwise errors out, which is what scripts and CI want by default.
94
+ */
95
+ const conflictOption = () => new Option('--on-conflict <policy>', 'what to do when an item is already there: ask, keep the existing one, replace it, or stop').choices(['prompt', 'skip', 'overwrite', 'abort']);
96
+ /**
97
+ * Extensions the machine has, which change where a target files things. Stated
98
+ * once per install and remembered with it, so `hcm update` does not need it
99
+ * again -- see `TargetOptions`.
100
+ */
101
+ const piSubagentsOption = () => new Option('--pi-subagents', 'Pi has the pi-subagents extension: file subagents in .pi/agents/ rather than as skills');
102
+ const targetOptionsFrom = (options) => options.piSubagents ? { piSubagents: true } : {};
103
+ /**
104
+ * Repeatable rather than variadic, unlike `--target` and `--flavor`.
105
+ *
106
+ * A variadic `--param` would swallow the bundle names after it exactly the way
107
+ * those two do -- and here it would be worse, because `NAME=value` pairs are
108
+ * the kind of thing people write several of, so the trap would be sprung most
109
+ * of the time rather than occasionally.
110
+ */
111
+ const collect = (value, previous = []) => [...previous, value];
112
+ /**
113
+ * The values a bundle is customised with. See `core/parameters.ts`; the names
114
+ * are the bundle's, so there is nothing for the CLI to validate here.
115
+ */
116
+ const paramOption = () => new Option('--param <name=value>', 'set a bundle parameter; repeatable, and scopable as bundle:NAME=value or bundle@harness:NAME=value').argParser(collect);
117
+ const paramsFileOption = () => new Option('--params-file <file>', 'read parameter values from a YAML or JSON file; repeatable, later files winning').argParser(collect);
118
+ const noPromptOption = () => new Option('--no-prompt', 'never ask a question: use what is supplied, then the defaults -- no parameter ' +
119
+ 'values, and no menu of harnesses when -t is omitted');
120
+ program
121
+ .command('install')
122
+ .argument('<bundle...>', 'one or more: registered name or id, local path, GitHub URL, or owner/repo[/subdir][#ref]')
123
+ .description('install one or more bundles into one or more harnesses')
124
+ .addOption(targetOption())
125
+ .addOption(flavorOption())
126
+ .addOption(scopeOption())
127
+ .addOption(conflictOption())
128
+ .addOption(paramOption())
129
+ .addOption(paramsFileOption())
130
+ .addOption(noPromptOption())
131
+ .option('--dry-run', 'show what would change without writing')
132
+ .option('--force', 'overwrite conflicting items (same as --on-conflict overwrite)')
133
+ .option('--refresh', 're-download a GitHub bundle instead of using the cache')
134
+ .option('--no-deps', 'install only this bundle, not the ones it requires')
135
+ .addOption(piSubagentsOption())
136
+ .action(async (bundles, options) => {
137
+ await installCommand(bundles, {
138
+ targets: options.target,
139
+ flavors: options.flavor,
140
+ scope: options.scope,
141
+ dryRun: options.dryRun,
142
+ force: options.force,
143
+ onConflict: options.onConflict,
144
+ refresh: options.refresh,
145
+ // commander gives --no-deps as deps: false, and --no-prompt as prompt: false
146
+ noDeps: options.deps === false,
147
+ params: options.param,
148
+ paramsFiles: options.paramsFile,
149
+ prompt: options.prompt !== false,
150
+ targetOptions: targetOptionsFrom(options),
151
+ cwd,
152
+ });
153
+ });
154
+ program
155
+ .command('uninstall')
156
+ .alias('remove')
157
+ .argument('<bundle...>', 'installed bundle name(s) or id(s)')
158
+ .description('remove exactly the items one or more bundles installed')
159
+ .addOption(targetOption())
160
+ .addOption(scopeOption())
161
+ .option('--dry-run', 'show what would be removed without writing')
162
+ .option('--force', 'remove items even if they were edited since install')
163
+ .option('--cascade', 'also remove the bundles that depend on these')
164
+ .option('--ignore-dependents', 'remove them even though other bundles still require them')
165
+ .option('--keep-orphans', 'keep bundles that were installed only as dependencies')
166
+ .action(async (bundles, options) => {
167
+ await uninstallCommand(bundles, {
168
+ targets: options.target,
169
+ scope: options.scope,
170
+ dryRun: options.dryRun,
171
+ force: options.force,
172
+ cascade: options.cascade,
173
+ ignoreDependents: options.ignoreDependents,
174
+ keepOrphans: options.keepOrphans,
175
+ cwd,
176
+ });
177
+ });
178
+ program
179
+ .command('update')
180
+ .argument('[bundle...]', 'registered name(s) or id(s), or "all" for every registered bundle; omit for every bundle installed here')
181
+ .description('re-read bundles and reinstall them in place (default: everything installed here)')
182
+ .addOption(targetOption())
183
+ // Omitted, each installation keeps the flavors it recorded; passing it
184
+ // re-narrows (or, with "all", widens) every installation this run touches.
185
+ .addOption(flavorOption())
186
+ .addOption(new Option('-s, --scope <scope>', 'scopes to update').choices(['project', 'user', 'all']))
187
+ .addOption(conflictOption())
188
+ // Omitted, each installation is rendered again with the values it recorded;
189
+ // passing either changes them for the installations this run touches.
190
+ .addOption(paramOption())
191
+ .addOption(paramsFileOption())
192
+ .addOption(new Option('--reconfigure', 'ask for every parameter again, ignoring what was recorded'))
193
+ .addOption(noPromptOption())
194
+ .option('--dry-run', 'show what would change without writing')
195
+ .option('--force', 'replace items that were edited since install')
196
+ // Omitted, each installation keeps what it recorded; passing it switches
197
+ // every installation this run touches over.
198
+ .addOption(piSubagentsOption())
199
+ .action(async (bundles, options) => {
200
+ await updateCommand(bundles, {
201
+ targets: options.target,
202
+ scope: options.scope,
203
+ dryRun: options.dryRun,
204
+ force: options.force,
205
+ onConflict: options.onConflict,
206
+ params: options.param,
207
+ paramsFiles: options.paramsFile,
208
+ reconfigure: options.reconfigure,
209
+ prompt: options.prompt !== false,
210
+ ...(options.piSubagents ? { targetOptions: { piSubagents: true } } : {}),
211
+ // Passed through as given: "not asked for" and "asked for all of it" are
212
+ // different instructions here, and `updateCommand` tells them apart.
213
+ ...(options.flavor ? { flavors: options.flavor } : {}),
214
+ cwd,
215
+ });
216
+ });
217
+ program
218
+ .command('list')
219
+ .description('list available bundles, or installed ones with --installed')
220
+ .option('-i, --installed', 'list installed bundles instead of registered ones')
221
+ .addOption(new Option('-s, --scope <scope>', 'scope to inspect with --installed').choices([
222
+ 'project',
223
+ 'user',
224
+ 'all',
225
+ ]))
226
+ .option('--json', 'machine-readable output')
227
+ .option('--descriptions', 'include each bundle\'s description')
228
+ .action(async (options) => {
229
+ await listCommand({
230
+ installed: options.installed,
231
+ scope: options.scope,
232
+ json: options.json,
233
+ descriptions: options.descriptions,
234
+ cwd,
235
+ });
236
+ });
237
+ program
238
+ .command('info')
239
+ .argument('<bundle...>', 'registered name(s), local path(s), GitHub URL(s), or owner/repo')
240
+ .description('show what bundles contain and where each item would land')
241
+ .addOption(scopeOption())
242
+ .addOption(flavorOption())
243
+ .addOption(paramOption())
244
+ .addOption(paramsFileOption())
245
+ .addOption(piSubagentsOption())
246
+ .action(async (bundles, options) => {
247
+ await infoCommand(bundles, {
248
+ scope: options.scope,
249
+ flavors: options.flavor,
250
+ params: options.param,
251
+ paramsFiles: options.paramsFile,
252
+ targetOptions: targetOptionsFrom(options),
253
+ cwd,
254
+ });
255
+ });
256
+ program
257
+ .command('status')
258
+ .description('check that installed items are still present and unmodified')
259
+ .addOption(new Option('-s, --scope <scope>', 'scope to inspect').choices(['project', 'user', 'all']))
260
+ .action(async (options) => {
261
+ await statusCommand({ scope: options.scope, cwd });
262
+ });
263
+ program
264
+ .command('validate')
265
+ .argument('[bundle]', 'bundle to validate', '.')
266
+ .description('check a bundle for common mistakes')
267
+ .action(async (bundle) => {
268
+ const ok = await validateCommand(bundle, { cwd });
269
+ if (!ok)
270
+ process.exitCode = 1;
271
+ });
272
+ program
273
+ .command('init')
274
+ .argument('[directory]', 'where to create the bundle', '.')
275
+ .option('-n, --name <name>', 'bundle name (defaults to the directory name)')
276
+ .description('scaffold a new bundle')
277
+ .action(async (directory, options) => {
278
+ await initCommand(directory, { name: options.name, cwd });
279
+ });
280
+ program
281
+ .command('targets')
282
+ .description('list supported harnesses, which are set up here, and the files they share')
283
+ .action(async () => {
284
+ await targetsCommand({ cwd });
285
+ });
286
+ program
287
+ .command('export')
288
+ .argument('[file]', 'output file', 'bundles.txt')
289
+ .description('write installed (or registered) bundles to a shareable list')
290
+ .option('-r, --registry', 'export the local registry instead of what is installed here')
291
+ .addOption(new Option('-s, --scope <scope>', 'scope to export').choices(['project', 'user', 'all']))
292
+ .option('--stdout', 'print the list instead of writing a file')
293
+ .action(async (file, options) => {
294
+ await exportCommand(file, {
295
+ registry: options.registry,
296
+ scope: options.scope,
297
+ stdout: options.stdout,
298
+ cwd,
299
+ });
300
+ });
301
+ program
302
+ .command('import')
303
+ .argument('[file]', 'bundles file to read', 'bundles.txt')
304
+ .description('register every bundle listed in a bundles file')
305
+ .option('-i, --install', 'also install each bundle after registering it')
306
+ .addOption(targetOption())
307
+ .addOption(flavorOption())
308
+ .addOption(scopeOption())
309
+ .addOption(conflictOption())
310
+ .addOption(paramOption())
311
+ .addOption(paramsFileOption())
312
+ .addOption(noPromptOption())
313
+ .option('--dry-run', 'with --install, show what would change without writing')
314
+ .option('--force', 'with --install, overwrite conflicting items')
315
+ .option('--no-deps', 'with --install, do not pull in the bundles each one requires')
316
+ .addOption(piSubagentsOption())
317
+ .action(async (file, options) => {
318
+ await importCommand(file, {
319
+ install: options.install,
320
+ targets: options.target,
321
+ flavors: options.flavor,
322
+ scope: options.scope,
323
+ force: options.force,
324
+ onConflict: options.onConflict,
325
+ dryRun: options.dryRun,
326
+ noDeps: options.deps === false,
327
+ params: options.param,
328
+ paramsFiles: options.paramsFile,
329
+ prompt: options.prompt !== false,
330
+ targetOptions: targetOptionsFrom(options),
331
+ cwd,
332
+ });
333
+ });
334
+ /**
335
+ * `hcm context` -- the standing-instruction files are the one place a harness's
336
+ * own agent writes back, so the sections installed there need putting back
337
+ * from time to time. Every subcommand takes the same bundle list and options.
338
+ */
339
+ const context = program
340
+ .command('context')
341
+ .description('manage the context sections installed in CLAUDE.md / AGENTS.md and friends');
342
+ const contextScopeOption = () => new Option('-s, --scope <scope>', 'scope to act on')
343
+ .choices(['project', 'user', 'all'])
344
+ .default('project');
345
+ const contextOptions = (options) => ({
346
+ targets: options.target,
347
+ scope: options.scope,
348
+ dryRun: options.dryRun,
349
+ force: options.force,
350
+ json: options.json,
351
+ cwd,
352
+ });
353
+ const contextSubcommand = (name, description, isDefault = false) => context
354
+ .command(name, { isDefault })
355
+ .argument('[bundle...]', 'bundle name(s) or id(s); defaults to all of them')
356
+ .description(description)
357
+ .addOption(targetOption())
358
+ .addOption(contextScopeOption());
359
+ // `hcm context` on its own is a status report, as `hcm config` is.
360
+ contextSubcommand('list', 'show each tracked section and whether it is still in place', true)
361
+ .option('--json', 'machine-readable output')
362
+ .action(async (bundles, options) => {
363
+ await contextListCommand(bundles, contextOptions(options));
364
+ });
365
+ contextSubcommand('append', 'add back the sections that are no longer in the file')
366
+ .option('--dry-run', 'show what would change without writing')
367
+ .option('--force', 'write every section from the cache, without checking first')
368
+ .action(async (bundles, options) => {
369
+ await contextAppendCommand(bundles, contextOptions(options));
370
+ });
371
+ contextSubcommand('override', 'clear the file and rewrite it from the cached sections')
372
+ .option('--dry-run', 'show what would change without writing')
373
+ .option('--force', 'discard content hcm did not write without asking')
374
+ .action(async (bundles, options) => {
375
+ await contextOverrideCommand(bundles, contextOptions(options));
376
+ });
377
+ contextSubcommand('remove', 'take the sections out, keeping the cached copies')
378
+ .option('--dry-run', 'show what would change without writing')
379
+ .action(async (bundles, options) => {
380
+ await contextRemoveCommand(bundles, contextOptions(options));
381
+ });
382
+ /**
383
+ * `hcm refs` -- the file references a bundle's own text makes.
384
+ *
385
+ * `check` reports the ones that point at nothing; `fix` offers replacements and
386
+ * applies the ones you pick. Both take a folder rather than a bundle name: a
387
+ * reference is a fact about files on disk, and the folder may hold a whole
388
+ * collection whose bundles point at each other.
389
+ *
390
+ * Both read the same three scope flags, and `fix` needs them to match the ones
391
+ * `check` was run with -- it re-scans before applying, and a narrower scope
392
+ * would not find the references the fix file was written for.
393
+ */
394
+ const refs = program
395
+ .command('refs')
396
+ .description('find and repair broken file references in bundles');
397
+ const refsPathOption = () => new Option('-p, --path <path>', 'folder to scan (a bundle, or a collection of them)').default('.');
398
+ /**
399
+ * The three flags that decide what counts as a reference.
400
+ *
401
+ * The default is the quiet one -- links, wikilinks and paths written with an
402
+ * explicit `./` -- because a bundle's prose is full of filename-shaped text
403
+ * that is not a reference to anything. The other two widen or narrow it.
404
+ */
405
+ const scopeOptions = (command) => command
406
+ .addOption(new Option('--links', 'only check links, images, link definitions and [[wikilinks]]'))
407
+ .addOption(new Option('--all-paths', 'also check implicit paths and bare filenames in inline code and config values'))
408
+ .addOption(new Option('--strict', 'implies --all-paths, and reports bare filenames that match nothing at all'));
409
+ scopeOptions(refs
410
+ .command('check', { isDefault: true })
411
+ .description('report every file reference that points at nothing')
412
+ .addOption(refsPathOption()))
413
+ .option('--json', 'machine-readable output')
414
+ .action(async (options) => {
415
+ const ok = await refsCheckCommand({
416
+ path: options.path,
417
+ links: options.links,
418
+ allPaths: options.allPaths,
419
+ strict: options.strict,
420
+ json: options.json,
421
+ cwd,
422
+ });
423
+ if (!ok)
424
+ process.exitCode = 1;
425
+ });
426
+ scopeOptions(refs
427
+ .command('fix')
428
+ .description('write the broken references to a JSON file, then apply what you leave in it')
429
+ .addOption(refsPathOption()))
430
+ .option('--write [file]', `save the JSON in the working directory instead of opening an editor`)
431
+ .option('--file <path>', 'apply an already-edited JSON file')
432
+ .option('--dry-run', 'show what would change without writing')
433
+ .action(async (options) => {
434
+ const ok = await refsFixCommand({
435
+ path: options.path,
436
+ links: options.links,
437
+ allPaths: options.allPaths,
438
+ strict: options.strict,
439
+ write: options.write,
440
+ file: options.file,
441
+ dryRun: options.dryRun,
442
+ cwd,
443
+ });
444
+ if (!ok)
445
+ process.exitCode = 1;
446
+ });
447
+ /**
448
+ * `hcm params` -- the values bundles are customised with.
449
+ *
450
+ * `list` is read-only: the way to change a value is to render the bundle again
451
+ * with the new one, which is `hcm install --param` or `hcm update --param`.
452
+ * `init` writes the file those installs can read the values out of.
453
+ */
454
+ const params = program
455
+ .command('params')
456
+ .description('the values bundles are customised with at install time');
457
+ params
458
+ .command('list', { isDefault: true })
459
+ .argument('[bundle...]', 'installed bundle name(s); defaults to all of them')
460
+ .description('show the parameter values each installation was rendered with')
461
+ .addOption(targetOption())
462
+ .addOption(new Option('-s, --scope <scope>', 'scope to inspect').choices(['project', 'user', 'all']))
463
+ .option('--json', 'machine-readable output')
464
+ .action(async (bundles, options) => {
465
+ await paramsListCommand(bundles, {
466
+ targets: options.target,
467
+ scope: options.scope,
468
+ json: options.json,
469
+ cwd,
470
+ });
471
+ });
472
+ params
473
+ .command('init')
474
+ .argument('[bundle...]', 'bundles to write questions for; omit for everything installed here')
475
+ .description('write a parameters file to fill in and pass back with --params-file')
476
+ .addOption(targetOption())
477
+ .addOption(flavorOption())
478
+ .addOption(scopeOption())
479
+ .option('-o, --output <file>', `where to write it (default: ${DEFAULT_PARAMS_FILE})`)
480
+ .option('--stdout', 'print it instead of writing a file')
481
+ .option('--force', 'replace the file if it is already there')
482
+ .action(async (bundles, options) => {
483
+ await paramsInitCommand(bundles, {
484
+ targets: options.target,
485
+ flavors: options.flavor,
486
+ scope: options.scope,
487
+ output: options.output,
488
+ stdout: options.stdout,
489
+ force: options.force,
490
+ cwd,
491
+ });
492
+ });
493
+ const config = program.command('config').description('view and change hcm settings');
494
+ config
495
+ .command('list', { isDefault: true })
496
+ .option('--json', 'machine-readable output')
497
+ .description('show every setting and where its value comes from')
498
+ .action(async (options) => {
499
+ await configListCommand({ json: options.json });
500
+ });
501
+ config
502
+ .command('get')
503
+ .argument('<key>', 'setting name')
504
+ .description('print the effective value of a setting')
505
+ .action(async (key) => {
506
+ await configGetCommand(key);
507
+ });
508
+ config
509
+ .command('set')
510
+ .argument('<key>', 'setting name')
511
+ .argument('<value>', 'new value')
512
+ .description('change a setting')
513
+ .action(async (key, value) => {
514
+ await configSetCommand(key, value);
515
+ });
516
+ config
517
+ .command('unset')
518
+ .argument('<key>', 'setting name')
519
+ .description('revert a setting to its default')
520
+ .action(async (key) => {
521
+ await configUnsetCommand(key);
522
+ });
523
+ const registry = program.command('registry').description('manage the list of known bundles');
524
+ registry
525
+ .command('add')
526
+ .argument('<source...>', 'local path(s), GitHub URL(s) (web, clone or SSH), or owner/repo[/subdir][#ref]')
527
+ .option('-n, --name <name>', 'override the registered name (one source only)')
528
+ .option('--dev', 'read a local bundle in place, so edits apply without re-registering')
529
+ .description('register bundles so they can be installed by name or id')
530
+ .action(async (sources, options) => {
531
+ await registryAddCommand(sources, { name: options.name, dev: options.dev, cwd });
532
+ });
533
+ registry
534
+ .command('remove')
535
+ .argument('<bundle...>', 'registered bundle name(s) or id(s)')
536
+ .description('unregister a bundle and delete its stored copy')
537
+ .action(async (bundles) => {
538
+ await registryRemoveCommand(bundles, { cwd });
539
+ });
540
+ registry
541
+ .command('list')
542
+ .option('--json', 'machine-readable output')
543
+ .description('list registered bundles')
544
+ .action(async (options) => {
545
+ await registryListCommand({ json: options.json });
546
+ });
547
+ registry
548
+ .command('open')
549
+ .argument('[bundle]', 'open one bundle’s folder instead of the whole store')
550
+ .option('--no-open', 'print the path without launching a file manager')
551
+ .description('show where registered bundles are stored, and open it')
552
+ .action(async (bundle, options) => {
553
+ await registryOpenCommand(bundle, { open: options.open });
554
+ });
555
+ async function main() {
556
+ try {
557
+ await program.parseAsync(process.argv);
558
+ }
559
+ catch (error) {
560
+ if (error instanceof ConflictError) {
561
+ log.error(error.message);
562
+ if (error.hint)
563
+ log.info(color.dim(error.hint));
564
+ process.exitCode = 1;
565
+ return;
566
+ }
567
+ if (error instanceof HcmError) {
568
+ log.error(error.message);
569
+ if (error.hint)
570
+ log.info(color.dim(error.hint));
571
+ process.exitCode = 1;
572
+ return;
573
+ }
574
+ log.error(error.message);
575
+ if (process.env.HCM_DEBUG)
576
+ console.error(error);
577
+ process.exitCode = 1;
578
+ }
579
+ finally {
580
+ closePrompt();
581
+ }
582
+ }
583
+ void main();
584
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EACL,g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I,KAAK,YAAY,QAAQ,EAAE,CAAC;YAC9B,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzB,IAAI,KAAK,CAAC,IAAI;gBAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YAChD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YACrB,OAAO;QACT,CAAC;QACD,GAAG,CAAC,KAAK,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS;YAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;YAAS,CAAC;QACT,WAAW,EAAE,CAAC;IAChB,CAAC;AACH,CAAC;AAED,KAAK,IAAI,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Show every setting, its effective value, and where that value came from. */
2
+ export declare function configListCommand(options: {
3
+ json?: boolean;
4
+ }): Promise<void>;
5
+ export declare function configGetCommand(key: string): Promise<void>;
6
+ export declare function configSetCommand(key: string, value: string): Promise<void>;
7
+ export declare function configUnsetCommand(key: string): Promise<void>;