@dadado/agent-kit-cli 6.2.0 → 6.4.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/dashboard-data.mjs +14 -2
- package/dashboard/dashboard.html +139 -4
- package/dashboard/lib/chat-sessions.d.mts +63 -0
- package/dashboard/lib/chat-sessions.mjs +430 -0
- package/dashboard/serve.mjs +5 -1
- package/dist/{add-Y2426TGU.js → add-HFDX3U3R.js} +2 -2
- package/dist/{chunk-TW4BF5OE.js → chunk-3OM7JODZ.js} +2 -2
- package/dist/{chunk-TGNFGMPV.js → chunk-6OTJEQEC.js} +90 -5
- package/dist/{chunk-MAPOQEA2.js → chunk-6RRG3WOE.js} +8 -1
- package/dist/{chunk-NSSXSZLL.js → chunk-7BEHUBEJ.js} +5 -1
- package/dist/{chunk-CWDXNBEU.js → chunk-ANPSYWQO.js} +2 -2
- package/dist/{chunk-BEKQ6PVD.js → chunk-AXLXEAVJ.js} +1 -1
- package/dist/{chunk-X45O2AIE.js → chunk-E465FAWM.js} +1 -1
- package/dist/{chunk-C2SJDYAM.js → chunk-H46W7NHC.js} +1 -1
- package/dist/{chunk-SPYIP76F.js → chunk-HHR56LJQ.js} +64 -28
- package/dist/{chunk-IR7FFPUU.js → chunk-IMIVTDMK.js} +43 -8
- package/dist/chunk-IRTS7WEA.js +374 -0
- package/dist/{chunk-MO63KZBP.js → chunk-KX3OUY4W.js} +8 -6
- package/dist/chunk-MWTXI6C5.js +223 -0
- package/dist/{chunk-JEI6HACW.js → chunk-NJVWTROP.js} +24 -377
- package/dist/{chunk-CER2APV2.js → chunk-Q4PCMRM5.js} +1 -1
- package/dist/{chunk-GUQYNUV4.js → chunk-R7DA4KXG.js} +1 -1
- package/dist/{chunk-VO73OL5V.js → chunk-SE7ZIRLX.js} +2 -2
- package/dist/{chunk-KVY425NM.js → chunk-TZ5XYIEF.js} +4 -2
- package/dist/{chunk-Z7ABX5QI.js → chunk-WOHZ4T5V.js} +4 -2
- package/dist/{chunk-YRFSTHR5.js → chunk-XEEB4YSA.js} +13 -219
- package/dist/{chunk-QTBTKEXK.js → chunk-ZPZVROS5.js} +1 -1
- package/dist/{contribute-TVST3CJO.js → contribute-PP7HMPW7.js} +3 -3
- package/dist/{countdown-QXJD6TDB.js → countdown-LAUZMI7U.js} +10 -8
- package/dist/{diff-MECE5RZB.js → diff-HYWC4G6Y.js} +4 -4
- package/dist/{doctor-VLZNXJNA.js → doctor-2X3HBRJJ.js} +8 -8
- package/dist/engine-info-4ZWEIHSX.js +89 -0
- package/dist/{ground-control-NMYYIVCV.js → ground-control-WKV2BMOW.js} +5 -4
- package/dist/{guard-EHXF76ID.js → guard-ZZRQW3DJ.js} +107 -8
- package/dist/{hook-XCZWX462.js → hook-UEYR4M3Z.js} +10 -4
- package/dist/index.js +26 -22
- package/dist/{init-HKMRU2V4.js → init-UF5VEIJX.js} +11 -11
- package/dist/{install-X2J6KWZ5.js → install-6ILVA22C.js} +11 -11
- package/dist/{run-R66G276Q.js → run-2EKD2BEC.js} +12 -9
- package/dist/{run-plan-24Z5K4P3.js → run-plan-G72XMC5Z.js} +11 -7
- package/dist/sessions-O7MYEMCT.js +343 -0
- package/dist/{setup-global-ADJFMOZX.js → setup-global-ZZEY5KWE.js} +5 -5
- package/dist/{status-UB6NL3Q3.js → status-4LK2QXVQ.js} +6 -6
- package/dist/{update-PFBFY7GT.js → update-FPR2NZND.js} +33 -43
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectWorkspaceParent,
|
|
3
3
|
workspaceParentAdvisoryLines
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q4PCMRM5.js";
|
|
5
5
|
import {
|
|
6
6
|
createReadinessReport
|
|
7
7
|
} from "./chunk-PNFF6OU3.js";
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
npxPinned,
|
|
17
17
|
pathCliStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SE7ZIRLX.js";
|
|
19
19
|
import {
|
|
20
20
|
assessEnvironment
|
|
21
21
|
} from "./chunk-B3VR5YBQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3OM7JODZ.js";
|
|
23
23
|
import "./chunk-PFEUZXVT.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-ANPSYWQO.js";
|
|
25
|
+
import "./chunk-E465FAWM.js";
|
|
26
26
|
import {
|
|
27
27
|
MANIFEST_RELATIVE_PATH,
|
|
28
28
|
loadAgentKitManifest,
|
|
29
29
|
resolveProtectedGlobs
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7BEHUBEJ.js";
|
|
31
31
|
import {
|
|
32
32
|
KIT_VERSION
|
|
33
33
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NON_INTERACTIVE_ROOT_ARGS,
|
|
3
|
+
detectStaleCli,
|
|
4
|
+
formatRerunFlags,
|
|
5
|
+
formatStaleCliRefusal,
|
|
3
6
|
syncFromManifest
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6OTJEQEC.js";
|
|
5
8
|
import {
|
|
6
9
|
formatSkippedSymlinks,
|
|
7
10
|
logApplyStats
|
|
@@ -9,15 +12,15 @@ import {
|
|
|
9
12
|
import {
|
|
10
13
|
REGISTRY_CLI_ARGS,
|
|
11
14
|
resolveRegistryFromCli
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H46W7NHC.js";
|
|
13
16
|
import {
|
|
14
17
|
CLAUDE_SETTINGS_REL,
|
|
15
18
|
formatClaudeSettingsDrift,
|
|
16
19
|
generateClaudeCommandAdapters,
|
|
17
20
|
planClaudeSettingsDrift,
|
|
18
21
|
writeClaudeSessionStartHook
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-HHR56LJQ.js";
|
|
23
|
+
import "./chunk-6RRG3WOE.js";
|
|
21
24
|
import {
|
|
22
25
|
withCliProgress
|
|
23
26
|
} from "./chunk-QTON2GQX.js";
|
|
@@ -29,17 +32,14 @@ import {
|
|
|
29
32
|
confirmProjectRoot,
|
|
30
33
|
isNonInteractive,
|
|
31
34
|
syncPathCliToRuntime
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SE7ZIRLX.js";
|
|
33
36
|
import "./chunk-B3VR5YBQ.js";
|
|
34
37
|
import {
|
|
35
|
-
checkForUpdates
|
|
36
|
-
|
|
37
|
-
normalizeSemver,
|
|
38
|
-
readLocalKitVersion
|
|
39
|
-
} from "./chunk-TW4BF5OE.js";
|
|
38
|
+
checkForUpdates
|
|
39
|
+
} from "./chunk-3OM7JODZ.js";
|
|
40
40
|
import "./chunk-PFEUZXVT.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-ANPSYWQO.js";
|
|
42
|
+
import "./chunk-E465FAWM.js";
|
|
43
43
|
import {
|
|
44
44
|
buildManifest,
|
|
45
45
|
isProtectedPath,
|
|
@@ -47,9 +47,8 @@ import {
|
|
|
47
47
|
resolveProtectedGlobs,
|
|
48
48
|
saveManifest,
|
|
49
49
|
seedManagedHashLedger
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7BEHUBEJ.js";
|
|
51
51
|
import {
|
|
52
|
-
KIT_PACKAGE_SPEC,
|
|
53
52
|
KIT_VERSION
|
|
54
53
|
} from "./chunk-7HDQEK6T.js";
|
|
55
54
|
import "./chunk-C4Q77GGJ.js";
|
|
@@ -57,6 +56,17 @@ import "./chunk-5B4DVO6C.js";
|
|
|
57
56
|
|
|
58
57
|
// src/commands/update.ts
|
|
59
58
|
import { defineCommand } from "citty";
|
|
59
|
+
var UPDATE_RERUN_FLAGS = [
|
|
60
|
+
"claude",
|
|
61
|
+
"yes",
|
|
62
|
+
"force-root",
|
|
63
|
+
"seed-overlay",
|
|
64
|
+
"cwd",
|
|
65
|
+
"registry",
|
|
66
|
+
"url",
|
|
67
|
+
"ref",
|
|
68
|
+
"refresh"
|
|
69
|
+
];
|
|
60
70
|
var updateCommand = defineCommand({
|
|
61
71
|
meta: {
|
|
62
72
|
name: "update",
|
|
@@ -159,35 +169,15 @@ ${err.recovery}
|
|
|
159
169
|
});
|
|
160
170
|
try {
|
|
161
171
|
logger.info(`Registry: ${registry.root} (${registry.source})`);
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
`This CLI is v${cliVersion}, older than the registry it would apply (v${registryVersion}).`
|
|
172
|
-
);
|
|
173
|
-
console.error(
|
|
174
|
-
[
|
|
175
|
-
"",
|
|
176
|
-
"`agent-kit update` syncs registry content but stamps .cursor/agent-kit.json with the",
|
|
177
|
-
`version of the CLI running it, so applying now would write v${cliVersion} again, not v${registryVersion}.`,
|
|
178
|
-
"",
|
|
179
|
-
"Upgrade the binary first, then re-run:",
|
|
180
|
-
` npm i -g ${KIT_PACKAGE_SPEC}@${registryVersion}`,
|
|
181
|
-
" agent-kit update",
|
|
182
|
-
"",
|
|
183
|
-
`If npm has no ${registryVersion} yet, the release is still mid-publish`,
|
|
184
|
-
"(content sync and npm publish run in parallel) - retry shortly.",
|
|
185
|
-
"",
|
|
186
|
-
"Factory/dev checkouts that intend to apply newer content with an older",
|
|
187
|
-
"binary can pass --allow-stale-cli.",
|
|
188
|
-
""
|
|
189
|
-
].join("\n")
|
|
190
|
-
);
|
|
172
|
+
const stale = await detectStaleCli(registry.root, { warn: logger.warn });
|
|
173
|
+
if (stale && !args["allow-stale-cli"]) {
|
|
174
|
+
const refusal = formatStaleCliRefusal({
|
|
175
|
+
command: "update",
|
|
176
|
+
stale,
|
|
177
|
+
rerun: formatRerunFlags(args, UPDATE_RERUN_FLAGS)
|
|
178
|
+
});
|
|
179
|
+
logger.error(refusal.error);
|
|
180
|
+
console.error(refusal.recovery);
|
|
191
181
|
process.exitCode = 1;
|
|
192
182
|
return;
|
|
193
183
|
}
|
package/package.json
CHANGED