@dadado/agent-kit-cli 6.26.0 → 6.26.1

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.
@@ -41,6 +41,78 @@ import {
41
41
  fileExists
42
42
  } from "./chunk-5B4DVO6C.js";
43
43
 
44
+ // src/plan-loop/result-nonce.ts
45
+ import { readSync } from "fs";
46
+ import { isatty } from "tty";
47
+ var RESULT_NONCE_STDIN_ENV = "AGENT_KIT_RESULT_NONCE_STDIN";
48
+ var NONCE_RE = /^[0-9a-f]{32,128}$/;
49
+ var READ_MAX_BYTES = 256;
50
+ var READ_DEADLINE_MS = 5e3;
51
+ var processNonce;
52
+ function readStdinLine() {
53
+ const buf = Buffer.alloc(READ_MAX_BYTES);
54
+ let len = 0;
55
+ const wait = new Int32Array(new SharedArrayBuffer(4));
56
+ const deadline = Date.now() + READ_DEADLINE_MS;
57
+ while (len < READ_MAX_BYTES) {
58
+ let n;
59
+ try {
60
+ n = readSync(0, buf, len, READ_MAX_BYTES - len, null);
61
+ } catch (err) {
62
+ if (err.code === "EAGAIN" && Date.now() < deadline) {
63
+ Atomics.wait(wait, 0, 0, 5);
64
+ continue;
65
+ }
66
+ break;
67
+ }
68
+ if (n === 0) break;
69
+ len += n;
70
+ if (buf.subarray(0, len).includes(10)) break;
71
+ }
72
+ return buf.subarray(0, len).toString("utf8").split("\n")[0] ?? "";
73
+ }
74
+ function takeResultNonce(opts = {}) {
75
+ const env = opts.env ?? process.env;
76
+ const flagged = env[RESULT_NONCE_STDIN_ENV] !== void 0;
77
+ delete env[RESULT_NONCE_STDIN_ENV];
78
+ processNonce = void 0;
79
+ if (!flagged) return void 0;
80
+ if (opts.read === void 0 && (opts.stdinIsTTY ?? isatty(0))) return void 0;
81
+ let line4 = "";
82
+ try {
83
+ line4 = (opts.read ?? readStdinLine)().trim();
84
+ } catch {
85
+ return void 0;
86
+ }
87
+ processNonce = NONCE_RE.test(line4) ? line4 : void 0;
88
+ return processNonce;
89
+ }
90
+ function resultNonce() {
91
+ return processNonce;
92
+ }
93
+ function createNonceStripper(nonce) {
94
+ let held = "";
95
+ return {
96
+ push(text) {
97
+ let joined = held + text;
98
+ while (joined.includes(nonce)) joined = joined.split(nonce).join("");
99
+ held = "";
100
+ for (let k = Math.min(nonce.length - 1, joined.length); k > 0; k--) {
101
+ if (nonce.startsWith(joined.slice(joined.length - k))) {
102
+ held = joined.slice(joined.length - k);
103
+ return joined.slice(0, joined.length - k);
104
+ }
105
+ }
106
+ return joined;
107
+ },
108
+ flush() {
109
+ const rest = held;
110
+ held = "";
111
+ return rest;
112
+ }
113
+ };
114
+ }
115
+
44
116
  // src/plan-loop/stream-render.ts
45
117
  import { StringDecoder } from "string_decoder";
46
118
  import { trueColor } from "kolorist";
@@ -399,7 +471,9 @@ var StreamRenderer = class {
399
471
  write;
400
472
  color;
401
473
  columns;
474
+ nonce;
402
475
  constructor(opts = {}) {
476
+ this.nonce = opts.resultNonce ?? (opts.write === void 0 ? resultNonce() ?? "" : "");
403
477
  this.write = opts.write ?? ((text) => process.stdout.write(text));
404
478
  this.color = shouldUseWelcomeColor({
405
479
  stdoutIsTTY: opts.isTTY ?? Boolean(process.stdout.isTTY),
@@ -454,7 +528,7 @@ var StreamRenderer = class {
454
528
  continue;
455
529
  }
456
530
  this.closeText();
457
- this.write(`${rendered}
531
+ this.write(`${event.kind === "result" ? this.nonce : ""}${rendered}
458
532
  `);
459
533
  }
460
534
  }
@@ -2141,6 +2215,41 @@ function createLocalBackend(deps = {}) {
2141
2215
  var localBackend = createLocalBackend();
2142
2216
 
2143
2217
  // src/plan-loop/backends.ts
2218
+ function isResultEventLine(line4) {
2219
+ const text = line4.trim();
2220
+ if (!text.startsWith("{")) return false;
2221
+ try {
2222
+ const event = JSON.parse(text);
2223
+ return typeof event === "object" && event !== null && event.type === "result";
2224
+ } catch {
2225
+ return false;
2226
+ }
2227
+ }
2228
+ function createStderrSinkFilter() {
2229
+ const decoder = new StringDecoder3("utf8");
2230
+ const lines = new LineSplitter();
2231
+ const keep = (line4, out) => {
2232
+ if (!isResultEventLine(line4)) out.push(`${line4}
2233
+ `);
2234
+ };
2235
+ return {
2236
+ push(chunk) {
2237
+ const out = [];
2238
+ lines.feed(
2239
+ typeof chunk === "string" ? chunk : decoder.write(chunk),
2240
+ (line4) => keep(line4, out)
2241
+ );
2242
+ return out.join("");
2243
+ },
2244
+ end() {
2245
+ const out = [];
2246
+ lines.feed(decoder.end(), (line4) => keep(line4, out));
2247
+ const rest = lines.end();
2248
+ if (rest && !isResultEventLine(rest)) out.push(rest);
2249
+ return out.join("");
2250
+ }
2251
+ };
2252
+ }
2144
2253
  function createLineTranslator(translate) {
2145
2254
  const decoder = new StringDecoder3("utf8");
2146
2255
  const lines = new LineSplitter();
@@ -2384,10 +2493,17 @@ function spawnLogged(command, args, logPath, options = {}) {
2384
2493
  render.feed(text);
2385
2494
  relay?.feed(text);
2386
2495
  };
2387
- const emit = (text) => {
2496
+ const stderrFilter = translator ? null : createStderrSinkFilter();
2497
+ const emit = (text, fromStderr) => {
2388
2498
  if (text.length === 0) return;
2389
2499
  out.write(text);
2390
- sinks(translator ? translator.push(text) : text);
2500
+ if (translator) {
2501
+ sinks(translator.push(text));
2502
+ return;
2503
+ }
2504
+ const shown = fromStderr && stderrFilter ? stderrFilter.push(text) : text;
2505
+ if (shown.length > 0) render.feed(shown);
2506
+ relay?.feed(text);
2391
2507
  };
2392
2508
  if (options.stdinText !== void 0 && !stdinTransport) {
2393
2509
  const stdin = child.stdin;
@@ -2417,24 +2533,26 @@ function spawnLogged(command, args, logPath, options = {}) {
2417
2533
  }
2418
2534
  });
2419
2535
  const buffers = [];
2420
- const tee = (stream) => {
2536
+ const tee = (stream, fromStderr) => {
2421
2537
  if (!stream) return;
2422
2538
  if (redact.length === 0) {
2423
- stream.on("data", (chunk) => emit(chunk));
2539
+ stream.on("data", (chunk) => emit(chunk, fromStderr));
2424
2540
  return;
2425
2541
  }
2426
2542
  const buffer = new RedactingStreamBuffer(redact);
2427
- buffers.push(buffer);
2428
- stream.on("data", (chunk) => emit(buffer.push(chunk)));
2543
+ buffers.push({ buffer, fromStderr });
2544
+ stream.on("data", (chunk) => emit(buffer.push(chunk), fromStderr));
2429
2545
  };
2430
- tee(child.stdout);
2431
- tee(child.stderr);
2546
+ tee(child.stdout, false);
2547
+ tee(child.stderr, true);
2432
2548
  child.on("error", (err) => {
2433
2549
  out.end();
2434
2550
  reject(redactedError(err));
2435
2551
  });
2436
2552
  child.on("close", (code) => {
2437
- for (const buffer of buffers) emit(buffer.flush());
2553
+ for (const { buffer, fromStderr } of buffers) emit(buffer.flush(), fromStderr);
2554
+ const stderrRest = stderrFilter?.end() ?? "";
2555
+ if (stderrRest) render.feed(stderrRest);
2438
2556
  if (translator) sinks(translator.end());
2439
2557
  render.end();
2440
2558
  relay?.finish();
@@ -3212,6 +3330,9 @@ function renderLocalModels(report) {
3212
3330
 
3213
3331
  export {
3214
3332
  codexBackend,
3333
+ RESULT_NONCE_STDIN_ENV,
3334
+ takeResultNonce,
3335
+ createNonceStripper,
3215
3336
  parseStreamLine,
3216
3337
  parseResultLine,
3217
3338
  renderStreamEvent,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  gateExitNotePath
3
- } from "./chunk-I3FGWNU5.js";
3
+ } from "./chunk-QMCBXCP5.js";
4
4
 
5
5
  // src/plan-loop/merge-detect.ts
6
6
  async function isAncestor(git, ref, baseRef) {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  classifyGateExit,
11
11
  landGateExit
12
- } from "./chunk-I3FGWNU5.js";
12
+ } from "./chunk-QMCBXCP5.js";
13
13
  import {
14
14
  QUEUE_LEASE_INTERRUPT_WAIT_MS,
15
15
  QUEUE_LEASE_SESSION_ENV,
@@ -22,11 +22,11 @@ import {
22
22
  ensureDispatchLogPath,
23
23
  readCommandFile,
24
24
  runHeadlessDispatch
25
- } from "./chunk-JWIJHO67.js";
25
+ } from "./chunk-RLVY6YD3.js";
26
26
  import {
27
27
  detectAgentBackend,
28
28
  readRunQueueState
29
- } from "./chunk-HXV6VQD4.js";
29
+ } from "./chunk-3KFLQE6Y.js";
30
30
  import {
31
31
  formatHitlSummary,
32
32
  hitlExitCode
@@ -151,7 +151,7 @@ var updateCommand = defineCommand({
151
151
  process.exitCode = 1;
152
152
  return;
153
153
  }
154
- const { runUpdateAll } = await import("./update-all-5XLTCHPX.js");
154
+ const { runUpdateAll } = await import("./update-all-E2MV6KME.js");
155
155
  const result2 = await runUpdateAll({
156
156
  includeWorktrees: args["include-worktrees"],
157
157
  applyOptions: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isBranchInBase
3
- } from "./chunk-OVRGTHZD.js";
3
+ } from "./chunk-ARJRICI2.js";
4
4
  import {
5
5
  GATE_EXIT_BRANCH_PREFIX,
6
6
  GATE_EXIT_NOTE_DIR,
@@ -11,15 +11,15 @@ import {
11
11
  isSafeBaseRef,
12
12
  landGateExit,
13
13
  resolveGateExitRefs
14
- } from "./chunk-I3FGWNU5.js";
14
+ } from "./chunk-QMCBXCP5.js";
15
15
  import {
16
16
  ensureDispatchLogPath,
17
17
  readCommandFile,
18
18
  runHeadlessDispatch
19
- } from "./chunk-JWIJHO67.js";
19
+ } from "./chunk-RLVY6YD3.js";
20
20
  import {
21
21
  redactSecrets
22
- } from "./chunk-HXV6VQD4.js";
22
+ } from "./chunk-3KFLQE6Y.js";
23
23
  import {
24
24
  formatHitlSummary,
25
25
  hitlExitCode
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeRedactions,
3
3
  redactSecrets
4
- } from "./chunk-HXV6VQD4.js";
4
+ } from "./chunk-3KFLQE6Y.js";
5
5
  import {
6
6
  findHitlGateInText
7
7
  } from "./chunk-P7732A25.js";
@@ -14,7 +14,7 @@ import {
14
14
  redactSecrets,
15
15
  resolveHitlRunOptions,
16
16
  spawnLogged
17
- } from "./chunk-HXV6VQD4.js";
17
+ } from "./chunk-3KFLQE6Y.js";
18
18
  import {
19
19
  RESERVED_GATE_IDS
20
20
  } from "./chunk-P7732A25.js";
@@ -2,7 +2,7 @@ import {
2
2
  RedactingStreamBuffer,
3
3
  claudeRedactions,
4
4
  redactSecrets
5
- } from "./chunk-HXV6VQD4.js";
5
+ } from "./chunk-3KFLQE6Y.js";
6
6
  import {
7
7
  fileExists
8
8
  } from "./chunk-5B4DVO6C.js";
@@ -8,11 +8,11 @@ import {
8
8
  resolveTickResultStatus,
9
9
  resolveTickSentinel,
10
10
  shouldArmExternalPlanReview
11
- } from "./chunk-JG5MKMOM.js";
11
+ } from "./chunk-WOXTL43E.js";
12
12
  import {
13
13
  REVIEW_BACKENDS,
14
14
  runReviewJob
15
- } from "./chunk-5A72LTR3.js";
15
+ } from "./chunk-NW5SWKJV.js";
16
16
  import {
17
17
  InputLine,
18
18
  ScrollRegion,
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  classifyGateExit,
33
33
  landGateExit
34
- } from "./chunk-I3FGWNU5.js";
34
+ } from "./chunk-QMCBXCP5.js";
35
35
  import {
36
36
  QUEUE_LEASE_INTERRUPT_WAIT_MS,
37
37
  QUEUE_LEASE_SESSION_ENV,
@@ -59,7 +59,7 @@ import {
59
59
  resolveActivePlanPath,
60
60
  resolveSubworkerModel,
61
61
  reviewModelRelation
62
- } from "./chunk-HXV6VQD4.js";
62
+ } from "./chunk-3KFLQE6Y.js";
63
63
  import {
64
64
  LineSplitter,
65
65
  formatHitlSummary,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  RUN_CATALOG,
3
3
  RUN_PROMOTE_BLOCKED
4
- } from "./chunk-JWIJHO67.js";
5
- import "./chunk-HXV6VQD4.js";
4
+ } from "./chunk-RLVY6YD3.js";
5
+ import "./chunk-3KFLQE6Y.js";
6
6
  import "./chunk-P7732A25.js";
7
7
  import "./chunk-TTUFIE26.js";
8
8
  import {
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  REVIEW_PACK_DEFAULT_MAX_BYTES
3
- } from "./chunk-5A72LTR3.js";
4
- import "./chunk-OVRGTHZD.js";
3
+ } from "./chunk-NW5SWKJV.js";
4
+ import "./chunk-ARJRICI2.js";
5
5
  import {
6
6
  defaultExec,
7
7
  gateExitRedactions,
8
8
  isOutside
9
- } from "./chunk-I3FGWNU5.js";
9
+ } from "./chunk-QMCBXCP5.js";
10
10
  import {
11
11
  ensureDispatchLogPath,
12
12
  readCommandFile,
13
13
  runHeadlessDispatch
14
- } from "./chunk-JWIJHO67.js";
14
+ } from "./chunk-RLVY6YD3.js";
15
15
  import {
16
16
  createStreamRenderer,
17
17
  detectAgentBackend,
18
18
  redactSecrets
19
- } from "./chunk-HXV6VQD4.js";
19
+ } from "./chunk-3KFLQE6Y.js";
20
20
  import "./chunk-P7732A25.js";
21
21
  import "./chunk-TTUFIE26.js";
22
22
  import "./chunk-WGLPZXNU.js";
@@ -3,15 +3,15 @@ import {
3
3
  isNoProgressLine,
4
4
  isPlanExhaustedReason,
5
5
  parseAgentStopLine
6
- } from "./chunk-JG5MKMOM.js";
6
+ } from "./chunk-WOXTL43E.js";
7
7
  import {
8
8
  REVIEW_BACKENDS,
9
9
  REVIEW_PACK_DEFAULT_MAX_BYTES,
10
10
  REVIEW_PACK_SLASH,
11
11
  parseReviewPackMaxBytes,
12
12
  reviewBackendMessage
13
- } from "./chunk-5A72LTR3.js";
14
- import "./chunk-OVRGTHZD.js";
13
+ } from "./chunk-NW5SWKJV.js";
14
+ import "./chunk-ARJRICI2.js";
15
15
  import {
16
16
  GATE_EXIT_MARKER_RELPATH,
17
17
  defaultExec,
@@ -22,19 +22,21 @@ import {
22
22
  readGateExitMarker,
23
23
  resolveGateExitRefs,
24
24
  writeGateExitMarker
25
- } from "./chunk-I3FGWNU5.js";
25
+ } from "./chunk-QMCBXCP5.js";
26
26
  import {
27
27
  classifySlash,
28
28
  normalizeSlashName,
29
29
  promoteBlockedMessage,
30
30
  unknownSlashMessage
31
- } from "./chunk-JWIJHO67.js";
31
+ } from "./chunk-RLVY6YD3.js";
32
32
  import {
33
33
  CLAUDE_MAX_BUDGET_USD_ENV,
34
34
  CLAUDE_MAX_TURNS_ENV,
35
+ RESULT_NONCE_STDIN_ENV,
35
36
  RedactingStreamBuffer,
36
37
  claudeRunCaps,
37
38
  countPendingTodos,
39
+ createNonceStripper,
38
40
  detectAgentBackend,
39
41
  listDetectBackendIds,
40
42
  loadRolesContext,
@@ -44,7 +46,7 @@ import {
44
46
  resolveActivePlanPath,
45
47
  resolveReviewJobRole,
46
48
  resolveWorkerRole
47
- } from "./chunk-HXV6VQD4.js";
49
+ } from "./chunk-3KFLQE6Y.js";
48
50
  import {
49
51
  HITL_UNANSWERED_EXIT_CODE
50
52
  } from "./chunk-P7732A25.js";
@@ -67,6 +69,7 @@ import "./chunk-5B4DVO6C.js";
67
69
 
68
70
  // src/commands/countdown.ts
69
71
  import { spawn } from "child_process";
72
+ import { randomBytes } from "crypto";
70
73
  import { appendFile, mkdir } from "fs/promises";
71
74
  import path from "path";
72
75
  import { defineCommand } from "citty";
@@ -119,14 +122,16 @@ function createAgentStopWatcher() {
119
122
  }
120
123
  };
121
124
  }
122
- function createCostWatcher() {
125
+ function createCostWatcher(nonce) {
123
126
  let total = 0;
124
127
  let seen = false;
125
128
  let unpriced = false;
126
129
  let last = null;
127
130
  let partial = "";
128
131
  const take = (line) => {
129
- const hit = parseResultLine(line);
132
+ const at = nonce ? line.indexOf(nonce) : -1;
133
+ if (at === -1) return;
134
+ const hit = parseResultLine(line.slice(at + nonce.length));
130
135
  if (hit === null) return;
131
136
  if (hit.costBasis === "unknown") unpriced = true;
132
137
  const figure = hit.reportedUsd;
@@ -219,8 +224,12 @@ var defaultSpawnJob = (args, opts) => {
219
224
  cwd: opts.cwd,
220
225
  env: opts.env,
221
226
  detached: group,
222
- stdio: ["ignore", "pipe", "pipe"]
227
+ stdio: ["pipe", "pipe", "pipe"]
223
228
  });
229
+ child.stdin?.on("error", () => {
230
+ });
231
+ child.stdin?.end(`${opts.resultNonce}
232
+ `);
224
233
  const listeners = [];
225
234
  const emit = (text) => {
226
235
  for (const l of listeners) l(text);
@@ -608,7 +617,12 @@ async function runCountdown(input) {
608
617
  ...job === "review" && input.includeReviewed ? { includeReviewed: true } : {}
609
618
  });
610
619
  say(`starting: agent-kit ${args.join(" ")}`);
611
- const handle = (input.spawnJob ?? defaultSpawnJob)(args, { cwd: root, env });
620
+ const nonce = randomBytes(16).toString("hex");
621
+ const handle = (input.spawnJob ?? defaultSpawnJob)(args, {
622
+ cwd: root,
623
+ env: { ...env, [RESULT_NONCE_STDIN_ENV]: "1" },
624
+ resultNonce: nonce
625
+ });
612
626
  const forward = (signal) => handle.kill(signal);
613
627
  const onSigint = () => forward("SIGINT");
614
628
  const onSigterm = () => forward("SIGTERM");
@@ -619,14 +633,18 @@ async function runCountdown(input) {
619
633
  const jobOut = new RedactingStreamBuffer(redactions);
620
634
  const stopWatch = runsTick ? createAgentStopWatcher() : null;
621
635
  const noProgressWatch = runsTick ? createNoProgressWatcher() : null;
622
- const costWatch = createCostWatcher();
623
- const emitJob = (out) => {
624
- if (!out) return;
625
- stopWatch?.push(out);
626
- noProgressWatch?.push(out);
627
- costWatch.push(out);
628
- write(out);
629
- toLog(out);
636
+ const costWatch = createCostWatcher(nonce);
637
+ const hideNonce = createNonceStripper(nonce);
638
+ const emitJob = (out, last = false) => {
639
+ if (out) {
640
+ stopWatch?.push(out);
641
+ noProgressWatch?.push(out);
642
+ costWatch.push(out);
643
+ }
644
+ const shown = hideNonce.push(out) + (last ? hideNonce.flush() : "");
645
+ if (!shown) return;
646
+ write(shown);
647
+ toLog(shown);
630
648
  };
631
649
  let end;
632
650
  try {
@@ -644,7 +662,7 @@ async function runCountdown(input) {
644
662
  process.off("SIGINT", onSigint);
645
663
  process.off("SIGTERM", onSigterm);
646
664
  }
647
- emitJob(jobOut.flush());
665
+ emitJob(jobOut.flush(), true);
648
666
  }
649
667
  const after = await readGateExitMarker(root);
650
668
  const pendingAfter = after.kind === "ok" ? after.marker.pending.length : preflight.pendingBefore;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  blobId,
3
3
  isTicketMerged
4
- } from "./chunk-OVRGTHZD.js";
4
+ } from "./chunk-ARJRICI2.js";
5
5
  import {
6
6
  GATE_EXIT_BRANCH_PREFIX,
7
7
  GATE_EXIT_MARKER_RELPATH,
@@ -16,10 +16,10 @@ import {
16
16
  readGateExitMarker,
17
17
  resolveGateExitRefs,
18
18
  writeGateExitMarker
19
- } from "./chunk-I3FGWNU5.js";
19
+ } from "./chunk-QMCBXCP5.js";
20
20
  import {
21
21
  redactSecrets
22
- } from "./chunk-HXV6VQD4.js";
22
+ } from "./chunk-3KFLQE6Y.js";
23
23
  import "./chunk-P7732A25.js";
24
24
  import "./chunk-TTUFIE26.js";
25
25
  import {
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  rewriteRootArgvToRun
4
- } from "./chunk-JWIJHO67.js";
5
- import "./chunk-HXV6VQD4.js";
4
+ } from "./chunk-RLVY6YD3.js";
5
+ import {
6
+ takeResultNonce
7
+ } from "./chunk-3KFLQE6Y.js";
6
8
  import "./chunk-P7732A25.js";
7
9
  import "./chunk-TTUFIE26.js";
8
10
  import "./chunk-WGLPZXNU.js";
@@ -238,6 +240,7 @@ async function renderGroupedRootHelp(cmd) {
238
240
  }
239
241
 
240
242
  // src/index.ts
243
+ takeResultNonce();
241
244
  var rewrittenArgv = rewriteRootArgvToRun(process.argv.slice(2));
242
245
  process.argv.length = 2;
243
246
  process.argv.push(...rewrittenArgv);
@@ -255,7 +258,7 @@ var main = defineCommand({
255
258
  doctor: () => import("./doctor-KGUWU5SN.js").then((m) => m.doctorCommand),
256
259
  "setup-global": () => import("./setup-global-WDMARD4Z.js").then((m) => m.setupGlobalCommand),
257
260
  status: () => import("./status-2WNJL7PP.js").then((m) => m.statusCommand),
258
- update: () => import("./update-YSVOYYK5.js").then((m) => m.updateCommand),
261
+ update: () => import("./update-OXCWYN3Y.js").then((m) => m.updateCommand),
259
262
  installs: () => import("./installs-2ROXPO6M.js").then((m) => m.installsCommand),
260
263
  "cursor-awareness": () => import("./cursor-awareness-TN5JXD2C.js").then((m) => m.cursorAwarenessCommand),
261
264
  "public-inbound-radar": () => import("./public-inbound-radar-5U4JMBRU.js").then((m) => m.publicInboundRadarCommand),
@@ -265,14 +268,14 @@ var main = defineCommand({
265
268
  contribute: () => import("./contribute-HE4WCBRY.js").then((m) => m.contributeCommand),
266
269
  handoff: () => import("./handoff-LLT4CI6H.js").then((m) => m.handoffCommand),
267
270
  "plan-index": () => import("./plan-index-5QZJK4AG.js").then((m) => m.planIndexCommand),
268
- run: () => import("./run-QURAXAR2.js").then((m) => m.runCommand),
269
- "run-plan": () => import("./run-plan-4MMHVCTS.js").then((m) => m.runPlanCommand),
270
- "run-plan-all": () => import("./run-QURAXAR2.js").then((m) => m.runPlanAllCommand),
271
- queue: () => import("./queue-Z5VNNHM6.js").then((m) => m.queueCommand),
271
+ run: () => import("./run-RGIY5JTX.js").then((m) => m.runCommand),
272
+ "run-plan": () => import("./run-plan-DHB3ZXJS.js").then((m) => m.runPlanCommand),
273
+ "run-plan-all": () => import("./run-RGIY5JTX.js").then((m) => m.runPlanAllCommand),
274
+ queue: () => import("./queue-HDR5ER25.js").then((m) => m.queueCommand),
272
275
  promote: () => import("./promote-H5MIMVEB.js").then((m) => m.promoteCommand),
273
- countdown: () => import("./countdown-TYQHVAIX.js").then((m) => m.countdownCommand),
274
- "ground-control": () => import("./ground-control-ZIDHEOPW.js").then((m) => m.groundControlCommand),
275
- conflicts: () => import("./conflicts-4SUWIPWP.js").then((m) => m.conflictsCommand),
276
+ countdown: () => import("./countdown-VXOFV23S.js").then((m) => m.countdownCommand),
277
+ "ground-control": () => import("./ground-control-J4AMA4S4.js").then((m) => m.groundControlCommand),
278
+ conflicts: () => import("./conflicts-4GLQOMJF.js").then((m) => m.conflictsCommand),
276
279
  dashboard: () => import("./dashboard-6V6PCNYF.js").then((m) => m.dashboardCommand),
277
280
  "dashboard-broadcast": () => import("./dashboard-broadcast-PMVQ7PXU.js").then((m) => m.dashboardBroadcastCommand),
278
281
  "mission-control": () => import("./mission-control-IGOI3WHS.js").then((m) => m.missionControlCommand),
@@ -283,10 +286,10 @@ var main = defineCommand({
283
286
  "outcome-ledger": () => import("./outcome-ledger-XLWHWPVQ.js").then((m) => m.outcomeLedgerCommand),
284
287
  validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand),
285
288
  "engine-info": () => import("./engine-info-VM4VPGQM.js").then((m) => m.engineInfoCommand),
286
- commands: () => import("./commands-K4HSDML5.js").then((m) => m.commandsCommand),
289
+ commands: () => import("./commands-SCFSX4U4.js").then((m) => m.commandsCommand),
287
290
  paths: () => import("./paths-JTPV6SXH.js").then((m) => m.pathsCommand),
288
291
  pi: () => import("./pi-DCMDOY65.js").then((m) => m.piCommand),
289
- models: () => import("./models-5BDXREWM.js").then((m) => m.modelsCommand)
292
+ models: () => import("./models-SNB5Q3YU.js").then((m) => m.modelsCommand)
290
293
  },
291
294
  async run({ rawArgs }) {
292
295
  if (hasCliSubcommand(rawArgs)) return;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  discoverLocalModels,
3
3
  renderLocalModels
4
- } from "./chunk-HXV6VQD4.js";
4
+ } from "./chunk-3KFLQE6Y.js";
5
5
  import "./chunk-P7732A25.js";
6
6
  import "./chunk-TTUFIE26.js";
7
7
  import "./chunk-WGLPZXNU.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  readHandoffText
3
- } from "./chunk-ENRXS5O6.js";
3
+ } from "./chunk-BSK6C4UO.js";
4
4
  import "./chunk-BIFTTL2O.js";
5
- import "./chunk-I3FGWNU5.js";
5
+ import "./chunk-QMCBXCP5.js";
6
6
  import {
7
7
  QUEUE_LEASE_RELPATH,
8
8
  formatQueueLeaseRefusal,
9
9
  inspectQueueLease
10
10
  } from "./chunk-FOVHFMSH.js";
11
- import "./chunk-JWIJHO67.js";
12
- import "./chunk-HXV6VQD4.js";
11
+ import "./chunk-RLVY6YD3.js";
12
+ import "./chunk-3KFLQE6Y.js";
13
13
  import "./chunk-P7732A25.js";
14
14
  import {
15
15
  extractFieldBlock
@@ -2,13 +2,13 @@ import {
2
2
  runPlanLoop,
3
3
  shouldUseLiveTui,
4
4
  withLiveTui
5
- } from "./chunk-IUY24WPE.js";
6
- import "./chunk-JG5MKMOM.js";
5
+ } from "./chunk-YFRG3CMS.js";
6
+ import "./chunk-WOXTL43E.js";
7
7
  import {
8
8
  REVIEW_PACK_SLASH,
9
9
  runReviewJob
10
- } from "./chunk-5A72LTR3.js";
11
- import "./chunk-OVRGTHZD.js";
10
+ } from "./chunk-NW5SWKJV.js";
11
+ import "./chunk-ARJRICI2.js";
12
12
  import "./chunk-Y575INEC.js";
13
13
  import {
14
14
  negatedFlag
@@ -16,13 +16,13 @@ import {
16
16
  import {
17
17
  landDispatchOutcome,
18
18
  runDispatchDriver
19
- } from "./chunk-ENRXS5O6.js";
19
+ } from "./chunk-BSK6C4UO.js";
20
20
  import {
21
21
  DRIVER_EVENTS_FORMATS
22
22
  } from "./chunk-BIFTTL2O.js";
23
23
  import {
24
24
  LAND_ON_GATE_DESCRIPTION
25
- } from "./chunk-I3FGWNU5.js";
25
+ } from "./chunk-QMCBXCP5.js";
26
26
  import {
27
27
  LEASE_FREE_SLASHES,
28
28
  QUEUE_LEASE_INTERRUPT_WAIT_MS,
@@ -43,7 +43,7 @@ import {
43
43
  resolveOperatorNote,
44
44
  runHeadlessDispatch,
45
45
  unknownSlashMessage
46
- } from "./chunk-JWIJHO67.js";
46
+ } from "./chunk-RLVY6YD3.js";
47
47
  import {
48
48
  CLAUDE_SUBAGENT_MODEL_ENV,
49
49
  describeResolvedRoles,
@@ -55,7 +55,7 @@ import {
55
55
  resolveReviewJobRole,
56
56
  resolveSubworkerModel,
57
57
  resolveWorkerRole
58
- } from "./chunk-HXV6VQD4.js";
58
+ } from "./chunk-3KFLQE6Y.js";
59
59
  import {
60
60
  HITL_UNANSWERED_EXIT_CODE,
61
61
  formatHitlSummary,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runPlanLoop
3
- } from "./chunk-IUY24WPE.js";
4
- import "./chunk-JG5MKMOM.js";
5
- import "./chunk-5A72LTR3.js";
6
- import "./chunk-OVRGTHZD.js";
3
+ } from "./chunk-YFRG3CMS.js";
4
+ import "./chunk-WOXTL43E.js";
5
+ import "./chunk-NW5SWKJV.js";
6
+ import "./chunk-ARJRICI2.js";
7
7
  import "./chunk-Y575INEC.js";
8
8
  import {
9
9
  negatedFlag
@@ -13,9 +13,9 @@ import {
13
13
  } from "./chunk-BIFTTL2O.js";
14
14
  import {
15
15
  LAND_ON_GATE_DESCRIPTION
16
- } from "./chunk-I3FGWNU5.js";
16
+ } from "./chunk-QMCBXCP5.js";
17
17
  import "./chunk-FOVHFMSH.js";
18
- import "./chunk-JWIJHO67.js";
18
+ import "./chunk-RLVY6YD3.js";
19
19
  import {
20
20
  detectAgentBackend,
21
21
  getBackend,
@@ -23,7 +23,7 @@ import {
23
23
  loadRolesContext,
24
24
  parseLocalModelId,
25
25
  resolveWorkerRole
26
- } from "./chunk-HXV6VQD4.js";
26
+ } from "./chunk-3KFLQE6Y.js";
27
27
  import {
28
28
  HITL_UNANSWERED_EXIT_CODE
29
29
  } from "./chunk-P7732A25.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  applyUpdateAtRoot,
3
3
  updateCommand
4
- } from "./chunk-H7KAXI5R.js";
4
+ } from "./chunk-DOMBVLI4.js";
5
5
  import "./chunk-FOVHFMSH.js";
6
6
  import "./chunk-2GXN7HVG.js";
7
7
  import "./chunk-HS7LVVLO.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  applyUpdateAtRoot
3
- } from "./chunk-H7KAXI5R.js";
3
+ } from "./chunk-DOMBVLI4.js";
4
4
  import {
5
5
  QUEUE_LEASE_SESSION_ENV,
6
6
  inspectQueueLease
7
7
  } from "./chunk-FOVHFMSH.js";
8
8
  import {
9
9
  CLAUDE_NESTED_SESSION_KEYS
10
- } from "./chunk-HXV6VQD4.js";
10
+ } from "./chunk-3KFLQE6Y.js";
11
11
  import "./chunk-P7732A25.js";
12
12
  import "./chunk-TTUFIE26.js";
13
13
  import "./chunk-2GXN7HVG.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dadado/agent-kit-cli",
3
- "version": "6.26.0",
3
+ "version": "6.26.1",
4
4
  "description": "Agent Kit CLI: HITL framework install and tooling for AI-assisted IDEs (rules, skills, plan/handoff, context).",
5
5
  "keywords": [
6
6
  "pi-package"