@e2e-dev/decision 0.3.2-nightly-20261105030216 → 0.3.2
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 +2 -2
- package/dist/.build.json +1 -1
- package/dist/elements.js +5 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ or later, verdicts see a masked screenshot and
|
|
|
36
36
|
records every model call against the step budget. Secrets stay declared
|
|
37
37
|
handles that only `typeSecret` fills.
|
|
38
38
|
|
|
39
|
-
See the [decision models guide](https://e2e.
|
|
39
|
+
See the [decision models guide](https://e2e.com/docs/decision-models)
|
|
40
40
|
for setup, vision, gates, provider options, and limits.
|
|
41
41
|
|
|
42
42
|
## Test filter
|
|
@@ -58,4 +58,4 @@ export default {
|
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
The model must answer `boolean` questions. See
|
|
61
|
-
[Test filters](https://e2e.
|
|
61
|
+
[Test filters](https://e2e.com/docs/filters) for CI setup.
|
package/dist/.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.3.2
|
|
1
|
+
{"version":"0.3.2"}
|
package/dist/elements.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { fnv1a } from './hash.js';
|
|
2
2
|
/** TypeSafe's per-question choice limit; the AI SDK itself has none. */
|
|
3
3
|
const MAX_CHOICES = 255;
|
|
4
|
+
/** Targets one question can offer: every target question also carries the `none` fallback. */
|
|
5
|
+
const MAX_TARGETS = MAX_CHOICES - 1;
|
|
4
6
|
const tappable = new Set([
|
|
5
7
|
'button',
|
|
6
8
|
'link',
|
|
@@ -129,8 +131,8 @@ export function actionSpace(ctx, observation, canType) {
|
|
|
129
131
|
.map((row, order) => ({ row, order }))
|
|
130
132
|
.toSorted((a, b) => Number(a.row.passive) - Number(b.row.passive) || Number(b.row.inViewport) - Number(a.row.inViewport) || a.order - b.order)
|
|
131
133
|
.map(({ row }) => row);
|
|
132
|
-
const omitted = Math.max(0, ordered.length -
|
|
133
|
-
const kept = ordered.slice(0,
|
|
134
|
+
const omitted = Math.max(0, ordered.length - MAX_TARGETS);
|
|
135
|
+
const kept = ordered.slice(0, MAX_TARGETS);
|
|
134
136
|
// Drop targets come from the kept rows a pointer reaches, whatever their
|
|
135
137
|
// role: a board whose columns are bare text takes a drop on the column's
|
|
136
138
|
// title. A drag needs a second row to drop on, or it is no operation.
|
|
@@ -166,7 +168,7 @@ export function actionSpace(ctx, observation, canType) {
|
|
|
166
168
|
// Every select shares one target group and one question, so options
|
|
167
169
|
// stop at the per-question cap. They stay out of `omitted`: scrolling
|
|
168
170
|
// never reveals an option the cap dropped.
|
|
169
|
-
if (selectCount >=
|
|
171
|
+
if (selectCount >= MAX_TARGETS)
|
|
170
172
|
continue;
|
|
171
173
|
const key = `${index}:${optionIndex}`;
|
|
172
174
|
const optionLabel = child.name ?? child.text ?? '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2e-dev/decision",
|
|
3
|
-
"version": "0.3.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Decision-model executors and test filters for e2e",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"ai": "^7.0.134",
|
|
33
|
-
"e2e": "0.
|
|
33
|
+
"e2e": ">=0.21.3 <1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@ai-sdk/openai": "4.0.
|
|
37
|
-
"@ai-sdk/typesafe-ai": "3.0.
|
|
38
|
-
"@e2e-dev/web": "0.15.5
|
|
36
|
+
"@ai-sdk/openai": "4.0.109",
|
|
37
|
+
"@ai-sdk/typesafe-ai": "3.0.34",
|
|
38
|
+
"@e2e-dev/web": "0.15.5",
|
|
39
39
|
"@types/node": "26.6.6",
|
|
40
40
|
"@types/pngjs": "6.0.5",
|
|
41
|
-
"ai": "7.0.
|
|
41
|
+
"ai": "7.0.163",
|
|
42
42
|
"ajv": "8.20.0",
|
|
43
43
|
"ajv-formats": "3.0.1",
|
|
44
|
-
"e2e": "0.
|
|
44
|
+
"e2e": "0.23.0",
|
|
45
45
|
"typescript": "7.0.2",
|
|
46
46
|
"vitest": "5.1.0"
|
|
47
47
|
},
|