@konneal/engine 0.2.170 → 0.2.171

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  handleAsk
3
- } from "./chunk-PO3UBDNZ.js";
3
+ } from "./chunk-KKJHJXQV.js";
4
4
  import "./chunk-ECOYO7EX.js";
5
5
  import "./chunk-QS6V53RO.js";
6
6
  import "./chunk-RZLEHCIA.js";
@@ -1590,7 +1590,11 @@ ${passages.map((p, i) => `[${i + 1}] ${p}`).join("\n")}
1590
1590
  List the DISTINCT requirements relevant to the question as JSON: {"mode":"check"|"list","requirements":[{"text":"...","clause":"..."}]} \u2014 "check" when the user's question or values ask whether requirements are MET; "list" when the user asks what the requirements ARE. Max ${THRESHOLDS.decisionsRequirementsMax}. Each requirement's clause = the clause anchor it comes from. If nothing qualifies, return {"mode":"list","requirements":[]}.`
1591
1591
  }
1592
1592
  ],
1593
- maxTokens: 1536,
1593
+ maxTokens: 3072,
1594
+ // the GLM law: the effort defaults to MAX when absent — an omitted
1595
+ // effort starved the derivation to empty (observed live: the pass
1596
+ // stood down silently on every fired question)
1597
+ effort: "low",
1594
1598
  temperature: 0
1595
1599
  });
1596
1600
  const { mode, requirements } = parseDerivation(derived.text, THRESHOLDS.decisionsRequirementsMax);
@@ -4,7 +4,7 @@ import {
4
4
  handleMemories,
5
5
  scoreFaithfulness,
6
6
  scoreJudge
7
- } from "../../chunk-PO3UBDNZ.js";
7
+ } from "../../chunk-KKJHJXQV.js";
8
8
  import "../../chunk-ECOYO7EX.js";
9
9
  import {
10
10
  TOOLS_REGISTRY,
@@ -1125,7 +1125,7 @@ async function callToolOnce(env, ctx, _req, tier, key, name, args, t0) {
1125
1125
  const r = await runTool({ ...env, DB: env.DB }, { name, args }, "mcp");
1126
1126
  payload = r ? { tool: r.name, query: r.query, result: r.output } : { error: { message: `tool ${name} returned nothing for the given arguments` } };
1127
1127
  } else {
1128
- const res = name === "ask" ? await (await import("../../ask-BKWQEMSY.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-RNCRT5BR.js")).handleSearch(env, ctx, inner, tier, key);
1128
+ const res = name === "ask" ? await (await import("../../ask-4T3E2Z6J.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-RNCRT5BR.js")).handleSearch(env, ctx, inner, tier, key);
1129
1129
  payload = await res.json().catch(() => ({ error: { message: "tool transport failed", status: res.status } }));
1130
1130
  }
1131
1131
  telemetry(env, ctx, tier, `mcp:${name}`, null, !payload?.error, JSON.stringify(payload).length, await sha256Hex(`${name}:${JSON.stringify(args ?? {})}`), void 0, void 0, { durationMs: Date.now() - t0 });
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "playwright": "^1.62.1",
28
28
  "yaml": "^2.9.1"
29
29
  },
30
- "version": "0.2.170",
30
+ "version": "0.2.171",
31
31
  "description": "The Konneal engine: the publisher-agnostic build pipeline and API plane for standards intelligence (retrieval, answer contract, verdicts, evaluation).",
32
32
  "license": "BSD-3-Clause",
33
33
  "type": "module",
@@ -91,7 +91,11 @@ export async function runDecisionPass(
91
91
  `Each requirement's clause = the clause anchor it comes from. If nothing qualifies, return {"mode":"list","requirements":[]}.`,
92
92
  },
93
93
  ],
94
- maxTokens: 1536,
94
+ maxTokens: 3072,
95
+ // the GLM law: the effort defaults to MAX when absent — an omitted
96
+ // effort starved the derivation to empty (observed live: the pass
97
+ // stood down silently on every fired question)
98
+ effort: "low",
95
99
  temperature: 0,
96
100
  });
97
101
  const { mode, requirements } = parseDerivation(derived.text, THRESHOLDS.decisionsRequirementsMax);