@dadado/agent-kit-cli 5.17.0 → 5.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/dashboard/README.md +10 -1
- package/dashboard/dashboard-data.mjs +12 -2
- package/dashboard/dashboard.html +58 -0
- package/dashboard/lib/run-logs.d.mts +34 -0
- package/dashboard/lib/run-logs.mjs +218 -0
- package/dist/{add-HTYIFKMN.js → add-KQJE3ZTG.js} +3 -3
- package/dist/{chunk-KD2MYBB6.js → chunk-3J3I2W22.js} +1 -1
- package/dist/{chunk-2RDRMGD3.js → chunk-6FXQINND.js} +2 -2
- package/dist/{chunk-OUQZC744.js → chunk-B5CH47OS.js} +852 -74
- package/dist/chunk-C26I6HTO.js +39 -0
- package/dist/{chunk-N3HTJVBR.js → chunk-GSCXFJB7.js} +1 -1
- package/dist/{chunk-STGFBAYT.js → chunk-HRILMD5N.js} +7 -15
- package/dist/{chunk-B73KQ5KX.js → chunk-KIXK7KOW.js} +7 -7
- package/dist/{chunk-S6GMFDKV.js → chunk-P6PMKYWU.js} +1 -1
- package/dist/{chunk-WW3YZKHW.js → chunk-RZ5TNBHU.js} +25 -4
- package/dist/{chunk-TFZ2JUXH.js → chunk-TOWH3XCJ.js} +520 -70
- package/dist/{chunk-W24CMQ32.js → chunk-TZYKLR5J.js} +1 -1
- package/dist/{chunk-DQA434Y4.js → chunk-UEKWZ7BN.js} +2 -2
- package/dist/chunk-WGLPZXNU.js +45 -0
- package/dist/{chunk-AW74INUW.js → chunk-WSJ77EHO.js} +1 -1
- package/dist/{chunk-F4VMYR7U.js → chunk-YJMZ6UM2.js} +2 -2
- package/dist/{chunk-SMGFN3Z4.js → chunk-YMYLO5LG.js} +2 -2
- package/dist/{chunk-PNG7LO2F.js → chunk-ZDCEAGD4.js} +1 -1
- package/dist/{contribute-C6AW2P6J.js → contribute-LFT762Y4.js} +4 -4
- package/dist/{diff-VHNR62SI.js → diff-56KMRCER.js} +5 -5
- package/dist/{doctor-PET2HRRJ.js → doctor-AA64XVEY.js} +9 -8
- package/dist/{handoff-3UI6VKVG.js → handoff-34SDU4FF.js} +2 -2
- package/dist/{hook-DYIMKJYL.js → hook-KRIXBLNW.js} +7 -7
- package/dist/index.js +19 -17
- package/dist/{init-Q4LBM6KT.js → init-XP5EAUSJ.js} +12 -11
- package/dist/{install-RHOS3OYZ.js → install-SHDEX54F.js} +12 -11
- package/dist/{plan-index-JMC7Z4DW.js → plan-index-O3545OA7.js} +2 -2
- package/dist/{run-I3BFGULT.js → run-FADX6QCP.js} +6 -5
- package/dist/{run-plan-FO7CL4M3.js → run-plan-MO4IFAKV.js} +36 -5
- package/dist/{setup-global-M42GEODI.js → setup-global-CBWLXOQG.js} +6 -6
- package/dist/{status-XPVQVQMX.js → status-BSIXWZMY.js} +7 -7
- package/dist/{update-FJ2EBZVO.js → update-FJX3DA6X.js} +9 -9
- package/package.json +1 -1
- package/dist/chunk-5VCOWTTP.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
L0_ARTIFACTS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GSCXFJB7.js";
|
|
4
4
|
import {
|
|
5
5
|
copyRegistryFile,
|
|
6
6
|
emptyStats,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
recordOutcome,
|
|
13
13
|
resolveProtectedGlobs,
|
|
14
14
|
saveManagedHashLedger
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WSJ77EHO.js";
|
|
16
16
|
import {
|
|
17
17
|
fileExists
|
|
18
18
|
} from "./chunk-77V75A7O.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/utils/find-on-path.ts
|
|
2
|
+
import { constants } from "fs";
|
|
3
|
+
import { access, stat } from "fs/promises";
|
|
4
|
+
import path from "path";
|
|
5
|
+
var DEFAULT_PATHEXT = ".COM;.EXE;.BAT;.CMD";
|
|
6
|
+
async function findOnPath(bin, opts = {}) {
|
|
7
|
+
const env = opts.env ?? process.env;
|
|
8
|
+
const platform = opts.platform ?? process.platform;
|
|
9
|
+
const win = platform === "win32";
|
|
10
|
+
const pathApi = win ? path.win32 : path.posix;
|
|
11
|
+
const check = opts.accessFn ?? (async (file, mode2) => {
|
|
12
|
+
await access(file, mode2);
|
|
13
|
+
if (!(await stat(file)).isFile()) throw new Error("not a file");
|
|
14
|
+
});
|
|
15
|
+
const mode = win ? constants.F_OK : constants.X_OK;
|
|
16
|
+
if (!bin.trim()) return null;
|
|
17
|
+
const pathValue = (win ? env.Path ?? env.PATH ?? env.path : env.PATH) ?? "";
|
|
18
|
+
const exts = win ? (env.PATHEXT ?? DEFAULT_PATHEXT).split(";").filter(Boolean) : [""];
|
|
19
|
+
const hasExt = win && exts.some((ext) => bin.toLowerCase().endsWith(ext.toLowerCase()));
|
|
20
|
+
const suffixes = hasExt ? [""] : exts;
|
|
21
|
+
const tryFile = async (file) => {
|
|
22
|
+
for (const ext of suffixes) {
|
|
23
|
+
const candidate = `${file}${ext}`;
|
|
24
|
+
try {
|
|
25
|
+
await check(candidate, mode);
|
|
26
|
+
return candidate;
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
};
|
|
32
|
+
if (bin.includes("/") || win && bin.includes("\\")) return tryFile(bin);
|
|
33
|
+
const delimiter = win ? ";" : ":";
|
|
34
|
+
for (const raw of pathValue.split(delimiter)) {
|
|
35
|
+
const dir = raw.trim().replace(/^"(.*)"$/, "$1");
|
|
36
|
+
if (!dir) continue;
|
|
37
|
+
const hit = await tryFile(pathApi.join(dir, bin));
|
|
38
|
+
if (hit) return hit;
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
findOnPath
|
|
45
|
+
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
compareSemver,
|
|
6
6
|
normalizeSemver
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YMYLO5LG.js";
|
|
8
8
|
import {
|
|
9
9
|
MANIFEST_RELATIVE_PATH
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WSJ77EHO.js";
|
|
11
11
|
import {
|
|
12
12
|
KIT_VERSION,
|
|
13
13
|
pinnedCliSpec
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
diffAgainstRegistry,
|
|
8
8
|
summarizeDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6FXQINND.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_REGISTRY_URL,
|
|
12
12
|
assertSafeRegistrySource,
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
resolveRegistryRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WSJ77EHO.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_PACKAGE_SPEC,
|
|
18
18
|
KIT_VERSION
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZDCEAGD4.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-GSCXFJB7.js";
|
|
11
11
|
import {
|
|
12
12
|
loadAgentKitManifest,
|
|
13
13
|
normalizeRelPath,
|
|
14
14
|
resolveContained
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-WSJ77EHO.js";
|
|
16
|
+
import "./chunk-C26I6HTO.js";
|
|
17
17
|
import "./chunk-77V75A7O.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/contribute.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZDCEAGD4.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-6FXQINND.js";
|
|
12
|
+
import "./chunk-GSCXFJB7.js";
|
|
13
13
|
import {
|
|
14
14
|
loadAgentKitManifest
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-WSJ77EHO.js";
|
|
16
|
+
import "./chunk-C26I6HTO.js";
|
|
17
17
|
import "./chunk-77V75A7O.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/diff.ts
|
|
@@ -2,11 +2,12 @@ import {
|
|
|
2
2
|
assessHooksHealth,
|
|
3
3
|
executeSafeReadinessFixes,
|
|
4
4
|
refreshRepositoryProfile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HRILMD5N.js";
|
|
6
6
|
import {
|
|
7
7
|
writeReadinessSnapshot
|
|
8
8
|
} from "./chunk-ZXKZBTXE.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-TZYKLR5J.js";
|
|
10
|
+
import "./chunk-WGLPZXNU.js";
|
|
10
11
|
import "./chunk-MAPOQEA2.js";
|
|
11
12
|
import {
|
|
12
13
|
withCliProgress
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
import {
|
|
15
16
|
detectWorkspaceParent,
|
|
16
17
|
workspaceParentAdvisoryLines
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P6PMKYWU.js";
|
|
18
19
|
import {
|
|
19
20
|
createReadinessReport
|
|
20
21
|
} from "./chunk-PNFF6OU3.js";
|
|
@@ -30,15 +31,15 @@ import {
|
|
|
30
31
|
} from "./chunk-4IWG5CVE.js";
|
|
31
32
|
import {
|
|
32
33
|
warnIfRunningCliBehindNpm
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YMYLO5LG.js";
|
|
34
35
|
import "./chunk-NQ7IQ5XT.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-5VCOWTTP.js";
|
|
36
|
+
import "./chunk-6FXQINND.js";
|
|
37
|
+
import "./chunk-GSCXFJB7.js";
|
|
38
|
+
import "./chunk-WSJ77EHO.js";
|
|
39
39
|
import {
|
|
40
40
|
KIT_VERSION
|
|
41
41
|
} from "./chunk-7HDQEK6T.js";
|
|
42
|
+
import "./chunk-C26I6HTO.js";
|
|
42
43
|
import {
|
|
43
44
|
readJson
|
|
44
45
|
} from "./chunk-77V75A7O.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
extractHandoffNamedPlans,
|
|
7
7
|
namedPlanCandidatePaths,
|
|
8
8
|
parsePlanFrontmatter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3J3I2W22.js";
|
|
10
10
|
import {
|
|
11
11
|
PM_TOOL_LABELS
|
|
12
12
|
} from "./chunk-F6C3GFKV.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-ZB43YMHW.js";
|
|
16
16
|
import {
|
|
17
17
|
HANDOFF_REL
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C26I6HTO.js";
|
|
19
19
|
import {
|
|
20
20
|
ensureDir,
|
|
21
21
|
fileExists,
|
|
@@ -16,25 +16,25 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
formatPlanIndexSection,
|
|
18
18
|
writePlanIndex
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3J3I2W22.js";
|
|
20
20
|
import {
|
|
21
21
|
READINESS_SNAPSHOT_RELATIVE_PATH
|
|
22
22
|
} from "./chunk-ZXKZBTXE.js";
|
|
23
23
|
import {
|
|
24
24
|
stampLastCheckedAt
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YMYLO5LG.js";
|
|
26
26
|
import {
|
|
27
27
|
loadContextConfig
|
|
28
28
|
} from "./chunk-NQ7IQ5XT.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-6FXQINND.js";
|
|
30
|
+
import "./chunk-GSCXFJB7.js";
|
|
31
31
|
import {
|
|
32
32
|
MANIFEST_RELATIVE_PATH
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WSJ77EHO.js";
|
|
34
|
+
import "./chunk-7HDQEK6T.js";
|
|
34
35
|
import {
|
|
35
36
|
HANDOFF_REL
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-7HDQEK6T.js";
|
|
37
|
+
} from "./chunk-C26I6HTO.js";
|
|
38
38
|
import {
|
|
39
39
|
fileExists
|
|
40
40
|
} from "./chunk-77V75A7O.js";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
rewriteRootArgvToRun
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RZ5TNBHU.js";
|
|
5
|
+
import "./chunk-B5CH47OS.js";
|
|
6
|
+
import "./chunk-WGLPZXNU.js";
|
|
6
7
|
import "./chunk-MAPOQEA2.js";
|
|
7
8
|
import {
|
|
8
9
|
HELMET_OUTLINE,
|
|
@@ -15,6 +16,7 @@ import {
|
|
|
15
16
|
import {
|
|
16
17
|
KIT_VERSION
|
|
17
18
|
} from "./chunk-7HDQEK6T.js";
|
|
19
|
+
import "./chunk-C26I6HTO.js";
|
|
18
20
|
import "./chunk-77V75A7O.js";
|
|
19
21
|
|
|
20
22
|
// src/index.ts
|
|
@@ -211,29 +213,29 @@ var main = defineCommand({
|
|
|
211
213
|
version: KIT_VERSION
|
|
212
214
|
},
|
|
213
215
|
subCommands: {
|
|
214
|
-
init: () => import("./init-
|
|
215
|
-
install: () => import("./install-
|
|
216
|
+
init: () => import("./init-XP5EAUSJ.js").then((m) => m.initCommand),
|
|
217
|
+
install: () => import("./install-SHDEX54F.js").then((m) => m.installCommand),
|
|
216
218
|
scan: () => import("./scan-NI2SWJ2E.js").then((m) => m.scanCommand),
|
|
217
|
-
add: () => import("./add-
|
|
218
|
-
doctor: () => import("./doctor-
|
|
219
|
-
"setup-global": () => import("./setup-global-
|
|
220
|
-
status: () => import("./status-
|
|
221
|
-
update: () => import("./update-
|
|
219
|
+
add: () => import("./add-KQJE3ZTG.js").then((m) => m.addCommand),
|
|
220
|
+
doctor: () => import("./doctor-AA64XVEY.js").then((m) => m.doctorCommand),
|
|
221
|
+
"setup-global": () => import("./setup-global-CBWLXOQG.js").then((m) => m.setupGlobalCommand),
|
|
222
|
+
status: () => import("./status-BSIXWZMY.js").then((m) => m.statusCommand),
|
|
223
|
+
update: () => import("./update-FJX3DA6X.js").then((m) => m.updateCommand),
|
|
222
224
|
"cursor-awareness": () => import("./cursor-awareness-KTL2RGKD.js").then((m) => m.cursorAwarenessCommand),
|
|
223
225
|
"public-inbound-radar": () => import("./public-inbound-radar-WP3XF7GS.js").then((m) => m.publicInboundRadarCommand),
|
|
224
226
|
"remote-issues": () => import("./remote-issues-SZ4HDQL5.js").then((m) => m.remoteIssuesCommand),
|
|
225
227
|
dogfood: () => import("./dogfood-KKFVRWT6.js").then((m) => m.dogfoodCommand),
|
|
226
|
-
diff: () => import("./diff-
|
|
227
|
-
contribute: () => import("./contribute-
|
|
228
|
-
handoff: () => import("./handoff-
|
|
229
|
-
"plan-index": () => import("./plan-index-
|
|
230
|
-
run: () => import("./run-
|
|
231
|
-
"run-plan": () => import("./run-plan-
|
|
232
|
-
"run-plan-all": () => import("./run-
|
|
228
|
+
diff: () => import("./diff-56KMRCER.js").then((m) => m.diffCommand),
|
|
229
|
+
contribute: () => import("./contribute-LFT762Y4.js").then((m) => m.contributeCommand),
|
|
230
|
+
handoff: () => import("./handoff-34SDU4FF.js").then((m) => m.handoffCommand),
|
|
231
|
+
"plan-index": () => import("./plan-index-O3545OA7.js").then((m) => m.planIndexCommand),
|
|
232
|
+
run: () => import("./run-FADX6QCP.js").then((m) => m.runCommand),
|
|
233
|
+
"run-plan": () => import("./run-plan-MO4IFAKV.js").then((m) => m.runPlanCommand),
|
|
234
|
+
"run-plan-all": () => import("./run-FADX6QCP.js").then((m) => m.runPlanAllCommand),
|
|
233
235
|
dashboard: () => import("./dashboard-YSNUGBFY.js").then((m) => m.dashboardCommand),
|
|
234
236
|
"dashboard-broadcast": () => import("./dashboard-broadcast-M4CMW7RX.js").then((m) => m.dashboardBroadcastCommand),
|
|
235
237
|
"mission-control": () => import("./mission-control-LJACEVVN.js").then((m) => m.missionControlCommand),
|
|
236
|
-
hook: () => import("./hook-
|
|
238
|
+
hook: () => import("./hook-KRIXBLNW.js").then((m) => m.hookCommand),
|
|
237
239
|
guard: () => import("./guard-EHXF76ID.js").then((m) => m.guardCommand),
|
|
238
240
|
monitors: () => import("./monitors-QV2IS3MP.js").then((m) => m.monitorsCommand),
|
|
239
241
|
validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand)
|
|
@@ -2,18 +2,19 @@ import {
|
|
|
2
2
|
nextStepAfterInstall,
|
|
3
3
|
performInstall,
|
|
4
4
|
printInstallEpilogue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KIXK7KOW.js";
|
|
6
6
|
import {
|
|
7
7
|
NON_INTERACTIVE_ROOT_ARGS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UEKWZ7BN.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-ZDCEAGD4.js";
|
|
14
|
+
import "./chunk-HRILMD5N.js";
|
|
15
15
|
import "./chunk-ZXKZBTXE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-TZYKLR5J.js";
|
|
17
|
+
import "./chunk-WGLPZXNU.js";
|
|
17
18
|
import "./chunk-MAPOQEA2.js";
|
|
18
19
|
import {
|
|
19
20
|
withCliProgress
|
|
@@ -30,19 +31,19 @@ import {
|
|
|
30
31
|
confirmProjectRoot,
|
|
31
32
|
isNonInteractive,
|
|
32
33
|
syncPathCliToRuntime
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YJMZ6UM2.js";
|
|
34
35
|
import {
|
|
35
36
|
assessEnvironment
|
|
36
37
|
} from "./chunk-4IWG5CVE.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-YMYLO5LG.js";
|
|
38
39
|
import "./chunk-NQ7IQ5XT.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-5VCOWTTP.js";
|
|
40
|
+
import "./chunk-6FXQINND.js";
|
|
41
|
+
import "./chunk-GSCXFJB7.js";
|
|
42
|
+
import "./chunk-WSJ77EHO.js";
|
|
43
43
|
import {
|
|
44
44
|
KIT_VERSION
|
|
45
45
|
} from "./chunk-7HDQEK6T.js";
|
|
46
|
+
import "./chunk-C26I6HTO.js";
|
|
46
47
|
import "./chunk-77V75A7O.js";
|
|
47
48
|
|
|
48
49
|
// src/commands/init.ts
|
|
@@ -3,28 +3,29 @@ import {
|
|
|
3
3
|
nextStepAfterInstall,
|
|
4
4
|
performInstall,
|
|
5
5
|
printInstallEpilogue
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KIXK7KOW.js";
|
|
7
|
+
import "./chunk-UEKWZ7BN.js";
|
|
8
8
|
import "./chunk-HS7LVVLO.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZDCEAGD4.js";
|
|
10
|
+
import "./chunk-HRILMD5N.js";
|
|
11
11
|
import "./chunk-ZXKZBTXE.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TZYKLR5J.js";
|
|
13
|
+
import "./chunk-WGLPZXNU.js";
|
|
13
14
|
import "./chunk-MAPOQEA2.js";
|
|
14
15
|
import "./chunk-QTON2GQX.js";
|
|
15
16
|
import "./chunk-PNFF6OU3.js";
|
|
16
17
|
import "./chunk-ZCTSUQRR.js";
|
|
17
18
|
import "./chunk-F6C3GFKV.js";
|
|
18
19
|
import "./chunk-ZB43YMHW.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-YJMZ6UM2.js";
|
|
20
21
|
import "./chunk-4IWG5CVE.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YMYLO5LG.js";
|
|
22
23
|
import "./chunk-NQ7IQ5XT.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-5VCOWTTP.js";
|
|
24
|
+
import "./chunk-6FXQINND.js";
|
|
25
|
+
import "./chunk-GSCXFJB7.js";
|
|
26
|
+
import "./chunk-WSJ77EHO.js";
|
|
27
27
|
import "./chunk-7HDQEK6T.js";
|
|
28
|
+
import "./chunk-C26I6HTO.js";
|
|
28
29
|
import "./chunk-77V75A7O.js";
|
|
29
30
|
export {
|
|
30
31
|
installCommand,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
runPlanLoop,
|
|
5
5
|
shouldUseLiveTui,
|
|
6
6
|
withLiveTui
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TOWH3XCJ.js";
|
|
8
8
|
import "./chunk-PCCQUWE5.js";
|
|
9
9
|
import "./chunk-HFUH3HVS.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-3J3I2W22.js";
|
|
11
11
|
import {
|
|
12
12
|
buildDispatchPrompt,
|
|
13
13
|
classifySlash,
|
|
@@ -17,19 +17,20 @@ import {
|
|
|
17
17
|
readCommandFile,
|
|
18
18
|
runHeadlessDispatch,
|
|
19
19
|
unknownSlashMessage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RZ5TNBHU.js";
|
|
21
21
|
import {
|
|
22
22
|
HITL_UNANSWERED_EXIT_CODE,
|
|
23
23
|
formatHitlSummary,
|
|
24
24
|
getBackend,
|
|
25
25
|
hitlExitCode
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B5CH47OS.js";
|
|
27
|
+
import "./chunk-WGLPZXNU.js";
|
|
27
28
|
import "./chunk-MAPOQEA2.js";
|
|
28
29
|
import "./chunk-QTON2GQX.js";
|
|
29
30
|
import {
|
|
30
31
|
logger
|
|
31
32
|
} from "./chunk-ZB43YMHW.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-C26I6HTO.js";
|
|
33
34
|
import "./chunk-77V75A7O.js";
|
|
34
35
|
|
|
35
36
|
// src/commands/run.ts
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DRIVER_EVENTS_FORMATS,
|
|
2
3
|
detectAgentBackend,
|
|
3
4
|
listDetectBackendIds,
|
|
4
5
|
runPlanLoop
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TOWH3XCJ.js";
|
|
6
7
|
import "./chunk-PCCQUWE5.js";
|
|
7
8
|
import "./chunk-HFUH3HVS.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3J3I2W22.js";
|
|
9
10
|
import {
|
|
10
11
|
HITL_UNANSWERED_EXIT_CODE,
|
|
11
12
|
getBackend
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B5CH47OS.js";
|
|
14
|
+
import "./chunk-WGLPZXNU.js";
|
|
13
15
|
import "./chunk-MAPOQEA2.js";
|
|
14
16
|
import "./chunk-QTON2GQX.js";
|
|
15
17
|
import {
|
|
16
18
|
logger
|
|
17
19
|
} from "./chunk-ZB43YMHW.js";
|
|
18
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-C26I6HTO.js";
|
|
19
21
|
import "./chunk-77V75A7O.js";
|
|
20
22
|
|
|
21
23
|
// src/commands/run-plan.ts
|
|
@@ -62,6 +64,16 @@ var runPlanCommand = defineCommand({
|
|
|
62
64
|
description: `CI: never prompt; a HITL gate stops the run with exit ${HITL_UNANSWERED_EXIT_CODE} (no default answer)`,
|
|
63
65
|
default: false
|
|
64
66
|
},
|
|
67
|
+
"on-limit": {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Backend for the next fresh tick when a tick stops on a vendor usage limit (once per run; default: stop)",
|
|
70
|
+
default: ""
|
|
71
|
+
},
|
|
72
|
+
events: {
|
|
73
|
+
type: "string",
|
|
74
|
+
description: "Driver mode for apps: `ndjson` writes only NDJSON events to stdout and reads HITL answers as JSON lines on stdin (no TTY needed; see docs/driver-events-protocol.md)",
|
|
75
|
+
default: ""
|
|
76
|
+
},
|
|
65
77
|
plain: {
|
|
66
78
|
type: "boolean",
|
|
67
79
|
description: "Status lines instead of the Mission Control live view (the default on a TTY; non-TTY, NO_COLOR and CI are always plain)",
|
|
@@ -81,6 +93,12 @@ var runPlanCommand = defineCommand({
|
|
|
81
93
|
process.exitCode = 1;
|
|
82
94
|
return;
|
|
83
95
|
}
|
|
96
|
+
const events = String(args.events ?? "");
|
|
97
|
+
if (events && !DRIVER_EVENTS_FORMATS.includes(events)) {
|
|
98
|
+
logger.error(`--events must be one of: ${DRIVER_EVENTS_FORMATS.join(", ")}`);
|
|
99
|
+
process.exitCode = 1;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
84
102
|
let backend;
|
|
85
103
|
try {
|
|
86
104
|
const requested = String(args.backend);
|
|
@@ -100,6 +118,17 @@ var runPlanCommand = defineCommand({
|
|
|
100
118
|
process.exitCode = 1;
|
|
101
119
|
return;
|
|
102
120
|
}
|
|
121
|
+
let onLimit;
|
|
122
|
+
const onLimitId = String(args["on-limit"] ?? "").trim();
|
|
123
|
+
if (onLimitId) {
|
|
124
|
+
try {
|
|
125
|
+
onLimit = getBackend(onLimitId);
|
|
126
|
+
} catch (err) {
|
|
127
|
+
logger.error(`--on-limit: ${String(err)}`);
|
|
128
|
+
process.exitCode = 1;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
103
132
|
const code = await runPlanLoop({
|
|
104
133
|
root: path.resolve(args.cwd),
|
|
105
134
|
maxTicks,
|
|
@@ -108,7 +137,9 @@ var runPlanCommand = defineCommand({
|
|
|
108
137
|
dryRun: Boolean(args["dry-run"]),
|
|
109
138
|
backend,
|
|
110
139
|
noHitl: Boolean(args["no-hitl"]),
|
|
111
|
-
plain: Boolean(args.plain)
|
|
140
|
+
plain: Boolean(args.plain),
|
|
141
|
+
...events ? { events: {} } : {},
|
|
142
|
+
...onLimit ? { onLimit } : {}
|
|
112
143
|
});
|
|
113
144
|
process.exitCode = code;
|
|
114
145
|
}
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
classifyInstallError,
|
|
3
3
|
isNonInteractive,
|
|
4
4
|
pathCliStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YJMZ6UM2.js";
|
|
6
6
|
import {
|
|
7
7
|
assessEnvironment
|
|
8
8
|
} from "./chunk-4IWG5CVE.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-YMYLO5LG.js";
|
|
10
10
|
import "./chunk-NQ7IQ5XT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-5VCOWTTP.js";
|
|
11
|
+
import "./chunk-6FXQINND.js";
|
|
12
|
+
import "./chunk-GSCXFJB7.js";
|
|
13
|
+
import "./chunk-WSJ77EHO.js";
|
|
15
14
|
import {
|
|
16
15
|
KIT_VERSION,
|
|
17
16
|
pinnedCliSpec
|
|
18
17
|
} from "./chunk-7HDQEK6T.js";
|
|
18
|
+
import "./chunk-C26I6HTO.js";
|
|
19
19
|
import "./chunk-77V75A7O.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/setup-global.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectWorkspaceParent,
|
|
3
3
|
workspaceParentAdvisoryLines
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P6PMKYWU.js";
|
|
5
5
|
import {
|
|
6
6
|
createReadinessReport
|
|
7
7
|
} from "./chunk-PNFF6OU3.js";
|
|
@@ -15,23 +15,23 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
npxPinned,
|
|
17
17
|
pathCliStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YJMZ6UM2.js";
|
|
19
19
|
import {
|
|
20
20
|
assessEnvironment
|
|
21
21
|
} from "./chunk-4IWG5CVE.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YMYLO5LG.js";
|
|
23
23
|
import "./chunk-NQ7IQ5XT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-6FXQINND.js";
|
|
25
|
+
import "./chunk-GSCXFJB7.js";
|
|
26
26
|
import {
|
|
27
27
|
MANIFEST_RELATIVE_PATH,
|
|
28
28
|
loadAgentKitManifest,
|
|
29
29
|
resolveProtectedGlobs
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-5VCOWTTP.js";
|
|
30
|
+
} from "./chunk-WSJ77EHO.js";
|
|
32
31
|
import {
|
|
33
32
|
KIT_VERSION
|
|
34
33
|
} from "./chunk-7HDQEK6T.js";
|
|
34
|
+
import "./chunk-C26I6HTO.js";
|
|
35
35
|
import {
|
|
36
36
|
readJson
|
|
37
37
|
} from "./chunk-77V75A7O.js";
|