jev-web 0.8.0 → 0.9.1
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/README.md +180 -32
- package/docs/demo-model-picker.png +0 -0
- package/package.json +9 -5
- package/src/clef.mjs +498 -0
- package/src/decision3.mjs +571 -0
- package/src/index.mjs +59 -0
- package/src/questions.mjs +8 -1
- package/src/registry.mjs +34 -4
- package/src/vega.mjs +539 -50
package/src/registry.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* registry.mjs — multi-family runtime for JEV-style typed-decision models.
|
|
3
3
|
*
|
|
4
|
-
* jev-web ships
|
|
5
|
-
* (ModernBERT encoder + typed head), Strands Decider 2B (
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* jev-web ships nine families today — open-jev (fused DeBERTa graph), Laya
|
|
5
|
+
* (ModernBERT encoder + typed head), Strands Decider 2B (Qwen torso + pointer
|
|
6
|
+
* head), Bekko System One v0 (cross-encoder), Decision 2.0 (Qwen3 + candidate
|
|
7
|
+
* head), Kev (Qwen3 + pointer head), Vega 0.8B (frozen Qwen3.5 torso + latent
|
|
8
|
+
* physics engine), clef (Qwen3 + joint schema head), and Decision 3.0 (d3
|
|
9
|
+
* code readout) — and any third party can add its own without touching
|
|
8
10
|
* core:
|
|
9
11
|
*
|
|
10
12
|
* registerDecisionFamily("my-model", {
|
|
@@ -56,6 +58,18 @@ import {
|
|
|
56
58
|
VEGA_DEFAULT_REVISION,
|
|
57
59
|
} from "./vega.mjs";
|
|
58
60
|
|
|
61
|
+
import {
|
|
62
|
+
createClefDecider,
|
|
63
|
+
CLEF_DEFAULT_MODEL,
|
|
64
|
+
CLEF_DEFAULT_REVISION,
|
|
65
|
+
} from "./clef.mjs";
|
|
66
|
+
|
|
67
|
+
import {
|
|
68
|
+
createDecision3Decider,
|
|
69
|
+
DECISION3_DEFAULT_MODEL,
|
|
70
|
+
DECISION3_DEFAULT_REVISION,
|
|
71
|
+
} from "./decision3.mjs";
|
|
72
|
+
|
|
59
73
|
const families = new Map();
|
|
60
74
|
|
|
61
75
|
/**
|
|
@@ -135,6 +149,22 @@ registerDecisionFamily("vega", {
|
|
|
135
149
|
create: createVegaDecider,
|
|
136
150
|
});
|
|
137
151
|
|
|
152
|
+
registerDecisionFamily("clef", {
|
|
153
|
+
defaults: {
|
|
154
|
+
model: CLEF_DEFAULT_MODEL,
|
|
155
|
+
revision: CLEF_DEFAULT_REVISION,
|
|
156
|
+
},
|
|
157
|
+
create: createClefDecider,
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
registerDecisionFamily("decision3", {
|
|
161
|
+
defaults: {
|
|
162
|
+
model: DECISION3_DEFAULT_MODEL,
|
|
163
|
+
revision: DECISION3_DEFAULT_REVISION,
|
|
164
|
+
},
|
|
165
|
+
create: createDecision3Decider,
|
|
166
|
+
});
|
|
167
|
+
|
|
138
168
|
/**
|
|
139
169
|
* Create a decision runtime, preferring `family` and falling back in order.
|
|
140
170
|
* @param {{family?:string, fallback?:string[], onFallback?:Function}} [opts]
|