@dadado/agent-kit-cli 6.17.0 → 6.18.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-DRV3T42D.js → add-JZKFUH2O.js} +3 -3
- package/dist/{chunk-3YTFXTXH.js → chunk-2CBKKCVU.js} +1 -1
- package/dist/{chunk-QYIV6ZP6.js → chunk-357Y422W.js} +3 -3
- package/dist/{chunk-AZCPUJJO.js → chunk-42AA2VFW.js} +2 -2
- package/dist/{chunk-IJQAFPY3.js → chunk-44SDKJYY.js} +1 -1
- package/dist/{chunk-HKZH2IEE.js → chunk-4KV3TXKC.js} +1 -1
- package/dist/{chunk-5IJQGIOY.js → chunk-B4MUKUVS.js} +6 -1
- package/dist/{chunk-WA7IBNIL.js → chunk-BDIWC3WB.js} +2 -2
- package/dist/{chunk-YO4BLHDT.js → chunk-CRH2Q6KY.js} +2 -2
- package/dist/{chunk-TICKIKCQ.js → chunk-CTVVGKYB.js} +4 -4
- package/dist/{chunk-MEZU47IB.js → chunk-H5D3HF2N.js} +1 -1
- package/dist/{chunk-CJ3JAH7L.js → chunk-L7BL4246.js} +1 -1
- package/dist/{chunk-2Y27P6KC.js → chunk-MOJRD6HF.js} +1 -1
- package/dist/{chunk-3IEE6Q37.js → chunk-OKIFM3IH.js} +1 -1
- package/dist/{chunk-6RRG3WOE.js → chunk-Q35TWISF.js} +22 -1
- package/dist/{chunk-WGAOM37Y.js → chunk-R4VLVX7B.js} +8 -8
- package/dist/{chunk-J3YLSHRK.js → chunk-UEW42NIF.js} +22 -3
- package/dist/{chunk-IOQ6YXA3.js → chunk-VRSBZKTA.js} +1 -1
- package/dist/{chunk-VBQHBSIB.js → chunk-VY7AFID2.js} +3 -3
- package/dist/{chunk-RAMT55TC.js → chunk-WJRNI5FJ.js} +3 -3
- package/dist/{chunk-4DLMU44M.js → chunk-XHANIDPK.js} +71 -4
- package/dist/{chunk-OQNJRQPZ.js → chunk-Y7BH6KIE.js} +1 -1
- package/dist/{chunk-AQTCXUYS.js → chunk-YP5OCR4I.js} +1 -1
- package/dist/{commands-3O2HFLTW.js → commands-5P2E5LL4.js} +5 -5
- package/dist/{conflicts-UY6VTYIO.js → conflicts-A4B422EL.js} +7 -7
- package/dist/{contribute-RF47NPZ2.js → contribute-GAHG3J4Q.js} +4 -4
- package/dist/{countdown-JX3DZ2QU.js → countdown-C6NY2TSG.js} +7 -7
- package/dist/{diff-SVFAUOVP.js → diff-EYAGGEU4.js} +5 -5
- package/dist/{doctor-ATKYRCT4.js → doctor-GOMPRU6F.js} +10 -10
- package/dist/{ground-control-D2X6CI66.js → ground-control-MJGF5QRE.js} +4 -4
- package/dist/{hook-2YEC7GT5.js → hook-AZ5LSJBJ.js} +5 -5
- package/dist/index.js +21 -21
- package/dist/{init-LUJRWMHC.js → init-WW5DR3DX.js} +13 -13
- package/dist/{install-VQSO2JR7.js → install-RN2DRLK6.js} +13 -13
- package/dist/{queue-IEOXOBNL.js → queue-7EBQGPPW.js} +6 -6
- package/dist/{run-L63NZHAJ.js → run-GOMAHNV2.js} +9 -9
- package/dist/{run-plan-BWJX6R7Q.js → run-plan-EUQ5WWF6.js} +5 -5
- package/dist/{setup-global-2X5TMDCB.js → setup-global-DJWURJS3.js} +6 -6
- package/dist/{status-MOOZCB5D.js → status-2WYPLWTN.js} +7 -7
- package/dist/{update-NMSO56CQ.js → update-5VFQNBY5.js} +16 -11
- 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-4KV3TXKC.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-VRSBZKTA.js";
|
|
26
|
+
import "./chunk-B4MUKUVS.js";
|
|
27
27
|
import {
|
|
28
28
|
KIT_VERSION
|
|
29
29
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
} from "./chunk-SKC6QZW4.js";
|
|
12
12
|
import {
|
|
13
13
|
detectAgentBackend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-44SDKJYY.js";
|
|
15
15
|
import {
|
|
16
16
|
classifyGateExit,
|
|
17
17
|
landGateExit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L7BL4246.js";
|
|
19
19
|
import {
|
|
20
20
|
buildDispatchPrompt,
|
|
21
21
|
ensureDispatchLogPath,
|
|
22
22
|
readCommandFile,
|
|
23
23
|
runHeadlessDispatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MOJRD6HF.js";
|
|
25
25
|
import {
|
|
26
26
|
formatHitlSummary,
|
|
27
27
|
hitlExitCode
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
diffAgainstRegistry,
|
|
8
8
|
summarizeDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VY7AFID2.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_REGISTRY_URL,
|
|
12
12
|
assertSafeRegistrySource,
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
resolveRegistryRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VRSBZKTA.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_PACKAGE_SPEC,
|
|
18
18
|
KIT_VERSION
|
|
@@ -388,7 +388,12 @@ var KNOWN_SHIPPED_OVERLAY_HASHES = /* @__PURE__ */ new Set([
|
|
|
388
388
|
"c6e8391d418260e90d25fc06ec5f3a5aeacdc5ae8733dbe0f331db6611eb5d33",
|
|
389
389
|
"2a9e68994eee8737a7d9b56004b7a0732c59d0b5893bfd55e734082dd854cdbc",
|
|
390
390
|
"3b696baaf649912875baa2710f743732f337445658a1ea7c7531ef28e2b25a3f",
|
|
391
|
-
"58c355c0d7cecbade18f896bd8dce3bfe72c555a6c69ed4d482e245d876656c7"
|
|
391
|
+
"58c355c0d7cecbade18f896bd8dce3bfe72c555a6c69ed4d482e245d876656c7",
|
|
392
|
+
"05f56672d407c43f2b17aa7b8a5ced8b351a707e74dbbb89d5dca48053132f7f",
|
|
393
|
+
"003bba4475ade592a61220ff32000bcf52ec8043fc842a0c3d2d72768439dc2e",
|
|
394
|
+
"653c713e3d9e09bc6d89b4b4b12ba65123ac69d8f1a85ae7dbc3cff0729b9054",
|
|
395
|
+
"45cdac355b105d057cd78fb5651d9b8d853a9a9110fb28b7450296d5df921c3b",
|
|
396
|
+
"a809a5a06fd11a6329622d5acfad85c1ef06fef9bb9f28b24ac04780b225b2df"
|
|
392
397
|
]);
|
|
393
398
|
|
|
394
399
|
// src/lifecycle/paths.ts
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
compareSemver,
|
|
6
6
|
normalizeSemver
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-42AA2VFW.js";
|
|
8
8
|
import {
|
|
9
9
|
MANIFEST_RELATIVE_PATH
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VRSBZKTA.js";
|
|
11
11
|
import {
|
|
12
12
|
KIT_VERSION,
|
|
13
13
|
pinnedCliSpec
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
classifyGateExit,
|
|
26
26
|
landGateExit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L7BL4246.js";
|
|
28
28
|
import {
|
|
29
29
|
parsePlanFrontmatter
|
|
30
30
|
} from "./chunk-L5V3W3DY.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseStreamLine,
|
|
35
35
|
redactSecrets,
|
|
36
36
|
renderStreamEvent
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
38
38
|
import {
|
|
39
39
|
LineSplitter,
|
|
40
40
|
formatHitlSummary,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBranchInBase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5D3HF2N.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-L7BL4246.js";
|
|
15
15
|
import {
|
|
16
16
|
ensurePathIgnored
|
|
17
17
|
} from "./chunk-MUTTNRX4.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
ensureDispatchLogPath,
|
|
20
20
|
readCommandFile,
|
|
21
21
|
runHeadlessDispatch
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MOJRD6HF.js";
|
|
23
23
|
import {
|
|
24
24
|
redactSecrets
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
26
26
|
import {
|
|
27
27
|
formatHitlSummary,
|
|
28
28
|
hitlExitCode
|
|
@@ -42,9 +42,30 @@ var INTERACTIVE_ALLOW_RULES = [
|
|
|
42
42
|
"Bash(glab mr merge)",
|
|
43
43
|
"Bash(glab mr merge *)"
|
|
44
44
|
];
|
|
45
|
+
var MERGE_ALLOW_CONTROL = {
|
|
46
|
+
guardRule: "pr-merge-protected-base",
|
|
47
|
+
summary: "the PreToolUse(Bash) hook `agent-kit guard shell` denies a merge into main/master/prod or into a base it cannot resolve"
|
|
48
|
+
};
|
|
49
|
+
var INTERACTIVE_ALLOW_CONTROLS = {
|
|
50
|
+
"Bash(gh pr merge)": MERGE_ALLOW_CONTROL,
|
|
51
|
+
"Bash(gh pr merge *)": MERGE_ALLOW_CONTROL,
|
|
52
|
+
"Bash(glab mr merge)": MERGE_ALLOW_CONTROL,
|
|
53
|
+
"Bash(glab mr merge *)": MERGE_ALLOW_CONTROL
|
|
54
|
+
};
|
|
55
|
+
function isMergeAllowRow(row) {
|
|
56
|
+
return /^Bash\(\s*(?:gh\s+pr|glab\s+mr)\s+merge\b/.test(row);
|
|
57
|
+
}
|
|
58
|
+
function permissionRowControl(kind, row) {
|
|
59
|
+
if (kind === "deny") return "narrows permissions (native deny backstop)";
|
|
60
|
+
const control = INTERACTIVE_ALLOW_CONTROLS[row] ?? (isMergeAllowRow(row) ? MERGE_ALLOW_CONTROL : void 0);
|
|
61
|
+
if (!control) return "no kit control (not a kit row)";
|
|
62
|
+
return `compensating control: guard rule \`${control.guardRule}\` (${control.summary})`;
|
|
63
|
+
}
|
|
45
64
|
|
|
46
65
|
export {
|
|
47
66
|
HEADLESS_DENY_RULES,
|
|
48
67
|
INTERACTIVE_DENY_RULES,
|
|
49
|
-
INTERACTIVE_ALLOW_RULES
|
|
68
|
+
INTERACTIVE_ALLOW_RULES,
|
|
69
|
+
isMergeAllowRow,
|
|
70
|
+
permissionRowControl
|
|
50
71
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatStaleCliRefusal,
|
|
7
7
|
installL0,
|
|
8
8
|
syncFromManifest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WJRNI5FJ.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-4KV3TXKC.js";
|
|
19
19
|
import {
|
|
20
20
|
assessClaudeCommandAdapters,
|
|
21
21
|
executeSafeReadinessFixes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UEW42NIF.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-XHANIDPK.js";
|
|
29
29
|
import {
|
|
30
30
|
CLAUDE_HITL_FALLBACK,
|
|
31
31
|
generateClaudeCommandAdapters
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2CBKKCVU.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-BDIWC3WB.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-42AA2VFW.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-VRSBZKTA.js";
|
|
83
83
|
import {
|
|
84
84
|
KIT_VERSION,
|
|
85
85
|
pinnedCliSpec
|
|
@@ -2,12 +2,13 @@ import {
|
|
|
2
2
|
CLAUDE_SETTINGS_REL,
|
|
3
3
|
GUARD_SHELL_HOOK_MARKER,
|
|
4
4
|
RESOLVE_AGENT_KIT_REL,
|
|
5
|
-
SESSION_START_HOOK_MARKER
|
|
6
|
-
|
|
5
|
+
SESSION_START_HOOK_MARKER,
|
|
6
|
+
mergeAllowRowsWithoutGuard
|
|
7
|
+
} from "./chunk-XHANIDPK.js";
|
|
7
8
|
import {
|
|
8
9
|
CLAUDE_COMMANDS_DIR_REL,
|
|
9
10
|
discoverInstalledCommands
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2CBKKCVU.js";
|
|
11
12
|
import {
|
|
12
13
|
findOnPath
|
|
13
14
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -37,6 +38,7 @@ import { execFile } from "child_process";
|
|
|
37
38
|
import { access, constants, readdir, readFile, stat } from "fs/promises";
|
|
38
39
|
import path from "path";
|
|
39
40
|
import { promisify } from "util";
|
|
41
|
+
var CLAUDE_SETTINGS_LOCAL_REL = ".claude/settings.local.json";
|
|
40
42
|
var execFileAsync = promisify(execFile);
|
|
41
43
|
var GIT_HOOK_CANONICAL_NAMES = ["pre-commit", "pre-push", "prepare-commit-msg"];
|
|
42
44
|
var EXPECTED_EVENTS = [
|
|
@@ -168,6 +170,22 @@ async function assessClaudeCommandAdapters(rootDir) {
|
|
|
168
170
|
`Claude Code command adapters missing: ${missing.length} of ${sources.length} installed kit commands have no \`.claude/commands/<name>.md\` (${shown.join(", ")}${more}), so they are not recognized as slash commands. Run \`agent-kit update --claude\` to generate them (writes only \`.claude/commands/*\`).`
|
|
169
171
|
];
|
|
170
172
|
}
|
|
173
|
+
async function assessClaudeMergeAllowGuard(rootDir) {
|
|
174
|
+
const root = path.resolve(rootDir);
|
|
175
|
+
const files = [CLAUDE_SETTINGS_REL, CLAUDE_SETTINGS_LOCAL_REL];
|
|
176
|
+
const parsed = [];
|
|
177
|
+
for (const rel of files) {
|
|
178
|
+
try {
|
|
179
|
+
parsed.push(JSON.parse(await readFile(path.join(root, rel), "utf8")));
|
|
180
|
+
} catch {
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const rows = mergeAllowRowsWithoutGuard(...parsed);
|
|
184
|
+
if (rows.length === 0) return [];
|
|
185
|
+
return [
|
|
186
|
+
`Claude merge allow rows without the guard hook: ${rows.map((r) => `\`${r}\``).join(", ")} in ${files.map((f) => `\`${f}\``).join(" / ")} skip the merge prompt, but no PreToolUse(Bash) \`agent-kit guard shell\` hook is wired, so nothing denies a merge into main/master/prod (the rows rely on guard rule \`pr-merge-protected-base\`). Run \`agent-kit install --claude\` (or add the hook back by hand if you removed it) or remove the rows.`
|
|
187
|
+
];
|
|
188
|
+
}
|
|
171
189
|
async function resolveGuardProbeArgv(root) {
|
|
172
190
|
const hookBin = process.env.AGENT_KIT_HOOK_BIN;
|
|
173
191
|
if (hookBin && await isExecutable(hookBin)) return [hookBin];
|
|
@@ -227,6 +245,7 @@ async function assessHooksHealth(rootDir) {
|
|
|
227
245
|
const reasons = [];
|
|
228
246
|
const wiredEvents = [];
|
|
229
247
|
const advisories = [
|
|
248
|
+
...await assessClaudeMergeAllowGuard(root),
|
|
230
249
|
...await assessGitHooksInstallDrift(root),
|
|
231
250
|
...await assessSignatureGateHook(root),
|
|
232
251
|
...await assessClaudeGuardProbe(root),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
managedPairs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YP5OCR4I.js";
|
|
4
4
|
import {
|
|
5
5
|
isProtectedPath,
|
|
6
6
|
resolveProtectedGlobs
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VRSBZKTA.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveContained
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B4MUKUVS.js";
|
|
11
11
|
|
|
12
12
|
// src/lifecycle/diff.ts
|
|
13
13
|
import { readFile } from "fs/promises";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
compareSemver,
|
|
3
3
|
normalizeSemver,
|
|
4
4
|
readLocalKitVersion
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-42AA2VFW.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-
|
|
18
|
+
} from "./chunk-VRSBZKTA.js";
|
|
19
19
|
import {
|
|
20
20
|
loadManagedHashLedger,
|
|
21
21
|
saveManagedHashLedger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B4MUKUVS.js";
|
|
23
23
|
import {
|
|
24
24
|
KIT_PACKAGE_SPEC,
|
|
25
25
|
KIT_VERSION
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
INTERACTIVE_ALLOW_RULES,
|
|
3
|
-
INTERACTIVE_DENY_RULES
|
|
4
|
-
|
|
3
|
+
INTERACTIVE_DENY_RULES,
|
|
4
|
+
isMergeAllowRow,
|
|
5
|
+
permissionRowControl
|
|
6
|
+
} from "./chunk-Q35TWISF.js";
|
|
5
7
|
import {
|
|
6
8
|
assertRealContained,
|
|
7
9
|
assertRealParentContained,
|
|
8
10
|
isRealWriteTargetContained,
|
|
9
11
|
resolveContained
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B4MUKUVS.js";
|
|
11
13
|
import {
|
|
12
14
|
ensureDir
|
|
13
15
|
} from "./chunk-5B4DVO6C.js";
|
|
@@ -297,6 +299,63 @@ function instructionsBlock(entry) {
|
|
|
297
299
|
JSON.stringify(buildGuardShellHookEntry(), null, 2)
|
|
298
300
|
].join("\n");
|
|
299
301
|
}
|
|
302
|
+
function permissionRowsOf(root, kind) {
|
|
303
|
+
if (!isPlainObject(root) || !isPlainObject(root.permissions)) return [];
|
|
304
|
+
const list = root.permissions[kind];
|
|
305
|
+
return Array.isArray(list) ? list.filter((x) => typeof x === "string") : [];
|
|
306
|
+
}
|
|
307
|
+
function parseSettingsObject(raw) {
|
|
308
|
+
if (raw === null || raw.trim() === "") return {};
|
|
309
|
+
try {
|
|
310
|
+
const parsed = JSON.parse(raw);
|
|
311
|
+
return isPlainObject(parsed) ? parsed : {};
|
|
312
|
+
} catch {
|
|
313
|
+
return {};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function diffPermissionRows(beforeRaw, afterRaw) {
|
|
317
|
+
const before = parseSettingsObject(beforeRaw);
|
|
318
|
+
const after = parseSettingsObject(afterRaw);
|
|
319
|
+
const changes = [];
|
|
320
|
+
for (const kind of ["allow", "deny"]) {
|
|
321
|
+
const had = permissionRowsOf(before, kind);
|
|
322
|
+
const has = permissionRowsOf(after, kind);
|
|
323
|
+
for (const row of has) if (!had.includes(row)) changes.push({ change: "added", kind, row });
|
|
324
|
+
for (const row of had) if (!has.includes(row)) changes.push({ change: "removed", kind, row });
|
|
325
|
+
}
|
|
326
|
+
return changes;
|
|
327
|
+
}
|
|
328
|
+
function settingsHaveGuardHook(root) {
|
|
329
|
+
if (!isPlainObject(root) || !isPlainObject(root.hooks)) return false;
|
|
330
|
+
const groups = root.hooks.PreToolUse;
|
|
331
|
+
if (!Array.isArray(groups)) return false;
|
|
332
|
+
return groups.some((g) => {
|
|
333
|
+
if (!isPlainObject(g)) return false;
|
|
334
|
+
const matcher = g.matcher;
|
|
335
|
+
const coversBash = matcher === void 0 || matcher === "" || matcher === "*" || typeof matcher === "string" && /\bBash\b/.test(matcher);
|
|
336
|
+
return coversBash && groupHasMarker(g, GUARD_SHELL_HOOK_MARKER);
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
function mergeAllowRowsWithoutGuard(...roots) {
|
|
340
|
+
if (roots.some(settingsHaveGuardHook)) return [];
|
|
341
|
+
return roots.flatMap((r) => permissionRowsOf(r, "allow")).filter(isMergeAllowRow);
|
|
342
|
+
}
|
|
343
|
+
function formatPermissionsChanged(changes, opts) {
|
|
344
|
+
if (changes.length === 0) return [];
|
|
345
|
+
const unguarded = new Set(opts.mergeAllowWithoutGuard);
|
|
346
|
+
const lines = [`Permissions changed in ${CLAUDE_SETTINGS_REL}:`];
|
|
347
|
+
for (const c of changes) {
|
|
348
|
+
const sign = c.change === "added" ? "+" : "-";
|
|
349
|
+
const note = c.change === "removed" ? "removed" : unguarded.has(c.row) ? "no guard hook in this file: nothing denies a merge into main" : permissionRowControl(c.kind, c.row);
|
|
350
|
+
lines.push(` ${sign} ${c.kind} ${c.row} -- ${note}`);
|
|
351
|
+
}
|
|
352
|
+
if (unguarded.size > 0) {
|
|
353
|
+
lines.push(
|
|
354
|
+
` WARNING: merge allow rows without the PreToolUse(Bash) \`agent-kit guard shell\` hook (guard rule \`pr-merge-protected-base\`): a merge into main/master/prod runs without a prompt. Add the guard hook back to ${CLAUDE_SETTINGS_REL} by hand or remove these rows.`
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
return lines;
|
|
358
|
+
}
|
|
300
359
|
async function writeClaudeSessionStartHook(rootDir, opts = {}) {
|
|
301
360
|
const authorized = opts.authorized ?? true;
|
|
302
361
|
const abs = resolveContained(rootDir, CLAUDE_SETTINGS_REL);
|
|
@@ -330,9 +389,12 @@ async function writeClaudeSessionStartHook(rootDir, opts = {}) {
|
|
|
330
389
|
await ensureDir(path2.dirname(abs));
|
|
331
390
|
await writeFile2(abs, merged.content, "utf8");
|
|
332
391
|
}
|
|
392
|
+
const written = parseSettingsObject(merged.content);
|
|
333
393
|
const result = {
|
|
334
394
|
relativePath: CLAUDE_SETTINGS_REL,
|
|
335
|
-
status: merged.status
|
|
395
|
+
status: merged.status,
|
|
396
|
+
permissionChanges: diffPermissionRows(existing, merged.content),
|
|
397
|
+
mergeAllowWithoutGuard: mergeAllowRowsWithoutGuard(written)
|
|
336
398
|
};
|
|
337
399
|
if (merged.pending && (merged.pending.denyRows.length || merged.pending.allowRows.length || merged.pending.hookEntries.length)) {
|
|
338
400
|
result.pending = merged.pending;
|
|
@@ -421,6 +483,9 @@ function formatClaudeSettingsDrift(report, opts) {
|
|
|
421
483
|
const allowRows = [...report.allowRows, ...report.ambiguousAllowRows];
|
|
422
484
|
if (allowRows.length > 0) {
|
|
423
485
|
lines.push("Add to permissions.allow:", JSON.stringify(allowRows, null, 2));
|
|
486
|
+
for (const note of new Set(allowRows.map((row) => permissionRowControl("allow", row)))) {
|
|
487
|
+
lines.push(`(allow rows: ${note})`);
|
|
488
|
+
}
|
|
424
489
|
if (report.ambiguousAllowRows.length > 0) {
|
|
425
490
|
lines.push(
|
|
426
491
|
`(${report.ambiguousAllowRows.length} row(s) ambiguous: no ${CLAUDE_SETTINGS_LEDGER_REL} ledger, so a deliberate deletion cannot be told apart.)`
|
|
@@ -440,6 +505,8 @@ export {
|
|
|
440
505
|
RESOLVE_AGENT_KIT_REL,
|
|
441
506
|
SESSION_START_HOOK_MARKER,
|
|
442
507
|
GUARD_SHELL_HOOK_MARKER,
|
|
508
|
+
mergeAllowRowsWithoutGuard,
|
|
509
|
+
formatPermissionsChanged,
|
|
443
510
|
writeClaudeSessionStartHook,
|
|
444
511
|
planClaudeSettingsDrift,
|
|
445
512
|
formatClaudeSettingsDrift
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RUN_CATALOG
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MOJRD6HF.js";
|
|
4
|
+
import "./chunk-Y7BH6KIE.js";
|
|
5
5
|
import "./chunk-WRCXRV2U.js";
|
|
6
6
|
import {
|
|
7
7
|
discoverInstalledCommands
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2CBKKCVU.js";
|
|
9
9
|
import "./chunk-WGLPZXNU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-Q35TWISF.js";
|
|
11
11
|
import "./chunk-QTON2GQX.js";
|
|
12
12
|
import {
|
|
13
13
|
L0_ARTIFACTS
|
|
14
14
|
} from "./chunk-WS6OX2IG.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-B4MUKUVS.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_VERSION
|
|
18
18
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REVIEW_PACK_DEFAULT_MAX_BYTES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CTVVGKYB.js";
|
|
4
4
|
import {
|
|
5
5
|
detectAgentBackend
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-44SDKJYY.js";
|
|
7
|
+
import "./chunk-H5D3HF2N.js";
|
|
8
8
|
import {
|
|
9
9
|
defaultExec,
|
|
10
10
|
gateExitRedactions,
|
|
11
11
|
isOutside
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L7BL4246.js";
|
|
13
13
|
import "./chunk-MUTTNRX4.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureDispatchLogPath,
|
|
16
16
|
readCommandFile,
|
|
17
17
|
runHeadlessDispatch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MOJRD6HF.js";
|
|
19
19
|
import {
|
|
20
20
|
createStreamRenderer,
|
|
21
21
|
redactSecrets
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
23
23
|
import "./chunk-WRCXRV2U.js";
|
|
24
24
|
import "./chunk-WGLPZXNU.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-Q35TWISF.js";
|
|
26
26
|
import "./chunk-QTON2GQX.js";
|
|
27
27
|
import {
|
|
28
28
|
logger
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KV3TXKC.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-YP5OCR4I.js";
|
|
11
11
|
import "./chunk-WS6OX2IG.js";
|
|
12
12
|
import {
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
normalizeRelPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VRSBZKTA.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContained
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B4MUKUVS.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-CTVVGKYB.js";
|
|
8
8
|
import {
|
|
9
9
|
detectAgentBackend,
|
|
10
10
|
listDetectBackendIds
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-44SDKJYY.js";
|
|
12
|
+
import "./chunk-H5D3HF2N.js";
|
|
13
13
|
import {
|
|
14
14
|
GATE_EXIT_MARKER_RELPATH,
|
|
15
15
|
defaultExec,
|
|
@@ -20,25 +20,25 @@ import {
|
|
|
20
20
|
readGateExitMarker,
|
|
21
21
|
resolveGateExitRefs,
|
|
22
22
|
writeGateExitMarker
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-L7BL4246.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-MOJRD6HF.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-Y7BH6KIE.js";
|
|
37
37
|
import {
|
|
38
38
|
HITL_UNANSWERED_EXIT_CODE
|
|
39
39
|
} from "./chunk-WRCXRV2U.js";
|
|
40
40
|
import "./chunk-WGLPZXNU.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-Q35TWISF.js";
|
|
42
42
|
import "./chunk-QTON2GQX.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4KV3TXKC.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-VY7AFID2.js";
|
|
12
|
+
import "./chunk-YP5OCR4I.js";
|
|
13
13
|
import "./chunk-WS6OX2IG.js";
|
|
14
14
|
import {
|
|
15
15
|
loadAgentKitManifest
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-VRSBZKTA.js";
|
|
17
|
+
import "./chunk-B4MUKUVS.js";
|
|
18
18
|
import "./chunk-C4Q77GGJ.js";
|
|
19
19
|
import "./chunk-5B4DVO6C.js";
|
|
20
20
|
|
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
assessHooksHealth,
|
|
3
3
|
executeSafeReadinessFixes,
|
|
4
4
|
refreshRepositoryProfile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UEW42NIF.js";
|
|
6
6
|
import {
|
|
7
7
|
writeReadinessSnapshot
|
|
8
8
|
} from "./chunk-HAFRAXGV.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XHANIDPK.js";
|
|
10
|
+
import "./chunk-2CBKKCVU.js";
|
|
11
11
|
import "./chunk-WGLPZXNU.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-Q35TWISF.js";
|
|
13
13
|
import {
|
|
14
14
|
withCliProgress
|
|
15
15
|
} from "./chunk-QTON2GQX.js";
|
|
16
16
|
import {
|
|
17
17
|
detectWorkspaceParent,
|
|
18
18
|
workspaceParentAdvisoryLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKIFM3IH.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-42AA2VFW.js";
|
|
37
37
|
import "./chunk-PFEUZXVT.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-VY7AFID2.js";
|
|
39
|
+
import "./chunk-YP5OCR4I.js";
|
|
40
40
|
import "./chunk-WS6OX2IG.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-VRSBZKTA.js";
|
|
42
|
+
import "./chunk-B4MUKUVS.js";
|
|
43
43
|
import {
|
|
44
44
|
KIT_VERSION
|
|
45
45
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blobId,
|
|
3
3
|
isTicketMerged
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H5D3HF2N.js";
|
|
5
5
|
import {
|
|
6
6
|
GATE_EXIT_BRANCH_PREFIX,
|
|
7
7
|
GATE_EXIT_MARKER_RELPATH,
|
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
readGateExitMarker,
|
|
17
17
|
resolveGateExitRefs,
|
|
18
18
|
writeGateExitMarker
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L7BL4246.js";
|
|
20
20
|
import "./chunk-MUTTNRX4.js";
|
|
21
21
|
import {
|
|
22
22
|
redactSecrets
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
24
24
|
import "./chunk-WRCXRV2U.js";
|
|
25
25
|
import {
|
|
26
26
|
findOnPath
|
|
27
27
|
} from "./chunk-WGLPZXNU.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-Q35TWISF.js";
|
|
29
29
|
import "./chunk-QTON2GQX.js";
|
|
30
30
|
import {
|
|
31
31
|
logger
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
} from "./chunk-HAFRAXGV.js";
|
|
24
24
|
import {
|
|
25
25
|
stampLastCheckedAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-42AA2VFW.js";
|
|
27
27
|
import {
|
|
28
28
|
loadContextConfig
|
|
29
29
|
} from "./chunk-PFEUZXVT.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VY7AFID2.js";
|
|
31
|
+
import "./chunk-YP5OCR4I.js";
|
|
32
32
|
import "./chunk-WS6OX2IG.js";
|
|
33
33
|
import {
|
|
34
34
|
MANIFEST_RELATIVE_PATH
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-VRSBZKTA.js";
|
|
36
|
+
import "./chunk-B4MUKUVS.js";
|
|
37
37
|
import "./chunk-7HDQEK6T.js";
|
|
38
38
|
import {
|
|
39
39
|
HANDOFF_REL
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
rewriteRootArgvToRun
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-MOJRD6HF.js";
|
|
5
|
+
import "./chunk-Y7BH6KIE.js";
|
|
6
6
|
import "./chunk-WRCXRV2U.js";
|
|
7
7
|
import "./chunk-WGLPZXNU.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Q35TWISF.js";
|
|
9
9
|
import {
|
|
10
10
|
HELMET_OUTLINE,
|
|
11
11
|
SPACE_MARKS,
|
|
@@ -234,41 +234,41 @@ var main = defineCommand({
|
|
|
234
234
|
version: KIT_VERSION
|
|
235
235
|
},
|
|
236
236
|
subCommands: {
|
|
237
|
-
init: () => import("./init-
|
|
238
|
-
install: () => import("./install-
|
|
237
|
+
init: () => import("./init-WW5DR3DX.js").then((m) => m.initCommand),
|
|
238
|
+
install: () => import("./install-RN2DRLK6.js").then((m) => m.installCommand),
|
|
239
239
|
scan: () => import("./scan-BWA64R7I.js").then((m) => m.scanCommand),
|
|
240
|
-
add: () => import("./add-
|
|
241
|
-
doctor: () => import("./doctor-
|
|
242
|
-
"setup-global": () => import("./setup-global-
|
|
243
|
-
status: () => import("./status-
|
|
244
|
-
update: () => import("./update-
|
|
240
|
+
add: () => import("./add-JZKFUH2O.js").then((m) => m.addCommand),
|
|
241
|
+
doctor: () => import("./doctor-GOMPRU6F.js").then((m) => m.doctorCommand),
|
|
242
|
+
"setup-global": () => import("./setup-global-DJWURJS3.js").then((m) => m.setupGlobalCommand),
|
|
243
|
+
status: () => import("./status-2WYPLWTN.js").then((m) => m.statusCommand),
|
|
244
|
+
update: () => import("./update-5VFQNBY5.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-
|
|
250
|
-
contribute: () => import("./contribute-
|
|
249
|
+
diff: () => import("./diff-EYAGGEU4.js").then((m) => m.diffCommand),
|
|
250
|
+
contribute: () => import("./contribute-GAHG3J4Q.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-
|
|
254
|
-
"run-plan": () => import("./run-plan-
|
|
255
|
-
"run-plan-all": () => import("./run-
|
|
256
|
-
queue: () => import("./queue-
|
|
253
|
+
run: () => import("./run-GOMAHNV2.js").then((m) => m.runCommand),
|
|
254
|
+
"run-plan": () => import("./run-plan-EUQ5WWF6.js").then((m) => m.runPlanCommand),
|
|
255
|
+
"run-plan-all": () => import("./run-GOMAHNV2.js").then((m) => m.runPlanAllCommand),
|
|
256
|
+
queue: () => import("./queue-7EBQGPPW.js").then((m) => m.queueCommand),
|
|
257
257
|
promote: () => import("./promote-H5MIMVEB.js").then((m) => m.promoteCommand),
|
|
258
|
-
countdown: () => import("./countdown-
|
|
259
|
-
"ground-control": () => import("./ground-control-
|
|
260
|
-
conflicts: () => import("./conflicts-
|
|
258
|
+
countdown: () => import("./countdown-C6NY2TSG.js").then((m) => m.countdownCommand),
|
|
259
|
+
"ground-control": () => import("./ground-control-MJGF5QRE.js").then((m) => m.groundControlCommand),
|
|
260
|
+
conflicts: () => import("./conflicts-A4B422EL.js").then((m) => m.conflictsCommand),
|
|
261
261
|
dashboard: () => import("./dashboard-YNCFISNO.js").then((m) => m.dashboardCommand),
|
|
262
262
|
"dashboard-broadcast": () => import("./dashboard-broadcast-NK7PU72L.js").then((m) => m.dashboardBroadcastCommand),
|
|
263
263
|
"mission-control": () => import("./mission-control-JIF6GFSV.js").then((m) => m.missionControlCommand),
|
|
264
|
-
hook: () => import("./hook-
|
|
264
|
+
hook: () => import("./hook-AZ5LSJBJ.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
267
|
sessions: () => import("./sessions-O7MYEMCT.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-R6GXZ2VO.js").then((m) => m.engineInfoCommand),
|
|
271
|
-
commands: () => import("./commands-
|
|
271
|
+
commands: () => import("./commands-5P2E5LL4.js").then((m) => m.commandsCommand)
|
|
272
272
|
},
|
|
273
273
|
async run({ rawArgs }) {
|
|
274
274
|
if (hasCliSubcommand(rawArgs)) return;
|
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
nextStepAfterInstall,
|
|
3
3
|
performInstall,
|
|
4
4
|
printInstallEpilogue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R4VLVX7B.js";
|
|
6
6
|
import {
|
|
7
7
|
NON_INTERACTIVE_ROOT_ARGS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WJRNI5FJ.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-4KV3TXKC.js";
|
|
14
|
+
import "./chunk-UEW42NIF.js";
|
|
15
15
|
import "./chunk-HAFRAXGV.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XHANIDPK.js";
|
|
17
|
+
import "./chunk-2CBKKCVU.js";
|
|
18
18
|
import "./chunk-WGLPZXNU.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-Q35TWISF.js";
|
|
20
20
|
import {
|
|
21
21
|
withCliProgress
|
|
22
22
|
} from "./chunk-QTON2GQX.js";
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
confirmProjectRoot,
|
|
33
33
|
isNonInteractive,
|
|
34
34
|
syncPathCliToRuntime
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BDIWC3WB.js";
|
|
36
36
|
import {
|
|
37
37
|
assessEnvironment
|
|
38
38
|
} from "./chunk-B3VR5YBQ.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-42AA2VFW.js";
|
|
40
40
|
import "./chunk-PFEUZXVT.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-VY7AFID2.js";
|
|
42
|
+
import "./chunk-YP5OCR4I.js";
|
|
43
43
|
import "./chunk-WS6OX2IG.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-VRSBZKTA.js";
|
|
45
|
+
import "./chunk-B4MUKUVS.js";
|
|
46
46
|
import {
|
|
47
47
|
KIT_VERSION
|
|
48
48
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -3,30 +3,30 @@ import {
|
|
|
3
3
|
nextStepAfterInstall,
|
|
4
4
|
performInstall,
|
|
5
5
|
printInstallEpilogue
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-R4VLVX7B.js";
|
|
7
|
+
import "./chunk-WJRNI5FJ.js";
|
|
8
8
|
import "./chunk-HS7LVVLO.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-4KV3TXKC.js";
|
|
10
|
+
import "./chunk-UEW42NIF.js";
|
|
11
11
|
import "./chunk-HAFRAXGV.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XHANIDPK.js";
|
|
13
|
+
import "./chunk-2CBKKCVU.js";
|
|
14
14
|
import "./chunk-WGLPZXNU.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-Q35TWISF.js";
|
|
16
16
|
import "./chunk-QTON2GQX.js";
|
|
17
17
|
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-BDIWC3WB.js";
|
|
22
22
|
import "./chunk-B3VR5YBQ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-42AA2VFW.js";
|
|
24
24
|
import "./chunk-PFEUZXVT.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-VY7AFID2.js";
|
|
26
|
+
import "./chunk-YP5OCR4I.js";
|
|
27
27
|
import "./chunk-WS6OX2IG.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-VRSBZKTA.js";
|
|
29
|
+
import "./chunk-B4MUKUVS.js";
|
|
30
30
|
import "./chunk-7HDQEK6T.js";
|
|
31
31
|
import "./chunk-C4Q77GGJ.js";
|
|
32
32
|
import "./chunk-5B4DVO6C.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readHandoffText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-357Y422W.js";
|
|
4
4
|
import "./chunk-7ABY6DYH.js";
|
|
5
5
|
import "./chunk-SKC6QZW4.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-44SDKJYY.js";
|
|
7
|
+
import "./chunk-L7BL4246.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-
|
|
12
|
+
import "./chunk-MOJRD6HF.js";
|
|
13
|
+
import "./chunk-Y7BH6KIE.js";
|
|
14
14
|
import "./chunk-WRCXRV2U.js";
|
|
15
15
|
import "./chunk-WGLPZXNU.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-Q35TWISF.js";
|
|
17
17
|
import "./chunk-QTON2GQX.js";
|
|
18
18
|
import "./chunk-C4Q77GGJ.js";
|
|
19
19
|
import "./chunk-5B4DVO6C.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
runPlanLoop,
|
|
3
3
|
shouldUseLiveTui,
|
|
4
4
|
withLiveTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CRH2Q6KY.js";
|
|
6
6
|
import "./chunk-ZFJIJUZ4.js";
|
|
7
7
|
import {
|
|
8
8
|
negatedFlag
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
landDispatchOutcome,
|
|
12
12
|
runDispatchDriver
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-357Y422W.js";
|
|
14
14
|
import "./chunk-7ABY6DYH.js";
|
|
15
15
|
import {
|
|
16
16
|
DRIVER_EVENTS_FORMATS
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
REVIEW_PACK_SLASH,
|
|
20
20
|
runReviewJob
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CTVVGKYB.js";
|
|
22
22
|
import {
|
|
23
23
|
detectAgentBackend,
|
|
24
24
|
listDetectBackendIds
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-44SDKJYY.js";
|
|
26
|
+
import "./chunk-H5D3HF2N.js";
|
|
27
27
|
import {
|
|
28
28
|
LAND_ON_GATE_DESCRIPTION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-L7BL4246.js";
|
|
30
30
|
import "./chunk-L5V3W3DY.js";
|
|
31
31
|
import "./chunk-MUTTNRX4.js";
|
|
32
32
|
import {
|
|
@@ -39,17 +39,17 @@ import {
|
|
|
39
39
|
resolveOperatorNote,
|
|
40
40
|
runHeadlessDispatch,
|
|
41
41
|
unknownSlashMessage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MOJRD6HF.js";
|
|
43
43
|
import {
|
|
44
44
|
getBackend
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
46
46
|
import {
|
|
47
47
|
HITL_UNANSWERED_EXIT_CODE,
|
|
48
48
|
formatHitlSummary,
|
|
49
49
|
hitlExitCode
|
|
50
50
|
} from "./chunk-WRCXRV2U.js";
|
|
51
51
|
import "./chunk-WGLPZXNU.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-Q35TWISF.js";
|
|
53
53
|
import "./chunk-QTON2GQX.js";
|
|
54
54
|
import {
|
|
55
55
|
logger
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPlanLoop
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CRH2Q6KY.js";
|
|
4
4
|
import "./chunk-ZFJIJUZ4.js";
|
|
5
5
|
import {
|
|
6
6
|
negatedFlag
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
detectAgentBackend,
|
|
14
14
|
listDetectBackendIds
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-44SDKJYY.js";
|
|
16
16
|
import {
|
|
17
17
|
LAND_ON_GATE_DESCRIPTION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L7BL4246.js";
|
|
19
19
|
import "./chunk-L5V3W3DY.js";
|
|
20
20
|
import "./chunk-MUTTNRX4.js";
|
|
21
21
|
import {
|
|
22
22
|
getBackend
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y7BH6KIE.js";
|
|
24
24
|
import {
|
|
25
25
|
HITL_UNANSWERED_EXIT_CODE
|
|
26
26
|
} from "./chunk-WRCXRV2U.js";
|
|
27
27
|
import "./chunk-WGLPZXNU.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-Q35TWISF.js";
|
|
29
29
|
import "./chunk-QTON2GQX.js";
|
|
30
30
|
import {
|
|
31
31
|
logger
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
classifyInstallError,
|
|
3
3
|
isNonInteractive,
|
|
4
4
|
pathCliStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BDIWC3WB.js";
|
|
6
6
|
import {
|
|
7
7
|
assessEnvironment
|
|
8
8
|
} from "./chunk-B3VR5YBQ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-42AA2VFW.js";
|
|
10
10
|
import "./chunk-PFEUZXVT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-VY7AFID2.js";
|
|
12
|
+
import "./chunk-YP5OCR4I.js";
|
|
13
13
|
import "./chunk-WS6OX2IG.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-VRSBZKTA.js";
|
|
15
|
+
import "./chunk-B4MUKUVS.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-OKIFM3IH.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-BDIWC3WB.js";
|
|
19
19
|
import {
|
|
20
20
|
assessEnvironment
|
|
21
21
|
} from "./chunk-B3VR5YBQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-42AA2VFW.js";
|
|
23
23
|
import "./chunk-PFEUZXVT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VY7AFID2.js";
|
|
25
|
+
import "./chunk-YP5OCR4I.js";
|
|
26
26
|
import "./chunk-WS6OX2IG.js";
|
|
27
27
|
import {
|
|
28
28
|
MANIFEST_RELATIVE_PATH,
|
|
29
29
|
loadAgentKitManifest,
|
|
30
30
|
resolveProtectedGlobs
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-VRSBZKTA.js";
|
|
32
|
+
import "./chunk-B4MUKUVS.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-WJRNI5FJ.js";
|
|
8
8
|
import {
|
|
9
9
|
formatSkippedSymlinks,
|
|
10
10
|
logApplyStats
|
|
@@ -12,17 +12,18 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
REGISTRY_CLI_ARGS,
|
|
14
14
|
resolveRegistryFromCli
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4KV3TXKC.js";
|
|
16
16
|
import {
|
|
17
17
|
CLAUDE_SETTINGS_REL,
|
|
18
18
|
formatClaudeSettingsDrift,
|
|
19
|
+
formatPermissionsChanged,
|
|
19
20
|
planClaudeSettingsDrift,
|
|
20
21
|
writeClaudeSessionStartHook
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XHANIDPK.js";
|
|
22
23
|
import {
|
|
23
24
|
generateClaudeCommandAdapters
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2CBKKCVU.js";
|
|
26
|
+
import "./chunk-Q35TWISF.js";
|
|
26
27
|
import {
|
|
27
28
|
withCliProgress
|
|
28
29
|
} from "./chunk-QTON2GQX.js";
|
|
@@ -34,14 +35,14 @@ import {
|
|
|
34
35
|
confirmProjectRoot,
|
|
35
36
|
isNonInteractive,
|
|
36
37
|
syncPathCliToRuntime
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BDIWC3WB.js";
|
|
38
39
|
import "./chunk-B3VR5YBQ.js";
|
|
39
40
|
import {
|
|
40
41
|
checkForUpdates
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-42AA2VFW.js";
|
|
42
43
|
import "./chunk-PFEUZXVT.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-VY7AFID2.js";
|
|
45
|
+
import "./chunk-YP5OCR4I.js";
|
|
45
46
|
import "./chunk-WS6OX2IG.js";
|
|
46
47
|
import {
|
|
47
48
|
buildManifest,
|
|
@@ -49,10 +50,10 @@ import {
|
|
|
49
50
|
loadAgentKitManifest,
|
|
50
51
|
resolveProtectedGlobs,
|
|
51
52
|
saveManifest
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-VRSBZKTA.js";
|
|
53
54
|
import {
|
|
54
55
|
seedManagedHashLedger
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-B4MUKUVS.js";
|
|
56
57
|
import {
|
|
57
58
|
KIT_VERSION
|
|
58
59
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -232,6 +233,10 @@ ${err.recovery}
|
|
|
232
233
|
logger.warn(claude.instructions ?? `${CLAUDE_SETTINGS_REL} could not be merged.`);
|
|
233
234
|
} else {
|
|
234
235
|
console.log(`Claude settings ${claude.status}: ${claude.relativePath}`);
|
|
236
|
+
const changed = formatPermissionsChanged(claude.permissionChanges ?? [], {
|
|
237
|
+
mergeAllowWithoutGuard: claude.mergeAllowWithoutGuard ?? []
|
|
238
|
+
});
|
|
239
|
+
for (const line of changed) console.log(line);
|
|
235
240
|
}
|
|
236
241
|
const adapters = await generateClaudeCommandAdapters(projectRoot);
|
|
237
242
|
const skipped = adapters.filter((a) => a.status === "skipped-symlink");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dadado/agent-kit-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.18.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/",
|