@tech-leads-club/harness-toolkit 0.4.4 → 0.4.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/bin/tlc-cli.ts +9 -3
- package/dist/compact-before.mjs +77 -77
- package/dist/doctor.mjs +78 -78
- package/dist/init-project.mjs +87 -87
- package/dist/install-runtime.mjs +77 -77
- package/dist/lessons-cli.mjs +77 -77
- package/dist/obs-cli.mjs +78 -78
- package/dist/prompt-submit.mjs +77 -77
- package/dist/refresh-model-prices.mjs +77 -77
- package/dist/response-after.mjs +77 -77
- package/dist/run.mjs +78 -78
- package/dist/session-end.mjs +81 -81
- package/dist/session-start.mjs +85 -85
- package/dist/shim.mjs +76 -76
- package/dist/stop.mjs +84 -84
- package/dist/subagent-start.mjs +78 -78
- package/dist/subagent-stop.mjs +79 -79
- package/dist/support.mjs +81 -81
- package/dist/tlc-cli.mjs +99 -99
- package/dist/tool-after.mjs +77 -77
- package/dist/tool-before.mjs +76 -76
- package/dist/tool-failure.mjs +77 -77
- package/dist/uninstall-runtime.mjs +3 -3
- package/docs/log.md +4 -0
- package/package.json +1 -1
- package/src/contracts/harness-event.ts +2 -0
- package/src/core/capability/capability.service.ts +15 -7
- package/src/core/rules/rules.observe.ts +59 -3
- package/src/core/rules/rules.service.ts +25 -3
- package/src/core/rules/rules.store.ts +30 -0
- package/src/providers/claude/claude.inbound.ts +22 -3
- package/tools/doctor.ts +9 -3
package/bin/tlc-cli.ts
CHANGED
|
@@ -1382,12 +1382,18 @@ export function runTestSteps(
|
|
|
1382
1382
|
|
|
1383
1383
|
function announceNewCapabilities(root: string, runtimeRoot: string): void {
|
|
1384
1384
|
const catalog = coreFacade.capability.loadCatalog(runtimeRoot);
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
// why the effective policy and not the project file: announcing a capability the operator already switched on
|
|
1386
|
+
// machine-wide is noise, and the file alone cannot see that ([/decisions/ad-103.md](/decisions/ad-103.md)).
|
|
1387
|
+
const connected = coreFacade.capability.readProjectPolicyRaw(root);
|
|
1388
|
+
if (!catalog || !connected) {
|
|
1387
1389
|
return;
|
|
1388
1390
|
}
|
|
1389
1391
|
const seen = coreFacade.capability.readRuntimeSeen(root);
|
|
1390
|
-
const fresh = coreFacade.capability.listNewlyAnnounceable(
|
|
1392
|
+
const fresh = coreFacade.capability.listNewlyAnnounceable(
|
|
1393
|
+
coreFacade.policy.loadPolicy(root),
|
|
1394
|
+
catalog,
|
|
1395
|
+
seen.catalogVersion,
|
|
1396
|
+
);
|
|
1391
1397
|
if (fresh.length === 0) {
|
|
1392
1398
|
return;
|
|
1393
1399
|
}
|