@dadado/agent-kit-cli 6.11.0 → 6.12.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.
- package/dist/{add-P4DIZKC2.js → add-CLRIMPN4.js} +3 -3
- package/dist/{chunk-H3PQYVFT.js → chunk-2R4HYPQH.js} +2 -2
- package/dist/{chunk-BOZUBCQA.js → chunk-2TKPKRHO.js} +2 -2
- package/dist/{chunk-S4T6KYYA.js → chunk-4WHPZGF4.js} +17 -6
- package/dist/{chunk-47ZJ3S7M.js → chunk-5RWTDCJ7.js} +2 -1
- package/dist/{chunk-MAXEVJCP.js → chunk-5T4CHRRR.js} +1 -1
- package/dist/{chunk-KHFPPQJ5.js → chunk-7TEEGAED.js} +2 -2
- package/dist/{chunk-AOSXKF3M.js → chunk-CRLMS2JX.js} +1 -1
- package/dist/{chunk-2B3HHQ3L.js → chunk-DVCNJNCF.js} +3 -3
- package/dist/{chunk-5KDMATUR.js → chunk-EE3LTOBZ.js} +1 -1
- package/dist/{chunk-6GM5YUWR.js → chunk-FX6BIH4C.js} +1 -1
- package/dist/{chunk-5TEXYAGP.js → chunk-GDKTTV2A.js} +4 -2
- package/dist/{chunk-UQSFGLY5.js → chunk-HWYVLEET.js} +3 -3
- package/dist/{chunk-SZ5REXPD.js → chunk-I2SG2VPJ.js} +2 -2
- package/dist/{chunk-FQNAEFTW.js → chunk-IBE2EJZS.js} +1 -1
- package/dist/{chunk-Q4J5UXVQ.js → chunk-LAYMAMPL.js} +1 -1
- package/dist/{chunk-CAOQBBP5.js → chunk-ODI2N2BN.js} +2 -2
- package/dist/{chunk-FTLMWPQY.js → chunk-OKQ3SAHK.js} +1 -1
- package/dist/{chunk-YN5NBMQT.js → chunk-PGCRP5A6.js} +8 -8
- package/dist/{chunk-UGJ3YAT2.js → chunk-TFKEHC2D.js} +5 -5
- package/dist/{chunk-VWDFMXFK.js → chunk-UX6FHSO7.js} +5 -5
- package/dist/{chunk-5D5BJZW5.js → chunk-WAWCS5PJ.js} +4 -4
- package/dist/{chunk-JPAQOESJ.js → chunk-WRCXRV2U.js} +29 -5
- package/dist/{chunk-7T4MDNV3.js → chunk-XJWCL4PO.js} +1 -1
- package/dist/{commands-F437QCGQ.js → commands-DVEZOEEO.js} +5 -5
- package/dist/{contribute-G5DFZCH6.js → contribute-E3COXKH4.js} +4 -4
- package/dist/{countdown-6SP7IEJ3.js → countdown-F6EIHGDR.js} +7 -7
- package/dist/{diff-VCVSR4OV.js → diff-SCGNC4SF.js} +5 -5
- package/dist/{doctor-5LPPWRPI.js → doctor-QGO4QB7R.js} +9 -9
- package/dist/{engine-info-LEE37RRK.js → engine-info-MNCKB55Y.js} +2 -2
- package/dist/{ground-control-IJ5NQVLP.js → ground-control-DB5RSYAT.js} +4 -4
- package/dist/{hook-A22PNYY2.js → hook-R7V4NG3C.js} +5 -5
- package/dist/index.js +21 -21
- package/dist/{init-VCOMQ32C.js → init-ONPKZS63.js} +12 -12
- package/dist/{install-YXOE2U6T.js → install-NHTYTVSG.js} +12 -12
- package/dist/{queue-Q2LEPXSY.js → queue-XI4HUFLJ.js} +7 -7
- package/dist/{run-BOWCPU56.js → run-EO5P2YZG.js} +11 -11
- package/dist/{run-plan-P65QMVCS.js → run-plan-VMW34QY6.js} +6 -6
- package/dist/{setup-global-QEEW7ASU.js → setup-global-PMKGHX2S.js} +6 -6
- package/dist/{status-WGO2O7TR.js → status-P2I6LE6Y.js} +7 -7
- package/dist/{update-LV335HJU.js → update-K6L24JDP.js} +10 -10
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
REGISTRY_CLI_ARGS,
|
|
7
7
|
resolveRegistryFromCli
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5T4CHRRR.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-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-XJWCL4PO.js";
|
|
26
|
+
import "./chunk-5RWTDCJ7.js";
|
|
27
27
|
import {
|
|
28
28
|
KIT_VERSION
|
|
29
29
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
diffAgainstRegistry,
|
|
8
8
|
summarizeDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DVCNJNCF.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_REGISTRY_URL,
|
|
12
12
|
assertSafeRegistrySource,
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
resolveRegistryRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJWCL4PO.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_PACKAGE_SPEC,
|
|
18
18
|
KIT_VERSION
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
claudeRedactions,
|
|
6
6
|
redactSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GDKTTV2A.js";
|
|
8
8
|
import {
|
|
9
9
|
findHitlGateInText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WRCXRV2U.js";
|
|
11
11
|
import {
|
|
12
12
|
findOnPath
|
|
13
13
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatHitlGateLine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WRCXRV2U.js";
|
|
4
4
|
|
|
5
5
|
// src/plan-loop/driver-events.ts
|
|
6
6
|
import { createInterface } from "readline";
|
|
7
7
|
import { StringDecoder } from "string_decoder";
|
|
8
8
|
var DRIVER_PROTOCOL_MAJOR = 1;
|
|
9
|
-
var DRIVER_PROTOCOL_VERSION = "1.
|
|
9
|
+
var DRIVER_PROTOCOL_VERSION = "1.4.0";
|
|
10
10
|
var DRIVER_EVENTS_FORMATS = ["ndjson"];
|
|
11
11
|
var INBOUND_MAX_CHARS = 64 * 1024;
|
|
12
12
|
var AGENT_PENDING_MAX_CHARS = 4 * 1024 * 1024;
|
|
@@ -65,14 +65,24 @@ function parseDriverInbound(line) {
|
|
|
65
65
|
if (typeof msg.askId !== "string" || !/^[a-z0-9-]+$/.test(msg.askId)) {
|
|
66
66
|
return { ok: false, error: "hitl_reply.askId must be a kebab-case string" };
|
|
67
67
|
}
|
|
68
|
+
if (msg.source !== void 0 && msg.source !== "operator" && msg.source !== "policy") {
|
|
69
|
+
return { ok: false, error: 'hitl_reply.source must be "operator" or "policy"' };
|
|
70
|
+
}
|
|
71
|
+
const source = msg.source === "policy" ? { source: "policy" } : {};
|
|
68
72
|
if (typeof msg.reply === "number") {
|
|
69
73
|
if (!Number.isInteger(msg.reply) || msg.reply < 1) {
|
|
70
74
|
return { ok: false, error: "hitl_reply.reply number must be a positive integer" };
|
|
71
75
|
}
|
|
72
|
-
return {
|
|
76
|
+
return {
|
|
77
|
+
ok: true,
|
|
78
|
+
message: { type: "hitl_reply", askId: msg.askId, reply: msg.reply, ...source }
|
|
79
|
+
};
|
|
73
80
|
}
|
|
74
81
|
if (typeof msg.reply === "string" && msg.reply.trim() && !/[\r\n]/.test(msg.reply)) {
|
|
75
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
ok: true,
|
|
84
|
+
message: { type: "hitl_reply", askId: msg.askId, reply: msg.reply.trim(), ...source }
|
|
85
|
+
};
|
|
76
86
|
}
|
|
77
87
|
return { ok: false, error: "hitl_reply.reply must be a number or a one-line non-empty string" };
|
|
78
88
|
}
|
|
@@ -87,7 +97,7 @@ function inboundToRawAnswer(gate, parsed) {
|
|
|
87
97
|
detail: `reply for ${message.askId} while gate ${gate.askId} is open`
|
|
88
98
|
};
|
|
89
99
|
}
|
|
90
|
-
return { kind: "line", text: String(message.reply) };
|
|
100
|
+
return message.source === "policy" ? { kind: "line", text: String(message.reply), source: "policy" } : { kind: "line", text: String(message.reply) };
|
|
91
101
|
}
|
|
92
102
|
function createDriverAnswerReader(opts) {
|
|
93
103
|
const input = opts.input ?? process.stdin;
|
|
@@ -149,7 +159,8 @@ function createDriverAnswerReader(opts) {
|
|
|
149
159
|
askId: gate.askId,
|
|
150
160
|
labels: [...gate.labels],
|
|
151
161
|
detection: gate.detection,
|
|
152
|
-
line: formatHitlGateLine(gate)
|
|
162
|
+
line: formatHitlGateLine(gate),
|
|
163
|
+
usage: readOpts.usage ?? null
|
|
153
164
|
});
|
|
154
165
|
const line = await nextLine(readOpts.signal);
|
|
155
166
|
if (line === null) return { kind: "eof" };
|
|
@@ -373,7 +373,8 @@ var KNOWN_SHIPPED_OVERLAY_HASHES = /* @__PURE__ */ new Set([
|
|
|
373
373
|
"5b8f11be3c7f3af65ea6947cecc199f1acd5cf1fc2b2805ed3496257dd8605b5",
|
|
374
374
|
"2bd11cdf44d1fd536d9a52206b79b78ecb7e0276efdf0e598d3cec5f831c35b6",
|
|
375
375
|
"88fa5ebe0d0fc29f8dac3de140797a85fbc8dc00e9b9c461b0e9e10bb9ef4e64",
|
|
376
|
-
"c746b0424dfc3a9e36c588e48526b1f14e9c2c3032397f2ba721fa7f50390230"
|
|
376
|
+
"c746b0424dfc3a9e36c588e48526b1f14e9c2c3032397f2ba721fa7f50390230",
|
|
377
|
+
"9f0e1cf2e28f6949a98b7ffa0eb9c3237d8868460014f35edd9122a30fb4367c"
|
|
377
378
|
]);
|
|
378
379
|
|
|
379
380
|
// src/lifecycle/paths.ts
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
redactSecrets,
|
|
14
14
|
resolveHitlRunOptions,
|
|
15
15
|
spawnLogged
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GDKTTV2A.js";
|
|
17
17
|
import {
|
|
18
18
|
RESERVED_GATE_IDS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WRCXRV2U.js";
|
|
20
20
|
import {
|
|
21
21
|
ensureLoopLogsDir,
|
|
22
22
|
runnerStatePaths
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
managedPairs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FX6BIH4C.js";
|
|
4
4
|
import {
|
|
5
5
|
isProtectedPath,
|
|
6
6
|
resolveProtectedGlobs
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XJWCL4PO.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveContained
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5RWTDCJ7.js";
|
|
11
11
|
|
|
12
12
|
// src/lifecycle/diff.ts
|
|
13
13
|
import { readFile } from "fs/promises";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
noRelayStop,
|
|
10
10
|
unansweredStop,
|
|
11
11
|
userEventLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WRCXRV2U.js";
|
|
13
13
|
import {
|
|
14
14
|
findOnPath
|
|
15
15
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -871,7 +871,7 @@ async function runCursorAcp(opts) {
|
|
|
871
871
|
record.replies.push(outcome.stamp);
|
|
872
872
|
hitl.write(`\u2192 ${outcome.stamp.line}
|
|
873
873
|
`);
|
|
874
|
-
const n = /operator reply (\d+)/.exec(outcome.stamp.reply)?.[1];
|
|
874
|
+
const n = /(?:operator reply|policy pre-answer) (\d+)/.exec(outcome.stamp.reply)?.[1];
|
|
875
875
|
const option = n ? q.options[Number(n) - 1] : void 0;
|
|
876
876
|
if (!option) {
|
|
877
877
|
hitl.write(
|
|
@@ -1497,6 +1497,8 @@ function createRelay(hitl, child, redactedError) {
|
|
|
1497
1497
|
readAnswer: hitl.readAnswer,
|
|
1498
1498
|
write: hitl.write,
|
|
1499
1499
|
signal: abort.signal,
|
|
1500
|
+
// The gate's turn has already been noted above, so this is the session total so far.
|
|
1501
|
+
usage: usage.total(),
|
|
1500
1502
|
onPromptStart: hitl.onPromptStart,
|
|
1501
1503
|
onPromptEnd: hitl.onPromptEnd
|
|
1502
1504
|
}).then(
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
compareSemver,
|
|
3
3
|
normalizeSemver,
|
|
4
4
|
readLocalKitVersion
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2R4HYPQH.js";
|
|
6
6
|
import {
|
|
7
7
|
L0_ARTIFACTS
|
|
8
8
|
} from "./chunk-2KIOZMTV.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
mergeStats,
|
|
16
16
|
recordOutcome,
|
|
17
17
|
resolveProtectedGlobs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XJWCL4PO.js";
|
|
19
19
|
import {
|
|
20
20
|
loadManagedHashLedger,
|
|
21
21
|
saveManagedHashLedger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5RWTDCJ7.js";
|
|
23
23
|
import {
|
|
24
24
|
KIT_PACKAGE_SPEC,
|
|
25
25
|
KIT_VERSION
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
compareSemver,
|
|
6
6
|
normalizeSemver
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2R4HYPQH.js";
|
|
8
8
|
import {
|
|
9
9
|
MANIFEST_RELATIVE_PATH
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XJWCL4PO.js";
|
|
11
11
|
import {
|
|
12
12
|
KIT_VERSION,
|
|
13
13
|
pinnedCliSpec
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
GUARD_SHELL_HOOK_MARKER,
|
|
4
4
|
RESOLVE_AGENT_KIT_REL,
|
|
5
5
|
SESSION_START_HOOK_MARKER
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LAYMAMPL.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_COMMANDS_DIR_REL,
|
|
9
9
|
discoverInstalledCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IBE2EJZS.js";
|
|
11
11
|
import {
|
|
12
12
|
findOnPath
|
|
13
13
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatStaleCliRefusal,
|
|
7
7
|
installL0,
|
|
8
8
|
syncFromManifest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HWYVLEET.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-
|
|
18
|
+
} from "./chunk-5T4CHRRR.js";
|
|
19
19
|
import {
|
|
20
20
|
assessClaudeCommandAdapters,
|
|
21
21
|
executeSafeReadinessFixes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ODI2N2BN.js";
|
|
23
23
|
import {
|
|
24
24
|
writeReadinessSnapshot
|
|
25
25
|
} from "./chunk-HAFRAXGV.js";
|
|
26
26
|
import {
|
|
27
27
|
writeClaudeSessionStartHook
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LAYMAMPL.js";
|
|
29
29
|
import {
|
|
30
30
|
CLAUDE_HITL_FALLBACK,
|
|
31
31
|
generateClaudeCommandAdapters
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IBE2EJZS.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-
|
|
59
|
+
} from "./chunk-I2SG2VPJ.js";
|
|
60
60
|
import {
|
|
61
61
|
assessEnvironment
|
|
62
62
|
} from "./chunk-B3VR5YBQ.js";
|
|
63
63
|
import {
|
|
64
64
|
warnIfRunningCliBehindNpm
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-2R4HYPQH.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-
|
|
82
|
+
} from "./chunk-XJWCL4PO.js";
|
|
83
83
|
import {
|
|
84
84
|
KIT_VERSION,
|
|
85
85
|
pinnedCliSpec
|
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
createDriverEmitter,
|
|
9
9
|
driverReplies,
|
|
10
10
|
driverStop
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4WHPZGF4.js";
|
|
12
12
|
import {
|
|
13
13
|
detectAgentBackend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EE3LTOBZ.js";
|
|
15
15
|
import {
|
|
16
16
|
classifyGateExit,
|
|
17
17
|
landGateExit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2TKPKRHO.js";
|
|
19
19
|
import {
|
|
20
20
|
buildDispatchPrompt,
|
|
21
21
|
ensureDispatchLogPath,
|
|
22
22
|
readCommandFile,
|
|
23
23
|
runHeadlessDispatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7TEEGAED.js";
|
|
25
25
|
import {
|
|
26
26
|
formatHitlSummary,
|
|
27
27
|
hitlExitCode
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WRCXRV2U.js";
|
|
29
29
|
import {
|
|
30
30
|
HANDOFF_REL
|
|
31
31
|
} from "./chunk-C4Q77GGJ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBranchInBase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CRLMS2JX.js";
|
|
4
4
|
import {
|
|
5
5
|
GATE_EXIT_BRANCH_PREFIX,
|
|
6
6
|
GATE_EXIT_NOTE_DIR,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isSafeBaseRef,
|
|
12
12
|
landGateExit,
|
|
13
13
|
resolveGateExitRefs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2TKPKRHO.js";
|
|
15
15
|
import {
|
|
16
16
|
ensurePathIgnored
|
|
17
17
|
} from "./chunk-MUTTNRX4.js";
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
ensureDispatchLogPath,
|
|
20
20
|
readCommandFile,
|
|
21
21
|
runHeadlessDispatch
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7TEEGAED.js";
|
|
23
23
|
import {
|
|
24
24
|
redactSecrets
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GDKTTV2A.js";
|
|
26
26
|
import {
|
|
27
27
|
formatHitlSummary,
|
|
28
28
|
hitlExitCode
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WRCXRV2U.js";
|
|
30
30
|
|
|
31
31
|
// src/plan-loop/review-job.ts
|
|
32
32
|
import { randomBytes } from "crypto";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
createDriverEmitter,
|
|
20
20
|
driverReplies,
|
|
21
21
|
driverStop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4WHPZGF4.js";
|
|
23
23
|
import {
|
|
24
24
|
classifyGateExit,
|
|
25
25
|
landGateExit
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2TKPKRHO.js";
|
|
27
27
|
import {
|
|
28
28
|
parsePlanFrontmatter
|
|
29
29
|
} from "./chunk-L5V3W3DY.js";
|
|
@@ -33,13 +33,13 @@ import {
|
|
|
33
33
|
parseStreamLine,
|
|
34
34
|
redactSecrets,
|
|
35
35
|
renderStreamEvent
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GDKTTV2A.js";
|
|
37
37
|
import {
|
|
38
38
|
LineSplitter,
|
|
39
39
|
formatHitlSummary,
|
|
40
40
|
operatorQuitStop,
|
|
41
41
|
sumUsage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WRCXRV2U.js";
|
|
43
43
|
import {
|
|
44
44
|
TtySpinner,
|
|
45
45
|
shouldUseVisualMotion,
|
|
@@ -136,6 +136,9 @@ var UsageTally = class {
|
|
|
136
136
|
var HITL_GATE_LINE_RE = /^HITL_GATE:\s*([a-z0-9-]+)\s*\|\s*(.+)$/;
|
|
137
137
|
var HITL_REPLY_PREFIX = "HITL_REPLY:";
|
|
138
138
|
var RESERVED_GATE_IDS = ["git-prod", "kit-prod"];
|
|
139
|
+
var PREANSWERABLE_GATES = {
|
|
140
|
+
"context-checkpoint": ["Continue queue"]
|
|
141
|
+
};
|
|
139
142
|
var FALLBACK_ASK_ID = "prose-fallback";
|
|
140
143
|
var HITL_UNANSWERED_EXIT_CODE = 4;
|
|
141
144
|
var HITL_SIGINT_EXIT_CODE = 130;
|
|
@@ -227,10 +230,21 @@ function resolveOperatorAnswer(input, labels) {
|
|
|
227
230
|
if (STOP_WORDS.has(lower)) return { kind: "stop", cause: lower };
|
|
228
231
|
return { kind: "other", text };
|
|
229
232
|
}
|
|
230
|
-
function
|
|
233
|
+
function isPreanswerable(askId, label) {
|
|
234
|
+
if (isReservedGateId(askId)) return false;
|
|
235
|
+
return Object.hasOwn(PREANSWERABLE_GATES, askId) && (PREANSWERABLE_GATES[askId] ?? []).includes(label);
|
|
236
|
+
}
|
|
237
|
+
function replyTag(answer, source) {
|
|
231
238
|
if (answer.kind === "reply") {
|
|
232
|
-
return
|
|
239
|
+
return source === "policy" ? `policy pre-answer ${answer.n}` : `operator reply ${answer.n}`;
|
|
233
240
|
}
|
|
241
|
+
return "operator reply other";
|
|
242
|
+
}
|
|
243
|
+
function formatHitlReply(askId, answer, source = "operator") {
|
|
244
|
+
if (answer.kind === "reply") {
|
|
245
|
+
return `${HITL_REPLY_PREFIX} ${askId} | ${replyTag(answer, source)} | ${answer.label}`;
|
|
246
|
+
}
|
|
247
|
+
if (source === "policy") throw new Error("a policy pre-answer is always a listed label");
|
|
234
248
|
if (answer.kind === "other") {
|
|
235
249
|
return `${HITL_REPLY_PREFIX} ${askId} | operator reply other | ${answer.text}`;
|
|
236
250
|
}
|
|
@@ -336,7 +350,7 @@ async function askOperator(gate, opts) {
|
|
|
336
350
|
let raw;
|
|
337
351
|
try {
|
|
338
352
|
opts.write(formatGatePrompt(gate));
|
|
339
|
-
raw = await opts.readAnswer(gate, { signal: opts.signal });
|
|
353
|
+
raw = await opts.readAnswer(gate, { signal: opts.signal, usage: opts.usage ?? null });
|
|
340
354
|
} finally {
|
|
341
355
|
opts.onPromptEnd?.();
|
|
342
356
|
}
|
|
@@ -346,12 +360,22 @@ async function askOperator(gate, opts) {
|
|
|
346
360
|
if (raw.kind === "eof") return { kind: "stop", stop: operatorStop(gate.askId, "EOF") };
|
|
347
361
|
if (raw.kind === "sigint") return { kind: "stop", stop: operatorStop(gate.askId, "SIGINT") };
|
|
348
362
|
if (raw.kind === "stop") return { kind: "stop", stop: driverStop(gate.askId, raw) };
|
|
363
|
+
const source = raw.source ?? "operator";
|
|
349
364
|
const answer = resolveOperatorAnswer(raw.text, gate.labels);
|
|
365
|
+
if (source === "policy" && (answer.kind !== "reply" || !isPreanswerable(gate.askId, answer.label))) {
|
|
366
|
+
return {
|
|
367
|
+
kind: "stop",
|
|
368
|
+
stop: driverStop(gate.askId, {
|
|
369
|
+
cause: "protocol error",
|
|
370
|
+
detail: `policy pre-answer not allowed for ${gate.askId}`
|
|
371
|
+
})
|
|
372
|
+
};
|
|
373
|
+
}
|
|
350
374
|
if (answer.kind === "stop") return { kind: "stop", stop: operatorStop(gate.askId, answer.cause) };
|
|
351
|
-
const line = formatHitlReply(gate.askId, answer);
|
|
375
|
+
const line = formatHitlReply(gate.askId, answer, source);
|
|
352
376
|
const stamp = {
|
|
353
377
|
askId: gate.askId,
|
|
354
|
-
reply: answer
|
|
378
|
+
reply: replyTag(answer, source),
|
|
355
379
|
label: answer.kind === "reply" ? answer.label : answer.text,
|
|
356
380
|
line,
|
|
357
381
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RUN_CATALOG
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7TEEGAED.js";
|
|
4
|
+
import "./chunk-GDKTTV2A.js";
|
|
5
|
+
import "./chunk-WRCXRV2U.js";
|
|
6
6
|
import {
|
|
7
7
|
discoverInstalledCommands
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IBE2EJZS.js";
|
|
9
9
|
import "./chunk-WGLPZXNU.js";
|
|
10
10
|
import "./chunk-6RRG3WOE.js";
|
|
11
11
|
import "./chunk-QTON2GQX.js";
|
|
12
12
|
import {
|
|
13
13
|
L0_ARTIFACTS
|
|
14
14
|
} from "./chunk-2KIOZMTV.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5RWTDCJ7.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_VERSION
|
|
18
18
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5T4CHRRR.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-ZB43YMHW.js";
|
|
8
8
|
import {
|
|
9
9
|
managedPairs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FX6BIH4C.js";
|
|
11
11
|
import "./chunk-2KIOZMTV.js";
|
|
12
12
|
import {
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
normalizeRelPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJWCL4PO.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContained
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5RWTDCJ7.js";
|
|
19
19
|
import "./chunk-C4Q77GGJ.js";
|
|
20
20
|
import "./chunk-5B4DVO6C.js";
|
|
21
21
|
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
REVIEW_PACK_SLASH,
|
|
5
5
|
parseReviewPackMaxBytes,
|
|
6
6
|
reviewBackendMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UX6FHSO7.js";
|
|
8
8
|
import {
|
|
9
9
|
detectAgentBackend,
|
|
10
10
|
listDetectBackendIds
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EE3LTOBZ.js";
|
|
12
|
+
import "./chunk-CRLMS2JX.js";
|
|
13
13
|
import {
|
|
14
14
|
GATE_EXIT_MARKER_RELPATH,
|
|
15
15
|
defaultExec,
|
|
@@ -20,23 +20,23 @@ import {
|
|
|
20
20
|
readGateExitMarker,
|
|
21
21
|
resolveGateExitRefs,
|
|
22
22
|
writeGateExitMarker
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2TKPKRHO.js";
|
|
24
24
|
import "./chunk-MUTTNRX4.js";
|
|
25
25
|
import {
|
|
26
26
|
classifySlash,
|
|
27
27
|
normalizeSlashName,
|
|
28
28
|
promoteBlockedMessage,
|
|
29
29
|
unknownSlashMessage
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7TEEGAED.js";
|
|
31
31
|
import {
|
|
32
32
|
CLAUDE_MAX_BUDGET_USD_ENV,
|
|
33
33
|
CLAUDE_MAX_TURNS_ENV,
|
|
34
34
|
RedactingStreamBuffer,
|
|
35
35
|
redactSecrets
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GDKTTV2A.js";
|
|
37
37
|
import {
|
|
38
38
|
HITL_UNANSWERED_EXIT_CODE
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WRCXRV2U.js";
|
|
40
40
|
import "./chunk-WGLPZXNU.js";
|
|
41
41
|
import "./chunk-6RRG3WOE.js";
|
|
42
42
|
import "./chunk-QTON2GQX.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5T4CHRRR.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-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DVCNJNCF.js";
|
|
12
|
+
import "./chunk-FX6BIH4C.js";
|
|
13
13
|
import "./chunk-2KIOZMTV.js";
|
|
14
14
|
import {
|
|
15
15
|
loadAgentKitManifest
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-XJWCL4PO.js";
|
|
17
|
+
import "./chunk-5RWTDCJ7.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-
|
|
5
|
+
} from "./chunk-ODI2N2BN.js";
|
|
6
6
|
import {
|
|
7
7
|
writeReadinessSnapshot
|
|
8
8
|
} from "./chunk-HAFRAXGV.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LAYMAMPL.js";
|
|
10
|
+
import "./chunk-IBE2EJZS.js";
|
|
11
11
|
import "./chunk-WGLPZXNU.js";
|
|
12
12
|
import "./chunk-6RRG3WOE.js";
|
|
13
13
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
detectWorkspaceParent,
|
|
18
18
|
workspaceParentAdvisoryLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKQ3SAHK.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-
|
|
36
|
+
} from "./chunk-2R4HYPQH.js";
|
|
37
37
|
import "./chunk-PFEUZXVT.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-DVCNJNCF.js";
|
|
39
|
+
import "./chunk-FX6BIH4C.js";
|
|
40
40
|
import "./chunk-2KIOZMTV.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-XJWCL4PO.js";
|
|
42
|
+
import "./chunk-5RWTDCJ7.js";
|
|
43
43
|
import {
|
|
44
44
|
KIT_VERSION
|
|
45
45
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DRIVER_PROTOCOL_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4WHPZGF4.js";
|
|
4
4
|
import {
|
|
5
5
|
bundledDashboardCandidates
|
|
6
6
|
} from "./chunk-XDCCYBCJ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WRCXRV2U.js";
|
|
8
8
|
import "./chunk-ZB43YMHW.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/engine-info.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blobId,
|
|
3
3
|
isTicketMerged
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CRLMS2JX.js";
|
|
5
5
|
import {
|
|
6
6
|
GATE_EXIT_BRANCH_PREFIX,
|
|
7
7
|
GATE_EXIT_MARKER_RELPATH,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
readGateExitMarker,
|
|
17
17
|
resolveGateExitRefs,
|
|
18
18
|
writeGateExitMarker
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2TKPKRHO.js";
|
|
20
20
|
import "./chunk-MUTTNRX4.js";
|
|
21
21
|
import {
|
|
22
22
|
redactSecrets
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-GDKTTV2A.js";
|
|
24
|
+
import "./chunk-WRCXRV2U.js";
|
|
25
25
|
import {
|
|
26
26
|
findOnPath
|
|
27
27
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
} from "./chunk-HAFRAXGV.js";
|
|
24
24
|
import {
|
|
25
25
|
stampLastCheckedAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2R4HYPQH.js";
|
|
27
27
|
import {
|
|
28
28
|
loadContextConfig
|
|
29
29
|
} from "./chunk-PFEUZXVT.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DVCNJNCF.js";
|
|
31
|
+
import "./chunk-FX6BIH4C.js";
|
|
32
32
|
import "./chunk-2KIOZMTV.js";
|
|
33
33
|
import {
|
|
34
34
|
MANIFEST_RELATIVE_PATH
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-XJWCL4PO.js";
|
|
36
|
+
import "./chunk-5RWTDCJ7.js";
|
|
37
37
|
import "./chunk-7HDQEK6T.js";
|
|
38
38
|
import {
|
|
39
39
|
HANDOFF_REL
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
rewriteRootArgvToRun
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7TEEGAED.js";
|
|
5
|
+
import "./chunk-GDKTTV2A.js";
|
|
6
|
+
import "./chunk-WRCXRV2U.js";
|
|
7
7
|
import "./chunk-WGLPZXNU.js";
|
|
8
8
|
import "./chunk-6RRG3WOE.js";
|
|
9
9
|
import {
|
|
@@ -232,39 +232,39 @@ var main = defineCommand({
|
|
|
232
232
|
version: KIT_VERSION
|
|
233
233
|
},
|
|
234
234
|
subCommands: {
|
|
235
|
-
init: () => import("./init-
|
|
236
|
-
install: () => import("./install-
|
|
235
|
+
init: () => import("./init-ONPKZS63.js").then((m) => m.initCommand),
|
|
236
|
+
install: () => import("./install-NHTYTVSG.js").then((m) => m.installCommand),
|
|
237
237
|
scan: () => import("./scan-BWA64R7I.js").then((m) => m.scanCommand),
|
|
238
|
-
add: () => import("./add-
|
|
239
|
-
doctor: () => import("./doctor-
|
|
240
|
-
"setup-global": () => import("./setup-global-
|
|
241
|
-
status: () => import("./status-
|
|
242
|
-
update: () => import("./update-
|
|
238
|
+
add: () => import("./add-CLRIMPN4.js").then((m) => m.addCommand),
|
|
239
|
+
doctor: () => import("./doctor-QGO4QB7R.js").then((m) => m.doctorCommand),
|
|
240
|
+
"setup-global": () => import("./setup-global-PMKGHX2S.js").then((m) => m.setupGlobalCommand),
|
|
241
|
+
status: () => import("./status-P2I6LE6Y.js").then((m) => m.statusCommand),
|
|
242
|
+
update: () => import("./update-K6L24JDP.js").then((m) => m.updateCommand),
|
|
243
243
|
"cursor-awareness": () => import("./cursor-awareness-TN5JXD2C.js").then((m) => m.cursorAwarenessCommand),
|
|
244
244
|
"public-inbound-radar": () => import("./public-inbound-radar-5U4JMBRU.js").then((m) => m.publicInboundRadarCommand),
|
|
245
245
|
"remote-issues": () => import("./remote-issues-APYOMIJC.js").then((m) => m.remoteIssuesCommand),
|
|
246
246
|
dogfood: () => import("./dogfood-2JAHSYQA.js").then((m) => m.dogfoodCommand),
|
|
247
|
-
diff: () => import("./diff-
|
|
248
|
-
contribute: () => import("./contribute-
|
|
247
|
+
diff: () => import("./diff-SCGNC4SF.js").then((m) => m.diffCommand),
|
|
248
|
+
contribute: () => import("./contribute-E3COXKH4.js").then((m) => m.contributeCommand),
|
|
249
249
|
handoff: () => import("./handoff-5AGE2D3T.js").then((m) => m.handoffCommand),
|
|
250
250
|
"plan-index": () => import("./plan-index-BNLUU6T5.js").then((m) => m.planIndexCommand),
|
|
251
|
-
run: () => import("./run-
|
|
252
|
-
"run-plan": () => import("./run-plan-
|
|
253
|
-
"run-plan-all": () => import("./run-
|
|
254
|
-
queue: () => import("./queue-
|
|
255
|
-
countdown: () => import("./countdown-
|
|
256
|
-
"ground-control": () => import("./ground-control-
|
|
251
|
+
run: () => import("./run-EO5P2YZG.js").then((m) => m.runCommand),
|
|
252
|
+
"run-plan": () => import("./run-plan-VMW34QY6.js").then((m) => m.runPlanCommand),
|
|
253
|
+
"run-plan-all": () => import("./run-EO5P2YZG.js").then((m) => m.runPlanAllCommand),
|
|
254
|
+
queue: () => import("./queue-XI4HUFLJ.js").then((m) => m.queueCommand),
|
|
255
|
+
countdown: () => import("./countdown-F6EIHGDR.js").then((m) => m.countdownCommand),
|
|
256
|
+
"ground-control": () => import("./ground-control-DB5RSYAT.js").then((m) => m.groundControlCommand),
|
|
257
257
|
dashboard: () => import("./dashboard-YNCFISNO.js").then((m) => m.dashboardCommand),
|
|
258
258
|
"dashboard-broadcast": () => import("./dashboard-broadcast-NK7PU72L.js").then((m) => m.dashboardBroadcastCommand),
|
|
259
259
|
"mission-control": () => import("./mission-control-C2QV5D25.js").then((m) => m.missionControlCommand),
|
|
260
|
-
hook: () => import("./hook-
|
|
260
|
+
hook: () => import("./hook-R7V4NG3C.js").then((m) => m.hookCommand),
|
|
261
261
|
guard: () => import("./guard-X6FNFZ27.js").then((m) => m.guardCommand),
|
|
262
262
|
monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
|
|
263
263
|
sessions: () => import("./sessions-O7MYEMCT.js").then((m) => m.sessionsCommand),
|
|
264
264
|
"outcome-ledger": () => import("./outcome-ledger-XLWHWPVQ.js").then((m) => m.outcomeLedgerCommand),
|
|
265
265
|
validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand),
|
|
266
|
-
"engine-info": () => import("./engine-info-
|
|
267
|
-
commands: () => import("./commands-
|
|
266
|
+
"engine-info": () => import("./engine-info-MNCKB55Y.js").then((m) => m.engineInfoCommand),
|
|
267
|
+
commands: () => import("./commands-DVEZOEEO.js").then((m) => m.commandsCommand)
|
|
268
268
|
},
|
|
269
269
|
async run({ rawArgs }) {
|
|
270
270
|
if (hasCliSubcommand(rawArgs)) return;
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
nextStepAfterInstall,
|
|
3
3
|
performInstall,
|
|
4
4
|
printInstallEpilogue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PGCRP5A6.js";
|
|
6
6
|
import {
|
|
7
7
|
NON_INTERACTIVE_ROOT_ARGS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HWYVLEET.js";
|
|
9
9
|
import {
|
|
10
10
|
SkippedSymlinkError,
|
|
11
11
|
logApplyStats
|
|
12
12
|
} from "./chunk-HS7LVVLO.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-5T4CHRRR.js";
|
|
14
|
+
import "./chunk-ODI2N2BN.js";
|
|
15
15
|
import "./chunk-HAFRAXGV.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LAYMAMPL.js";
|
|
17
|
+
import "./chunk-IBE2EJZS.js";
|
|
18
18
|
import "./chunk-WGLPZXNU.js";
|
|
19
19
|
import "./chunk-6RRG3WOE.js";
|
|
20
20
|
import {
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
confirmProjectRoot,
|
|
33
33
|
isNonInteractive,
|
|
34
34
|
syncPathCliToRuntime
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-I2SG2VPJ.js";
|
|
36
36
|
import {
|
|
37
37
|
assessEnvironment
|
|
38
38
|
} from "./chunk-B3VR5YBQ.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-2R4HYPQH.js";
|
|
40
40
|
import "./chunk-PFEUZXVT.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-DVCNJNCF.js";
|
|
42
|
+
import "./chunk-FX6BIH4C.js";
|
|
43
43
|
import "./chunk-2KIOZMTV.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-XJWCL4PO.js";
|
|
45
|
+
import "./chunk-5RWTDCJ7.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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PGCRP5A6.js";
|
|
7
|
+
import "./chunk-HWYVLEET.js";
|
|
8
8
|
import "./chunk-HS7LVVLO.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5T4CHRRR.js";
|
|
10
|
+
import "./chunk-ODI2N2BN.js";
|
|
11
11
|
import "./chunk-HAFRAXGV.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LAYMAMPL.js";
|
|
13
|
+
import "./chunk-IBE2EJZS.js";
|
|
14
14
|
import "./chunk-WGLPZXNU.js";
|
|
15
15
|
import "./chunk-6RRG3WOE.js";
|
|
16
16
|
import "./chunk-QTON2GQX.js";
|
|
@@ -18,15 +18,15 @@ import "./chunk-PNFF6OU3.js";
|
|
|
18
18
|
import "./chunk-SC2DBY2R.js";
|
|
19
19
|
import "./chunk-F6C3GFKV.js";
|
|
20
20
|
import "./chunk-ZB43YMHW.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-I2SG2VPJ.js";
|
|
22
22
|
import "./chunk-B3VR5YBQ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-2R4HYPQH.js";
|
|
24
24
|
import "./chunk-PFEUZXVT.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-DVCNJNCF.js";
|
|
26
|
+
import "./chunk-FX6BIH4C.js";
|
|
27
27
|
import "./chunk-2KIOZMTV.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-XJWCL4PO.js";
|
|
29
|
+
import "./chunk-5RWTDCJ7.js";
|
|
30
30
|
import "./chunk-7HDQEK6T.js";
|
|
31
31
|
import "./chunk-C4Q77GGJ.js";
|
|
32
32
|
import "./chunk-5B4DVO6C.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readHandoffText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TFKEHC2D.js";
|
|
4
4
|
import "./chunk-7ABY6DYH.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-4WHPZGF4.js";
|
|
6
|
+
import "./chunk-EE3LTOBZ.js";
|
|
7
|
+
import "./chunk-2TKPKRHO.js";
|
|
8
8
|
import {
|
|
9
9
|
extractFieldBlock
|
|
10
10
|
} from "./chunk-L5V3W3DY.js";
|
|
11
11
|
import "./chunk-MUTTNRX4.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7TEEGAED.js";
|
|
13
|
+
import "./chunk-GDKTTV2A.js";
|
|
14
|
+
import "./chunk-WRCXRV2U.js";
|
|
15
15
|
import "./chunk-WGLPZXNU.js";
|
|
16
16
|
import "./chunk-6RRG3WOE.js";
|
|
17
17
|
import "./chunk-QTON2GQX.js";
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
runPlanLoop,
|
|
3
3
|
shouldUseLiveTui,
|
|
4
4
|
withLiveTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WAWCS5PJ.js";
|
|
6
6
|
import "./chunk-LFWPB2JR.js";
|
|
7
7
|
import {
|
|
8
8
|
landDispatchOutcome,
|
|
9
9
|
runDispatchDriver
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TFKEHC2D.js";
|
|
11
11
|
import "./chunk-7ABY6DYH.js";
|
|
12
12
|
import {
|
|
13
13
|
DRIVER_EVENTS_FORMATS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4WHPZGF4.js";
|
|
15
15
|
import {
|
|
16
16
|
REVIEW_PACK_SLASH,
|
|
17
17
|
runReviewJob
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UX6FHSO7.js";
|
|
19
19
|
import {
|
|
20
20
|
detectAgentBackend,
|
|
21
21
|
listDetectBackendIds
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-EE3LTOBZ.js";
|
|
23
|
+
import "./chunk-CRLMS2JX.js";
|
|
24
24
|
import {
|
|
25
25
|
LAND_ON_GATE_DESCRIPTION
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2TKPKRHO.js";
|
|
27
27
|
import {
|
|
28
28
|
negatedFlag
|
|
29
29
|
} from "./chunk-XDCCYBCJ.js";
|
|
@@ -39,15 +39,15 @@ import {
|
|
|
39
39
|
resolveOperatorNote,
|
|
40
40
|
runHeadlessDispatch,
|
|
41
41
|
unknownSlashMessage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7TEEGAED.js";
|
|
43
43
|
import {
|
|
44
44
|
getBackend
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GDKTTV2A.js";
|
|
46
46
|
import {
|
|
47
47
|
HITL_UNANSWERED_EXIT_CODE,
|
|
48
48
|
formatHitlSummary,
|
|
49
49
|
hitlExitCode
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-WRCXRV2U.js";
|
|
51
51
|
import "./chunk-WGLPZXNU.js";
|
|
52
52
|
import "./chunk-6RRG3WOE.js";
|
|
53
53
|
import "./chunk-QTON2GQX.js";
|
|
@@ -356,7 +356,7 @@ var runPlanAllCommand = defineCommand({
|
|
|
356
356
|
...runDispatchArgs,
|
|
357
357
|
events: {
|
|
358
358
|
type: "string",
|
|
359
|
-
description: "Driver mode for apps: `ndjson` writes only NDJSON events to stdout and reads HITL answers as JSON lines on stdin (no TTY needed; driver protocol 1.
|
|
359
|
+
description: "Driver mode for apps: `ndjson` writes only NDJSON events to stdout and reads HITL answers as JSON lines on stdin (no TTY needed; driver protocol 1.4.0, see docs/driver-events-protocol.md)",
|
|
360
360
|
default: ""
|
|
361
361
|
},
|
|
362
362
|
note: {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPlanLoop
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WAWCS5PJ.js";
|
|
4
4
|
import "./chunk-LFWPB2JR.js";
|
|
5
5
|
import "./chunk-7ABY6DYH.js";
|
|
6
6
|
import {
|
|
7
7
|
DRIVER_EVENTS_FORMATS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4WHPZGF4.js";
|
|
9
9
|
import {
|
|
10
10
|
detectAgentBackend,
|
|
11
11
|
listDetectBackendIds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EE3LTOBZ.js";
|
|
13
13
|
import {
|
|
14
14
|
LAND_ON_GATE_DESCRIPTION
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2TKPKRHO.js";
|
|
16
16
|
import {
|
|
17
17
|
negatedFlag
|
|
18
18
|
} from "./chunk-XDCCYBCJ.js";
|
|
@@ -20,10 +20,10 @@ import "./chunk-L5V3W3DY.js";
|
|
|
20
20
|
import "./chunk-MUTTNRX4.js";
|
|
21
21
|
import {
|
|
22
22
|
getBackend
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GDKTTV2A.js";
|
|
24
24
|
import {
|
|
25
25
|
HITL_UNANSWERED_EXIT_CODE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WRCXRV2U.js";
|
|
27
27
|
import "./chunk-WGLPZXNU.js";
|
|
28
28
|
import "./chunk-6RRG3WOE.js";
|
|
29
29
|
import "./chunk-QTON2GQX.js";
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
classifyInstallError,
|
|
3
3
|
isNonInteractive,
|
|
4
4
|
pathCliStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I2SG2VPJ.js";
|
|
6
6
|
import {
|
|
7
7
|
assessEnvironment
|
|
8
8
|
} from "./chunk-B3VR5YBQ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2R4HYPQH.js";
|
|
10
10
|
import "./chunk-PFEUZXVT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DVCNJNCF.js";
|
|
12
|
+
import "./chunk-FX6BIH4C.js";
|
|
13
13
|
import "./chunk-2KIOZMTV.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XJWCL4PO.js";
|
|
15
|
+
import "./chunk-5RWTDCJ7.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-
|
|
4
|
+
} from "./chunk-OKQ3SAHK.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-
|
|
18
|
+
} from "./chunk-I2SG2VPJ.js";
|
|
19
19
|
import {
|
|
20
20
|
assessEnvironment
|
|
21
21
|
} from "./chunk-B3VR5YBQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-2R4HYPQH.js";
|
|
23
23
|
import "./chunk-PFEUZXVT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-DVCNJNCF.js";
|
|
25
|
+
import "./chunk-FX6BIH4C.js";
|
|
26
26
|
import "./chunk-2KIOZMTV.js";
|
|
27
27
|
import {
|
|
28
28
|
MANIFEST_RELATIVE_PATH,
|
|
29
29
|
loadAgentKitManifest,
|
|
30
30
|
resolveProtectedGlobs
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-XJWCL4PO.js";
|
|
32
|
+
import "./chunk-5RWTDCJ7.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-
|
|
7
|
+
} from "./chunk-HWYVLEET.js";
|
|
8
8
|
import {
|
|
9
9
|
formatSkippedSymlinks,
|
|
10
10
|
logApplyStats
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
REGISTRY_CLI_ARGS,
|
|
14
14
|
resolveRegistryFromCli
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5T4CHRRR.js";
|
|
16
16
|
import {
|
|
17
17
|
CLAUDE_SETTINGS_REL,
|
|
18
18
|
formatClaudeSettingsDrift,
|
|
19
19
|
planClaudeSettingsDrift,
|
|
20
20
|
writeClaudeSessionStartHook
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LAYMAMPL.js";
|
|
22
22
|
import {
|
|
23
23
|
generateClaudeCommandAdapters
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IBE2EJZS.js";
|
|
25
25
|
import "./chunk-6RRG3WOE.js";
|
|
26
26
|
import {
|
|
27
27
|
withCliProgress
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
confirmProjectRoot,
|
|
35
35
|
isNonInteractive,
|
|
36
36
|
syncPathCliToRuntime
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-I2SG2VPJ.js";
|
|
38
38
|
import "./chunk-B3VR5YBQ.js";
|
|
39
39
|
import {
|
|
40
40
|
checkForUpdates
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2R4HYPQH.js";
|
|
42
42
|
import "./chunk-PFEUZXVT.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-DVCNJNCF.js";
|
|
44
|
+
import "./chunk-FX6BIH4C.js";
|
|
45
45
|
import "./chunk-2KIOZMTV.js";
|
|
46
46
|
import {
|
|
47
47
|
buildManifest,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
loadAgentKitManifest,
|
|
50
50
|
resolveProtectedGlobs,
|
|
51
51
|
saveManifest
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XJWCL4PO.js";
|
|
53
53
|
import {
|
|
54
54
|
seedManagedHashLedger
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-5RWTDCJ7.js";
|
|
56
56
|
import {
|
|
57
57
|
KIT_VERSION
|
|
58
58
|
} from "./chunk-7HDQEK6T.js";
|
package/package.json
CHANGED