@dadado/agent-kit-cli 6.25.0 → 6.26.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.html +3 -3
- package/dashboard/lib/guards.mjs +1 -0
- package/dist/{add-OYLOMCM6.js → add-G7KEZLWP.js} +7 -6
- package/dist/{chunk-7HDQEK6T.js → chunk-2G4K4ZI5.js} +7 -3
- package/dist/{chunk-QLTGHJB3.js → chunk-2GXN7HVG.js} +5 -5
- package/dist/{chunk-HSIHZWFF.js → chunk-5A72LTR3.js} +7 -7
- package/dist/{chunk-6WUKLS4D.js → chunk-BIFTTL2O.js} +1 -1
- package/dist/{chunk-NJ2SUSWX.js → chunk-BVZDPVUL.js} +1 -1
- package/dist/{chunk-QACMV46U.js → chunk-ENRXS5O6.js} +19 -12
- package/dist/{chunk-2F6NMQOA.js → chunk-FB6G6OD6.js} +3 -3
- package/dist/{chunk-MFKHIWEL.js → chunk-FOVHFMSH.js} +1 -1
- package/dist/{chunk-EO5NGAYV.js → chunk-FUSNEYGU.js} +29 -3
- package/dist/{chunk-GMG7ZH4E.js → chunk-H7KAXI5R.js} +13 -13
- package/dist/{chunk-SAQ3EE5R.js → chunk-HGB4DHXV.js} +3 -3
- package/dist/{chunk-IFBIO7VT.js → chunk-HXV6VQD4.js} +1402 -42
- package/dist/{chunk-XGZOU4DS.js → chunk-I3FGWNU5.js} +4 -4
- package/dist/{chunk-6M6UKECW.js → chunk-IHVJTGYR.js} +0 -32
- package/dist/{chunk-H7RAFRRZ.js → chunk-IUY24WPE.js} +68 -34
- package/dist/chunk-JG5MKMOM.js +248 -0
- package/dist/{chunk-KWYF7QNH.js → chunk-JWIJHO67.js} +17 -2
- package/dist/chunk-KMK4T4ZM.js +34 -0
- package/dist/{chunk-ZMYV6PRE.js → chunk-LEVNLHH3.js} +2 -1
- package/dist/{chunk-2XLI7XEY.js → chunk-MGVV6YC4.js} +1 -1
- package/dist/{chunk-C7SV7UP5.js → chunk-MWRYQLEG.js} +3 -3
- package/dist/{chunk-WKFE3RUC.js → chunk-NHJ4IAVN.js} +5 -3
- package/dist/{chunk-C4Q77GGJ.js → chunk-O7VMHCNN.js} +6 -0
- package/dist/{chunk-GQSSXDDK.js → chunk-OVRGTHZD.js} +1 -1
- package/dist/{chunk-CIV42JGT.js → chunk-PCIYXGB3.js} +2 -2
- package/dist/{chunk-7Y74KO7U.js → chunk-PLLXFSN2.js} +12 -12
- package/dist/{chunk-QX55T4UX.js → chunk-RJP47EGS.js} +6 -1
- package/dist/{chunk-JGG574RK.js → chunk-RRJVC35Y.js} +3 -3
- package/dist/{chunk-PIMGV3E5.js → chunk-SWJJW624.js} +1 -1
- package/dist/{chunk-G5MQRP6M.js → chunk-SYRJ5TTK.js} +13 -9
- package/dist/{chunk-L5V3W3DY.js → chunk-TTUFIE26.js} +60 -14
- package/dist/{chunk-JFS4GKP7.js → chunk-XXPI4H4D.js} +2 -2
- package/dist/{chunk-M4UL422I.js → chunk-Y5526WCN.js} +6 -6
- package/dist/{chunk-CXE6ASSX.js → chunk-Y575INEC.js} +1 -1
- package/dist/{chunk-JG3CNGQM.js → chunk-ZNZHDPS3.js} +6 -4
- package/dist/{commands-UW2C2ZN4.js → commands-K4HSDML5.js} +8 -6
- package/dist/{conflicts-RING6AHV.js → conflicts-4SUWIPWP.js} +9 -10
- package/dist/{contribute-LSY75JZH.js → contribute-HE4WCBRY.js} +7 -6
- package/dist/{countdown-SZ2P4XHB.js → countdown-TYQHVAIX.js} +74 -45
- package/dist/{dashboard-P65XHYCU.js → dashboard-6V6PCNYF.js} +1 -1
- package/dist/{dashboard-broadcast-GYK34QYL.js → dashboard-broadcast-PMVQ7PXU.js} +1 -1
- package/dist/{diff-NZVBVQSK.js → diff-3XUZM7ZT.js} +8 -7
- package/dist/{doctor-TJSXBVGV.js → doctor-KGUWU5SN.js} +16 -15
- package/dist/{engine-info-BBI5QO5Y.js → engine-info-VM4VPGQM.js} +2 -2
- package/dist/{ground-control-ZJXPUIQN.js → ground-control-ZIDHEOPW.js} +7 -4
- package/dist/{handoff-2OZSWGTE.js → handoff-LLT4CI6H.js} +2 -3
- package/dist/{hook-3VPKNSOO.js → hook-UPZ3CPYS.js} +22 -22
- package/dist/index.js +49 -32
- package/dist/{init-UW2BJBO2.js → init-ZHLVXEVT.js} +19 -18
- package/dist/{install-RQSI4CHG.js → install-XWOG64W3.js} +19 -18
- package/dist/{installs-7TR4H4QH.js → installs-2ROXPO6M.js} +5 -4
- package/dist/{mission-control-VSU6NT43.js → mission-control-IGOI3WHS.js} +2 -2
- package/dist/models-5BDXREWM.js +45 -0
- package/dist/paths-JTPV6SXH.js +107 -0
- package/dist/pi-DCMDOY65.js +248 -0
- package/dist/{plan-index-BNLUU6T5.js → plan-index-5QZJK4AG.js} +2 -3
- package/dist/{queue-JHYILLMX.js → queue-Z5VNNHM6.js} +11 -13
- package/dist/{run-CQF5RM5X.js → run-QURAXAR2.js} +24 -30
- package/dist/{run-plan-BEOCOJCF.js → run-plan-4MMHVCTS.js} +35 -23
- package/dist/{session-start-QV7CEFRX.js → session-start-NC2HE5X5.js} +16 -16
- package/dist/{sessions-AWAAO3DU.js → sessions-WWWLYPW6.js} +4 -4
- package/dist/{setup-global-ST4TT427.js → setup-global-WDMARD4Z.js} +11 -10
- package/dist/{status-HUBPBGUU.js → status-2WNJL7PP.js} +12 -11
- package/dist/update-YSVOYYK5.js +32 -0
- package/dist/{update-all-YYUTXHGR.js → update-all-5XLTCHPX.js} +20 -18
- package/package.json +14 -4
- package/pi/agent-kit.ts +224 -0
- package/dist/chunk-7ABY6DYH.js +0 -89
- package/dist/chunk-AQLBEEPD.js +0 -625
- package/dist/chunk-MUTTNRX4.js +0 -53
- package/dist/chunk-TOSAAQ5A.js +0 -71
- package/dist/update-DD5UZPGG.js +0 -31
package/dashboard/dashboard.html
CHANGED
|
@@ -6252,7 +6252,7 @@ function personaOptionHtml(selected) {
|
|
|
6252
6252
|
|
|
6253
6253
|
/* Model roles (roles key; docs/model-roles-capability-matrix.md). Empty = not set:
|
|
6254
6254
|
the field is cleared and the command default or the Audits section applies. */
|
|
6255
|
-
const ROLE_WORKER_BACKEND_OPTIONS = ['auto', 'claude', 'cursor-agent', 'codex', 'openrouter', 'cursor-acp'];
|
|
6255
|
+
const ROLE_WORKER_BACKEND_OPTIONS = ['auto', 'claude', 'cursor-agent', 'codex', 'openrouter', 'cursor-acp', 'local'];
|
|
6256
6256
|
const ROLE_REVIEWER_BACKEND_OPTIONS = ['auto', 'claude', 'cursor-agent'];
|
|
6257
6257
|
const ROLE_REVIEWER_SCOPE_OPTIONS = ['off', 'tick', 'plan'];
|
|
6258
6258
|
const ROLE_MODEL_SUGGESTIONS = [
|
|
@@ -6315,12 +6315,12 @@ function renderRolesFieldset(cfg) {
|
|
|
6315
6315
|
<select id="config-role-worker-backend" name="roleWorkerBackend" data-focus-key="config-role-worker-backend">
|
|
6316
6316
|
${roleSelectHtml(ROLE_WORKER_BACKEND_OPTIONS, worker.backend, 'Not set (command default)')}
|
|
6317
6317
|
</select>
|
|
6318
|
-
<span class="config-hint">codex, openrouter and cursor-acp bill their own accounts and never fall back to another backend.</span>
|
|
6318
|
+
<span class="config-hint">codex, openrouter and cursor-acp bill their own accounts and never fall back to another backend. local runs a model on this machine (pi) and never falls back to a paid one.</span>
|
|
6319
6319
|
</div>
|
|
6320
6320
|
<div class="config-row">
|
|
6321
6321
|
<label for="config-role-worker-model">Worker model</label>
|
|
6322
6322
|
<input type="text" id="config-role-worker-model" name="roleWorkerModel" list="config-role-model-suggestions" value="${escapeAttr(worker.model || '')}" maxlength="128" placeholder="backend default" data-focus-key="config-role-worker-model" />
|
|
6323
|
-
<span class="config-hint">Alias or full id for the worker backend. cursor-acp cannot select a model.</span>
|
|
6323
|
+
<span class="config-hint">Alias or full id for the worker backend. cursor-acp cannot select a model. local takes <source>:<id> from agent-kit models.</span>
|
|
6324
6324
|
</div>
|
|
6325
6325
|
<div class="config-row">
|
|
6326
6326
|
<label for="config-role-subworker-model">Subworker model</label>
|
package/dashboard/lib/guards.mjs
CHANGED
|
@@ -595,6 +595,7 @@ export const ROLE_CAPABILITIES = Object.freeze({
|
|
|
595
595
|
codex: Object.freeze({ workerModel: true, subworkerModel: false, reviewer: false }),
|
|
596
596
|
openrouter: Object.freeze({ workerModel: true, subworkerModel: false, reviewer: false }),
|
|
597
597
|
"cursor-acp": Object.freeze({ workerModel: false, subworkerModel: false, reviewer: false }),
|
|
598
|
+
local: Object.freeze({ workerModel: true, subworkerModel: false, reviewer: false }),
|
|
598
599
|
});
|
|
599
600
|
|
|
600
601
|
/** roles.worker.backend values: auto plus every kit backend id. */
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
REGISTRY_CLI_ARGS,
|
|
7
7
|
resolveRegistryFromCli
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SWJJW624.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
11
|
} from "./chunk-ZB43YMHW.js";
|
|
@@ -23,13 +23,14 @@ import {
|
|
|
23
23
|
resolveProtectedGlobs,
|
|
24
24
|
saveManifest,
|
|
25
25
|
upsertIdList
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-ZNZHDPS3.js";
|
|
27
|
+
import "./chunk-RJP47EGS.js";
|
|
28
|
+
import "./chunk-IHVJTGYR.js";
|
|
29
|
+
import "./chunk-KMK4T4ZM.js";
|
|
29
30
|
import {
|
|
30
31
|
KIT_VERSION
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-2G4K4ZI5.js";
|
|
33
|
+
import "./chunk-O7VMHCNN.js";
|
|
33
34
|
import "./chunk-5B4DVO6C.js";
|
|
34
35
|
|
|
35
36
|
// src/commands/add.ts
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// src/lifecycle/version.ts
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
var require2 = createRequire(import.meta.url);
|
|
4
|
-
function
|
|
4
|
+
function loadPackageMetadata() {
|
|
5
5
|
for (const packagePath of ["../package.json", "../../package.json"]) {
|
|
6
6
|
try {
|
|
7
7
|
const metadata = require2(packagePath);
|
|
8
8
|
if (typeof metadata.version === "string" && metadata.version.length > 0) {
|
|
9
|
-
|
|
9
|
+
const name = typeof metadata.name === "string" ? metadata.name : "";
|
|
10
|
+
return { name, version: metadata.version };
|
|
10
11
|
}
|
|
11
12
|
} catch {
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
throw new Error("Unable to resolve the Agent Kit CLI package version");
|
|
15
16
|
}
|
|
16
|
-
var
|
|
17
|
+
var PACKAGE_METADATA = loadPackageMetadata();
|
|
18
|
+
var KIT_VERSION = PACKAGE_METADATA.version;
|
|
19
|
+
var KIT_PACKAGE_NAME = PACKAGE_METADATA.name;
|
|
17
20
|
var KIT_PACKAGE_SPEC = "@dadado/agent-kit-cli";
|
|
18
21
|
function pinnedCliSpec(version = KIT_VERSION) {
|
|
19
22
|
return `${KIT_PACKAGE_SPEC}@${version}`;
|
|
@@ -21,6 +24,7 @@ function pinnedCliSpec(version = KIT_VERSION) {
|
|
|
21
24
|
|
|
22
25
|
export {
|
|
23
26
|
KIT_VERSION,
|
|
27
|
+
KIT_PACKAGE_NAME,
|
|
24
28
|
KIT_PACKAGE_SPEC,
|
|
25
29
|
pinnedCliSpec
|
|
26
30
|
};
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
compareSemver,
|
|
6
6
|
normalizeSemver,
|
|
7
7
|
readLocalKitVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y5526WCN.js";
|
|
9
9
|
import {
|
|
10
10
|
isRetiredSkillId,
|
|
11
11
|
retireManagedFiles
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HGB4DHXV.js";
|
|
13
13
|
import {
|
|
14
14
|
L0_ARTIFACTS
|
|
15
15
|
} from "./chunk-CGXLR77R.js";
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
mergeStats,
|
|
24
24
|
recordOutcome,
|
|
25
25
|
resolveProtectedGlobs
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZNZHDPS3.js";
|
|
27
27
|
import {
|
|
28
28
|
loadManagedHashLedger,
|
|
29
29
|
saveManagedHashLedger
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RJP47EGS.js";
|
|
31
31
|
import {
|
|
32
32
|
KIT_PACKAGE_SPEC,
|
|
33
33
|
KIT_VERSION
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2G4K4ZI5.js";
|
|
35
35
|
import {
|
|
36
36
|
fileExists
|
|
37
37
|
} from "./chunk-5B4DVO6C.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBranchInBase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OVRGTHZD.js";
|
|
4
4
|
import {
|
|
5
5
|
GATE_EXIT_BRANCH_PREFIX,
|
|
6
6
|
GATE_EXIT_NOTE_DIR,
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
isSafeBaseRef,
|
|
12
12
|
landGateExit,
|
|
13
13
|
resolveGateExitRefs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
ensurePathIgnored
|
|
17
|
-
} from "./chunk-MUTTNRX4.js";
|
|
14
|
+
} from "./chunk-I3FGWNU5.js";
|
|
18
15
|
import {
|
|
19
16
|
ensureDispatchLogPath,
|
|
20
17
|
readCommandFile,
|
|
21
18
|
runHeadlessDispatch
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWIJHO67.js";
|
|
23
20
|
import {
|
|
24
21
|
redactSecrets
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HXV6VQD4.js";
|
|
26
23
|
import {
|
|
27
24
|
formatHitlSummary,
|
|
28
25
|
hitlExitCode
|
|
29
26
|
} from "./chunk-P7732A25.js";
|
|
27
|
+
import {
|
|
28
|
+
ensurePathIgnored
|
|
29
|
+
} from "./chunk-TTUFIE26.js";
|
|
30
30
|
|
|
31
31
|
// src/plan-loop/review-job.ts
|
|
32
32
|
import { randomBytes } from "crypto";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { createInterface } from "readline";
|
|
7
7
|
import { StringDecoder } from "string_decoder";
|
|
8
8
|
var DRIVER_PROTOCOL_MAJOR = 1;
|
|
9
|
-
var DRIVER_PROTOCOL_VERSION = "1.
|
|
9
|
+
var DRIVER_PROTOCOL_VERSION = "1.6.0";
|
|
10
10
|
var DRIVER_EVENTS_FORMATS = ["ndjson"];
|
|
11
11
|
var INBOUND_MAX_CHARS = 64 * 1024;
|
|
12
12
|
var AGENT_PENDING_MAX_CHARS = 4 * 1024 * 1024;
|
|
@@ -5,37 +5,35 @@ import {
|
|
|
5
5
|
createDriverEmitter,
|
|
6
6
|
driverReplies,
|
|
7
7
|
driverStop
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
readRunQueueState
|
|
11
|
-
} from "./chunk-7ABY6DYH.js";
|
|
12
|
-
import {
|
|
13
|
-
detectAgentBackend
|
|
14
|
-
} from "./chunk-TOSAAQ5A.js";
|
|
8
|
+
} from "./chunk-BIFTTL2O.js";
|
|
15
9
|
import {
|
|
16
10
|
classifyGateExit,
|
|
17
11
|
landGateExit
|
|
18
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I3FGWNU5.js";
|
|
19
13
|
import {
|
|
20
14
|
QUEUE_LEASE_INTERRUPT_WAIT_MS,
|
|
21
15
|
QUEUE_LEASE_SESSION_ENV,
|
|
22
16
|
acquireQueueLease,
|
|
23
17
|
forwardTermination,
|
|
24
18
|
gateCheckIn
|
|
25
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FOVHFMSH.js";
|
|
26
20
|
import {
|
|
27
21
|
buildDispatchPrompt,
|
|
28
22
|
ensureDispatchLogPath,
|
|
29
23
|
readCommandFile,
|
|
30
24
|
runHeadlessDispatch
|
|
31
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JWIJHO67.js";
|
|
26
|
+
import {
|
|
27
|
+
detectAgentBackend,
|
|
28
|
+
readRunQueueState
|
|
29
|
+
} from "./chunk-HXV6VQD4.js";
|
|
32
30
|
import {
|
|
33
31
|
formatHitlSummary,
|
|
34
32
|
hitlExitCode
|
|
35
33
|
} from "./chunk-P7732A25.js";
|
|
36
34
|
import {
|
|
37
35
|
HANDOFF_REL
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-O7VMHCNN.js";
|
|
39
37
|
|
|
40
38
|
// src/plan-loop/dispatch-driver.ts
|
|
41
39
|
import { readFile } from "fs/promises";
|
|
@@ -279,7 +277,16 @@ async function runDispatchDriver(opts) {
|
|
|
279
277
|
write: writeErr,
|
|
280
278
|
checkIn: gateCheckIn(root, () => lease.session, opts.lease)
|
|
281
279
|
},
|
|
282
|
-
onSpawn: (info) => lease.setAgent(info.pid)
|
|
280
|
+
onSpawn: (info) => lease.setAgent(info.pid),
|
|
281
|
+
onProgress: (p) => emitter.emit({
|
|
282
|
+
type: "model_loading",
|
|
283
|
+
tick: DISPATCH_DRIVER_TICK,
|
|
284
|
+
backend: detected.id,
|
|
285
|
+
model: p.model,
|
|
286
|
+
phase: p.phase,
|
|
287
|
+
elapsedMs: p.elapsedMs,
|
|
288
|
+
...p.detail ? { detail: p.detail } : {}
|
|
289
|
+
})
|
|
283
290
|
});
|
|
284
291
|
} catch (err) {
|
|
285
292
|
say(String(err), "error");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listInstalls,
|
|
3
3
|
resolveInstallsFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NHJ4IAVN.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_NPM_PACKAGES,
|
|
7
7
|
compareSemver,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
isFactoryOrDevRegistry,
|
|
10
10
|
normalizeSemver,
|
|
11
11
|
updateCheckAllowed
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y5526WCN.js";
|
|
13
13
|
import {
|
|
14
14
|
loadContextConfig
|
|
15
15
|
} from "./chunk-PFEUZXVT.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2G4K4ZI5.js";
|
|
19
19
|
import {
|
|
20
20
|
writeJson
|
|
21
21
|
} from "./chunk-5B4DVO6C.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveContained,
|
|
6
6
|
saveManagedHashLedger,
|
|
7
7
|
shouldPreserveCustomizedOverlay
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RJP47EGS.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureDir,
|
|
11
11
|
fileExists
|
|
@@ -17,13 +17,39 @@ import path from "path";
|
|
|
17
17
|
var CURSOR_COMMANDS_DIR_REL = ".cursor/commands";
|
|
18
18
|
var CLAUDE_COMMANDS_DIR_REL = ".claude/commands";
|
|
19
19
|
var RESERVED_ADAPTER_NAMES = /* @__PURE__ */ new Set(["agent-kit"]);
|
|
20
|
+
function unquoteYamlScalar(value) {
|
|
21
|
+
if (value.length >= 2 && value.startsWith('"') && value.endsWith('"')) {
|
|
22
|
+
try {
|
|
23
|
+
const parsed = JSON.parse(value);
|
|
24
|
+
if (typeof parsed === "string") return parsed;
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
return value.slice(1, -1);
|
|
28
|
+
}
|
|
29
|
+
if (value.length >= 2 && value.startsWith("'") && value.endsWith("'")) {
|
|
30
|
+
return value.slice(1, -1).replace(/''/g, "'");
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
function isPlainYamlSafe(value) {
|
|
35
|
+
if (value === "" || value !== value.trim()) return false;
|
|
36
|
+
if (/[\n\r\t]/.test(value)) return false;
|
|
37
|
+
if (/: |:$| #/.test(value)) return false;
|
|
38
|
+
if (/^[-?:,[\]{}#&*!|>'"%@`]/.test(value)) return false;
|
|
39
|
+
if (/^(?:~|null|true|false|yes|no|on|off|y|n)$/i.test(value)) return false;
|
|
40
|
+
if (/^[-+]?(?:\.?\d|\.(?:inf|nan)$)/i.test(value)) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function yamlScalar(value) {
|
|
44
|
+
return isPlainYamlSafe(value) ? value : JSON.stringify(value);
|
|
45
|
+
}
|
|
20
46
|
function parseCommandFrontmatter(name, raw) {
|
|
21
47
|
const match = /^---\r?\n([\s\S]*?)\r?\n---/.exec(raw);
|
|
22
48
|
if (!match) return null;
|
|
23
49
|
const body = match[1] ?? "";
|
|
24
50
|
const descMatch = /^description:\s*(.+)$/m.exec(body);
|
|
25
51
|
if (!descMatch) return null;
|
|
26
|
-
const description = (descMatch[1] ?? "").trim();
|
|
52
|
+
const description = unquoteYamlScalar((descMatch[1] ?? "").trim()).trim();
|
|
27
53
|
if (!description) return null;
|
|
28
54
|
return { name, description };
|
|
29
55
|
}
|
|
@@ -41,7 +67,7 @@ var MODEL_INVOCATION_DISABLED = /* @__PURE__ */ new Set([
|
|
|
41
67
|
function renderClaudeCommandAdapter(command) {
|
|
42
68
|
const invocation = MODEL_INVOCATION_DISABLED.has(command.name) ? "disable-model-invocation: true\n" : "";
|
|
43
69
|
return `---
|
|
44
|
-
description: ${command.description}
|
|
70
|
+
description: ${yamlScalar(command.description)}
|
|
45
71
|
${invocation}---
|
|
46
72
|
|
|
47
73
|
Read \`.cursor/commands/${command.name}.md\` now and follow that contract exactly \u2014 it is the source of truth for /${command.name}; this file is only a thin adapter for Claude Code.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatQueueLeaseRefusal,
|
|
3
3
|
inspectQueueLease
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FOVHFMSH.js";
|
|
5
5
|
import {
|
|
6
6
|
NON_INTERACTIVE_ROOT_ARGS,
|
|
7
7
|
detectStaleCli,
|
|
8
8
|
formatRerunFlags,
|
|
9
9
|
formatStaleCliRefusal,
|
|
10
10
|
syncFromManifest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2GXN7HVG.js";
|
|
12
12
|
import {
|
|
13
13
|
formatSkippedSymlinks,
|
|
14
14
|
logApplyStats
|
|
@@ -16,20 +16,20 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
REGISTRY_CLI_ARGS,
|
|
18
18
|
resolveRegistryFromCli
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SWJJW624.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-BVZDPVUL.js";
|
|
27
27
|
import {
|
|
28
28
|
generateClaudeCommandAdapters
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FUSNEYGU.js";
|
|
30
30
|
import {
|
|
31
31
|
feedInstallsRegistry
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NHJ4IAVN.js";
|
|
33
33
|
import {
|
|
34
34
|
withCliProgress
|
|
35
35
|
} from "./chunk-QTON2GQX.js";
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
confirmProjectRoot,
|
|
42
42
|
isNonInteractive,
|
|
43
43
|
syncPathCliToRuntime
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RRJVC35Y.js";
|
|
45
45
|
import {
|
|
46
46
|
checkForUpdates
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-Y5526WCN.js";
|
|
48
48
|
import {
|
|
49
49
|
dropRetiredSkillIds,
|
|
50
50
|
formatRetiredSkillDrop
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HGB4DHXV.js";
|
|
52
52
|
import {
|
|
53
53
|
buildManifest,
|
|
54
54
|
canonicalizePackIds,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
loadAgentKitManifest,
|
|
58
58
|
resolveProtectedGlobs,
|
|
59
59
|
saveManifest
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZNZHDPS3.js";
|
|
61
61
|
import {
|
|
62
62
|
seedManagedHashLedger
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RJP47EGS.js";
|
|
64
64
|
import {
|
|
65
65
|
KIT_VERSION
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2G4K4ZI5.js";
|
|
67
67
|
|
|
68
68
|
// src/commands/update.ts
|
|
69
69
|
import { defineCommand } from "citty";
|
|
@@ -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-5XLTCHPX.js");
|
|
155
155
|
const result2 = await runUpdateAll({
|
|
156
156
|
includeWorktrees: args["include-worktrees"],
|
|
157
157
|
applyOptions: {
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
loadRegistry,
|
|
10
10
|
packMemberFileTargets,
|
|
11
11
|
skillFileTargets
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZNZHDPS3.js";
|
|
13
13
|
import {
|
|
14
14
|
contentHash,
|
|
15
15
|
resolveContained
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RJP47EGS.js";
|
|
17
17
|
import {
|
|
18
18
|
MANIFEST_RELATIVE_PATH
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KMK4T4ZM.js";
|
|
20
20
|
|
|
21
21
|
// src/lifecycle/retired.ts
|
|
22
22
|
import { lstat, readFile, rmdir, unlink } from "fs/promises";
|