@rasensio/aidlc 1.10.5 → 1.10.6
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/dist/commands/cost.d.ts.map +1 -1
- package/dist/commands/cost.js +6 -2
- package/dist/commands/cost.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +69 -29
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +37 -10
- package/dist/commands/update.js.map +1 -1
- package/dist/compile/guidance-install.d.ts +51 -0
- package/dist/compile/guidance-install.d.ts.map +1 -0
- package/dist/compile/guidance-install.js +155 -0
- package/dist/compile/guidance-install.js.map +1 -0
- package/dist/compile/loaders.d.ts +36 -6
- package/dist/compile/loaders.d.ts.map +1 -1
- package/dist/compile/loaders.js +120 -17
- package/dist/compile/loaders.js.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/cost/agent.d.ts.map +1 -1
- package/dist/cost/agent.js +30 -2
- package/dist/cost/agent.js.map +1 -1
- package/dist/cost/report.d.ts.map +1 -1
- package/dist/cost/report.js +12 -2
- package/dist/cost/report.js.map +1 -1
- package/dist/doctor/migrations/index.d.ts.map +1 -1
- package/dist/doctor/migrations/index.js +4 -0
- package/dist/doctor/migrations/index.js.map +1 -1
- package/dist/doctor/migrations/install-guidance.d.ts +18 -0
- package/dist/doctor/migrations/install-guidance.d.ts.map +1 -0
- package/dist/doctor/migrations/install-guidance.js +61 -0
- package/dist/doctor/migrations/install-guidance.js.map +1 -0
- package/dist/doctor/migrations/stale-cost-hooks.d.ts +37 -0
- package/dist/doctor/migrations/stale-cost-hooks.d.ts.map +1 -0
- package/dist/doctor/migrations/stale-cost-hooks.js +85 -0
- package/dist/doctor/migrations/stale-cost-hooks.js.map +1 -0
- package/package.json +2 -2
package/dist/cost/agent.js
CHANGED
|
@@ -43,7 +43,7 @@ function matchingStashEntries(projectRoot) {
|
|
|
43
43
|
const dir = stashDir(projectRoot);
|
|
44
44
|
if (!existsSync(dir))
|
|
45
45
|
return [];
|
|
46
|
-
const here =
|
|
46
|
+
const here = identityOf(projectRoot);
|
|
47
47
|
const hereReal = canonical(projectRoot);
|
|
48
48
|
const matches = [];
|
|
49
49
|
for (const f of readdirSync(dir)) {
|
|
@@ -51,7 +51,7 @@ function matchingStashEntries(projectRoot) {
|
|
|
51
51
|
continue;
|
|
52
52
|
try {
|
|
53
53
|
const entry = JSON.parse(readFileSync(join(dir, f), 'utf8'));
|
|
54
|
-
const theirs =
|
|
54
|
+
const theirs = identityOf(entry.cwd);
|
|
55
55
|
if (here !== null && theirs !== null && here === theirs)
|
|
56
56
|
matches.push(entry);
|
|
57
57
|
// Outside a git repo, fall back to the directory itself — canonicalized,
|
|
@@ -66,6 +66,31 @@ function matchingStashEntries(projectRoot) {
|
|
|
66
66
|
}
|
|
67
67
|
return matches;
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* `repoIdentity` memoized by directory, for the duration of the process.
|
|
71
|
+
*
|
|
72
|
+
* `repoIdentity` spawns `git rev-parse --git-common-dir`, and the loop above
|
|
73
|
+
* calls it once per stash entry — so a stash holding N entries cost N subprocess
|
|
74
|
+
* spawns, and both `agentFromStash` and `resolveAgent` walk the stash, doubling
|
|
75
|
+
* it. Measured on an idle machine with 21 entries: 960ms for `agentFromStash`
|
|
76
|
+
* and 1.7s for `resolveAgent`, for work that touches 21 small JSON files. Under
|
|
77
|
+
* a loaded machine — where process spawning degrades worst — that reached the
|
|
78
|
+
* 30s test timeout and aborted two release runs.
|
|
79
|
+
*
|
|
80
|
+
* Entries cluster on a handful of directories (a stash accumulates many sessions
|
|
81
|
+
* for the *same* checkout), so caching by path collapses N spawns to one per
|
|
82
|
+
* distinct directory. Safe for a short-lived CLI process: a directory's git
|
|
83
|
+
* common dir does not change mid-run. Cleared by `resetAgentCache`.
|
|
84
|
+
*/
|
|
85
|
+
const identityCache = new Map();
|
|
86
|
+
function identityOf(dir) {
|
|
87
|
+
const hit = identityCache.get(dir);
|
|
88
|
+
if (hit !== undefined)
|
|
89
|
+
return hit;
|
|
90
|
+
const value = repoIdentity(dir);
|
|
91
|
+
identityCache.set(dir, value);
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
69
94
|
/** Resolve symlinks for comparison; unresolvable paths compare as written. */
|
|
70
95
|
function canonical(p) {
|
|
71
96
|
try {
|
|
@@ -163,5 +188,8 @@ export function agentMissWarning(reason) {
|
|
|
163
188
|
/** Test seam: drop the memoized resolution. */
|
|
164
189
|
export function resetAgentCache() {
|
|
165
190
|
cached = null;
|
|
191
|
+
// Also the repo-identity memo: a test that creates a fresh temp root per case
|
|
192
|
+
// would otherwise see the previous root's answer for a reused path.
|
|
193
|
+
identityCache.clear();
|
|
166
194
|
}
|
|
167
195
|
//# sourceMappingURL=agent.js.map
|
package/dist/cost/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/cost/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,iEAAiE;AACjE,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AAgBvC;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAAC,WAAmB;IAC/C,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,IAAI,CAAC,UAAU,CAAC,GAAG,CAA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;IACtD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,6BAA6B;YAChC,OAAO,4IAA4I,CAAC;QACtJ,KAAK,oBAAoB;YACvB,OAAO,oJAAoJ,CAAC;QAC9J,KAAK,sBAAsB;YACzB,OAAO,2EAA2E,CAAC;IACvF,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,eAAe;IAC7B,MAAM,GAAG,IAAI,CAAC;IACd,8EAA8E;IAC9E,oEAAoE;IACpE,aAAa,CAAC,KAAK,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/cost/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1C,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/cost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B3F;AAED,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,CAEpE"}
|
package/dist/cost/report.js
CHANGED
|
@@ -18,9 +18,11 @@ function sumWeighted(weighted, rates) {
|
|
|
18
18
|
const unpriced = new Set();
|
|
19
19
|
let tokens = 0;
|
|
20
20
|
let credits = 0;
|
|
21
|
+
let counted = 0;
|
|
21
22
|
for (const { entry, weight } of weighted) {
|
|
22
23
|
if (weight === 0 || entry.units === null)
|
|
23
24
|
continue;
|
|
25
|
+
counted += 1;
|
|
24
26
|
const price = priceUnits(entry.units, rates);
|
|
25
27
|
if (price === null) {
|
|
26
28
|
unpriced.add(entry.units.kind === 'tokens' ? entry.units.model : 'kiro-credit');
|
|
@@ -36,6 +38,13 @@ function sumWeighted(weighted, rates) {
|
|
|
36
38
|
credits += entry.units.credits * weight;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
41
|
+
// Nothing contributed a unit: there is no cost data here, which is NOT the same
|
|
42
|
+
// as a cost of zero. An empty ledger previously returned 0 and printed "$0.00",
|
|
43
|
+
// which reads as "this was free" — the exact failure this project already wrote
|
|
44
|
+
// down as "record the absence rather than the zero". metrics/report.ts already
|
|
45
|
+
// returns null for no ledger data; this makes `aidlc cost` agree with it.
|
|
46
|
+
if (counted === 0)
|
|
47
|
+
return { microUsd: null, unpriced, tokens: 0, credits: 0 };
|
|
39
48
|
return { microUsd: anyPriced || unpriced.size === 0 ? Math.round(micro) : null, unpriced, tokens, credits };
|
|
40
49
|
}
|
|
41
50
|
function phaseElapsed(projectRoot, instance) {
|
|
@@ -90,10 +99,11 @@ export function instanceCost(projectRoot, instance, config) {
|
|
|
90
99
|
elapsedSeconds: elapsed.get(phase) ?? 0,
|
|
91
100
|
});
|
|
92
101
|
}
|
|
93
|
-
// Phases with time but no cost still appear.
|
|
102
|
+
// Phases with time but no cost still appear — with a null cost, not a zero one.
|
|
103
|
+
// The phase ran; we simply have no record of what it cost.
|
|
94
104
|
for (const [phase, secs] of elapsed) {
|
|
95
105
|
if (secs > 0 && !byPhase.has(phase)) {
|
|
96
|
-
phases.push({ phase, microUsd:
|
|
106
|
+
phases.push({ phase, microUsd: null, unpricedModels: [], tokens: 0, credits: 0, elapsedSeconds: secs });
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
109
|
const total = sumWeighted(weighted, rates);
|
package/dist/cost/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/cost/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAsB,MAAM,aAAa,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,cAAc,EAAuB,MAAM,YAAY,CAAC;AAyB7E,SAAS,WAAW,CAClB,QAAyB,EACzB,KAAqB;IAErB,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,KAAK,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,QAAQ,EAAE,CAAC;QACzC,IAAI,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI;YAAE,SAAS;QACnD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC7C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,QAAQ,CAAC,GAAG,CAAC,KAAK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O,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/doctor/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAc7C,eAAO,MAAM,UAAU,EAAE,SAAS,EAajC,CAAC"}
|
|
@@ -15,16 +15,20 @@ import { pruneCostLocks } from './prune-cost-locks.js';
|
|
|
15
15
|
import { pruneCaptureLogMigration } from './prune-capture-log.js';
|
|
16
16
|
import { pruneRegistry } from './prune-registry.js';
|
|
17
17
|
import { unknownAgentClaims } from './unknown-agent-claims.js';
|
|
18
|
+
import { staleCostHooks } from './stale-cost-hooks.js';
|
|
19
|
+
import { installGuidance } from './install-guidance.js';
|
|
18
20
|
export const MIGRATIONS = [
|
|
19
21
|
costGitignore,
|
|
20
22
|
knowledgeGitignore,
|
|
21
23
|
gitattributes,
|
|
22
24
|
shippedActions,
|
|
25
|
+
installGuidance,
|
|
23
26
|
untrackCostEphemera,
|
|
24
27
|
pruneSessionStash,
|
|
25
28
|
pruneCostLocks,
|
|
26
29
|
pruneCaptureLogMigration,
|
|
27
30
|
pruneRegistry,
|
|
28
31
|
unknownAgentClaims,
|
|
32
|
+
staleCostHooks,
|
|
29
33
|
];
|
|
30
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/doctor/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAA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
|
+
/**
|
|
2
|
+
* install-guidance migration (guidance-layers-never-resolve/AC-2).
|
|
3
|
+
*
|
|
4
|
+
* Projects initialized before guidance installation existed have no
|
|
5
|
+
* `.aidlc/guidance/` at all — or only the layers they authored themselves — so
|
|
6
|
+
* every `{{guidance:<layer>}}` placeholder in their skills has nothing to resolve
|
|
7
|
+
* against. This migration installs the layers the content package ships.
|
|
8
|
+
*
|
|
9
|
+
* Safe tier: it only adds files that are absent and appends entries to
|
|
10
|
+
* `index.yaml`. A layer whose body has been edited locally is reported and left
|
|
11
|
+
* alone, so applying this can never overwrite project-authored guidance.
|
|
12
|
+
*
|
|
13
|
+
* Note this repairs the *layers*; the placeholders in already-emitted skill
|
|
14
|
+
* bodies are rewritten by the skill refresh in `aidlc update`.
|
|
15
|
+
*/
|
|
16
|
+
import type { Migration } from '../types.js';
|
|
17
|
+
export declare const installGuidance: Migration;
|
|
18
|
+
//# sourceMappingURL=install-guidance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-guidance.d.ts","sourceRoot":"","sources":["../../../src/doctor/migrations/install-guidance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,eAAe,EAAE,SA+C7B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* install-guidance migration (guidance-layers-never-resolve/AC-2).
|
|
3
|
+
*
|
|
4
|
+
* Projects initialized before guidance installation existed have no
|
|
5
|
+
* `.aidlc/guidance/` at all — or only the layers they authored themselves — so
|
|
6
|
+
* every `{{guidance:<layer>}}` placeholder in their skills has nothing to resolve
|
|
7
|
+
* against. This migration installs the layers the content package ships.
|
|
8
|
+
*
|
|
9
|
+
* Safe tier: it only adds files that are absent and appends entries to
|
|
10
|
+
* `index.yaml`. A layer whose body has been edited locally is reported and left
|
|
11
|
+
* alone, so applying this can never overwrite project-authored guidance.
|
|
12
|
+
*
|
|
13
|
+
* Note this repairs the *layers*; the placeholders in already-emitted skill
|
|
14
|
+
* bodies are rewritten by the skill refresh in `aidlc update`.
|
|
15
|
+
*/
|
|
16
|
+
import { getContentPackageRoot } from '../../compile/content-root.js';
|
|
17
|
+
import { installBundledGuidance } from '../../compile/guidance-install.js';
|
|
18
|
+
export const installGuidance = {
|
|
19
|
+
id: 'install-guidance',
|
|
20
|
+
tier: 'safe',
|
|
21
|
+
check(ctx) {
|
|
22
|
+
let contentRoot;
|
|
23
|
+
try {
|
|
24
|
+
contentRoot = getContentPackageRoot();
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return { applicable: false, reason: 'content package not resolvable' };
|
|
28
|
+
}
|
|
29
|
+
const report = installBundledGuidance(ctx.projectRoot, contentRoot, { dryRun: true });
|
|
30
|
+
if (report.installed.length === 0 && !report.indexUpdated) {
|
|
31
|
+
return { applicable: true, pending: false };
|
|
32
|
+
}
|
|
33
|
+
const parts = [];
|
|
34
|
+
if (report.installed.length > 0) {
|
|
35
|
+
parts.push(`install ${report.installed.length} guidance layer(s): ${report.installed.join(', ')}`);
|
|
36
|
+
}
|
|
37
|
+
if (report.indexUpdated) {
|
|
38
|
+
parts.push('register them in .aidlc/guidance/index.yaml');
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
applicable: true,
|
|
42
|
+
pending: true,
|
|
43
|
+
description: `would ${parts.join(' and ')}`,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
apply(ctx) {
|
|
47
|
+
const report = installBundledGuidance(ctx.projectRoot, getContentPackageRoot());
|
|
48
|
+
const parts = [];
|
|
49
|
+
if (report.installed.length > 0) {
|
|
50
|
+
parts.push(`installed guidance layer(s): ${report.installed.join(', ')}`);
|
|
51
|
+
}
|
|
52
|
+
if (report.locallyModified.length > 0) {
|
|
53
|
+
parts.push(`left locally modified alone: ${report.locallyModified.join(', ')}`);
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
changed: report.installed.length > 0 || report.indexUpdated,
|
|
57
|
+
summary: parts.join('; ') || 'guidance layers already installed',
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=install-guidance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-guidance.js","sourceRoot":"","sources":["../../../src/doctor/migrations/install-guidance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,CAAC,GAAG;QACP,IAAI,WAAmB,CAAC;QACxB,IAAI,CAAC;YACH,WAAW,GAAG,qBAAqB,EAAE,CAAC;QACxC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,gCAAgC,EAAE,CAAC;QACzE,CAAC;QAED,MAAM,MAAM,GAAG,sBAAsB,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAEtF,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC1D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC9C,CAAC;QAED,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,SAAS,CAAC,MAAM,uBAAuB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrG,CAAC;QACD,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;YACxB,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,SAAS,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;SAC5C,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,GAAG;QACP,MAAM,MAAM,GAAG,sBAAsB,CAAC,GAAG,CAAC,WAAW,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAEhF,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,IAAI,CAAC,gCAAgC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;QACD,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,gCAAgC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClF,CAAC;QAED,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,YAAY;YAC3D,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,mCAAmC;SACjE,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* stale-cost-hooks migration: report installed cost hooks whose recorded CLI
|
|
3
|
+
* path no longer resolves on disk.
|
|
4
|
+
*
|
|
5
|
+
* Report-only, `safe` tier. The repair rewrites project files, so it belongs to
|
|
6
|
+
* `aidlc cost hooks install` — a diagnostic must not silently rewrite a user's
|
|
7
|
+
* .claude/settings.json or .kiro/hooks/. Same reasoning as unknown-agent-claims.
|
|
8
|
+
*
|
|
9
|
+
* Why this exists: hook commands are written with ABSOLUTE paths to both the
|
|
10
|
+
* node binary and the globally installed CLI. A username change, a new machine,
|
|
11
|
+
* or an `nvm` upgrade invalidates them, and the hook then fails silently —
|
|
12
|
+
* nothing executes, nothing reaches capture.log, and `aidlc cost` reports no
|
|
13
|
+
* data forever with no indication why. Observed in a real project whose hooks
|
|
14
|
+
* still named `/Users/rodrigo` and node v24.9.0 long after the account and
|
|
15
|
+
* runtime had moved on: capture had been dead for four days, every phase read
|
|
16
|
+
* $0.00, and no command said anything was wrong.
|
|
17
|
+
*
|
|
18
|
+
* The detection already existed — `commandResolvable` on both hook-status
|
|
19
|
+
* functions — and had no caller outside `aidlc cost hooks status`, which a
|
|
20
|
+
* human has to remember to run. A guard nobody invokes is the same shape as the
|
|
21
|
+
* cost feature whose arming was manual and therefore never armed.
|
|
22
|
+
*
|
|
23
|
+
* Self-clearing (the cost-capture-noise lesson: a suppression guard needs its
|
|
24
|
+
* counterpart verified to exist). Reinstalling the hooks makes the path resolve
|
|
25
|
+
* and silences this without anyone editing state.
|
|
26
|
+
*/
|
|
27
|
+
import type { Migration } from '../types.js';
|
|
28
|
+
/**
|
|
29
|
+
* Platforms whose cost hooks are installed but point at a path that is gone.
|
|
30
|
+
* Read-only half, exported for reuse and for direct testing.
|
|
31
|
+
*
|
|
32
|
+
* Only installed hooks are reported: an absent hook is a different condition
|
|
33
|
+
* (never armed, not broken) and `aidlc cost hooks status` already says so.
|
|
34
|
+
*/
|
|
35
|
+
export declare function staleCostHookPlatforms(projectRoot: string): string[];
|
|
36
|
+
export declare const staleCostHooks: Migration;
|
|
37
|
+
//# sourceMappingURL=stale-cost-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stale-cost-hooks.d.ts","sourceRoot":"","sources":["../../../src/doctor/migrations/stale-cost-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAwB7C;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAOpE;AAWD,eAAO,MAAM,cAAc,EAAE,SAgB5B,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* stale-cost-hooks migration: report installed cost hooks whose recorded CLI
|
|
3
|
+
* path no longer resolves on disk.
|
|
4
|
+
*
|
|
5
|
+
* Report-only, `safe` tier. The repair rewrites project files, so it belongs to
|
|
6
|
+
* `aidlc cost hooks install` — a diagnostic must not silently rewrite a user's
|
|
7
|
+
* .claude/settings.json or .kiro/hooks/. Same reasoning as unknown-agent-claims.
|
|
8
|
+
*
|
|
9
|
+
* Why this exists: hook commands are written with ABSOLUTE paths to both the
|
|
10
|
+
* node binary and the globally installed CLI. A username change, a new machine,
|
|
11
|
+
* or an `nvm` upgrade invalidates them, and the hook then fails silently —
|
|
12
|
+
* nothing executes, nothing reaches capture.log, and `aidlc cost` reports no
|
|
13
|
+
* data forever with no indication why. Observed in a real project whose hooks
|
|
14
|
+
* still named `/Users/rodrigo` and node v24.9.0 long after the account and
|
|
15
|
+
* runtime had moved on: capture had been dead for four days, every phase read
|
|
16
|
+
* $0.00, and no command said anything was wrong.
|
|
17
|
+
*
|
|
18
|
+
* The detection already existed — `commandResolvable` on both hook-status
|
|
19
|
+
* functions — and had no caller outside `aidlc cost hooks status`, which a
|
|
20
|
+
* human has to remember to run. A guard nobody invokes is the same shape as the
|
|
21
|
+
* cost feature whose arming was manual and therefore never armed.
|
|
22
|
+
*
|
|
23
|
+
* Self-clearing (the cost-capture-noise lesson: a suppression guard needs its
|
|
24
|
+
* counterpart verified to exist). Reinstalling the hooks makes the path resolve
|
|
25
|
+
* and silences this without anyone editing state.
|
|
26
|
+
*/
|
|
27
|
+
import { claudeCodeHookStatus } from '../../cost/hooks/claude-code.js';
|
|
28
|
+
import { kiroHookStatus } from '../../cost/hooks/kiro.js';
|
|
29
|
+
/*
|
|
30
|
+
* Deliberately NOT driven by allProviders(). That registry is populated by an
|
|
31
|
+
* explicit registerBuiltinProviders() call, so any caller that has not made it
|
|
32
|
+
* sees an EMPTY list — providers/index.ts documents that exact bug ("any code
|
|
33
|
+
* path that did not import that module saw an empty registry"), and this
|
|
34
|
+
* migration reproduced it on the first run: every case returned no findings
|
|
35
|
+
* because the loop had nothing to iterate. A diagnostic that silently finds
|
|
36
|
+
* nothing is worse than no diagnostic at all.
|
|
37
|
+
*
|
|
38
|
+
* Hook installation exists only for these two platforms, so the pairing is
|
|
39
|
+
* static and carries no hidden initialisation order.
|
|
40
|
+
*/
|
|
41
|
+
const HOOK_PLATFORMS = [
|
|
42
|
+
{ name: 'claude-code', status: claudeCodeHookStatus },
|
|
43
|
+
{ name: 'kiro', status: kiroHookStatus },
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* Platforms whose cost hooks are installed but point at a path that is gone.
|
|
47
|
+
* Read-only half, exported for reuse and for direct testing.
|
|
48
|
+
*
|
|
49
|
+
* Only installed hooks are reported: an absent hook is a different condition
|
|
50
|
+
* (never armed, not broken) and `aidlc cost hooks status` already says so.
|
|
51
|
+
*/
|
|
52
|
+
export function staleCostHookPlatforms(projectRoot) {
|
|
53
|
+
const stale = [];
|
|
54
|
+
for (const p of HOOK_PLATFORMS) {
|
|
55
|
+
const status = p.status(projectRoot);
|
|
56
|
+
if (status.installed && !status.commandResolvable)
|
|
57
|
+
stale.push(p.name);
|
|
58
|
+
}
|
|
59
|
+
return stale;
|
|
60
|
+
}
|
|
61
|
+
function summarize(stale) {
|
|
62
|
+
return (`${stale.length} cost hook${stale.length === 1 ? '' : 's'} ` +
|
|
63
|
+
`point at a path that no longer exists (${stale.join(', ')}) — ` +
|
|
64
|
+
'no usage is being captured; run `aidlc cost hooks install` to re-point ' +
|
|
65
|
+
'them at the current node and CLI');
|
|
66
|
+
}
|
|
67
|
+
export const staleCostHooks = {
|
|
68
|
+
id: 'stale-cost-hooks',
|
|
69
|
+
tier: 'safe',
|
|
70
|
+
check(ctx) {
|
|
71
|
+
const stale = staleCostHookPlatforms(ctx.projectRoot);
|
|
72
|
+
if (stale.length === 0)
|
|
73
|
+
return { applicable: true, pending: false };
|
|
74
|
+
return { applicable: true, pending: true, description: summarize(stale) };
|
|
75
|
+
},
|
|
76
|
+
apply(ctx) {
|
|
77
|
+
// Report-only. `changed: true` is what makes the finding visible: the runner
|
|
78
|
+
// maps changed:false to status 'clean', and commands/doctor.ts filters clean
|
|
79
|
+
// outcomes out of its report entirely, so a diagnostic returning false would
|
|
80
|
+
// be silently swallowed. The rendered line reads `stale-cost-hooks: <summary>`.
|
|
81
|
+
const stale = staleCostHookPlatforms(ctx.projectRoot);
|
|
82
|
+
return { changed: stale.length > 0, summary: summarize(stale) };
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=stale-cost-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stale-cost-hooks.js","sourceRoot":"","sources":["../../../src/doctor/migrations/stale-cost-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ1D;;;;;;;;;;;GAWG;AACH,MAAM,cAAc,GAAuB;IACzC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,oBAAoB,EAAE;IACrD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE;CACzC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACxD,MAAM,KAAK,GAAa,EAAE,C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,EAAE,CAAC;IAClE,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasensio/aidlc",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"description": "AI Development Lifecycle Framework — structured lifecycle guidance for AI coding agents across platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cli.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"commander": "15.0.0",
|
|
25
25
|
"picomatch": "4.0.5",
|
|
26
26
|
"yaml": "2.9.0",
|
|
27
|
-
"@rasensio/aidlc-content": "1.10.
|
|
27
|
+
"@rasensio/aidlc-content": "1.10.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "22.15.32",
|