@holmes-lab/holmes-kit 0.3.7 → 0.3.9
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 +62 -0
- package/bin/holmes-pre-push.js +20 -0
- package/dist/.build-id +1 -1
- package/dist/holmes/cli/approve-watch.d.ts +32 -0
- package/dist/holmes/cli/approve-watch.js +104 -1
- package/dist/holmes/cli/doctor.d.ts +6 -0
- package/dist/holmes/cli/doctor.js +37 -0
- package/dist/holmes/cli/index.js +52 -5
- package/dist/holmes/cli/os-notify.d.ts +19 -0
- package/dist/holmes/cli/os-notify.js +48 -0
- package/dist/holmes/governance/push-gate-runner.d.ts +15 -0
- package/dist/holmes/governance/push-gate-runner.js +101 -0
- package/dist/holmes/governance/push-gate.d.ts +39 -0
- package/dist/holmes/governance/push-gate.js +68 -0
- package/dist/holmes/guardrail/scope-judgment.d.ts +54 -0
- package/dist/holmes/guardrail/scope-judgment.js +106 -0
- package/dist/holmes/hooks/pre-tool-use.d.ts +1 -0
- package/dist/holmes/hooks/pre-tool-use.js +55 -33
- package/dist/holmes/mcp/elicit-approval.d.ts +52 -19
- package/dist/holmes/mcp/elicit-approval.js +124 -16
- package/dist/holmes/mcp/server.js +8 -6
- package/package.json +1 -1
|
@@ -18,17 +18,19 @@ const store = new spec_store_1.LocalMarkdownRepository(process.env.HOLMES_SPECS
|
|
|
18
18
|
// failure — no capability, transport error, malformed answer — folds to `silent`, whose refusal
|
|
19
19
|
// stays byte-identical to the pre-elicitation one. Diagnostics, if ever needed, go to stderr only
|
|
20
20
|
// (stdout is the protocol channel).
|
|
21
|
-
|
|
21
|
+
// @implements A-SPEC-497.3 — the wiring shrinks to ONE impure seam (rawElicit): the two-stage
|
|
22
|
+
// form, the finite re-display and the per-path deadline all live in the pure runElicitFlow, so
|
|
23
|
+
// every branch is test-driven without a client. runElicitFlow classifies its own errors; the outer
|
|
24
|
+
// catch is a belt for faults outside the flow (capability probe, transport construction).
|
|
25
|
+
const { runElicitFlow } = require('./elicit-approval');
|
|
22
26
|
const elicit = async (req) => {
|
|
23
27
|
try {
|
|
24
28
|
if (!server.getClientCapabilities()?.elicitation)
|
|
25
29
|
return { kind: 'silent' };
|
|
26
|
-
|
|
27
|
-
const d = interpretElicitResult(r);
|
|
28
|
-
return d === null ? { kind: 'silent' } : { kind: 'answered', decision: d };
|
|
30
|
+
return await runElicitFlow((form, timeoutMs) => server.elicitInput(form, { timeout: timeoutMs }), req);
|
|
29
31
|
}
|
|
30
|
-
catch
|
|
31
|
-
return
|
|
32
|
+
catch {
|
|
33
|
+
return { kind: 'silent' };
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
const handlers = (0, handlers_1.makeHandlers)(store, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"//": "@implements A-SPEC-209",
|
|
3
3
|
"name": "@holmes-lab/holmes-kit",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.9",
|
|
5
5
|
"description": "Holmes-Kit — deterministic Agentic Software Engineering (ASE) harness with causal traceability (spec chain + D-CPG + RTM + phase guardrail)",
|
|
6
6
|
"main": "dist/holmes/mcp/server.js",
|
|
7
7
|
"types": "dist/holmes/mcp/server.d.ts",
|