@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.
@@ -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
- const { ELICIT_TIMEOUT_MS, buildElicitRequest, classifyElicitError, interpretElicitResult } = require('./elicit-approval');
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
- const r = await server.elicitInput(buildElicitRequest(req), { timeout: ELICIT_TIMEOUT_MS });
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 (e) {
31
- return classifyElicitError(e);
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.7",
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",