@konneal/engine 0.2.177 → 0.2.178

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,8 +1,8 @@
1
1
  import {
2
2
  handleAsk
3
- } from "./chunk-K4IEKILQ.js";
4
- import "./chunk-JKBU2IPM.js";
5
- import "./chunk-RO5LNSPH.js";
3
+ } from "./chunk-V2QW6EZB.js";
4
+ import "./chunk-IRCDOFP4.js";
5
+ import "./chunk-ROXOL4GF.js";
6
6
  import "./chunk-CLDMP5YH.js";
7
7
  import "./chunk-ZHT4456M.js";
8
8
  import "./chunk-D7MO4RVQ.js";
@@ -13,7 +13,7 @@ import {
13
13
  registerNote,
14
14
  registerTokens,
15
15
  searchRegister
16
- } from "./chunk-JKBU2IPM.js";
16
+ } from "./chunk-IRCDOFP4.js";
17
17
  import "./chunk-3FYJM7LH.js";
18
18
  export {
19
19
  aggregateBlock,
@@ -142,7 +142,7 @@ function registerTokens(query) {
142
142
  if (/^\d+$/.test(w) && w.length < 2) continue;
143
143
  if (!tokens.includes(w)) tokens.push(w);
144
144
  }
145
- return tokens.slice(0, 6);
145
+ return tokens.slice(0, 12);
146
146
  }
147
147
  function buildRegisterQuery(tokens) {
148
148
  const params = [];
@@ -1565,7 +1565,7 @@ var certificatesSearch = {
1565
1565
  handler: async (env, args) => {
1566
1566
  const query = String(args?.query ?? "").trim().slice(0, 160);
1567
1567
  if (!query) return null;
1568
- const { searchRegister, registerNote, certificateLinks } = await import("./certificates-QHFH2KLH.js");
1568
+ const { searchRegister, registerNote, certificateLinks } = await import("./certificates-V6KO2L6P.js");
1569
1569
  const reg = await searchRegister(env.DB, query, true);
1570
1570
  const output = reg?.rows?.length ? [registerNote(reg.rows), certificateLinks(reg.rows)].filter(Boolean).join("\n") : `No certificate was found for "${query}" in the certificates database (the register snapshot). State this as the search's result, with the searched string visible.`;
1571
1571
  return { name: "certificates.search", query, output };
@@ -8,7 +8,7 @@ import {
8
8
  registerBypassesCache,
9
9
  registerNote,
10
10
  searchRegister
11
- } from "./chunk-JKBU2IPM.js";
11
+ } from "./chunk-IRCDOFP4.js";
12
12
  import {
13
13
  TOOL_DECLARATION,
14
14
  bindConstraintByQuantities,
@@ -33,7 +33,7 @@ import {
33
33
  tableRetyped,
34
34
  toolNote,
35
35
  verdictNote
36
- } from "./chunk-RO5LNSPH.js";
36
+ } from "./chunk-ROXOL4GF.js";
37
37
  import {
38
38
  NO_CONTEXT,
39
39
  STAGE_NAMES,
@@ -4,7 +4,7 @@ import {
4
4
  parseToolCall,
5
5
  runTool,
6
6
  toolNote
7
- } from "./chunk-RO5LNSPH.js";
7
+ } from "./chunk-ROXOL4GF.js";
8
8
  import "./chunk-ZHT4456M.js";
9
9
  import "./chunk-FNQ7UOEB.js";
10
10
  import "./chunk-HWWJAJWM.js";
@@ -4,13 +4,13 @@ import {
4
4
  handleMemories,
5
5
  scoreFaithfulness,
6
6
  scoreJudge
7
- } from "../../chunk-K4IEKILQ.js";
8
- import "../../chunk-JKBU2IPM.js";
7
+ } from "../../chunk-V2QW6EZB.js";
8
+ import "../../chunk-IRCDOFP4.js";
9
9
  import {
10
10
  TOOLS_REGISTRY,
11
11
  bindModelNode,
12
12
  modelGroundingBlock
13
- } from "../../chunk-RO5LNSPH.js";
13
+ } from "../../chunk-ROXOL4GF.js";
14
14
  import {
15
15
  handleSearch
16
16
  } from "../../chunk-MUWO2EV6.js";
@@ -1175,13 +1175,13 @@ async function callToolOnce(env, ctx, _req, tier, key, name, args, t0) {
1175
1175
  // stream:false forces the JSON lane (anon defaults to SSE)
1176
1176
  body: JSON.stringify({ ...args, stream: false })
1177
1177
  });
1178
- const { runTool, TOOLS_REGISTRY: TOOLS_REGISTRY2 } = await import("../../tools-DKQZGSWK.js");
1178
+ const { runTool, TOOLS_REGISTRY: TOOLS_REGISTRY2 } = await import("../../tools-UCUNOJR4.js");
1179
1179
  let payload;
1180
1180
  if (TOOLS_REGISTRY2.some((t) => t.name === name && t.audiences.includes("mcp"))) {
1181
1181
  const r = await runTool({ ...env, DB: env.DB }, { name, args }, "mcp");
1182
1182
  payload = r ? { tool: r.name, query: r.query, result: r.output } : { error: { message: `tool ${name} returned nothing for the given arguments` } };
1183
1183
  } else {
1184
- const res = name === "ask" ? await (await import("../../ask-2UHDJPEU.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-KNPPTHMG.js")).handleSearch(env, ctx, inner, tier, key);
1184
+ const res = name === "ask" ? await (await import("../../ask-64HJTVPS.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-KNPPTHMG.js")).handleSearch(env, ctx, inner, tier, key);
1185
1185
  payload = await res.json().catch(() => ({ error: { message: "tool transport failed", status: res.status } }));
1186
1186
  }
1187
1187
  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.177",
30
+ "version": "0.2.178",
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",
@@ -189,7 +189,13 @@ export function registerTokens(query: string): string[] {
189
189
  if (/^\d+$/.test(w) && w.length < 2) continue;
190
190
  if (!tokens.includes(w)) tokens.push(w);
191
191
  }
192
- return tokens.slice(0, 6);
192
+ // the budget is 12, not 6: a long holder name consumed the six slots
193
+ // before the distinctive model token was ever consulted (the live
194
+ // probe: "Endress + Hauser GmbH + Co., KG Automatic level gauge -
195
+ // Type: NMR81 and NMR84" cut "NMR84" — the question's WHOLE POINT —
196
+ // at position 7). rankRegisterRows discounts holder-only rows, so the
197
+ // wider OR net costs nothing in note quality.
198
+ return tokens.slice(0, 12);
193
199
  }
194
200
 
195
201
  /** The register query for a token set. Numeric tokens (a model number