@dadado/agent-kit-cli 6.23.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/README.md +1 -0
- package/dashboard/dashboard-data.mjs +126 -5
- package/dashboard/dashboard.html +48 -7
- package/dashboard/lib/guards.mjs +1 -0
- package/dashboard/lib/live-refresh.mjs +1 -0
- package/dist/{add-RKZQX6ZK.js → add-G7KEZLWP.js} +17 -8
- package/dist/{chunk-7HDQEK6T.js → chunk-2G4K4ZI5.js} +7 -3
- package/dist/{chunk-5PSV76CQ.js → chunk-2GXN7HVG.js} +26 -7
- package/dist/chunk-2QYWMSI5.js +193 -0
- package/dist/{chunk-B3VR5YBQ.js → chunk-2TW7ENWC.js} +12 -11
- package/dist/{chunk-IESSMKOV.js → chunk-5A72LTR3.js} +7 -7
- package/dist/{chunk-R4DUO5DA.js → chunk-AXQMVQ6O.js} +61 -237
- package/dist/{chunk-6WUKLS4D.js → chunk-BIFTTL2O.js} +1 -1
- package/dist/{chunk-AWQ6KRFV.js → chunk-BVZDPVUL.js} +1 -1
- package/dist/{chunk-QNISTPPZ.js → chunk-ENRXS5O6.js} +19 -12
- package/dist/chunk-FB6G6OD6.js +519 -0
- package/dist/{chunk-MFKHIWEL.js → chunk-FOVHFMSH.js} +1 -1
- package/dist/{chunk-6BEFGKCU.js → chunk-FUSNEYGU.js} +29 -3
- package/dist/chunk-H7KAXI5R.js +357 -0
- package/dist/chunk-HGB4DHXV.js +138 -0
- package/dist/{chunk-W3ZJVBNY.js → chunk-HXV6VQD4.js} +2374 -983
- package/dist/{chunk-BGL5DRK2.js → chunk-I3FGWNU5.js} +4 -4
- package/dist/chunk-IHVJTGYR.js +144 -0
- package/dist/{chunk-5LNHRL5E.js → chunk-IUY24WPE.js} +93 -263
- package/dist/chunk-JG5MKMOM.js +248 -0
- package/dist/{chunk-SGTTC2JP.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-2IP4OO6R.js → chunk-MGVV6YC4.js} +1 -1
- package/dist/{chunk-7TYA3GMI.js → chunk-MWRYQLEG.js} +7 -4
- package/dist/chunk-NHJ4IAVN.js +435 -0
- package/dist/{chunk-C4Q77GGJ.js → chunk-O7VMHCNN.js} +6 -0
- package/dist/{chunk-5EBT3V7G.js → chunk-OVRGTHZD.js} +1 -1
- package/dist/{chunk-F7YAAKYP.js → chunk-PCIYXGB3.js} +7 -5
- package/dist/{chunk-UJCATSYO.js → chunk-PLLXFSN2.js} +46 -17
- package/dist/{chunk-OYFCBYMP.js → chunk-RJP47EGS.js} +18 -1
- package/dist/{chunk-KDJ4ML7I.js → chunk-RRJVC35Y.js} +4 -4
- package/dist/{chunk-DRZFWIBN.js → chunk-SWJJW624.js} +1 -1
- package/dist/{chunk-MJJBIOSY.js → chunk-SYRJ5TTK.js} +34 -12
- package/dist/{chunk-L5V3W3DY.js → chunk-TTUFIE26.js} +60 -14
- package/dist/{chunk-JFS4GKP7.js → chunk-XXPI4H4D.js} +2 -2
- package/dist/{chunk-CVZNSRXV.js → chunk-Y5526WCN.js} +84 -19
- package/dist/{chunk-CQHD6UKB.js → chunk-Y575INEC.js} +2 -1
- package/dist/{chunk-V2H57TFD.js → chunk-ZNZHDPS3.js} +80 -170
- package/dist/{commands-SAQEEE6V.js → commands-K4HSDML5.js} +8 -6
- package/dist/{conflicts-5JOP4GX2.js → conflicts-4SUWIPWP.js} +9 -10
- package/dist/{contribute-BQKRT5GN.js → contribute-HE4WCBRY.js} +7 -5
- package/dist/{countdown-25E5C7AR.js → countdown-TYQHVAIX.js} +305 -32
- 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-6JSXBVSX.js → diff-3XUZM7ZT.js} +15 -6
- package/dist/{doctor-I3MTHS7F.js → doctor-KGUWU5SN.js} +106 -19
- package/dist/{engine-info-BBI5QO5Y.js → engine-info-VM4VPGQM.js} +2 -2
- package/dist/{ground-control-IDCXN5FK.js → ground-control-ZIDHEOPW.js} +7 -4
- package/dist/{guard-RJZEEKSL.js → guard-ZO4Z3LLB.js} +47 -9
- package/dist/{handoff-5AGE2D3T.js → handoff-LLT4CI6H.js} +4 -3
- package/dist/{hook-WNA42CXE.js → hook-UPZ3CPYS.js} +22 -20
- package/dist/index.js +51 -33
- package/dist/{init-FZ2UFPO7.js → init-ZHLVXEVT.js} +25 -18
- package/dist/install-XWOG64W3.js +42 -0
- package/dist/installs-2ROXPO6M.js +223 -0
- package/dist/{mission-control-CRMCRZUU.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-JW4VR33H.js → queue-Z5VNNHM6.js} +10 -12
- package/dist/{run-X2WOONTB.js → run-QURAXAR2.js} +27 -33
- package/dist/{run-plan-4MOLLIES.js → run-plan-4MMHVCTS.js} +35 -23
- package/dist/{scan-K3T5RQLC.js → scan-7D3RMO34.js} +2 -1
- package/dist/{session-start-MV7A4263.js → session-start-NC2HE5X5.js} +20 -14
- package/dist/{sessions-UPFDWDMB.js → sessions-WWWLYPW6.js} +4 -4
- package/dist/{setup-global-VNADNTQ2.js → setup-global-WDMARD4Z.js} +12 -10
- package/dist/{status-SXA3OK5E.js → status-2WNJL7PP.js} +17 -13
- package/dist/update-YSVOYYK5.js +32 -0
- package/dist/update-all-5XLTCHPX.js +697 -0
- package/package.json +14 -4
- package/pi/agent-kit.ts +224 -0
- package/dist/chunk-4MR4QXMF.js +0 -52
- package/dist/chunk-7ABY6DYH.js +0 -89
- package/dist/chunk-C4LCOOL4.js +0 -71
- package/dist/chunk-DZCLMIAS.js +0 -391
- package/dist/chunk-HAFRAXGV.js +0 -17
- package/dist/chunk-MUTTNRX4.js +0 -53
- package/dist/install-CTLT3TSI.js +0 -38
- package/dist/update-RMAWXMCV.js +0 -304
|
@@ -8,39 +8,22 @@ import {
|
|
|
8
8
|
saveManagedHashLedger,
|
|
9
9
|
shouldPreserveCustomizedOverlay,
|
|
10
10
|
toPosixRel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RJP47EGS.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
acquireDirLock
|
|
14
|
+
} from "./chunk-IHVJTGYR.js";
|
|
15
|
+
import {
|
|
16
|
+
DEFAULT_PROTECTED_PATHS,
|
|
17
|
+
LEGACY_CONTEXT_PROTECTED_GLOB,
|
|
18
|
+
MANIFEST_RELATIVE_PATH,
|
|
19
|
+
MANIFEST_SCHEMA_VERSION
|
|
20
|
+
} from "./chunk-KMK4T4ZM.js";
|
|
15
21
|
import {
|
|
16
22
|
fileExists,
|
|
17
23
|
readJson,
|
|
18
24
|
writeJson
|
|
19
25
|
} from "./chunk-5B4DVO6C.js";
|
|
20
26
|
|
|
21
|
-
// src/manifest/types.ts
|
|
22
|
-
var MANIFEST_FILENAME = "agent-kit.json";
|
|
23
|
-
var MANIFEST_RELATIVE_PATH = `.cursor/${MANIFEST_FILENAME}`;
|
|
24
|
-
var MANIFEST_SCHEMA_VERSION = 1;
|
|
25
|
-
var DEFAULT_PROTECTED_PATHS = [
|
|
26
|
-
HANDOFF_REL,
|
|
27
|
-
".cursor/plans/**",
|
|
28
|
-
".cursor/memory/**",
|
|
29
|
-
".cursor/context/config.json",
|
|
30
|
-
".cursor/context/current/**",
|
|
31
|
-
".cursor/context/backups/**"
|
|
32
|
-
];
|
|
33
|
-
var LEGACY_CONTEXT_PROTECTED_GLOB = ".cursor/context/**";
|
|
34
|
-
var DOMAIN_PACK_IDS = [
|
|
35
|
-
"cybersec",
|
|
36
|
-
"devops",
|
|
37
|
-
"engineering-architecture",
|
|
38
|
-
"clean-code",
|
|
39
|
-
"project-management",
|
|
40
|
-
"context-management",
|
|
41
|
-
"quality"
|
|
42
|
-
];
|
|
43
|
-
|
|
44
27
|
// src/manifest/index.ts
|
|
45
28
|
import path from "path";
|
|
46
29
|
|
|
@@ -307,6 +290,33 @@ function isProtectedPath(relPath, globs) {
|
|
|
307
290
|
return matchesAnyGlob(relPath, globs);
|
|
308
291
|
}
|
|
309
292
|
|
|
293
|
+
// src/registry/pack-aliases.ts
|
|
294
|
+
var LEGACY_PACK_ID_ALIASES = Object.freeze({
|
|
295
|
+
"gestao-projeto": "project-management",
|
|
296
|
+
"gestao-contexto": "context-management",
|
|
297
|
+
"engenharia-arquitetura": "engineering-architecture"
|
|
298
|
+
});
|
|
299
|
+
function legacyPackIdTarget(id) {
|
|
300
|
+
return Object.hasOwn(LEGACY_PACK_ID_ALIASES, id) ? LEGACY_PACK_ID_ALIASES[id] : void 0;
|
|
301
|
+
}
|
|
302
|
+
function formatPackIdRewrite(rewrite) {
|
|
303
|
+
return `Pack id '${rewrite.from}' renamed to '${rewrite.to}' in ${MANIFEST_RELATIVE_PATH} (legacy L1 pack id).`;
|
|
304
|
+
}
|
|
305
|
+
function formatUnknownPack(packId, knownIds) {
|
|
306
|
+
const known = knownIds.length > 0 ? knownIds.join(", ") : "none";
|
|
307
|
+
return `Unknown pack '${packId}': not found in registry (known packs: ${known}). Next: replace or remove '${packId}' in "packs" of ${MANIFEST_RELATIVE_PATH} (or in --pack), then re-run.`;
|
|
308
|
+
}
|
|
309
|
+
var UnknownPackError = class extends Error {
|
|
310
|
+
packId;
|
|
311
|
+
knownIds;
|
|
312
|
+
constructor(packId, knownIds) {
|
|
313
|
+
super(formatUnknownPack(packId, knownIds));
|
|
314
|
+
this.name = "UnknownPackError";
|
|
315
|
+
this.packId = packId;
|
|
316
|
+
this.knownIds = knownIds;
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
|
|
310
320
|
// src/registry/client.ts
|
|
311
321
|
import path2 from "path";
|
|
312
322
|
|
|
@@ -332,12 +342,39 @@ async function findSkill(rootDir, skillId) {
|
|
|
332
342
|
if (!skill) throw new Error(`Skill '${skillId}' not found in registry.`);
|
|
333
343
|
return skill;
|
|
334
344
|
}
|
|
345
|
+
function resolvePackSummary(index, packId) {
|
|
346
|
+
const packs = allPacks(index);
|
|
347
|
+
const exact = packs.find((item) => item.id === packId);
|
|
348
|
+
if (exact) return exact;
|
|
349
|
+
const alias = legacyPackIdTarget(packId);
|
|
350
|
+
return alias ? packs.find((item) => item.id === alias) : void 0;
|
|
351
|
+
}
|
|
335
352
|
async function findPack(rootDir, packId) {
|
|
336
353
|
const index = await loadRegistry(rootDir);
|
|
337
|
-
const pack =
|
|
338
|
-
if (!pack)
|
|
354
|
+
const pack = resolvePackSummary(index, packId);
|
|
355
|
+
if (!pack)
|
|
356
|
+
throw new UnknownPackError(
|
|
357
|
+
packId,
|
|
358
|
+
allPacks(index).map((item) => item.id)
|
|
359
|
+
);
|
|
339
360
|
return pack;
|
|
340
361
|
}
|
|
362
|
+
async function canonicalizePackIds(rootDir, packIds) {
|
|
363
|
+
const index = await loadRegistry(rootDir);
|
|
364
|
+
const knownIds = allPacks(index).map((item) => item.id);
|
|
365
|
+
if (!packIds) return { packs: void 0, rewrites: [], unknown: [], knownIds };
|
|
366
|
+
const packs = [];
|
|
367
|
+
const rewrites = [];
|
|
368
|
+
const unknown = [];
|
|
369
|
+
for (const id of packIds) {
|
|
370
|
+
const summary = resolvePackSummary(index, id);
|
|
371
|
+
if (!summary) unknown.push(id);
|
|
372
|
+
else if (summary.id !== id) rewrites.push({ from: id, to: summary.id });
|
|
373
|
+
const resolved = summary?.id ?? id;
|
|
374
|
+
if (!packs.includes(resolved)) packs.push(resolved);
|
|
375
|
+
}
|
|
376
|
+
return { packs, rewrites, unknown, knownIds };
|
|
377
|
+
}
|
|
341
378
|
|
|
342
379
|
// src/lifecycle/apply.ts
|
|
343
380
|
import { copyFile, lstat, mkdir, readFile } from "fs/promises";
|
|
@@ -676,147 +713,16 @@ async function packMemberFileTargets(registryRoot, member) {
|
|
|
676
713
|
|
|
677
714
|
// src/registry/resolve.ts
|
|
678
715
|
import { execFile } from "child_process";
|
|
679
|
-
import { createHash
|
|
680
|
-
import { mkdir as mkdir2, readFile as readFile3, rename, rm, stat, writeFile } from "fs/promises";
|
|
716
|
+
import { createHash } from "crypto";
|
|
681
717
|
import { homedir } from "os";
|
|
682
718
|
import path5 from "path";
|
|
683
719
|
import { promisify } from "util";
|
|
684
720
|
var execFileAsync = promisify(execFile);
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return path5.join(lockDir, "owner.json");
|
|
691
|
-
}
|
|
692
|
-
function isProcessAlive(pid) {
|
|
693
|
-
try {
|
|
694
|
-
process.kill(pid, 0);
|
|
695
|
-
return true;
|
|
696
|
-
} catch {
|
|
697
|
-
return false;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
async function readLockOwner(lockDir) {
|
|
701
|
-
try {
|
|
702
|
-
const raw = await readFile3(lockOwnerPath(lockDir), "utf8");
|
|
703
|
-
const parsed = JSON.parse(raw);
|
|
704
|
-
if (typeof parsed.pid === "number" && typeof parsed.uuid === "string") {
|
|
705
|
-
return parsed;
|
|
706
|
-
}
|
|
707
|
-
} catch {
|
|
708
|
-
}
|
|
709
|
-
return null;
|
|
710
|
-
}
|
|
711
|
-
async function writeLockOwner(lockDir, owner) {
|
|
712
|
-
const finalPath = lockOwnerPath(lockDir);
|
|
713
|
-
const tmpPath = path5.join(lockDir, `owner.${owner.uuid}.${randomUUID()}.tmp`);
|
|
714
|
-
await writeFile(tmpPath, JSON.stringify(owner), "utf8");
|
|
715
|
-
await rename(tmpPath, finalPath);
|
|
716
|
-
}
|
|
717
|
-
async function refreshLockOwner(lockDir, uuid) {
|
|
718
|
-
const owner = await readLockOwner(lockDir);
|
|
719
|
-
if (owner && owner.uuid !== uuid) return;
|
|
720
|
-
await writeLockOwner(lockDir, { pid: process.pid, uuid, updatedAt: Date.now() });
|
|
721
|
-
}
|
|
722
|
-
async function releaseCacheLock(lockDir, uuid) {
|
|
723
|
-
const claimPath = path5.join(lockDir, `releasing.${uuid}`);
|
|
724
|
-
try {
|
|
725
|
-
await rename(lockOwnerPath(lockDir), claimPath);
|
|
726
|
-
} catch {
|
|
727
|
-
return;
|
|
728
|
-
}
|
|
729
|
-
let claimed = null;
|
|
730
|
-
try {
|
|
731
|
-
const raw = await readFile3(claimPath, "utf8");
|
|
732
|
-
const parsed = JSON.parse(raw);
|
|
733
|
-
if (typeof parsed.pid === "number" && typeof parsed.uuid === "string") {
|
|
734
|
-
claimed = parsed;
|
|
735
|
-
}
|
|
736
|
-
} catch {
|
|
737
|
-
}
|
|
738
|
-
if (!claimed || claimed.uuid !== uuid) {
|
|
739
|
-
try {
|
|
740
|
-
await rename(claimPath, lockOwnerPath(lockDir));
|
|
741
|
-
} catch {
|
|
742
|
-
}
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
try {
|
|
746
|
-
await rm(lockDir, { recursive: true, force: true });
|
|
747
|
-
} catch {
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
async function tryReclaimStaleLock(lockDir) {
|
|
751
|
-
let owner;
|
|
752
|
-
let lockStat;
|
|
753
|
-
try {
|
|
754
|
-
lockStat = await stat(lockDir);
|
|
755
|
-
owner = await readLockOwner(lockDir);
|
|
756
|
-
} catch {
|
|
757
|
-
return false;
|
|
758
|
-
}
|
|
759
|
-
const now = Date.now();
|
|
760
|
-
if (owner) {
|
|
761
|
-
const ownerFresh = now - owner.updatedAt < LOCK_STALE_MS;
|
|
762
|
-
if (isProcessAlive(owner.pid) && ownerFresh) {
|
|
763
|
-
return false;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
if (now - lockStat.mtimeMs > LOCK_STALE_MS) {
|
|
767
|
-
try {
|
|
768
|
-
await rm(lockDir, { recursive: true, force: true });
|
|
769
|
-
return true;
|
|
770
|
-
} catch {
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return false;
|
|
774
|
-
}
|
|
775
|
-
async function acquireCacheLock(cacheDir) {
|
|
776
|
-
const lockDir = `${cacheDir}.lock`;
|
|
777
|
-
const deadline = Date.now() + LOCK_TIMEOUT_MS;
|
|
778
|
-
const uuid = randomUUID();
|
|
779
|
-
const owner = { pid: process.pid, uuid, updatedAt: Date.now() };
|
|
780
|
-
await mkdir2(path5.dirname(lockDir), { recursive: true });
|
|
781
|
-
let lastErrorCode;
|
|
782
|
-
while (Date.now() < deadline) {
|
|
783
|
-
try {
|
|
784
|
-
await mkdir2(lockDir, { recursive: false });
|
|
785
|
-
await writeLockOwner(lockDir, owner);
|
|
786
|
-
let refreshing = false;
|
|
787
|
-
const refreshInterval = setInterval(() => {
|
|
788
|
-
if (refreshing) return;
|
|
789
|
-
refreshing = true;
|
|
790
|
-
refreshLockOwner(lockDir, uuid).catch(() => {
|
|
791
|
-
}).finally(() => {
|
|
792
|
-
refreshing = false;
|
|
793
|
-
});
|
|
794
|
-
}, LOCK_REFRESH_MS);
|
|
795
|
-
return async () => {
|
|
796
|
-
clearInterval(refreshInterval);
|
|
797
|
-
await releaseCacheLock(lockDir, uuid);
|
|
798
|
-
};
|
|
799
|
-
} catch (err) {
|
|
800
|
-
const code = err.code;
|
|
801
|
-
lastErrorCode = code;
|
|
802
|
-
if (code === "EEXIST") {
|
|
803
|
-
if (await tryReclaimStaleLock(lockDir)) {
|
|
804
|
-
continue;
|
|
805
|
-
}
|
|
806
|
-
await new Promise((r) => setTimeout(r, LOCK_RETRY_MS + Math.random() * 100));
|
|
807
|
-
continue;
|
|
808
|
-
}
|
|
809
|
-
if (code === "ENOENT") {
|
|
810
|
-
await mkdir2(path5.dirname(lockDir), { recursive: true });
|
|
811
|
-
await new Promise((r) => setTimeout(r, LOCK_RETRY_MS + Math.random() * 100));
|
|
812
|
-
continue;
|
|
813
|
-
}
|
|
814
|
-
throw err;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
throw new Error(
|
|
818
|
-
lastErrorCode === "ENOENT" ? `Timed out acquiring cache lock on ${cacheDir}: the lock parent directory kept vanishing (concurrent cache clear?).` : `Timed out waiting for cache lock on ${cacheDir}. Another install may be stuck.`
|
|
819
|
-
);
|
|
721
|
+
function acquireCacheLock(cacheDir) {
|
|
722
|
+
return acquireDirLock(cacheDir, {
|
|
723
|
+
vanishedMessage: (target) => `Timed out acquiring cache lock on ${target}: the lock parent directory kept vanishing (concurrent cache clear?).`,
|
|
724
|
+
timeoutMessage: (target) => `Timed out waiting for cache lock on ${target}. Another install may be stuck.`
|
|
725
|
+
});
|
|
820
726
|
}
|
|
821
727
|
var DEFAULT_REGISTRY_URL = "https://github.com/agent-kit-startup/agent-kit";
|
|
822
728
|
var DEFAULT_REGISTRY_REF = "main";
|
|
@@ -842,9 +748,9 @@ async function hasRegistryIndex(root) {
|
|
|
842
748
|
return fileExists(path5.join(root, REGISTRY_INDEX_REL));
|
|
843
749
|
}
|
|
844
750
|
async function cloneRegistry(url, ref, dest) {
|
|
845
|
-
const { mkdir:
|
|
846
|
-
await
|
|
847
|
-
const clearPartial = () =>
|
|
751
|
+
const { mkdir: mkdir2, rm } = await import("fs/promises");
|
|
752
|
+
await mkdir2(path5.dirname(dest), { recursive: true });
|
|
753
|
+
const clearPartial = () => rm(dest, { recursive: true, force: true });
|
|
848
754
|
await clearPartial();
|
|
849
755
|
try {
|
|
850
756
|
await execFileAsync("git", ["clone", "--depth", "1", "--branch", ref, "--", url, dest], {
|
|
@@ -935,8 +841,6 @@ async function resolveRegistryRoot(options) {
|
|
|
935
841
|
}
|
|
936
842
|
|
|
937
843
|
export {
|
|
938
|
-
MANIFEST_RELATIVE_PATH,
|
|
939
|
-
DOMAIN_PACK_IDS,
|
|
940
844
|
loadAgentKitManifest,
|
|
941
845
|
DEFAULT_REGISTRY_URL,
|
|
942
846
|
DEFAULT_REGISTRY_REF,
|
|
@@ -945,11 +849,17 @@ export {
|
|
|
945
849
|
normalizeRelPath,
|
|
946
850
|
resolveProtectedGlobs,
|
|
947
851
|
isProtectedPath,
|
|
852
|
+
legacyPackIdTarget,
|
|
853
|
+
formatPackIdRewrite,
|
|
854
|
+
formatUnknownPack,
|
|
855
|
+
UnknownPackError,
|
|
948
856
|
loadRegistry,
|
|
949
857
|
allSkills,
|
|
950
858
|
allPacks,
|
|
951
859
|
findSkill,
|
|
860
|
+
resolvePackSummary,
|
|
952
861
|
findPack,
|
|
862
|
+
canonicalizePackIds,
|
|
953
863
|
emptyStats,
|
|
954
864
|
mergeStats,
|
|
955
865
|
copyRegistryFile,
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RUN_CATALOG,
|
|
3
3
|
RUN_PROMOTE_BLOCKED
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JWIJHO67.js";
|
|
5
|
+
import "./chunk-HXV6VQD4.js";
|
|
6
6
|
import "./chunk-P7732A25.js";
|
|
7
|
+
import "./chunk-TTUFIE26.js";
|
|
7
8
|
import {
|
|
8
9
|
CURSOR_COMMANDS_DIR_REL,
|
|
9
10
|
discoverInstalledCommands
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FUSNEYGU.js";
|
|
11
12
|
import "./chunk-WGLPZXNU.js";
|
|
12
13
|
import "./chunk-Q35TWISF.js";
|
|
13
14
|
import "./chunk-QTON2GQX.js";
|
|
14
15
|
import {
|
|
15
16
|
L0_ARTIFACTS
|
|
16
17
|
} from "./chunk-CGXLR77R.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PFEUZXVT.js";
|
|
19
|
+
import "./chunk-RJP47EGS.js";
|
|
18
20
|
import {
|
|
19
21
|
KIT_VERSION
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-2G4K4ZI5.js";
|
|
23
|
+
import "./chunk-O7VMHCNN.js";
|
|
22
24
|
import "./chunk-5B4DVO6C.js";
|
|
23
25
|
|
|
24
26
|
// src/commands/commands.ts
|
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REVIEW_PACK_DEFAULT_MAX_BYTES
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
5
|
-
detectAgentBackend
|
|
6
|
-
} from "./chunk-C4LCOOL4.js";
|
|
7
|
-
import "./chunk-5EBT3V7G.js";
|
|
3
|
+
} from "./chunk-5A72LTR3.js";
|
|
4
|
+
import "./chunk-OVRGTHZD.js";
|
|
8
5
|
import {
|
|
9
6
|
defaultExec,
|
|
10
7
|
gateExitRedactions,
|
|
11
8
|
isOutside
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-MUTTNRX4.js";
|
|
9
|
+
} from "./chunk-I3FGWNU5.js";
|
|
14
10
|
import {
|
|
15
11
|
ensureDispatchLogPath,
|
|
16
12
|
readCommandFile,
|
|
17
13
|
runHeadlessDispatch
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JWIJHO67.js";
|
|
19
15
|
import {
|
|
20
16
|
createStreamRenderer,
|
|
17
|
+
detectAgentBackend,
|
|
21
18
|
redactSecrets
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HXV6VQD4.js";
|
|
23
20
|
import "./chunk-P7732A25.js";
|
|
21
|
+
import "./chunk-TTUFIE26.js";
|
|
24
22
|
import "./chunk-WGLPZXNU.js";
|
|
25
23
|
import "./chunk-Q35TWISF.js";
|
|
26
24
|
import "./chunk-QTON2GQX.js";
|
|
27
25
|
import {
|
|
28
26
|
logger
|
|
29
27
|
} from "./chunk-ZB43YMHW.js";
|
|
30
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-PFEUZXVT.js";
|
|
29
|
+
import "./chunk-O7VMHCNN.js";
|
|
31
30
|
import "./chunk-5B4DVO6C.js";
|
|
32
31
|
|
|
33
32
|
// src/commands/conflicts.ts
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
REGISTRY_CLI_ARGS,
|
|
3
3
|
resolveRegistryFromCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SWJJW624.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-HGB4DHXV.js";
|
|
11
11
|
import "./chunk-CGXLR77R.js";
|
|
12
12
|
import {
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
normalizeRelPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZNZHDPS3.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContained
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-RJP47EGS.js";
|
|
19
|
+
import "./chunk-IHVJTGYR.js";
|
|
20
|
+
import "./chunk-KMK4T4ZM.js";
|
|
21
|
+
import "./chunk-O7VMHCNN.js";
|
|
20
22
|
import "./chunk-5B4DVO6C.js";
|
|
21
23
|
|
|
22
24
|
// src/commands/contribute.ts
|