@dadado/agent-kit-cli 6.19.1 → 6.21.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 (38) hide show
  1. package/dashboard/dashboard-data.mjs +18 -0
  2. package/dashboard/lib/live-refresh.mjs +1 -0
  3. package/dashboard/lib/semantic-model.mjs +84 -0
  4. package/dist/{add-DYRNPADR.js → add-XDGERL6L.js} +3 -3
  5. package/dist/{chunk-SPXAHVK4.js → chunk-27NYWS3N.js} +17 -1
  6. package/dist/{chunk-WKZ63IZ7.js → chunk-44AVHJRV.js} +1 -1
  7. package/dist/{chunk-6XJZLH53.js → chunk-4FCK4QNB.js} +1 -1
  8. package/dist/{chunk-WF3CXK4J.js → chunk-5KF4IHXO.js} +2 -2
  9. package/dist/{chunk-WMS3SSOO.js → chunk-5U6AGH7T.js} +3 -3
  10. package/dist/{chunk-NA2LTNJS.js → chunk-7MKWNRAC.js} +3 -3
  11. package/dist/{chunk-DY6EWD5X.js → chunk-BTQ3D6N7.js} +2 -2
  12. package/dist/{chunk-MPCNPZJZ.js → chunk-CQHD6UKB.js} +1 -0
  13. package/dist/{chunk-XJORZUTG.js → chunk-DJKZLY3E.js} +1 -1
  14. package/dist/{chunk-NAU3ROWR.js → chunk-DYIIOALZ.js} +1 -1
  15. package/dist/{chunk-R3QNQWLB.js → chunk-FOGD3MWJ.js} +2 -2
  16. package/dist/{chunk-OXLLHI2W.js → chunk-HMJNIIWG.js} +3 -3
  17. package/dist/{chunk-5V4C5N2P.js → chunk-IWCJ6RM6.js} +2 -2
  18. package/dist/{chunk-LX5AO7KO.js → chunk-NJ3JGF2O.js} +1 -1
  19. package/dist/{chunk-KF544JTV.js → chunk-TUEREBTR.js} +1 -1
  20. package/dist/{chunk-2YPIQCPL.js → chunk-YXGD3FST.js} +8 -8
  21. package/dist/{commands-EHKVW7JR.js → commands-UIV535OI.js} +2 -2
  22. package/dist/{conflicts-XMN4PBCZ.js → conflicts-7T7KKQOY.js} +74 -20
  23. package/dist/{contribute-H3SOZGQQ.js → contribute-2ATM22YG.js} +4 -4
  24. package/dist/{diff-HLBPPBUB.js → diff-JJH42JFA.js} +5 -5
  25. package/dist/{doctor-NZITN3GU.js → doctor-EE3BSJC3.js} +9 -9
  26. package/dist/{hook-IEB3N5WM.js → hook-KPE2EOM6.js} +6 -6
  27. package/dist/index.js +17 -17
  28. package/dist/{init-KBYUX7RA.js → init-RTGM5G6T.js} +12 -12
  29. package/dist/{install-YLGAQSP2.js → install-SD3H67Y2.js} +12 -12
  30. package/dist/{mission-control-QJBSZVNI.js → mission-control-CRMCRZUU.js} +1 -1
  31. package/dist/{run-PFANZJ5Y.js → run-S27AZ6ZE.js} +2 -2
  32. package/dist/{run-plan-7EB4ERSQ.js → run-plan-OC3IF4PH.js} +2 -2
  33. package/dist/{session-start-XUAPF7TR.js → session-start-5PVH7L5K.js} +6 -6
  34. package/dist/{sessions-4TVVZBB7.js → sessions-HUWIIEGD.js} +1 -1
  35. package/dist/{setup-global-ND75RQEV.js → setup-global-GGFLE6QQ.js} +6 -6
  36. package/dist/{status-JI6ILZO7.js → status-77NJN2G4.js} +7 -7
  37. package/dist/{update-B2DX5IGC.js → update-26HHB5JD.js} +10 -10
  38. package/package.json +1 -1
@@ -45,6 +45,7 @@ import {
45
45
  EXTERNAL_REPORT_FILE_RE,
46
46
  extractChatSnippet,
47
47
  FIELD_REPORT_CADENCE_LEDGER_REL,
48
+ FIELD_REPORT_PLAN_VERDICTS_REL,
48
49
  FLIGHT_LOG_LEDGER_REL,
49
50
  MAX_AGENT_PROMPTS,
50
51
  MAX_EXTERNAL_REPORTS,
@@ -53,6 +54,7 @@ import {
53
54
  parseCadenceLedger,
54
55
  parseExternalReport,
55
56
  parseFieldReportDismissals,
57
+ parseFieldReportPlanVerdicts,
56
58
  parseFieldReportReviewCadenceConfig,
57
59
  parseFlightLogLedger,
58
60
  parseHandoffMarkdown,
@@ -1636,6 +1638,21 @@ function collectFieldReportDismissedIds() {
1636
1638
  }
1637
1639
  }
1638
1640
 
1641
+ /**
1642
+ * Local per-plan verdicts for the Field Report owed set (plan basenames and
1643
+ * Ask provenance only). Missing or unreadable file → [].
1644
+ */
1645
+ function collectFieldReportPlanVerdicts() {
1646
+ const verdictsPath = join(ROOT, FIELD_REPORT_PLAN_VERDICTS_REL);
1647
+ if (!existsSync(verdictsPath)) return [];
1648
+ try {
1649
+ const raw = JSON.parse(readFileSync(verdictsPath, "utf-8"));
1650
+ return parseFieldReportPlanVerdicts(raw).verdicts;
1651
+ } catch {
1652
+ return [];
1653
+ }
1654
+ }
1655
+
1639
1656
  /**
1640
1657
  * Local Current mission timing ledger. Missing or unreadable → empty ledger.
1641
1658
  * Gitignored observation store; not a UI mutation API.
@@ -1747,6 +1764,7 @@ let finalTimingLedger = null;
1747
1764
  externalReports: collectExternalReports(),
1748
1765
  subagentRuns: collectSubagentRuns(),
1749
1766
  dismissedIds: collectFieldReportDismissedIds(),
1767
+ planVerdicts: collectFieldReportPlanVerdicts(),
1750
1768
  archivedPlanFiles,
1751
1769
  agents: SNAPSHOT.agents,
1752
1770
  skills: SNAPSHOT.skills,
@@ -36,6 +36,7 @@ export const SNAPSHOT_REPO_SOURCE_RELS = Object.freeze([
36
36
  ".cursor/context/current",
37
37
  ".cursor/context/readiness.json",
38
38
  ".cursor/context/field-report-dismissals.json",
39
+ ".cursor/context/field-report-plan-verdicts.json",
39
40
  ".cursor/context/mission-timing.json",
40
41
  ".cursor/context/flight-log.json",
41
42
  ".cursor/context/test-results.json",
@@ -320,6 +320,79 @@ export function dismissedAttentionIds(parsed) {
320
320
  return (parsed?.dismissals || []).map((d) => d.id).filter(Boolean);
321
321
  }
322
322
 
323
+ /** Local per-plan verdict store for the Field Report owed set (gitignored). */
324
+ export const FIELD_REPORT_PLAN_VERDICTS_REL = ".cursor/context/field-report-plan-verdicts.json";
325
+
326
+ /** Verdicts that take a plan out of the owed set. `Keep owed` writes no row. */
327
+ export const FIELD_REPORT_PLAN_VERDICT_VALUES = Object.freeze(["delivered-nothing", "superseded"]);
328
+
329
+ const PLAN_VERDICT_BASENAME_RE = /^[A-Za-z0-9._-]+\.plan\.md$/i;
330
+ const MAX_PLAN_VERDICT_ASK = 160;
331
+ const MAX_PLAN_VERDICT_NOTE = 120;
332
+
333
+ /**
334
+ * Parse `.cursor/context/field-report-plan-verdicts.json`. Missing or malformed
335
+ * input yields an empty list (never throws). One row per plan basename: a later
336
+ * row for the same basename (case-insensitive) replaces the earlier one. A row
337
+ * counts only with a known verdict and a non-empty `ask` (the operator reply
338
+ * that produced it): a verdict without Ask provenance leaves the plan owed.
339
+ * Unknown fields are dropped so review prose cannot ride along.
340
+ * @param {unknown} raw
341
+ * @returns {{ verdicts: { plan: string, verdict: 'delivered-nothing'|'superseded', ask: string, at?: string, note?: string }[] }}
342
+ */
343
+ export function parseFieldReportPlanVerdicts(raw) {
344
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
345
+ return { verdicts: [] };
346
+ }
347
+ const list = Array.isArray(/** @type {{ verdicts?: unknown }} */ (raw).verdicts)
348
+ ? /** @type {{ verdicts: unknown[] }} */ (raw).verdicts
349
+ : [];
350
+ /** @type {Map<string, { plan: string, verdict: 'delivered-nothing'|'superseded', ask: string, at?: string, note?: string }>} */
351
+ const byPlan = new Map();
352
+ for (const entry of list) {
353
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) continue;
354
+ const plan = typeof entry.plan === "string" ? entry.plan.trim() : "";
355
+ if (!PLAN_VERDICT_BASENAME_RE.test(plan)) continue;
356
+ const verdict = typeof entry.verdict === "string" ? entry.verdict.trim() : "";
357
+ if (!FIELD_REPORT_PLAN_VERDICT_VALUES.includes(verdict)) continue;
358
+ const ask = typeof entry.ask === "string" ? entry.ask.trim() : "";
359
+ if (!ask) continue;
360
+ const row = {
361
+ plan,
362
+ verdict: /** @type {'delivered-nothing'|'superseded'} */ (verdict),
363
+ ask: ask.slice(0, MAX_PLAN_VERDICT_ASK),
364
+ };
365
+ if (typeof entry.at === "string" && entry.at.trim()) {
366
+ row.at = entry.at.trim();
367
+ }
368
+ if (typeof entry.note === "string" && entry.note.trim()) {
369
+ row.note = entry.note.trim().slice(0, MAX_PLAN_VERDICT_NOTE);
370
+ }
371
+ const key = plan.toLowerCase();
372
+ byPlan.delete(key);
373
+ byPlan.set(key, row);
374
+ }
375
+ return { verdicts: [...byPlan.values()] };
376
+ }
377
+
378
+ /**
379
+ * Lower-cased plan basenames that carry a verdict. Accepts parsed rows or bare
380
+ * basenames; anything else is ignored.
381
+ * @param {unknown} planVerdicts
382
+ * @returns {Set<string>}
383
+ */
384
+ function verdictPlanKeys(planVerdicts) {
385
+ const keys = new Set();
386
+ for (const entry of Array.isArray(planVerdicts) ? planVerdicts : []) {
387
+ const plan =
388
+ typeof entry === "string" ? entry : entry && typeof entry === "object" ? entry.plan : "";
389
+ if (typeof plan !== "string") continue;
390
+ const base = plan.split("/").pop().trim().toLowerCase();
391
+ if (PLAN_VERDICT_BASENAME_RE.test(base)) keys.add(base);
392
+ }
393
+ return keys;
394
+ }
395
+
323
396
  /** Relative path of the gitignored mission timing ledger (local observation). */
324
397
  export const MISSION_TIMING_LEDGER_REL = ".cursor/context/mission-timing.json";
325
398
 
@@ -1038,6 +1111,10 @@ export function classifyOwedPlan(plan, lifecycle, opts = {}) {
1038
1111
  * `TERMINAL_FIELD_REPORT_LIFECYCLES` stays unchanged: it also drives prompt
1039
1112
  * clear and report demotion.
1040
1113
  * Owed targets also carry `classification` and one `evidenceLine` (classifyOwedPlan).
1114
+ * A plan with an operator verdict row (`opts.planVerdicts`, see
1115
+ * parseFieldReportPlanVerdicts) is never owed. Untriaged monitors are not
1116
+ * affected: a verdict never hides a review that exists.
1117
+ * @param {{ planVerdicts?: ({ plan: string } | string)[] }} [opts]
1041
1118
  * @returns {{ kind: 'report'|'owed', planFile: string, slug: string, path: string, lifecycle?: string, completedTodoIds?: string[], totalTodos?: number, classification?: string, evidenceLine?: string }[]}
1042
1119
  */
1043
1120
  export function listUnreviewedReviewTargets(
@@ -1045,10 +1122,12 @@ export function listUnreviewedReviewTargets(
1045
1122
  handoff,
1046
1123
  externalReports = [],
1047
1124
  archivedPlanFiles = [],
1125
+ opts = {},
1048
1126
  ) {
1049
1127
  const targets = [];
1050
1128
  const seenPlans = new Set();
1051
1129
  const monitorSlugs = new Set();
1130
+ const verdictPlans = verdictPlanKeys(opts?.planVerdicts);
1052
1131
 
1053
1132
  for (const report of externalReports || []) {
1054
1133
  if (!report || !report.file) continue;
@@ -1080,6 +1159,7 @@ export function listUnreviewedReviewTargets(
1080
1159
  if (!slug || monitorSlugs.has(normalizeSlug(slug))) continue;
1081
1160
  const stats = todoStats(plan);
1082
1161
  if (stats.completed === 0) continue;
1162
+ if (verdictPlans.has(planFile.toLowerCase())) continue;
1083
1163
  seenPlans.add(planFile);
1084
1164
  targets.push({
1085
1165
  kind: "owed",
@@ -3269,6 +3349,7 @@ export function buildAttentionItems({
3269
3349
  agentPrompts = [],
3270
3350
  externalReports = [],
3271
3351
  dismissedIds = [],
3352
+ planVerdicts = [],
3272
3353
  archivedPlanFiles = [],
3273
3354
  readinessPending = [],
3274
3355
  deferredCheckIds = [],
@@ -3308,6 +3389,7 @@ export function buildAttentionItems({
3308
3389
  handoff,
3309
3390
  externalReports,
3310
3391
  archivedPlanFiles,
3392
+ { planVerdicts },
3311
3393
  );
3312
3394
  const cadenceItem = buildCadenceAttentionItem(cadenceLedger, unreviewed, {
3313
3395
  enabled: cadenceOpts.enabled,
@@ -4101,6 +4183,7 @@ export function buildMissionControlView({
4101
4183
  externalReports = [],
4102
4184
  subagentRuns = [],
4103
4185
  dismissedIds = [],
4186
+ planVerdicts = [],
4104
4187
  archivedPlanFiles = [],
4105
4188
  agents = [],
4106
4189
  skills = [],
@@ -4184,6 +4267,7 @@ export function buildMissionControlView({
4184
4267
  agentPrompts,
4185
4268
  externalReports,
4186
4269
  dismissedIds,
4270
+ planVerdicts,
4187
4271
  archivedPlanFiles,
4188
4272
  readinessPending: allowlistReadinessPending(readinessPending),
4189
4273
  deferredCheckIds,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  REGISTRY_CLI_ARGS,
7
7
  resolveRegistryFromCli
8
- } from "./chunk-LX5AO7KO.js";
8
+ } from "./chunk-NJ3JGF2O.js";
9
9
  import {
10
10
  logger
11
11
  } from "./chunk-ZB43YMHW.js";
@@ -22,8 +22,8 @@ import {
22
22
  resolveProtectedGlobs,
23
23
  saveManifest,
24
24
  upsertIdList
25
- } from "./chunk-WKZ63IZ7.js";
26
- import "./chunk-SPXAHVK4.js";
25
+ } from "./chunk-44AVHJRV.js";
26
+ import "./chunk-27NYWS3N.js";
27
27
  import {
28
28
  KIT_VERSION
29
29
  } from "./chunk-7HDQEK6T.js";
@@ -456,7 +456,23 @@ var KNOWN_SHIPPED_OVERLAY_HASHES = /* @__PURE__ */ new Set([
456
456
  "57da9c554ff52330eaf58e3217ba0b12467aa230fef2ca28d143ec78836d5b0e",
457
457
  "b255ea4edfc60c4f501cdb11880c612f7381f76dd19cc5833e00dca887cdb494",
458
458
  "bb49bccda1d54fdae2c645c1a528c5711392b1965e559c5e2b10137a795b702f",
459
- "c874ced44a45dd13189478a4b3873062cd781ea8dbff0dfe27983e7354763ca3"
459
+ "c874ced44a45dd13189478a4b3873062cd781ea8dbff0dfe27983e7354763ca3",
460
+ "46301e15122d8b459be5f43f627aa4252866daf9f898d203c7d0d89360b0c424",
461
+ "6e7dd242e9fc65bc02c686992b89c8274b0d74b60240cb303a85afc621e5622a",
462
+ "7250d8cdddb0d7152d7e35483e312f132d452a2f64d8e302454fa6c3536221a4",
463
+ "9a932fa0f081915c5d5d6654f2964fe7e295a01b956757b9179da365c357498a",
464
+ "ad4a5ea78f606468e286a8357cc4e847e92254ca1bad9a6e77a4ebe060d2efb6",
465
+ "d454279a15eaac90f891e532edd03e9fdbb3d4f2e70f364412bfeafe264a8f62",
466
+ "c2eb5c2008a60efc4166736526f2d533f5f9065ca61bbfc4cd232e016a38199c",
467
+ "a39d60c0040e249a9cb096414f67366939121eceda5c9087ec0f7896a1e2cbc1",
468
+ "be813d8741a05ebeea13db5576f4e2893da1a43316ad45e9361391e58be3393c",
469
+ // mission-kit-comms/SKILL.md (release mirror exception, 2026-11-22)
470
+ "daf5d4d1cb1c0920f00f1e483316ededccd29da9bcd3e92b3f0d64702e78f329",
471
+ "144bc96d8e357f087c10e8bbc1698fc94955e196ed959abeeda4659087a2daa9",
472
+ "afde6839f7d35fbfdddee85068252e1f5187b0caf3e29728b31e1ce81dea1f83",
473
+ "d0f95082a50d53b5b8fd33c55c538ce8104a1be5439e4bc596cbe35e22a4e5c5",
474
+ "27dc66786d9071f30fc5068a7b3a1ed5c2c904a26f928f311e33432ac5b6571b",
475
+ "b2fb21604ca3cdc4f42a48a6f29873a41ca7decad7133419c982a4a340f733b3"
460
476
  ]);
461
477
 
462
478
  // src/lifecycle/paths.ts
@@ -8,7 +8,7 @@ import {
8
8
  saveManagedHashLedger,
9
9
  shouldPreserveCustomizedOverlay,
10
10
  toPosixRel
11
- } from "./chunk-SPXAHVK4.js";
11
+ } from "./chunk-27NYWS3N.js";
12
12
  import {
13
13
  HANDOFF_REL
14
14
  } from "./chunk-C4Q77GGJ.js";
@@ -3,7 +3,7 @@ import {
3
3
  ScrollRegion,
4
4
  renderMcLive,
5
5
  runMcTuiLoop
6
- } from "./chunk-MPCNPZJZ.js";
6
+ } from "./chunk-CQHD6UKB.js";
7
7
  import {
8
8
  DRIVER_PROTOCOL_VERSION,
9
9
  DriverAgentSink,
@@ -24,13 +24,13 @@ import {
24
24
  } from "./chunk-HAFRAXGV.js";
25
25
  import {
26
26
  stampLastCheckedAt
27
- } from "./chunk-5V4C5N2P.js";
27
+ } from "./chunk-IWCJ6RM6.js";
28
28
  import {
29
29
  loadContextConfig
30
30
  } from "./chunk-PFEUZXVT.js";
31
31
  import {
32
32
  MANIFEST_RELATIVE_PATH
33
- } from "./chunk-WKZ63IZ7.js";
33
+ } from "./chunk-44AVHJRV.js";
34
34
  import {
35
35
  HANDOFF_REL
36
36
  } from "./chunk-C4Q77GGJ.js";
@@ -9,7 +9,7 @@ import {
9
9
  assertRealParentContained,
10
10
  isRealWriteTargetContained,
11
11
  resolveContained
12
- } from "./chunk-SPXAHVK4.js";
12
+ } from "./chunk-27NYWS3N.js";
13
13
  import {
14
14
  ensureDir
15
15
  } from "./chunk-5B4DVO6C.js";
@@ -132,10 +132,10 @@ async function saveClaudeSettingsLedger(root, additions, opts = {}) {
132
132
  var CLAUDE_SETTINGS_REL = ".claude/settings.json";
133
133
  var RESOLVE_AGENT_KIT_REL = ".cursor/hooks/agent/resolve-agent-kit.sh";
134
134
  var SESSION_START_HOOK_MARKER = "hook session-start --format claude";
135
- var SESSION_START_DEGRADED_TEXT = "Agent Kit hooks are running in degraded fail-open mode: the agent-kit CLI could not be resolved (checked AGENT_KIT_HOOK_BIN, node_modules/.bin/agent-kit, PATH), or it resolved to a node script and node is not on PATH. Slash command adapters still work; session-context injection is inactive. Fix: install the CLI (npm i -D @dadado/agent-kit-cli), put node on PATH, or set AGENT_KIT_HOOK_BIN.";
135
+ var SESSION_START_DEGRADED_TEXT = "Agent Kit hooks are running in degraded fail-open mode: the agent-kit CLI could not be resolved (checked AGENT_KIT_HOOK_BIN, node_modules/.bin/agent-kit, PATH), it resolved to a node script and node is not on PATH, or it ran and exited non-zero with no output (a mise or asdf shim does this when the Node version active in this workspace has no agent-kit installed). Slash command adapters still work; session-context injection and the Bash shell guard are inactive. Fix: install the CLI (npm i -D @dadado/agent-kit-cli, or npm i -g @dadado/agent-kit-cli then mise reshim under mise), put node on PATH, or set AGENT_KIT_HOOK_BIN.";
136
136
  function buildSessionStartHookCommand() {
137
137
  const run = `{ if command -v run_agent_kit >/dev/null 2>&1; then run_agent_kit ${SESSION_START_HOOK_MARKER}; else exec $AGENT_KIT_RESOLVED ${SESSION_START_HOOK_MARKER}; fi; }`;
138
- return `_AGENT_KIT_HOOK_ROOT="\${CLAUDE_PROJECT_DIR}"; . "\${CLAUDE_PROJECT_DIR}/${RESOLVE_AGENT_KIT_REL}" 2>/dev/null && resolve_agent_kit && ${run}; printf '%s' ${shellSingleQuote(SESSION_START_DEGRADED_TEXT)}`;
138
+ return `_AGENT_KIT_HOOK_ROOT="\${CLAUDE_PROJECT_DIR}"; AGENT_KIT_RUN_FAILURE=; . "\${CLAUDE_PROJECT_DIR}/${RESOLVE_AGENT_KIT_REL}" 2>/dev/null && resolve_agent_kit && ${run}; printf '%s%s' ${shellSingleQuote(SESSION_START_DEGRADED_TEXT)} "\${AGENT_KIT_RUN_FAILURE:+ Cause: $AGENT_KIT_RUN_FAILURE.}"`;
139
139
  }
140
140
  var GUARD_SHELL_HOOK_MARKER = "guard shell --format claude";
141
141
  function buildGuardShellHookCommand() {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  managedPairs
3
- } from "./chunk-NAU3ROWR.js";
3
+ } from "./chunk-DYIIOALZ.js";
4
4
  import {
5
5
  isProtectedPath,
6
6
  resolveProtectedGlobs
7
- } from "./chunk-WKZ63IZ7.js";
7
+ } from "./chunk-44AVHJRV.js";
8
8
  import {
9
9
  resolveContained
10
- } from "./chunk-SPXAHVK4.js";
10
+ } from "./chunk-27NYWS3N.js";
11
11
 
12
12
  // src/lifecycle/diff.ts
13
13
  import { readFile } from "fs/promises";
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  compareSemver,
6
6
  normalizeSemver
7
- } from "./chunk-5V4C5N2P.js";
7
+ } from "./chunk-IWCJ6RM6.js";
8
8
  import {
9
9
  MANIFEST_RELATIVE_PATH
10
- } from "./chunk-WKZ63IZ7.js";
10
+ } from "./chunk-44AVHJRV.js";
11
11
  import {
12
12
  KIT_VERSION,
13
13
  pinnedCliSpec
@@ -39,6 +39,7 @@ var SNAPSHOT_REPO_SOURCE_RELS = Object.freeze([
39
39
  ".cursor/context/current",
40
40
  ".cursor/context/readiness.json",
41
41
  ".cursor/context/field-report-dismissals.json",
42
+ ".cursor/context/field-report-plan-verdicts.json",
42
43
  ".cursor/context/mission-timing.json",
43
44
  ".cursor/context/flight-log.json",
44
45
  ".cursor/context/test-results.json",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MANIFEST_RELATIVE_PATH
3
- } from "./chunk-WKZ63IZ7.js";
3
+ } from "./chunk-44AVHJRV.js";
4
4
  import {
5
5
  fileExists
6
6
  } from "./chunk-5B4DVO6C.js";
@@ -7,7 +7,7 @@ import {
7
7
  loadRegistry,
8
8
  packMemberFileTargets,
9
9
  skillFileTargets
10
- } from "./chunk-WKZ63IZ7.js";
10
+ } from "./chunk-44AVHJRV.js";
11
11
 
12
12
  // src/lifecycle/targets.ts
13
13
  import path from "path";
@@ -4,11 +4,11 @@ import {
4
4
  RESOLVE_AGENT_KIT_REL,
5
5
  SESSION_START_HOOK_MARKER,
6
6
  mergeAllowRowsWithoutGuard
7
- } from "./chunk-WMS3SSOO.js";
7
+ } from "./chunk-5U6AGH7T.js";
8
8
  import {
9
9
  CLAUDE_COMMANDS_DIR_REL,
10
10
  discoverInstalledCommands
11
- } from "./chunk-KF544JTV.js";
11
+ } from "./chunk-TUEREBTR.js";
12
12
  import {
13
13
  findOnPath
14
14
  } from "./chunk-WGLPZXNU.js";
@@ -2,7 +2,7 @@ import {
2
2
  compareSemver,
3
3
  normalizeSemver,
4
4
  readLocalKitVersion
5
- } from "./chunk-5V4C5N2P.js";
5
+ } from "./chunk-IWCJ6RM6.js";
6
6
  import {
7
7
  L0_ARTIFACTS
8
8
  } from "./chunk-WS6OX2IG.js";
@@ -15,11 +15,11 @@ import {
15
15
  mergeStats,
16
16
  recordOutcome,
17
17
  resolveProtectedGlobs
18
- } from "./chunk-WKZ63IZ7.js";
18
+ } from "./chunk-44AVHJRV.js";
19
19
  import {
20
20
  loadManagedHashLedger,
21
21
  saveManagedHashLedger
22
- } from "./chunk-SPXAHVK4.js";
22
+ } from "./chunk-27NYWS3N.js";
23
23
  import {
24
24
  KIT_PACKAGE_SPEC,
25
25
  KIT_VERSION
@@ -6,13 +6,13 @@ import {
6
6
  import {
7
7
  diffAgainstRegistry,
8
8
  summarizeDiff
9
- } from "./chunk-NA2LTNJS.js";
9
+ } from "./chunk-7MKWNRAC.js";
10
10
  import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  assertSafeRegistrySource,
13
13
  loadAgentKitManifest,
14
14
  resolveRegistryRoot
15
- } from "./chunk-WKZ63IZ7.js";
15
+ } from "./chunk-44AVHJRV.js";
16
16
  import {
17
17
  KIT_PACKAGE_SPEC,
18
18
  KIT_VERSION
@@ -5,7 +5,7 @@ import {
5
5
  DEFAULT_REGISTRY_REF,
6
6
  DEFAULT_REGISTRY_URL,
7
7
  resolveRegistryRoot
8
- } from "./chunk-WKZ63IZ7.js";
8
+ } from "./chunk-44AVHJRV.js";
9
9
 
10
10
  // src/lifecycle/resolve-cli.ts
11
11
  async function resolveRegistryFromCli(options) {
@@ -5,7 +5,7 @@ import {
5
5
  resolveContained,
6
6
  saveManagedHashLedger,
7
7
  shouldPreserveCustomizedOverlay
8
- } from "./chunk-SPXAHVK4.js";
8
+ } from "./chunk-27NYWS3N.js";
9
9
  import {
10
10
  ensureDir,
11
11
  fileExists
@@ -6,7 +6,7 @@ import {
6
6
  formatStaleCliRefusal,
7
7
  installL0,
8
8
  syncFromManifest
9
- } from "./chunk-OXLLHI2W.js";
9
+ } from "./chunk-HMJNIIWG.js";
10
10
  import {
11
11
  SkippedSymlinkError,
12
12
  formatPersonalizationSkippedSymlinks,
@@ -15,21 +15,21 @@ import {
15
15
  import {
16
16
  REGISTRY_CLI_ARGS,
17
17
  resolveRegistryFromCli
18
- } from "./chunk-LX5AO7KO.js";
18
+ } from "./chunk-NJ3JGF2O.js";
19
19
  import {
20
20
  assessClaudeCommandAdapters,
21
21
  executeSafeReadinessFixes
22
- } from "./chunk-R3QNQWLB.js";
22
+ } from "./chunk-FOGD3MWJ.js";
23
23
  import {
24
24
  writeReadinessSnapshot
25
25
  } from "./chunk-HAFRAXGV.js";
26
26
  import {
27
27
  writeClaudeSessionStartHook
28
- } from "./chunk-WMS3SSOO.js";
28
+ } from "./chunk-5U6AGH7T.js";
29
29
  import {
30
30
  CLAUDE_HITL_FALLBACK,
31
31
  generateClaudeCommandAdapters
32
- } from "./chunk-KF544JTV.js";
32
+ } from "./chunk-TUEREBTR.js";
33
33
  import {
34
34
  shouldUseWelcomeColor,
35
35
  withCliProgress
@@ -56,13 +56,13 @@ import {
56
56
  npxPinned,
57
57
  pathCliStatus,
58
58
  syncPathCliToRuntime
59
- } from "./chunk-DY6EWD5X.js";
59
+ } from "./chunk-BTQ3D6N7.js";
60
60
  import {
61
61
  assessEnvironment
62
62
  } from "./chunk-B3VR5YBQ.js";
63
63
  import {
64
64
  warnIfRunningCliBehindNpm
65
- } from "./chunk-5V4C5N2P.js";
65
+ } from "./chunk-IWCJ6RM6.js";
66
66
  import {
67
67
  DOMAIN_PACK_IDS,
68
68
  allPacks,
@@ -79,7 +79,7 @@ import {
79
79
  resolveProtectedGlobs,
80
80
  saveManifest,
81
81
  skillTargetDir
82
- } from "./chunk-WKZ63IZ7.js";
82
+ } from "./chunk-44AVHJRV.js";
83
83
  import {
84
84
  KIT_VERSION,
85
85
  pinnedCliSpec
@@ -7,14 +7,14 @@ import "./chunk-P7732A25.js";
7
7
  import {
8
8
  CURSOR_COMMANDS_DIR_REL,
9
9
  discoverInstalledCommands
10
- } from "./chunk-KF544JTV.js";
10
+ } from "./chunk-TUEREBTR.js";
11
11
  import "./chunk-WGLPZXNU.js";
12
12
  import "./chunk-Q35TWISF.js";
13
13
  import "./chunk-QTON2GQX.js";
14
14
  import {
15
15
  L0_ARTIFACTS
16
16
  } from "./chunk-WS6OX2IG.js";
17
- import "./chunk-SPXAHVK4.js";
17
+ import "./chunk-27NYWS3N.js";
18
18
  import {
19
19
  KIT_VERSION
20
20
  } from "./chunk-7HDQEK6T.js";
@@ -271,6 +271,43 @@ function withContext(file, n = CONFLICT_CONTEXT_LINES) {
271
271
  ];
272
272
  });
273
273
  }
274
+ function alignBases(working, rendition) {
275
+ const run = [];
276
+ rendition.segments.forEach((seg, i) => {
277
+ if (seg.kind !== "hunk") return;
278
+ const next = rendition.segments[i + 1];
279
+ const gap = next?.kind === "hunk" ? "" : next?.kind === "text" && rendition.segments.slice(i + 2).some((s) => s.kind === "hunk") ? next.text : null;
280
+ run.push({ hunk: seg.hunk, gap });
281
+ });
282
+ const bases = [];
283
+ let r = 0;
284
+ for (const w of working) {
285
+ let ours = "";
286
+ let theirs = "";
287
+ let base = "";
288
+ let matched = false;
289
+ while (r < run.length) {
290
+ const { hunk, gap } = run[r];
291
+ if (hunk.base === null) return null;
292
+ ours += hunk.ours;
293
+ theirs += hunk.theirs;
294
+ base += hunk.base;
295
+ r++;
296
+ if (ours === w.ours && theirs === w.theirs) {
297
+ matched = true;
298
+ break;
299
+ }
300
+ if (gap === null) return null;
301
+ ours += gap;
302
+ theirs += gap;
303
+ base += gap;
304
+ if (!w.ours.startsWith(ours) || !w.theirs.startsWith(theirs)) return null;
305
+ }
306
+ if (!matched) return null;
307
+ bases.push(base);
308
+ }
309
+ return r === run.length ? bases : null;
310
+ }
274
311
  async function fillBaseFromIndex(opts) {
275
312
  const { base, ours, theirs } = opts.entry.stages;
276
313
  if (!base) return { ok: false, reason: "no base in the index (both sides added the file)" };
@@ -307,16 +344,14 @@ async function fillBaseFromIndex(opts) {
307
344
  );
308
345
  if (r.code < 0 || r.code > 127) continue;
309
346
  const parsed = parseConflictText(r.stdout);
310
- if (!parsed.ok || parsed.file.hunks.length !== opts.hunks.length) continue;
311
- const matches = parsed.file.hunks.every(
312
- (h, i) => h.ours === opts.hunks[i]?.ours && h.theirs === opts.hunks[i]?.theirs
313
- );
314
- if (!matches) continue;
347
+ if (!parsed.ok) continue;
348
+ const bases = alignBases(opts.hunks, parsed.file);
349
+ if (!bases) continue;
315
350
  return {
316
351
  ok: true,
317
352
  hunks: opts.hunks.map((h, i) => ({
318
353
  ...h,
319
- base: parsed.file.hunks[i]?.base ?? "",
354
+ base: bases[i] ?? "",
320
355
  baseLabel: "index stage 1"
321
356
  }))
322
357
  };
@@ -651,6 +686,25 @@ ${String(err)}` });
651
686
  });
652
687
  });
653
688
  });
689
+ var LOCKFILES = [
690
+ "pnpm-lock.yaml",
691
+ "package-lock.json",
692
+ "npm-shrinkwrap.json",
693
+ "yarn.lock"
694
+ ];
695
+ function installStep(lockfiles) {
696
+ if (lockfiles.has("pnpm-lock.yaml")) return "pnpm install --frozen-lockfile --prefer-offline";
697
+ if (lockfiles.has("package-lock.json") || lockfiles.has("npm-shrinkwrap.json")) {
698
+ return "npm ci --prefer-offline";
699
+ }
700
+ if (lockfiles.has("yarn.lock")) return "yarn install --frozen-lockfile --prefer-offline";
701
+ return null;
702
+ }
703
+ function dependencyNote(lockfiles, commands) {
704
+ const install = installStep(lockfiles) ?? "<your install command>";
705
+ const recipe = [install, ...commands].join(" && ").replaceAll("'", "'\\''");
706
+ return `dependencies are not installed in the temporary worktree (no node_modules), so a failure may come from that; to install first: --verify-cmd '${recipe}'`;
707
+ }
654
708
  async function readVerifyCommands(git) {
655
709
  const r = await git(["show", `HEAD:${AGENT_KIT_CONFIG_RELPATH}`]);
656
710
  if (r.code !== 0) return [];
@@ -734,17 +788,16 @@ async function verifyResolution(opts) {
734
788
  }
735
789
  await mkdir(path2.dirname(target), { recursive: true });
736
790
  await writeFile2(target, opts.resolvedText, "utf8");
737
- try {
738
- await lstat(path2.join(tree, "package.json"));
739
- try {
740
- await lstat(path2.join(tree, "node_modules"));
741
- } catch {
742
- notes.push(
743
- "dependencies are not installed in the temporary worktree (no node_modules); a failure may come from that: pass --verify-cmd with an install step"
744
- );
745
- }
746
- } catch {
747
- }
791
+ const exists = (rel) => lstat(path2.join(tree, rel)).then(
792
+ () => true,
793
+ () => false
794
+ );
795
+ const missingDependencies = async () => {
796
+ if (!await exists("package.json") || await exists("node_modules")) return null;
797
+ const present = /* @__PURE__ */ new Set();
798
+ for (const f of LOCKFILES) if (await exists(f)) present.add(f);
799
+ return dependencyNote(present, opts.commands);
800
+ };
748
801
  const run = opts.runShell ?? defaultRunShell;
749
802
  const reports = [];
750
803
  for (const command of opts.commands) {
@@ -755,11 +808,12 @@ async function verifyResolution(opts) {
755
808
  });
756
809
  reports.push({ command, exitCode: r.code, tail: red(r.output.slice(-VERIFY_TAIL_BYTES)) });
757
810
  if (r.code !== 0) {
811
+ const deps = await missingDependencies();
758
812
  return {
759
813
  status: "failed",
760
814
  reason: `\`${command}\` exited ${r.code}`,
761
815
  commands: reports,
762
- notes
816
+ notes: deps ? [...notes, deps] : notes
763
817
  };
764
818
  }
765
819
  }
@@ -982,12 +1036,12 @@ var proposeCommand = defineCommand({
982
1036
  json: { type: "boolean", description: "Print the full result as JSON", default: false },
983
1037
  verify: {
984
1038
  type: "boolean",
985
- description: "Verify the resolved file in a temporary worktree (stack.validationCommands and stack.testCommands from HEAD's .cursor/agent-kit.config.json); --no-verify skips. The proposal is code: verification runs it",
1039
+ description: "Verify the resolved file in a temporary worktree: runs stack.validationCommands and stack.testCommands from HEAD's .cursor/agent-kit.config.json (or --verify-cmd) on the model's text and the files the merge brought in, before anyone has reviewed them, unsandboxed, as you, with your environment and network; --no-verify skips",
986
1040
  default: true
987
1041
  },
988
1042
  "verify-cmd": {
989
1043
  type: "string",
990
- description: "Shell command to verify with instead of the configured ones"
1044
+ description: "Shell command to verify with instead of the configured ones. The temporary worktree has no dependencies installed: on a Node repository put the install first, e.g. --verify-cmd 'pnpm install --frozen-lockfile --prefer-offline && pnpm test' (npm: 'npm ci --prefer-offline && npm test'); a failed verification without node_modules prints the one for your lockfile and commands"
991
1045
  },
992
1046
  "verify-timeout": {
993
1047
  type: "string",
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  REGISTRY_CLI_ARGS,
3
3
  resolveRegistryFromCli
4
- } from "./chunk-LX5AO7KO.js";
4
+ } from "./chunk-NJ3JGF2O.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-ZB43YMHW.js";
8
8
  import {
9
9
  managedPairs
10
- } from "./chunk-NAU3ROWR.js";
10
+ } from "./chunk-DYIIOALZ.js";
11
11
  import "./chunk-WS6OX2IG.js";
12
12
  import {
13
13
  loadAgentKitManifest,
14
14
  normalizeRelPath
15
- } from "./chunk-WKZ63IZ7.js";
15
+ } from "./chunk-44AVHJRV.js";
16
16
  import {
17
17
  resolveContained
18
- } from "./chunk-SPXAHVK4.js";
18
+ } from "./chunk-27NYWS3N.js";
19
19
  import "./chunk-C4Q77GGJ.js";
20
20
  import "./chunk-5B4DVO6C.js";
21
21
 
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  REGISTRY_CLI_ARGS,
3
3
  resolveRegistryFromCli
4
- } from "./chunk-LX5AO7KO.js";
4
+ } from "./chunk-NJ3JGF2O.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-ZB43YMHW.js";
8
8
  import {
9
9
  diffAgainstRegistry,
10
10
  summarizeDiff
11
- } from "./chunk-NA2LTNJS.js";
12
- import "./chunk-NAU3ROWR.js";
11
+ } from "./chunk-7MKWNRAC.js";
12
+ import "./chunk-DYIIOALZ.js";
13
13
  import "./chunk-WS6OX2IG.js";
14
14
  import {
15
15
  loadAgentKitManifest
16
- } from "./chunk-WKZ63IZ7.js";
17
- import "./chunk-SPXAHVK4.js";
16
+ } from "./chunk-44AVHJRV.js";
17
+ import "./chunk-27NYWS3N.js";
18
18
  import "./chunk-C4Q77GGJ.js";
19
19
  import "./chunk-5B4DVO6C.js";
20
20
 
@@ -2,12 +2,12 @@ import {
2
2
  assessHooksHealth,
3
3
  executeSafeReadinessFixes,
4
4
  refreshRepositoryProfile
5
- } from "./chunk-R3QNQWLB.js";
5
+ } from "./chunk-FOGD3MWJ.js";
6
6
  import {
7
7
  writeReadinessSnapshot
8
8
  } from "./chunk-HAFRAXGV.js";
9
- import "./chunk-WMS3SSOO.js";
10
- import "./chunk-KF544JTV.js";
9
+ import "./chunk-5U6AGH7T.js";
10
+ import "./chunk-TUEREBTR.js";
11
11
  import "./chunk-WGLPZXNU.js";
12
12
  import "./chunk-Q35TWISF.js";
13
13
  import {
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  detectWorkspaceParent,
18
18
  workspaceParentAdvisoryLines
19
- } from "./chunk-XJORZUTG.js";
19
+ } from "./chunk-DJKZLY3E.js";
20
20
  import {
21
21
  createReadinessReport
22
22
  } from "./chunk-PNFF6OU3.js";
@@ -33,13 +33,13 @@ import {
33
33
  } from "./chunk-B3VR5YBQ.js";
34
34
  import {
35
35
  warnIfRunningCliBehindNpm
36
- } from "./chunk-5V4C5N2P.js";
36
+ } from "./chunk-IWCJ6RM6.js";
37
37
  import "./chunk-PFEUZXVT.js";
38
- import "./chunk-NA2LTNJS.js";
39
- import "./chunk-NAU3ROWR.js";
38
+ import "./chunk-7MKWNRAC.js";
39
+ import "./chunk-DYIIOALZ.js";
40
40
  import "./chunk-WS6OX2IG.js";
41
- import "./chunk-WKZ63IZ7.js";
42
- import "./chunk-SPXAHVK4.js";
41
+ import "./chunk-44AVHJRV.js";
42
+ import "./chunk-27NYWS3N.js";
43
43
  import {
44
44
  KIT_VERSION
45
45
  } from "./chunk-7HDQEK6T.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildSessionStartAdditionalContext,
3
3
  resolveSessionRoot
4
- } from "./chunk-WF3CXK4J.js";
4
+ } from "./chunk-5KF4IHXO.js";
5
5
  import "./chunk-2YU2H7I6.js";
6
6
  import {
7
7
  readStdinJson
@@ -13,13 +13,13 @@ import "./chunk-4CRBUEJ6.js";
13
13
  import "./chunk-L5V3W3DY.js";
14
14
  import "./chunk-MUTTNRX4.js";
15
15
  import "./chunk-HAFRAXGV.js";
16
- import "./chunk-5V4C5N2P.js";
16
+ import "./chunk-IWCJ6RM6.js";
17
17
  import "./chunk-PFEUZXVT.js";
18
- import "./chunk-NA2LTNJS.js";
19
- import "./chunk-NAU3ROWR.js";
18
+ import "./chunk-7MKWNRAC.js";
19
+ import "./chunk-DYIIOALZ.js";
20
20
  import "./chunk-WS6OX2IG.js";
21
- import "./chunk-WKZ63IZ7.js";
22
- import "./chunk-SPXAHVK4.js";
21
+ import "./chunk-44AVHJRV.js";
22
+ import "./chunk-27NYWS3N.js";
23
23
  import "./chunk-7HDQEK6T.js";
24
24
  import "./chunk-C4Q77GGJ.js";
25
25
  import "./chunk-5B4DVO6C.js";
package/dist/index.js CHANGED
@@ -234,41 +234,41 @@ var main = defineCommand({
234
234
  version: KIT_VERSION
235
235
  },
236
236
  subCommands: {
237
- init: () => import("./init-KBYUX7RA.js").then((m) => m.initCommand),
238
- install: () => import("./install-YLGAQSP2.js").then((m) => m.installCommand),
237
+ init: () => import("./init-RTGM5G6T.js").then((m) => m.initCommand),
238
+ install: () => import("./install-SD3H67Y2.js").then((m) => m.installCommand),
239
239
  scan: () => import("./scan-K3T5RQLC.js").then((m) => m.scanCommand),
240
- add: () => import("./add-DYRNPADR.js").then((m) => m.addCommand),
241
- doctor: () => import("./doctor-NZITN3GU.js").then((m) => m.doctorCommand),
242
- "setup-global": () => import("./setup-global-ND75RQEV.js").then((m) => m.setupGlobalCommand),
243
- status: () => import("./status-JI6ILZO7.js").then((m) => m.statusCommand),
244
- update: () => import("./update-B2DX5IGC.js").then((m) => m.updateCommand),
240
+ add: () => import("./add-XDGERL6L.js").then((m) => m.addCommand),
241
+ doctor: () => import("./doctor-EE3BSJC3.js").then((m) => m.doctorCommand),
242
+ "setup-global": () => import("./setup-global-GGFLE6QQ.js").then((m) => m.setupGlobalCommand),
243
+ status: () => import("./status-77NJN2G4.js").then((m) => m.statusCommand),
244
+ update: () => import("./update-26HHB5JD.js").then((m) => m.updateCommand),
245
245
  "cursor-awareness": () => import("./cursor-awareness-TN5JXD2C.js").then((m) => m.cursorAwarenessCommand),
246
246
  "public-inbound-radar": () => import("./public-inbound-radar-5U4JMBRU.js").then((m) => m.publicInboundRadarCommand),
247
247
  "remote-issues": () => import("./remote-issues-APYOMIJC.js").then((m) => m.remoteIssuesCommand),
248
248
  dogfood: () => import("./dogfood-2JAHSYQA.js").then((m) => m.dogfoodCommand),
249
- diff: () => import("./diff-HLBPPBUB.js").then((m) => m.diffCommand),
250
- contribute: () => import("./contribute-H3SOZGQQ.js").then((m) => m.contributeCommand),
249
+ diff: () => import("./diff-JJH42JFA.js").then((m) => m.diffCommand),
250
+ contribute: () => import("./contribute-2ATM22YG.js").then((m) => m.contributeCommand),
251
251
  handoff: () => import("./handoff-5AGE2D3T.js").then((m) => m.handoffCommand),
252
252
  "plan-index": () => import("./plan-index-BNLUU6T5.js").then((m) => m.planIndexCommand),
253
- run: () => import("./run-PFANZJ5Y.js").then((m) => m.runCommand),
254
- "run-plan": () => import("./run-plan-7EB4ERSQ.js").then((m) => m.runPlanCommand),
255
- "run-plan-all": () => import("./run-PFANZJ5Y.js").then((m) => m.runPlanAllCommand),
253
+ run: () => import("./run-S27AZ6ZE.js").then((m) => m.runCommand),
254
+ "run-plan": () => import("./run-plan-OC3IF4PH.js").then((m) => m.runPlanCommand),
255
+ "run-plan-all": () => import("./run-S27AZ6ZE.js").then((m) => m.runPlanAllCommand),
256
256
  queue: () => import("./queue-OJHKFKK3.js").then((m) => m.queueCommand),
257
257
  promote: () => import("./promote-H5MIMVEB.js").then((m) => m.promoteCommand),
258
258
  countdown: () => import("./countdown-7ONIVAG6.js").then((m) => m.countdownCommand),
259
259
  "ground-control": () => import("./ground-control-IDCXN5FK.js").then((m) => m.groundControlCommand),
260
- conflicts: () => import("./conflicts-XMN4PBCZ.js").then((m) => m.conflictsCommand),
260
+ conflicts: () => import("./conflicts-7T7KKQOY.js").then((m) => m.conflictsCommand),
261
261
  dashboard: () => import("./dashboard-P65XHYCU.js").then((m) => m.dashboardCommand),
262
262
  "dashboard-broadcast": () => import("./dashboard-broadcast-GYK34QYL.js").then((m) => m.dashboardBroadcastCommand),
263
- "mission-control": () => import("./mission-control-QJBSZVNI.js").then((m) => m.missionControlCommand),
264
- hook: () => import("./hook-IEB3N5WM.js").then((m) => m.hookCommand),
263
+ "mission-control": () => import("./mission-control-CRMCRZUU.js").then((m) => m.missionControlCommand),
264
+ hook: () => import("./hook-KPE2EOM6.js").then((m) => m.hookCommand),
265
265
  guard: () => import("./guard-RJZEEKSL.js").then((m) => m.guardCommand),
266
266
  monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
267
- sessions: () => import("./sessions-4TVVZBB7.js").then((m) => m.sessionsCommand),
267
+ sessions: () => import("./sessions-HUWIIEGD.js").then((m) => m.sessionsCommand),
268
268
  "outcome-ledger": () => import("./outcome-ledger-XLWHWPVQ.js").then((m) => m.outcomeLedgerCommand),
269
269
  validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand),
270
270
  "engine-info": () => import("./engine-info-BBI5QO5Y.js").then((m) => m.engineInfoCommand),
271
- commands: () => import("./commands-EHKVW7JR.js").then((m) => m.commandsCommand)
271
+ commands: () => import("./commands-UIV535OI.js").then((m) => m.commandsCommand)
272
272
  },
273
273
  async run({ rawArgs }) {
274
274
  if (hasCliSubcommand(rawArgs)) return;
@@ -2,19 +2,19 @@ import {
2
2
  nextStepAfterInstall,
3
3
  performInstall,
4
4
  printInstallEpilogue
5
- } from "./chunk-2YPIQCPL.js";
5
+ } from "./chunk-YXGD3FST.js";
6
6
  import {
7
7
  NON_INTERACTIVE_ROOT_ARGS
8
- } from "./chunk-OXLLHI2W.js";
8
+ } from "./chunk-HMJNIIWG.js";
9
9
  import {
10
10
  SkippedSymlinkError,
11
11
  logApplyStats
12
12
  } from "./chunk-HS7LVVLO.js";
13
- import "./chunk-LX5AO7KO.js";
14
- import "./chunk-R3QNQWLB.js";
13
+ import "./chunk-NJ3JGF2O.js";
14
+ import "./chunk-FOGD3MWJ.js";
15
15
  import "./chunk-HAFRAXGV.js";
16
- import "./chunk-WMS3SSOO.js";
17
- import "./chunk-KF544JTV.js";
16
+ import "./chunk-5U6AGH7T.js";
17
+ import "./chunk-TUEREBTR.js";
18
18
  import "./chunk-WGLPZXNU.js";
19
19
  import "./chunk-Q35TWISF.js";
20
20
  import {
@@ -32,17 +32,17 @@ import {
32
32
  confirmProjectRoot,
33
33
  isNonInteractive,
34
34
  syncPathCliToRuntime
35
- } from "./chunk-DY6EWD5X.js";
35
+ } from "./chunk-BTQ3D6N7.js";
36
36
  import {
37
37
  assessEnvironment
38
38
  } from "./chunk-B3VR5YBQ.js";
39
- import "./chunk-5V4C5N2P.js";
39
+ import "./chunk-IWCJ6RM6.js";
40
40
  import "./chunk-PFEUZXVT.js";
41
- import "./chunk-NA2LTNJS.js";
42
- import "./chunk-NAU3ROWR.js";
41
+ import "./chunk-7MKWNRAC.js";
42
+ import "./chunk-DYIIOALZ.js";
43
43
  import "./chunk-WS6OX2IG.js";
44
- import "./chunk-WKZ63IZ7.js";
45
- import "./chunk-SPXAHVK4.js";
44
+ import "./chunk-44AVHJRV.js";
45
+ import "./chunk-27NYWS3N.js";
46
46
  import {
47
47
  KIT_VERSION
48
48
  } from "./chunk-7HDQEK6T.js";
@@ -3,14 +3,14 @@ import {
3
3
  nextStepAfterInstall,
4
4
  performInstall,
5
5
  printInstallEpilogue
6
- } from "./chunk-2YPIQCPL.js";
7
- import "./chunk-OXLLHI2W.js";
6
+ } from "./chunk-YXGD3FST.js";
7
+ import "./chunk-HMJNIIWG.js";
8
8
  import "./chunk-HS7LVVLO.js";
9
- import "./chunk-LX5AO7KO.js";
10
- import "./chunk-R3QNQWLB.js";
9
+ import "./chunk-NJ3JGF2O.js";
10
+ import "./chunk-FOGD3MWJ.js";
11
11
  import "./chunk-HAFRAXGV.js";
12
- import "./chunk-WMS3SSOO.js";
13
- import "./chunk-KF544JTV.js";
12
+ import "./chunk-5U6AGH7T.js";
13
+ import "./chunk-TUEREBTR.js";
14
14
  import "./chunk-WGLPZXNU.js";
15
15
  import "./chunk-Q35TWISF.js";
16
16
  import "./chunk-QTON2GQX.js";
@@ -18,15 +18,15 @@ import "./chunk-PNFF6OU3.js";
18
18
  import "./chunk-R4DUO5DA.js";
19
19
  import "./chunk-F6C3GFKV.js";
20
20
  import "./chunk-ZB43YMHW.js";
21
- import "./chunk-DY6EWD5X.js";
21
+ import "./chunk-BTQ3D6N7.js";
22
22
  import "./chunk-B3VR5YBQ.js";
23
- import "./chunk-5V4C5N2P.js";
23
+ import "./chunk-IWCJ6RM6.js";
24
24
  import "./chunk-PFEUZXVT.js";
25
- import "./chunk-NA2LTNJS.js";
26
- import "./chunk-NAU3ROWR.js";
25
+ import "./chunk-7MKWNRAC.js";
26
+ import "./chunk-DYIIOALZ.js";
27
27
  import "./chunk-WS6OX2IG.js";
28
- import "./chunk-WKZ63IZ7.js";
29
- import "./chunk-SPXAHVK4.js";
28
+ import "./chunk-44AVHJRV.js";
29
+ import "./chunk-27NYWS3N.js";
30
30
  import "./chunk-7HDQEK6T.js";
31
31
  import "./chunk-C4Q77GGJ.js";
32
32
  import "./chunk-5B4DVO6C.js";
@@ -3,7 +3,7 @@ import {
3
3
  findDashboardDataScript,
4
4
  loadDashboardSnapshot,
5
5
  runMcTuiLoop
6
- } from "./chunk-MPCNPZJZ.js";
6
+ } from "./chunk-CQHD6UKB.js";
7
7
  import {
8
8
  resolveDashboardSnapshotRoot
9
9
  } from "./chunk-ZMYV6PRE.js";
@@ -2,8 +2,8 @@ import {
2
2
  runPlanLoop,
3
3
  shouldUseLiveTui,
4
4
  withLiveTui
5
- } from "./chunk-6XJZLH53.js";
6
- import "./chunk-MPCNPZJZ.js";
5
+ } from "./chunk-4FCK4QNB.js";
6
+ import "./chunk-CQHD6UKB.js";
7
7
  import {
8
8
  negatedFlag
9
9
  } from "./chunk-ZMYV6PRE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runPlanLoop
3
- } from "./chunk-6XJZLH53.js";
4
- import "./chunk-MPCNPZJZ.js";
3
+ } from "./chunk-4FCK4QNB.js";
4
+ import "./chunk-CQHD6UKB.js";
5
5
  import {
6
6
  negatedFlag
7
7
  } from "./chunk-ZMYV6PRE.js";
@@ -25,7 +25,7 @@ import {
25
25
  shouldEmitCursorAwarenessNudge,
26
26
  updateCheckSection,
27
27
  withDeadline
28
- } from "./chunk-WF3CXK4J.js";
28
+ } from "./chunk-5KF4IHXO.js";
29
29
  import "./chunk-2YU2H7I6.js";
30
30
  import "./chunk-QWTBYXHN.js";
31
31
  import "./chunk-DTSL2RH7.js";
@@ -34,13 +34,13 @@ import "./chunk-4CRBUEJ6.js";
34
34
  import "./chunk-L5V3W3DY.js";
35
35
  import "./chunk-MUTTNRX4.js";
36
36
  import "./chunk-HAFRAXGV.js";
37
- import "./chunk-5V4C5N2P.js";
37
+ import "./chunk-IWCJ6RM6.js";
38
38
  import "./chunk-PFEUZXVT.js";
39
- import "./chunk-NA2LTNJS.js";
40
- import "./chunk-NAU3ROWR.js";
39
+ import "./chunk-7MKWNRAC.js";
40
+ import "./chunk-DYIIOALZ.js";
41
41
  import "./chunk-WS6OX2IG.js";
42
- import "./chunk-WKZ63IZ7.js";
43
- import "./chunk-SPXAHVK4.js";
42
+ import "./chunk-44AVHJRV.js";
43
+ import "./chunk-27NYWS3N.js";
44
44
  import "./chunk-7HDQEK6T.js";
45
45
  import "./chunk-C4Q77GGJ.js";
46
46
  import "./chunk-5B4DVO6C.js";
@@ -79,7 +79,7 @@ var sessionsCommand = defineCommand({
79
79
  const cwd = process.cwd();
80
80
  const workspace = path.resolve(cwd, typeof args.cwd === "string" && args.cwd ? args.cwd : ".");
81
81
  if (args.live) {
82
- const { listDetachedAuditSessions } = await import("./session-start-XUAPF7TR.js");
82
+ const { listDetachedAuditSessions } = await import("./session-start-5PVH7L5K.js");
83
83
  const roster = await collectLiveRoster(workspace, { listAudit: listDetachedAuditSessions });
84
84
  process.stdout.write(
85
85
  args.json ? `${JSON.stringify(roster, null, 2)}
@@ -2,17 +2,17 @@ import {
2
2
  classifyInstallError,
3
3
  isNonInteractive,
4
4
  pathCliStatus
5
- } from "./chunk-DY6EWD5X.js";
5
+ } from "./chunk-BTQ3D6N7.js";
6
6
  import {
7
7
  assessEnvironment
8
8
  } from "./chunk-B3VR5YBQ.js";
9
- import "./chunk-5V4C5N2P.js";
9
+ import "./chunk-IWCJ6RM6.js";
10
10
  import "./chunk-PFEUZXVT.js";
11
- import "./chunk-NA2LTNJS.js";
12
- import "./chunk-NAU3ROWR.js";
11
+ import "./chunk-7MKWNRAC.js";
12
+ import "./chunk-DYIIOALZ.js";
13
13
  import "./chunk-WS6OX2IG.js";
14
- import "./chunk-WKZ63IZ7.js";
15
- import "./chunk-SPXAHVK4.js";
14
+ import "./chunk-44AVHJRV.js";
15
+ import "./chunk-27NYWS3N.js";
16
16
  import {
17
17
  KIT_VERSION,
18
18
  pinnedCliSpec
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  detectWorkspaceParent,
3
3
  workspaceParentAdvisoryLines
4
- } from "./chunk-XJORZUTG.js";
4
+ } from "./chunk-DJKZLY3E.js";
5
5
  import {
6
6
  createReadinessReport
7
7
  } from "./chunk-PNFF6OU3.js";
@@ -15,21 +15,21 @@ import {
15
15
  import {
16
16
  npxPinned,
17
17
  pathCliStatus
18
- } from "./chunk-DY6EWD5X.js";
18
+ } from "./chunk-BTQ3D6N7.js";
19
19
  import {
20
20
  assessEnvironment
21
21
  } from "./chunk-B3VR5YBQ.js";
22
- import "./chunk-5V4C5N2P.js";
22
+ import "./chunk-IWCJ6RM6.js";
23
23
  import "./chunk-PFEUZXVT.js";
24
- import "./chunk-NA2LTNJS.js";
25
- import "./chunk-NAU3ROWR.js";
24
+ import "./chunk-7MKWNRAC.js";
25
+ import "./chunk-DYIIOALZ.js";
26
26
  import "./chunk-WS6OX2IG.js";
27
27
  import {
28
28
  MANIFEST_RELATIVE_PATH,
29
29
  loadAgentKitManifest,
30
30
  resolveProtectedGlobs
31
- } from "./chunk-WKZ63IZ7.js";
32
- import "./chunk-SPXAHVK4.js";
31
+ } from "./chunk-44AVHJRV.js";
32
+ import "./chunk-27NYWS3N.js";
33
33
  import {
34
34
  KIT_VERSION
35
35
  } from "./chunk-7HDQEK6T.js";
@@ -4,7 +4,7 @@ import {
4
4
  formatRerunFlags,
5
5
  formatStaleCliRefusal,
6
6
  syncFromManifest
7
- } from "./chunk-OXLLHI2W.js";
7
+ } from "./chunk-HMJNIIWG.js";
8
8
  import {
9
9
  formatSkippedSymlinks,
10
10
  logApplyStats
@@ -12,17 +12,17 @@ import {
12
12
  import {
13
13
  REGISTRY_CLI_ARGS,
14
14
  resolveRegistryFromCli
15
- } from "./chunk-LX5AO7KO.js";
15
+ } from "./chunk-NJ3JGF2O.js";
16
16
  import {
17
17
  CLAUDE_SETTINGS_REL,
18
18
  formatClaudeSettingsDrift,
19
19
  formatPermissionsChanged,
20
20
  planClaudeSettingsDrift,
21
21
  writeClaudeSessionStartHook
22
- } from "./chunk-WMS3SSOO.js";
22
+ } from "./chunk-5U6AGH7T.js";
23
23
  import {
24
24
  generateClaudeCommandAdapters
25
- } from "./chunk-KF544JTV.js";
25
+ } from "./chunk-TUEREBTR.js";
26
26
  import "./chunk-Q35TWISF.js";
27
27
  import {
28
28
  withCliProgress
@@ -35,14 +35,14 @@ import {
35
35
  confirmProjectRoot,
36
36
  isNonInteractive,
37
37
  syncPathCliToRuntime
38
- } from "./chunk-DY6EWD5X.js";
38
+ } from "./chunk-BTQ3D6N7.js";
39
39
  import "./chunk-B3VR5YBQ.js";
40
40
  import {
41
41
  checkForUpdates
42
- } from "./chunk-5V4C5N2P.js";
42
+ } from "./chunk-IWCJ6RM6.js";
43
43
  import "./chunk-PFEUZXVT.js";
44
- import "./chunk-NA2LTNJS.js";
45
- import "./chunk-NAU3ROWR.js";
44
+ import "./chunk-7MKWNRAC.js";
45
+ import "./chunk-DYIIOALZ.js";
46
46
  import "./chunk-WS6OX2IG.js";
47
47
  import {
48
48
  buildManifest,
@@ -50,10 +50,10 @@ import {
50
50
  loadAgentKitManifest,
51
51
  resolveProtectedGlobs,
52
52
  saveManifest
53
- } from "./chunk-WKZ63IZ7.js";
53
+ } from "./chunk-44AVHJRV.js";
54
54
  import {
55
55
  seedManagedHashLedger
56
- } from "./chunk-SPXAHVK4.js";
56
+ } from "./chunk-27NYWS3N.js";
57
57
  import {
58
58
  KIT_VERSION
59
59
  } from "./chunk-7HDQEK6T.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dadado/agent-kit-cli",
3
- "version": "6.19.1",
3
+ "version": "6.21.0",
4
4
  "description": "Agent Kit CLI: HITL framework install and tooling for AI-assisted IDEs (rules, skills, plan/handoff, context).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://agent.missionkit.io/",