@konneal/engine 0.2.131 → 0.2.132

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,11 +1,11 @@
1
1
  import {
2
2
  handleAsk
3
- } from "./chunk-AIL7MJS3.js";
3
+ } from "./chunk-DNDQQYDT.js";
4
4
  import "./chunk-J6LBR6GI.js";
5
5
  import "./chunk-7AXXR7GD.js";
6
6
  import "./chunk-TH5XGPD5.js";
7
7
  import "./chunk-W7J5SFXJ.js";
8
- import "./chunk-A4A26BCV.js";
8
+ import "./chunk-26VW4ZXU.js";
9
9
  import "./chunk-4NXH5ZI6.js";
10
10
  import "./chunk-VT7DR6NQ.js";
11
11
  import "./chunk-GBGRHXRU.js";
@@ -24,7 +24,16 @@ function refusalPatterns(publisher) {
24
24
  // verb is the guard, a scope DISCUSSION inside a real answer
25
25
  // ("this exemption is outside the scope of R 60") never matches
26
26
  /\bI don[’']?t have (?:any )?information on [^.]{0,80}(?:that[’']?s|—)?\s*(?:general|common) knowledge\b/i,
27
- /\b(?:that[’']?s|this is) (?:just )?(?:general|common) knowledge[^.]{0,80}(?:outside|beyond|not covered)\b/i
27
+ /\b(?:that[’']?s|this is) (?:just )?(?:general|common) knowledge[^.]{0,80}(?:outside|beyond|not covered)\b/i,
28
+ // the redirect-only openers (2026-10-11 smoke): the model swaps the
29
+ // pinned sentence for a scope OFFER — "I'm happy to help with
30
+ // questions about OIML … instead." / "I can answer questions about
31
+ // OIML … — such as OIML B 20:2024 …". Anchored at the answer's
32
+ // start (a real answer never OPENS with the redirect — the
33
+ // redirect TAIL after content survives untouched), the publisher
34
+ // token profile-driven.
35
+ new RegExp(`^\\s*I(?:['\u2019]m| am) happy to help with questions about ${publisher}\\b[^\\n]{0,220}?\\binstead\\b`, "i"),
36
+ new RegExp(`^\\s*I can (?:answer|help with) questions about ${publisher}\\b[^\\n]{0,220}?\\bpublications\\b`, "i")
28
37
  ],
29
38
  // the misplaced-pin wall's subset: every pattern here carries a
30
39
  // first-person refusal verb ("I don't have information", "I can't
@@ -83,7 +83,7 @@ import {
83
83
  canonicalRefusal,
84
84
  exciseMisplacedPin,
85
85
  refusalAnswer
86
- } from "./chunk-A4A26BCV.js";
86
+ } from "./chunk-26VW4ZXU.js";
87
87
  import {
88
88
  entitlementScope,
89
89
  requestSalt,
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-7AXXR7GD.js";
5
5
  import "./chunk-TH5XGPD5.js";
6
6
  import "./chunk-W7J5SFXJ.js";
7
- import "./chunk-A4A26BCV.js";
7
+ import "./chunk-26VW4ZXU.js";
8
8
  import "./chunk-4NXH5ZI6.js";
9
9
  import "./chunk-VT7DR6NQ.js";
10
10
  import "./chunk-3FYJM7LH.js";
@@ -4,7 +4,7 @@ import {
4
4
  handleMemories,
5
5
  scoreFaithfulness,
6
6
  scoreJudge
7
- } from "../../chunk-AIL7MJS3.js";
7
+ } from "../../chunk-DNDQQYDT.js";
8
8
  import {
9
9
  TOOLS_REGISTRY,
10
10
  bindModelNode,
@@ -54,7 +54,7 @@ import {
54
54
  } from "../../chunk-W7J5SFXJ.js";
55
55
  import {
56
56
  canonicalRefusal
57
- } from "../../chunk-A4A26BCV.js";
57
+ } from "../../chunk-26VW4ZXU.js";
58
58
  import {
59
59
  entitlementScope,
60
60
  standardKeysFrom
@@ -1052,7 +1052,7 @@ async function callToolOnce(env, ctx, _req, tier, key, name, args, t0) {
1052
1052
  const r = await runTool({ ...env, DB: env.DB }, { name, args }, "mcp");
1053
1053
  payload = r ? { tool: r.name, query: r.query, result: r.output } : { error: { message: `tool ${name} returned nothing for the given arguments` } };
1054
1054
  } else {
1055
- const res = name === "ask" ? await (await import("../../ask-5D2TYRXH.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-6LP755Q7.js")).handleSearch(env, ctx, inner, tier, key);
1055
+ const res = name === "ask" ? await (await import("../../ask-XAJDCNFU.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-544LVPGG.js")).handleSearch(env, ctx, inner, tier, key);
1056
1056
  payload = await res.json().catch(() => ({ error: { message: "tool transport failed", status: res.status } }));
1057
1057
  }
1058
1058
  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 });
@@ -2,7 +2,7 @@ import {
2
2
  canonicalRefusal,
3
3
  exciseMisplacedPin,
4
4
  refusalAnswer
5
- } from "../../chunk-A4A26BCV.js";
5
+ } from "../../chunk-26VW4ZXU.js";
6
6
  import "../../chunk-3FYJM7LH.js";
7
7
  export {
8
8
  canonicalRefusal,
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.131",
30
+ "version": "0.2.132",
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",
@@ -29,6 +29,15 @@ function refusalPatterns(publisher: string): { variant: RegExp; drift: RegExp[];
29
29
  // ("this exemption is outside the scope of R 60") never matches
30
30
  /\bI don[’']?t have (?:any )?information on [^.]{0,80}(?:that[’']?s|—)?\s*(?:general|common) knowledge\b/i,
31
31
  /\b(?:that[’']?s|this is) (?:just )?(?:general|common) knowledge[^.]{0,80}(?:outside|beyond|not covered)\b/i,
32
+ // the redirect-only openers (2026-10-11 smoke): the model swaps the
33
+ // pinned sentence for a scope OFFER — "I'm happy to help with
34
+ // questions about OIML … instead." / "I can answer questions about
35
+ // OIML … — such as OIML B 20:2024 …". Anchored at the answer's
36
+ // start (a real answer never OPENS with the redirect — the
37
+ // redirect TAIL after content survives untouched), the publisher
38
+ // token profile-driven.
39
+ new RegExp(`^\\s*I(?:['’]m| am) happy to help with questions about ${publisher}\\b[^\\n]{0,220}?\\binstead\\b`, "i"),
40
+ new RegExp(`^\\s*I can (?:answer|help with) questions about ${publisher}\\b[^\\n]{0,220}?\\bpublications\\b`, "i"),
32
41
  ],
33
42
  // the misplaced-pin wall's subset: every pattern here carries a
34
43
  // first-person refusal verb ("I don't have information", "I can't