@dadado/agent-kit-cli 6.26.2 → 6.28.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.
Files changed (34) hide show
  1. package/dist/{add-G7KEZLWP.js → add-WILYTGO7.js} +3 -3
  2. package/dist/build-stamp.json +6 -0
  3. package/dist/{chunk-Y5526WCN.js → chunk-43JHKSN4.js} +2 -2
  4. package/dist/{chunk-HGB4DHXV.js → chunk-5EJHIT2K.js} +2 -2
  5. package/dist/{chunk-MWRYQLEG.js → chunk-BDTB7AUO.js} +3 -3
  6. package/dist/{chunk-FUSNEYGU.js → chunk-CHYROVQB.js} +1 -1
  7. package/dist/{chunk-SWJJW624.js → chunk-I3GF72CH.js} +1 -1
  8. package/dist/{chunk-FB6G6OD6.js → chunk-KWQEY6OG.js} +127 -19
  9. package/dist/{chunk-PLLXFSN2.js → chunk-KXC6NCX2.js} +9 -9
  10. package/dist/{chunk-RRJVC35Y.js → chunk-PIL4G5SI.js} +1 -1
  11. package/dist/{chunk-ZNZHDPS3.js → chunk-RHP44DQQ.js} +1 -1
  12. package/dist/{chunk-PCIYXGB3.js → chunk-RX2ZWBQM.js} +22 -2
  13. package/dist/{chunk-BVZDPVUL.js → chunk-SOSU22LZ.js} +1 -1
  14. package/dist/{chunk-2GXN7HVG.js → chunk-TI7BX6JV.js} +4 -4
  15. package/dist/{chunk-SYRJ5TTK.js → chunk-VI4UEKRN.js} +24 -3
  16. package/dist/{chunk-RJP47EGS.js → chunk-WMMFTZ6O.js} +3 -1
  17. package/dist/{chunk-DOMBVLI4.js → chunk-XSNKZM3M.js} +10 -10
  18. package/dist/{commands-SCFSX4U4.js → commands-6LJACZME.js} +2 -2
  19. package/dist/{contribute-HE4WCBRY.js → contribute-SGMAG35M.js} +4 -4
  20. package/dist/{diff-3XUZM7ZT.js → diff-WPNZDMB2.js} +5 -5
  21. package/dist/{doctor-KGUWU5SN.js → doctor-SW42AH5D.js} +85 -15
  22. package/dist/{guard-ZO4Z3LLB.js → guard-CH4A7QIZ.js} +31 -12
  23. package/dist/{hook-UPZ3CPYS.js → hook-ASKMJGBB.js} +7 -7
  24. package/dist/index.js +14 -14
  25. package/dist/{init-ZHLVXEVT.js → init-IJ53YMKS.js} +13 -13
  26. package/dist/{install-XWOG64W3.js → install-BHOMUS2G.js} +13 -13
  27. package/dist/{paths-JTPV6SXH.js → paths-PSG64N6P.js} +2 -2
  28. package/dist/{session-start-NC2HE5X5.js → session-start-RWPMRY6N.js} +9 -7
  29. package/dist/{sessions-WWWLYPW6.js → sessions-4IDYAFBL.js} +1 -1
  30. package/dist/{setup-global-WDMARD4Z.js → setup-global-QEGG3OG2.js} +6 -6
  31. package/dist/{status-2WNJL7PP.js → status-A375W7ZU.js} +6 -6
  32. package/dist/{update-OXCWYN3Y.js → update-B2I3VDIG.js} +11 -11
  33. package/dist/{update-all-E2MV6KME.js → update-all-PIEDQUGQ.js} +11 -11
  34. package/package.json +8 -6
@@ -8,7 +8,7 @@ import "./chunk-TTUFIE26.js";
8
8
  import {
9
9
  CURSOR_COMMANDS_DIR_REL,
10
10
  discoverInstalledCommands
11
- } from "./chunk-FUSNEYGU.js";
11
+ } from "./chunk-CHYROVQB.js";
12
12
  import "./chunk-WGLPZXNU.js";
13
13
  import "./chunk-Q35TWISF.js";
14
14
  import "./chunk-QTON2GQX.js";
@@ -16,7 +16,7 @@ import {
16
16
  L0_ARTIFACTS
17
17
  } from "./chunk-CGXLR77R.js";
18
18
  import "./chunk-PFEUZXVT.js";
19
- import "./chunk-RJP47EGS.js";
19
+ import "./chunk-WMMFTZ6O.js";
20
20
  import {
21
21
  KIT_VERSION
22
22
  } from "./chunk-2G4K4ZI5.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  REGISTRY_CLI_ARGS,
3
3
  resolveRegistryFromCli
4
- } from "./chunk-SWJJW624.js";
4
+ } from "./chunk-I3GF72CH.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-ZB43YMHW.js";
8
8
  import {
9
9
  managedPairs
10
- } from "./chunk-HGB4DHXV.js";
10
+ } from "./chunk-5EJHIT2K.js";
11
11
  import "./chunk-CGXLR77R.js";
12
12
  import {
13
13
  loadAgentKitManifest,
14
14
  normalizeRelPath
15
- } from "./chunk-ZNZHDPS3.js";
15
+ } from "./chunk-RHP44DQQ.js";
16
16
  import {
17
17
  resolveContained
18
- } from "./chunk-RJP47EGS.js";
18
+ } from "./chunk-WMMFTZ6O.js";
19
19
  import "./chunk-IHVJTGYR.js";
20
20
  import "./chunk-KMK4T4ZM.js";
21
21
  import "./chunk-O7VMHCNN.js";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  REGISTRY_CLI_ARGS,
3
3
  resolveRegistryFromCli
4
- } from "./chunk-SWJJW624.js";
4
+ } from "./chunk-I3GF72CH.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-MWRYQLEG.js";
12
- import "./chunk-HGB4DHXV.js";
11
+ } from "./chunk-BDTB7AUO.js";
12
+ import "./chunk-5EJHIT2K.js";
13
13
  import "./chunk-CGXLR77R.js";
14
14
  import {
15
15
  canonicalizePackIds,
16
16
  formatUnknownPack,
17
17
  loadAgentKitManifest
18
- } from "./chunk-ZNZHDPS3.js";
19
- import "./chunk-RJP47EGS.js";
18
+ } from "./chunk-RHP44DQQ.js";
19
+ import "./chunk-WMMFTZ6O.js";
20
20
  import "./chunk-IHVJTGYR.js";
21
21
  import "./chunk-KMK4T4ZM.js";
22
22
  import "./chunk-O7VMHCNN.js";
@@ -2,16 +2,16 @@ import {
2
2
  assessHooksHealth,
3
3
  executeSafeReadinessFixes,
4
4
  refreshRepositoryProfile
5
- } from "./chunk-PCIYXGB3.js";
5
+ } from "./chunk-RX2ZWBQM.js";
6
6
  import {
7
7
  assessInstallHealth,
8
8
  cachedCliNpmLatest,
9
9
  npmLatestCheckAllowed,
10
10
  writeInstallHealthSnapshot,
11
11
  writeReadinessSnapshot
12
- } from "./chunk-FB6G6OD6.js";
13
- import "./chunk-BVZDPVUL.js";
14
- import "./chunk-FUSNEYGU.js";
12
+ } from "./chunk-KWQEY6OG.js";
13
+ import "./chunk-SOSU22LZ.js";
14
+ import "./chunk-CHYROVQB.js";
15
15
  import {
16
16
  feedInstallsRegistry
17
17
  } from "./chunk-NHJ4IAVN.js";
@@ -45,17 +45,17 @@ import {
45
45
  CLI_NPM_PACKAGES,
46
46
  fetchLatestCliNpmVersion,
47
47
  warnIfRunningCliBehindNpm
48
- } from "./chunk-Y5526WCN.js";
49
- import "./chunk-MWRYQLEG.js";
50
- import "./chunk-HGB4DHXV.js";
48
+ } from "./chunk-43JHKSN4.js";
49
+ import "./chunk-BDTB7AUO.js";
50
+ import "./chunk-5EJHIT2K.js";
51
51
  import "./chunk-CGXLR77R.js";
52
52
  import {
53
53
  loadContextConfig
54
54
  } from "./chunk-PFEUZXVT.js";
55
55
  import {
56
56
  loadAgentKitManifest
57
- } from "./chunk-ZNZHDPS3.js";
58
- import "./chunk-RJP47EGS.js";
57
+ } from "./chunk-RHP44DQQ.js";
58
+ import "./chunk-WMMFTZ6O.js";
59
59
  import "./chunk-IHVJTGYR.js";
60
60
  import "./chunk-KMK4T4ZM.js";
61
61
  import {
@@ -67,11 +67,68 @@ import {
67
67
  } from "./chunk-5B4DVO6C.js";
68
68
 
69
69
  // src/commands/doctor.ts
70
- import path from "path";
70
+ import path2 from "path";
71
71
  import { defineCommand } from "citty";
72
+
73
+ // src/invariants/env-file-guard.ts
74
+ import { execFile } from "child_process";
75
+ import { access } from "fs/promises";
76
+ import path from "path";
77
+ import { promisify } from "util";
78
+ var execFileAsync = promisify(execFile);
79
+ async function exists(file) {
80
+ return access(file).then(
81
+ () => true,
82
+ () => false
83
+ );
84
+ }
85
+ async function gitExit(cwd, args) {
86
+ try {
87
+ await execFileAsync("git", args, { cwd });
88
+ return 0;
89
+ } catch (error) {
90
+ const code = error.code;
91
+ if (typeof code !== "number") return null;
92
+ return code === 1 ? 1 : null;
93
+ }
94
+ }
95
+ async function assessEnvFile(rootDir) {
96
+ const hasEnv = await exists(path.join(rootDir, ".env"));
97
+ const hasExample = await exists(path.join(rootDir, ".env.example"));
98
+ if (!hasEnv) {
99
+ if (hasExample) {
100
+ return {
101
+ status: "missing-with-example",
102
+ severity: "info",
103
+ detail: ".env is absent but .env.example is present",
104
+ fix: "cp .env.example .env # then fill in real values (keep .env gitignored)"
105
+ };
106
+ }
107
+ return { status: "none", severity: "ok", detail: "no .env file" };
108
+ }
109
+ if (await gitExit(rootDir, ["ls-files", "--error-unmatch", "--", ".env"]) === 0) {
110
+ return {
111
+ status: "tracked",
112
+ severity: "error",
113
+ detail: ".env is tracked by git; its secrets are in the repository history",
114
+ fix: "git rm --cached .env, add `.env` to .gitignore, and rotate every secret it held"
115
+ };
116
+ }
117
+ if (await gitExit(rootDir, ["check-ignore", "-q", "--", ".env"]) === 1) {
118
+ return {
119
+ status: "not-ignored",
120
+ severity: "error",
121
+ detail: ".env exists but is not covered by .gitignore",
122
+ fix: "add `.env` to .gitignore (and `!.env.example` if you keep an example)"
123
+ };
124
+ }
125
+ return { status: "ok", severity: "ok", detail: ".env is gitignored and untracked" };
126
+ }
127
+
128
+ // src/commands/doctor.ts
72
129
  async function readDeferredEssentials(rootDir, report) {
73
130
  const config = await readJson(
74
- path.join(rootDir, ".cursor", "context", "config.json")
131
+ path2.join(rootDir, ".cursor", "context", "config.json")
75
132
  );
76
133
  const deferredItems = config?.onboarding?.deferredItems;
77
134
  if (!Array.isArray(deferredItems)) return [];
@@ -122,8 +179,9 @@ async function runInstallHealth(rootDir, env, options) {
122
179
  });
123
180
  }
124
181
  async function runDoctor(cwd, options = {}) {
125
- const rootDir = path.resolve(cwd);
182
+ const rootDir = path2.resolve(cwd);
126
183
  const hooks = await assessHooksHealth(rootDir);
184
+ const envFile = await assessEnvFile(rootDir);
127
185
  const workspaceParent = await detectWorkspaceParent(rootDir);
128
186
  if (workspaceParent) {
129
187
  const scan2 = await runScanner(rootDir);
@@ -137,6 +195,7 @@ async function runDoctor(cwd, options = {}) {
137
195
  safeChanges: [],
138
196
  hooks,
139
197
  env: env2,
198
+ envFile,
140
199
  // Machine-level checks still run; nothing is written in a parent folder.
141
200
  install: await runInstallHealth(rootDir, env2, options),
142
201
  deferredEssentials: [],
@@ -157,6 +216,7 @@ async function runDoctor(cwd, options = {}) {
157
216
  safeChanges: execution.changes,
158
217
  hooks,
159
218
  env,
219
+ envFile,
160
220
  install,
161
221
  deferredEssentials: await readDeferredEssentials(rootDir, execution.after)
162
222
  };
@@ -177,6 +237,7 @@ async function runDoctor(cwd, options = {}) {
177
237
  safeChanges: [],
178
238
  hooks,
179
239
  env,
240
+ envFile,
180
241
  install,
181
242
  profileRefreshed: refresh.changed,
182
243
  deferredEssentials: await readDeferredEssentials(rootDir, report2)
@@ -193,6 +254,7 @@ async function runDoctor(cwd, options = {}) {
193
254
  safeChanges: [],
194
255
  hooks,
195
256
  env,
257
+ envFile,
196
258
  install,
197
259
  deferredEssentials: await readDeferredEssentials(rootDir, report)
198
260
  };
@@ -207,6 +269,12 @@ function printInstallHealth(install) {
207
269
  }
208
270
  }
209
271
  }
272
+ function printEnvFile(envFile) {
273
+ if (envFile.status === "none") return;
274
+ const label = { ok: "ok", error: "ERROR", info: "hint" }[envFile.severity];
275
+ console.log(`env file: ${label} (${envFile.detail})`);
276
+ if (envFile.fix && envFile.severity !== "ok") console.log(` fix: ${envFile.fix}`);
277
+ }
210
278
  function printDoctorSummary(result, rootDir) {
211
279
  if (result.workspaceParent) {
212
280
  for (const line of workspaceParentAdvisoryLines(rootDir, result.workspaceParent, "doctor")) {
@@ -243,6 +311,7 @@ function printDoctorSummary(result, rootDir) {
243
311
  console.log(` - ${tip}`);
244
312
  }
245
313
  }
314
+ printEnvFile(result.envFile);
246
315
  console.log("environment:");
247
316
  const pathLabel = result.env.binOnPath ? `ok (v${result.env.binVersion ?? "unknown"} at ${result.env.binPath})` : "MISSING";
248
317
  console.log(` - bin on PATH (agent-kit): ${pathLabel}`);
@@ -304,7 +373,7 @@ var doctorCommand = defineCommand({
304
373
  }
305
374
  const npmAllowed = npmLatestCheckAllowed(
306
375
  process.env,
307
- await loadContextConfig(path.resolve(args.cwd)).catch(() => null)
376
+ await loadContextConfig(path2.resolve(args.cwd)).catch(() => null)
308
377
  );
309
378
  const run = () => runDoctor(args.cwd, {
310
379
  fixSafe: args["fix-safe"],
@@ -312,17 +381,18 @@ var doctorCommand = defineCommand({
312
381
  fetchNpmLatest: npmAllowed ? () => fetchLatestCliNpmVersion() : void 0
313
382
  });
314
383
  const result = args.json ? await run() : await withCliProgress("doctor", run);
315
- await feedInstallsRegistry(path.resolve(args.cwd));
384
+ await feedInstallsRegistry(path2.resolve(args.cwd));
316
385
  if (args.json) {
317
386
  console.log(JSON.stringify(result, null, 2));
318
387
  return;
319
388
  }
320
- printDoctorSummary(result, path.resolve(args.cwd));
389
+ printDoctorSummary(result, path2.resolve(args.cwd));
321
390
  }
322
391
  });
323
392
  export {
324
393
  doctorCommand,
325
394
  printDoctorSummary,
395
+ printEnvFile,
326
396
  printInstallHealth,
327
397
  runDoctor
328
398
  };
@@ -35,44 +35,61 @@ function formatGuardShellOutput(result, format) {
35
35
 
36
36
  // src/invariants/secrets-scan.ts
37
37
  var CITE = "agent-kit guard prompt (docs/cursor-native-audit.md)";
38
+ var PLACEHOLDER_VALUE = /x{3,}|example|changeme|dummy|test|placeholder|your[_-]|<|\$\{|\$\(|\{\{/i;
38
39
  var SECRET_PATTERNS = [
39
40
  {
40
41
  id: "json-secret-kv",
41
- re: /"(password|apiKey|api_key|secret|token|auth)"\s*:\s*"[^"]{12,}"/i
42
+ re: /"(password|apiKey|api_key|secret|token|auth)"\s*:\s*"[^"]{12,}"/i,
43
+ // Case-sensitive in the hook (no -i), unlike the prompt scan.
44
+ ere: '"(password|apiKey|api_key|secret|token|auth)"[[:space:]]*:[[:space:]]*"[^"]{12,}"'
42
45
  },
43
46
  {
44
47
  id: "env-assignment",
45
48
  re: /\b(?:API_KEY|SECRET|PASSWORD|TOKEN|ACCESS_KEY|PRIVATE_KEY)\s*=\s*['"]?[^\s'"]{12,}/i
46
49
  },
50
+ {
51
+ // Whole-line `NAME=value` where NAME merely *contains* a secret word (`HOSTINGER_API_TOKEN`):
52
+ // `env-assignment`'s word boundary cannot match inside `_TOKEN`. Placeholder-looking values are skipped.
53
+ id: "env-full-line",
54
+ re: /^[ \t]*(?:export[ \t]+)?[A-Z][A-Z0-9_]*(?:TOKEN|SECRET|API_KEY|PASSWORD|PRIVATE)[A-Z0-9_]*[ \t]*=[ \t]*['"]?([^\s'"]{16,})/m,
55
+ accept: (m) => !PLACEHOLDER_VALUE.test(m[1] ?? "")
56
+ },
47
57
  {
48
58
  id: "aws-access-key",
49
- re: /\bAKIA[0-9A-Z]{16}\b/
59
+ re: /\bAKIA[0-9A-Z]{16}\b/,
60
+ ere: "AKIA[0-9A-Z]{16}"
50
61
  },
51
62
  {
52
63
  // Classic (`ghp_`), OAuth (`gho_`), user-to-server (`ghu_`), server-to-server
53
64
  // (`ghs_`), refresh (`ghr_`) and fine-grained (`github_pat_`) tokens.
54
65
  id: "github-pat",
55
- re: /\b(?:gh[pousr]_[A-Za-z0-9_]{36,}|github_pat_[A-Za-z0-9_]{22,})\b/
66
+ re: /\b(?:gh[pousr]_[A-Za-z0-9_]{36,}|github_pat_[A-Za-z0-9_]{22,})\b/,
67
+ ere: "gh[pousr]_[A-Za-z0-9_]{36,}|github_pat_[A-Za-z0-9_]{22,}"
56
68
  },
57
69
  {
58
70
  id: "pem-private-key",
59
- re: /-----BEGIN (?:[A-Z0-9]+ )*PRIVATE KEY-----/
71
+ re: /-----BEGIN (?:[A-Z0-9]+ )*PRIVATE KEY-----/,
72
+ ere: "-----BEGIN ([A-Z0-9]+ )*PRIVATE KEY-----"
60
73
  },
61
74
  {
62
75
  id: "slack-token",
63
- re: /\bxox[abposr]-[A-Za-z0-9-]{10,}\b/
76
+ re: /\bxox[abposr]-[A-Za-z0-9-]{10,}\b/,
77
+ ere: "xox[abposr]-[A-Za-z0-9-]{10,}"
64
78
  },
65
79
  // Hyphenated vendor keys (`sk-ant-api03-…`, `sk-proj-…`) cannot be matched by
66
80
  // `openai-sk`: its body class excludes `-`, so it stops at the first separator.
67
81
  // Listed before `openai-sk`; the two cannot both hit the same span.
68
82
  {
69
83
  id: "sk-hyphenated-vendor",
70
- re: /\bsk-[A-Za-z0-9]{2,12}-[A-Za-z0-9_-]{16,}\b/
84
+ re: /\bsk-[A-Za-z0-9]{2,12}-[A-Za-z0-9_-]{16,}\b/,
85
+ // sk- keys need a non-word char before them, so kebab-case like run-task-in-... passes.
86
+ ere: "(^|[^A-Za-z0-9_])sk-[A-Za-z0-9]{2,12}-[A-Za-z0-9_-]{16,}"
71
87
  },
72
88
  {
73
89
  // Single-segment `sk-` bodies only (no `-` in the class) — see `sk-hyphenated-vendor`.
74
90
  id: "openai-sk",
75
- re: /\bsk-[A-Za-z0-9]{20,}\b/
91
+ re: /\bsk-[A-Za-z0-9]{20,}\b/,
92
+ ere: "(^|[^A-Za-z0-9_])sk-[A-Za-z0-9]{20,}"
76
93
  }
77
94
  ];
78
95
  function maskSecretExcerpt(raw) {
@@ -98,15 +115,17 @@ function excerptAround(text, index, len) {
98
115
  function scanTextForSecrets(text) {
99
116
  if (!text) return [];
100
117
  const hits = [];
101
- for (const { id, re } of SECRET_PATTERNS) {
118
+ for (const { id, re, accept } of SECRET_PATTERNS) {
102
119
  const flags = re.flags.includes("g") ? re.flags : `${re.flags}g`;
103
120
  const global = new RegExp(re.source, flags);
104
121
  let match = global.exec(text);
105
122
  while (match) {
106
- hits.push({
107
- patternId: id,
108
- excerpt: excerptAround(text, match.index, match[0].length)
109
- });
123
+ if (!accept || accept(match)) {
124
+ hits.push({
125
+ patternId: id,
126
+ excerpt: excerptAround(text, match.index, match[0].length)
127
+ });
128
+ }
110
129
  if (!global.global) break;
111
130
  match = global.exec(text);
112
131
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildSessionStartAdditionalContext,
3
3
  resolveSessionRoot
4
- } from "./chunk-SYRJ5TTK.js";
4
+ } from "./chunk-VI4UEKRN.js";
5
5
  import "./chunk-XXPI4H4D.js";
6
6
  import "./chunk-2YU2H7I6.js";
7
7
  import {
@@ -11,15 +11,15 @@ 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-FB6G6OD6.js";
14
+ import "./chunk-KWQEY6OG.js";
15
15
  import "./chunk-NHJ4IAVN.js";
16
- import "./chunk-Y5526WCN.js";
17
- import "./chunk-MWRYQLEG.js";
18
- import "./chunk-HGB4DHXV.js";
16
+ import "./chunk-43JHKSN4.js";
17
+ import "./chunk-BDTB7AUO.js";
18
+ import "./chunk-5EJHIT2K.js";
19
19
  import "./chunk-CGXLR77R.js";
20
20
  import "./chunk-PFEUZXVT.js";
21
- import "./chunk-ZNZHDPS3.js";
22
- import "./chunk-RJP47EGS.js";
21
+ import "./chunk-RHP44DQQ.js";
22
+ import "./chunk-WMMFTZ6O.js";
23
23
  import "./chunk-IHVJTGYR.js";
24
24
  import "./chunk-KMK4T4ZM.js";
25
25
  import "./chunk-2G4K4ZI5.js";
package/dist/index.js CHANGED
@@ -251,21 +251,21 @@ var main = defineCommand({
251
251
  version: KIT_VERSION
252
252
  },
253
253
  subCommands: {
254
- init: () => import("./init-ZHLVXEVT.js").then((m) => m.initCommand),
255
- install: () => import("./install-XWOG64W3.js").then((m) => m.installCommand),
254
+ init: () => import("./init-IJ53YMKS.js").then((m) => m.initCommand),
255
+ install: () => import("./install-BHOMUS2G.js").then((m) => m.installCommand),
256
256
  scan: () => import("./scan-7D3RMO34.js").then((m) => m.scanCommand),
257
- add: () => import("./add-G7KEZLWP.js").then((m) => m.addCommand),
258
- doctor: () => import("./doctor-KGUWU5SN.js").then((m) => m.doctorCommand),
259
- "setup-global": () => import("./setup-global-WDMARD4Z.js").then((m) => m.setupGlobalCommand),
260
- status: () => import("./status-2WNJL7PP.js").then((m) => m.statusCommand),
261
- update: () => import("./update-OXCWYN3Y.js").then((m) => m.updateCommand),
257
+ add: () => import("./add-WILYTGO7.js").then((m) => m.addCommand),
258
+ doctor: () => import("./doctor-SW42AH5D.js").then((m) => m.doctorCommand),
259
+ "setup-global": () => import("./setup-global-QEGG3OG2.js").then((m) => m.setupGlobalCommand),
260
+ status: () => import("./status-A375W7ZU.js").then((m) => m.statusCommand),
261
+ update: () => import("./update-B2I3VDIG.js").then((m) => m.updateCommand),
262
262
  installs: () => import("./installs-2ROXPO6M.js").then((m) => m.installsCommand),
263
263
  "cursor-awareness": () => import("./cursor-awareness-TN5JXD2C.js").then((m) => m.cursorAwarenessCommand),
264
264
  "public-inbound-radar": () => import("./public-inbound-radar-5U4JMBRU.js").then((m) => m.publicInboundRadarCommand),
265
265
  "remote-issues": () => import("./remote-issues-APYOMIJC.js").then((m) => m.remoteIssuesCommand),
266
266
  dogfood: () => import("./dogfood-2JAHSYQA.js").then((m) => m.dogfoodCommand),
267
- diff: () => import("./diff-3XUZM7ZT.js").then((m) => m.diffCommand),
268
- contribute: () => import("./contribute-HE4WCBRY.js").then((m) => m.contributeCommand),
267
+ diff: () => import("./diff-WPNZDMB2.js").then((m) => m.diffCommand),
268
+ contribute: () => import("./contribute-SGMAG35M.js").then((m) => m.contributeCommand),
269
269
  handoff: () => import("./handoff-LLT4CI6H.js").then((m) => m.handoffCommand),
270
270
  "plan-index": () => import("./plan-index-5QZJK4AG.js").then((m) => m.planIndexCommand),
271
271
  run: () => import("./run-RGIY5JTX.js").then((m) => m.runCommand),
@@ -279,15 +279,15 @@ 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-UPZ3CPYS.js").then((m) => m.hookCommand),
283
- guard: () => import("./guard-ZO4Z3LLB.js").then((m) => m.guardCommand),
282
+ hook: () => import("./hook-ASKMJGBB.js").then((m) => m.hookCommand),
283
+ guard: () => import("./guard-CH4A7QIZ.js").then((m) => m.guardCommand),
284
284
  monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
285
- sessions: () => import("./sessions-WWWLYPW6.js").then((m) => m.sessionsCommand),
285
+ sessions: () => import("./sessions-4IDYAFBL.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),
289
- commands: () => import("./commands-SCFSX4U4.js").then((m) => m.commandsCommand),
290
- paths: () => import("./paths-JTPV6SXH.js").then((m) => m.pathsCommand),
289
+ commands: () => import("./commands-6LJACZME.js").then((m) => m.commandsCommand),
290
+ paths: () => import("./paths-PSG64N6P.js").then((m) => m.pathsCommand),
291
291
  pi: () => import("./pi-DCMDOY65.js").then((m) => m.piCommand),
292
292
  models: () => import("./models-SNB5Q3YU.js").then((m) => m.modelsCommand)
293
293
  },
@@ -2,19 +2,19 @@ import {
2
2
  nextStepAfterInstall,
3
3
  performInstall,
4
4
  printInstallEpilogue
5
- } from "./chunk-PLLXFSN2.js";
5
+ } from "./chunk-KXC6NCX2.js";
6
6
  import {
7
7
  NON_INTERACTIVE_ROOT_ARGS
8
- } from "./chunk-2GXN7HVG.js";
8
+ } from "./chunk-TI7BX6JV.js";
9
9
  import {
10
10
  SkippedSymlinkError,
11
11
  logApplyStats
12
12
  } from "./chunk-HS7LVVLO.js";
13
- import "./chunk-SWJJW624.js";
14
- import "./chunk-PCIYXGB3.js";
15
- import "./chunk-FB6G6OD6.js";
16
- import "./chunk-BVZDPVUL.js";
17
- import "./chunk-FUSNEYGU.js";
13
+ import "./chunk-I3GF72CH.js";
14
+ import "./chunk-RX2ZWBQM.js";
15
+ import "./chunk-KWQEY6OG.js";
16
+ import "./chunk-SOSU22LZ.js";
17
+ import "./chunk-CHYROVQB.js";
18
18
  import {
19
19
  feedInstallsRegistry
20
20
  } from "./chunk-NHJ4IAVN.js";
@@ -36,17 +36,17 @@ import {
36
36
  confirmProjectRoot,
37
37
  isNonInteractive,
38
38
  syncPathCliToRuntime
39
- } from "./chunk-RRJVC35Y.js";
39
+ } from "./chunk-PIL4G5SI.js";
40
40
  import {
41
41
  assessEnvironment
42
42
  } from "./chunk-2TW7ENWC.js";
43
- import "./chunk-Y5526WCN.js";
44
- import "./chunk-MWRYQLEG.js";
45
- import "./chunk-HGB4DHXV.js";
43
+ import "./chunk-43JHKSN4.js";
44
+ import "./chunk-BDTB7AUO.js";
45
+ import "./chunk-5EJHIT2K.js";
46
46
  import "./chunk-CGXLR77R.js";
47
47
  import "./chunk-PFEUZXVT.js";
48
- import "./chunk-ZNZHDPS3.js";
49
- import "./chunk-RJP47EGS.js";
48
+ import "./chunk-RHP44DQQ.js";
49
+ import "./chunk-WMMFTZ6O.js";
50
50
  import "./chunk-IHVJTGYR.js";
51
51
  import "./chunk-KMK4T4ZM.js";
52
52
  import {
@@ -3,14 +3,14 @@ import {
3
3
  nextStepAfterInstall,
4
4
  performInstall,
5
5
  printInstallEpilogue
6
- } from "./chunk-PLLXFSN2.js";
7
- import "./chunk-2GXN7HVG.js";
6
+ } from "./chunk-KXC6NCX2.js";
7
+ import "./chunk-TI7BX6JV.js";
8
8
  import "./chunk-HS7LVVLO.js";
9
- import "./chunk-SWJJW624.js";
10
- import "./chunk-PCIYXGB3.js";
11
- import "./chunk-FB6G6OD6.js";
12
- import "./chunk-BVZDPVUL.js";
13
- import "./chunk-FUSNEYGU.js";
9
+ import "./chunk-I3GF72CH.js";
10
+ import "./chunk-RX2ZWBQM.js";
11
+ import "./chunk-KWQEY6OG.js";
12
+ import "./chunk-SOSU22LZ.js";
13
+ import "./chunk-CHYROVQB.js";
14
14
  import "./chunk-NHJ4IAVN.js";
15
15
  import "./chunk-WGLPZXNU.js";
16
16
  import "./chunk-Q35TWISF.js";
@@ -20,15 +20,15 @@ import "./chunk-AXQMVQ6O.js";
20
20
  import "./chunk-F6C3GFKV.js";
21
21
  import "./chunk-2QYWMSI5.js";
22
22
  import "./chunk-ZB43YMHW.js";
23
- import "./chunk-RRJVC35Y.js";
23
+ import "./chunk-PIL4G5SI.js";
24
24
  import "./chunk-2TW7ENWC.js";
25
- import "./chunk-Y5526WCN.js";
26
- import "./chunk-MWRYQLEG.js";
27
- import "./chunk-HGB4DHXV.js";
25
+ import "./chunk-43JHKSN4.js";
26
+ import "./chunk-BDTB7AUO.js";
27
+ import "./chunk-5EJHIT2K.js";
28
28
  import "./chunk-CGXLR77R.js";
29
29
  import "./chunk-PFEUZXVT.js";
30
- import "./chunk-ZNZHDPS3.js";
31
- import "./chunk-RJP47EGS.js";
30
+ import "./chunk-RHP44DQQ.js";
31
+ import "./chunk-WMMFTZ6O.js";
32
32
  import "./chunk-IHVJTGYR.js";
33
33
  import "./chunk-KMK4T4ZM.js";
34
34
  import "./chunk-2G4K4ZI5.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CURSOR_COMMANDS_DIR_REL
3
- } from "./chunk-FUSNEYGU.js";
4
- import "./chunk-RJP47EGS.js";
3
+ } from "./chunk-CHYROVQB.js";
4
+ import "./chunk-WMMFTZ6O.js";
5
5
  import {
6
6
  MANIFEST_RELATIVE_PATH
7
7
  } from "./chunk-KMK4T4ZM.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,22 +28,22 @@ import {
27
28
  updateCheckSection,
28
29
  updateNoticeSection,
29
30
  withDeadline
30
- } from "./chunk-SYRJ5TTK.js";
31
+ } from "./chunk-VI4UEKRN.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-FB6G6OD6.js";
38
+ import "./chunk-KWQEY6OG.js";
38
39
  import "./chunk-NHJ4IAVN.js";
39
- import "./chunk-Y5526WCN.js";
40
- import "./chunk-MWRYQLEG.js";
41
- import "./chunk-HGB4DHXV.js";
40
+ import "./chunk-43JHKSN4.js";
41
+ import "./chunk-BDTB7AUO.js";
42
+ import "./chunk-5EJHIT2K.js";
42
43
  import "./chunk-CGXLR77R.js";
43
44
  import "./chunk-PFEUZXVT.js";
44
- import "./chunk-ZNZHDPS3.js";
45
- import "./chunk-RJP47EGS.js";
45
+ import "./chunk-RHP44DQQ.js";
46
+ import "./chunk-WMMFTZ6O.js";
46
47
  import "./chunk-IHVJTGYR.js";
47
48
  import "./chunk-KMK4T4ZM.js";
48
49
  import "./chunk-2G4K4ZI5.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-NC2HE5X5.js");
82
+ const { listDetachedAuditSessions } = await import("./session-start-RWPMRY6N.js");
83
83
  const roster = await collectLiveRoster(workspace, { listAudit: listDetachedAuditSessions });
84
84
  process.stdout.write(
85
85
  args.json ? `${JSON.stringify(roster, null, 2)}
@@ -2,17 +2,17 @@ import {
2
2
  classifyInstallError,
3
3
  isNonInteractive,
4
4
  pathCliStatus
5
- } from "./chunk-RRJVC35Y.js";
5
+ } from "./chunk-PIL4G5SI.js";
6
6
  import {
7
7
  assessEnvironment
8
8
  } from "./chunk-2TW7ENWC.js";
9
- import "./chunk-Y5526WCN.js";
10
- import "./chunk-MWRYQLEG.js";
11
- import "./chunk-HGB4DHXV.js";
9
+ import "./chunk-43JHKSN4.js";
10
+ import "./chunk-BDTB7AUO.js";
11
+ import "./chunk-5EJHIT2K.js";
12
12
  import "./chunk-CGXLR77R.js";
13
13
  import "./chunk-PFEUZXVT.js";
14
- import "./chunk-ZNZHDPS3.js";
15
- import "./chunk-RJP47EGS.js";
14
+ import "./chunk-RHP44DQQ.js";
15
+ import "./chunk-WMMFTZ6O.js";
16
16
  import "./chunk-IHVJTGYR.js";
17
17
  import "./chunk-KMK4T4ZM.js";
18
18
  import {