@konneal/engine 0.2.104 → 0.2.109

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.
Files changed (40) hide show
  1. package/dist/ablate.d.ts +31 -0
  2. package/dist/ask-EAKLN77G.js +15 -0
  3. package/dist/{chunk-25ECO5M7.js → chunk-2R7OVYAO.js} +377 -185
  4. package/dist/{chunk-U4ERFUOK.js → chunk-4NXH5ZI6.js} +1 -1
  5. package/dist/{chunk-DTW4UW2E.js → chunk-DJ65EF5G.js} +1 -1
  6. package/dist/{chunk-NCZHN6QW.js → chunk-G4KBK5XZ.js} +175 -22
  7. package/dist/{chunk-ANUHRJ4Z.js → chunk-G56TYXNN.js} +3 -3
  8. package/dist/{chunk-TFGJ6NYS.js → chunk-HAU5INEJ.js} +5 -5
  9. package/dist/{chunk-KNCRYAX3.js → chunk-TH5XGPD5.js} +1 -1
  10. package/dist/{chunk-BOAITSVV.js → chunk-VT7DR6NQ.js} +11 -1
  11. package/dist/config.d.ts +6 -0
  12. package/dist/openapi-types.d.ts +24 -0
  13. package/dist/prompts/doc-summary.md +1 -0
  14. package/dist/prompts/speculative-verify.md +9 -0
  15. package/dist/route.d.ts +29 -0
  16. package/dist/search-HKGN7F3O.js +13 -0
  17. package/dist/speculative.d.ts +9 -0
  18. package/dist/{tools-EXDADNWX.js → tools-WSWEGJVQ.js} +4 -4
  19. package/dist/worker_mcp/src/index.js +2 -2
  20. package/dist/worker_public/src/config.js +1 -1
  21. package/dist/worker_public/src/index.js +20 -16
  22. package/dist/worker_public/src/requestScope.js +2 -2
  23. package/docs/spec-pipeline.md +12 -1
  24. package/package.json +1 -1
  25. package/workers/worker_public/openapi.yaml +53 -0
  26. package/workers/worker_public/prompts/doc-summary.md +1 -0
  27. package/workers/worker_public/prompts/speculative-verify.md +9 -0
  28. package/workers/worker_public/src/ablate.ts +97 -0
  29. package/workers/worker_public/src/admin.ts +14 -6
  30. package/workers/worker_public/src/ask.ts +120 -16
  31. package/workers/worker_public/src/config.ts +10 -0
  32. package/workers/worker_public/src/pipeline.ts +5 -2
  33. package/workers/worker_public/src/route.ts +77 -0
  34. package/workers/worker_public/src/speculative.ts +39 -0
  35. package/workers/worker_public/src/stages/graphPpr.ts +189 -0
  36. package/workers/worker_public/src/stages/index.ts +19 -0
  37. package/workers/worker_public/src/stages/sectionDescent.ts +91 -7
  38. package/workers/worker_public/src/stages/types.ts +6 -0
  39. package/dist/ask-M3VRAIJB.js +0 -15
  40. package/dist/search-5SNP5CHL.js +0 -13
@@ -0,0 +1,31 @@
1
+ export interface AblateConfig {
2
+ /** Registry projection (names; projectStages applies them). Null/absent
3
+ * = the serving default (adaptive routing decides). */
4
+ stages: string[] | null;
5
+ /** Skip the verdict engine (machineVerdict + condition sets): the
6
+ * answer model narrates from passages alone. */
7
+ noVerdict: boolean;
8
+ /** Force a route: "fast" drops the expansion lanes, "deep" keeps the
9
+ * full registry, "adaptive" (the default) lets the router decide
10
+ * (TODO.sota/05). The grid measures the routes by forcing them. */
11
+ route: "fast" | "deep" | "adaptive";
12
+ /** Speculative draft-verify (TODO.sota/02 row 2): cheap drafts per
13
+ * diversified subset + one strong verifier. Off in serving until the
14
+ * gate promotes it; the grid arms it per ask. */
15
+ speculative: boolean;
16
+ }
17
+ export type AblateParse = {
18
+ ok: true;
19
+ config: AblateConfig | null;
20
+ } | {
21
+ ok: false;
22
+ status: number;
23
+ code: string;
24
+ message: string;
25
+ };
26
+ /** Parse and authorize an ablation configuration. Non-null config
27
+ * requires the admin token; a request that NAMES a configuration
28
+ * without the credential is 403 — never silently ignored, or a
29
+ * misconfigured runner would measure the full pipeline believing it
30
+ * measured its ablation. */
31
+ export declare function parseAblate(body: any, adminToken: string | undefined, presentedToken: string | null, knownStages: readonly string[]): AblateParse;
@@ -0,0 +1,15 @@
1
+ import {
2
+ handleAsk
3
+ } from "./chunk-G4KBK5XZ.js";
4
+ import "./chunk-G56TYXNN.js";
5
+ import "./chunk-2R7OVYAO.js";
6
+ import "./chunk-TH5XGPD5.js";
7
+ import "./chunk-DJ65EF5G.js";
8
+ import "./chunk-A3QHHUN5.js";
9
+ import "./chunk-4NXH5ZI6.js";
10
+ import "./chunk-VT7DR6NQ.js";
11
+ import "./chunk-JZFXSTYX.js";
12
+ import "./chunk-3FYJM7LH.js";
13
+ export {
14
+ handleAsk
15
+ };