@konneal/engine 0.2.123 → 0.2.124
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/dist/{ask-2BYMHPT3.js → ask-XAI5SVJ7.js} +3 -3
- package/dist/{certificates-TDPN7SA2.js → certificates-TMYS7XLD.js} +1 -1
- package/dist/{chunk-IOT75KLU.js → chunk-GBGRHXRU.js} +3 -2
- package/dist/{chunk-3L6TJAS6.js → chunk-J6LBR6GI.js} +1 -1
- package/dist/{chunk-U6FXEUZP.js → chunk-ZO6MMKGD.js} +2 -2
- package/dist/{tools-EI6M4AY2.js → tools-O4JYGVSR.js} +1 -1
- package/dist/worker_public/src/index.js +5 -5
- package/package.json +1 -1
- package/workers/worker_public/src/certificates.ts +3 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleAsk
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZO6MMKGD.js";
|
|
4
|
+
import "./chunk-J6LBR6GI.js";
|
|
5
5
|
import "./chunk-2JUWER2A.js";
|
|
6
6
|
import "./chunk-TH5XGPD5.js";
|
|
7
7
|
import "./chunk-DJ65EF5G.js";
|
|
8
8
|
import "./chunk-A4A26BCV.js";
|
|
9
9
|
import "./chunk-4NXH5ZI6.js";
|
|
10
10
|
import "./chunk-VT7DR6NQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GBGRHXRU.js";
|
|
12
12
|
import "./chunk-3FYJM7LH.js";
|
|
13
13
|
export {
|
|
14
14
|
handleAsk
|
|
@@ -35,9 +35,10 @@ function aggregateNote(agg) {
|
|
|
35
35
|
const latest = agg.latest ? `The latest certificate in the snapshot is ${agg.latest.num} (holder ${agg.latest.holder}, model "${agg.latest.model}"${agg.latest.year ? `, issued ${agg.latest.year}` : ""}, status ${agg.latest.status}).` : "No certificate rows are present in the snapshot.";
|
|
36
36
|
const link = agg.latest?.pdf_key ? ` Its document: https://www.oimlsmart.org/cert-pdf/${agg.latest.pdf_key}` : "";
|
|
37
37
|
return [
|
|
38
|
-
`
|
|
38
|
+
`CERTIFICATE REGISTER \u2014 THIS NOTE ANSWERS THE QUESTION. Answer from THIS note; do not refuse for want of passages (the retrieval passages are irrelevant for register questions).`,
|
|
39
|
+
`The ${agg.family} family holds ${agg.count} certificate${agg.count === 1 ? "" : "s"} (${agg.valid} valid${agg.suspended ? `, ${agg.suspended} suspended` : ""}) \u2014 computed over the register snapshot; state these numbers verbatim.`,
|
|
39
40
|
latest + link,
|
|
40
|
-
"Certificates are issued per RECOMMENDATION FAMILY \u2014 the register carries no edition dimension, so an edition named in the question (e.g. 2021) does not narrow it
|
|
41
|
+
"Certificates are issued per RECOMMENDATION FAMILY \u2014 the register carries no edition dimension, so an edition named in the question (e.g. 2021) does not narrow it; say so when the question names an edition. Qualify that the register is a snapshot, and cite the register."
|
|
41
42
|
].join("\n");
|
|
42
43
|
}
|
|
43
44
|
function aggregateBlock(agg) {
|
|
@@ -1181,7 +1181,7 @@ var certificatesSearch = {
|
|
|
1181
1181
|
handler: async (env, args) => {
|
|
1182
1182
|
const query = String(args?.query ?? "").trim().slice(0, 160);
|
|
1183
1183
|
if (!query) return null;
|
|
1184
|
-
const { searchRegister, registerNote, certificateLinks } = await import("./certificates-
|
|
1184
|
+
const { searchRegister, registerNote, certificateLinks } = await import("./certificates-TMYS7XLD.js");
|
|
1185
1185
|
const reg = await searchRegister(env.DB, query, true);
|
|
1186
1186
|
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.`;
|
|
1187
1187
|
return { name: "certificates.search", query, output };
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
tableRetyped,
|
|
23
23
|
toolNote,
|
|
24
24
|
verdictNote
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-J6LBR6GI.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_CONTEXT,
|
|
28
28
|
STAGE_NAMES,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
registerAggregateIntent,
|
|
109
109
|
registerNote,
|
|
110
110
|
searchRegister
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-GBGRHXRU.js";
|
|
112
112
|
import {
|
|
113
113
|
P
|
|
114
114
|
} from "./chunk-3FYJM7LH.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
handleMemories,
|
|
5
5
|
scoreFaithfulness,
|
|
6
6
|
scoreJudge
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-ZO6MMKGD.js";
|
|
8
8
|
import {
|
|
9
9
|
TOOLS_REGISTRY,
|
|
10
10
|
bindModelNode,
|
|
11
11
|
modelGroundingBlock
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-J6LBR6GI.js";
|
|
13
13
|
import {
|
|
14
14
|
handleSearch
|
|
15
15
|
} from "../../chunk-P6IRYZLL.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
sha256Hex,
|
|
69
69
|
today
|
|
70
70
|
} from "../../chunk-VT7DR6NQ.js";
|
|
71
|
-
import "../../chunk-
|
|
71
|
+
import "../../chunk-GBGRHXRU.js";
|
|
72
72
|
import {
|
|
73
73
|
P,
|
|
74
74
|
setProfile
|
|
@@ -1043,13 +1043,13 @@ async function callToolOnce(env, ctx, _req, tier, key, name, args, t0) {
|
|
|
1043
1043
|
// stream:false forces the JSON lane (anon defaults to SSE)
|
|
1044
1044
|
body: JSON.stringify({ ...args, stream: false })
|
|
1045
1045
|
});
|
|
1046
|
-
const { runTool, TOOLS_REGISTRY: TOOLS_REGISTRY2 } = await import("../../tools-
|
|
1046
|
+
const { runTool, TOOLS_REGISTRY: TOOLS_REGISTRY2 } = await import("../../tools-O4JYGVSR.js");
|
|
1047
1047
|
let payload;
|
|
1048
1048
|
if (TOOLS_REGISTRY2.some((t) => t.name === name && t.audiences.includes("mcp"))) {
|
|
1049
1049
|
const r = await runTool({ ...env, DB: env.DB }, { name, args }, "mcp");
|
|
1050
1050
|
payload = r ? { tool: r.name, query: r.query, result: r.output } : { error: { message: `tool ${name} returned nothing for the given arguments` } };
|
|
1051
1051
|
} else {
|
|
1052
|
-
const res = name === "ask" ? await (await import("../../ask-
|
|
1052
|
+
const res = name === "ask" ? await (await import("../../ask-XAI5SVJ7.js")).handleAsk(env, ctx, inner, tier, key) : await (await import("../../search-OVUHVV35.js")).handleSearch(env, ctx, inner, tier, key);
|
|
1053
1053
|
payload = await res.json().catch(() => ({ error: { message: "tool transport failed", status: res.status } }));
|
|
1054
1054
|
}
|
|
1055
1055
|
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.
|
|
30
|
+
"version": "0.2.124",
|
|
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",
|
|
@@ -89,9 +89,10 @@ export function aggregateNote(agg: RegisterAggregate): string {
|
|
|
89
89
|
? ` Its document: https://www.oimlsmart.org/cert-pdf/${agg.latest.pdf_key}`
|
|
90
90
|
: "";
|
|
91
91
|
return [
|
|
92
|
-
`
|
|
92
|
+
`CERTIFICATE REGISTER — THIS NOTE ANSWERS THE QUESTION. Answer from THIS note; do not refuse for want of passages (the retrieval passages are irrelevant for register questions).`,
|
|
93
|
+
`The ${agg.family} family holds ${agg.count} certificate${agg.count === 1 ? "" : "s"} (${agg.valid} valid${agg.suspended ? `, ${agg.suspended} suspended` : ""}) — computed over the register snapshot; state these numbers verbatim.`,
|
|
93
94
|
latest + link,
|
|
94
|
-
"Certificates are issued per RECOMMENDATION FAMILY — the register carries no edition dimension, so an edition named in the question (e.g. 2021) does not narrow it
|
|
95
|
+
"Certificates are issued per RECOMMENDATION FAMILY — the register carries no edition dimension, so an edition named in the question (e.g. 2021) does not narrow it; say so when the question names an edition. Qualify that the register is a snapshot, and cite the register.",
|
|
95
96
|
].join("\n");
|
|
96
97
|
}
|
|
97
98
|
|