@dadado/agent-kit-cli 6.6.0 → 6.7.1
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/lib/semantic-model.mjs +49 -2
- package/dist/{add-IT6XFPKT.js → add-7GH3K44T.js} +3 -2
- package/dist/{chunk-IN4MQ3P3.js → chunk-2KIOZMTV.js} +1 -48
- package/dist/{chunk-YIOTJQHL.js → chunk-52WYZFP5.js} +2 -2
- package/dist/{chunk-I2D75F4I.js → chunk-67G3236R.js} +11 -9
- package/dist/chunk-6LRY2CYU.js +523 -0
- package/dist/{chunk-34BBPQKI.js → chunk-75ELVLBY.js} +1 -1
- package/dist/{chunk-WOGBBJCX.js → chunk-BCX5NDQC.js} +5 -3
- package/dist/{chunk-MEZUW3LL.js → chunk-BIFWN6BJ.js} +1 -1
- package/dist/{chunk-WUEXATDP.js → chunk-BZI5G3OZ.js} +1 -0
- package/dist/{chunk-5LQP4JGH.js → chunk-HIJTNHJE.js} +7 -5
- package/dist/chunk-HVH24VRL.js +967 -0
- package/dist/chunk-LGSNC4OI.js +125 -0
- package/dist/chunk-LPZ2KXVE.js +52 -0
- package/dist/{chunk-TNO7GTAJ.js → chunk-O5FKTKOW.js} +5 -3
- package/dist/{chunk-U2IMEYGQ.js → chunk-S7XAV6JK.js} +1 -1
- package/dist/{chunk-EI3VQ7FU.js → chunk-TZA7MT4I.js} +2 -2
- package/dist/{chunk-236IYK6L.js → chunk-ZF4YBL7F.js} +20 -135
- package/dist/commands-EQHK3ZEP.js +92 -0
- package/dist/{contribute-V7PV5UMK.js → contribute-VSVPRHQ7.js} +7 -4
- package/dist/{countdown-YZSJQXYS.js → countdown-XYRE4GZU.js} +2 -2
- package/dist/{diff-GWIHGH65.js → diff-4P7LMQK5.js} +6 -4
- package/dist/{doctor-FLIQCVFN.js → doctor-PZT7EGLQ.js} +10 -7
- package/dist/{hook-2SX2V2T6.js → hook-HJW5SXQG.js} +6 -4
- package/dist/index.js +18 -16
- package/dist/{init-4B2IRH27.js → init-MGRZ7U7A.js} +13 -10
- package/dist/{install-3JVTG35O.js → install-432KJISB.js} +13 -10
- package/dist/{run-CWA6Q4TC.js → run-QG7XQ3XF.js} +2 -2
- package/dist/{setup-global-6JM5XTAT.js → setup-global-BFBSR2RZ.js} +7 -5
- package/dist/{status-PMAI7NH3.js → status-UDM55MHU.js} +8 -6
- package/dist/{update-3PLY4FZA.js → update-PX5XFCSG.js} +15 -10
- package/package.json +1 -1
- package/dist/chunk-5WSFO35Y.js +0 -1473
|
@@ -1780,6 +1780,40 @@ export function planQueueRole(plan, runQueueView) {
|
|
|
1780
1780
|
return "none";
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
+
/**
|
|
1784
|
+
* In /run-plan-all mode, resolve the queue cursor plan as active when HANDOFF
|
|
1785
|
+
* `Plan:` still names a terminal (or missing) plan, e.g. a /hotfix mini plan the
|
|
1786
|
+
* queue resumed past without handing `Plan:` back. Narrowest condition only:
|
|
1787
|
+
* the cursor resolves, its plan exists with open to-dos, is not parked, and has
|
|
1788
|
+
* no terminal queue outcome. Every other case returns the HANDOFF unchanged
|
|
1789
|
+
* (false negative over guessing).
|
|
1790
|
+
* @param {object[]} plans
|
|
1791
|
+
* @param {object|null} handoff
|
|
1792
|
+
* @returns {object|null} the same handoff, or a copy with `plan`/`planPath` swapped
|
|
1793
|
+
*/
|
|
1794
|
+
export function resolveQueueActiveHandoff(plans, handoff) {
|
|
1795
|
+
if (!handoffPlanKey(handoff)) return handoff;
|
|
1796
|
+
const view = buildRunQueueView(handoff);
|
|
1797
|
+
if (!view || view.cursor === null) return handoff;
|
|
1798
|
+
const cursorKey = view.queue[view.cursor];
|
|
1799
|
+
if (!cursorKey || cursorKey === handoffPlanKey(handoff)) return handoff;
|
|
1800
|
+
if (TERMINAL_QUEUE_OUTCOMES.has(view.outcomes[cursorKey])) return handoff;
|
|
1801
|
+
|
|
1802
|
+
const cursorPlan = (plans || []).find((p) => planFileKey(p) === cursorKey);
|
|
1803
|
+
if (!cursorPlan || todoStats(cursorPlan).open === 0) return handoff;
|
|
1804
|
+
if (isParkedPlan(cursorPlan, handoff)) return handoff;
|
|
1805
|
+
|
|
1806
|
+
const named = (plans || []).find((p) => isExactActivePlan(p, handoff));
|
|
1807
|
+
if (named && todoStats(named).open > 0) return handoff;
|
|
1808
|
+
|
|
1809
|
+
return {
|
|
1810
|
+
...handoff,
|
|
1811
|
+
plan: cursorKey,
|
|
1812
|
+
planPath: cursorPlan.path || `.cursor/plans/${cursorKey}`,
|
|
1813
|
+
planFromQueueCursor: true,
|
|
1814
|
+
};
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1783
1817
|
function planFileKey(plan) {
|
|
1784
1818
|
if (!plan) return "";
|
|
1785
1819
|
return String(plan.file || plan.path || plan.id || "")
|
|
@@ -1807,6 +1841,14 @@ function isActivePlan(plan, handoff) {
|
|
|
1807
1841
|
);
|
|
1808
1842
|
}
|
|
1809
1843
|
|
|
1844
|
+
/** Exact basename match with HANDOFF `Plan:` (no substring fallback). */
|
|
1845
|
+
function isExactActivePlan(plan, handoff) {
|
|
1846
|
+
const active = handoffPlanKey(handoff);
|
|
1847
|
+
const key = planFileKey(plan);
|
|
1848
|
+
if (!active || !key) return false;
|
|
1849
|
+
return key === active || key === `${active}.plan.md`;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1810
1852
|
function planListedIn(plan, list) {
|
|
1811
1853
|
if (!Array.isArray(list) || list.length === 0) return false;
|
|
1812
1854
|
const key = planFileKey(plan);
|
|
@@ -1881,17 +1923,21 @@ function modeImpliesExecuting(mode) {
|
|
|
1881
1923
|
* Active plan: terminal todos (open === 0) are always completed, even when Mode
|
|
1882
1924
|
* still says run-plan before Final HANDOFF writes STOPPED/exhausted. Open work
|
|
1883
1925
|
* never classifies as completed (pending/in_progress hold the mission live).
|
|
1926
|
+
* The plan HANDOFF `Plan:` names exactly wins over a Parked/Backlog row: a plan
|
|
1927
|
+
* cannot be active and parked/queued at once, so that row is stale (left behind
|
|
1928
|
+
* when a queue or hotfix activated the plan without removing it).
|
|
1884
1929
|
* @returns {'executing'|'awaiting_user'|'parked'|'backlog'|'incomplete'|'completed'}
|
|
1885
1930
|
*/
|
|
1886
1931
|
export function classifyPlan(plan, handoff) {
|
|
1887
1932
|
const stats = todoStats(plan);
|
|
1933
|
+
const exactActive = isExactActivePlan(plan, handoff);
|
|
1888
1934
|
|
|
1889
|
-
if (isParkedPlan(plan, handoff)) {
|
|
1935
|
+
if (!exactActive && isParkedPlan(plan, handoff)) {
|
|
1890
1936
|
if (stats.open === 0) return "completed";
|
|
1891
1937
|
return "parked";
|
|
1892
1938
|
}
|
|
1893
1939
|
|
|
1894
|
-
if (isBacklogPlan(plan, handoff)) {
|
|
1940
|
+
if (!exactActive && isBacklogPlan(plan, handoff)) {
|
|
1895
1941
|
if (stats.open === 0) return "completed";
|
|
1896
1942
|
return "backlog";
|
|
1897
1943
|
}
|
|
@@ -3838,6 +3884,7 @@ export function buildMissionControlView({
|
|
|
3838
3884
|
gateExitTickets = [],
|
|
3839
3885
|
nowMs = Date.now(),
|
|
3840
3886
|
} = {}) {
|
|
3887
|
+
handoff = resolveQueueActiveHandoff(plans, handoff);
|
|
3841
3888
|
const nowBase = buildCurrentExecution(plans, handoff);
|
|
3842
3889
|
const activeForTiming = (plans || []).find((p) => isActivePlan(p, handoff)) || null;
|
|
3843
3890
|
const { ledger: nextTimingLedger, timing } = observeMissionTiming(
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
REGISTRY_CLI_ARGS,
|
|
7
7
|
resolveRegistryFromCli
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-75ELVLBY.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
11
|
} from "./chunk-ZB43YMHW.js";
|
|
@@ -22,7 +22,8 @@ import {
|
|
|
22
22
|
resolveProtectedGlobs,
|
|
23
23
|
saveManifest,
|
|
24
24
|
upsertIdList
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HVH24VRL.js";
|
|
26
|
+
import "./chunk-6LRY2CYU.js";
|
|
26
27
|
import {
|
|
27
28
|
KIT_VERSION
|
|
28
29
|
} from "./chunk-7HDQEK6T.js";
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
allSkills,
|
|
3
|
-
loadPackManifest,
|
|
4
|
-
loadRegistry,
|
|
5
|
-
packMemberFileTargets,
|
|
6
|
-
skillFileTargets
|
|
7
|
-
} from "./chunk-5WSFO35Y.js";
|
|
8
|
-
|
|
9
1
|
// src/lifecycle/l0.ts
|
|
10
2
|
var L0_ARTIFACTS = [
|
|
11
3
|
// Rules
|
|
@@ -305,45 +297,6 @@ var L0_ARTIFACTS = [
|
|
|
305
297
|
}
|
|
306
298
|
];
|
|
307
299
|
|
|
308
|
-
// src/lifecycle/targets.ts
|
|
309
|
-
import path from "path";
|
|
310
|
-
var toPosix = (rel) => rel.split(path.sep).join("/");
|
|
311
|
-
async function managedPairs(registryRoot, manifest, index) {
|
|
312
|
-
const pairs = [];
|
|
313
|
-
const missingSkills = [];
|
|
314
|
-
const push = (sourceRel, targetRel, origin) => {
|
|
315
|
-
pairs.push({ sourceRel: toPosix(sourceRel), targetRel: toPosix(targetRel), origin });
|
|
316
|
-
};
|
|
317
|
-
for (const a of L0_ARTIFACTS) push(a.source, a.target, "l0");
|
|
318
|
-
for (const packId of manifest.packs ?? []) {
|
|
319
|
-
const pack = await loadPackManifest(registryRoot, packId);
|
|
320
|
-
for (const member of pack.members) {
|
|
321
|
-
for (const { sourceRel, targetRel } of await packMemberFileTargets(registryRoot, member)) {
|
|
322
|
-
push(sourceRel, targetRel, "pack");
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if ((manifest.skills ?? []).length > 0) {
|
|
327
|
-
const pool = allSkills(index ?? await loadRegistry(registryRoot));
|
|
328
|
-
for (const id of manifest.skills ?? []) {
|
|
329
|
-
const skill = pool.find((s) => s.id === id);
|
|
330
|
-
if (!skill) {
|
|
331
|
-
missingSkills.push(id);
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
for (const { sourceRel, targetRel } of await skillFileTargets(
|
|
335
|
-
registryRoot,
|
|
336
|
-
skill.path,
|
|
337
|
-
skill.id
|
|
338
|
-
)) {
|
|
339
|
-
push(sourceRel, targetRel, "skill");
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return { pairs, missingSkills };
|
|
344
|
-
}
|
|
345
|
-
|
|
346
300
|
export {
|
|
347
|
-
L0_ARTIFACTS
|
|
348
|
-
managedPairs
|
|
301
|
+
L0_ARTIFACTS
|
|
349
302
|
};
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
diffAgainstRegistry,
|
|
8
8
|
summarizeDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O5FKTKOW.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_REGISTRY_URL,
|
|
12
12
|
assertSafeRegistrySource,
|
|
13
13
|
loadAgentKitManifest,
|
|
14
14
|
resolveRegistryRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HVH24VRL.js";
|
|
16
16
|
import {
|
|
17
17
|
KIT_PACKAGE_SPEC,
|
|
18
18
|
KIT_VERSION
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatStaleCliRefusal,
|
|
7
7
|
installL0,
|
|
8
8
|
syncFromManifest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HIJTNHJE.js";
|
|
10
10
|
import {
|
|
11
11
|
SkippedSymlinkError,
|
|
12
12
|
formatPersonalizationSkippedSymlinks,
|
|
@@ -15,19 +15,21 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
REGISTRY_CLI_ARGS,
|
|
17
17
|
resolveRegistryFromCli
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-75ELVLBY.js";
|
|
19
19
|
import {
|
|
20
20
|
assessClaudeCommandAdapters,
|
|
21
21
|
executeSafeReadinessFixes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BCX5NDQC.js";
|
|
23
23
|
import {
|
|
24
24
|
writeReadinessSnapshot
|
|
25
25
|
} from "./chunk-HAFRAXGV.js";
|
|
26
26
|
import {
|
|
27
|
-
CLAUDE_HITL_FALLBACK,
|
|
28
|
-
generateClaudeCommandAdapters,
|
|
29
27
|
writeClaudeSessionStartHook
|
|
30
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZF4YBL7F.js";
|
|
29
|
+
import {
|
|
30
|
+
CLAUDE_HITL_FALLBACK,
|
|
31
|
+
generateClaudeCommandAdapters
|
|
32
|
+
} from "./chunk-LGSNC4OI.js";
|
|
31
33
|
import {
|
|
32
34
|
shouldUseWelcomeColor,
|
|
33
35
|
withCliProgress
|
|
@@ -54,13 +56,13 @@ import {
|
|
|
54
56
|
npxPinned,
|
|
55
57
|
pathCliStatus,
|
|
56
58
|
syncPathCliToRuntime
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-TZA7MT4I.js";
|
|
58
60
|
import {
|
|
59
61
|
assessEnvironment
|
|
60
62
|
} from "./chunk-B3VR5YBQ.js";
|
|
61
63
|
import {
|
|
62
64
|
warnIfRunningCliBehindNpm
|
|
63
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-52WYZFP5.js";
|
|
64
66
|
import {
|
|
65
67
|
DOMAIN_PACK_IDS,
|
|
66
68
|
allPacks,
|
|
@@ -77,7 +79,7 @@ import {
|
|
|
77
79
|
resolveProtectedGlobs,
|
|
78
80
|
saveManifest,
|
|
79
81
|
skillTargetDir
|
|
80
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HVH24VRL.js";
|
|
81
83
|
import {
|
|
82
84
|
KIT_VERSION,
|
|
83
85
|
pinnedCliSpec
|