@dadado/agent-kit-cli 6.1.1 → 6.2.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/dashboard/README.md +3 -1
- package/dashboard/dashboard-data.mjs +13 -2
- package/dashboard/dashboard.html +95 -2
- package/dashboard/lib/gate-exit-tickets.d.mts +45 -0
- package/dashboard/lib/gate-exit-tickets.mjs +233 -0
- package/dashboard/lib/semantic-model.d.mts +21 -0
- package/dashboard/lib/semantic-model.mjs +47 -0
- package/dist/{add-YTCDLPUS.js → add-Y2426TGU.js} +3 -3
- package/dist/{chunk-YP4OOK4T.js → chunk-BEKQ6PVD.js} +2 -2
- package/dist/{chunk-3DGTPONS.js → chunk-C2SJDYAM.js} +1 -1
- package/dist/{chunk-C26I6HTO.js → chunk-C4Q77GGJ.js} +0 -1
- package/dist/{chunk-DRND2KYV.js → chunk-CER2APV2.js} +1 -1
- package/dist/{chunk-BBVBYQJO.js → chunk-CWDXNBEU.js} +2 -2
- package/dist/{chunk-U5F6RJN4.js → chunk-GO3K752H.js} +4 -1
- package/dist/chunk-GUQYNUV4.js +61 -0
- package/dist/{chunk-TMFOLRU2.js → chunk-IR7FFPUU.js} +8 -8
- package/dist/{chunk-ESNAFDYT.js → chunk-JEI6HACW.js} +44 -1
- package/dist/chunk-KVY425NM.js +519 -0
- package/dist/{chunk-WUWRGOUV.js → chunk-L5V3W3DY.js} +13 -1
- package/dist/chunk-MO63KZBP.js +516 -0
- package/dist/chunk-MUTTNRX4.js +53 -0
- package/dist/{chunk-DBPNGZNH.js → chunk-NSSXSZLL.js} +13 -2
- package/dist/chunk-QTBTKEXK.js +77 -0
- package/dist/{chunk-PPKX55GI.js → chunk-SPYIP76F.js} +1 -1
- package/dist/{chunk-DBXDV5O7.js → chunk-TGNFGMPV.js} +2 -2
- package/dist/{chunk-2FQX2O4I.js → chunk-TW4BF5OE.js} +2 -2
- package/dist/{chunk-GN4SAZF2.js → chunk-VO73OL5V.js} +2 -2
- package/dist/{chunk-VTOUQAVR.js → chunk-X45O2AIE.js} +9 -1
- package/dist/{chunk-OZYJUNAQ.js → chunk-YRFSTHR5.js} +29 -525
- package/dist/{chunk-3XKVQS2K.js → chunk-Z7ABX5QI.js} +13 -9
- package/dist/{contribute-A7NCWTUM.js → contribute-TVST3CJO.js} +4 -4
- package/dist/countdown-QXJD6TDB.js +479 -0
- package/dist/{diff-4MDU5SLE.js → diff-MECE5RZB.js} +5 -5
- package/dist/{doctor-SS6Y2T6H.js → doctor-VLZNXJNA.js} +9 -9
- package/dist/ground-control-NMYYIVCV.js +434 -0
- package/dist/{handoff-MK5JG3J5.js → handoff-5AGE2D3T.js} +3 -2
- package/dist/{hook-D2WHBKRN.js → hook-XCZWX462.js} +7 -6
- package/dist/index.js +30 -20
- package/dist/{init-GVVBA2BM.js → init-HKMRU2V4.js} +12 -12
- package/dist/{install-R4HPI7VK.js → install-X2J6KWZ5.js} +12 -12
- package/dist/{plan-index-V7T5MKL6.js → plan-index-BNLUU6T5.js} +3 -2
- package/dist/{run-3B26CVIL.js → run-R66G276Q.js} +58 -12
- package/dist/{run-plan-APTBO2OT.js → run-plan-24Z5K4P3.js} +12 -7
- package/dist/{scan-K6TQGV4S.js → scan-UX4HARMJ.js} +1 -1
- package/dist/{setup-global-AT4DD3MG.js → setup-global-ADJFMOZX.js} +6 -6
- package/dist/{status-MPJHI5RP.js → status-UB6NL3Q3.js} +8 -8
- package/dist/{update-P62637ZI.js → update-PFBFY7GT.js} +9 -9
- package/package.json +1 -1
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
LAND_ON_GATE_DESCRIPTION,
|
|
3
|
-
classifyGateExit,
|
|
4
|
-
detectAgentBackend,
|
|
5
|
-
landGateExit,
|
|
6
|
-
listDetectBackendIds,
|
|
7
2
|
runPlanLoop,
|
|
8
3
|
shouldUseLiveTui,
|
|
9
4
|
withLiveTui
|
|
10
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YRFSTHR5.js";
|
|
6
|
+
import {
|
|
7
|
+
REVIEW_PACK_SLASH,
|
|
8
|
+
runReviewJob
|
|
9
|
+
} from "./chunk-MO63KZBP.js";
|
|
10
|
+
import {
|
|
11
|
+
detectAgentBackend,
|
|
12
|
+
listDetectBackendIds
|
|
13
|
+
} from "./chunk-GUQYNUV4.js";
|
|
14
|
+
import "./chunk-QTBTKEXK.js";
|
|
15
|
+
import {
|
|
16
|
+
LAND_ON_GATE_DESCRIPTION,
|
|
17
|
+
classifyGateExit,
|
|
18
|
+
landGateExit
|
|
19
|
+
} from "./chunk-KVY425NM.js";
|
|
11
20
|
import "./chunk-3LLXDHIU.js";
|
|
12
21
|
import {
|
|
13
22
|
negatedFlag
|
|
14
23
|
} from "./chunk-XDCCYBCJ.js";
|
|
15
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-L5V3W3DY.js";
|
|
25
|
+
import "./chunk-MUTTNRX4.js";
|
|
16
26
|
import {
|
|
17
27
|
buildDispatchPrompt,
|
|
18
28
|
classifySlash,
|
|
@@ -22,20 +32,20 @@ import {
|
|
|
22
32
|
readCommandFile,
|
|
23
33
|
runHeadlessDispatch,
|
|
24
34
|
unknownSlashMessage
|
|
25
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-Z7ABX5QI.js";
|
|
26
36
|
import {
|
|
27
37
|
HITL_UNANSWERED_EXIT_CODE,
|
|
28
38
|
formatHitlSummary,
|
|
29
39
|
getBackend,
|
|
30
40
|
hitlExitCode
|
|
31
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JEI6HACW.js";
|
|
32
42
|
import "./chunk-WGLPZXNU.js";
|
|
33
43
|
import "./chunk-MAPOQEA2.js";
|
|
34
44
|
import "./chunk-QTON2GQX.js";
|
|
35
45
|
import {
|
|
36
46
|
logger
|
|
37
47
|
} from "./chunk-ZB43YMHW.js";
|
|
38
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-C4Q77GGJ.js";
|
|
39
49
|
import "./chunk-5B4DVO6C.js";
|
|
40
50
|
|
|
41
51
|
// src/commands/run.ts
|
|
@@ -61,6 +71,12 @@ async function executeRun(input) {
|
|
|
61
71
|
if (kind === "unknown") {
|
|
62
72
|
return { exitCode: 1, error: unknownSlashMessage(slash) };
|
|
63
73
|
}
|
|
74
|
+
if (input.maxPackBytes?.trim() && slash !== REVIEW_PACK_SLASH) {
|
|
75
|
+
return { exitCode: 1, error: `--max-pack-bytes only applies to ${REVIEW_PACK_SLASH}` };
|
|
76
|
+
}
|
|
77
|
+
if (input.includeReviewed && slash !== REVIEW_PACK_SLASH) {
|
|
78
|
+
return { exitCode: 1, error: `--include-reviewed only applies to ${REVIEW_PACK_SLASH}` };
|
|
79
|
+
}
|
|
64
80
|
const detected = await detectAgentBackend(input.backend, input.whichFn);
|
|
65
81
|
if (!detected.ok) {
|
|
66
82
|
return { exitCode: 1, error: detected.message };
|
|
@@ -92,6 +108,22 @@ async function executeRun(input) {
|
|
|
92
108
|
});
|
|
93
109
|
return { exitCode: code };
|
|
94
110
|
}
|
|
111
|
+
if (slash === REVIEW_PACK_SLASH) {
|
|
112
|
+
try {
|
|
113
|
+
return await runReviewJob({
|
|
114
|
+
root,
|
|
115
|
+
backendId: detected.id,
|
|
116
|
+
bin: detected.bin,
|
|
117
|
+
model: input.model,
|
|
118
|
+
maxPackBytes: input.maxPackBytes,
|
|
119
|
+
includeReviewed: input.includeReviewed === true,
|
|
120
|
+
noHitl: input.noHitl === true,
|
|
121
|
+
dryRun: input.dryRun
|
|
122
|
+
});
|
|
123
|
+
} catch (err) {
|
|
124
|
+
return { exitCode: 1, error: String(err) };
|
|
125
|
+
}
|
|
126
|
+
}
|
|
95
127
|
const file = await readCommandFile(root, slash);
|
|
96
128
|
if (!file.ok) {
|
|
97
129
|
return { exitCode: 1, error: file.message };
|
|
@@ -217,6 +249,16 @@ var runDispatchArgs = {
|
|
|
217
249
|
default: false
|
|
218
250
|
}
|
|
219
251
|
};
|
|
252
|
+
var maxPackBytesArg = {
|
|
253
|
+
type: "string",
|
|
254
|
+
description: "For review-pack only: diff pack ceiling in bytes (default: 98304; a branch whose section does not fit is listed as not reviewed, never cut)",
|
|
255
|
+
default: ""
|
|
256
|
+
};
|
|
257
|
+
var includeReviewedArg = {
|
|
258
|
+
type: "boolean",
|
|
259
|
+
description: "For review-pack only: also review branches whose tip is unchanged since the last completed review (.cursor/context/review-ledger.json)",
|
|
260
|
+
default: false
|
|
261
|
+
};
|
|
220
262
|
async function runSlashCli(slash, args) {
|
|
221
263
|
const maxTicks = Number.parseInt(String(args["max-ticks"]), 10);
|
|
222
264
|
const sleepSeconds = Number.parseFloat(String(args.sleep));
|
|
@@ -240,7 +282,9 @@ async function runSlashCli(slash, args) {
|
|
|
240
282
|
sleepSeconds,
|
|
241
283
|
noHitl: negatedFlag(args, "hitl"),
|
|
242
284
|
plain: Boolean(args.plain),
|
|
243
|
-
landOnGate: Boolean(args["land-on-gate"])
|
|
285
|
+
landOnGate: Boolean(args["land-on-gate"]),
|
|
286
|
+
...args["max-pack-bytes"] ? { maxPackBytes: String(args["max-pack-bytes"]) } : {},
|
|
287
|
+
...args["include-reviewed"] ? { includeReviewed: true } : {}
|
|
244
288
|
});
|
|
245
289
|
if (result.stdout) {
|
|
246
290
|
console.log(result.stdout);
|
|
@@ -261,7 +305,9 @@ var runCommand = defineCommand({
|
|
|
261
305
|
description: "Slash name (e.g. run-plan-all, backlog-add, continue-plan)",
|
|
262
306
|
required: true
|
|
263
307
|
},
|
|
264
|
-
...runDispatchArgs
|
|
308
|
+
...runDispatchArgs,
|
|
309
|
+
"max-pack-bytes": maxPackBytesArg,
|
|
310
|
+
"include-reviewed": includeReviewedArg
|
|
265
311
|
},
|
|
266
312
|
async run({ args }) {
|
|
267
313
|
await runSlashCli(String(args.slash ?? ""), args);
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DRIVER_EVENTS_FORMATS,
|
|
3
|
-
LAND_ON_GATE_DESCRIPTION,
|
|
4
|
-
detectAgentBackend,
|
|
5
|
-
listDetectBackendIds,
|
|
6
3
|
runPlanLoop
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YRFSTHR5.js";
|
|
5
|
+
import {
|
|
6
|
+
detectAgentBackend,
|
|
7
|
+
listDetectBackendIds
|
|
8
|
+
} from "./chunk-GUQYNUV4.js";
|
|
9
|
+
import {
|
|
10
|
+
LAND_ON_GATE_DESCRIPTION
|
|
11
|
+
} from "./chunk-KVY425NM.js";
|
|
8
12
|
import "./chunk-3LLXDHIU.js";
|
|
9
13
|
import {
|
|
10
14
|
negatedFlag
|
|
11
15
|
} from "./chunk-XDCCYBCJ.js";
|
|
12
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-L5V3W3DY.js";
|
|
17
|
+
import "./chunk-MUTTNRX4.js";
|
|
13
18
|
import {
|
|
14
19
|
HITL_UNANSWERED_EXIT_CODE,
|
|
15
20
|
getBackend
|
|
16
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JEI6HACW.js";
|
|
17
22
|
import "./chunk-WGLPZXNU.js";
|
|
18
23
|
import "./chunk-MAPOQEA2.js";
|
|
19
24
|
import "./chunk-QTON2GQX.js";
|
|
20
25
|
import {
|
|
21
26
|
logger
|
|
22
27
|
} from "./chunk-ZB43YMHW.js";
|
|
23
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-C4Q77GGJ.js";
|
|
24
29
|
import "./chunk-5B4DVO6C.js";
|
|
25
30
|
|
|
26
31
|
// src/commands/run-plan.ts
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
classifyInstallError,
|
|
3
3
|
isNonInteractive,
|
|
4
4
|
pathCliStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VO73OL5V.js";
|
|
6
6
|
import {
|
|
7
7
|
assessEnvironment
|
|
8
8
|
} from "./chunk-B3VR5YBQ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TW4BF5OE.js";
|
|
10
10
|
import "./chunk-PFEUZXVT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CWDXNBEU.js";
|
|
12
|
+
import "./chunk-X45O2AIE.js";
|
|
13
|
+
import "./chunk-NSSXSZLL.js";
|
|
14
14
|
import {
|
|
15
15
|
KIT_VERSION,
|
|
16
16
|
pinnedCliSpec
|
|
17
17
|
} from "./chunk-7HDQEK6T.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-C4Q77GGJ.js";
|
|
19
19
|
import "./chunk-5B4DVO6C.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/setup-global.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectWorkspaceParent,
|
|
3
3
|
workspaceParentAdvisoryLines
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CER2APV2.js";
|
|
5
5
|
import {
|
|
6
6
|
createReadinessReport
|
|
7
7
|
} from "./chunk-PNFF6OU3.js";
|
|
8
8
|
import {
|
|
9
9
|
runScanner
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GO3K752H.js";
|
|
11
11
|
import "./chunk-F6C3GFKV.js";
|
|
12
12
|
import {
|
|
13
13
|
logger
|
|
@@ -15,23 +15,23 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
npxPinned,
|
|
17
17
|
pathCliStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VO73OL5V.js";
|
|
19
19
|
import {
|
|
20
20
|
assessEnvironment
|
|
21
21
|
} from "./chunk-B3VR5YBQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-TW4BF5OE.js";
|
|
23
23
|
import "./chunk-PFEUZXVT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-CWDXNBEU.js";
|
|
25
|
+
import "./chunk-X45O2AIE.js";
|
|
26
26
|
import {
|
|
27
27
|
MANIFEST_RELATIVE_PATH,
|
|
28
28
|
loadAgentKitManifest,
|
|
29
29
|
resolveProtectedGlobs
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NSSXSZLL.js";
|
|
31
31
|
import {
|
|
32
32
|
KIT_VERSION
|
|
33
33
|
} from "./chunk-7HDQEK6T.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-C4Q77GGJ.js";
|
|
35
35
|
import {
|
|
36
36
|
readJson
|
|
37
37
|
} from "./chunk-5B4DVO6C.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NON_INTERACTIVE_ROOT_ARGS,
|
|
3
3
|
syncFromManifest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGNFGMPV.js";
|
|
5
5
|
import {
|
|
6
6
|
formatSkippedSymlinks,
|
|
7
7
|
logApplyStats
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
REGISTRY_CLI_ARGS,
|
|
11
11
|
resolveRegistryFromCli
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C2SJDYAM.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_SETTINGS_REL,
|
|
15
15
|
formatClaudeSettingsDrift,
|
|
16
16
|
generateClaudeCommandAdapters,
|
|
17
17
|
planClaudeSettingsDrift,
|
|
18
18
|
writeClaudeSessionStartHook
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SPYIP76F.js";
|
|
20
20
|
import "./chunk-MAPOQEA2.js";
|
|
21
21
|
import {
|
|
22
22
|
withCliProgress
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
confirmProjectRoot,
|
|
30
30
|
isNonInteractive,
|
|
31
31
|
syncPathCliToRuntime
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VO73OL5V.js";
|
|
33
33
|
import "./chunk-B3VR5YBQ.js";
|
|
34
34
|
import {
|
|
35
35
|
checkForUpdates,
|
|
36
36
|
compareSemver,
|
|
37
37
|
normalizeSemver,
|
|
38
38
|
readLocalKitVersion
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TW4BF5OE.js";
|
|
40
40
|
import "./chunk-PFEUZXVT.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-CWDXNBEU.js";
|
|
42
|
+
import "./chunk-X45O2AIE.js";
|
|
43
43
|
import {
|
|
44
44
|
buildManifest,
|
|
45
45
|
isProtectedPath,
|
|
@@ -47,12 +47,12 @@ import {
|
|
|
47
47
|
resolveProtectedGlobs,
|
|
48
48
|
saveManifest,
|
|
49
49
|
seedManagedHashLedger
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-NSSXSZLL.js";
|
|
51
51
|
import {
|
|
52
52
|
KIT_PACKAGE_SPEC,
|
|
53
53
|
KIT_VERSION
|
|
54
54
|
} from "./chunk-7HDQEK6T.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-C4Q77GGJ.js";
|
|
56
56
|
import "./chunk-5B4DVO6C.js";
|
|
57
57
|
|
|
58
58
|
// src/commands/update.ts
|
package/package.json
CHANGED