@dadado/agent-kit-cli 6.27.0 → 6.29.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/lib/guards.d.mts +16 -5
- package/dashboard/lib/guards.mjs +55 -7
- package/dashboard/serve.mjs +1 -0
- package/dashboard/start.mjs +8 -1
- package/dist/{add-G7KEZLWP.js → add-PBOH2ILP.js} +3 -3
- package/dist/build-stamp.json +2 -2
- package/dist/{chunk-MWRYQLEG.js → chunk-3AE6JBUC.js} +3 -3
- package/dist/{chunk-ZYQKNAFD.js → chunk-AQRUIICR.js} +3 -3
- package/dist/{chunk-FUSNEYGU.js → chunk-CHYROVQB.js} +1 -1
- package/dist/{chunk-SWJJW624.js → chunk-COKUFSJH.js} +3 -2
- package/dist/{chunk-Y5526WCN.js → chunk-D7L7PG7E.js} +2 -2
- package/dist/{chunk-Y575INEC.js → chunk-DA5VLMNL.js} +1 -1
- package/dist/{chunk-ZNZHDPS3.js → chunk-HSDIVA4N.js} +3 -1
- package/dist/{chunk-WV2TVUIB.js → chunk-JSQRWJ3W.js} +9 -9
- package/dist/{chunk-RRJVC35Y.js → chunk-KAC3UOLE.js} +1 -1
- package/dist/{chunk-EAUWR55Q.js → chunk-QDYYJ6ZP.js} +3 -3
- package/dist/{chunk-D2ZE5ET2.js → chunk-RE27AEF7.js} +1 -1
- package/dist/{chunk-BVZDPVUL.js → chunk-SOSU22LZ.js} +1 -1
- package/dist/{chunk-YFRG3CMS.js → chunk-SZMIKKSA.js} +1 -1
- package/dist/{chunk-HGB4DHXV.js → chunk-TADT7EHS.js} +2 -2
- package/dist/{chunk-RJP47EGS.js → chunk-WMMFTZ6O.js} +3 -1
- package/dist/{chunk-2GXN7HVG.js → chunk-XD4MLX7N.js} +4 -4
- package/dist/{chunk-DOMBVLI4.js → chunk-ZO62NYU5.js} +10 -10
- package/dist/{commands-SCFSX4U4.js → commands-6LJACZME.js} +2 -2
- package/dist/{contribute-HE4WCBRY.js → contribute-E7FP5DT4.js} +4 -4
- package/dist/{dashboard-6V6PCNYF.js → dashboard-3RBOYKZW.js} +1 -1
- package/dist/{dashboard-broadcast-PMVQ7PXU.js → dashboard-broadcast-K3PAGFBO.js} +1 -1
- package/dist/{diff-3XUZM7ZT.js → diff-XPRA5NX2.js} +5 -5
- package/dist/{doctor-TVO44D2E.js → doctor-M6E6MQAR.js} +85 -15
- package/dist/{engine-info-VM4VPGQM.js → engine-info-OTYCQUQB.js} +1 -1
- package/dist/{guard-ZO4Z3LLB.js → guard-SSDUD7CH.js} +32 -13
- package/dist/{hook-Q3GNZHFH.js → hook-5LVP2C7Q.js} +7 -7
- package/dist/index.js +21 -21
- package/dist/{init-J6UZERKY.js → init-P2ZCWU3J.js} +13 -13
- package/dist/{install-6QLJIS64.js → install-ITPM24YI.js} +13 -13
- package/dist/{mission-control-IGOI3WHS.js → mission-control-3D46DA2Z.js} +2 -2
- package/dist/{paths-JTPV6SXH.js → paths-PSG64N6P.js} +2 -2
- package/dist/{run-RGIY5JTX.js → run-2MN2HRUC.js} +3 -3
- package/dist/{run-plan-DHB3ZXJS.js → run-plan-MYAVTBY4.js} +3 -3
- package/dist/{session-start-2OXPYVLE.js → session-start-CCFPULEK.js} +7 -7
- package/dist/{sessions-TUNLCHMK.js → sessions-UGUQWLBS.js} +1 -1
- package/dist/{setup-global-WDMARD4Z.js → setup-global-22YT6RTN.js} +6 -6
- package/dist/{status-2WNJL7PP.js → status-EBLELUSZ.js} +6 -6
- package/dist/{update-OXCWYN3Y.js → update-WRI4HLY7.js} +11 -11
- package/dist/{update-all-E2MV6KME.js → update-all-KOJPSDAJ.js} +11 -11
- package/package.json +7 -5
- /package/dist/{chunk-LEVNLHH3.js → chunk-7Z2E2PWM.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-COKUFSJH.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-3AE6JBUC.js";
|
|
12
|
+
import "./chunk-TADT7EHS.js";
|
|
13
13
|
import "./chunk-CGXLR77R.js";
|
|
14
14
|
import {
|
|
15
15
|
canonicalizePackIds,
|
|
16
16
|
formatUnknownPack,
|
|
17
17
|
loadAgentKitManifest
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HSDIVA4N.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-
|
|
5
|
+
} from "./chunk-QDYYJ6ZP.js";
|
|
6
6
|
import {
|
|
7
7
|
assessInstallHealth,
|
|
8
8
|
cachedCliNpmLatest,
|
|
9
9
|
npmLatestCheckAllowed,
|
|
10
10
|
writeInstallHealthSnapshot,
|
|
11
11
|
writeReadinessSnapshot
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RE27AEF7.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-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-D7L7PG7E.js";
|
|
49
|
+
import "./chunk-3AE6JBUC.js";
|
|
50
|
+
import "./chunk-TADT7EHS.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-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-HSDIVA4N.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
|
|
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
|
-
|
|
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 =
|
|
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(
|
|
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(
|
|
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,
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
}
|
|
@@ -285,7 +304,7 @@ function segmentAllowsMainPush(segment) {
|
|
|
285
304
|
if (!segmentHasAllowMainPushEnv(segment)) return false;
|
|
286
305
|
return isAuthorizedProdMainPush(stripLeadingEnvAssignments(segment));
|
|
287
306
|
}
|
|
288
|
-
var PUBLIC_REPO_RE = /agent-kit-startup\/agent-kit(?![\w-])/i;
|
|
307
|
+
var PUBLIC_REPO_RE = /(?:agent-kit-startup\/agent-kit|mission-kit\/cli)(?![\w-])/i;
|
|
289
308
|
function segmentHasAllowPublicPushEnv(segment) {
|
|
290
309
|
if (process.env.ALLOW_PUBLIC_PUSH === "1") return true;
|
|
291
310
|
const leading = segment.match(/^(?:\w+=\S+\s+)*/)?.[0] ?? "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSessionStartAdditionalContext,
|
|
3
3
|
resolveSessionRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AQRUIICR.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-
|
|
14
|
+
import "./chunk-RE27AEF7.js";
|
|
15
15
|
import "./chunk-NHJ4IAVN.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-D7L7PG7E.js";
|
|
17
|
+
import "./chunk-3AE6JBUC.js";
|
|
18
|
+
import "./chunk-TADT7EHS.js";
|
|
19
19
|
import "./chunk-CGXLR77R.js";
|
|
20
20
|
import "./chunk-PFEUZXVT.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HSDIVA4N.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,43 +251,43 @@ 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-P2ZCWU3J.js").then((m) => m.initCommand),
|
|
255
|
+
install: () => import("./install-ITPM24YI.js").then((m) => m.installCommand),
|
|
256
256
|
scan: () => import("./scan-7D3RMO34.js").then((m) => m.scanCommand),
|
|
257
|
-
add: () => import("./add-
|
|
258
|
-
doctor: () => import("./doctor-
|
|
259
|
-
"setup-global": () => import("./setup-global-
|
|
260
|
-
status: () => import("./status-
|
|
261
|
-
update: () => import("./update-
|
|
257
|
+
add: () => import("./add-PBOH2ILP.js").then((m) => m.addCommand),
|
|
258
|
+
doctor: () => import("./doctor-M6E6MQAR.js").then((m) => m.doctorCommand),
|
|
259
|
+
"setup-global": () => import("./setup-global-22YT6RTN.js").then((m) => m.setupGlobalCommand),
|
|
260
|
+
status: () => import("./status-EBLELUSZ.js").then((m) => m.statusCommand),
|
|
261
|
+
update: () => import("./update-WRI4HLY7.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-
|
|
268
|
-
contribute: () => import("./contribute-
|
|
267
|
+
diff: () => import("./diff-XPRA5NX2.js").then((m) => m.diffCommand),
|
|
268
|
+
contribute: () => import("./contribute-E7FP5DT4.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
|
-
run: () => import("./run-
|
|
272
|
-
"run-plan": () => import("./run-plan-
|
|
273
|
-
"run-plan-all": () => import("./run-
|
|
271
|
+
run: () => import("./run-2MN2HRUC.js").then((m) => m.runCommand),
|
|
272
|
+
"run-plan": () => import("./run-plan-MYAVTBY4.js").then((m) => m.runPlanCommand),
|
|
273
|
+
"run-plan-all": () => import("./run-2MN2HRUC.js").then((m) => m.runPlanAllCommand),
|
|
274
274
|
queue: () => import("./queue-HDR5ER25.js").then((m) => m.queueCommand),
|
|
275
275
|
promote: () => import("./promote-H5MIMVEB.js").then((m) => m.promoteCommand),
|
|
276
276
|
countdown: () => import("./countdown-VXOFV23S.js").then((m) => m.countdownCommand),
|
|
277
277
|
"ground-control": () => import("./ground-control-J4AMA4S4.js").then((m) => m.groundControlCommand),
|
|
278
278
|
conflicts: () => import("./conflicts-4GLQOMJF.js").then((m) => m.conflictsCommand),
|
|
279
|
-
dashboard: () => import("./dashboard-
|
|
280
|
-
"dashboard-broadcast": () => import("./dashboard-broadcast-
|
|
281
|
-
"mission-control": () => import("./mission-control-
|
|
282
|
-
hook: () => import("./hook-
|
|
283
|
-
guard: () => import("./guard-
|
|
279
|
+
dashboard: () => import("./dashboard-3RBOYKZW.js").then((m) => m.dashboardCommand),
|
|
280
|
+
"dashboard-broadcast": () => import("./dashboard-broadcast-K3PAGFBO.js").then((m) => m.dashboardBroadcastCommand),
|
|
281
|
+
"mission-control": () => import("./mission-control-3D46DA2Z.js").then((m) => m.missionControlCommand),
|
|
282
|
+
hook: () => import("./hook-5LVP2C7Q.js").then((m) => m.hookCommand),
|
|
283
|
+
guard: () => import("./guard-SSDUD7CH.js").then((m) => m.guardCommand),
|
|
284
284
|
monitors: () => import("./monitors-PDXBLB3U.js").then((m) => m.monitorsCommand),
|
|
285
|
-
sessions: () => import("./sessions-
|
|
285
|
+
sessions: () => import("./sessions-UGUQWLBS.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
|
-
"engine-info": () => import("./engine-info-
|
|
289
|
-
commands: () => import("./commands-
|
|
290
|
-
paths: () => import("./paths-
|
|
288
|
+
"engine-info": () => import("./engine-info-OTYCQUQB.js").then((m) => m.engineInfoCommand),
|
|
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-
|
|
5
|
+
} from "./chunk-JSQRWJ3W.js";
|
|
6
6
|
import {
|
|
7
7
|
NON_INTERACTIVE_ROOT_ARGS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XD4MLX7N.js";
|
|
9
9
|
import {
|
|
10
10
|
SkippedSymlinkError,
|
|
11
11
|
logApplyStats
|
|
12
12
|
} from "./chunk-HS7LVVLO.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-COKUFSJH.js";
|
|
14
|
+
import "./chunk-QDYYJ6ZP.js";
|
|
15
|
+
import "./chunk-RE27AEF7.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-
|
|
39
|
+
} from "./chunk-KAC3UOLE.js";
|
|
40
40
|
import {
|
|
41
41
|
assessEnvironment
|
|
42
42
|
} from "./chunk-2TW7ENWC.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-D7L7PG7E.js";
|
|
44
|
+
import "./chunk-3AE6JBUC.js";
|
|
45
|
+
import "./chunk-TADT7EHS.js";
|
|
46
46
|
import "./chunk-CGXLR77R.js";
|
|
47
47
|
import "./chunk-PFEUZXVT.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-HSDIVA4N.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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-JSQRWJ3W.js";
|
|
7
|
+
import "./chunk-XD4MLX7N.js";
|
|
8
8
|
import "./chunk-HS7LVVLO.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-COKUFSJH.js";
|
|
10
|
+
import "./chunk-QDYYJ6ZP.js";
|
|
11
|
+
import "./chunk-RE27AEF7.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-
|
|
23
|
+
import "./chunk-KAC3UOLE.js";
|
|
24
24
|
import "./chunk-2TW7ENWC.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-D7L7PG7E.js";
|
|
26
|
+
import "./chunk-3AE6JBUC.js";
|
|
27
|
+
import "./chunk-TADT7EHS.js";
|
|
28
28
|
import "./chunk-CGXLR77R.js";
|
|
29
29
|
import "./chunk-PFEUZXVT.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-HSDIVA4N.js";
|
|
31
|
+
import "./chunk-WMMFTZ6O.js";
|
|
32
32
|
import "./chunk-IHVJTGYR.js";
|
|
33
33
|
import "./chunk-KMK4T4ZM.js";
|
|
34
34
|
import "./chunk-2G4K4ZI5.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
findDashboardDataScript,
|
|
4
4
|
loadDashboardSnapshot,
|
|
5
5
|
runMcTuiLoop
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DA5VLMNL.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveDashboardSnapshotRoot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7Z2E2PWM.js";
|
|
10
10
|
import "./chunk-QTON2GQX.js";
|
|
11
11
|
import {
|
|
12
12
|
logger
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
runPlanLoop,
|
|
3
3
|
shouldUseLiveTui,
|
|
4
4
|
withLiveTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SZMIKKSA.js";
|
|
6
6
|
import "./chunk-WOXTL43E.js";
|
|
7
7
|
import {
|
|
8
8
|
REVIEW_PACK_SLASH,
|
|
9
9
|
runReviewJob
|
|
10
10
|
} from "./chunk-NW5SWKJV.js";
|
|
11
11
|
import "./chunk-ARJRICI2.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DA5VLMNL.js";
|
|
13
13
|
import {
|
|
14
14
|
negatedFlag
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7Z2E2PWM.js";
|
|
16
16
|
import {
|
|
17
17
|
landDispatchOutcome,
|
|
18
18
|
runDispatchDriver
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPlanLoop
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SZMIKKSA.js";
|
|
4
4
|
import "./chunk-WOXTL43E.js";
|
|
5
5
|
import "./chunk-NW5SWKJV.js";
|
|
6
6
|
import "./chunk-ARJRICI2.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DA5VLMNL.js";
|
|
8
8
|
import {
|
|
9
9
|
negatedFlag
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7Z2E2PWM.js";
|
|
11
11
|
import {
|
|
12
12
|
DRIVER_EVENTS_FORMATS
|
|
13
13
|
} from "./chunk-BIFTTL2O.js";
|
|
@@ -28,22 +28,22 @@ import {
|
|
|
28
28
|
updateCheckSection,
|
|
29
29
|
updateNoticeSection,
|
|
30
30
|
withDeadline
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AQRUIICR.js";
|
|
32
32
|
import "./chunk-XXPI4H4D.js";
|
|
33
33
|
import "./chunk-2YU2H7I6.js";
|
|
34
34
|
import "./chunk-FOVHFMSH.js";
|
|
35
35
|
import "./chunk-MCH3E46V.js";
|
|
36
36
|
import "./chunk-4CRBUEJ6.js";
|
|
37
37
|
import "./chunk-TTUFIE26.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-RE27AEF7.js";
|
|
39
39
|
import "./chunk-NHJ4IAVN.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-D7L7PG7E.js";
|
|
41
|
+
import "./chunk-3AE6JBUC.js";
|
|
42
|
+
import "./chunk-TADT7EHS.js";
|
|
43
43
|
import "./chunk-CGXLR77R.js";
|
|
44
44
|
import "./chunk-PFEUZXVT.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-HSDIVA4N.js";
|
|
46
|
+
import "./chunk-WMMFTZ6O.js";
|
|
47
47
|
import "./chunk-IHVJTGYR.js";
|
|
48
48
|
import "./chunk-KMK4T4ZM.js";
|
|
49
49
|
import "./chunk-2G4K4ZI5.js";
|
|
@@ -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-CCFPULEK.js");
|
|
83
83
|
const roster = await collectLiveRoster(workspace, { listAudit: listDetachedAuditSessions });
|
|
84
84
|
process.stdout.write(
|
|
85
85
|
args.json ? `${JSON.stringify(roster, null, 2)}
|