@ai-ecoverse/slicc-browsers 1.50.0 → 1.52.0

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.
Binary file
@@ -0,0 +1,12 @@
1
+ import bytes from './engine-wasm.mjs';
2
+
3
+ let compiled;
4
+
5
+ export function createInstance() {
6
+ compiled ??= new WebAssembly.Module(bytes);
7
+ return new WebAssembly.Instance(compiled).exports;
8
+ }
9
+
10
+ export async function prepare() {
11
+ compiled ??= await WebAssembly.compile(bytes);
12
+ }
@@ -582,7 +582,7 @@
582
582
  "id": "capture.about-lookalike",
583
583
  "op": "capture",
584
584
  "frame": { "url": "about:srcdoc", "securityOrigin": "ABOUT://x" },
585
- "expect": "blank"
585
+ "expect": "allow"
586
586
  },
587
587
  {
588
588
  "id": "capture.extension-hidden",
@@ -1668,10 +1668,10 @@
1668
1668
  "op": "page",
1669
1669
  "page": "about-lookalike",
1670
1670
  "expect": {
1671
- "mixed": true,
1671
+ "mixed": false,
1672
1672
  "frames": {
1673
1673
  "top": { "role": "ordinary", "protected": false, "capture": "allow" },
1674
- "child": { "role": "unparseable", "protected": true, "capture": "blank" }
1674
+ "child": { "role": "ordinary", "protected": false, "capture": "allow" }
1675
1675
  }
1676
1676
  }
1677
1677
  },
@@ -1700,15 +1700,20 @@
1700
1700
  "expect": {
1701
1701
  "result": {
1702
1702
  "frameTree": {
1703
- "frame": { "id": "top", "loaderId": "L1", "url": "https://example.test/page" },
1703
+ "frame": {
1704
+ "id": "top",
1705
+ "loaderId": "L1",
1706
+ "url": "https://example.test/page"
1707
+ },
1704
1708
  "childFrames": [
1705
1709
  {
1706
1710
  "frame": {
1707
1711
  "id": "child",
1708
1712
  "parentId": "top",
1709
1713
  "loaderId": "L2",
1710
- "url": "",
1711
- "securityOrigin": ""
1714
+ "url": "about:blank",
1715
+ "securityOrigin": "://",
1716
+ "name": "withheld"
1712
1717
  }
1713
1718
  }
1714
1719
  ]
@@ -1916,7 +1921,7 @@
1916
1921
  "id": "capture.uppercase-about",
1917
1922
  "op": "capture",
1918
1923
  "frame": { "url": "about:srcdoc", "securityOrigin": "ABOUT://" },
1919
- "expect": "blank"
1924
+ "expect": "allow"
1920
1925
  },
1921
1926
  {
1922
1927
  "id": "capture.ordinary-url-vault-context",
package/engine.mjs CHANGED
@@ -1,7 +1,20 @@
1
- import bytes from './engine/engine-wasm.mjs';
1
+ import {
2
+ every,
3
+ exec,
4
+ includes,
5
+ list,
6
+ method,
7
+ startsWith,
8
+ typedLength,
9
+ typedSet,
10
+ wellFormed,
11
+ } from './engine/builtins.mjs';
12
+ import { createInstance, prepare } from './engine/runtime.mjs';
2
13
 
3
14
  const encoder = new TextEncoder();
4
15
  const decoder = new TextDecoder('utf-8', { fatal: true });
16
+ const encodeText = method(encoder.encode);
17
+ const decodeText = method(decoder.decode);
5
18
  const roles = [
6
19
  'seven',
7
20
  'slicc',
@@ -12,17 +25,18 @@ const roles = [
12
25
  'unparseable',
13
26
  'ordinary',
14
27
  ];
15
- let compiled;
16
28
 
17
29
  const captureDecision = (v) => v === 'allow' || v === 'blank';
18
30
  const record = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
19
31
 
20
32
  function valid(request, result) {
21
33
  switch (request.op) {
34
+ case 'targetClass':
35
+ case 'frameClass':
22
36
  case 'urlClass':
23
37
  return (
24
38
  typeof result?.protected === 'boolean' &&
25
- roles.includes(result.role) &&
39
+ includes(roles, result.role) &&
26
40
  (result.origin === null || typeof result.origin === 'string')
27
41
  );
28
42
  case 'info':
@@ -30,18 +44,19 @@ function valid(request, result) {
30
44
  result?.abi === 1 &&
31
45
  Number.isInteger(result.catalogSchema) &&
32
46
  typeof result.digest === 'string' &&
33
- /^[0-9a-f]{16}$/.test(result.digest)
47
+ exec(/^[0-9a-f]{16}$/, result.digest) !== null
34
48
  );
35
49
  case 'page':
36
50
  return (
37
51
  typeof result?.mixed === 'boolean' &&
38
52
  record(result.frames) &&
39
53
  Object.keys(result.frames).length === request.frames.length &&
40
- request.frames.every((f) => Object.hasOwn(result.frames, f.id)) &&
41
- Object.values(result.frames).every(
54
+ every(request.frames, (f) => Object.hasOwn(result.frames, f.id)) &&
55
+ every(
56
+ Object.values(result.frames),
42
57
  (v) =>
43
58
  typeof v?.protected === 'boolean' &&
44
- roles.includes(v.role) &&
59
+ includes(roles, v.role) &&
45
60
  captureDecision(v.capture)
46
61
  )
47
62
  );
@@ -58,7 +73,7 @@ function valid(request, result) {
58
73
  typeof result.reason === 'string'))
59
74
  );
60
75
  case 'refusal':
61
- return typeof result === 'string' && result.startsWith('slicc: refused: ');
76
+ return typeof result === 'string' && startsWith(result, 'slicc: refused: ');
62
77
  case 'har':
63
78
  return result === 'include' || result === 'exclude';
64
79
  case 'storageKey':
@@ -69,14 +84,15 @@ function valid(request, result) {
69
84
  }
70
85
 
71
86
  function exchange(wasm, method, input) {
72
- const ptr = wasm.engine_alloc(input.length) >>> 0;
73
- new Uint8Array(wasm.memory.buffer, ptr, input.length).set(input);
74
- const packed = wasm[method](ptr, input.length);
87
+ const size = typedLength(input);
88
+ const ptr = wasm.engine_alloc(size) >>> 0;
89
+ typedSet(new Uint8Array(wasm.memory.buffer, ptr, size), input);
90
+ const packed = wasm[method](ptr, size);
75
91
  const start = Number(BigInt.asUintN(64, packed) >> 32n);
76
92
  const length = Number(packed & 0xffffffffn);
77
- const answer = JSON.parse(decoder.decode(new Uint8Array(wasm.memory.buffer, start, length)));
93
+ const answer = JSON.parse(decodeText(decoder, new Uint8Array(wasm.memory.buffer, start, length)));
78
94
  wasm.engine_free(start, length);
79
- wasm.engine_free(ptr, input.length);
95
+ wasm.engine_free(ptr, size);
80
96
  if (typeof answer?.error === 'string') throw new Error(answer.error);
81
97
  if (!answer || Object.keys(answer).length !== 1 || !Object.hasOwn(answer, 'ok'))
82
98
  throw new Error('invalid engine response');
@@ -84,30 +100,32 @@ function exchange(wasm, method, input) {
84
100
  }
85
101
 
86
102
  function encode(value) {
87
- return encoder.encode(
88
- JSON.stringify(value, (_, v) => (typeof v === 'string' ? v.toWellFormed() : v))
103
+ return encodeText(
104
+ encoder,
105
+ JSON.stringify(value, (_, v) => (typeof v === 'string' ? wellFormed(v) : v))
89
106
  );
90
107
  }
91
108
 
92
- function preserveTargetComparison(request) {
109
+ function preserveFailedURL(request) {
93
110
  if (
94
- request?.op !== 'target' ||
95
- typeof request.url !== 'string' ||
96
- typeof request.unreachableURL !== 'string'
111
+ !includes(['target', 'frame', 'targetClass', 'frameClass'], request?.op) ||
112
+ typeof request.url !== 'string'
97
113
  )
98
114
  return request;
115
+ const failed = request.unreachableURL ?? request.unreachableUrl;
99
116
  if (
100
- request.url !== request.unreachableURL &&
101
- request.url.toWellFormed() === request.unreachableURL.toWellFormed()
117
+ typeof failed !== 'string' ||
118
+ failed === request.url ||
119
+ wellFormed(failed) !== wellFormed(request.url)
102
120
  )
103
- return { ...request, unreachableURL: undefined };
104
- return request;
121
+ return request;
122
+ return { ...request, documentURL: undefined };
105
123
  }
106
124
 
107
- function binding(module, config) {
125
+ export function engine(config = {}) {
108
126
  const input = encode(config);
109
127
  function create() {
110
- const wasm = new WebAssembly.Instance(module).exports;
128
+ const wasm = createInstance();
111
129
  if (wasm.engine_abi() !== 1) throw new Error('unsupported engine ABI');
112
130
  if (exchange(wasm, 'engine_init', input) !== true)
113
131
  throw new Error('engine initialization failed');
@@ -119,14 +137,14 @@ function binding(module, config) {
119
137
  instance ??= create();
120
138
  const wire =
121
139
  request.op === 'batch' && Array.isArray(request.calls)
122
- ? { ...request, calls: request.calls.map(preserveTargetComparison) }
123
- : preserveTargetComparison(request);
140
+ ? { ...request, calls: list(request.calls, preserveFailedURL) }
141
+ : preserveFailedURL(request);
124
142
  const result = exchange(instance, 'engine_call', encode(wire));
125
143
  const ok =
126
144
  request.op === 'batch'
127
145
  ? Array.isArray(result) &&
128
146
  result.length === request.calls.length &&
129
- result.every((v, i) => valid(request.calls[i], v))
147
+ every(result, (v, i) => valid(request.calls[i], v))
130
148
  : valid(request, result);
131
149
  if (!ok) throw new Error(`invalid engine result for ${request.op}`);
132
150
  return result;
@@ -143,11 +161,15 @@ function binding(module, config) {
143
161
  page: (facts) => call({ ...facts, op: 'page' }),
144
162
  capture: (facts) => call({ ...facts, op: 'capture' }),
145
163
  reply: (facts) => call({ ...facts, op: 'reply' }),
164
+ frame: (facts) => call({ ...facts, op: 'frame' }),
165
+ targetClass: (facts) => call({ ...facts, op: 'targetClass' }),
166
+ frameClass: (facts) => call({ ...facts, op: 'frameClass' }),
146
167
  kept: (url) => call({ op: 'kept', url }),
147
168
  keptTarget: (facts) => call({ ...facts, op: 'keptTarget' }),
148
169
  unparseable: (url) => call({ op: 'unparseable', url }),
149
170
  cookieDomain: (domain) => call({ op: 'cookieDomain', domain }),
150
171
  storageKey: (key) => call({ op: 'storageKey', key }),
172
+ foreignWorld: (origin) => call({ op: 'foreignWorld', origin }),
151
173
  extensionFrame: (url) => call({ op: 'extensionFrame', url }),
152
174
  har: (url) => call({ op: 'har', url }),
153
175
  zoneHost: (host) => call({ op: 'zoneHost', host }),
@@ -158,12 +180,7 @@ function binding(module, config) {
158
180
  };
159
181
  }
160
182
 
161
- export function engine(config = {}) {
162
- compiled ??= new WebAssembly.Module(bytes);
163
- return binding(compiled, config);
164
- }
165
-
166
183
  export async function loadEngine(config = {}) {
167
- compiled ??= await WebAssembly.compile(bytes);
168
- return binding(compiled, config);
184
+ await prepare();
185
+ return engine(config);
169
186
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "setVersion": "1.50.0",
3
+ "setVersion": "1.52.0",
4
4
  "sources": [
5
5
  {
6
6
  "repo": "ai-ecoverse/slicc-cli",
@@ -2065,9 +2065,9 @@
2065
2065
  "reload": true,
2066
2066
  "blank": true,
2067
2067
  "restored": true,
2068
- "evaluateRefused": true,
2069
- "attachRefused": true,
2070
- "closeRefused": true,
2068
+ "evaluateRefused": false,
2069
+ "attachRefused": false,
2070
+ "closeRefused": false,
2071
2071
  "closed": true,
2072
2072
  "stickyError": true,
2073
2073
  "attachRedacted": true,
@@ -2279,9 +2279,9 @@
2279
2279
  "reload": true,
2280
2280
  "blank": true,
2281
2281
  "restored": true,
2282
- "evaluateRefused": true,
2283
- "attachRefused": true,
2284
- "closeRefused": true,
2282
+ "evaluateRefused": false,
2283
+ "attachRefused": false,
2284
+ "closeRefused": false,
2285
2285
  "closed": true,
2286
2286
  "stickyError": true,
2287
2287
  "attachRedacted": true,
@@ -2493,9 +2493,9 @@
2493
2493
  "reload": true,
2494
2494
  "blank": true,
2495
2495
  "restored": true,
2496
- "evaluateRefused": true,
2497
- "attachRefused": true,
2498
- "closeRefused": true,
2496
+ "evaluateRefused": false,
2497
+ "attachRefused": false,
2498
+ "closeRefused": false,
2499
2499
  "closed": true,
2500
2500
  "stickyError": true,
2501
2501
  "attachRedacted": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-browsers",
3
- "version": "1.50.0",
3
+ "version": "1.52.0",
4
4
  "description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -30,6 +30,8 @@
30
30
  "./schema/engine-vectors.schema.json": "./schema/engine-vectors.schema.json",
31
31
  "./debugger-stage1.json": "./debugger-stage1.json",
32
32
  "./protected.mjs": "./protected.mjs",
33
+ "./protected-js.mjs": "./protected-js.mjs",
34
+ "./engine-js": "./engine/engine-js.mjs",
33
35
  "./engine": "./engine.mjs",
34
36
  "./engine.mjs": "./engine.mjs",
35
37
  "./engine/engine-wasm.mjs": "./engine/engine-wasm.mjs",
@@ -56,6 +58,10 @@
56
58
  "engine-vectors.json",
57
59
  "debugger-stage1.json",
58
60
  "protected.mjs",
61
+ "protected-js.mjs",
62
+ "engine/engine-js.mjs",
63
+ "engine/builtins.mjs",
64
+ "engine/runtime.mjs",
59
65
  "engine.mjs",
60
66
  "engine/engine-wasm.mjs",
61
67
  "engine/engine.wasm",
@@ -87,9 +93,9 @@
87
93
  "corpus": "node scripts/corpus.mjs",
88
94
  "engine": "PATH=\"$HOME/.cargo/bin:$PATH\" node scripts/engine.mjs",
89
95
  "validate": "node scripts/validate.mjs",
90
- "lint": "export PATH=\"$HOME/.cargo/bin:$PATH\" && if [ \"$(uname -s)\" = Darwin ]; then echo 'Skipping byte comparison on macOS; Linux CI owns the wasm bytes.'; else git ls-files --error-unmatch engine/engine.wasm engine/engine-wasm.mjs > /dev/null && npm run engine && git diff --exit-code -- engine/engine.wasm engine/engine-wasm.mjs protected.mjs; fi && node scripts/protected-bundle.mjs --check && slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && GOOS=darwin go vet ./... && GOOS=windows go vet ./... && golangci-lint run && cargo fmt --all --check && cargo clippy --workspace --locked --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features --locked && cargo check --target wasm32-wasip1 --features serde --locked && cargo check --target wasm32-wasip1 --all-features --locked",
96
+ "lint": "export PATH=\"$HOME/.cargo/bin:$PATH\" && if [ \"$(uname -s)\" = Darwin ]; then echo 'Skipping byte comparison on macOS; Linux CI owns the wasm bytes.'; else artifacts='engine/engine.wasm engine/engine-wasm.mjs protected.mjs engine/engine-js.mjs protected-js.mjs' && git ls-files --error-unmatch $artifacts > /dev/null && npm run engine && git diff --exit-code -- $artifacts; fi && node scripts/protected-bundle.mjs --check && node scripts/engine-js.mjs --check && slicc-lint && test -z \"$(gofmt -l .)\" && go mod tidy -diff && go vet ./... && GOOS=darwin go vet ./... && GOOS=windows go vet ./... && golangci-lint run && cargo fmt --all --check && cargo clippy --workspace --locked --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features --locked && cargo check --target wasm32-wasip1 --features serde --locked && cargo check --target wasm32-wasip1 --all-features --locked",
91
97
  "format": "biome check --write . && gofmt -w . && cargo fmt --all",
92
- "test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/protected-zones.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-ordinary-idp-cookies.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/engine.test.mjs test/integration/engine-page.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-cookie-plant-attach.test.mjs test/integration/guard-cookie-plant-attach-retry.test.mjs test/integration/guard-cookie-plant-open-commit.test.mjs test/integration/guard-cookie-plant-legacy-setup.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-error-page-enable.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-bfcache-ownership-probe.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-key.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-raw-cdp.test.mjs test/integration/guard-error-legs.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-preview.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-browser-storage.test.mjs test/integration/guard-control-premises.test.mjs test/integration/guard-control-probe-failure.test.mjs test/integration/guard-kept-origins.test.mjs",
98
+ "test": "export PATH=\"$HOME/.cargo/bin:$PATH\" && node --test --test-concurrency=1 test/integration/debugger-stage1-packaging.test.mjs test/integration/debugger-raw-control.test.mjs test/integration/debugger-cleanup.test.mjs test/integration/debugger-stage1-install-vectors.test.mjs test/integration/protected-premise.test.mjs test/integration/protected-zones.test.mjs test/integration/debugger-stage1-vectors.test.mjs test/integration/self-contained.test.mjs test/integration/seven-corpus.test.mjs test/integration/browser-runner.test.mjs test/integration/fixture-client.test.mjs test/integration/guard-redirect-carrier.test.mjs test/integration/guard-redirect-session-end.test.mjs test/integration/guard-redirect-history.test.mjs test/integration/guard-redirect-iframe.test.mjs test/integration/guard-redirect-through.test.mjs test/integration/guard-incomplete.test.mjs test/integration/guard-unparseable-wipe.test.mjs test/integration/guard-browser-ui.test.mjs test/integration/guard-snapshot-settle.test.mjs test/integration/guard-stall.test.mjs test/integration/guard-forged.test.mjs test/integration/guard-trusted-emulation.test.mjs test/integration/guard-exit-steps.test.mjs test/integration/guard-exit-refusal.test.mjs test/integration/guard-frame-read.test.mjs test/integration/guard-bfcache.test.mjs test/integration/guard-bfcache-marker.test.mjs test/integration/guard-bfcache-history.test.mjs test/integration/guard-bfcache-review.test.mjs test/integration/guard-bfcache-quarantine.test.mjs test/integration/guard-error-page-navigation.test.mjs test/integration/guard-error-page-events.test.mjs test/integration/guard-error-page-reload.test.mjs test/integration/guard-close-protected.test.mjs test/integration/guard-close-protected-shapes.test.mjs test/integration/guard-close-protected-shapes-chrome.test.mjs test/integration/guard-ordinary-idp-cookies.test.mjs test/integration/guard-protected-parent-iframes.test.mjs test/integration/guard-protected-parent-iframes-chrome.test.mjs test/integration/guard-error-frame-class.test.mjs test/integration/guard-sign-in-hold.test.mjs test/integration/guard-cookie-plant-chrome.test.mjs test/integration/guard-cookie-plant.test.mjs test/integration/guard-protected-parent-page.test.mjs test/integration/guard-protected-parent-page-chrome.test.mjs test/integration/guard-world-paint.test.mjs test/integration/gates.test.mjs test/integration/validate.test.mjs test/integration/validate-guard-stock-setup.test.mjs test/integration/validate-guard-explicit.test.mjs test/integration/go.test.mjs test/integration/cargo.test.mjs test/integration/engine.test.mjs test/integration/engine-js.test.mjs test/integration/engine-page.test.mjs test/integration/workflows.test.mjs test/integration/guard-refusable-nav.test.mjs test/integration/guard-protected-worker.test.mjs test/integration/guard-protected-worker-chrome-narrow.test.mjs test/integration/guard-protected-worker-chrome-hide.test.mjs test/integration/guard-protected-worker-chrome-hide-cut.test.mjs test/integration/guard-protected-worker-chrome-admit.test.mjs test/integration/guard-protected-worker-chrome-late.test.mjs test/integration/guard-protected-worker-chrome-rewrite.test.mjs test/integration/guard-protected-worker-chrome-rewrite-late.test.mjs test/integration/guard-sweep-union.test.mjs test/integration/guard-explicit-attach-chrome.test.mjs && node --test --test-concurrency=2 test/integration/guard-lifecycle.test.mjs test/integration/chromium-launch.test.mjs test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-child-latency-stress.test.mjs test/integration/guard-adoption.test.mjs test/integration/guard-scoping.test.mjs test/integration/guard-late-pause.test.mjs test/integration/guard-cookie-plant-raw-leg.test.mjs test/integration/guard-cookie-plant-deletion.test.mjs test/integration/guard-cookie-plant-attach.test.mjs test/integration/guard-cookie-plant-attach-retry.test.mjs test/integration/guard-cookie-plant-open-commit.test.mjs test/integration/guard-cookie-plant-legacy-setup.test.mjs test/integration/guard-legs.test.mjs test/integration/guard-fetch-enable.test.mjs test/integration/guard-diagnostics.test.mjs test/integration/guard-chrome.test.mjs test/integration/guard-worlds.test.mjs test/integration/guard-world-discovery.test.mjs test/integration/guard-world-guesses.test.mjs test/integration/guard-unparseable.test.mjs test/integration/guard-redirect-secret.test.mjs test/integration/guard-error-page.test.mjs test/integration/guard-error-page-enable.test.mjs test/integration/guard-discovery.test.mjs test/integration/guard-bfcache-chrome.test.mjs test/integration/guard-bfcache-ownership-probe.test.mjs test/integration/guard-browser-page.test.mjs test/integration/guard-scales.test.mjs test/integration/guard-shared-log.test.mjs test/integration/guard-pre-beacon.test.mjs test/integration/guard-world-pause.test.mjs test/integration/guard-reveal-overlap.test.mjs test/integration/guard-extension-frame-cast.test.mjs test/integration/guard-extension-frame-mouse.test.mjs test/integration/guard-extension-frame-click.test.mjs test/integration/guard-extension-frame-key.test.mjs test/integration/guard-extension-frame-attach.test.mjs test/integration/guard-extension-frames.test.mjs test/integration/guard-stock-setup.test.mjs test/integration/guard-explicit-attach.test.mjs test/integration/guard-explicit-order.test.mjs test/integration/guard-stock-attack.test.mjs test/integration/guard-parallel.test.mjs test/integration/guard-client-exit.test.mjs test/integration/guard-runner-record.test.mjs test/integration/guard-runner.test.mjs test/integration/guard-raw-cdp.test.mjs test/integration/guard-error-legs.test.mjs test/integration/guard-sweep-ordinary.test.mjs test/integration/guard-sweep-seven.test.mjs test/integration/guard-sweep-vault.test.mjs test/integration/guard-sweep-vault-x.test.mjs test/integration/guard-sweep-preview.test.mjs test/integration/guard-sweep-idp.test.mjs test/integration/guard-sweep-others.test.mjs test/integration/guard-browser-storage.test.mjs test/integration/guard-control-premises.test.mjs test/integration/guard-control-probe-failure.test.mjs test/integration/guard-kept-origins.test.mjs",
93
99
  "test:unit": "mkdir -p coverage/unit && node --experimental-test-coverage --test --test-concurrency=1 --test-reporter=lcov --test-reporter-destination=coverage/unit/lcov.info test/unit/*.test.mjs && go test -race -cover ./...",
94
100
  "build": "export PATH=\"$HOME/.cargo/bin:$PATH\" && go build ./... && cargo build --locked --all-features && cargo build --locked --target wasm32-wasip1 --all-features && npm pack --dry-run",
95
101
  "prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
@@ -100,14 +106,14 @@
100
106
  "test:unit:guard": "mkdir -p coverage/unit && node --experimental-vm-modules --no-warnings --experimental-test-coverage --test --test-concurrency=1 --test-coverage-include=guard-runner.mjs --test-coverage-include=guard-driver.mjs --test-coverage-include=extension-frame.mjs --test-coverage-include=fixture-server.mjs --test-coverage-include=fixture-client.mjs --test-coverage-include=observer-target.mjs --test-coverage-include=frame-read.mjs --test-coverage-include=bfcache-restore.mjs --test-coverage-include=protected-error-page.mjs --test-coverage-include=protected-parent-iframes.mjs --test-coverage-include=unparseable-url.mjs --test-coverage-include=scripts/browser-runner.mjs --test-coverage-include=scripts/validate.mjs --test-reporter=lcov --test-reporter-destination=coverage/unit/guard.lcov test/unit/guard-*.test.mjs && slicc-diff-cover coverage/unit/guard.lcov"
101
107
  },
102
108
  "devDependencies": {
103
- "@ai-ecoverse/slicc-cdp": "2.8.0",
104
- "@ai-ecoverse/slicc-shared-web": "3.1.0",
109
+ "@ai-ecoverse/slicc-cdp": "2.9.1",
110
+ "@ai-ecoverse/slicc-shared-web": "3.1.1",
105
111
  "@biomejs/biome": "2.6.9",
106
112
  "ajv": "8.20.0",
107
113
  "ajv-formats": "3.0.1",
108
114
  "binaryen": "132.0.0",
109
115
  "esbuild": "0.28.2",
110
- "lefthook": "2.2.2",
116
+ "lefthook": "2.2.3",
111
117
  "semantic-release": "26.0.1"
112
118
  }
113
119
  }