@reticlehq/core 3.8.0 → 3.8.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/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +3 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
import { CanvasTrigger, EventType, MediaEvent, PerfMetric } from './constants/constants.js';
|
|
3
|
+
import { ResponseBodyReason } from './constants/response-body-reason.js';
|
|
3
4
|
import { BlindSpotKind } from '../verdict/verified-constants.js';
|
|
4
5
|
import { BrowserBrand } from '../telemetry-feedback.js';
|
|
5
6
|
import { HudUseDataSchema, HumanControlDataSchema, HumanMarkDataSchema } from './messages.js';
|
|
@@ -102,7 +103,10 @@ export const SeedCookieSchema = z.object({
|
|
|
102
103
|
sameSite: z.enum(['Strict', 'Lax', 'None']).optional().describe('SameSite policy.'),
|
|
103
104
|
expires: z.number().optional().describe('Unix timestamp in seconds for cookie expiration.'),
|
|
104
105
|
});
|
|
105
|
-
export const SeedCookiesSchema = z.union([
|
|
106
|
+
export const SeedCookiesSchema = z.union([
|
|
107
|
+
z.record(z.string(), z.string()),
|
|
108
|
+
z.array(SeedCookieSchema),
|
|
109
|
+
]);
|
|
106
110
|
/**
|
|
107
111
|
* Client storage and session state to seed into an isolated context before the first navigation.
|
|
108
112
|
* Matches the three storage areas Reticle already observes (localStorage, sessionStorage, cookies).
|
|
@@ -110,11 +114,11 @@ export const SeedCookiesSchema = z.union([z.record(z.string()), z.array(SeedCook
|
|
|
110
114
|
export const SeedStorageSchema = z
|
|
111
115
|
.object({
|
|
112
116
|
local: z
|
|
113
|
-
.record(z.string())
|
|
117
|
+
.record(z.string(), z.string())
|
|
114
118
|
.optional()
|
|
115
119
|
.describe('Key-value pairs to seed into window.localStorage before first navigation.'),
|
|
116
120
|
session: z
|
|
117
|
-
.record(z.string())
|
|
121
|
+
.record(z.string(), z.string())
|
|
118
122
|
.optional()
|
|
119
123
|
.describe('Key-value pairs to seed into window.sessionStorage before first navigation.'),
|
|
120
124
|
cookies: SeedCookiesSchema.optional().describe('Cookies to seed before first navigation: a name-value record scoped to the lease URL or an array of cookie objects.'),
|
|
@@ -237,7 +241,9 @@ export const EVENT_PAYLOAD_SCHEMAS = {
|
|
|
237
241
|
}),
|
|
238
242
|
[EventType.REVEAL_SHOWN]: elementLabel.passthrough(),
|
|
239
243
|
[EventType.SIGNAL]: z.object({ name: z.string(), data: z.unknown().optional() }),
|
|
240
|
-
[EventType.STATE_CHANGE]: z
|
|
244
|
+
[EventType.STATE_CHANGE]: z
|
|
245
|
+
.object({ name: z.string(), value: z.unknown().optional() })
|
|
246
|
+
.passthrough(),
|
|
241
247
|
[EventType.STORAGE_CHANGE]: z.object({
|
|
242
248
|
area: z.nativeEnum(StorageArea),
|
|
243
249
|
key: z.string(),
|
|
@@ -314,7 +320,7 @@ export const EVENT_PAYLOAD_SCHEMAS = {
|
|
|
314
320
|
[FieldChangeField.PREVIOUS]: z.string().optional(),
|
|
315
321
|
[FieldChangeField.PREVIOUS_CHECKED]: z.boolean().optional(),
|
|
316
322
|
}),
|
|
317
|
-
[EventType.FLOW_RECORDED]: z.object({ name: z.string(), flow: z.unknown() }),
|
|
323
|
+
[EventType.FLOW_RECORDED]: z.object({ name: z.string(), flow: z.unknown().optional() }),
|
|
318
324
|
[EventType.TRANSPORT_OVERFLOW]: z.object({ dropped: z.number() }),
|
|
319
325
|
[EventType.TRUNCATED]: z.object({ channel: z.string(), dropped: z.number() }),
|
|
320
326
|
[EventType.BLIND_SPOT]: z.object({ kind: z.nativeEnum(BlindSpotKind), count: z.number() }),
|
|
@@ -330,10 +336,21 @@ export const EVENT_PAYLOAD_SCHEMAS = {
|
|
|
330
336
|
url: z.string(),
|
|
331
337
|
method: z.string().optional(),
|
|
332
338
|
status: z.number(),
|
|
333
|
-
headers: z.record(z.string()),
|
|
339
|
+
headers: z.record(z.string(), z.string()),
|
|
334
340
|
resourceType: z.string().optional(),
|
|
335
341
|
})
|
|
336
342
|
.passthrough(),
|
|
343
|
+
[EventType.NET_RESPONSE_BODY]: z
|
|
344
|
+
.object({
|
|
345
|
+
id: z.string(),
|
|
346
|
+
method: z.string(),
|
|
347
|
+
url: z.string(),
|
|
348
|
+
urlRaw: z.string().optional(),
|
|
349
|
+
responseBody: z.string(),
|
|
350
|
+
responseBodyTruncated: z.boolean().optional(),
|
|
351
|
+
responseBodyReason: z.nativeEnum(ResponseBodyReason).optional(),
|
|
352
|
+
})
|
|
353
|
+
.passthrough(),
|
|
337
354
|
[EventType.HUMAN_CONTROL]: HumanControlDataSchema,
|
|
338
355
|
[EventType.HUMAN_MARK]: HumanMarkDataSchema,
|
|
339
356
|
[EventType.HUD_USED]: HudUseDataSchema,
|