@dadado/agent-kit-cli 6.23.0 → 6.25.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 (65) hide show
  1. package/README.md +1 -0
  2. package/dashboard/dashboard-data.mjs +126 -5
  3. package/dashboard/dashboard.html +45 -4
  4. package/dashboard/lib/live-refresh.mjs +1 -0
  5. package/dist/{add-RKZQX6ZK.js → add-OYLOMCM6.js} +14 -6
  6. package/dist/chunk-2F6NMQOA.js +519 -0
  7. package/dist/chunk-2QYWMSI5.js +193 -0
  8. package/dist/{chunk-B3VR5YBQ.js → chunk-2TW7ENWC.js} +12 -11
  9. package/dist/{chunk-2IP4OO6R.js → chunk-2XLI7XEY.js} +1 -1
  10. package/dist/chunk-6M6UKECW.js +176 -0
  11. package/dist/{chunk-UJCATSYO.js → chunk-7Y74KO7U.js} +45 -16
  12. package/dist/{chunk-DZCLMIAS.js → chunk-AQLBEEPD.js} +236 -2
  13. package/dist/{chunk-R4DUO5DA.js → chunk-AXQMVQ6O.js} +61 -237
  14. package/dist/{chunk-7TYA3GMI.js → chunk-C7SV7UP5.js} +7 -4
  15. package/dist/{chunk-F7YAAKYP.js → chunk-CIV42JGT.js} +7 -5
  16. package/dist/{chunk-CQHD6UKB.js → chunk-CXE6ASSX.js} +1 -0
  17. package/dist/{chunk-6BEFGKCU.js → chunk-EO5NGAYV.js} +1 -1
  18. package/dist/{chunk-MJJBIOSY.js → chunk-G5MQRP6M.js} +31 -13
  19. package/dist/chunk-GMG7ZH4E.js +357 -0
  20. package/dist/{chunk-5EBT3V7G.js → chunk-GQSSXDDK.js} +1 -1
  21. package/dist/{chunk-5LNHRL5E.js → chunk-H7RAFRRZ.js} +41 -245
  22. package/dist/{chunk-IESSMKOV.js → chunk-HSIHZWFF.js} +4 -4
  23. package/dist/{chunk-W3ZJVBNY.js → chunk-IFBIO7VT.js} +449 -418
  24. package/dist/{chunk-V2H57TFD.js → chunk-JG3CNGQM.js} +78 -170
  25. package/dist/{chunk-KDJ4ML7I.js → chunk-JGG574RK.js} +3 -3
  26. package/dist/{chunk-SGTTC2JP.js → chunk-KWYF7QNH.js} +1 -1
  27. package/dist/{chunk-CVZNSRXV.js → chunk-M4UL422I.js} +80 -15
  28. package/dist/{chunk-AWQ6KRFV.js → chunk-NJ2SUSWX.js} +1 -1
  29. package/dist/{chunk-DRZFWIBN.js → chunk-PIMGV3E5.js} +1 -1
  30. package/dist/{chunk-QNISTPPZ.js → chunk-QACMV46U.js} +3 -3
  31. package/dist/{chunk-5PSV76CQ.js → chunk-QLTGHJB3.js} +25 -6
  32. package/dist/{chunk-OYFCBYMP.js → chunk-QX55T4UX.js} +13 -1
  33. package/dist/chunk-SAQ3EE5R.js +138 -0
  34. package/dist/{chunk-C4LCOOL4.js → chunk-TOSAAQ5A.js} +1 -1
  35. package/dist/chunk-WKFE3RUC.js +433 -0
  36. package/dist/{chunk-BGL5DRK2.js → chunk-XGZOU4DS.js} +1 -1
  37. package/dist/{commands-SAQEEE6V.js → commands-UW2C2ZN4.js} +4 -4
  38. package/dist/{conflicts-5JOP4GX2.js → conflicts-RING6AHV.js} +6 -6
  39. package/dist/{contribute-BQKRT5GN.js → contribute-LSY75JZH.js} +5 -4
  40. package/dist/{countdown-25E5C7AR.js → countdown-SZ2P4XHB.js} +267 -23
  41. package/dist/{diff-6JSXBVSX.js → diff-NZVBVQSK.js} +13 -5
  42. package/dist/{doctor-I3MTHS7F.js → doctor-TJSXBVGV.js} +103 -17
  43. package/dist/{ground-control-IDCXN5FK.js → ground-control-ZJXPUIQN.js} +3 -3
  44. package/dist/{guard-RJZEEKSL.js → guard-ZO4Z3LLB.js} +47 -9
  45. package/dist/{handoff-5AGE2D3T.js → handoff-2OZSWGTE.js} +2 -0
  46. package/dist/{hook-WNA42CXE.js → hook-3VPKNSOO.js} +12 -10
  47. package/dist/index.js +27 -26
  48. package/dist/{init-FZ2UFPO7.js → init-UW2BJBO2.js} +21 -15
  49. package/dist/{install-CTLT3TSI.js → install-RQSI4CHG.js} +18 -15
  50. package/dist/installs-7TR4H4QH.js +222 -0
  51. package/dist/{mission-control-CRMCRZUU.js → mission-control-VSU6NT43.js} +1 -1
  52. package/dist/{queue-JW4VR33H.js → queue-JHYILLMX.js} +9 -9
  53. package/dist/{run-X2WOONTB.js → run-CQF5RM5X.js} +21 -21
  54. package/dist/{run-plan-4MOLLIES.js → run-plan-BEOCOJCF.js} +13 -13
  55. package/dist/{scan-K3T5RQLC.js → scan-7D3RMO34.js} +2 -1
  56. package/dist/{session-start-MV7A4263.js → session-start-QV7CEFRX.js} +16 -10
  57. package/dist/{sessions-UPFDWDMB.js → sessions-AWAAO3DU.js} +1 -1
  58. package/dist/{setup-global-VNADNTQ2.js → setup-global-ST4TT427.js} +8 -7
  59. package/dist/{status-SXA3OK5E.js → status-HUBPBGUU.js} +13 -10
  60. package/dist/update-DD5UZPGG.js +31 -0
  61. package/dist/update-all-YYUTXHGR.js +695 -0
  62. package/package.json +1 -1
  63. package/dist/chunk-4MR4QXMF.js +0 -52
  64. package/dist/chunk-HAFRAXGV.js +0 -17
  65. package/dist/update-RMAWXMCV.js +0 -304
@@ -2,12 +2,19 @@ import {
2
2
  assessHooksHealth,
3
3
  executeSafeReadinessFixes,
4
4
  refreshRepositoryProfile
5
- } from "./chunk-F7YAAKYP.js";
5
+ } from "./chunk-CIV42JGT.js";
6
6
  import {
7
+ assessInstallHealth,
8
+ cachedCliNpmLatest,
9
+ npmLatestCheckAllowed,
10
+ writeInstallHealthSnapshot,
7
11
  writeReadinessSnapshot
8
- } from "./chunk-HAFRAXGV.js";
9
- import "./chunk-AWQ6KRFV.js";
10
- import "./chunk-6BEFGKCU.js";
12
+ } from "./chunk-2F6NMQOA.js";
13
+ import "./chunk-NJ2SUSWX.js";
14
+ import "./chunk-EO5NGAYV.js";
15
+ import {
16
+ feedInstallsRegistry
17
+ } from "./chunk-WKFE3RUC.js";
11
18
  import "./chunk-WGLPZXNU.js";
12
19
  import "./chunk-Q35TWISF.js";
13
20
  import {
@@ -16,30 +23,40 @@ import {
16
23
  import {
17
24
  detectWorkspaceParent,
18
25
  workspaceParentAdvisoryLines
19
- } from "./chunk-2IP4OO6R.js";
26
+ } from "./chunk-2XLI7XEY.js";
20
27
  import {
21
28
  createReadinessReport
22
29
  } from "./chunk-PNFF6OU3.js";
23
30
  import {
24
31
  runScanner
25
- } from "./chunk-R4DUO5DA.js";
32
+ } from "./chunk-AXQMVQ6O.js";
26
33
  import "./chunk-F6C3GFKV.js";
34
+ import "./chunk-2QYWMSI5.js";
27
35
  import {
28
36
  logger
29
37
  } from "./chunk-ZB43YMHW.js";
30
38
  import {
31
39
  MIN_NODE_VERSION_LABEL,
32
- assessEnvironment
33
- } from "./chunk-B3VR5YBQ.js";
40
+ assessEnvironment,
41
+ readBinVersion,
42
+ resolveBinOnPath
43
+ } from "./chunk-2TW7ENWC.js";
34
44
  import {
45
+ CLI_NPM_PACKAGES,
46
+ fetchLatestCliNpmVersion,
35
47
  warnIfRunningCliBehindNpm
36
- } from "./chunk-CVZNSRXV.js";
37
- import "./chunk-PFEUZXVT.js";
38
- import "./chunk-7TYA3GMI.js";
39
- import "./chunk-4MR4QXMF.js";
48
+ } from "./chunk-M4UL422I.js";
49
+ import {
50
+ loadContextConfig
51
+ } from "./chunk-PFEUZXVT.js";
52
+ import "./chunk-C7SV7UP5.js";
53
+ import "./chunk-SAQ3EE5R.js";
40
54
  import "./chunk-CGXLR77R.js";
41
- import "./chunk-V2H57TFD.js";
42
- import "./chunk-OYFCBYMP.js";
55
+ import {
56
+ loadAgentKitManifest
57
+ } from "./chunk-JG3CNGQM.js";
58
+ import "./chunk-QX55T4UX.js";
59
+ import "./chunk-6M6UKECW.js";
43
60
  import {
44
61
  KIT_VERSION
45
62
  } from "./chunk-7HDQEK6T.js";
@@ -64,6 +81,45 @@ async function readDeferredEssentials(rootDir, report) {
64
81
  (item) => typeof item?.checkId === "string" && typeof item?.reason === "string" && essentialIds.has(item.checkId)
65
82
  ).map((item) => ({ checkId: item.checkId, reason: item.reason }));
66
83
  }
84
+ async function resolveCliBin(env, procEnv, platform) {
85
+ if (procEnv === process.env && env.binPath) {
86
+ return { binPath: env.binPath, binVersion: env.binVersion };
87
+ }
88
+ for (const pkg of CLI_NPM_PACKAGES) {
89
+ const hit = await resolveBinOnPath(pkg.bin, procEnv, platform).catch(() => null);
90
+ if (hit) {
91
+ return { binPath: hit, binVersion: await readBinVersion(hit).catch(() => null) };
92
+ }
93
+ }
94
+ return { binPath: null, binVersion: null };
95
+ }
96
+ async function runInstallHealth(rootDir, env, options) {
97
+ const seams = options.installHealth ?? {};
98
+ const procEnv = seams.env ?? process.env;
99
+ const platform = seams.platform ?? process.platform;
100
+ let latest = null;
101
+ const checked = options.fetchNpmLatest !== void 0;
102
+ if (options.fetchNpmLatest) {
103
+ latest = await options.fetchNpmLatest().catch(() => null);
104
+ }
105
+ const manifest = await loadAgentKitManifest(rootDir).catch(() => null);
106
+ const bin = await resolveCliBin(env, procEnv, platform);
107
+ return assessInstallHealth({
108
+ cwd: rootDir,
109
+ cliVersion: KIT_VERSION,
110
+ npm: { checked, latest },
111
+ binPath: bin.binPath,
112
+ binVersion: bin.binVersion,
113
+ manifest: manifest ? {
114
+ version: manifest.version,
115
+ registryUrl: manifest.registry?.url ?? null,
116
+ registryRef: manifest.registry?.ref ?? null
117
+ } : null,
118
+ ...seams,
119
+ env: procEnv,
120
+ platform
121
+ });
122
+ }
67
123
  async function runDoctor(cwd, options = {}) {
68
124
  const rootDir = path.resolve(cwd);
69
125
  const hooks = await assessHooksHealth(rootDir);
@@ -74,16 +130,21 @@ async function runDoctor(cwd, options = {}) {
74
130
  generatorVersion: KIT_VERSION,
75
131
  generatedAt: options.generatedAt
76
132
  });
133
+ const env2 = await assessEnvironment();
77
134
  return {
78
135
  report: report2,
79
136
  safeChanges: [],
80
137
  hooks,
81
- env: await assessEnvironment(),
138
+ env: env2,
139
+ // Machine-level checks still run; nothing is written in a parent folder.
140
+ install: await runInstallHealth(rootDir, env2, options),
82
141
  deferredEssentials: [],
83
142
  workspaceParent
84
143
  };
85
144
  }
86
145
  const env = await assessEnvironment();
146
+ const install = await runInstallHealth(rootDir, env, options);
147
+ await writeInstallHealthSnapshot(rootDir, install, options.generatedAt).catch(() => void 0);
87
148
  if (options.fixSafe) {
88
149
  const execution = await executeSafeReadinessFixes(rootDir, {
89
150
  generatorVersion: KIT_VERSION,
@@ -95,6 +156,7 @@ async function runDoctor(cwd, options = {}) {
95
156
  safeChanges: execution.changes,
96
157
  hooks,
97
158
  env,
159
+ install,
98
160
  deferredEssentials: await readDeferredEssentials(rootDir, execution.after)
99
161
  };
100
162
  }
@@ -114,6 +176,7 @@ async function runDoctor(cwd, options = {}) {
114
176
  safeChanges: [],
115
177
  hooks,
116
178
  env,
179
+ install,
117
180
  profileRefreshed: refresh.changed,
118
181
  deferredEssentials: await readDeferredEssentials(rootDir, report2)
119
182
  };
@@ -129,9 +192,20 @@ async function runDoctor(cwd, options = {}) {
129
192
  safeChanges: [],
130
193
  hooks,
131
194
  env,
195
+ install,
132
196
  deferredEssentials: await readDeferredEssentials(rootDir, report)
133
197
  };
134
198
  }
199
+ var INSTALL_SEVERITY_LABEL = { ok: "ok", warning: "WARN", info: "info" };
200
+ function printInstallHealth(install) {
201
+ console.log("install:");
202
+ for (const item of install.checks) {
203
+ console.log(` - ${item.label}: ${INSTALL_SEVERITY_LABEL[item.severity]} (${item.detail})`);
204
+ if (item.fix && item.severity !== "ok") {
205
+ console.log(` ${item.fixKind === "config-line" ? "add" : "fix"}: ${item.fix}`);
206
+ }
207
+ }
208
+ }
135
209
  function printDoctorSummary(result, rootDir) {
136
210
  if (result.workspaceParent) {
137
211
  for (const line of workspaceParentAdvisoryLines(rootDir, result.workspaceParent, "doctor")) {
@@ -183,6 +257,7 @@ function printDoctorSummary(result, rootDir) {
183
257
  console.log(
184
258
  ` - shell profile: ${result.env.shellProfile ?? "not detected (zsh/bash only)"}${result.env.shell ? ` (shell: ${result.env.shell})` : ""}`
185
259
  );
260
+ printInstallHealth(result.install);
186
261
  if (process.env.ALLOW_MAIN_PUSH === "1") {
187
262
  console.log("\u26A0\uFE0F WARNING: ALLOW_MAIN_PUSH=1 is set in environment");
188
263
  console.log(" This disables main-push protection for agent Shell commands.");
@@ -220,13 +295,23 @@ var doctorCommand = defineCommand({
220
295
  },
221
296
  async run({ args }) {
222
297
  if (!args.json) {
223
- await warnIfRunningCliBehindNpm(args.cwd, { warn: (message) => logger.warn(message) });
298
+ await warnIfRunningCliBehindNpm(args.cwd, {
299
+ warn: (message) => logger.warn(message),
300
+ stamp: false,
301
+ fetchLatest: async () => (await cachedCliNpmLatest())?.version ?? null
302
+ });
224
303
  }
304
+ const npmAllowed = npmLatestCheckAllowed(
305
+ process.env,
306
+ await loadContextConfig(path.resolve(args.cwd)).catch(() => null)
307
+ );
225
308
  const run = () => runDoctor(args.cwd, {
226
309
  fixSafe: args["fix-safe"],
227
- refreshProfile: args["refresh-profile"]
310
+ refreshProfile: args["refresh-profile"],
311
+ fetchNpmLatest: npmAllowed ? () => fetchLatestCliNpmVersion() : void 0
228
312
  });
229
313
  const result = args.json ? await run() : await withCliProgress("doctor", run);
314
+ await feedInstallsRegistry(path.resolve(args.cwd));
230
315
  if (args.json) {
231
316
  console.log(JSON.stringify(result, null, 2));
232
317
  return;
@@ -237,5 +322,6 @@ var doctorCommand = defineCommand({
237
322
  export {
238
323
  doctorCommand,
239
324
  printDoctorSummary,
325
+ printInstallHealth,
240
326
  runDoctor
241
327
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  blobId,
3
3
  isTicketMerged
4
- } from "./chunk-5EBT3V7G.js";
4
+ } from "./chunk-GQSSXDDK.js";
5
5
  import {
6
6
  GATE_EXIT_BRANCH_PREFIX,
7
7
  GATE_EXIT_MARKER_RELPATH,
@@ -16,11 +16,11 @@ import {
16
16
  readGateExitMarker,
17
17
  resolveGateExitRefs,
18
18
  writeGateExitMarker
19
- } from "./chunk-BGL5DRK2.js";
19
+ } from "./chunk-XGZOU4DS.js";
20
20
  import "./chunk-MUTTNRX4.js";
21
21
  import {
22
22
  redactSecrets
23
- } from "./chunk-W3ZJVBNY.js";
23
+ } from "./chunk-IFBIO7VT.js";
24
24
  import "./chunk-P7732A25.js";
25
25
  import {
26
26
  findOnPath
@@ -433,18 +433,24 @@ var SHELL_DENY_RULES = [
433
433
  if (!/^(?:[\w./-]+\/)?git\s+checkout\b/.test(head)) return false;
434
434
  if (/\s--(?:\s|$)/.test(head)) return true;
435
435
  if (/\scheckout\s+\.(?:\s|$)/.test(head)) return true;
436
+ if (/\s--(?:theirs|ours)(?:\s|$)/.test(head)) return true;
436
437
  return false;
437
- })
438
+ }),
439
+ allowed: () => "`git switch <branch>` to change branches, `git stash` to set edits aside, `git restore --staged <path>` to unstage; resolve a conflict by editing the file"
438
440
  },
439
441
  {
440
442
  id: "git-restore",
441
- description: "git restore discards working-tree edits",
442
- test: (cmd) => anyHeadMatches(cmd, /^(?:[\w./-]+\/)?git\s+restore\b/)
443
+ description: "git restore on the worktree discards working-tree edits",
444
+ test: (cmd) => shellInvocationHeads(cmd).some(
445
+ (head) => /^(?:[\w./-]+\/)?git\s+restore\b/.test(head) && !restoreIsIndexOnly(head)
446
+ ),
447
+ allowed: () => "`git restore --staged <path>` (index only, keeps the edit) or `git stash` to set edits aside"
443
448
  },
444
449
  {
445
450
  id: "git-reset-hard",
446
451
  description: "git reset --hard destroys uncommitted work",
447
- test: (cmd) => anyHeadMatches(cmd, /^(?:[\w./-]+\/)?git\s+reset\b.*--hard\b/)
452
+ test: (cmd) => anyHeadMatches(cmd, /^(?:[\w./-]+\/)?git\s+reset\b.*--hard\b/),
453
+ allowed: () => "`git stash` to set edits aside, `git reset --keep <ref>` (refuses to drop local edits) or `git reset --soft <ref>`"
448
454
  },
449
455
  {
450
456
  id: "git-clean-fd",
@@ -456,7 +462,8 @@ var SHELL_DENY_RULES = [
456
462
  const hasForce = tokens.some((t) => t === "--force" || shortBundle(t) && t.includes("f"));
457
463
  const hasD = tokens.some((t) => shortBundle(t) && t.includes("d"));
458
464
  return hasForce && hasD;
459
- })
465
+ }),
466
+ allowed: () => "`git clean -nd` to list what would go, then ask the operator before deleting untracked files"
460
467
  },
461
468
  {
462
469
  id: "public-repo-direct-write",
@@ -465,7 +472,8 @@ var SHELL_DENY_RULES = [
465
472
  if (segmentHasAllowPublicPushEnv(segment)) return false;
466
473
  const head = canonicalGitHead(segment);
467
474
  return pushTargetsPublicRepo(head, opts?.remotes) || ghTargetsPublicRepo(head);
468
- })
475
+ }),
476
+ allowed: () => "ship through /git-staging and /git-prod; the public repo is written by `scripts/sync-public.mjs` in CI"
469
477
  },
470
478
  {
471
479
  id: "git-push-main",
@@ -481,7 +489,8 @@ var SHELL_DENY_RULES = [
481
489
  return true;
482
490
  }
483
491
  return false;
484
- })
492
+ }),
493
+ allowed: () => "push a working branch (`git push -u origin <branch>`) and open a PR into staging (/git-staging); main moves only through /git-prod"
485
494
  },
486
495
  {
487
496
  // Claude settings allow `gh pr merge` / `glab mr merge` so the /git-staging merge
@@ -506,9 +515,38 @@ var SHELL_DENY_RULES = [
506
515
  const base = bases[prMergeKey(target)];
507
516
  return typeof base !== "string" || isProtectedBranch(base);
508
517
  });
509
- }
518
+ },
519
+ allowed: prMergeAllowedHint
510
520
  }
511
521
  ];
522
+ function restoreIsIndexOnly(head) {
523
+ const tokens = head.split(/\s+/);
524
+ const shortBundle = (t) => /^-[a-zA-Z]+$/.test(t);
525
+ const staged = tokens.some((t) => t === "--staged" || shortBundle(t) && t.includes("S"));
526
+ const worktree = tokens.some((t) => t === "--worktree" || shortBundle(t) && t.includes("W"));
527
+ return staged && !worktree;
528
+ }
529
+ function prMergeAllowedHint(command, opts) {
530
+ const ghForm = "`gh pr merge <n> -R owner/repo`";
531
+ const glabForm = "`glab mr merge <n> -R host/group/repo`";
532
+ const staging = "merge only into staging (/git-staging); main moves through /git-prod";
533
+ if (forgeApiMergeCall(command)) {
534
+ return `a literal ${ghForm} or ${glabForm} at the head of its own segment; ${staging}`;
535
+ }
536
+ const bases = opts?.prMergeBases ?? {};
537
+ const unresolved = shellSegments(command).filter((segment) => {
538
+ if (!PR_MERGE_CALL_RE.test(segment)) return false;
539
+ const target = literalPrMergeTarget(segment);
540
+ return target === null || typeof bases[prMergeKey(target)] !== "string";
541
+ });
542
+ if (unresolved.length === 0) return staging;
543
+ const forms = [
544
+ unresolved.some((seg) => /\bgh\s+pr\s+merge\b/.test(seg)) ? ghForm : null,
545
+ unresolved.some((seg) => /\bglab\s+mr\s+merge\b/.test(seg)) ? glabForm : null
546
+ ].filter((f) => f !== null);
547
+ const named = forms.length > 0 ? forms.join(" or ") : `${ghForm} or ${glabForm}`;
548
+ return `name the PR/MR and its repo literally, at the head of its own segment, so the base resolves: ${named} (check \`gh auth status\` / \`glab auth status\`); ${staging}`;
549
+ }
512
550
  function evaluateShellCommand(command, opts = {}) {
513
551
  const normalized = normalizeShellCommand(command);
514
552
  if (!normalized) {
@@ -516,7 +554,7 @@ function evaluateShellCommand(command, opts = {}) {
516
554
  }
517
555
  for (const rule of SHELL_DENY_RULES) {
518
556
  if (rule.test(command, opts)) {
519
- const agent_message = `Denied by ${CITE2}: ${rule.description} (rule \`${rule.id}\`). Use /git-staging; never discard human hunks or push protected branches from the agent.`;
557
+ const agent_message = `Denied by ${CITE2}: ${rule.description} (rule \`${rule.id}\`). Instead: ${rule.allowed(command, opts)}. Never discard human hunks or push protected branches from the agent.`;
520
558
  return {
521
559
  permission: "deny",
522
560
  rule: rule.id,
@@ -78,6 +78,8 @@ var PRESERVED_FIELDS = [
78
78
  "Queue cursor",
79
79
  "Queue status",
80
80
  "Queue outcomes",
81
+ // Rows displaced by run-plan-all-consolidate.sh --rewrite-queue (HITL evidence).
82
+ "Queue outcomes anteriores",
81
83
  "Backlog plans",
82
84
  "Parked plans"
83
85
  ];
@@ -1,25 +1,27 @@
1
1
  import {
2
2
  buildSessionStartAdditionalContext,
3
3
  resolveSessionRoot
4
- } from "./chunk-MJJBIOSY.js";
4
+ } from "./chunk-G5MQRP6M.js";
5
+ import "./chunk-JFS4GKP7.js";
5
6
  import "./chunk-2YU2H7I6.js";
6
7
  import {
7
8
  readStdinJson
8
9
  } from "./chunk-DE3LQFSJ.js";
9
- import "./chunk-JFS4GKP7.js";
10
+ import "./chunk-L5V3W3DY.js";
11
+ import "./chunk-MUTTNRX4.js";
10
12
  import "./chunk-MFKHIWEL.js";
11
13
  import "./chunk-MCH3E46V.js";
12
14
  import "./chunk-4CRBUEJ6.js";
13
- import "./chunk-L5V3W3DY.js";
14
- import "./chunk-MUTTNRX4.js";
15
- import "./chunk-HAFRAXGV.js";
16
- import "./chunk-CVZNSRXV.js";
15
+ import "./chunk-2F6NMQOA.js";
16
+ import "./chunk-WKFE3RUC.js";
17
+ import "./chunk-M4UL422I.js";
17
18
  import "./chunk-PFEUZXVT.js";
18
- import "./chunk-7TYA3GMI.js";
19
- import "./chunk-4MR4QXMF.js";
19
+ import "./chunk-C7SV7UP5.js";
20
+ import "./chunk-SAQ3EE5R.js";
20
21
  import "./chunk-CGXLR77R.js";
21
- import "./chunk-V2H57TFD.js";
22
- import "./chunk-OYFCBYMP.js";
22
+ import "./chunk-JG3CNGQM.js";
23
+ import "./chunk-QX55T4UX.js";
24
+ import "./chunk-6M6UKECW.js";
23
25
  import "./chunk-7HDQEK6T.js";
24
26
  import "./chunk-C4Q77GGJ.js";
25
27
  import "./chunk-5B4DVO6C.js";
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  rewriteRootArgvToRun
4
- } from "./chunk-SGTTC2JP.js";
5
- import "./chunk-W3ZJVBNY.js";
4
+ } from "./chunk-KWYF7QNH.js";
5
+ import "./chunk-IFBIO7VT.js";
6
6
  import "./chunk-P7732A25.js";
7
7
  import "./chunk-WGLPZXNU.js";
8
8
  import "./chunk-Q35TWISF.js";
@@ -114,7 +114,7 @@ var CLI_HELP_GROUPS = [
114
114
  {
115
115
  id: "setup",
116
116
  title: "SETUP",
117
- commands: ["init", "install", "doctor", "status", "update", "add", "scan"]
117
+ commands: ["init", "install", "doctor", "status", "update", "installs", "add", "scan"]
118
118
  },
119
119
  {
120
120
  id: "mission",
@@ -234,41 +234,42 @@ var main = defineCommand({
234
234
  version: KIT_VERSION
235
235
  },
236
236
  subCommands: {
237
- init: () => import("./init-FZ2UFPO7.js").then((m) => m.initCommand),
238
- install: () => import("./install-CTLT3TSI.js").then((m) => m.installCommand),
239
- scan: () => import("./scan-K3T5RQLC.js").then((m) => m.scanCommand),
240
- add: () => import("./add-RKZQX6ZK.js").then((m) => m.addCommand),
241
- doctor: () => import("./doctor-I3MTHS7F.js").then((m) => m.doctorCommand),
242
- "setup-global": () => import("./setup-global-VNADNTQ2.js").then((m) => m.setupGlobalCommand),
243
- status: () => import("./status-SXA3OK5E.js").then((m) => m.statusCommand),
244
- update: () => import("./update-RMAWXMCV.js").then((m) => m.updateCommand),
237
+ init: () => import("./init-UW2BJBO2.js").then((m) => m.initCommand),
238
+ install: () => import("./install-RQSI4CHG.js").then((m) => m.installCommand),
239
+ scan: () => import("./scan-7D3RMO34.js").then((m) => m.scanCommand),
240
+ add: () => import("./add-OYLOMCM6.js").then((m) => m.addCommand),
241
+ doctor: () => import("./doctor-TJSXBVGV.js").then((m) => m.doctorCommand),
242
+ "setup-global": () => import("./setup-global-ST4TT427.js").then((m) => m.setupGlobalCommand),
243
+ status: () => import("./status-HUBPBGUU.js").then((m) => m.statusCommand),
244
+ update: () => import("./update-DD5UZPGG.js").then((m) => m.updateCommand),
245
+ installs: () => import("./installs-7TR4H4QH.js").then((m) => m.installsCommand),
245
246
  "cursor-awareness": () => import("./cursor-awareness-TN5JXD2C.js").then((m) => m.cursorAwarenessCommand),
246
247
  "public-inbound-radar": () => import("./public-inbound-radar-5U4JMBRU.js").then((m) => m.publicInboundRadarCommand),
247
248
  "remote-issues": () => import("./remote-issues-APYOMIJC.js").then((m) => m.remoteIssuesCommand),
248
249
  dogfood: () => import("./dogfood-2JAHSYQA.js").then((m) => m.dogfoodCommand),
249
- diff: () => import("./diff-6JSXBVSX.js").then((m) => m.diffCommand),
250
- contribute: () => import("./contribute-BQKRT5GN.js").then((m) => m.contributeCommand),
251
- handoff: () => import("./handoff-5AGE2D3T.js").then((m) => m.handoffCommand),
250
+ diff: () => import("./diff-NZVBVQSK.js").then((m) => m.diffCommand),
251
+ contribute: () => import("./contribute-LSY75JZH.js").then((m) => m.contributeCommand),
252
+ handoff: () => import("./handoff-2OZSWGTE.js").then((m) => m.handoffCommand),
252
253
  "plan-index": () => import("./plan-index-BNLUU6T5.js").then((m) => m.planIndexCommand),
253
- run: () => import("./run-X2WOONTB.js").then((m) => m.runCommand),
254
- "run-plan": () => import("./run-plan-4MOLLIES.js").then((m) => m.runPlanCommand),
255
- "run-plan-all": () => import("./run-X2WOONTB.js").then((m) => m.runPlanAllCommand),
256
- queue: () => import("./queue-JW4VR33H.js").then((m) => m.queueCommand),
254
+ run: () => import("./run-CQF5RM5X.js").then((m) => m.runCommand),
255
+ "run-plan": () => import("./run-plan-BEOCOJCF.js").then((m) => m.runPlanCommand),
256
+ "run-plan-all": () => import("./run-CQF5RM5X.js").then((m) => m.runPlanAllCommand),
257
+ queue: () => import("./queue-JHYILLMX.js").then((m) => m.queueCommand),
257
258
  promote: () => import("./promote-H5MIMVEB.js").then((m) => m.promoteCommand),
258
- countdown: () => import("./countdown-25E5C7AR.js").then((m) => m.countdownCommand),
259
- "ground-control": () => import("./ground-control-IDCXN5FK.js").then((m) => m.groundControlCommand),
260
- conflicts: () => import("./conflicts-5JOP4GX2.js").then((m) => m.conflictsCommand),
259
+ countdown: () => import("./countdown-SZ2P4XHB.js").then((m) => m.countdownCommand),
260
+ "ground-control": () => import("./ground-control-ZJXPUIQN.js").then((m) => m.groundControlCommand),
261
+ conflicts: () => import("./conflicts-RING6AHV.js").then((m) => m.conflictsCommand),
261
262
  dashboard: () => import("./dashboard-P65XHYCU.js").then((m) => m.dashboardCommand),
262
263
  "dashboard-broadcast": () => import("./dashboard-broadcast-GYK34QYL.js").then((m) => m.dashboardBroadcastCommand),
263
- "mission-control": () => import("./mission-control-CRMCRZUU.js").then((m) => m.missionControlCommand),
264
- hook: () => import("./hook-WNA42CXE.js").then((m) => m.hookCommand),
265
- guard: () => import("./guard-RJZEEKSL.js").then((m) => m.guardCommand),
264
+ "mission-control": () => import("./mission-control-VSU6NT43.js").then((m) => m.missionControlCommand),
265
+ hook: () => import("./hook-3VPKNSOO.js").then((m) => m.hookCommand),
266
+ guard: () => import("./guard-ZO4Z3LLB.js").then((m) => m.guardCommand),
266
267
  monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
267
- sessions: () => import("./sessions-UPFDWDMB.js").then((m) => m.sessionsCommand),
268
+ sessions: () => import("./sessions-AWAAO3DU.js").then((m) => m.sessionsCommand),
268
269
  "outcome-ledger": () => import("./outcome-ledger-XLWHWPVQ.js").then((m) => m.outcomeLedgerCommand),
269
270
  validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand),
270
271
  "engine-info": () => import("./engine-info-BBI5QO5Y.js").then((m) => m.engineInfoCommand),
271
- commands: () => import("./commands-SAQEEE6V.js").then((m) => m.commandsCommand)
272
+ commands: () => import("./commands-UW2C2ZN4.js").then((m) => m.commandsCommand)
272
273
  },
273
274
  async run({ rawArgs }) {
274
275
  if (hasCliSubcommand(rawArgs)) return;
@@ -2,27 +2,31 @@ import {
2
2
  nextStepAfterInstall,
3
3
  performInstall,
4
4
  printInstallEpilogue
5
- } from "./chunk-UJCATSYO.js";
5
+ } from "./chunk-7Y74KO7U.js";
6
6
  import {
7
7
  NON_INTERACTIVE_ROOT_ARGS
8
- } from "./chunk-5PSV76CQ.js";
8
+ } from "./chunk-QLTGHJB3.js";
9
9
  import {
10
10
  SkippedSymlinkError,
11
11
  logApplyStats
12
12
  } from "./chunk-HS7LVVLO.js";
13
- import "./chunk-DRZFWIBN.js";
14
- import "./chunk-F7YAAKYP.js";
15
- import "./chunk-HAFRAXGV.js";
16
- import "./chunk-AWQ6KRFV.js";
17
- import "./chunk-6BEFGKCU.js";
13
+ import "./chunk-PIMGV3E5.js";
14
+ import "./chunk-CIV42JGT.js";
15
+ import "./chunk-2F6NMQOA.js";
16
+ import "./chunk-NJ2SUSWX.js";
17
+ import "./chunk-EO5NGAYV.js";
18
+ import {
19
+ feedInstallsRegistry
20
+ } from "./chunk-WKFE3RUC.js";
18
21
  import "./chunk-WGLPZXNU.js";
19
22
  import "./chunk-Q35TWISF.js";
20
23
  import {
21
24
  withCliProgress
22
25
  } from "./chunk-QTON2GQX.js";
23
26
  import "./chunk-PNFF6OU3.js";
24
- import "./chunk-R4DUO5DA.js";
27
+ import "./chunk-AXQMVQ6O.js";
25
28
  import "./chunk-F6C3GFKV.js";
29
+ import "./chunk-2QYWMSI5.js";
26
30
  import {
27
31
  logger
28
32
  } from "./chunk-ZB43YMHW.js";
@@ -32,17 +36,18 @@ import {
32
36
  confirmProjectRoot,
33
37
  isNonInteractive,
34
38
  syncPathCliToRuntime
35
- } from "./chunk-KDJ4ML7I.js";
39
+ } from "./chunk-JGG574RK.js";
36
40
  import {
37
41
  assessEnvironment
38
- } from "./chunk-B3VR5YBQ.js";
39
- import "./chunk-CVZNSRXV.js";
42
+ } from "./chunk-2TW7ENWC.js";
43
+ import "./chunk-M4UL422I.js";
40
44
  import "./chunk-PFEUZXVT.js";
41
- import "./chunk-7TYA3GMI.js";
42
- import "./chunk-4MR4QXMF.js";
45
+ import "./chunk-C7SV7UP5.js";
46
+ import "./chunk-SAQ3EE5R.js";
43
47
  import "./chunk-CGXLR77R.js";
44
- import "./chunk-V2H57TFD.js";
45
- import "./chunk-OYFCBYMP.js";
48
+ import "./chunk-JG3CNGQM.js";
49
+ import "./chunk-QX55T4UX.js";
50
+ import "./chunk-6M6UKECW.js";
46
51
  import {
47
52
  KIT_VERSION
48
53
  } from "./chunk-7HDQEK6T.js";
@@ -98,6 +103,7 @@ ${err.recovery}
98
103
  const result = await withCliProgress("init", () => runInitCompatibility(projectRoot));
99
104
  const pending = result.readiness.pendingActions.length;
100
105
  logger.success(`L0 and readiness prepared in ${result.projectRoot}`);
106
+ await feedInstallsRegistry(result.projectRoot);
101
107
  const nextStep = nextStepAfterInstall(pending);
102
108
  const env = await assessEnvironment();
103
109
  const sync = await syncPathCliToRuntime({ runtimeVersion: KIT_VERSION, env });
@@ -3,30 +3,33 @@ import {
3
3
  nextStepAfterInstall,
4
4
  performInstall,
5
5
  printInstallEpilogue
6
- } from "./chunk-UJCATSYO.js";
7
- import "./chunk-5PSV76CQ.js";
6
+ } from "./chunk-7Y74KO7U.js";
7
+ import "./chunk-QLTGHJB3.js";
8
8
  import "./chunk-HS7LVVLO.js";
9
- import "./chunk-DRZFWIBN.js";
10
- import "./chunk-F7YAAKYP.js";
11
- import "./chunk-HAFRAXGV.js";
12
- import "./chunk-AWQ6KRFV.js";
13
- import "./chunk-6BEFGKCU.js";
9
+ import "./chunk-PIMGV3E5.js";
10
+ import "./chunk-CIV42JGT.js";
11
+ import "./chunk-2F6NMQOA.js";
12
+ import "./chunk-NJ2SUSWX.js";
13
+ import "./chunk-EO5NGAYV.js";
14
+ import "./chunk-WKFE3RUC.js";
14
15
  import "./chunk-WGLPZXNU.js";
15
16
  import "./chunk-Q35TWISF.js";
16
17
  import "./chunk-QTON2GQX.js";
17
18
  import "./chunk-PNFF6OU3.js";
18
- import "./chunk-R4DUO5DA.js";
19
+ import "./chunk-AXQMVQ6O.js";
19
20
  import "./chunk-F6C3GFKV.js";
21
+ import "./chunk-2QYWMSI5.js";
20
22
  import "./chunk-ZB43YMHW.js";
21
- import "./chunk-KDJ4ML7I.js";
22
- import "./chunk-B3VR5YBQ.js";
23
- import "./chunk-CVZNSRXV.js";
23
+ import "./chunk-JGG574RK.js";
24
+ import "./chunk-2TW7ENWC.js";
25
+ import "./chunk-M4UL422I.js";
24
26
  import "./chunk-PFEUZXVT.js";
25
- import "./chunk-7TYA3GMI.js";
26
- import "./chunk-4MR4QXMF.js";
27
+ import "./chunk-C7SV7UP5.js";
28
+ import "./chunk-SAQ3EE5R.js";
27
29
  import "./chunk-CGXLR77R.js";
28
- import "./chunk-V2H57TFD.js";
29
- import "./chunk-OYFCBYMP.js";
30
+ import "./chunk-JG3CNGQM.js";
31
+ import "./chunk-QX55T4UX.js";
32
+ import "./chunk-6M6UKECW.js";
30
33
  import "./chunk-7HDQEK6T.js";
31
34
  import "./chunk-C4Q77GGJ.js";
32
35
  import "./chunk-5B4DVO6C.js";