@dadado/agent-kit-cli 6.26.2 → 6.27.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/build-stamp.json +6 -0
- package/dist/{chunk-FB6G6OD6.js → chunk-D2ZE5ET2.js} +126 -18
- package/dist/{chunk-PCIYXGB3.js → chunk-EAUWR55Q.js} +20 -0
- package/dist/{chunk-PLLXFSN2.js → chunk-WV2TVUIB.js} +2 -2
- package/dist/{chunk-SYRJ5TTK.js → chunk-ZYQKNAFD.js} +23 -2
- package/dist/{doctor-KGUWU5SN.js → doctor-TVO44D2E.js} +2 -2
- package/dist/{hook-UPZ3CPYS.js → hook-Q3GNZHFH.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/{init-ZHLVXEVT.js → init-J6UZERKY.js} +3 -3
- package/dist/{install-XWOG64W3.js → install-6QLJIS64.js} +3 -3
- package/dist/{session-start-NC2HE5X5.js → session-start-2OXPYVLE.js} +4 -2
- package/dist/{sessions-WWWLYPW6.js → sessions-TUNLCHMK.js} +1 -1
- package/package.json +2 -2
|
@@ -20,10 +20,114 @@ import {
|
|
|
20
20
|
writeJson
|
|
21
21
|
} from "./chunk-5B4DVO6C.js";
|
|
22
22
|
|
|
23
|
+
// src/lifecycle/cli-dist-stamp.ts
|
|
24
|
+
import { execFile } from "child_process";
|
|
25
|
+
import { readFile, stat, writeFile } from "fs/promises";
|
|
26
|
+
import path from "path";
|
|
27
|
+
var CLI_BUILD_STAMP_FILE = "build-stamp.json";
|
|
28
|
+
var CLI_DIST_ENTRY_REL = path.join("packages", "cli", "dist", "index.js");
|
|
29
|
+
var KIT_CLI_PACKAGE_NAME = "@dadado/agent-kit-cli";
|
|
30
|
+
var CLI_DIST_STALE_FIX = "run `pnpm build` in packages/cli";
|
|
31
|
+
var GIT_TIMEOUT_MS = 2e3;
|
|
32
|
+
var defaultGitRunner = (cwd, args) => new Promise((resolve) => {
|
|
33
|
+
try {
|
|
34
|
+
execFile(
|
|
35
|
+
"git",
|
|
36
|
+
args,
|
|
37
|
+
{ cwd, encoding: "utf8", timeout: GIT_TIMEOUT_MS, windowsHide: true },
|
|
38
|
+
(err, stdout) => resolve(err ? null : String(stdout))
|
|
39
|
+
);
|
|
40
|
+
} catch {
|
|
41
|
+
resolve(null);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
var SHA_RE = /^[0-9a-f]{40,64}$/;
|
|
45
|
+
async function readCliBuildStamp(distDir) {
|
|
46
|
+
try {
|
|
47
|
+
const raw = JSON.parse(
|
|
48
|
+
await readFile(path.join(distDir, CLI_BUILD_STAMP_FILE), "utf8")
|
|
49
|
+
);
|
|
50
|
+
if (!raw || typeof raw !== "object") return null;
|
|
51
|
+
const sourceCommit = typeof raw.sourceCommit === "string" && SHA_RE.test(raw.sourceCommit) ? raw.sourceCommit : null;
|
|
52
|
+
return {
|
|
53
|
+
schemaVersion: typeof raw.schemaVersion === "number" ? raw.schemaVersion : 0,
|
|
54
|
+
sourceCommit,
|
|
55
|
+
sourceDirty: typeof raw.sourceDirty === "boolean" ? raw.sourceDirty : null,
|
|
56
|
+
builtAt: typeof raw.builtAt === "string" ? raw.builtAt : ""
|
|
57
|
+
};
|
|
58
|
+
} catch {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async function assessCliDistFreshness(root, deps = {}) {
|
|
63
|
+
try {
|
|
64
|
+
const cliDir = path.join(path.resolve(root), "packages", "cli");
|
|
65
|
+
const distDir = path.join(cliDir, "dist");
|
|
66
|
+
if (!await isFile(path.join(distDir, "index.js"))) return null;
|
|
67
|
+
if (!await isDir(path.join(cliDir, "src"))) return null;
|
|
68
|
+
if (!await isKitCliPackage(cliDir)) return null;
|
|
69
|
+
const stamp = await readCliBuildStamp(distDir);
|
|
70
|
+
if (!stamp) return { state: "missing" };
|
|
71
|
+
if (!stamp.sourceCommit) return { state: "unknown-source" };
|
|
72
|
+
const git = deps.git ?? defaultGitRunner;
|
|
73
|
+
const out = await git(cliDir, [
|
|
74
|
+
"rev-list",
|
|
75
|
+
"--count",
|
|
76
|
+
`${stamp.sourceCommit}..HEAD`,
|
|
77
|
+
"--",
|
|
78
|
+
"src"
|
|
79
|
+
]);
|
|
80
|
+
const ahead = out === null ? Number.NaN : Number.parseInt(out.trim(), 10);
|
|
81
|
+
if (!Number.isFinite(ahead) || ahead < 0) return null;
|
|
82
|
+
return ahead === 0 ? { state: "fresh" } : { state: "stale", sourceCommit: stamp.sourceCommit, ahead };
|
|
83
|
+
} catch {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function describeCliDistFreshness(f) {
|
|
88
|
+
if (!f || f.state === "fresh") return null;
|
|
89
|
+
if (f.state === "stale") {
|
|
90
|
+
const commits = f.ahead === 1 ? "1 commit" : `${f.ahead} commits`;
|
|
91
|
+
return `packages/cli/dist was built from ${f.sourceCommit.slice(0, 8)} and packages/cli/src is ${commits} ahead`;
|
|
92
|
+
}
|
|
93
|
+
if (f.state === "missing") {
|
|
94
|
+
return "packages/cli/dist has no build stamp (built before stamps existed or outside `pnpm build`), so its source age is unknown";
|
|
95
|
+
}
|
|
96
|
+
return "packages/cli/dist build stamp has no source commit (built without git history), so its source age is unknown";
|
|
97
|
+
}
|
|
98
|
+
function factoryRootFromScript(scriptPath) {
|
|
99
|
+
if (!scriptPath) return null;
|
|
100
|
+
const abs = path.resolve(scriptPath);
|
|
101
|
+
const suffix = path.sep + CLI_DIST_ENTRY_REL;
|
|
102
|
+
return abs.endsWith(suffix) ? abs.slice(0, -suffix.length) || path.sep : null;
|
|
103
|
+
}
|
|
104
|
+
async function isKitCliPackage(cliDir) {
|
|
105
|
+
try {
|
|
106
|
+
const pkg = JSON.parse(await readFile(path.join(cliDir, "package.json"), "utf8"));
|
|
107
|
+
return pkg.name === KIT_CLI_PACKAGE_NAME;
|
|
108
|
+
} catch {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function isFile(p) {
|
|
113
|
+
try {
|
|
114
|
+
return (await stat(p)).isFile();
|
|
115
|
+
} catch {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async function isDir(p) {
|
|
120
|
+
try {
|
|
121
|
+
return (await stat(p)).isDirectory();
|
|
122
|
+
} catch {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
23
127
|
// src/readiness/install-health.ts
|
|
24
|
-
import { access, readFile, realpath } from "fs/promises";
|
|
128
|
+
import { access, readFile as readFile2, realpath } from "fs/promises";
|
|
25
129
|
import { homedir } from "os";
|
|
26
|
-
import
|
|
130
|
+
import path2 from "path";
|
|
27
131
|
var INSTALL_HEALTH_SNAPSHOT_RELATIVE_PATH = ".cursor/context/install-health.json";
|
|
28
132
|
function miseToolEntry(packageName) {
|
|
29
133
|
return `"npm:${packageName}" = { version = "latest", allow_low_downloads = true, minimum_release_age = "0s" }`;
|
|
@@ -161,7 +265,7 @@ function assessNodeManager(input) {
|
|
|
161
265
|
}
|
|
162
266
|
const running = input.nodeExecPath ? classifyNodeManagerPath(input.nodeExecPath, input.platform) : null;
|
|
163
267
|
const runningVersion = running && running.manager === match.manager ? running.nodeVersion : null;
|
|
164
|
-
const packageName = packageForBin(
|
|
268
|
+
const packageName = packageForBin(path2.basename(input.binPath));
|
|
165
269
|
const remedy = nodeManagerFix(match.manager, packageName, match.nodeVersion, runningVersion);
|
|
166
270
|
const drift = runningVersion && runningVersion !== match.nodeVersion ? `; node now resolves to ${runningVersion}, so this copy is already orphaned` : "";
|
|
167
271
|
const where2 = match.manager === "mise" ? "; add the fix line under [tools] in ~/.config/mise/config.toml" : remedy.also ? `; ${remedy.also}` : "";
|
|
@@ -180,7 +284,7 @@ var HOME_INSTALL_RELS = [
|
|
|
180
284
|
".cursor/commands"
|
|
181
285
|
];
|
|
182
286
|
function assessHomeInstall(input) {
|
|
183
|
-
if (
|
|
287
|
+
if (path2.resolve(input.cwd) === path2.resolve(input.homeDir)) {
|
|
184
288
|
return check("home-install", "ok", "Running in the home directory: this is the home install");
|
|
185
289
|
}
|
|
186
290
|
if (!input.homeManifestVersion) {
|
|
@@ -254,7 +358,7 @@ async function assessInstallHealth(options) {
|
|
|
254
358
|
const platform = options.platform ?? process.platform;
|
|
255
359
|
const homeDir = options.homeDir ?? homedir();
|
|
256
360
|
const realpathImpl = options.realpathImpl ?? realpath;
|
|
257
|
-
const readFileImpl = options.readFileImpl ?? ((p) =>
|
|
361
|
+
const readFileImpl = options.readFileImpl ?? ((p) => readFile2(p, "utf8"));
|
|
258
362
|
const existsImpl = options.existsImpl ?? defaultExists;
|
|
259
363
|
let binRealPath = null;
|
|
260
364
|
if (options.binPath) {
|
|
@@ -262,14 +366,14 @@ async function assessInstallHealth(options) {
|
|
|
262
366
|
}
|
|
263
367
|
let homeManifestVersion = null;
|
|
264
368
|
try {
|
|
265
|
-
const raw = JSON.parse(await readFileImpl(
|
|
369
|
+
const raw = JSON.parse(await readFileImpl(path2.join(homeDir, ".cursor", "agent-kit.json")));
|
|
266
370
|
if (typeof raw.version === "string" && raw.version) homeManifestVersion = raw.version;
|
|
267
371
|
} catch {
|
|
268
372
|
}
|
|
269
373
|
const presentRels = [];
|
|
270
374
|
if (homeManifestVersion) {
|
|
271
375
|
for (const rel of HOME_INSTALL_RELS) {
|
|
272
|
-
if (await existsImpl(
|
|
376
|
+
if (await existsImpl(path2.join(homeDir, rel)).catch(() => false)) presentRels.push(rel);
|
|
273
377
|
}
|
|
274
378
|
}
|
|
275
379
|
const checks = [
|
|
@@ -318,23 +422,23 @@ function npmLatestCheckAllowed(env, config) {
|
|
|
318
422
|
return updateCheckAllowed(env, config);
|
|
319
423
|
}
|
|
320
424
|
async function writeInstallHealthSnapshot(rootDir, report, generatedAt = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
321
|
-
const snapshotPath =
|
|
425
|
+
const snapshotPath = path2.join(rootDir, INSTALL_HEALTH_SNAPSHOT_RELATIVE_PATH);
|
|
322
426
|
await writeJson(snapshotPath, { version: 1, generatedAt, ...report });
|
|
323
427
|
return snapshotPath;
|
|
324
428
|
}
|
|
325
429
|
|
|
326
430
|
// src/lifecycle/update-notice.ts
|
|
327
431
|
import { randomUUID } from "crypto";
|
|
328
|
-
import { mkdir, readFile as
|
|
432
|
+
import { mkdir, readFile as readFile3, realpath as realpath2, rename, rm, writeFile as writeFile2 } from "fs/promises";
|
|
329
433
|
import { homedir as homedir2 } from "os";
|
|
330
|
-
import
|
|
434
|
+
import path3 from "path";
|
|
331
435
|
var UPDATE_NOTICE_FILENAME = "update-notice.json";
|
|
332
436
|
var UPDATE_NOTICE_SCHEMA_VERSION = 1;
|
|
333
437
|
var UPDATE_NOTICE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
334
438
|
var UPDATE_NOTICE_SESSION_FETCH_TIMEOUT_MS = 1500;
|
|
335
439
|
var UPDATE_NOTICE_KINDS = /* @__PURE__ */ new Set(["repo", "home"]);
|
|
336
440
|
function resolveUpdateNoticeFile(env = process.env, home = homedir2()) {
|
|
337
|
-
return
|
|
441
|
+
return path3.join(path3.dirname(resolveInstallsFile(env, home)), UPDATE_NOTICE_FILENAME);
|
|
338
442
|
}
|
|
339
443
|
function isCliNpmLatest(value) {
|
|
340
444
|
if (!value || typeof value !== "object") return false;
|
|
@@ -343,7 +447,7 @@ function isCliNpmLatest(value) {
|
|
|
343
447
|
}
|
|
344
448
|
async function readUpdateNoticeCache(file) {
|
|
345
449
|
try {
|
|
346
|
-
const raw = JSON.parse(await
|
|
450
|
+
const raw = JSON.parse(await readFile3(file, "utf8"));
|
|
347
451
|
if (!raw || raw.schemaVersion !== UPDATE_NOTICE_SCHEMA_VERSION) return null;
|
|
348
452
|
if (typeof raw.checkedAt !== "string" || Number.isNaN(Date.parse(raw.checkedAt))) return null;
|
|
349
453
|
return {
|
|
@@ -359,8 +463,8 @@ async function readUpdateNoticeCache(file) {
|
|
|
359
463
|
async function writeUpdateNoticeCache(file, cache) {
|
|
360
464
|
const tmp = `${file}.${process.pid}.${randomUUID()}.tmp`;
|
|
361
465
|
try {
|
|
362
|
-
await mkdir(
|
|
363
|
-
await
|
|
466
|
+
await mkdir(path3.dirname(file), { recursive: true });
|
|
467
|
+
await writeFile2(tmp, `${JSON.stringify(cache, null, 2)}
|
|
364
468
|
`, "utf8");
|
|
365
469
|
await rename(tmp, file);
|
|
366
470
|
} catch {
|
|
@@ -394,9 +498,9 @@ async function cachedCliNpmLatest(options = {}) {
|
|
|
394
498
|
return npm;
|
|
395
499
|
}
|
|
396
500
|
function homeRelative2(p, home) {
|
|
397
|
-
const rel =
|
|
501
|
+
const rel = path3.relative(home, p);
|
|
398
502
|
if (rel === "") return "~";
|
|
399
|
-
if (!rel.startsWith("..") && !
|
|
503
|
+
if (!rel.startsWith("..") && !path3.isAbsolute(rel)) return `~/${rel.split(path3.sep).join("/")}`;
|
|
400
504
|
return p;
|
|
401
505
|
}
|
|
402
506
|
function semverLess(a, b) {
|
|
@@ -499,15 +603,19 @@ async function persistNotice(file, notice) {
|
|
|
499
603
|
}
|
|
500
604
|
|
|
501
605
|
// src/scanner/snapshot.ts
|
|
502
|
-
import
|
|
606
|
+
import path4 from "path";
|
|
503
607
|
var READINESS_SNAPSHOT_RELATIVE_PATH = ".cursor/context/readiness.json";
|
|
504
608
|
async function writeReadinessSnapshot(rootDir, report) {
|
|
505
|
-
const snapshotPath =
|
|
609
|
+
const snapshotPath = path4.join(rootDir, READINESS_SNAPSHOT_RELATIVE_PATH);
|
|
506
610
|
await writeJson(snapshotPath, report);
|
|
507
611
|
return snapshotPath;
|
|
508
612
|
}
|
|
509
613
|
|
|
510
614
|
export {
|
|
615
|
+
CLI_DIST_STALE_FIX,
|
|
616
|
+
assessCliDistFreshness,
|
|
617
|
+
describeCliDistFreshness,
|
|
618
|
+
factoryRootFromScript,
|
|
511
619
|
assessInstallHealth,
|
|
512
620
|
npmLatestCheckAllowed,
|
|
513
621
|
writeInstallHealthSnapshot,
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLI_DIST_STALE_FIX,
|
|
3
|
+
assessCliDistFreshness,
|
|
4
|
+
describeCliDistFreshness
|
|
5
|
+
} from "./chunk-D2ZE5ET2.js";
|
|
1
6
|
import {
|
|
2
7
|
CLAUDE_SETTINGS_REL,
|
|
3
8
|
GUARD_SHELL_HOOK_MARKER,
|
|
@@ -198,6 +203,20 @@ async function resolveGuardProbeArgv(root) {
|
|
|
198
203
|
const hit = await findOnPath("agent-kit");
|
|
199
204
|
return hit ? [hit] : null;
|
|
200
205
|
}
|
|
206
|
+
async function assessFactoryCliDist(rootDir, deps = {}) {
|
|
207
|
+
try {
|
|
208
|
+
const root = path.resolve(rootDir);
|
|
209
|
+
const argv = await resolveGuardProbeArgv(root);
|
|
210
|
+
const dist = path.join(root, "packages", "cli", "dist", "index.js");
|
|
211
|
+
if (!argv || argv[argv.length - 1] !== dist) return [];
|
|
212
|
+
const gap = describeCliDistFreshness(await assessCliDistFreshness(root, deps));
|
|
213
|
+
return gap ? [
|
|
214
|
+
`Factory hooks (session-start and the PreToolUse guard) run a stale CLI: ${gap}; ${CLI_DIST_STALE_FIX}.`
|
|
215
|
+
] : [];
|
|
216
|
+
} catch {
|
|
217
|
+
return [];
|
|
218
|
+
}
|
|
219
|
+
}
|
|
201
220
|
async function assessClaudeGuardProbe(rootDir) {
|
|
202
221
|
const root = path.resolve(rootDir);
|
|
203
222
|
let text;
|
|
@@ -250,6 +269,7 @@ async function assessHooksHealth(rootDir) {
|
|
|
250
269
|
...await assessClaudeMergeAllowGuard(root),
|
|
251
270
|
...await assessGitHooksInstallDrift(root),
|
|
252
271
|
...await assessSignatureGateHook(root),
|
|
272
|
+
...await assessFactoryCliDist(root),
|
|
253
273
|
...await assessClaudeGuardProbe(root),
|
|
254
274
|
...await assessClaudeCommandAdapters(root)
|
|
255
275
|
];
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
assessClaudeCommandAdapters,
|
|
21
21
|
executeSafeReadinessFixes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EAUWR55Q.js";
|
|
23
23
|
import {
|
|
24
24
|
cachedCliNpmLatest,
|
|
25
25
|
writeReadinessSnapshot
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-D2ZE5ET2.js";
|
|
27
27
|
import {
|
|
28
28
|
writeClaudeSessionStartHook
|
|
29
29
|
} from "./chunk-BVZDPVUL.js";
|
|
@@ -20,10 +20,14 @@ import {
|
|
|
20
20
|
writePlanIndex
|
|
21
21
|
} from "./chunk-TTUFIE26.js";
|
|
22
22
|
import {
|
|
23
|
+
CLI_DIST_STALE_FIX,
|
|
23
24
|
READINESS_SNAPSHOT_RELATIVE_PATH,
|
|
24
25
|
UPDATE_NOTICE_SESSION_FETCH_TIMEOUT_MS,
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
assessCliDistFreshness,
|
|
27
|
+
computeUpdateNotice,
|
|
28
|
+
describeCliDistFreshness,
|
|
29
|
+
factoryRootFromScript
|
|
30
|
+
} from "./chunk-D2ZE5ET2.js";
|
|
27
31
|
import {
|
|
28
32
|
stampLastCheckedAt
|
|
29
33
|
} from "./chunk-Y5526WCN.js";
|
|
@@ -958,9 +962,23 @@ async function liveAgentsSection(root, deps = {}) {
|
|
|
958
962
|
return null;
|
|
959
963
|
}
|
|
960
964
|
}
|
|
965
|
+
async function factoryCliDistSection(scriptPath, deps = {}) {
|
|
966
|
+
try {
|
|
967
|
+
const root = factoryRootFromScript(scriptPath ?? void 0);
|
|
968
|
+
if (!root) return null;
|
|
969
|
+
const gap = describeCliDistFreshness(await assessCliDistFreshness(root, deps));
|
|
970
|
+
return gap ? `Factory hooks: ${gap}; ${CLI_DIST_STALE_FIX}.` : null;
|
|
971
|
+
} catch {
|
|
972
|
+
return null;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
961
975
|
async function buildSessionStartAdditionalContext(rootDir, _payload = {}, deps = {}) {
|
|
962
976
|
const root = path.resolve(rootDir);
|
|
963
977
|
const liveAgentsPending = liveAgentsSection(root, { collect: deps.liveRoster });
|
|
978
|
+
const factoryDistPending = factoryCliDistSection(
|
|
979
|
+
deps.cliScript === void 0 ? process.argv[1] : deps.cliScript,
|
|
980
|
+
{ git: deps.git }
|
|
981
|
+
);
|
|
964
982
|
const handoffPath = path.join(root, HANDOFF_REL);
|
|
965
983
|
const handoffFull = await readFull(handoffPath);
|
|
966
984
|
const handoff = capHandoffExcerpt(handoffFull);
|
|
@@ -974,6 +992,8 @@ async function buildSessionStartAdditionalContext(rootDir, _payload = {}, deps =
|
|
|
974
992
|
if (dogfood) parts.push(dogfood);
|
|
975
993
|
const colonyHost = colonyHostSection();
|
|
976
994
|
if (colonyHost) parts.push(colonyHost);
|
|
995
|
+
const factoryDist = await factoryDistPending.catch(() => null);
|
|
996
|
+
if (factoryDist) parts.push(factoryDist);
|
|
977
997
|
const deadlineMs = deps.deadlineMs ?? SESSION_START_SECTION_DEADLINE_MS;
|
|
978
998
|
const newAttempt = () => ({ spawned: false, timedOut: false, result: null });
|
|
979
999
|
const updateAttempt = newAttempt();
|
|
@@ -1091,6 +1111,7 @@ export {
|
|
|
1091
1111
|
LIVE_AGENTS_SECTION_MAX_CHARS,
|
|
1092
1112
|
formatLiveAgentsSection,
|
|
1093
1113
|
liveAgentsSection,
|
|
1114
|
+
factoryCliDistSection,
|
|
1094
1115
|
buildSessionStartAdditionalContext,
|
|
1095
1116
|
resolveSessionRoot
|
|
1096
1117
|
};
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
assessHooksHealth,
|
|
3
3
|
executeSafeReadinessFixes,
|
|
4
4
|
refreshRepositoryProfile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EAUWR55Q.js";
|
|
6
6
|
import {
|
|
7
7
|
assessInstallHealth,
|
|
8
8
|
cachedCliNpmLatest,
|
|
9
9
|
npmLatestCheckAllowed,
|
|
10
10
|
writeInstallHealthSnapshot,
|
|
11
11
|
writeReadinessSnapshot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D2ZE5ET2.js";
|
|
13
13
|
import "./chunk-BVZDPVUL.js";
|
|
14
14
|
import "./chunk-FUSNEYGU.js";
|
|
15
15
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSessionStartAdditionalContext,
|
|
3
3
|
resolveSessionRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZYQKNAFD.js";
|
|
5
5
|
import "./chunk-XXPI4H4D.js";
|
|
6
6
|
import "./chunk-2YU2H7I6.js";
|
|
7
7
|
import {
|
|
@@ -11,7 +11,7 @@ import "./chunk-FOVHFMSH.js";
|
|
|
11
11
|
import "./chunk-MCH3E46V.js";
|
|
12
12
|
import "./chunk-4CRBUEJ6.js";
|
|
13
13
|
import "./chunk-TTUFIE26.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-D2ZE5ET2.js";
|
|
15
15
|
import "./chunk-NHJ4IAVN.js";
|
|
16
16
|
import "./chunk-Y5526WCN.js";
|
|
17
17
|
import "./chunk-MWRYQLEG.js";
|
package/dist/index.js
CHANGED
|
@@ -251,11 +251,11 @@ var main = defineCommand({
|
|
|
251
251
|
version: KIT_VERSION
|
|
252
252
|
},
|
|
253
253
|
subCommands: {
|
|
254
|
-
init: () => import("./init-
|
|
255
|
-
install: () => import("./install-
|
|
254
|
+
init: () => import("./init-J6UZERKY.js").then((m) => m.initCommand),
|
|
255
|
+
install: () => import("./install-6QLJIS64.js").then((m) => m.installCommand),
|
|
256
256
|
scan: () => import("./scan-7D3RMO34.js").then((m) => m.scanCommand),
|
|
257
257
|
add: () => import("./add-G7KEZLWP.js").then((m) => m.addCommand),
|
|
258
|
-
doctor: () => import("./doctor-
|
|
258
|
+
doctor: () => import("./doctor-TVO44D2E.js").then((m) => m.doctorCommand),
|
|
259
259
|
"setup-global": () => import("./setup-global-WDMARD4Z.js").then((m) => m.setupGlobalCommand),
|
|
260
260
|
status: () => import("./status-2WNJL7PP.js").then((m) => m.statusCommand),
|
|
261
261
|
update: () => import("./update-OXCWYN3Y.js").then((m) => m.updateCommand),
|
|
@@ -279,10 +279,10 @@ var main = defineCommand({
|
|
|
279
279
|
dashboard: () => import("./dashboard-6V6PCNYF.js").then((m) => m.dashboardCommand),
|
|
280
280
|
"dashboard-broadcast": () => import("./dashboard-broadcast-PMVQ7PXU.js").then((m) => m.dashboardBroadcastCommand),
|
|
281
281
|
"mission-control": () => import("./mission-control-IGOI3WHS.js").then((m) => m.missionControlCommand),
|
|
282
|
-
hook: () => import("./hook-
|
|
282
|
+
hook: () => import("./hook-Q3GNZHFH.js").then((m) => m.hookCommand),
|
|
283
283
|
guard: () => import("./guard-ZO4Z3LLB.js").then((m) => m.guardCommand),
|
|
284
284
|
monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
|
|
285
|
-
sessions: () => import("./sessions-
|
|
285
|
+
sessions: () => import("./sessions-TUNLCHMK.js").then((m) => m.sessionsCommand),
|
|
286
286
|
"outcome-ledger": () => import("./outcome-ledger-XLWHWPVQ.js").then((m) => m.outcomeLedgerCommand),
|
|
287
287
|
validate: () => import("./validate-V2CW7J4B.js").then((m) => m.validateCommand),
|
|
288
288
|
"engine-info": () => import("./engine-info-VM4VPGQM.js").then((m) => m.engineInfoCommand),
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
nextStepAfterInstall,
|
|
3
3
|
performInstall,
|
|
4
4
|
printInstallEpilogue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WV2TVUIB.js";
|
|
6
6
|
import {
|
|
7
7
|
NON_INTERACTIVE_ROOT_ARGS
|
|
8
8
|
} from "./chunk-2GXN7HVG.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
logApplyStats
|
|
12
12
|
} from "./chunk-HS7LVVLO.js";
|
|
13
13
|
import "./chunk-SWJJW624.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-EAUWR55Q.js";
|
|
15
|
+
import "./chunk-D2ZE5ET2.js";
|
|
16
16
|
import "./chunk-BVZDPVUL.js";
|
|
17
17
|
import "./chunk-FUSNEYGU.js";
|
|
18
18
|
import {
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
nextStepAfterInstall,
|
|
4
4
|
performInstall,
|
|
5
5
|
printInstallEpilogue
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WV2TVUIB.js";
|
|
7
7
|
import "./chunk-2GXN7HVG.js";
|
|
8
8
|
import "./chunk-HS7LVVLO.js";
|
|
9
9
|
import "./chunk-SWJJW624.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EAUWR55Q.js";
|
|
11
|
+
import "./chunk-D2ZE5ET2.js";
|
|
12
12
|
import "./chunk-BVZDPVUL.js";
|
|
13
13
|
import "./chunk-FUSNEYGU.js";
|
|
14
14
|
import "./chunk-NHJ4IAVN.js";
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
colonyHostSection,
|
|
13
13
|
cursorAwarenessSection,
|
|
14
14
|
detachedAuditSessionsSection,
|
|
15
|
+
factoryCliDistSection,
|
|
15
16
|
formatLiveAgentsSection,
|
|
16
17
|
formatSessionAge,
|
|
17
18
|
listDetachedAuditSessions,
|
|
@@ -27,14 +28,14 @@ import {
|
|
|
27
28
|
updateCheckSection,
|
|
28
29
|
updateNoticeSection,
|
|
29
30
|
withDeadline
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZYQKNAFD.js";
|
|
31
32
|
import "./chunk-XXPI4H4D.js";
|
|
32
33
|
import "./chunk-2YU2H7I6.js";
|
|
33
34
|
import "./chunk-FOVHFMSH.js";
|
|
34
35
|
import "./chunk-MCH3E46V.js";
|
|
35
36
|
import "./chunk-4CRBUEJ6.js";
|
|
36
37
|
import "./chunk-TTUFIE26.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-D2ZE5ET2.js";
|
|
38
39
|
import "./chunk-NHJ4IAVN.js";
|
|
39
40
|
import "./chunk-Y5526WCN.js";
|
|
40
41
|
import "./chunk-MWRYQLEG.js";
|
|
@@ -62,6 +63,7 @@ export {
|
|
|
62
63
|
colonyHostSection,
|
|
63
64
|
cursorAwarenessSection,
|
|
64
65
|
detachedAuditSessionsSection,
|
|
66
|
+
factoryCliDistSection,
|
|
65
67
|
formatLiveAgentsSection,
|
|
66
68
|
formatSessionAge,
|
|
67
69
|
listDetachedAuditSessions,
|
|
@@ -79,7 +79,7 @@ var sessionsCommand = defineCommand({
|
|
|
79
79
|
const cwd = process.cwd();
|
|
80
80
|
const workspace = path.resolve(cwd, typeof args.cwd === "string" && args.cwd ? args.cwd : ".");
|
|
81
81
|
if (args.live) {
|
|
82
|
-
const { listDetachedAuditSessions } = await import("./session-start-
|
|
82
|
+
const { listDetachedAuditSessions } = await import("./session-start-2OXPYVLE.js");
|
|
83
83
|
const roster = await collectLiveRoster(workspace, { listAudit: listDetachedAuditSessions });
|
|
84
84
|
process.stdout.write(
|
|
85
85
|
args.json ? `${JSON.stringify(roster, null, 2)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dadado/agent-kit-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.27.0",
|
|
4
4
|
"description": "Agent Kit CLI: HITL framework install and tooling for AI-assisted IDEs (rules, skills, plan/handoff, context).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"sync-dashboard": "node ../../scripts/sync-cli-dashboard.mjs",
|
|
38
38
|
"prepack": "node ../../scripts/sync-cli-dashboard.mjs",
|
|
39
39
|
"prepublishOnly": "node ../../scripts/verify-cli-dashboard-pack.mjs",
|
|
40
|
-
"build": "node ../../scripts/sync-cli-dashboard.mjs && tsup src/index.ts --format esm --dts --clean",
|
|
40
|
+
"build": "node ../../scripts/sync-cli-dashboard.mjs && tsup src/index.ts --format esm --dts --clean && (tsx src/lifecycle/write-cli-build-stamp.ts || echo build-stamp: skipped)",
|
|
41
41
|
"dev": "tsx src/index.ts",
|
|
42
42
|
"start": "tsx src/index.ts",
|
|
43
43
|
"lint": "biome check src pi",
|