@reticlehq/core 3.8.0 → 3.8.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.
Files changed (97) hide show
  1. package/dist/artifacts/drive-script.d.ts +84 -1217
  2. package/dist/artifacts/drive-script.js +1 -1
  3. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  4. package/dist/artifacts/flow-expect-flat.js +2 -2
  5. package/dist/artifacts/flow-results.d.ts +15 -0
  6. package/dist/artifacts/flow-types.d.ts +202 -2331
  7. package/dist/artifacts/flow-types.js +2 -2
  8. package/dist/artifacts/harness-map.d.ts +8 -69
  9. package/dist/artifacts/harness-map.js +1 -1
  10. package/dist/artifacts/hud-notices.d.ts +8 -82
  11. package/dist/artifacts/hud-notices.js +1 -1
  12. package/dist/artifacts/impact.d.ts +80 -1638
  13. package/dist/artifacts/impact.js +4 -4
  14. package/dist/artifacts/journal.d.ts +12 -247
  15. package/dist/artifacts/journal.js +2 -2
  16. package/dist/artifacts/prompt-context.d.ts +5 -43
  17. package/dist/artifacts/prompt-context.js +1 -1
  18. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  19. package/dist/artifacts/screenshot-upload.js +1 -1
  20. package/dist/hooks/hook-events.d.ts +15 -171
  21. package/dist/hooks/hook-events.js +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/onboarding.d.ts +8 -58
  25. package/dist/onboarding.js +1 -1
  26. package/dist/registry/daemon-registry.d.ts +2 -14
  27. package/dist/registry/daemon-registry.js +1 -1
  28. package/dist/registry/dev-server-registry.d.ts +2 -31
  29. package/dist/registry/dev-server-registry.js +1 -1
  30. package/dist/registry/project-registry.d.ts +4 -32
  31. package/dist/registry/project-registry.js +1 -1
  32. package/dist/schema/command-message.json +65 -68
  33. package/dist/schema/command-name.json +29 -33
  34. package/dist/schema/command-result.json +25 -30
  35. package/dist/schema/event-message.json +104 -103
  36. package/dist/schema/event-payloads.json +142 -119
  37. package/dist/schema/event-type.json +47 -50
  38. package/dist/schema/hello-message.json +150 -154
  39. package/dist/schema/reticle-event.json +98 -96
  40. package/dist/schema/reticle-message.json +338 -333
  41. package/dist/telemetry-bug.d.ts +4 -75
  42. package/dist/telemetry-bug.js +1 -1
  43. package/dist/telemetry-feedback.d.ts +11 -99
  44. package/dist/telemetry-feedback.js +1 -1
  45. package/dist/telemetry-refusal.d.ts +4 -31
  46. package/dist/telemetry-refusal.js +1 -1
  47. package/dist/telemetry-session.d.ts +39 -633
  48. package/dist/telemetry-session.js +10 -8
  49. package/dist/telemetry-signals.d.ts +58 -151
  50. package/dist/telemetry-signals.js +12 -1
  51. package/dist/telemetry.d.ts +137 -1814
  52. package/dist/telemetry.js +1 -1
  53. package/dist/verdict/compare-source.d.ts +1 -1
  54. package/dist/verdict/compare-source.js +1 -1
  55. package/dist/verdict/disparity.d.ts +8 -56
  56. package/dist/verdict/disparity.js +1 -1
  57. package/dist/verdict/instrumentation-coverage.d.ts +3 -3
  58. package/dist/verdict/instrumentation-coverage.js +1 -1
  59. package/dist/verdict/instrumentation-gap.d.ts +3 -10
  60. package/dist/verdict/instrumentation-gap.js +1 -1
  61. package/dist/verdict/intent.d.ts +25 -224
  62. package/dist/verdict/intent.js +1 -1
  63. package/dist/verdict/predicate.d.ts +1 -1
  64. package/dist/verdict/predicate.js +5 -5
  65. package/dist/verdict/property-assertion.d.ts +23 -101
  66. package/dist/verdict/property-assertion.js +1 -1
  67. package/dist/verdict/run-report.d.ts +13 -108
  68. package/dist/verdict/run-report.js +1 -1
  69. package/dist/verdict/security.d.ts +12 -0
  70. package/dist/verdict/security.js +94 -7
  71. package/dist/verdict/verification-run.d.ts +112 -1668
  72. package/dist/verdict/verification-run.js +4 -4
  73. package/dist/verdict/verify-progress.d.ts +22 -64
  74. package/dist/verdict/verify-progress.js +1 -1
  75. package/dist/wire/click-input.d.ts +15 -0
  76. package/dist/wire/click-input.js +42 -0
  77. package/dist/wire/constants/event-types.d.ts +2 -0
  78. package/dist/wire/constants/event-types.js +2 -0
  79. package/dist/wire/constants/response-body-reason.d.ts +4 -4
  80. package/dist/wire/constants/response-body-reason.js +4 -4
  81. package/dist/wire/constants/reticle-env.d.ts +2 -0
  82. package/dist/wire/constants/reticle-env.js +2 -0
  83. package/dist/wire/event-payloads.d.ts +108 -678
  84. package/dist/wire/event-payloads.js +24 -7
  85. package/dist/wire/event-priority.js +1 -0
  86. package/dist/wire/messages.d.ts +66 -755
  87. package/dist/wire/messages.js +3 -3
  88. package/dist/wire/next-step.d.ts +11 -51
  89. package/dist/wire/next-step.js +1 -1
  90. package/dist/wire/platform-link.js +2 -2
  91. package/dist/wire/production/production-policy.d.ts +37 -83
  92. package/dist/wire/production/production-policy.js +1 -1
  93. package/dist/wire/types.d.ts +75 -698
  94. package/dist/wire/types.js +5 -5
  95. package/dist/words/upgrade.d.ts +3 -13
  96. package/dist/words/upgrade.js +1 -1
  97. package/package.json +4 -5
@@ -1,380 +1,385 @@
1
1
  {
2
- "$ref": "#/definitions/ReticleMessage",
3
- "definitions": {
4
- "ReticleMessage": {
5
- "anyOf": [
6
- {
2
+ "title": "ReticleMessage",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "oneOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "kind": {
9
+ "type": "string",
10
+ "const": "hello"
11
+ },
12
+ "protocolVersion": {
13
+ "type": "integer",
14
+ "minimum": 1,
15
+ "maximum": 1
16
+ },
17
+ "sessionId": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 128
21
+ },
22
+ "url": {
23
+ "type": "string",
24
+ "maxLength": 4096
25
+ },
26
+ "title": {
27
+ "type": "string",
28
+ "maxLength": 512
29
+ },
30
+ "projectId": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 128
34
+ },
35
+ "adapters": {
36
+ "maxItems": 32,
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string",
40
+ "maxLength": 128
41
+ }
42
+ },
43
+ "token": {
44
+ "type": "string",
45
+ "maxLength": 512
46
+ },
47
+ "env": {
48
+ "type": "string",
49
+ "enum": [
50
+ "development",
51
+ "production"
52
+ ]
53
+ },
54
+ "scope": {
55
+ "type": "string",
56
+ "enum": [
57
+ "observe",
58
+ "act"
59
+ ]
60
+ },
61
+ "platform": {
62
+ "type": "string",
63
+ "enum": [
64
+ "web",
65
+ "webview",
66
+ "native",
67
+ "service"
68
+ ]
69
+ },
70
+ "channels": {
71
+ "maxItems": 32,
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string",
75
+ "enum": [
76
+ "ui",
77
+ "net",
78
+ "state",
79
+ "signal",
80
+ "log",
81
+ "route",
82
+ "storage",
83
+ "time",
84
+ "visual"
85
+ ]
86
+ }
87
+ },
88
+ "commands": {
89
+ "maxItems": 32,
90
+ "type": "array",
91
+ "items": {
92
+ "type": "string",
93
+ "maxLength": 512
94
+ }
95
+ },
96
+ "contractParts": {
7
97
  "type": "object",
8
98
  "properties": {
9
- "kind": {
10
- "type": "string",
11
- "const": "hello"
12
- },
13
- "protocolVersion": {
14
- "type": "integer",
15
- "minimum": 1,
16
- "maximum": 1
17
- },
18
- "sessionId": {
19
- "type": "string",
20
- "minLength": 1,
21
- "maxLength": 128
22
- },
23
- "url": {
24
- "type": "string",
25
- "maxLength": 4096
26
- },
27
- "title": {
28
- "type": "string",
29
- "maxLength": 512
30
- },
31
- "projectId": {
32
- "$ref": "#/definitions/ReticleMessage/anyOf/0/properties/sessionId"
33
- },
34
- "adapters": {
99
+ "commands": {
100
+ "maxItems": 128,
35
101
  "type": "array",
36
102
  "items": {
37
- "type": "string",
38
- "maxLength": 128
39
- },
40
- "maxItems": 32
103
+ "type": "string"
104
+ }
41
105
  },
42
- "token": {
43
- "type": "string",
44
- "maxLength": 512
45
- },
46
- "env": {
47
- "type": "string",
48
- "enum": [
49
- "development",
50
- "production"
51
- ]
52
- },
53
- "scope": {
54
- "type": "string",
55
- "enum": [
56
- "observe",
57
- "act"
58
- ]
59
- },
60
- "platform": {
61
- "type": "string",
62
- "enum": [
63
- "web",
64
- "webview",
65
- "native",
66
- "service"
67
- ]
68
- },
69
- "channels": {
106
+ "events": {
107
+ "maxItems": 128,
70
108
  "type": "array",
71
109
  "items": {
72
- "type": "string",
73
- "enum": [
74
- "ui",
75
- "net",
76
- "state",
77
- "signal",
78
- "log",
79
- "route",
80
- "storage",
81
- "time",
82
- "visual"
83
- ]
84
- },
85
- "maxItems": 32
110
+ "type": "string"
111
+ }
86
112
  },
87
- "commands": {
113
+ "actions": {
114
+ "maxItems": 128,
88
115
  "type": "array",
89
116
  "items": {
90
- "type": "string",
91
- "maxLength": 512
92
- },
93
- "maxItems": 32
94
- },
95
- "contractParts": {
96
- "type": "object",
97
- "properties": {
98
- "commands": {
99
- "type": "array",
100
- "items": {
101
- "type": "string"
102
- },
103
- "maxItems": 128
104
- },
105
- "events": {
106
- "type": "array",
107
- "items": {
108
- "type": "string"
109
- },
110
- "maxItems": 128
111
- },
112
- "actions": {
113
- "type": "array",
114
- "items": {
115
- "type": "string"
116
- },
117
- "maxItems": 128
118
- }
119
- },
120
- "required": [
121
- "commands",
122
- "events",
123
- "actions"
124
- ],
125
- "additionalProperties": false
126
- },
127
- "hasCapabilities": {
128
- "type": "boolean"
129
- },
130
- "captureBodies": {
131
- "type": "boolean"
132
- },
133
- "sourceMapping": {
134
- "type": "boolean"
135
- },
136
- "instrumentation": {
137
- "type": "string",
138
- "enum": [
139
- "installed",
140
- "injected"
141
- ]
142
- },
143
- "sdkVersion": {
144
- "type": "string",
145
- "maxLength": 128
146
- },
147
- "contract": {
148
- "type": "string",
149
- "maxLength": 128
150
- },
151
- "redactKeys": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ },
121
+ "required": [
122
+ "commands",
123
+ "events",
124
+ "actions"
125
+ ]
126
+ },
127
+ "hasCapabilities": {
128
+ "type": "boolean"
129
+ },
130
+ "captureBodies": {
131
+ "type": "boolean"
132
+ },
133
+ "sourceMapping": {
134
+ "type": "boolean"
135
+ },
136
+ "instrumentation": {
137
+ "type": "string",
138
+ "enum": [
139
+ "installed",
140
+ "injected"
141
+ ]
142
+ },
143
+ "sdkVersion": {
144
+ "type": "string",
145
+ "maxLength": 128
146
+ },
147
+ "contract": {
148
+ "type": "string",
149
+ "maxLength": 128
150
+ },
151
+ "redactKeys": {
152
+ "maxItems": 64,
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "maxLength": 128
158
+ }
159
+ }
160
+ },
161
+ "required": [
162
+ "kind",
163
+ "protocolVersion",
164
+ "sessionId",
165
+ "url",
166
+ "title",
167
+ "adapters"
168
+ ]
169
+ },
170
+ {
171
+ "type": "object",
172
+ "properties": {
173
+ "kind": {
174
+ "type": "string",
175
+ "const": "command"
176
+ },
177
+ "id": {
178
+ "type": "string",
179
+ "minLength": 1,
180
+ "maxLength": 128
181
+ },
182
+ "sessionId": {
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 128
186
+ },
187
+ "name": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 128
191
+ },
192
+ "args": {
193
+ "default": {},
194
+ "type": "object",
195
+ "propertyNames": {
196
+ "type": "string"
197
+ },
198
+ "additionalProperties": {}
199
+ },
200
+ "by": {
201
+ "type": "string",
202
+ "enum": [
203
+ "harness"
204
+ ]
205
+ },
206
+ "outward": {
207
+ "type": "object",
208
+ "properties": {
209
+ "allowed": {
210
+ "maxItems": 16,
152
211
  "type": "array",
153
212
  "items": {
154
213
  "type": "string",
155
- "minLength": 1,
156
- "maxLength": 128
157
- },
158
- "maxItems": 64
214
+ "enum": [
215
+ "invite",
216
+ "send",
217
+ "share",
218
+ "delete",
219
+ "pay",
220
+ "publish",
221
+ "revoke",
222
+ "transfer",
223
+ "sign out",
224
+ "change role",
225
+ "create key",
226
+ "change state"
227
+ ]
228
+ }
159
229
  }
160
230
  },
161
231
  "required": [
162
- "kind",
163
- "protocolVersion",
164
- "sessionId",
165
- "url",
166
- "title",
167
- "adapters"
168
- ],
169
- "additionalProperties": false
232
+ "allowed"
233
+ ]
234
+ }
235
+ },
236
+ "required": [
237
+ "kind",
238
+ "id",
239
+ "name"
240
+ ]
241
+ },
242
+ {
243
+ "type": "object",
244
+ "properties": {
245
+ "kind": {
246
+ "type": "string",
247
+ "const": "command_result"
248
+ },
249
+ "id": {
250
+ "type": "string",
251
+ "minLength": 1,
252
+ "maxLength": 128
253
+ },
254
+ "ok": {
255
+ "type": "boolean"
256
+ },
257
+ "result": {},
258
+ "error": {
259
+ "type": "string",
260
+ "maxLength": 4096
261
+ }
262
+ },
263
+ "required": [
264
+ "kind",
265
+ "id",
266
+ "ok"
267
+ ]
268
+ },
269
+ {
270
+ "type": "object",
271
+ "properties": {
272
+ "kind": {
273
+ "type": "string",
274
+ "const": "event"
170
275
  },
171
- {
276
+ "event": {
172
277
  "type": "object",
173
278
  "properties": {
174
- "kind": {
279
+ "t": {
280
+ "type": "number"
281
+ },
282
+ "type": {
175
283
  "type": "string",
176
- "const": "command"
284
+ "enum": [
285
+ "dom.added",
286
+ "dom.removed",
287
+ "dom.attr",
288
+ "dom.text",
289
+ "net.request",
290
+ "net.pending",
291
+ "net.stream",
292
+ "perf",
293
+ "route.change",
294
+ "console.log",
295
+ "console.warn",
296
+ "console.error",
297
+ "console.info",
298
+ "console.debug",
299
+ "error.uncaught",
300
+ "visible.shown",
301
+ "anim.start",
302
+ "anim.end",
303
+ "scroll.position",
304
+ "reveal.shown",
305
+ "signal",
306
+ "state.change",
307
+ "storage.change",
308
+ "page.health",
309
+ "context.opened",
310
+ "dialog.opened",
311
+ "render.commit",
312
+ "focus.change",
313
+ "field.change",
314
+ "flow.recorded",
315
+ "transport.overflow",
316
+ "truncated",
317
+ "blind-spot",
318
+ "sdk.failed",
319
+ "net.detail",
320
+ "net.response-body",
321
+ "human.control",
322
+ "human.mark",
323
+ "download",
324
+ "hud.used",
325
+ "media.state",
326
+ "canvas.digest"
327
+ ]
177
328
  },
178
- "id": {
329
+ "sessionId": {
179
330
  "type": "string",
180
331
  "minLength": 1,
181
332
  "maxLength": 128
182
333
  },
183
- "sessionId": {
184
- "$ref": "#/definitions/ReticleMessage/anyOf/0/properties/sessionId"
185
- },
186
- "name": {
334
+ "ref": {
187
335
  "type": "string",
188
- "minLength": 1,
189
336
  "maxLength": 128
190
337
  },
191
- "args": {
192
- "type": "object",
193
- "additionalProperties": {},
194
- "default": {}
338
+ "seq": {
339
+ "type": "integer",
340
+ "minimum": 0,
341
+ "maximum": 9007199254740991
195
342
  },
196
- "by": {
343
+ "actionId": {
197
344
  "type": "string",
198
- "enum": [
199
- "harness"
200
- ]
345
+ "maxLength": 128
201
346
  },
202
- "outward": {
203
- "type": "object",
204
- "properties": {
205
- "allowed": {
206
- "type": "array",
207
- "items": {
208
- "type": "string",
209
- "enum": [
210
- "invite",
211
- "send",
212
- "share",
213
- "delete",
214
- "pay",
215
- "publish",
216
- "revoke",
217
- "transfer",
218
- "sign out",
219
- "change role",
220
- "create key",
221
- "change state"
222
- ]
223
- },
224
- "maxItems": 16
225
- }
226
- },
227
- "required": [
228
- "allowed"
229
- ],
230
- "additionalProperties": false
231
- }
232
- },
233
- "required": [
234
- "kind",
235
- "id",
236
- "name"
237
- ],
238
- "additionalProperties": false
239
- },
240
- {
241
- "type": "object",
242
- "properties": {
243
- "kind": {
347
+ "attribution": {
244
348
  "type": "string",
245
- "const": "command_result"
349
+ "enum": [
350
+ "window"
351
+ ]
246
352
  },
247
- "id": {
353
+ "documentId": {
248
354
  "type": "string",
249
355
  "minLength": 1,
250
- "maxLength": 128
356
+ "maxLength": 8
251
357
  },
252
- "ok": {
253
- "type": "boolean"
254
- },
255
- "result": {},
256
- "error": {
257
- "type": "string",
258
- "maxLength": 4096
259
- }
260
- },
261
- "required": [
262
- "kind",
263
- "id",
264
- "ok"
265
- ],
266
- "additionalProperties": false
267
- },
268
- {
269
- "type": "object",
270
- "properties": {
271
- "kind": {
272
- "type": "string",
273
- "const": "event"
358
+ "editEpoch": {
359
+ "type": "integer",
360
+ "minimum": 0,
361
+ "maximum": 9007199254740991
274
362
  },
275
- "event": {
363
+ "data": {
364
+ "default": {},
276
365
  "type": "object",
277
- "properties": {
278
- "t": {
279
- "type": "number"
280
- },
281
- "type": {
282
- "type": "string",
283
- "enum": [
284
- "dom.added",
285
- "dom.removed",
286
- "dom.attr",
287
- "dom.text",
288
- "net.request",
289
- "net.pending",
290
- "net.stream",
291
- "perf",
292
- "route.change",
293
- "console.log",
294
- "console.warn",
295
- "console.error",
296
- "console.info",
297
- "console.debug",
298
- "error.uncaught",
299
- "visible.shown",
300
- "anim.start",
301
- "anim.end",
302
- "scroll.position",
303
- "reveal.shown",
304
- "signal",
305
- "state.change",
306
- "storage.change",
307
- "page.health",
308
- "context.opened",
309
- "dialog.opened",
310
- "render.commit",
311
- "focus.change",
312
- "field.change",
313
- "flow.recorded",
314
- "transport.overflow",
315
- "truncated",
316
- "blind-spot",
317
- "sdk.failed",
318
- "net.detail",
319
- "human.control",
320
- "human.mark",
321
- "download",
322
- "hud.used",
323
- "media.state",
324
- "canvas.digest"
325
- ]
326
- },
327
- "sessionId": {
328
- "$ref": "#/definitions/ReticleMessage/anyOf/0/properties/sessionId"
329
- },
330
- "ref": {
331
- "type": "string",
332
- "maxLength": 128
333
- },
334
- "seq": {
335
- "type": "integer",
336
- "minimum": 0
337
- },
338
- "actionId": {
339
- "$ref": "#/definitions/ReticleMessage/anyOf/3/properties/event/properties/ref"
340
- },
341
- "attribution": {
342
- "type": "string",
343
- "enum": [
344
- "window"
345
- ]
346
- },
347
- "documentId": {
348
- "type": "string",
349
- "minLength": 1,
350
- "maxLength": 8
351
- },
352
- "editEpoch": {
353
- "type": "integer",
354
- "minimum": 0
355
- },
356
- "data": {
357
- "type": "object",
358
- "additionalProperties": {},
359
- "default": {}
360
- }
366
+ "propertyNames": {
367
+ "type": "string"
361
368
  },
362
- "required": [
363
- "t",
364
- "type",
365
- "sessionId"
366
- ],
367
- "additionalProperties": false
369
+ "additionalProperties": {}
368
370
  }
369
371
  },
370
372
  "required": [
371
- "kind",
372
- "event"
373
- ],
374
- "additionalProperties": false
373
+ "t",
374
+ "type",
375
+ "sessionId"
376
+ ]
375
377
  }
378
+ },
379
+ "required": [
380
+ "kind",
381
+ "event"
376
382
  ]
377
383
  }
378
- },
379
- "$schema": "http://json-schema.org/draft-07/schema#"
384
+ ]
380
385
  }