@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 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
- const policy = coreFacade.capability.readProjectPolicyRaw(root);
1386
- if (!catalog || !policy) {
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(policy, catalog, seen.catalogVersion);
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
  }