@holmes-lab/holmes-kit 0.35.23 → 0.35.25
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/CHANGELOG.md +115 -0
- package/README.md +5 -3
- package/dist/.build-id +1 -1
- package/dist/holmes/cli/agent-registry.d.ts +7 -0
- package/dist/holmes/cli/agent-registry.js +10 -0
- package/dist/holmes/cli/agents.d.ts +2 -2
- package/dist/holmes/cli/agents.js +196 -6
- package/dist/holmes/cli/approve.js +4 -4
- package/dist/holmes/cli/doctor.d.ts +22 -0
- package/dist/holmes/cli/doctor.js +160 -11
- package/dist/holmes/cli/index.js +23 -1
- package/dist/holmes/cli/init.d.ts +24 -0
- package/dist/holmes/cli/init.js +55 -3
- package/dist/holmes/cli/runtime-binding-approval.js +3 -2
- package/dist/holmes/cli/runtime-binding.d.ts +10 -1
- package/dist/holmes/cli/runtime-binding.js +139 -2
- package/dist/holmes/cli/scratch.d.ts +12 -0
- package/dist/holmes/cli/scratch.js +20 -0
- package/dist/holmes/governance/approval-queue.js +4 -3
- package/dist/holmes/guardrail/impact-gate.d.ts +2 -0
- package/dist/holmes/guardrail/impact-gate.js +34 -11
- package/dist/holmes/guardrail/risk-classifier.js +14 -2
- package/dist/holmes/guardrail/risk-types.d.ts +1 -0
- package/dist/holmes/hooks/adapters/antigravity.js +3 -2
- package/dist/holmes/hooks/heartbeat.d.ts +47 -0
- package/dist/holmes/hooks/heartbeat.js +247 -0
- package/dist/holmes/hooks/pre-tool-use.d.ts +1 -1
- package/dist/holmes/hooks/pre-tool-use.js +46 -3
- package/dist/holmes/hooks/stop.d.ts +3 -1
- package/dist/holmes/hooks/stop.js +16 -4
- package/dist/holmes/mcp/elicit-approval.js +4 -4
- package/dist/holmes/mcp/handlers/runtime-binding-tool.d.ts +28 -0
- package/dist/holmes/mcp/handlers/runtime-binding-tool.js +42 -9
- package/dist/holmes/mcp/handlers/spec-approval.js +3 -2
- package/dist/holmes/mcp/handlers/workspace-preflight.js +2 -2
- package/dist/holmes/mcp/handlers.d.ts +27 -1
- package/dist/holmes/project/npx-bin.d.ts +26 -0
- package/dist/holmes/project/npx-bin.js +272 -2
- package/dist/holmes/project/scratch-root.d.ts +12 -0
- package/dist/holmes/project/scratch-root.js +132 -0
- package/dist/holmes/project/workspace-preflight.d.ts +3 -0
- package/dist/holmes/project/workspace-preflight.js +42 -2
- package/dist/holmes/runtime/dispatch.js +8 -4
- package/package.json +1 -1
|
@@ -53,6 +53,9 @@ exports.wiringSpawnCheck = wiringSpawnCheck;
|
|
|
53
53
|
exports.mcpProbeEnv = mcpProbeEnv;
|
|
54
54
|
exports.pushGateCheck = pushGateCheck;
|
|
55
55
|
exports.stopHookTimeoutCheck = stopHookTimeoutCheck;
|
|
56
|
+
exports.activationText = activationText;
|
|
57
|
+
exports.npxResolutionCheck = npxResolutionCheck;
|
|
58
|
+
exports.hookObservationChecks = hookObservationChecks;
|
|
56
59
|
exports.codexStopGateCheck = codexStopGateCheck;
|
|
57
60
|
exports.ciMatrixCheck = ciMatrixCheck;
|
|
58
61
|
exports.checksJson = checksJson;
|
|
@@ -69,7 +72,7 @@ exports.wiringHandshakeChecks = wiringHandshakeChecks;
|
|
|
69
72
|
exports.semanticCoverageCheck = semanticCoverageCheck;
|
|
70
73
|
exports.semanticTierVerdict = semanticTierVerdict;
|
|
71
74
|
exports.detectTreeKeyTemporary = detectTreeKeyTemporary;
|
|
72
|
-
// @implements A-SPEC-751.4, A-SPEC-
|
|
75
|
+
// @implements A-SPEC-751.4, A-SPEC-770.3, A-SPEC-770.6, A-SPEC-770.7, A-SPEC-770.9, A-SPEC-770.10,A-SPEC-733,A-SPEC-727, A-SPEC-721, A-SPEC-738, A-SPEC-734, A-SPEC-751, A-SPEC-751.2, A-SPEC-772.1, A-SPEC-772.5, A-SPEC-772.6, A-SPEC-772.7, A-SPEC-772.8, A-SPEC-772.9, A-SPEC-772.10, A-SPEC-772.11
|
|
73
76
|
// @implements A-SPEC-704, A-SPEC-710, A-SPEC-712, A-SPEC-769.14, A-SPEC-769.16, A-SPEC-769.17, A-SPEC-769.18, A-SPEC-769.19, A-SPEC-769.20, A-SPEC-769.21
|
|
74
77
|
const doctor_guidance_1 = require("./doctor-guidance");
|
|
75
78
|
// @implements A-SPEC-264, A-SPEC-423, A-SPEC-549.1, A-SPEC-590
|
|
@@ -750,10 +753,17 @@ async function runDoctor(packageRoot, target, opts, extraChecks) {
|
|
|
750
753
|
const drift = report.drift ?? [];
|
|
751
754
|
const changedSinceInstall = drift.filter((d) => d.kind === 'operator-config').map((d) => d.path);
|
|
752
755
|
const staleRows = drift.filter((d) => d.kind === 'stale-workspace').map((d) => d.path);
|
|
753
|
-
add('runtime binding', report.conflicts.length ? 'FAIL' : 'WARN',
|
|
756
|
+
add('runtime binding', report.conflicts.length ? 'FAIL' : 'WARN',
|
|
757
|
+
// @implements A-SPEC-772.10 — the activation status reports, not a fixed "unverified" beside a PASS observation.
|
|
758
|
+
`${s.mode}: workspace=${s.workspaceRoot}; package=${s.packageRoot}; build=${s.buildId}${own}; specs=${s.specsRoot}; ${activationText(Object.keys(report.observed ?? {}), opts?.agent)}`
|
|
754
759
|
+ (report.conflicts.length ? `; ${report.conflicts.join('; ')}` : '')
|
|
755
760
|
+ (changedSinceInstall.length ? `; changed since installation (operator-owned, still routed): ${changedSinceInstall.join(', ')}` : '')
|
|
756
|
-
+ (staleRows.length ? `; stale receipt rows (workspace gone): ${staleRows.join(', ')}` : '')
|
|
761
|
+
+ (staleRows.length ? `; stale receipt rows (workspace gone): ${staleRows.join(', ')}` : '')
|
|
762
|
+
// @implements A-SPEC-772.7 — a router deployed by an older setup runs older code than the selected build.
|
|
763
|
+
+ ((report.routerOutdated ?? []).length
|
|
764
|
+
// @implements A-SPEC-772.9 — a capability check (772.8), and the advice names a build that can clear it.
|
|
765
|
+
? `; the deployed dispatcher does not report its routing mode (${(report.routerOutdated ?? []).join(', ')} predates it) — re-run holmes-kit runtime-binding setup with a holmes-kit build that reports it (newer than 0.35.23, or the development checkout)`
|
|
766
|
+
: ''), 'Use runtime-binding status and setup --dry-run to inspect routed wiring. Native hook trust and enable state remain operator-controlled.');
|
|
757
767
|
// @implements A-SPEC-769.8 — one WARN per Codex lifecycle routed to Holmes from both the user-level and the
|
|
758
768
|
// workspace hooks file (measured 2026-10-12: the Stop hook ran twice per session end in both X1 fixtures).
|
|
759
769
|
for (const d of report.duplicateRoutes ?? []) {
|
|
@@ -899,6 +909,13 @@ async function runDoctor(packageRoot, target, opts, extraChecks) {
|
|
|
899
909
|
checks.push(...wiringVersionChecks(target, opts?.codexConfigPath, cli));
|
|
900
910
|
}
|
|
901
911
|
}
|
|
912
|
+
// @implements A-SPEC-770.3 — the copy the bare npx command would run from the target, when it is not this install.
|
|
913
|
+
{
|
|
914
|
+
const cli = (0, mcp_launcher_1.readPackageVersion)(packageRoot);
|
|
915
|
+
const row = cli ? npxResolutionCheck(target ?? process.cwd(), cli) : null;
|
|
916
|
+
if (row)
|
|
917
|
+
checks.push(row);
|
|
918
|
+
}
|
|
902
919
|
// 7. Target wiring — do the configured commands point at THIS installed package and exist?
|
|
903
920
|
if (target) {
|
|
904
921
|
// @implements A-SPEC-190 §13 (round 11) — `init --settings project` wires `.claude/settings.json`,
|
|
@@ -2064,7 +2081,8 @@ async function runDoctor(packageRoot, target, opts, extraChecks) {
|
|
|
2064
2081
|
const h = JSON.parse(fs.readFileSync(cdxHooksJson, 'utf8'));
|
|
2065
2082
|
const manifest = JSON.parse(fs.readFileSync(cdxPluginJson, 'utf8'));
|
|
2066
2083
|
const preCmd = h.hooks?.PreToolUse?.[0]?.hooks?.[0]?.command ?? '';
|
|
2067
|
-
|
|
2084
|
+
// @implements A-SPEC-772.3 — the group shape init now writes, and the flat shape it wrote before.
|
|
2085
|
+
const stopCmd = h.hooks?.Stop?.[0]?.hooks?.[0]?.command ?? h.hooks?.Stop?.[0]?.command ?? '';
|
|
2068
2086
|
const stale = [preCmd, stopCmd].filter((c) => {
|
|
2069
2087
|
const p2 = (0, settings_merge_1.hookScriptPath)(c);
|
|
2070
2088
|
return !relativeScript(p2) && judge(p2) !== 'this' && judge(p2) !== 'unknown';
|
|
@@ -2363,6 +2381,17 @@ async function runDoctor(packageRoot, target, opts, extraChecks) {
|
|
|
2363
2381
|
const cg = codexStopGateCheck(target ?? process.cwd(), { ...(opts?.codexConfigPath ? { codexConfigPath: opts.codexConfigPath } : {}) }); // @implements A-SPEC-769.19
|
|
2364
2382
|
if (cg)
|
|
2365
2383
|
checks.push(cg);
|
|
2384
|
+
checks.push(...hookObservationChecks(target ?? process.cwd(), Date.now(), opts?.agent)); // @implements A-SPEC-772.1, A-SPEC-772.6
|
|
2385
|
+
// @implements A-SPEC-772.6 — Codex does not load the hooks of a project it marks untrusted.
|
|
2386
|
+
{
|
|
2387
|
+
const t = target ?? process.cwd();
|
|
2388
|
+
// @implements A-SPEC-772.7 — honours --agent like the observation rows.
|
|
2389
|
+
const forCodex = opts?.agent === undefined || opts.agent === 'codex';
|
|
2390
|
+
const gr = forCodex ? governedRootOf(t) : null; // @implements A-SPEC-772.11 — the project root, not the target
|
|
2391
|
+
const key = gr !== null ? (0, runtime_binding_1.codexProjectUntrusted)(gr, opts?.codexConfigPath ?? (0, codex_toml_1.defaultCodexConfigPath)()) : null;
|
|
2392
|
+
if (key !== null)
|
|
2393
|
+
checks.push({ name: 'codex project trust', level: 'WARN', detail: `Codex marks ${key} untrusted — this workspace's project hooks do not load in Codex`, fix: 'Trust the project in Codex (answer the trust prompt, or set trust_level = "trusted" for it in config.toml).' });
|
|
2394
|
+
}
|
|
2366
2395
|
}
|
|
2367
2396
|
checks.push(...(0, worktree_readiness_1.worktreeReadinessChecks)(packageRoot, target ?? process.cwd(), { agent: opts?.agent, codexConfigPath: opts?.codexConfigPath }));
|
|
2368
2397
|
if (extraChecks) {
|
|
@@ -2721,15 +2750,25 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2721
2750
|
} };
|
|
2722
2751
|
// @implements A-SPEC-769.13 — no timeout is the harness default (600 s on Claude and Codex), not a short one.
|
|
2723
2752
|
const short = (t) => typeof t === 'number' && t < STOP_HOOK_TIMEOUT_SECONDS;
|
|
2753
|
+
// @implements A-SPEC-772.3 — `runs`: the harness runs this entry now (Claude and Antigravity always; Codex only with a
|
|
2754
|
+
// trust record and not switched off; a plugin snapshot is not counted as running). A running short Stop is FAIL.
|
|
2724
2755
|
const stale = [];
|
|
2725
2756
|
// Claude: user settings (CLAUDE_CONFIG_DIR or ~/.claude) and the project files.
|
|
2726
2757
|
const claudeUser = opts.claudeUserSettings !== undefined ? opts.claudeUserSettings : (0, claude_switches_1.claudeUserSettingsPath)((0, claude_switches_1.claudeSwitchEnv)());
|
|
2758
|
+
// @implements A-SPEC-772.6 — Claude runs no hook while its switches turn hooks off, read as A-SPEC-251.2 measured them
|
|
2759
|
+
// (`disableAllHooks` true in any source holds; managed allowManagedHooksOnly), not per file (A-SPEC-772.5 #5).
|
|
2760
|
+
let claudeOff = false;
|
|
2761
|
+
try {
|
|
2762
|
+
const env = opts.home !== undefined ? { ...(0, claude_switches_1.claudeSwitchEnv)(), home: opts.home, claudeConfigDir: undefined, rawConfigDir: undefined, managedDirs: [] } : (0, claude_switches_1.claudeSwitchEnv)();
|
|
2763
|
+
claudeOff = (0, claude_switches_1.claudeSwitches)(target, env).hooksOff.length > 0;
|
|
2764
|
+
}
|
|
2765
|
+
catch { /* unreadable switches: counted as running, the stricter reading */ }
|
|
2727
2766
|
for (const file of [claudeUser, path.join(target, '.claude', 'settings.json'), path.join(target, '.claude', 'settings.local.json')]) {
|
|
2728
2767
|
if (file === null)
|
|
2729
2768
|
continue;
|
|
2730
2769
|
const groups = json(file)?.hooks?.Stop;
|
|
2731
2770
|
if (Array.isArray(groups) && groups.some((g) => Array.isArray(g?.hooks) && g.hooks.some((h) => isHolmesStop(h?.command) && short(h?.timeout))))
|
|
2732
|
-
stale.push({ file, harness: 'claude' });
|
|
2771
|
+
stale.push({ file, harness: 'claude', runs: !claudeOff });
|
|
2733
2772
|
}
|
|
2734
2773
|
// Codex: switched-off entries are keyed by the path Codex resolved — compare the path as given, its realpath and
|
|
2735
2774
|
// native realpath, lowercased on Windows (as runtime-binding and codex-oracle do).
|
|
@@ -2794,9 +2833,13 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2794
2833
|
}
|
|
2795
2834
|
if (!Array.isArray(groups))
|
|
2796
2835
|
continue;
|
|
2797
|
-
const
|
|
2798
|
-
|
|
2799
|
-
|
|
2836
|
+
const shortOn = [];
|
|
2837
|
+
groups.forEach((g, i) => (Array.isArray(g?.hooks) ? g.hooks : []).forEach((h, j) => {
|
|
2838
|
+
if (isHolmesStop(h?.command) && short(h?.timeout) && !names.some((n) => off.has(norm(`${n}:stop:${i}:${j}`))))
|
|
2839
|
+
shortOn.push([i, j]);
|
|
2840
|
+
}));
|
|
2841
|
+
if (shortOn.length)
|
|
2842
|
+
stale.push({ file, harness: 'codex', runs: shortOn.some(([i, j]) => names.some((n) => trusted.has(norm(`${n}:stop:${i}:${j}`)))) });
|
|
2800
2843
|
}
|
|
2801
2844
|
// @implements A-SPEC-769.14 — Codex runs the plugin snapshot it installed, not the workspace copy: read each
|
|
2802
2845
|
// `hooks.json` within three levels of a holmes vendor in the plugins cache (the walk runtime-binding makes). Init
|
|
@@ -2885,8 +2928,11 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2885
2928
|
const prefix = `${plugin}@${vendor}:${path.relative(base ?? at, f).split(path.sep).join('/')}:stop:`;
|
|
2886
2929
|
const runs = stops.some((g, i) => handlers(g).some((h, j) => isHolmesStop(h?.command) && short(h?.timeout)
|
|
2887
2930
|
&& !off.has(norm(`${prefix}${i}:${j}`)) && !(Array.isArray(g?.hooks) ? false : off.has(norm(`${prefix}${i}`)))));
|
|
2931
|
+
// @implements A-SPEC-772.5 — trusted as A-SPEC-769.19 reads a snapshot's gates: then Codex runs this Stop now.
|
|
2932
|
+
const trustedShort = stops.some((g, i) => handlers(g).some((h, j) => isHolmesStop(h?.command) && short(h?.timeout)
|
|
2933
|
+
&& !off.has(norm(`${prefix}${i}:${j}`)) && (trusted.has(norm(`${prefix}${i}:${j}`)) || (!Array.isArray(g?.hooks) && trusted.has(norm(`${prefix}${i}`))))));
|
|
2888
2934
|
if (runs)
|
|
2889
|
-
stale.push({ file: f, harness: 'codex-plugin' });
|
|
2935
|
+
stale.push({ file: f, harness: 'codex-plugin', runs: trustedShort });
|
|
2890
2936
|
}
|
|
2891
2937
|
}
|
|
2892
2938
|
};
|
|
@@ -2903,8 +2949,11 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2903
2949
|
if (!block || block.enabled === false || !Array.isArray(block.Stop))
|
|
2904
2950
|
continue;
|
|
2905
2951
|
if (block.Stop.some((h) => isHolmesStop(h?.command) && short(h?.timeout)))
|
|
2906
|
-
stale.push({ file, harness: 'antigravity' });
|
|
2952
|
+
stale.push({ file, harness: 'antigravity', runs: true });
|
|
2907
2953
|
}
|
|
2954
|
+
// @implements A-SPEC-772.5 — init's operator line reads which short Codex Stops exist and whether they run now.
|
|
2955
|
+
if (gateReading)
|
|
2956
|
+
gateReading.shortStops = stale.filter((s) => s.harness === 'codex' || s.harness === 'codex-plugin').map((s) => ({ file: s.file, runs: s.runs === true }));
|
|
2908
2957
|
const unread = unreadable.length === 0 ? ''
|
|
2909
2958
|
: `Codex plugin snapshot could not be read, so its Stop timeout is unknown: ${unreadable.join(', ')}`;
|
|
2910
2959
|
if (stale.length === 0 && unread === '')
|
|
@@ -2915,7 +2964,7 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2915
2964
|
fix: 'Make the snapshot readable by this user, or uninstall that Holmes plugin in Codex and reinstall it from the current workspace',
|
|
2916
2965
|
};
|
|
2917
2966
|
return {
|
|
2918
|
-
name: 'stop hook timeout', level: 'WARN',
|
|
2967
|
+
name: 'stop hook timeout', level: stale.some((s) => s.runs === true) ? 'FAIL' : 'WARN',
|
|
2919
2968
|
detail: `Holmes Stop hook with a timeout below ${STOP_HOOK_TIMEOUT_SECONDS} s (the harness kills a Stop before its 60 s deadline answers): ${stale.map((s) => s.file).join(', ')}${unread === '' ? '' : `; ${unread}`}`,
|
|
2920
2969
|
fix: 'Run holmes-kit runtime-binding setup again (operator), or holmes-kit init for a workspace init wired'
|
|
2921
2970
|
+ (stale.some((s) => s.harness === 'codex') ? '; then trust the rewritten Codex Stop hook once with /hooks' : '')
|
|
@@ -2926,6 +2975,106 @@ function stopHookTimeoutCheck(target, opts = {}) {
|
|
|
2926
2975
|
return null;
|
|
2927
2976
|
} // diagnosis must never crash doctor
|
|
2928
2977
|
}
|
|
2978
|
+
// @implements A-SPEC-772.1
|
|
2979
|
+
/**
|
|
2980
|
+
* One row per harness: has this harness's PreToolUse or Stop hook been observed running in the target within 24 h?
|
|
2981
|
+
* Measured 2026-10-17: nothing recorded a hook run, so a governed Codex session could not tell it was governed. The
|
|
2982
|
+
* row reports an observation, never enforcement; a target without `.ax` is not a governed workspace and gets none.
|
|
2983
|
+
*/
|
|
2984
|
+
/**
|
|
2985
|
+
* @implements A-SPEC-772.11 — the runtime binding row's activation words, narrowed by --agent: "observed (claude)"
|
|
2986
|
+
* beside a Codex-only report read as Codex's activation.
|
|
2987
|
+
*/
|
|
2988
|
+
function activationText(observed, agent) {
|
|
2989
|
+
if (agent === undefined)
|
|
2990
|
+
return observed.length ? `live activation observed (${observed.join(', ')})` : 'live activation unverified';
|
|
2991
|
+
if (observed.includes(agent))
|
|
2992
|
+
return `live activation observed (${agent})`;
|
|
2993
|
+
return `live activation unverified for ${agent}${observed.length ? ` (observed: ${observed.join(', ')})` : ''}`;
|
|
2994
|
+
}
|
|
2995
|
+
/**
|
|
2996
|
+
* @implements A-SPEC-770.3 — the nearest ancestor node_modules copy of holmes-kit, which the bare npx command run from the
|
|
2997
|
+
* target (or below) resolves before any global install. Field incident 2026-10-17: ~/node_modules held 0.19.3 and a
|
|
2998
|
+
* 0.35.23 refusal's own grant hint answered "no pending request matches". No copy: no row.
|
|
2999
|
+
*/
|
|
3000
|
+
function npxResolutionCheck(target, runningVersion) {
|
|
3001
|
+
// @implements A-SPEC-770.6 — what npx resolves: the first node_modules/.bin/holmes-kit link from the target up (round
|
|
3002
|
+
// 1: a pnpm link and an unscoped package were run by npx and missed here). The command is spelled via npxBin().
|
|
3003
|
+
const { shadowCopy, runningCli, powershellLiteral, posixLiteral, binEntryNames } = require('../project/npx-bin');
|
|
3004
|
+
const shadowed = `${(0, npx_bin_1.npxBin)()} holmes-kit`;
|
|
3005
|
+
const shadow = shadowCopy(target);
|
|
3006
|
+
if (shadow === null) {
|
|
3007
|
+
// @implements A-SPEC-770.7 — PASS only when npx would take a file entry here and it is this install; a dangling link
|
|
3008
|
+
// or a directory is skipped by npx, so it gives no row (round 2: a dangling link read as PASS).
|
|
3009
|
+
for (let dir = path.resolve(target);; dir = path.dirname(dir)) {
|
|
3010
|
+
// @implements A-SPEC-770.9 — the platform's entry names, as shadowCopy reads them (round 4: .cmd PASS on POSIX).
|
|
3011
|
+
if (binEntryNames().some((n) => { try {
|
|
3012
|
+
return fs.statSync(path.join(dir, 'node_modules', '.bin', n)).isFile();
|
|
3013
|
+
}
|
|
3014
|
+
catch {
|
|
3015
|
+
return false;
|
|
3016
|
+
} })) {
|
|
3017
|
+
return { name: 'npx resolution', level: 'PASS', detail: `${shadowed} from ${target} runs this install (${runningCli()})` };
|
|
3018
|
+
}
|
|
3019
|
+
if (path.dirname(dir) === dir)
|
|
3020
|
+
return null;
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
// @implements A-SPEC-770.7 — the fix names the package directory itself, quoted for this platform, and never a
|
|
3024
|
+
// node_modules directory (round 2: a shim made it `rm -r <project>/node_modules`).
|
|
3025
|
+
const q = process.platform === 'win32' ? powershellLiteral : posixLiteral;
|
|
3026
|
+
const removable = shadow.packageDir !== null && path.basename(shadow.packageDir) !== 'node_modules';
|
|
3027
|
+
// @implements A-SPEC-770.10 — npx runs the project's OWN bin here (a holmes-kit checkout or fork): nothing to remove.
|
|
3028
|
+
if (path.basename(shadow.link) === 'package.json' && shadow.packageDir === null) {
|
|
3029
|
+
return { name: 'npx resolution', level: 'WARN',
|
|
3030
|
+
detail: `npx run here starts this project's own bin.holmes-kit (${shadow.version || 'unknown version'}), not this install (${runningVersion}) — expected in a holmes-kit checkout; approval hints name this install's own path` };
|
|
3031
|
+
}
|
|
3032
|
+
return { name: 'npx resolution', level: 'WARN',
|
|
3033
|
+
detail: `${shadowed} from ${target} or below runs ${shadow.link}${shadow.packageDir ? ` (${shadow.packageDir})` : ''} ${shadow.version || '(unknown version)'}, not this install (${runningVersion}); approval hints there name this install's own path so they reach it`,
|
|
3034
|
+
fix: removable
|
|
3035
|
+
? `Remove that copy (rm -r ${q(shadow.packageDir)} and the link ${q(shadow.link)}) or update it to ${runningVersion}.`
|
|
3036
|
+
: `Update or remove the holmes-kit install that provides ${q(shadow.link)}.` };
|
|
3037
|
+
}
|
|
3038
|
+
/** @implements A-SPEC-772.11 — the workspace a target belongs to (a subdirectory reads its project's records). */
|
|
3039
|
+
function governedRootOf(target) {
|
|
3040
|
+
try {
|
|
3041
|
+
const { resolveProjectRoot } = require('../project/root');
|
|
3042
|
+
const r = resolveProjectRoot(target);
|
|
3043
|
+
return fs.existsSync(path.join(r.root, '.ax')) ? r.root : null;
|
|
3044
|
+
}
|
|
3045
|
+
catch {
|
|
3046
|
+
return fs.existsSync(path.join(target, '.ax')) ? target : null;
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
function hookObservationChecks(targetIn, now = Date.now(), agent) {
|
|
3050
|
+
const target = governedRootOf(targetIn);
|
|
3051
|
+
if (target === null)
|
|
3052
|
+
return [];
|
|
3053
|
+
const { readHookHeartbeats, observationOf, ageText, hookWiringFiles } = require('../hooks/heartbeat');
|
|
3054
|
+
const beats = readHookHeartbeats(target, now);
|
|
3055
|
+
// @implements A-SPEC-772.6 — `--agent` narrows the rows; an observation older than the wiring is stale.
|
|
3056
|
+
return agents_1.AGENTS.filter((a) => agent === undefined || a === agent).map((harness) => {
|
|
3057
|
+
const wiring = hookWiringFiles(target, harness);
|
|
3058
|
+
const name = `hook observed (${harness})`;
|
|
3059
|
+
// @implements A-SPEC-772.8 — PASS means the PreToolUse gate ran here; a Stop alone is reported as such.
|
|
3060
|
+
const gate = observationOf(beats, harness, now, wiring, 'pre-tool-use');
|
|
3061
|
+
if (gate.state === 'observed')
|
|
3062
|
+
return { name, level: 'PASS', detail: `${harness} ${gate.event} hook ran here at ${gate.at} (build ${gate.buildId}, ${gate.mode === 'unknown' ? 'routing unknown' : gate.mode})` };
|
|
3063
|
+
const o = observationOf(beats, harness, now, wiring);
|
|
3064
|
+
// @implements A-SPEC-772.10 — say what was not observed, no more; name an inherited switch-off.
|
|
3065
|
+
const off = process.env.HOLMES_HEARTBEAT === 'off' ? ' (heartbeat recording is off in this environment: HOLMES_HEARTBEAT=off)' : '';
|
|
3066
|
+
const notSeen = gate.state === 'stale' && gate.reason ? 'not observed since its wiring changed' : 'not observed within 24 h';
|
|
3067
|
+
if (o.state === 'observed')
|
|
3068
|
+
return { name, level: 'WARN', detail: `${harness}: only the Stop hook was observed; the PreToolUse gate was ${notSeen} (last Stop at ${o.at})${off}`, fix: `Check that the ${harness} PreToolUse hook is wired and trusted.` };
|
|
3069
|
+
const detail = (o.state === 'stale'
|
|
3070
|
+
? o.reason
|
|
3071
|
+
// @implements A-SPEC-772.11 — what refreshes it (the hook writes at most once a minute; it may have run again).
|
|
3072
|
+
? `${harness} hooks were last observed at ${o.at}, before their wiring changed; a newer record is written at the next hook run after the one-per-minute limit`
|
|
3073
|
+
: `${harness} hooks were last observed ${ageText(o.ageMs)} ago (${o.event}, build ${o.buildId}); live activation is unverified for ${harness}`
|
|
3074
|
+
: `${harness} hooks were never observed in this workspace; live activation is unverified for ${harness}`) + off;
|
|
3075
|
+
return { name, level: 'WARN', detail, fix: `Run one ${harness} session in this workspace and re-run doctor; if this stays WARN, check the ${harness} hook wiring above.` };
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
2929
3078
|
// @implements A-SPEC-769.19
|
|
2930
3079
|
/**
|
|
2931
3080
|
* Codex runs the Holmes PreToolUse gate here but no Holmes Stop gate: Codex sessions end without the constitution
|
package/dist/holmes/cli/index.js
CHANGED
|
@@ -37,7 +37,7 @@ exports.isBrokenPipe = void 0;
|
|
|
37
37
|
exports.packageRoot = packageRoot;
|
|
38
38
|
exports.main = main;
|
|
39
39
|
exports.installPipeGuard = installPipeGuard;
|
|
40
|
-
// @implements A-SPEC-704, A-SPEC-709, A-SPEC-734,
|
|
40
|
+
// @implements A-SPEC-704, A-SPEC-773, A-SPEC-770.11,A-SPEC-709, A-SPEC-734,A-SPEC-751, A-SPEC-752, A-SPEC-772.4
|
|
41
41
|
// @implements A-SPEC-549.2
|
|
42
42
|
// @implements A-SPEC-591, A-SPEC-626
|
|
43
43
|
const cli_execution_1 = require("./cli-execution");
|
|
@@ -85,6 +85,8 @@ const KNOWN_FLAGS = {
|
|
|
85
85
|
doctor: ['help', 'target', 'json', 'agent', 'registry'],
|
|
86
86
|
// @implements A-SPEC-702 — a statement, not a gate: how many source files trace to an approved spec.
|
|
87
87
|
attest: ['help', 'target', 'exclude', 'json', 'badge', 'readme'],
|
|
88
|
+
// @implements A-SPEC-773 — the Holmes scratch root an agent may clean up on its own.
|
|
89
|
+
scratch: ['help', 'new'],
|
|
88
90
|
skills: ['help', 'target'],
|
|
89
91
|
ci: ['help', 'target', 'specs-dir', 'json'],
|
|
90
92
|
serve: ['help', 'target', 'port'],
|
|
@@ -129,6 +131,8 @@ class UnknownFlagError extends Error {
|
|
|
129
131
|
// A-SPEC-251.1 (round 26): `yes` — `upgrade --yes` was refused as "--yes requires a value", so the non-interactive
|
|
130
132
|
// upgrade its own guidance names could not run (measured).
|
|
131
133
|
const BOOLEAN_FLAGS = new Set(['badge', 'readme', 'help', 'dry-run', 'no-mcp', 'remove', 'force', 'json', 'list', 'status', 'watch', 'autonomy', 'no-autonomy', 'yes']); // A-SPEC-650: --status
|
|
134
|
+
/** @implements A-SPEC-770.11 — value flags whose value may be omitted; the handler supplies the default. */
|
|
135
|
+
const OPTIONAL_VALUE_FLAGS = new Set(['refusals']);
|
|
132
136
|
/** @implements A-SPEC-771.1 — value flags that may be given more than once. */
|
|
133
137
|
const REPEATABLE_FLAGS = new Set(['limit']);
|
|
134
138
|
function parseFlags(argv, known) {
|
|
@@ -273,6 +277,9 @@ const USAGE = `holmes-kit — deterministic ASE governance for a project
|
|
|
273
277
|
--target <dir> also verify that target's wiring points at this install
|
|
274
278
|
--json machine-readable output
|
|
275
279
|
|
|
280
|
+
holmes-kit scratch [--new <label>]
|
|
281
|
+
print the Holmes scratch root, or make a fresh directory under it; the gate lets
|
|
282
|
+
an agent rm -rf such a directory by its absolute path in every harness
|
|
276
283
|
holmes-kit attest [flags] say how many source files trace to an APPROVED spec (a statement, not a gate)
|
|
277
284
|
--target <dir> the project to measure (default: current directory)
|
|
278
285
|
--exclude <a,b> path prefixes that are not this project's source (vendored trees); echoed in the output
|
|
@@ -322,6 +329,10 @@ async function main(argv) {
|
|
|
322
329
|
for (const [key, v] of Object.entries(flags)) {
|
|
323
330
|
// `--target` (true) AND `--target=` ('') both point at nothing — an empty inline value
|
|
324
331
|
// resolved to CWD and wired it silently (round-5 HIGH).
|
|
332
|
+
// @implements A-SPEC-770.11 — an optional-value flag defaults where it is read (`--refusals` → 20 rows): the
|
|
333
|
+
// `approve --refusals --target <root>` every refusal prints exited 2 here (measured 2026-10-17).
|
|
334
|
+
if (OPTIONAL_VALUE_FLAGS.has(key) && v === true)
|
|
335
|
+
continue;
|
|
325
336
|
if (!BOOLEAN_FLAGS.has(key) && (v === true || (typeof v === 'string' && v.trim() === ''))) {
|
|
326
337
|
process.stderr.write(`--${key} requires a value\n\n${USAGE}`);
|
|
327
338
|
return 2;
|
|
@@ -466,6 +477,11 @@ async function main(argv) {
|
|
|
466
477
|
}
|
|
467
478
|
// @implements A-SPEC-702 — reads one scan and the spec store; writes only the badge and the README's
|
|
468
479
|
// marker region, and only when asked. The numbers never change the exit code.
|
|
480
|
+
// @implements A-SPEC-773
|
|
481
|
+
if (cmd === 'scratch') {
|
|
482
|
+
const { runScratch } = require('./scratch');
|
|
483
|
+
return runScratch({ label: typeof flags.new === 'string' ? flags.new : undefined }, { stdout: (t) => process.stdout.write(t), stderr: (t) => process.stderr.write(t) });
|
|
484
|
+
}
|
|
469
485
|
if (cmd === 'attest') {
|
|
470
486
|
const { runAttest } = require('./attest');
|
|
471
487
|
const target = typeof flags.target === 'string' ? path.resolve(flags.target) : process.cwd();
|
|
@@ -1297,6 +1313,12 @@ async function main(argv) {
|
|
|
1297
1313
|
remove: flags.remove === true,
|
|
1298
1314
|
approval: readApproval(),
|
|
1299
1315
|
mcpLauncher,
|
|
1316
|
+
// @implements A-SPEC-772.4 — doctor's Codex hook reading for init's Codex line (init cannot import doctor).
|
|
1317
|
+
codexHookReading: (target, codexConfigPath) => {
|
|
1318
|
+
const { stopHookTimeoutCheck } = require('./doctor');
|
|
1319
|
+
const reading = { codexPre: false, codexStop: false, dormant: [], untrusted: [] };
|
|
1320
|
+
return { check: stopHookTimeoutCheck(target, { ...(codexConfigPath ? { codexConfigPath } : {}), codexGate: reading }), reading };
|
|
1321
|
+
},
|
|
1300
1322
|
};
|
|
1301
1323
|
const res = (0, init_1.runInit)(opts);
|
|
1302
1324
|
// @implements A-SPEC-251.2 (round 44) — a message quoting a workspace file is escaped (an entry named with ESC and BEL
|
|
@@ -48,6 +48,30 @@ export interface InitOptions {
|
|
|
48
48
|
autonomyInteractive?: boolean;
|
|
49
49
|
/** @implements A-SPEC-752.8 — test override for the operator runtime registry whose receipt names owned wiring. */
|
|
50
50
|
runtimeRegistryPath?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @implements A-SPEC-772.2 — doctor's reading of the Codex hooks (trust, switch-off, Stop timeout), passed in by the
|
|
53
|
+
* CLI: doctor imports init, so init must not import doctor (no import cycles, A-SPEC-574.3).
|
|
54
|
+
*/
|
|
55
|
+
codexHookReading?: (target: string, codexConfigPath?: string) => CodexHookReading;
|
|
56
|
+
}
|
|
57
|
+
export interface CodexHookReading {
|
|
58
|
+
check: {
|
|
59
|
+
level: string;
|
|
60
|
+
detail: string;
|
|
61
|
+
} | null;
|
|
62
|
+
reading: {
|
|
63
|
+
codexPre: boolean;
|
|
64
|
+
codexStop: boolean;
|
|
65
|
+
dormant: {
|
|
66
|
+
file: string;
|
|
67
|
+
timeout: number | null;
|
|
68
|
+
}[];
|
|
69
|
+
untrusted: string[];
|
|
70
|
+
/** @implements A-SPEC-772.5 */ shortStops?: {
|
|
71
|
+
file: string;
|
|
72
|
+
runs: boolean;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
51
75
|
}
|
|
52
76
|
export interface FileChange {
|
|
53
77
|
path: string;
|
package/dist/holmes/cli/init.js
CHANGED
|
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.settingsPathOf = exports.MATCHERS = exports.SERVER_NAME = void 0;
|
|
37
37
|
exports.buildHookPlan = buildHookPlan;
|
|
38
38
|
exports.runInit = runInit;
|
|
39
|
-
// @implements A-SPEC-727, A-SPEC-724, A-SPEC-721, A-SPEC-738, A-SPEC-752.8
|
|
39
|
+
// @implements A-SPEC-727, A-SPEC-724, A-SPEC-721, A-SPEC-738, A-SPEC-752.8, A-SPEC-772.2, A-SPEC-772.4, A-SPEC-772.5, A-SPEC-772.6
|
|
40
40
|
// @implements A-SPEC-709
|
|
41
41
|
// @implements A-SPEC-769.11
|
|
42
42
|
// @implements A-SPEC-340
|
|
@@ -1180,9 +1180,11 @@ function runInitUnguarded(opts) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
if (leftOwned.length > 0) {
|
|
1182
1182
|
const names = leftOwned.map((l) => l.path);
|
|
1183
|
-
|
|
1183
|
+
// @implements A-SPEC-772.6 — also wherever CODEX_HOME puts the user-level files (not only a `.codex` folder).
|
|
1184
|
+
const codexLeft = names.some((p) => /[\\/]\.codex[\\/]/.test(p) || p === (opts.codexConfigPath ?? (0, codex_toml_1.defaultCodexConfigPath)()) || p === (opts.codexHooksPath ?? (0, codex_hooks_1.defaultCodexHooksPath)()));
|
|
1185
|
+
// @implements A-SPEC-772.6 — the dry run's "would wire … the user-level gate hooks" is a claim about those files too.
|
|
1184
1186
|
const claims = (m) => (names.some((p) => m.includes(p)) && /wired|active|repaired|written/.test(m))
|
|
1185
|
-
|| (codexLeft && /pre-tool gate runs from the user-level Codex hooks file|codex: the gate is enforced \(hooks wired\)|codex: tools and instructions wired/.test(m));
|
|
1187
|
+
|| (codexLeft && /pre-tool gate runs from the user-level Codex hooks file|codex: the gate is enforced \(hooks wired\)|codex: tools and instructions wired|codex: would wire .*user-level gate hooks/.test(m));
|
|
1186
1188
|
for (let i = messages.length - 1; i >= 0; i--)
|
|
1187
1189
|
if (claims(messages[i]))
|
|
1188
1190
|
messages.splice(i, 1);
|
|
@@ -1191,6 +1193,10 @@ function runInitUnguarded(opts) {
|
|
|
1191
1193
|
? `${l.path}: left as it is — owned by the operator runtime registry. Preview a change to it with: holmes-kit runtime-binding setup --dry-run`
|
|
1192
1194
|
: `${l.path}: left as it is — owned by the operator runtime registry, but the registry's receipt and the file disagree. Inspect with: holmes-kit runtime-binding status, then preview with: holmes-kit runtime-binding setup --dry-run`);
|
|
1193
1195
|
}
|
|
1196
|
+
// @implements A-SPEC-772.2 — the withdrawn Codex claim is replaced by what is known, never by "enforced".
|
|
1197
|
+
// @implements A-SPEC-772.6 — not when removing: the line describes a wiring the run takes away.
|
|
1198
|
+
if (codexLeft && !opts.remove && (opts.agents ?? []).includes('codex'))
|
|
1199
|
+
messages.push(...registryCodexLines(opts));
|
|
1194
1200
|
}
|
|
1195
1201
|
}
|
|
1196
1202
|
// @implements A-SPEC-251.1 (round 27) — no write, removal or link goes through a link the repository carries out of the
|
|
@@ -1359,3 +1365,49 @@ function runInitUnguarded(opts) {
|
|
|
1359
1365
|
}
|
|
1360
1366
|
return { ok: true, exitCode: 0, messages, changes, removals };
|
|
1361
1367
|
}
|
|
1368
|
+
/**
|
|
1369
|
+
* @implements A-SPEC-772.2 — what init can say about Codex when the operator registry owns the user-level Codex files:
|
|
1370
|
+
* the routing the dispatcher selects and the trust state of the routed gates (doctor's reading), plus the operator act
|
|
1371
|
+
* when a running Codex Stop keeps a timeout below 75 s. Measured 2026-10-17: init said nothing about Codex here, and the
|
|
1372
|
+
* registry-owned Stop timeout was 30 s.
|
|
1373
|
+
*/
|
|
1374
|
+
function registryCodexLines(opts) {
|
|
1375
|
+
let routing;
|
|
1376
|
+
try {
|
|
1377
|
+
const s = (0, runtime_binding_1.runtimeBindingStatus)(opts.runtimeRegistryPath ?? (0, runtime_binding_1.defaultRuntimeRegistry)(), opts.target).selection;
|
|
1378
|
+
routing = `routed by the operator registry (${s.mode}, build ${s.buildId})`;
|
|
1379
|
+
}
|
|
1380
|
+
catch (e) {
|
|
1381
|
+
routing = `routing unknown: ${(0, codex_oracle_1.clipText)(e.message, 300)}`;
|
|
1382
|
+
}
|
|
1383
|
+
const lines = [];
|
|
1384
|
+
let gates = 'hook trust not read';
|
|
1385
|
+
try {
|
|
1386
|
+
const read = opts.codexHookReading?.(opts.target, opts.codexConfigPath);
|
|
1387
|
+
const check = read?.check ?? null;
|
|
1388
|
+
const reading = read?.reading;
|
|
1389
|
+
if (check !== null && reading !== undefined) {
|
|
1390
|
+
const pre = reading.codexPre ? 'PreToolUse gate trusted' : 'PreToolUse gate not trusted or switched off — trust it with /hooks';
|
|
1391
|
+
const stop = reading.codexStop ? 'Stop gate trusted'
|
|
1392
|
+
: reading.untrusted.length ? 'Stop gate wired but not yet trusted — /hooks'
|
|
1393
|
+
: reading.dormant.length ? 'Stop gate switched off' : 'no Stop gate';
|
|
1394
|
+
gates = `${pre}, ${stop}`;
|
|
1395
|
+
const hooksFile = opts.codexHooksPath ?? (0, codex_hooks_1.defaultCodexHooksPath)();
|
|
1396
|
+
// @implements A-SPEC-772.5 — read the short Stops themselves, not the row's level: a RUNNING one is FAIL (772.3).
|
|
1397
|
+
const short = (reading.shortStops ?? []).find((s) => s.file === hooksFile);
|
|
1398
|
+
if (short !== undefined) {
|
|
1399
|
+
lines.push(`${hooksFile}: Codex Stop hook timeout below 75 s — ${short.runs ? 'Codex can kill the Stop before its 60 s deadline answers' : 'it will be killed before its 60 s deadline answers once you trust it'}. Operator: holmes-kit runtime-binding setup (rewrites it at 75 s), then trust it once with /hooks.`);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
catch { /* the reading is advisory; the routing line still stands */ }
|
|
1404
|
+
// @implements A-SPEC-772.6 — Codex does not load the hooks of a project it marks untrusted.
|
|
1405
|
+
let trust = '';
|
|
1406
|
+
try {
|
|
1407
|
+
const key = (0, runtime_binding_1.codexProjectUntrusted)(opts.target, opts.codexConfigPath ?? (0, codex_toml_1.defaultCodexConfigPath)());
|
|
1408
|
+
if (key !== null)
|
|
1409
|
+
trust = `; Codex marks ${key} untrusted — project hooks do not load`;
|
|
1410
|
+
}
|
|
1411
|
+
catch { /* advisory */ }
|
|
1412
|
+
return [`codex: ${routing} — ${gates}${trust}; live activation unverified (workspace_preflight with harness codex reports observations).`, ...lines];
|
|
1413
|
+
}
|
|
@@ -35,8 +35,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.runtimePlanDigest = runtimePlanDigest;
|
|
37
37
|
exports.applyApprovedRuntimePlan = applyApprovedRuntimePlan;
|
|
38
|
-
// @implements A-SPEC-752, A-SPEC-752.14
|
|
38
|
+
// @implements A-SPEC-752, A-SPEC-752.14, A-SPEC-770.3, A-SPEC-770.6
|
|
39
39
|
const path = __importStar(require("node:path"));
|
|
40
|
+
const npx_bin_1 = require("../project/npx-bin");
|
|
40
41
|
const node_crypto_1 = require("node:crypto");
|
|
41
42
|
const risk_gate_1 = require("../guardrail/risk-gate");
|
|
42
43
|
const approval_grants_1 = require("../governance/approval-grants");
|
|
@@ -82,7 +83,7 @@ function applyApprovedRuntimePlan(root, subject, envApproval, check, apply, appr
|
|
|
82
83
|
const id = (0, approval_queue_1.approvalRequestId)(action.kind, target);
|
|
83
84
|
if (result.reason !== 'written' && result.reason !== 'duplicate')
|
|
84
85
|
throw new Error(`Cannot queue governance-wiring approval: ${result.reason}; nothing installed`);
|
|
85
|
-
throw new Error(`governance-wiring approval required for plan ${subject}; request ${id}. In ${approvalRoot === root ? 'this workspace' : `the workspace ${approvalRoot}`} run
|
|
86
|
+
throw new Error(`governance-wiring approval required for plan ${subject}; request ${id}. In ${approvalRoot === root ? 'this workspace' : `the workspace ${approvalRoot}`} run ${(0, npx_bin_1.holmesKitCommand)(approvalRoot)} approve --list, then ${(0, npx_bin_1.holmesKitCommand)(approvalRoot)} approve --grant ${id} and retry the same runtime-binding command. If an old decision remains, revoke it and retry to request the current plan.`);
|
|
86
87
|
};
|
|
87
88
|
check();
|
|
88
89
|
if (!resolve())
|
|
@@ -25,6 +25,11 @@ export declare function runtimeHookCommand(registryPath: string, harness: Runtim
|
|
|
25
25
|
* A list of keys to keep missed ones that switch Holmes off, so the view names what it drops (A-SPEC-752.6).
|
|
26
26
|
*/
|
|
27
27
|
export declare function wiringViewOf(file: string, content: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @implements A-SPEC-772.6 — the `projects` key that marks `target` (or a directory above it) untrusted in a Codex
|
|
30
|
+
* config, or null. Codex does not load an untrusted project's hooks.
|
|
31
|
+
*/
|
|
32
|
+
export declare function codexProjectUntrusted(target: string, configPath: string): string | null;
|
|
28
33
|
/**
|
|
29
34
|
* @implements A-SPEC-752.8 — whether the installation receipt beside the operator registry lists `file`, and whether the
|
|
30
35
|
* file still matches it. Measured 2026-10-04: init rewrote the user-level Codex files a setup plan had written, because
|
|
@@ -60,7 +65,11 @@ export declare function runtimeBindingStatus(registryPath: string, workspace: st
|
|
|
60
65
|
}[];
|
|
61
66
|
duplicateRoutes: DuplicateRoute[];
|
|
62
67
|
router: "changed" | "intact";
|
|
63
|
-
|
|
68
|
+
routerOutdated: string[];
|
|
69
|
+
activation: "observed" | "unverified";
|
|
70
|
+
observed: Record<string, string>;
|
|
71
|
+
observedUnrouted: Record<string, string>;
|
|
72
|
+
observedOther: Record<string, string>;
|
|
64
73
|
};
|
|
65
74
|
export declare function runRuntimeBinding(opts: RuntimeBindingOptions): unknown;
|
|
66
75
|
/**
|