@reticlehq/core 3.7.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.
Files changed (138) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +84 -1217
  4. package/dist/artifacts/drive-script.js +1 -1
  5. package/dist/artifacts/flow-constants.d.ts +15 -0
  6. package/dist/artifacts/flow-constants.js +15 -0
  7. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  8. package/dist/artifacts/flow-expect-flat.js +2 -2
  9. package/dist/artifacts/flow-results.d.ts +26 -0
  10. package/dist/artifacts/flow-types.d.ts +212 -2295
  11. package/dist/artifacts/flow-types.js +14 -2
  12. package/dist/artifacts/harness-credits.d.ts +6 -3
  13. package/dist/artifacts/harness-credits.js +9 -6
  14. package/dist/artifacts/harness-map.d.ts +8 -69
  15. package/dist/artifacts/harness-map.js +1 -1
  16. package/dist/artifacts/hud-notices.d.ts +8 -82
  17. package/dist/artifacts/hud-notices.js +1 -1
  18. package/dist/artifacts/impact.d.ts +104 -1665
  19. package/dist/artifacts/impact.js +38 -21
  20. package/dist/artifacts/journal.d.ts +15 -231
  21. package/dist/artifacts/journal.js +15 -2
  22. package/dist/artifacts/prompt-context.d.ts +7 -33
  23. package/dist/artifacts/prompt-context.js +15 -4
  24. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  25. package/dist/artifacts/screenshot-upload.js +1 -1
  26. package/dist/graph/app-graph.d.ts +137 -0
  27. package/dist/graph/app-graph.js +498 -0
  28. package/dist/hooks/hook-events.d.ts +15 -171
  29. package/dist/hooks/hook-events.js +1 -1
  30. package/dist/hud-entry.js +1 -1
  31. package/dist/identity/checkout.d.ts +41 -0
  32. package/dist/identity/checkout.js +118 -0
  33. package/dist/identity/state-dir.d.ts +23 -0
  34. package/dist/identity/state-dir.js +43 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/onboarding.d.ts +23 -52
  38. package/dist/onboarding.js +20 -1
  39. package/dist/registry/daemon-registry.d.ts +2 -14
  40. package/dist/registry/daemon-registry.js +1 -1
  41. package/dist/registry/dev-server-registry.d.ts +2 -31
  42. package/dist/registry/dev-server-registry.js +1 -1
  43. package/dist/registry/project-registry.d.ts +4 -32
  44. package/dist/registry/project-registry.js +1 -1
  45. package/dist/schema/command-message.json +65 -68
  46. package/dist/schema/command-name.json +29 -33
  47. package/dist/schema/command-result.json +25 -30
  48. package/dist/schema/event-message.json +104 -101
  49. package/dist/schema/event-payloads.json +246 -108
  50. package/dist/schema/event-type.json +47 -48
  51. package/dist/schema/hello-message.json +150 -133
  52. package/dist/schema/reticle-event.json +98 -94
  53. package/dist/schema/reticle-message.json +338 -310
  54. package/dist/telemetry-bug.d.ts +4 -75
  55. package/dist/telemetry-bug.js +1 -1
  56. package/dist/telemetry-entry.d.ts +1 -1
  57. package/dist/telemetry-entry.js +1 -1
  58. package/dist/telemetry-feedback.d.ts +17 -91
  59. package/dist/telemetry-feedback.js +20 -1
  60. package/dist/telemetry-refusal.d.ts +4 -31
  61. package/dist/telemetry-refusal.js +1 -1
  62. package/dist/telemetry-session.d.ts +45 -624
  63. package/dist/telemetry-session.js +25 -12
  64. package/dist/telemetry-signals.d.ts +211 -86
  65. package/dist/telemetry-signals.js +100 -2
  66. package/dist/telemetry.d.ts +321 -1691
  67. package/dist/telemetry.js +72 -6
  68. package/dist/verdict/check-sentence.d.ts +34 -0
  69. package/dist/verdict/check-sentence.js +228 -0
  70. package/dist/verdict/compare-source.d.ts +1 -1
  71. package/dist/verdict/compare-source.js +1 -1
  72. package/dist/verdict/consequence.d.ts +15 -0
  73. package/dist/verdict/consequence.js +11 -0
  74. package/dist/verdict/disparity.d.ts +8 -56
  75. package/dist/verdict/disparity.js +1 -1
  76. package/dist/verdict/findings.d.ts +10 -0
  77. package/dist/verdict/findings.js +13 -0
  78. package/dist/verdict/instrumentation-coverage.d.ts +6 -37
  79. package/dist/verdict/instrumentation-coverage.js +15 -59
  80. package/dist/verdict/instrumentation-gap.d.ts +72 -0
  81. package/dist/verdict/instrumentation-gap.js +64 -0
  82. package/dist/verdict/intent.d.ts +25 -224
  83. package/dist/verdict/intent.js +1 -1
  84. package/dist/verdict/predicate-tree.d.ts +2 -0
  85. package/dist/verdict/predicate-tree.js +16 -0
  86. package/dist/verdict/predicate.d.ts +3 -2
  87. package/dist/verdict/predicate.js +107 -16
  88. package/dist/verdict/property-assertion.d.ts +23 -101
  89. package/dist/verdict/property-assertion.js +1 -1
  90. package/dist/verdict/run-report.d.ts +71 -0
  91. package/dist/verdict/run-report.js +53 -0
  92. package/dist/verdict/security.d.ts +48 -2
  93. package/dist/verdict/security.js +185 -18
  94. package/dist/verdict/verification-run.d.ts +124 -1623
  95. package/dist/verdict/verification-run.js +37 -6
  96. package/dist/verdict/verify-progress.d.ts +22 -64
  97. package/dist/verdict/verify-progress.js +1 -1
  98. package/dist/wire/constants/constants.d.ts +56 -141
  99. package/dist/wire/constants/constants.js +64 -144
  100. package/dist/wire/constants/discovery.d.ts +4 -4
  101. package/dist/wire/constants/discovery.js +4 -4
  102. package/dist/wire/constants/event-types.d.ts +37 -1
  103. package/dist/wire/constants/event-types.js +35 -1
  104. package/dist/wire/constants/hud-controls.js +0 -2
  105. package/dist/wire/constants/hud-use.d.ts +4 -0
  106. package/dist/wire/constants/hud-use.js +4 -0
  107. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  108. package/dist/wire/constants/mcp-wire.js +16 -0
  109. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  110. package/dist/wire/constants/response-body-reason.js +18 -0
  111. package/dist/wire/constants/reticle-env.d.ts +140 -0
  112. package/dist/wire/constants/reticle-env.js +140 -0
  113. package/dist/wire/constants/session-constants.d.ts +11 -0
  114. package/dist/wire/constants/session-constants.js +11 -0
  115. package/dist/wire/event-payloads.d.ts +173 -629
  116. package/dist/wire/event-payloads.js +107 -23
  117. package/dist/wire/event-priority.js +1 -0
  118. package/dist/wire/messages.d.ts +90 -713
  119. package/dist/wire/messages.js +19 -3
  120. package/dist/wire/narrow.d.ts +6 -0
  121. package/dist/wire/narrow.js +26 -0
  122. package/dist/wire/next-step.d.ts +50 -0
  123. package/dist/wire/next-step.js +37 -0
  124. package/dist/wire/platform-link.d.ts +7 -0
  125. package/dist/wire/platform-link.js +14 -8
  126. package/dist/wire/production/activation-ticket.d.ts +64 -0
  127. package/dist/wire/production/activation-ticket.js +148 -0
  128. package/dist/wire/production/hello-mode.d.ts +35 -0
  129. package/dist/wire/production/hello-mode.js +32 -0
  130. package/dist/wire/production/production-policy.d.ts +92 -0
  131. package/dist/wire/production/production-policy.js +133 -0
  132. package/dist/wire/tool-names.d.ts +2 -0
  133. package/dist/wire/tool-names.js +2 -0
  134. package/dist/wire/types.d.ts +102 -700
  135. package/dist/wire/types.js +5 -5
  136. package/dist/words/upgrade.d.ts +3 -13
  137. package/dist/words/upgrade.js +1 -1
  138. package/package.json +7 -4
@@ -1,50 +1,49 @@
1
1
  {
2
- "$ref": "#/definitions/EventType",
3
- "definitions": {
4
- "EventType": {
5
- "type": "string",
6
- "enum": [
7
- "dom.added",
8
- "dom.removed",
9
- "dom.attr",
10
- "dom.text",
11
- "net.request",
12
- "net.pending",
13
- "net.stream",
14
- "perf",
15
- "route.change",
16
- "console.log",
17
- "console.warn",
18
- "console.error",
19
- "console.info",
20
- "console.debug",
21
- "error.uncaught",
22
- "visible.shown",
23
- "anim.start",
24
- "anim.end",
25
- "scroll.position",
26
- "reveal.shown",
27
- "signal",
28
- "state.change",
29
- "storage.change",
30
- "page.health",
31
- "context.opened",
32
- "dialog.opened",
33
- "render.commit",
34
- "focus.change",
35
- "field.change",
36
- "flow.recorded",
37
- "transport.overflow",
38
- "truncated",
39
- "blind-spot",
40
- "sdk.failed",
41
- "net.detail",
42
- "human.control",
43
- "human.mark",
44
- "download",
45
- "hud.used"
46
- ]
47
- }
48
- },
49
- "$schema": "http://json-schema.org/draft-07/schema#"
2
+ "title": "EventType",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "string",
5
+ "enum": [
6
+ "dom.added",
7
+ "dom.removed",
8
+ "dom.attr",
9
+ "dom.text",
10
+ "net.request",
11
+ "net.pending",
12
+ "net.stream",
13
+ "perf",
14
+ "route.change",
15
+ "console.log",
16
+ "console.warn",
17
+ "console.error",
18
+ "console.info",
19
+ "console.debug",
20
+ "error.uncaught",
21
+ "visible.shown",
22
+ "anim.start",
23
+ "anim.end",
24
+ "scroll.position",
25
+ "reveal.shown",
26
+ "signal",
27
+ "state.change",
28
+ "storage.change",
29
+ "page.health",
30
+ "context.opened",
31
+ "dialog.opened",
32
+ "render.commit",
33
+ "focus.change",
34
+ "field.change",
35
+ "flow.recorded",
36
+ "transport.overflow",
37
+ "truncated",
38
+ "blind-spot",
39
+ "sdk.failed",
40
+ "net.detail",
41
+ "net.response-body",
42
+ "human.control",
43
+ "human.mark",
44
+ "download",
45
+ "hud.used",
46
+ "media.state",
47
+ "canvas.digest"
48
+ ]
50
49
  }
@@ -1,150 +1,167 @@
1
1
  {
2
- "$ref": "#/definitions/HelloMessage",
3
- "definitions": {
4
- "HelloMessage": {
2
+ "title": "HelloMessage",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "kind": {
7
+ "type": "string",
8
+ "const": "hello"
9
+ },
10
+ "protocolVersion": {
11
+ "type": "integer",
12
+ "minimum": 1,
13
+ "maximum": 1
14
+ },
15
+ "sessionId": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 128
19
+ },
20
+ "url": {
21
+ "type": "string",
22
+ "maxLength": 4096
23
+ },
24
+ "title": {
25
+ "type": "string",
26
+ "maxLength": 512
27
+ },
28
+ "projectId": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "maxLength": 128
32
+ },
33
+ "adapters": {
34
+ "maxItems": 32,
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "maxLength": 128
39
+ }
40
+ },
41
+ "token": {
42
+ "type": "string",
43
+ "maxLength": 512
44
+ },
45
+ "env": {
46
+ "type": "string",
47
+ "enum": [
48
+ "development",
49
+ "production"
50
+ ]
51
+ },
52
+ "scope": {
53
+ "type": "string",
54
+ "enum": [
55
+ "observe",
56
+ "act"
57
+ ]
58
+ },
59
+ "platform": {
60
+ "type": "string",
61
+ "enum": [
62
+ "web",
63
+ "webview",
64
+ "native",
65
+ "service"
66
+ ]
67
+ },
68
+ "channels": {
69
+ "maxItems": 32,
70
+ "type": "array",
71
+ "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
+ },
86
+ "commands": {
87
+ "maxItems": 32,
88
+ "type": "array",
89
+ "items": {
90
+ "type": "string",
91
+ "maxLength": 512
92
+ }
93
+ },
94
+ "contractParts": {
5
95
  "type": "object",
6
96
  "properties": {
7
- "kind": {
8
- "type": "string",
9
- "const": "hello"
10
- },
11
- "protocolVersion": {
12
- "type": "integer",
13
- "minimum": 1,
14
- "maximum": 1
15
- },
16
- "sessionId": {
17
- "type": "string",
18
- "minLength": 1,
19
- "maxLength": 128
20
- },
21
- "url": {
22
- "type": "string",
23
- "maxLength": 4096
24
- },
25
- "title": {
26
- "type": "string",
27
- "maxLength": 512
28
- },
29
- "projectId": {
30
- "$ref": "#/definitions/HelloMessage/properties/sessionId"
31
- },
32
- "adapters": {
33
- "type": "array",
34
- "items": {
35
- "type": "string",
36
- "maxLength": 128
37
- },
38
- "maxItems": 32
39
- },
40
- "token": {
41
- "type": "string",
42
- "maxLength": 512
43
- },
44
- "platform": {
45
- "type": "string",
46
- "enum": [
47
- "web",
48
- "webview",
49
- "native",
50
- "service"
51
- ]
52
- },
53
- "channels": {
97
+ "commands": {
98
+ "maxItems": 128,
54
99
  "type": "array",
55
100
  "items": {
56
- "type": "string",
57
- "enum": [
58
- "ui",
59
- "net",
60
- "state",
61
- "signal",
62
- "log",
63
- "route",
64
- "storage",
65
- "time",
66
- "visual"
67
- ]
68
- },
69
- "maxItems": 32
101
+ "type": "string"
102
+ }
70
103
  },
71
- "commands": {
104
+ "events": {
105
+ "maxItems": 128,
72
106
  "type": "array",
73
107
  "items": {
74
- "type": "string",
75
- "maxLength": 512
76
- },
77
- "maxItems": 32
78
- },
79
- "contractParts": {
80
- "type": "object",
81
- "properties": {
82
- "commands": {
83
- "type": "array",
84
- "items": {
85
- "type": "string"
86
- },
87
- "maxItems": 128
88
- },
89
- "events": {
90
- "type": "array",
91
- "items": {
92
- "type": "string"
93
- },
94
- "maxItems": 128
95
- },
96
- "actions": {
97
- "type": "array",
98
- "items": {
99
- "type": "string"
100
- },
101
- "maxItems": 128
102
- }
103
- },
104
- "required": [
105
- "commands",
106
- "events",
107
- "actions"
108
- ],
109
- "additionalProperties": false
110
- },
111
- "hasCapabilities": {
112
- "type": "boolean"
113
- },
114
- "captureBodies": {
115
- "type": "boolean"
116
- },
117
- "sourceMapping": {
118
- "type": "boolean"
119
- },
120
- "sdkVersion": {
121
- "type": "string",
122
- "maxLength": 128
123
- },
124
- "contract": {
125
- "type": "string",
126
- "maxLength": 128
108
+ "type": "string"
109
+ }
127
110
  },
128
- "redactKeys": {
111
+ "actions": {
112
+ "maxItems": 128,
129
113
  "type": "array",
130
114
  "items": {
131
- "type": "string",
132
- "minLength": 1,
133
- "maxLength": 128
134
- },
135
- "maxItems": 64
115
+ "type": "string"
116
+ }
136
117
  }
137
118
  },
138
119
  "required": [
139
- "kind",
140
- "protocolVersion",
141
- "sessionId",
142
- "url",
143
- "title",
144
- "adapters"
145
- ],
146
- "additionalProperties": false
120
+ "commands",
121
+ "events",
122
+ "actions"
123
+ ]
124
+ },
125
+ "hasCapabilities": {
126
+ "type": "boolean"
127
+ },
128
+ "captureBodies": {
129
+ "type": "boolean"
130
+ },
131
+ "sourceMapping": {
132
+ "type": "boolean"
133
+ },
134
+ "instrumentation": {
135
+ "type": "string",
136
+ "enum": [
137
+ "installed",
138
+ "injected"
139
+ ]
140
+ },
141
+ "sdkVersion": {
142
+ "type": "string",
143
+ "maxLength": 128
144
+ },
145
+ "contract": {
146
+ "type": "string",
147
+ "maxLength": 128
148
+ },
149
+ "redactKeys": {
150
+ "maxItems": 64,
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 128
156
+ }
147
157
  }
148
158
  },
149
- "$schema": "http://json-schema.org/draft-07/schema#"
159
+ "required": [
160
+ "kind",
161
+ "protocolVersion",
162
+ "sessionId",
163
+ "url",
164
+ "title",
165
+ "adapters"
166
+ ]
150
167
  }
@@ -1,100 +1,104 @@
1
1
  {
2
- "$ref": "#/definitions/ReticleEvent",
3
- "definitions": {
4
- "ReticleEvent": {
2
+ "title": "ReticleEvent",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "t": {
7
+ "type": "number"
8
+ },
9
+ "type": {
10
+ "type": "string",
11
+ "enum": [
12
+ "dom.added",
13
+ "dom.removed",
14
+ "dom.attr",
15
+ "dom.text",
16
+ "net.request",
17
+ "net.pending",
18
+ "net.stream",
19
+ "perf",
20
+ "route.change",
21
+ "console.log",
22
+ "console.warn",
23
+ "console.error",
24
+ "console.info",
25
+ "console.debug",
26
+ "error.uncaught",
27
+ "visible.shown",
28
+ "anim.start",
29
+ "anim.end",
30
+ "scroll.position",
31
+ "reveal.shown",
32
+ "signal",
33
+ "state.change",
34
+ "storage.change",
35
+ "page.health",
36
+ "context.opened",
37
+ "dialog.opened",
38
+ "render.commit",
39
+ "focus.change",
40
+ "field.change",
41
+ "flow.recorded",
42
+ "transport.overflow",
43
+ "truncated",
44
+ "blind-spot",
45
+ "sdk.failed",
46
+ "net.detail",
47
+ "net.response-body",
48
+ "human.control",
49
+ "human.mark",
50
+ "download",
51
+ "hud.used",
52
+ "media.state",
53
+ "canvas.digest"
54
+ ]
55
+ },
56
+ "sessionId": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 128
60
+ },
61
+ "ref": {
62
+ "type": "string",
63
+ "maxLength": 128
64
+ },
65
+ "seq": {
66
+ "type": "integer",
67
+ "minimum": 0,
68
+ "maximum": 9007199254740991
69
+ },
70
+ "actionId": {
71
+ "type": "string",
72
+ "maxLength": 128
73
+ },
74
+ "attribution": {
75
+ "type": "string",
76
+ "enum": [
77
+ "window"
78
+ ]
79
+ },
80
+ "documentId": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 8
84
+ },
85
+ "editEpoch": {
86
+ "type": "integer",
87
+ "minimum": 0,
88
+ "maximum": 9007199254740991
89
+ },
90
+ "data": {
91
+ "default": {},
5
92
  "type": "object",
6
- "properties": {
7
- "t": {
8
- "type": "number"
9
- },
10
- "type": {
11
- "type": "string",
12
- "enum": [
13
- "dom.added",
14
- "dom.removed",
15
- "dom.attr",
16
- "dom.text",
17
- "net.request",
18
- "net.pending",
19
- "net.stream",
20
- "perf",
21
- "route.change",
22
- "console.log",
23
- "console.warn",
24
- "console.error",
25
- "console.info",
26
- "console.debug",
27
- "error.uncaught",
28
- "visible.shown",
29
- "anim.start",
30
- "anim.end",
31
- "scroll.position",
32
- "reveal.shown",
33
- "signal",
34
- "state.change",
35
- "storage.change",
36
- "page.health",
37
- "context.opened",
38
- "dialog.opened",
39
- "render.commit",
40
- "focus.change",
41
- "field.change",
42
- "flow.recorded",
43
- "transport.overflow",
44
- "truncated",
45
- "blind-spot",
46
- "sdk.failed",
47
- "net.detail",
48
- "human.control",
49
- "human.mark",
50
- "download",
51
- "hud.used"
52
- ]
53
- },
54
- "sessionId": {
55
- "type": "string",
56
- "minLength": 1,
57
- "maxLength": 128
58
- },
59
- "ref": {
60
- "type": "string",
61
- "maxLength": 128
62
- },
63
- "seq": {
64
- "type": "integer",
65
- "minimum": 0
66
- },
67
- "actionId": {
68
- "$ref": "#/definitions/ReticleEvent/properties/ref"
69
- },
70
- "attribution": {
71
- "type": "string",
72
- "enum": [
73
- "window"
74
- ]
75
- },
76
- "documentId": {
77
- "type": "string",
78
- "minLength": 1,
79
- "maxLength": 8
80
- },
81
- "editEpoch": {
82
- "type": "integer",
83
- "minimum": 0
84
- },
85
- "data": {
86
- "type": "object",
87
- "additionalProperties": {},
88
- "default": {}
89
- }
93
+ "propertyNames": {
94
+ "type": "string"
90
95
  },
91
- "required": [
92
- "t",
93
- "type",
94
- "sessionId"
95
- ],
96
- "additionalProperties": false
96
+ "additionalProperties": {}
97
97
  }
98
98
  },
99
- "$schema": "http://json-schema.org/draft-07/schema#"
99
+ "required": [
100
+ "t",
101
+ "type",
102
+ "sessionId"
103
+ ]
100
104
  }