@dadado/agent-kit-cli 6.28.0 → 6.30.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/cursor-audit/cursor-3-features.md +57 -0
- package/cursor-audit/cursor-native-audit.md +292 -0
- 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-WILYTGO7.js → add-CMQ3S2GH.js} +3 -3
- package/dist/build-stamp.json +2 -2
- package/dist/{chunk-TI7BX6JV.js → chunk-2JKKO7FF.js} +4 -4
- package/dist/{chunk-CHYROVQB.js → chunk-2PKJOMTI.js} +1 -1
- package/dist/{chunk-BDTB7AUO.js → chunk-37INM5QP.js} +3 -3
- package/dist/{chunk-VI4UEKRN.js → chunk-7HPYWUC7.js} +4 -4
- package/dist/{chunk-I3GF72CH.js → chunk-BM5RR7LT.js} +3 -2
- package/dist/{chunk-KXC6NCX2.js → chunk-CY4TDI4S.js} +9 -9
- package/dist/{chunk-Y575INEC.js → chunk-DA5VLMNL.js} +1 -1
- package/dist/{chunk-SOSU22LZ.js → chunk-DQD6KPWJ.js} +1 -1
- package/dist/{chunk-WMMFTZ6O.js → chunk-EJJET3CA.js} +6 -1
- package/dist/{chunk-RHP44DQQ.js → chunk-GSVUCEMH.js} +3 -1
- package/dist/{chunk-43JHKSN4.js → chunk-GSZ2WZYY.js} +2 -2
- package/dist/{chunk-KWQEY6OG.js → chunk-HO7VEYAD.js} +1 -1
- package/dist/{chunk-RX2ZWBQM.js → chunk-KNEVGAOO.js} +3 -3
- package/dist/{chunk-PIL4G5SI.js → chunk-N7L4ARYK.js} +1 -1
- package/dist/{chunk-XSNKZM3M.js → chunk-O3OEYLXW.js} +10 -10
- package/dist/{chunk-MCH3E46V.js → chunk-RPJA7Q2F.js} +94 -35
- package/dist/{chunk-5EJHIT2K.js → chunk-SXMGHRLU.js} +2 -2
- package/dist/{chunk-YFRG3CMS.js → chunk-SZMIKKSA.js} +1 -1
- package/dist/{commands-6LJACZME.js → commands-WGCC5YOR.js} +2 -2
- package/dist/{contribute-SGMAG35M.js → contribute-E5HOW57P.js} +4 -4
- package/dist/{cursor-awareness-TN5JXD2C.js → cursor-awareness-ANT44WHK.js} +1 -1
- 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-WPNZDMB2.js → diff-D3S7D6RK.js} +5 -5
- package/dist/{doctor-SW42AH5D.js → doctor-QAWK3NHG.js} +9 -9
- package/dist/{dogfood-2JAHSYQA.js → dogfood-2SYGZFTJ.js} +49 -2
- package/dist/{engine-info-VM4VPGQM.js → engine-info-OTYCQUQB.js} +1 -1
- package/dist/{guard-CH4A7QIZ.js → guard-SSDUD7CH.js} +1 -1
- package/dist/{hook-ASKMJGBB.js → hook-DKX7CH6S.js} +8 -8
- package/dist/index.js +24 -24
- package/dist/{init-IJ53YMKS.js → init-ZQ56SONI.js} +13 -13
- package/dist/{install-BHOMUS2G.js → install-FY7337TL.js} +13 -13
- package/dist/{mission-control-IGOI3WHS.js → mission-control-3D46DA2Z.js} +2 -2
- package/dist/{paths-PSG64N6P.js → paths-YV6O6JFK.js} +2 -2
- package/dist/{promote-H5MIMVEB.js → promote-MAQ44EMD.js} +100 -9
- 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-RWPMRY6N.js → session-start-WNVFNJFF.js} +8 -8
- package/dist/{sessions-4IDYAFBL.js → sessions-OCJOE6HR.js} +1 -1
- package/dist/{setup-global-QEGG3OG2.js → setup-global-ZYLEOFLF.js} +6 -6
- package/dist/{status-A375W7ZU.js → status-6OEQTXJE.js} +6 -6
- package/dist/{update-B2I3VDIG.js → update-DJG3GR24.js} +11 -11
- package/dist/{update-all-PIEDQUGQ.js → update-all-TSF6GZFZ.js} +11 -11
- package/package.json +4 -3
- /package/dist/{chunk-LEVNLHH3.js → chunk-7Z2E2PWM.js} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CHANGELOG_FETCH_TIMEOUT_MS,
|
|
11
11
|
resolveInventoryRoot,
|
|
12
12
|
stampCursorUpdateCheck
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RPJA7Q2F.js";
|
|
14
14
|
import {
|
|
15
15
|
shouldEmitPublicInboundNudge,
|
|
16
16
|
stampPublicInboundCheck
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
computeUpdateNotice,
|
|
28
28
|
describeCliDistFreshness,
|
|
29
29
|
factoryRootFromScript
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HO7VEYAD.js";
|
|
31
31
|
import {
|
|
32
32
|
stampLastCheckedAt
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GSZ2WZYY.js";
|
|
34
34
|
import {
|
|
35
35
|
loadContextConfig
|
|
36
36
|
} from "./chunk-PFEUZXVT.js";
|
|
@@ -325,7 +325,7 @@ Advisory gaps vs \`docs/cursor-native-audit.md\` (check-only; no apply; no Field
|
|
|
325
325
|
Run \`/cursor-update-awareness\` (or \`agent-kit cursor-awareness --check\`) and confirm routing via Ask \u2192 \`/backlog-add\` or \`/dogfood\`.`;
|
|
326
326
|
var PUBLIC_INBOUND_NUDGE = `## Public inbound radar
|
|
327
327
|
|
|
328
|
-
Open issues or pull requests on \`agent-kit-startup/agent-kit\` (inspect-only; no merge/close).
|
|
328
|
+
Open issues or pull requests on the public mirror \`agent-kit-startup/agent-kit\` (\`mission-kit/cli\` after the mission-kit rename; inspect-only; no merge/close).
|
|
329
329
|
|
|
330
330
|
Run \`/public-inbound-radar\` (or \`agent-kit public-inbound-radar --json\`) and confirm routing via Ask \u2192 \`/backlog-add\`, Memory WRITE, \`/dogfood\`, \`/public-issue-triage\`, or Dismiss. Dependabot is one batch.`;
|
|
331
331
|
|
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_REGISTRY_REF,
|
|
6
6
|
DEFAULT_REGISTRY_URL,
|
|
7
|
+
RENAMED_REGISTRY_URL,
|
|
7
8
|
resolveRegistryRoot
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GSVUCEMH.js";
|
|
9
10
|
|
|
10
11
|
// src/lifecycle/resolve-cli.ts
|
|
11
12
|
async function resolveRegistryFromCli(options) {
|
|
@@ -13,7 +14,7 @@ async function resolveRegistryFromCli(options) {
|
|
|
13
14
|
if (!options.registry && !options.url && fromManifest?.url) {
|
|
14
15
|
const ref = options.ref ?? fromManifest.ref ?? DEFAULT_REGISTRY_REF;
|
|
15
16
|
logger.info(`registry: ${fromManifest.url}@${ref} (from manifest)`);
|
|
16
|
-
if (fromManifest.url !== DEFAULT_REGISTRY_URL) {
|
|
17
|
+
if (fromManifest.url !== DEFAULT_REGISTRY_URL && fromManifest.url !== RENAMED_REGISTRY_URL) {
|
|
17
18
|
logger.warn(
|
|
18
19
|
`registry url from .cursor/agent-kit.json is not the default ${DEFAULT_REGISTRY_URL}; verify you trust ${fromManifest.url}`
|
|
19
20
|
);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatStaleCliRefusal,
|
|
7
7
|
installL0,
|
|
8
8
|
syncFromManifest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2JKKO7FF.js";
|
|
10
10
|
import {
|
|
11
11
|
SkippedSymlinkError,
|
|
12
12
|
formatPersonalizationSkippedSymlinks,
|
|
@@ -15,22 +15,22 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
REGISTRY_CLI_ARGS,
|
|
17
17
|
resolveRegistryFromCli
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BM5RR7LT.js";
|
|
19
19
|
import {
|
|
20
20
|
assessClaudeCommandAdapters,
|
|
21
21
|
executeSafeReadinessFixes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KNEVGAOO.js";
|
|
23
23
|
import {
|
|
24
24
|
cachedCliNpmLatest,
|
|
25
25
|
writeReadinessSnapshot
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HO7VEYAD.js";
|
|
27
27
|
import {
|
|
28
28
|
writeClaudeSessionStartHook
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DQD6KPWJ.js";
|
|
30
30
|
import {
|
|
31
31
|
CLAUDE_HITL_FALLBACK,
|
|
32
32
|
generateClaudeCommandAdapters
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2PKJOMTI.js";
|
|
34
34
|
import {
|
|
35
35
|
feedInstallsRegistry
|
|
36
36
|
} from "./chunk-NHJ4IAVN.js";
|
|
@@ -62,13 +62,13 @@ import {
|
|
|
62
62
|
npxPinned,
|
|
63
63
|
pathCliStatus,
|
|
64
64
|
syncPathCliToRuntime
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-N7L4ARYK.js";
|
|
66
66
|
import {
|
|
67
67
|
assessEnvironment
|
|
68
68
|
} from "./chunk-2TW7ENWC.js";
|
|
69
69
|
import {
|
|
70
70
|
warnIfRunningCliBehindNpm
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-GSZ2WZYY.js";
|
|
72
72
|
import {
|
|
73
73
|
UnknownPackError,
|
|
74
74
|
allPacks,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
resolveProtectedGlobs,
|
|
89
89
|
saveManifest,
|
|
90
90
|
skillTargetDir
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-GSVUCEMH.js";
|
|
92
92
|
import {
|
|
93
93
|
DOMAIN_PACK_IDS
|
|
94
94
|
} from "./chunk-KMK4T4ZM.js";
|
|
@@ -503,7 +503,12 @@ var KNOWN_SHIPPED_OVERLAY_HASHES = /* @__PURE__ */ new Set([
|
|
|
503
503
|
"885ae1082642136b1324bf2d8b3bb9924eed693f10ec7b08e7a59c636d8d5007",
|
|
504
504
|
"eafbc96739f333138df4fbb2f1be8bd5b67681748ccbf02895f337b5edd29f37",
|
|
505
505
|
"41257d7384ba7751592beabd1c8505537a51f03e960a8a05760f1976e14f89c4",
|
|
506
|
-
"e37f33401799a1e26cbe9f922c629a47ad639946b6aa23050fdb554f02c689f5"
|
|
506
|
+
"e37f33401799a1e26cbe9f922c629a47ad639946b6aa23050fdb554f02c689f5",
|
|
507
|
+
"f5b946ce81f68161d7eb118b6c57407b3e72707c47dc890b2686ed642adafcf2",
|
|
508
|
+
"63d2d2de335386cfdf8b129840e5f31502d5650c7014eda834a2de3837c96baf",
|
|
509
|
+
"bcf67fd5c1762a1fc4aeefa5b508a75135028e98003678366fb39364460d0c9a",
|
|
510
|
+
"d90fad55cd0cd94fdea04c89939ab2f89c1920c6565e6dd129eb4e238869fa91",
|
|
511
|
+
"f7199cab522a014ce6610a6c6ab356802c069ee2e164cc1f158c431c13438c91"
|
|
507
512
|
]);
|
|
508
513
|
|
|
509
514
|
// src/lifecycle/paths.ts
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
saveManagedHashLedger,
|
|
9
9
|
shouldPreserveCustomizedOverlay,
|
|
10
10
|
toPosixRel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EJJET3CA.js";
|
|
12
12
|
import {
|
|
13
13
|
acquireDirLock
|
|
14
14
|
} from "./chunk-IHVJTGYR.js";
|
|
@@ -726,6 +726,7 @@ function acquireCacheLock(cacheDir) {
|
|
|
726
726
|
}
|
|
727
727
|
var DEFAULT_REGISTRY_URL = "https://github.com/agent-kit-startup/agent-kit";
|
|
728
728
|
var DEFAULT_REGISTRY_REF = "main";
|
|
729
|
+
var RENAMED_REGISTRY_URL = "https://github.com/mission-kit/cli";
|
|
729
730
|
var SAFE_URL = /^https:\/\/[^\s]+$/;
|
|
730
731
|
var SAFE_REF = /^[A-Za-z0-9][A-Za-z0-9._/-]*$/;
|
|
731
732
|
function assertSafeRegistrySource(url, ref) {
|
|
@@ -844,6 +845,7 @@ export {
|
|
|
844
845
|
loadAgentKitManifest,
|
|
845
846
|
DEFAULT_REGISTRY_URL,
|
|
846
847
|
DEFAULT_REGISTRY_REF,
|
|
848
|
+
RENAMED_REGISTRY_URL,
|
|
847
849
|
assertSafeRegistrySource,
|
|
848
850
|
resolveRegistryRoot,
|
|
849
851
|
normalizeRelPath,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
diffAgainstRegistry,
|
|
3
3
|
summarizeDiff
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-37INM5QP.js";
|
|
5
5
|
import {
|
|
6
6
|
contextConfigPath,
|
|
7
7
|
intervalElapsed,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
assertSafeRegistrySource,
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
resolveRegistryRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GSVUCEMH.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_PACKAGE_SPEC,
|
|
18
18
|
KIT_VERSION
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
CLI_DIST_STALE_FIX,
|
|
3
3
|
assessCliDistFreshness,
|
|
4
4
|
describeCliDistFreshness
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HO7VEYAD.js";
|
|
6
6
|
import {
|
|
7
7
|
CLAUDE_SETTINGS_REL,
|
|
8
8
|
GUARD_SHELL_HOOK_MARKER,
|
|
9
9
|
RESOLVE_AGENT_KIT_REL,
|
|
10
10
|
SESSION_START_HOOK_MARKER,
|
|
11
11
|
mergeAllowRowsWithoutGuard
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DQD6KPWJ.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_COMMANDS_DIR_REL,
|
|
15
15
|
discoverInstalledCommands
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2PKJOMTI.js";
|
|
17
17
|
import {
|
|
18
18
|
findOnPath
|
|
19
19
|
} from "./chunk-WGLPZXNU.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
formatRerunFlags,
|
|
9
9
|
formatStaleCliRefusal,
|
|
10
10
|
syncFromManifest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2JKKO7FF.js";
|
|
12
12
|
import {
|
|
13
13
|
formatSkippedSymlinks,
|
|
14
14
|
logApplyStats
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
REGISTRY_CLI_ARGS,
|
|
18
18
|
resolveRegistryFromCli
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BM5RR7LT.js";
|
|
20
20
|
import {
|
|
21
21
|
CLAUDE_SETTINGS_REL,
|
|
22
22
|
formatClaudeSettingsDrift,
|
|
23
23
|
formatPermissionsChanged,
|
|
24
24
|
planClaudeSettingsDrift,
|
|
25
25
|
writeClaudeSessionStartHook
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DQD6KPWJ.js";
|
|
27
27
|
import {
|
|
28
28
|
generateClaudeCommandAdapters
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2PKJOMTI.js";
|
|
30
30
|
import {
|
|
31
31
|
feedInstallsRegistry
|
|
32
32
|
} from "./chunk-NHJ4IAVN.js";
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
confirmProjectRoot,
|
|
42
42
|
isNonInteractive,
|
|
43
43
|
syncPathCliToRuntime
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-N7L4ARYK.js";
|
|
45
45
|
import {
|
|
46
46
|
checkForUpdates
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GSZ2WZYY.js";
|
|
48
48
|
import {
|
|
49
49
|
dropRetiredSkillIds,
|
|
50
50
|
formatRetiredSkillDrop
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SXMGHRLU.js";
|
|
52
52
|
import {
|
|
53
53
|
buildManifest,
|
|
54
54
|
canonicalizePackIds,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
loadAgentKitManifest,
|
|
58
58
|
resolveProtectedGlobs,
|
|
59
59
|
saveManifest
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-GSVUCEMH.js";
|
|
61
61
|
import {
|
|
62
62
|
seedManagedHashLedger
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-EJJET3CA.js";
|
|
64
64
|
import {
|
|
65
65
|
KIT_VERSION
|
|
66
66
|
} from "./chunk-2G4K4ZI5.js";
|
|
@@ -151,7 +151,7 @@ var updateCommand = defineCommand({
|
|
|
151
151
|
process.exitCode = 1;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
const { runUpdateAll } = await import("./update-all-
|
|
154
|
+
const { runUpdateAll } = await import("./update-all-TSF6GZFZ.js");
|
|
155
155
|
const result2 = await runUpdateAll({
|
|
156
156
|
includeWorktrees: args["include-worktrees"],
|
|
157
157
|
applyOptions: {
|
|
@@ -11,28 +11,68 @@ import {
|
|
|
11
11
|
// src/lifecycle/cursor-update-awareness.ts
|
|
12
12
|
import { access, readFile } from "fs/promises";
|
|
13
13
|
import path from "path";
|
|
14
|
+
import { fileURLToPath } from "url";
|
|
14
15
|
var DEFAULT_CURSOR_CHANGELOG_URL = "https://cursor.com/changelog";
|
|
15
16
|
var CHANGELOG_FETCH_TIMEOUT_MS = 15e3;
|
|
16
17
|
var CURSOR_VERSION_MAJOR_MAX = 20;
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
var INVENTORY_FILE = "cursor-native-audit.md";
|
|
19
|
+
var FEATURES_FILE = "cursor-3-features.md";
|
|
20
|
+
var INVENTORY_REL = path.join("docs", INVENTORY_FILE);
|
|
21
|
+
var FEATURES_REL = path.join("docs", FEATURES_FILE);
|
|
22
|
+
var CURSOR_AUDIT_PACKAGE_DIR = "cursor-audit";
|
|
23
|
+
async function walkInventory(cwd) {
|
|
24
|
+
const start = path.resolve(cwd);
|
|
25
|
+
let dir = start;
|
|
21
26
|
for (; ; ) {
|
|
22
27
|
try {
|
|
23
28
|
await access(path.join(dir, INVENTORY_REL));
|
|
24
|
-
return dir;
|
|
29
|
+
return { hit: dir, configRoot: dir };
|
|
25
30
|
} catch {
|
|
26
31
|
}
|
|
27
|
-
if (await fileExists(path.join(dir, ".git")))
|
|
32
|
+
if (await fileExists(path.join(dir, ".git"))) return { hit: null, configRoot: dir };
|
|
28
33
|
const parent = path.dirname(dir);
|
|
29
|
-
if (parent === dir)
|
|
34
|
+
if (parent === dir) return { hit: null, configRoot: start };
|
|
30
35
|
dir = parent;
|
|
31
36
|
}
|
|
37
|
+
}
|
|
38
|
+
async function resolveInventoryRoot(cwd) {
|
|
39
|
+
return (await walkInventory(cwd)).hit;
|
|
40
|
+
}
|
|
41
|
+
function bundledInventoryDirs(moduleUrl = import.meta.url) {
|
|
42
|
+
const here = path.dirname(fileURLToPath(moduleUrl));
|
|
43
|
+
return [
|
|
44
|
+
path.join(here, "..", CURSOR_AUDIT_PACKAGE_DIR),
|
|
45
|
+
path.join(here, "..", "..", CURSOR_AUDIT_PACKAGE_DIR)
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
async function firstBundledInventoryDir(dirs) {
|
|
49
|
+
for (const dir of dirs) {
|
|
50
|
+
if (await fileExists(path.join(dir, INVENTORY_FILE))) return path.resolve(dir);
|
|
51
|
+
}
|
|
32
52
|
return null;
|
|
33
53
|
}
|
|
54
|
+
async function resolveInventory(cwd, bundledDirs) {
|
|
55
|
+
const walk = await walkInventory(cwd);
|
|
56
|
+
if (walk.hit) {
|
|
57
|
+
return {
|
|
58
|
+
source: "repo",
|
|
59
|
+
root: walk.hit,
|
|
60
|
+
inventoryRel: INVENTORY_REL,
|
|
61
|
+
featuresRel: FEATURES_REL,
|
|
62
|
+
configRoot: walk.configRoot
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const bundled = await firstBundledInventoryDir(bundledDirs);
|
|
66
|
+
return {
|
|
67
|
+
source: bundled ? "package" : null,
|
|
68
|
+
root: bundled,
|
|
69
|
+
inventoryRel: bundled ? INVENTORY_FILE : INVENTORY_REL,
|
|
70
|
+
featuresRel: bundled ? FEATURES_FILE : FEATURES_REL,
|
|
71
|
+
configRoot: walk.configRoot
|
|
72
|
+
};
|
|
73
|
+
}
|
|
34
74
|
function missingInventoryMessage() {
|
|
35
|
-
return `Missing inventory
|
|
75
|
+
return `Missing inventory: no ${INVENTORY_REL} in this checkout and no copy bundled with the CLI package. Reinstall or update @dadado/agent-kit-cli, or pass --cwd <path> to a checkout that carries ${INVENTORY_REL}.`;
|
|
36
76
|
}
|
|
37
77
|
var DEFAULT_PREFS = {
|
|
38
78
|
enabled: false,
|
|
@@ -278,18 +318,26 @@ function baseResult(partial) {
|
|
|
278
318
|
};
|
|
279
319
|
}
|
|
280
320
|
async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
321
|
+
const resolved = await resolveInventory(
|
|
322
|
+
cwd,
|
|
323
|
+
options.bundledInventoryDirs ?? bundledInventoryDirs()
|
|
284
324
|
);
|
|
325
|
+
const { configRoot } = resolved;
|
|
326
|
+
const inventoryRoot = resolved.root;
|
|
327
|
+
const inventorySource = resolved.source;
|
|
328
|
+
const inventoryRel = resolved.inventoryRel;
|
|
329
|
+
const featuresRel = resolved.featuresRel;
|
|
330
|
+
const prefs = readCursorUpdateCheckPrefs(await loadContextConfig(configRoot));
|
|
285
331
|
const changelogUrl = options.changelogUrl ?? prefs.changelogUrl;
|
|
286
332
|
if (options.respectPrefs) {
|
|
287
333
|
if (!prefs.enabled) {
|
|
288
334
|
return baseResult({
|
|
289
335
|
status: "skipped-disabled",
|
|
290
336
|
inventoryRoot,
|
|
291
|
-
|
|
292
|
-
|
|
337
|
+
inventorySource,
|
|
338
|
+
configRoot,
|
|
339
|
+
inventoryPath: inventoryRel,
|
|
340
|
+
featuresPath: featuresRel,
|
|
293
341
|
changelogUrl,
|
|
294
342
|
latestCursorVersion: null,
|
|
295
343
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -303,8 +351,10 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
303
351
|
return baseResult({
|
|
304
352
|
status: "skipped-interval",
|
|
305
353
|
inventoryRoot,
|
|
306
|
-
|
|
307
|
-
|
|
354
|
+
inventorySource,
|
|
355
|
+
configRoot,
|
|
356
|
+
inventoryPath: inventoryRel,
|
|
357
|
+
featuresPath: featuresRel,
|
|
308
358
|
changelogUrl,
|
|
309
359
|
latestCursorVersion: null,
|
|
310
360
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -319,8 +369,10 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
319
369
|
return baseResult({
|
|
320
370
|
status: "error",
|
|
321
371
|
inventoryRoot: null,
|
|
322
|
-
|
|
323
|
-
|
|
372
|
+
inventorySource: null,
|
|
373
|
+
configRoot,
|
|
374
|
+
inventoryPath: inventoryRel,
|
|
375
|
+
featuresPath: featuresRel,
|
|
324
376
|
changelogUrl,
|
|
325
377
|
latestCursorVersion: null,
|
|
326
378
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -330,8 +382,8 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
330
382
|
message: missingInventoryMessage()
|
|
331
383
|
});
|
|
332
384
|
}
|
|
333
|
-
const inventoryPath = path.join(inventoryRoot,
|
|
334
|
-
const featuresPath = path.join(inventoryRoot,
|
|
385
|
+
const inventoryPath = path.join(inventoryRoot, inventoryRel);
|
|
386
|
+
const featuresPath = path.join(inventoryRoot, featuresRel);
|
|
335
387
|
let inventoryMd;
|
|
336
388
|
try {
|
|
337
389
|
inventoryMd = await readFile(inventoryPath, "utf8");
|
|
@@ -339,8 +391,10 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
339
391
|
return baseResult({
|
|
340
392
|
status: "error",
|
|
341
393
|
inventoryRoot,
|
|
342
|
-
|
|
343
|
-
|
|
394
|
+
inventorySource,
|
|
395
|
+
configRoot,
|
|
396
|
+
inventoryPath: inventoryRel,
|
|
397
|
+
featuresPath: featuresRel,
|
|
344
398
|
changelogUrl,
|
|
345
399
|
latestCursorVersion: null,
|
|
346
400
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -354,13 +408,14 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
354
408
|
const openActionIds = parseOpenActionIds(inventoryMd);
|
|
355
409
|
const gaps = [];
|
|
356
410
|
let featuresMd = "";
|
|
411
|
+
const kitOwned = inventorySource === "package";
|
|
357
412
|
for (const id of openActionIds) {
|
|
358
413
|
gaps.push({
|
|
359
414
|
id: `open-action-${id}`,
|
|
360
|
-
severity: "advisory",
|
|
361
|
-
path:
|
|
362
|
-
evidence: `Action item ${id} is Open in the native-audit inventory`,
|
|
363
|
-
suggestedRoute: "backlog-add"
|
|
415
|
+
severity: kitOwned ? "info" : "advisory",
|
|
416
|
+
path: inventoryRel,
|
|
417
|
+
evidence: kitOwned ? `Action item ${id} is Open in the Agent Kit native-audit inventory (kit-owned)` : `Action item ${id} is Open in the native-audit inventory`,
|
|
418
|
+
suggestedRoute: kitOwned ? "none" : "backlog-add"
|
|
364
419
|
});
|
|
365
420
|
}
|
|
366
421
|
if (inventoryRefreshed) {
|
|
@@ -371,7 +426,7 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
371
426
|
gaps.push({
|
|
372
427
|
id: "inventory-stale",
|
|
373
428
|
severity: "stale",
|
|
374
|
-
path:
|
|
429
|
+
path: inventoryRel,
|
|
375
430
|
evidence: `Inventory last refreshed ${inventoryRefreshed} (>45 days). Version-prose refresh owned by parked Marketplace plan; awareness reports only.`,
|
|
376
431
|
suggestedRoute: "none"
|
|
377
432
|
});
|
|
@@ -384,7 +439,7 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
384
439
|
gaps.push({
|
|
385
440
|
id: "features-map-empty",
|
|
386
441
|
severity: "info",
|
|
387
|
-
path:
|
|
442
|
+
path: featuresRel,
|
|
388
443
|
evidence: "Secondary feature map has no Feature table rows",
|
|
389
444
|
suggestedRoute: "none"
|
|
390
445
|
});
|
|
@@ -393,7 +448,7 @@ async function checkCursorUpdateAwareness(cwd, options = {}) {
|
|
|
393
448
|
gaps.push({
|
|
394
449
|
id: "features-map-missing",
|
|
395
450
|
severity: "info",
|
|
396
|
-
path:
|
|
451
|
+
path: featuresRel,
|
|
397
452
|
evidence: "Secondary feature map missing; changelog/inventory check continues",
|
|
398
453
|
suggestedRoute: "none"
|
|
399
454
|
});
|
|
@@ -415,7 +470,7 @@ ${featuresMd}`;
|
|
|
415
470
|
gaps.push({
|
|
416
471
|
id: `feature-keyword-miss:${slug}`,
|
|
417
472
|
severity: "advisory",
|
|
418
|
-
path:
|
|
473
|
+
path: featuresRel,
|
|
419
474
|
evidence: `Changelog names "${keyword}" which is not listed in native-audit or cursor-3-features`,
|
|
420
475
|
suggestedRoute: "backlog-add"
|
|
421
476
|
});
|
|
@@ -442,8 +497,10 @@ ${featuresMd}`;
|
|
|
442
497
|
return baseResult({
|
|
443
498
|
status: "error",
|
|
444
499
|
inventoryRoot,
|
|
445
|
-
|
|
446
|
-
|
|
500
|
+
inventorySource,
|
|
501
|
+
configRoot,
|
|
502
|
+
inventoryPath: inventoryRel,
|
|
503
|
+
featuresPath: featuresRel,
|
|
447
504
|
changelogUrl,
|
|
448
505
|
latestCursorVersion: null,
|
|
449
506
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -454,8 +511,8 @@ ${featuresMd}`;
|
|
|
454
511
|
});
|
|
455
512
|
}
|
|
456
513
|
}
|
|
457
|
-
if (options.stamp
|
|
458
|
-
await stampCursorUpdateCheck(
|
|
514
|
+
if (options.stamp) {
|
|
515
|
+
await stampCursorUpdateCheck(configRoot, {
|
|
459
516
|
lastSeenCursorVersion: latestCursorVersion ?? prefs.lastSeenCursorVersion
|
|
460
517
|
});
|
|
461
518
|
}
|
|
@@ -464,8 +521,10 @@ ${featuresMd}`;
|
|
|
464
521
|
return baseResult({
|
|
465
522
|
status,
|
|
466
523
|
inventoryRoot,
|
|
467
|
-
|
|
468
|
-
|
|
524
|
+
inventorySource,
|
|
525
|
+
configRoot,
|
|
526
|
+
inventoryPath: inventoryRel,
|
|
527
|
+
featuresPath: featuresRel,
|
|
469
528
|
changelogUrl: options.offline ? null : changelogUrl,
|
|
470
529
|
latestCursorVersion,
|
|
471
530
|
lastSeenCursorVersion: prefs.lastSeenCursorVersion,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
loadRegistry,
|
|
10
10
|
packMemberFileTargets,
|
|
11
11
|
skillFileTargets
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GSVUCEMH.js";
|
|
13
13
|
import {
|
|
14
14
|
contentHash,
|
|
15
15
|
resolveContained
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EJJET3CA.js";
|
|
17
17
|
import {
|
|
18
18
|
MANIFEST_RELATIVE_PATH
|
|
19
19
|
} from "./chunk-KMK4T4ZM.js";
|
|
@@ -8,7 +8,7 @@ import "./chunk-TTUFIE26.js";
|
|
|
8
8
|
import {
|
|
9
9
|
CURSOR_COMMANDS_DIR_REL,
|
|
10
10
|
discoverInstalledCommands
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2PKJOMTI.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-
|
|
19
|
+
import "./chunk-EJJET3CA.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-
|
|
4
|
+
} from "./chunk-BM5RR7LT.js";
|
|
5
5
|
import {
|
|
6
6
|
logger
|
|
7
7
|
} from "./chunk-ZB43YMHW.js";
|
|
8
8
|
import {
|
|
9
9
|
managedPairs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SXMGHRLU.js";
|
|
11
11
|
import "./chunk-CGXLR77R.js";
|
|
12
12
|
import {
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
normalizeRelPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GSVUCEMH.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContained
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EJJET3CA.js";
|
|
19
19
|
import "./chunk-IHVJTGYR.js";
|
|
20
20
|
import "./chunk-KMK4T4ZM.js";
|
|
21
21
|
import "./chunk-O7VMHCNN.js";
|