@ai-ecoverse/slicc-browsers 1.38.2 → 1.38.4
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/cookie-plant.mjs +124 -15
- package/guard-vectors.json +1 -1
- package/package.json +4 -4
package/cookie-plant.mjs
CHANGED
|
@@ -237,6 +237,21 @@ async function until(check, ms, step = 25) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
const openRead = '({ ready: document.readyState, href: location.href })';
|
|
241
|
+
const initialEntry = (href) => !href || href === 'about:blank';
|
|
242
|
+
|
|
243
|
+
function sameUrl(a, b) {
|
|
244
|
+
try {
|
|
245
|
+
return new URL(a).href === new URL(b).href;
|
|
246
|
+
} catch {
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function uncommitted(href, url) {
|
|
252
|
+
return initialEntry(href) && !sameUrl(href, url);
|
|
253
|
+
}
|
|
254
|
+
|
|
240
255
|
async function openPage(reader, url, notes, internalSessions, browserContextId = null) {
|
|
241
256
|
const created = await outcome(
|
|
242
257
|
createObserverTarget(
|
|
@@ -256,25 +271,40 @@ async function openPage(reader, url, notes, internalSessions, browserContextId =
|
|
|
256
271
|
);
|
|
257
272
|
if (!created.ok) return created;
|
|
258
273
|
internalSessions.add(created.result.sessionId);
|
|
274
|
+
const seen = { href: '', held: false };
|
|
259
275
|
const ready = await waitFor(async () => {
|
|
260
276
|
const read = await outcome(
|
|
261
277
|
reader.send(
|
|
262
278
|
'Runtime.evaluate',
|
|
263
|
-
{ expression:
|
|
279
|
+
{ expression: openRead, returnByValue: true },
|
|
264
280
|
created.result.sessionId
|
|
265
281
|
)
|
|
266
282
|
);
|
|
267
|
-
|
|
283
|
+
const value = read.ok ? read.result?.result?.value : null;
|
|
284
|
+
if (!value || typeof value !== 'object') return false;
|
|
285
|
+
seen.href = typeof value.href === 'string' ? value.href : '';
|
|
286
|
+
if (uncommitted(seen.href, url)) {
|
|
287
|
+
seen.held = true;
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
return ['interactive', 'complete'].includes(value.ready);
|
|
268
291
|
}, 4000);
|
|
269
292
|
note(notes, 'cookie-plant.open', {
|
|
270
293
|
targetId: created.result.targetId,
|
|
271
294
|
url,
|
|
272
295
|
ready: Boolean(ready),
|
|
296
|
+
...(seen.held ? { href: seen.href.slice(0, 200), requested: sameUrl(seen.href, url) } : {}),
|
|
273
297
|
});
|
|
274
298
|
if (!ready)
|
|
275
299
|
return {
|
|
276
300
|
ok: true,
|
|
277
|
-
result: {
|
|
301
|
+
result: {
|
|
302
|
+
incomplete:
|
|
303
|
+
seen.held && uncommitted(seen.href, url)
|
|
304
|
+
? 'opener page did not commit the requested url'
|
|
305
|
+
: 'opener page did not become ready',
|
|
306
|
+
...created.result,
|
|
307
|
+
},
|
|
278
308
|
};
|
|
279
309
|
return created;
|
|
280
310
|
}
|
|
@@ -2726,6 +2756,19 @@ function refusedTab(ctx, attached, elapsedMs) {
|
|
|
2726
2756
|
}
|
|
2727
2757
|
|
|
2728
2758
|
function missedPath(name, attempt, notes) {
|
|
2759
|
+
if (!attempt?.retried) return missedAttempt(name, attempt, notes, '');
|
|
2760
|
+
const { retried, ...settled } = attempt;
|
|
2761
|
+
noteRetried(name, retried, notes);
|
|
2762
|
+
if (!settled.missed) return settled;
|
|
2763
|
+
return missedAttempt(
|
|
2764
|
+
name,
|
|
2765
|
+
{ ...settled, missed: { ...settled.missed, retries: retried.length } },
|
|
2766
|
+
notes,
|
|
2767
|
+
afterAttempts(retried, settled.missed.step)
|
|
2768
|
+
);
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
function missedAttempt(name, attempt, notes, after) {
|
|
2729
2772
|
if (!attempt?.missed) return attempt;
|
|
2730
2773
|
const { missed, ...rest } = attempt;
|
|
2731
2774
|
note(notes, 'cookie-plant.attach', { path: name, ...missed });
|
|
@@ -2734,19 +2777,72 @@ function missedPath(name, attempt, notes) {
|
|
|
2734
2777
|
...rest,
|
|
2735
2778
|
premiseMissed: ['Answered', 'Refused', 'Planted']
|
|
2736
2779
|
.filter((field) => rest[field.toLowerCase()] === 'incomplete')
|
|
2737
|
-
.map(
|
|
2780
|
+
.map(
|
|
2781
|
+
(field) => `${name}${field}: fresh tab ${missed.step} refused: ${missed.error}${after}`
|
|
2782
|
+
),
|
|
2738
2783
|
};
|
|
2739
2784
|
const fields = ['Answered', 'Refused', 'Planted', ...(name === 'deletion' ? ['Cleared'] : [])];
|
|
2740
2785
|
return {
|
|
2741
2786
|
...rest,
|
|
2742
2787
|
...(name === 'deletion' ? { cleared: 'incomplete' } : {}),
|
|
2743
2788
|
premiseMissed: fields.map(
|
|
2744
|
-
(field) => `${name}${field}: fresh tab ${missed.step}: ${missed.error}`
|
|
2789
|
+
(field) => `${name}${field}: fresh tab ${missed.step}: ${missed.error}${after}`
|
|
2745
2790
|
),
|
|
2746
2791
|
};
|
|
2747
2792
|
}
|
|
2748
2793
|
|
|
2794
|
+
const settleRefusal = 'slicc: refused: navigation not settled, retry';
|
|
2795
|
+
const settleRetries = 3;
|
|
2796
|
+
const settleGapMs = 400;
|
|
2797
|
+
|
|
2798
|
+
function settleRefused(out) {
|
|
2799
|
+
return !out?.ok && String(out?.error?.message ?? out?.error ?? '') === settleRefusal;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
function settleRetry(control) {
|
|
2803
|
+
return control ? null : { left: settleRetries, startedAt: null, attempts: [] };
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
function retriedOf(retry, tag) {
|
|
2807
|
+
return (retry?.attempts ?? []).map((entry) => ({
|
|
2808
|
+
...entry,
|
|
2809
|
+
error: boundedError(entry.error, tag),
|
|
2810
|
+
}));
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
function noteRetried(name, retried, notes) {
|
|
2814
|
+
for (const entry of retried) note(notes, 'cookie-plant.attach.retry', { path: name, ...entry });
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
function afterAttempts(retried, step) {
|
|
2818
|
+
const tries = retried.filter((entry) => entry.step === step).length;
|
|
2819
|
+
return tries ? ` (after ${tries + 1} attempts)` : '';
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
async function attachStep(call, label, step, retry) {
|
|
2823
|
+
let out = await capped(outcome(call()), 800, label);
|
|
2824
|
+
for (let attempt = 1; retry?.left > 0 && settleRefused(out); attempt += 1) {
|
|
2825
|
+
retry.left -= 1;
|
|
2826
|
+
retry.attempts.push({
|
|
2827
|
+
step,
|
|
2828
|
+
attempt,
|
|
2829
|
+
error: out.error,
|
|
2830
|
+
elapsedMs: Date.now() - retry.startedAt,
|
|
2831
|
+
});
|
|
2832
|
+
await pause(settleGapMs);
|
|
2833
|
+
out = await capped(outcome(call()), 800, label);
|
|
2834
|
+
}
|
|
2835
|
+
return out;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2749
2838
|
async function withFreshAttemptTab(ctx, run) {
|
|
2839
|
+
const retry = settleRetry(ctx.control);
|
|
2840
|
+
const out = await freshAttemptTab(ctx, run, retry);
|
|
2841
|
+
const retried = retriedOf(retry, ctx.tag);
|
|
2842
|
+
return retried.length ? { ...out, retried } : out;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
async function freshAttemptTab(ctx, run, retry) {
|
|
2750
2846
|
const { client, reader, homeUrl, notes, internalSessions, browserContextId } = ctx;
|
|
2751
2847
|
const page = await openPage(reader, homeUrl, notes, internalSessions, browserContextId);
|
|
2752
2848
|
if (!page.ok) return missedTab(ctx, 'open', page.error);
|
|
@@ -2754,7 +2850,7 @@ async function withFreshAttemptTab(ctx, run) {
|
|
|
2754
2850
|
const readerSession = page.result.sessionId;
|
|
2755
2851
|
const pageTarget = page.result.targetId;
|
|
2756
2852
|
const timing = { pathStartedAt: Date.now() };
|
|
2757
|
-
const attached = await attachClientPage(client, pageTarget, internalSessions);
|
|
2853
|
+
const attached = await attachClientPage(client, pageTarget, internalSessions, retry);
|
|
2758
2854
|
const attachMs = Date.now() - timing.pathStartedAt;
|
|
2759
2855
|
if (attached.incomplete) {
|
|
2760
2856
|
await outcome(reader.send('Target.closeTarget', { targetId: pageTarget }));
|
|
@@ -3905,11 +4001,13 @@ async function runAttempts(
|
|
|
3905
4001
|
return { results, ran };
|
|
3906
4002
|
}
|
|
3907
4003
|
|
|
3908
|
-
async function attachClientPage(client, pageTarget, internalSessions) {
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
'attachToTarget'
|
|
4004
|
+
async function attachClientPage(client, pageTarget, internalSessions, retry = null) {
|
|
4005
|
+
if (retry) retry.startedAt = Date.now();
|
|
4006
|
+
const attached = await attachStep(
|
|
4007
|
+
() => client.send('Target.attachToTarget', { targetId: pageTarget, flatten: true }),
|
|
4008
|
+
'attachToTarget',
|
|
4009
|
+
'Target.attachToTarget',
|
|
4010
|
+
retry
|
|
3913
4011
|
);
|
|
3914
4012
|
if (!attached.ok) {
|
|
3915
4013
|
if (sessionCut(attached) || refused(attached))
|
|
@@ -3928,7 +4026,12 @@ async function attachClientPage(client, pageTarget, internalSessions) {
|
|
|
3928
4026
|
['Runtime.enable', 'Runtime.enable'],
|
|
3929
4027
|
['Network.enable', 'Network.enable'],
|
|
3930
4028
|
]) {
|
|
3931
|
-
const enabled = await
|
|
4029
|
+
const enabled = await attachStep(
|
|
4030
|
+
() => client.send(method, {}, pageSession),
|
|
4031
|
+
label,
|
|
4032
|
+
label,
|
|
4033
|
+
retry
|
|
4034
|
+
);
|
|
3932
4035
|
if (!enabled.ok) {
|
|
3933
4036
|
if (sessionCut(enabled) || refused(enabled))
|
|
3934
4037
|
return { refused: enabled, step: label, pageSession };
|
|
@@ -4321,6 +4424,7 @@ async function openPlantClient({
|
|
|
4321
4424
|
internalSessions,
|
|
4322
4425
|
control,
|
|
4323
4426
|
credential,
|
|
4427
|
+
tag,
|
|
4324
4428
|
browserContextId = null,
|
|
4325
4429
|
}) {
|
|
4326
4430
|
const page = await openPage(reader, homeUrl, notes, internalSessions, browserContextId);
|
|
@@ -4329,17 +4433,21 @@ async function openPlantClient({
|
|
|
4329
4433
|
if (page.result?.incomplete) return { done: { incomplete: page.result.incomplete } };
|
|
4330
4434
|
const readerSession = page.result.sessionId;
|
|
4331
4435
|
const pageTarget = page.result.targetId;
|
|
4332
|
-
const
|
|
4436
|
+
const retry = settleRetry(control);
|
|
4437
|
+
const attached = await attachClientPage(client, pageTarget, internalSessions, retry);
|
|
4438
|
+
const retried = retriedOf(retry, tag);
|
|
4439
|
+
noteRetried('probe', retried, notes);
|
|
4440
|
+
const after = afterAttempts(retried, attached.step);
|
|
4333
4441
|
if (attached.incomplete) {
|
|
4334
4442
|
await outcome(reader.send('Target.closeTarget', { targetId: pageTarget }));
|
|
4335
|
-
return { done: { incomplete: attached.incomplete
|
|
4443
|
+
return { done: { incomplete: `${attached.incomplete}${after}`, live: true } };
|
|
4336
4444
|
}
|
|
4337
4445
|
if (attached.refused && sessionCut(attached.refused)) {
|
|
4338
4446
|
await outcome(reader.send('Target.closeTarget', { targetId: pageTarget }));
|
|
4339
4447
|
return {
|
|
4340
4448
|
done: {
|
|
4341
4449
|
live: true,
|
|
4342
|
-
incomplete:
|
|
4450
|
+
incomplete: `${attached.refused.error?.message ?? 'session refused before trigger'}${after}`,
|
|
4343
4451
|
...incompletePaths(),
|
|
4344
4452
|
},
|
|
4345
4453
|
};
|
|
@@ -4434,6 +4542,7 @@ export async function cookiePlant({
|
|
|
4434
4542
|
internalSessions,
|
|
4435
4543
|
control,
|
|
4436
4544
|
credential,
|
|
4545
|
+
tag,
|
|
4437
4546
|
browserContextId,
|
|
4438
4547
|
});
|
|
4439
4548
|
if (probe.done) return probe.done;
|
package/guard-vectors.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.4",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"validate": "node scripts/validate.mjs",
|
|
80
80
|
"lint": "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 --check && cargo clippy --all-features --all-targets -- -D warnings && cargo check --target wasm32-wasip1 --no-default-features && cargo check --target wasm32-wasip1 --features serde && cargo check --target wasm32-wasip1 --all-features",
|
|
81
81
|
"format": "biome check --write . && gofmt -w . && cargo fmt",
|
|
82
|
-
"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/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-credential-export.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/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-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-discovery.test.mjs test/integration/guard-bfcache-chrome.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-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-apex.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",
|
|
82
|
+
"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/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-credential-export.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/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-discovery.test.mjs test/integration/guard-bfcache-chrome.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-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-apex.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",
|
|
83
83
|
"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 ./...",
|
|
84
84
|
"build": "go build ./... && cargo build --all-features && cargo build --target wasm32-wasip1 --all-features && npm pack --dry-run",
|
|
85
85
|
"prepublishOnly": "node scripts/set-crate-version.mjs \"$npm_package_version\"",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"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"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@ai-ecoverse/slicc-cdp": "2.1.
|
|
94
|
-
"@ai-ecoverse/slicc-shared-web": "2.
|
|
93
|
+
"@ai-ecoverse/slicc-cdp": "2.1.30",
|
|
94
|
+
"@ai-ecoverse/slicc-shared-web": "2.18.0",
|
|
95
95
|
"@biomejs/biome": "2.6.8",
|
|
96
96
|
"ajv": "8.20.0",
|
|
97
97
|
"ajv-formats": "3.0.1",
|