@dadado/agent-kit-cli 6.1.1 → 6.3.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 +3 -1
- package/dashboard/dashboard-data.mjs +13 -2
- package/dashboard/dashboard.html +95 -2
- package/dashboard/lib/gate-exit-tickets.d.mts +45 -0
- package/dashboard/lib/gate-exit-tickets.mjs +233 -0
- package/dashboard/lib/semantic-model.d.mts +21 -0
- package/dashboard/lib/semantic-model.mjs +47 -0
- package/dist/{add-YTCDLPUS.js → add-VA2W7I6P.js} +3 -3
- package/dist/{chunk-VTOUQAVR.js → chunk-25J2SMJQ.js} +9 -1
- package/dist/{chunk-2FQX2O4I.js → chunk-6GYKOHIL.js} +2 -2
- package/dist/{chunk-DBPNGZNH.js → chunk-6KUSG7BJ.js} +15 -2
- package/dist/{chunk-C26I6HTO.js → chunk-C4Q77GGJ.js} +0 -1
- package/dist/{chunk-U5F6RJN4.js → chunk-GO3K752H.js} +4 -1
- package/dist/chunk-GUQYNUV4.js +61 -0
- package/dist/{chunk-ESNAFDYT.js → chunk-JEI6HACW.js} +44 -1
- package/dist/chunk-KVY425NM.js +519 -0
- package/dist/{chunk-WUWRGOUV.js → chunk-L5V3W3DY.js} +13 -1
- package/dist/chunk-MO63KZBP.js +516 -0
- package/dist/chunk-MUTTNRX4.js +53 -0
- package/dist/{chunk-PPKX55GI.js → chunk-NNKOWUWM.js} +1 -1
- package/dist/{chunk-DRND2KYV.js → chunk-OVOXRH5W.js} +1 -1
- package/dist/{chunk-GN4SAZF2.js → chunk-OWWFKGKS.js} +2 -2
- package/dist/chunk-QTBTKEXK.js +77 -0
- package/dist/{chunk-TMFOLRU2.js → chunk-SV2BR2LZ.js} +44 -9
- package/dist/{chunk-3DGTPONS.js → chunk-U26MRIWN.js} +1 -1
- package/dist/{chunk-BBVBYQJO.js → chunk-VQBI3JVS.js} +2 -2
- package/dist/{chunk-YP4OOK4T.js → chunk-WMVMBPCR.js} +2 -2
- package/dist/{chunk-OZYJUNAQ.js → chunk-YRFSTHR5.js} +29 -525
- package/dist/{chunk-3XKVQS2K.js → chunk-Z7ABX5QI.js} +13 -9
- package/dist/{chunk-DBXDV5O7.js → chunk-Z7RYIHHX.js} +90 -5
- package/dist/{contribute-A7NCWTUM.js → contribute-NLM2BN6Z.js} +4 -4
- package/dist/countdown-QXJD6TDB.js +479 -0
- package/dist/{diff-4MDU5SLE.js → diff-HHG4JEDE.js} +5 -5
- package/dist/{doctor-SS6Y2T6H.js → doctor-TWF2M3S3.js} +9 -9
- package/dist/ground-control-NMYYIVCV.js +434 -0
- package/dist/{handoff-MK5JG3J5.js → handoff-5AGE2D3T.js} +3 -2
- package/dist/{hook-D2WHBKRN.js → hook-VP7FHRSZ.js} +7 -6
- package/dist/index.js +30 -20
- package/dist/{init-GVVBA2BM.js → init-UOTV4ASJ.js} +12 -12
- package/dist/{install-R4HPI7VK.js → install-VCHPXQV3.js} +12 -12
- package/dist/{plan-index-V7T5MKL6.js → plan-index-BNLUU6T5.js} +3 -2
- package/dist/{run-3B26CVIL.js → run-R66G276Q.js} +58 -12
- package/dist/{run-plan-APTBO2OT.js → run-plan-24Z5K4P3.js} +12 -7
- package/dist/{scan-K6TQGV4S.js → scan-UX4HARMJ.js} +1 -1
- package/dist/{setup-global-AT4DD3MG.js → setup-global-M6LKGJHQ.js} +6 -6
- package/dist/{status-MPJHI5RP.js → status-5UKVIKOI.js} +8 -8
- package/dist/{update-P62637ZI.js → update-VQBGEUWS.js} +33 -43
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NON_INTERACTIVE_ROOT_ARGS,
|
|
3
|
+
StaleCliError,
|
|
4
|
+
detectStaleCli,
|
|
5
|
+
formatRerunFlags,
|
|
6
|
+
formatStaleCliRefusal,
|
|
3
7
|
installL0,
|
|
4
8
|
syncFromManifest
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z7RYIHHX.js";
|
|
6
10
|
import {
|
|
7
11
|
SkippedSymlinkError,
|
|
8
12
|
formatPersonalizationSkippedSymlinks,
|
|
@@ -11,11 +15,11 @@ import {
|
|
|
11
15
|
import {
|
|
12
16
|
REGISTRY_CLI_ARGS,
|
|
13
17
|
resolveRegistryFromCli
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U26MRIWN.js";
|
|
15
19
|
import {
|
|
16
20
|
assessClaudeCommandAdapters,
|
|
17
21
|
executeSafeReadinessFixes
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WMVMBPCR.js";
|
|
19
23
|
import {
|
|
20
24
|
writeReadinessSnapshot
|
|
21
25
|
} from "./chunk-HAFRAXGV.js";
|
|
@@ -23,7 +27,7 @@ import {
|
|
|
23
27
|
CLAUDE_HITL_FALLBACK,
|
|
24
28
|
generateClaudeCommandAdapters,
|
|
25
29
|
writeClaudeSessionStartHook
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NNKOWUWM.js";
|
|
27
31
|
import {
|
|
28
32
|
shouldUseWelcomeColor,
|
|
29
33
|
withCliProgress
|
|
@@ -35,7 +39,7 @@ import {
|
|
|
35
39
|
REPOSITORY_PROFILE_REL,
|
|
36
40
|
detectIde,
|
|
37
41
|
runScanner
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GO3K752H.js";
|
|
39
43
|
import {
|
|
40
44
|
GIT_PLATFORM_META
|
|
41
45
|
} from "./chunk-F6C3GFKV.js";
|
|
@@ -50,13 +54,13 @@ import {
|
|
|
50
54
|
npxPinned,
|
|
51
55
|
pathCliStatus,
|
|
52
56
|
syncPathCliToRuntime
|
|
53
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-OWWFKGKS.js";
|
|
54
58
|
import {
|
|
55
59
|
assessEnvironment
|
|
56
60
|
} from "./chunk-B3VR5YBQ.js";
|
|
57
61
|
import {
|
|
58
62
|
warnIfRunningCliBehindNpm
|
|
59
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6GYKOHIL.js";
|
|
60
64
|
import {
|
|
61
65
|
DOMAIN_PACK_IDS,
|
|
62
66
|
allPacks,
|
|
@@ -73,7 +77,7 @@ import {
|
|
|
73
77
|
resolveProtectedGlobs,
|
|
74
78
|
saveManifest,
|
|
75
79
|
skillTargetDir
|
|
76
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-6KUSG7BJ.js";
|
|
77
81
|
import {
|
|
78
82
|
KIT_VERSION,
|
|
79
83
|
pinnedCliSpec
|
|
@@ -791,6 +795,8 @@ async function performInstall(options) {
|
|
|
791
795
|
manifest: existing
|
|
792
796
|
});
|
|
793
797
|
try {
|
|
798
|
+
const stale = await detectStaleCli(registry.root, { warn: logger.warn });
|
|
799
|
+
if (stale && !options.allowStaleCli) throw new StaleCliError(stale);
|
|
794
800
|
const draft = buildManifest({
|
|
795
801
|
version: KIT_VERSION,
|
|
796
802
|
profile: options.profile ?? existing?.profile ?? "default",
|
|
@@ -856,6 +862,17 @@ async function performInstall(options) {
|
|
|
856
862
|
await registry.unlock?.();
|
|
857
863
|
}
|
|
858
864
|
}
|
|
865
|
+
var INSTALL_RERUN_FLAGS = [
|
|
866
|
+
"pack",
|
|
867
|
+
"claude",
|
|
868
|
+
"yes",
|
|
869
|
+
"force-root",
|
|
870
|
+
"cwd",
|
|
871
|
+
"registry",
|
|
872
|
+
"url",
|
|
873
|
+
"ref",
|
|
874
|
+
"refresh"
|
|
875
|
+
];
|
|
859
876
|
var installCommand = defineCommand({
|
|
860
877
|
meta: {
|
|
861
878
|
name: "install",
|
|
@@ -872,6 +889,11 @@ var installCommand = defineCommand({
|
|
|
872
889
|
description: `Comma-separated L1 pack ids (e.g. cybersec,devops). Known: ${DOMAIN_PACK_IDS.join(", ")}`
|
|
873
890
|
},
|
|
874
891
|
...NON_INTERACTIVE_ROOT_ARGS,
|
|
892
|
+
"allow-stale-cli": {
|
|
893
|
+
type: "boolean",
|
|
894
|
+
description: "Install even when this CLI is older than the registry it is syncing from; the manifest is then stamped with this CLI's version, not the registry's (factory/dev only)",
|
|
895
|
+
default: false
|
|
896
|
+
},
|
|
875
897
|
claude: {
|
|
876
898
|
type: "boolean",
|
|
877
899
|
description: "Opt-in: generate .claude/commands/*.md thin pointer adapters for the installed .cursor/commands set, and merge a SessionStart context hook into .claude/settings.json (default install behavior is unchanged without this flag)",
|
|
@@ -926,7 +948,8 @@ ${err.recovery}
|
|
|
926
948
|
url: args.url,
|
|
927
949
|
ref: args.ref,
|
|
928
950
|
refresh: args.refresh,
|
|
929
|
-
claudeAdapters: args.claude
|
|
951
|
+
claudeAdapters: args.claude,
|
|
952
|
+
allowStaleCli: args["allow-stale-cli"]
|
|
930
953
|
})
|
|
931
954
|
);
|
|
932
955
|
logApplyStats(result.stats);
|
|
@@ -941,6 +964,18 @@ ${result.claudeSessionStartInstructions}
|
|
|
941
964
|
}
|
|
942
965
|
if (result.claudeAdapterHint) logger.info(result.claudeAdapterHint);
|
|
943
966
|
} catch (err) {
|
|
967
|
+
if (err instanceof StaleCliError) {
|
|
968
|
+
const profile = typeof args.profile === "string" && args.profile ? `${args.profile} ` : "";
|
|
969
|
+
const refusal = formatStaleCliRefusal({
|
|
970
|
+
command: "install",
|
|
971
|
+
stale: err.stale,
|
|
972
|
+
rerun: `${profile}${formatRerunFlags(args, INSTALL_RERUN_FLAGS)}`.trim()
|
|
973
|
+
});
|
|
974
|
+
logger.error(refusal.error);
|
|
975
|
+
console.error(refusal.recovery);
|
|
976
|
+
process.exitCode = 1;
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
944
979
|
if (err instanceof SkippedSymlinkError) {
|
|
945
980
|
logApplyStats(err.stats);
|
|
946
981
|
logger.error(err.message);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
managedPairs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-25J2SMJQ.js";
|
|
4
4
|
import {
|
|
5
5
|
isProtectedPath,
|
|
6
6
|
resolveContained,
|
|
7
7
|
resolveProtectedGlobs
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6KUSG7BJ.js";
|
|
9
9
|
|
|
10
10
|
// src/lifecycle/diff.ts
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RESOLVE_AGENT_KIT_REL,
|
|
6
6
|
SESSION_START_HOOK_MARKER,
|
|
7
7
|
discoverInstalledCommands
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NNKOWUWM.js";
|
|
9
9
|
import {
|
|
10
10
|
findOnPath
|
|
11
11
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
REQUIRED_SECRET_PATTERNS,
|
|
19
19
|
detectGitDirty,
|
|
20
20
|
runScanner
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GO3K752H.js";
|
|
22
22
|
import {
|
|
23
23
|
CONTEXT_CONFIG_REL,
|
|
24
24
|
contextConfigPath
|