@intentic/sandbox-contract 1.424.0 → 1.426.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.
- package/README.md +2 -2
- package/dist/contracts/access-profiles.contract.d.ts +7 -3
- package/dist/contracts/access-profiles.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +51 -10
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +1 -1
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +13 -5
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +1 -1
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +1 -1
- package/dist/contracts/needs.contract.d.ts +41 -26
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.js +2 -2
- package/dist/contracts/needs.contract.js.map +1 -1
- package/dist/contracts/org.contract.d.ts +3 -0
- package/dist/contracts/org.contract.d.ts.map +1 -1
- package/dist/contracts/{personas.contract.d.ts → roles.contract.d.ts} +3 -39
- package/dist/contracts/roles.contract.d.ts.map +1 -0
- package/dist/contracts/roles.contract.js +78 -0
- package/dist/contracts/roles.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +30 -6
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +5 -1
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +2 -2
- package/dist/contracts/skills.contract.d.ts +3 -3
- package/dist/contracts/skills.contract.js +1 -1
- package/dist/contracts/skills.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +14 -16
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +20 -4
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-transcript.d.ts +5 -1
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +7 -7
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/system-events.js +3 -3
- package/dist/events/system-events.js.map +1 -1
- package/dist/events/transcript.d.ts +25 -5
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models/model-roles.d.ts +1 -1
- package/dist/models/model-roles.d.ts.map +1 -1
- package/dist/models/model-roles.js +1 -1
- package/dist/models/model-roles.js.map +1 -1
- package/dist/netd/browser-wire.d.ts +11 -1
- package/dist/netd/browser-wire.d.ts.map +1 -1
- package/dist/netd/browser-wire.js +10 -0
- package/dist/netd/browser-wire.js.map +1 -1
- package/dist/netd/generated/browser-wire.d.ts +125 -0
- package/dist/netd/generated/browser-wire.d.ts.map +1 -1
- package/dist/policy/org-locks.d.ts +1 -1
- package/dist/policy/org-locks.d.ts.map +1 -1
- package/dist/policy/org-locks.js +1 -1
- package/dist/policy/org-locks.js.map +1 -1
- package/dist/policy/role-capability.d.ts +7 -0
- package/dist/policy/role-capability.d.ts.map +1 -0
- package/dist/policy/role-capability.js +3 -0
- package/dist/policy/role-capability.js.map +1 -0
- package/dist/policy/role-home.d.ts +9 -0
- package/dist/policy/role-home.d.ts.map +1 -0
- package/dist/policy/role-home.js +7 -0
- package/dist/policy/role-home.js.map +1 -0
- package/dist/protocol/member-reach.d.ts +4 -4
- package/dist/protocol/member-reach.js +3 -3
- package/dist/protocol/raw/raw-json-routes.d.ts +29 -23
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/route-meta.d.ts +4 -4
- package/dist/schemas/access-profiles.d.ts +10 -4
- package/dist/schemas/access-profiles.d.ts.map +1 -1
- package/dist/schemas/access-profiles.js +9 -4
- package/dist/schemas/access-profiles.js.map +1 -1
- package/dist/schemas/agent.js +3 -3
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.js +2 -2
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/approvals.d.ts +3 -3
- package/dist/schemas/approvals.js +3 -3
- package/dist/schemas/approvals.js.map +1 -1
- package/dist/schemas/automations.js +6 -6
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/chat-route.d.ts +7 -2
- package/dist/schemas/chat-route.d.ts.map +1 -1
- package/dist/schemas/chat-route.js +11 -6
- package/dist/schemas/chat-route.js.map +1 -1
- package/dist/schemas/context-trim.js +1 -1
- package/dist/schemas/context-trim.js.map +1 -1
- package/dist/schemas/diagnostics.d.ts +3 -3
- package/dist/schemas/git/git.js +1 -1
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/links.d.ts +1 -1
- package/dist/schemas/links.js +4 -4
- package/dist/schemas/links.js.map +1 -1
- package/dist/schemas/loops.js +1 -1
- package/dist/schemas/loops.js.map +1 -1
- package/dist/schemas/members.d.ts +162 -20
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +19 -16
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/needs.d.ts +37 -42
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +18 -16
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/organisation.d.ts +10 -0
- package/dist/schemas/organisation.d.ts.map +1 -1
- package/dist/schemas/organisation.js.map +1 -1
- package/dist/schemas/{personas.d.ts → roles.d.ts} +37 -72
- package/dist/schemas/roles.d.ts.map +1 -0
- package/dist/schemas/{personas.js → roles.js} +45 -67
- package/dist/schemas/roles.js.map +1 -0
- package/dist/schemas/settings-history.d.ts +1 -1
- package/dist/schemas/settings-history.d.ts.map +1 -1
- package/dist/schemas/settings-history.js +2 -1
- package/dist/schemas/settings-history.js.map +1 -1
- package/dist/schemas/settings.d.ts +11 -11
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +3 -3
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/shared.d.ts +6 -5
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +14 -5
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/system-prompt.d.ts +12 -12
- package/dist/schemas/system-prompt.d.ts.map +1 -1
- package/dist/schemas/system-prompt.js +1 -1
- package/dist/schemas/system-prompt.js.map +1 -1
- package/dist/schemas/terminal.d.ts +26 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +22 -2
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/tool-ceiling.d.ts +4 -2
- package/dist/schemas/tool-ceiling.d.ts.map +1 -1
- package/dist/schemas/tool-ceiling.js +29 -3
- package/dist/schemas/tool-ceiling.js.map +1 -1
- package/dist/schemas/workflows.js +1 -1
- package/dist/schemas/workflows.js.map +1 -1
- package/dist/state/definition.d.ts +4 -4
- package/dist/state/workspace-state.d.ts +4 -4
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +2 -2
- package/dist/state/workspace-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agent.contract.ts +2 -2
- package/src/contracts/agents.contract.ts +1 -1
- package/src/contracts/automations.contract.ts +1 -1
- package/src/contracts/logs.contract.ts +1 -1
- package/src/contracts/needs.contract.ts +2 -2
- package/src/contracts/roles.contract.ts +108 -0
- package/src/contracts/skills.contract.ts +2 -2
- package/src/events/system-events.ts +5 -4
- package/src/index.ts +3 -3
- package/src/models/agent-runtimes.ts +8 -8
- package/src/models/model-roles.ts +3 -3
- package/src/netd/browser-wire.ts +28 -1
- package/src/netd/generated/browser-wire.json +760 -0
- package/src/netd/generated/browser-wire.ts +42 -0
- package/src/netd/wire-manifests.test.ts +7 -1
- package/src/policy/control-scopes.ts +1 -1
- package/src/policy/fence-paths.ts +2 -2
- package/src/policy/org-locks.ts +2 -1
- package/src/policy/role-capability.ts +29 -0
- package/src/policy/role-home.ts +29 -0
- package/src/policy/tests/fence-paths.test.ts +1 -1
- package/src/policy/tests/role-home.test.ts +40 -0
- package/src/protocol/member-reach.test.ts +17 -17
- package/src/protocol/member-reach.ts +7 -7
- package/src/protocol/route-meta.ts +6 -6
- package/src/schemas/access-profiles.ts +20 -9
- package/src/schemas/agent.ts +4 -4
- package/src/schemas/agents.ts +2 -2
- package/src/schemas/approvals.ts +3 -3
- package/src/schemas/automations.ts +14 -14
- package/src/schemas/capabilities.ts +1 -1
- package/src/schemas/chat-route.ts +18 -9
- package/src/schemas/context-trim.ts +1 -1
- package/src/schemas/diagnostics.ts +1 -1
- package/src/schemas/git/git.ts +1 -1
- package/src/schemas/internal.ts +1 -1
- package/src/schemas/links.ts +7 -7
- package/src/schemas/loops.ts +1 -1
- package/src/schemas/members.test.ts +31 -31
- package/src/schemas/members.ts +37 -29
- package/src/schemas/needs.ts +35 -22
- package/src/schemas/organisation.ts +2 -0
- package/src/schemas/{personas.ts → roles.ts} +83 -113
- package/src/schemas/settings-history.ts +3 -1
- package/src/schemas/settings.ts +10 -6
- package/src/schemas/shared.ts +24 -10
- package/src/schemas/state-plan.test.ts +3 -3
- package/src/schemas/system-prompt.ts +2 -1
- package/src/schemas/terminal.ts +31 -4
- package/src/schemas/tool-ceiling.test.ts +14 -8
- package/src/schemas/tool-ceiling.ts +42 -11
- package/src/schemas/workflows.ts +1 -1
- package/src/state/auth-state.ts +1 -1
- package/src/state/definition.ts +1 -1
- package/src/state/workspace-state.test.ts +5 -5
- package/src/state/workspace-state.ts +11 -11
- package/dist/contracts/personas.contract.d.ts.map +0 -1
- package/dist/contracts/personas.contract.js +0 -78
- package/dist/contracts/personas.contract.js.map +0 -1
- package/dist/policy/persona-capability.d.ts +0 -14
- package/dist/policy/persona-capability.d.ts.map +0 -1
- package/dist/policy/persona-capability.js +0 -24
- package/dist/policy/persona-capability.js.map +0 -1
- package/dist/policy/persona-home.d.ts +0 -10
- package/dist/policy/persona-home.d.ts.map +0 -1
- package/dist/policy/persona-home.js +0 -11
- package/dist/policy/persona-home.js.map +0 -1
- package/dist/schemas/personas.d.ts.map +0 -1
- package/dist/schemas/personas.js.map +0 -1
- package/src/contracts/personas.contract.ts +0 -106
- package/src/policy/persona-capability.ts +0 -64
- package/src/policy/persona-home.ts +0 -39
- package/src/policy/tests/persona-home.test.ts +0 -51
|
@@ -1,4 +1,764 @@
|
|
|
1
1
|
{
|
|
2
|
+
"browserView": {
|
|
3
|
+
"client": {
|
|
4
|
+
"$defs": {
|
|
5
|
+
"EmulatedDevice": {
|
|
6
|
+
"description": "A phone a page is rendered as: its CSS viewport in portrait, whether it is a touch screen with a meta viewport, and\nthe user agent it sends.",
|
|
7
|
+
"properties": {
|
|
8
|
+
"height": {
|
|
9
|
+
"format": "uint32",
|
|
10
|
+
"minimum": 0,
|
|
11
|
+
"type": "integer"
|
|
12
|
+
},
|
|
13
|
+
"mobile": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"userAgent": {
|
|
17
|
+
"type": [
|
|
18
|
+
"string",
|
|
19
|
+
"null"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"width": {
|
|
23
|
+
"format": "uint32",
|
|
24
|
+
"minimum": 0,
|
|
25
|
+
"type": "integer"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"width",
|
|
30
|
+
"height",
|
|
31
|
+
"mobile"
|
|
32
|
+
],
|
|
33
|
+
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
"PointerAction": {
|
|
36
|
+
"description": "What a pointer event did.",
|
|
37
|
+
"enum": [
|
|
38
|
+
"move",
|
|
39
|
+
"down",
|
|
40
|
+
"up",
|
|
41
|
+
"wheel"
|
|
42
|
+
],
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"description": "What the editor sends on a browser view socket, each a JSON text message. Nothing that drives the page is sent\nuntil the person takes control; watching sends only the view's own housekeeping (`resize`, `pause`, `ping`, …).",
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{
|
|
49
|
+
"description": "A pointer event in the picture's own pixels, with what a click alone cannot carry: `buttons`, the DOM bitmask of\nwhat is held, so a lost `up` cannot strand a button down; `clickCount`, the browser's own `detail`; and the\nmodifiers. No `meta`: the sandbox's Chromium is Linux, so a Mac's Cmd arrives already as `ctrl`.",
|
|
50
|
+
"properties": {
|
|
51
|
+
"action": {
|
|
52
|
+
"$ref": "#/$defs/PointerAction"
|
|
53
|
+
},
|
|
54
|
+
"alt": {
|
|
55
|
+
"type": [
|
|
56
|
+
"boolean",
|
|
57
|
+
"null"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"button": {
|
|
61
|
+
"description": "Which button changed, in DOM numbering (0 left, 1 middle, 2 right, 3 back, 4 forward).",
|
|
62
|
+
"format": "uint8",
|
|
63
|
+
"maximum": 255,
|
|
64
|
+
"minimum": 0,
|
|
65
|
+
"type": [
|
|
66
|
+
"integer",
|
|
67
|
+
"null"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"buttons": {
|
|
71
|
+
"format": "uint8",
|
|
72
|
+
"maximum": 255,
|
|
73
|
+
"minimum": 0,
|
|
74
|
+
"type": [
|
|
75
|
+
"integer",
|
|
76
|
+
"null"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"clickCount": {
|
|
80
|
+
"format": "uint8",
|
|
81
|
+
"maximum": 255,
|
|
82
|
+
"minimum": 0,
|
|
83
|
+
"type": [
|
|
84
|
+
"integer",
|
|
85
|
+
"null"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"ctrl": {
|
|
89
|
+
"type": [
|
|
90
|
+
"boolean",
|
|
91
|
+
"null"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"deltaX": {
|
|
95
|
+
"format": "double",
|
|
96
|
+
"type": [
|
|
97
|
+
"number",
|
|
98
|
+
"null"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"deltaY": {
|
|
102
|
+
"format": "double",
|
|
103
|
+
"type": [
|
|
104
|
+
"number",
|
|
105
|
+
"null"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"shift": {
|
|
109
|
+
"type": [
|
|
110
|
+
"boolean",
|
|
111
|
+
"null"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"type": {
|
|
115
|
+
"const": "mouse",
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"x": {
|
|
119
|
+
"format": "double",
|
|
120
|
+
"type": "number"
|
|
121
|
+
},
|
|
122
|
+
"y": {
|
|
123
|
+
"format": "double",
|
|
124
|
+
"type": "number"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"type",
|
|
129
|
+
"action",
|
|
130
|
+
"x",
|
|
131
|
+
"y"
|
|
132
|
+
],
|
|
133
|
+
"type": "object"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"description": "Typed or pasted text. `raw` puts it on the X display rather than into the page: what Chromium's own find bar\nneeds, since a page-level key event goes to the page whatever the browser has focused.",
|
|
137
|
+
"properties": {
|
|
138
|
+
"raw": {
|
|
139
|
+
"type": [
|
|
140
|
+
"boolean",
|
|
141
|
+
"null"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"text": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"type": {
|
|
148
|
+
"const": "text",
|
|
149
|
+
"type": "string"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"type",
|
|
154
|
+
"text"
|
|
155
|
+
],
|
|
156
|
+
"type": "object"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"description": "A keystroke or chord that is not plain text, by its DOM key name.",
|
|
160
|
+
"properties": {
|
|
161
|
+
"alt": {
|
|
162
|
+
"type": [
|
|
163
|
+
"boolean",
|
|
164
|
+
"null"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"ctrl": {
|
|
168
|
+
"type": [
|
|
169
|
+
"boolean",
|
|
170
|
+
"null"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"key": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"raw": {
|
|
177
|
+
"type": [
|
|
178
|
+
"boolean",
|
|
179
|
+
"null"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"shift": {
|
|
183
|
+
"type": [
|
|
184
|
+
"boolean",
|
|
185
|
+
"null"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"type": {
|
|
189
|
+
"const": "key",
|
|
190
|
+
"type": "string"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"type",
|
|
195
|
+
"key"
|
|
196
|
+
],
|
|
197
|
+
"type": "object"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"description": "Asks what the page has selected, for the person's own clipboard; answered by `selection`.",
|
|
201
|
+
"properties": {
|
|
202
|
+
"type": {
|
|
203
|
+
"const": "selection",
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": [
|
|
208
|
+
"type"
|
|
209
|
+
],
|
|
210
|
+
"type": "object"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"description": "The entry of a drop-down the viewer drew itself (frames path only) that the person picked.",
|
|
214
|
+
"properties": {
|
|
215
|
+
"index": {
|
|
216
|
+
"format": "uint32",
|
|
217
|
+
"minimum": 0,
|
|
218
|
+
"type": "integer"
|
|
219
|
+
},
|
|
220
|
+
"type": {
|
|
221
|
+
"const": "selectOption",
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": [
|
|
226
|
+
"type",
|
|
227
|
+
"index"
|
|
228
|
+
],
|
|
229
|
+
"type": "object"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"description": "Brings a tab in front. The window shows one tab at a time for every viewer, so this moves everyone's picture,\nand the next `state` says so; a tab already gone is answered by `gone`.",
|
|
233
|
+
"properties": {
|
|
234
|
+
"pageId": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"type": {
|
|
238
|
+
"const": "bind",
|
|
239
|
+
"type": "string"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": [
|
|
243
|
+
"type",
|
|
244
|
+
"pageId"
|
|
245
|
+
],
|
|
246
|
+
"type": "object"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"description": "Goes to an address, in the tab `pageId` names, or the one in front without it.",
|
|
250
|
+
"properties": {
|
|
251
|
+
"pageId": {
|
|
252
|
+
"type": [
|
|
253
|
+
"string",
|
|
254
|
+
"null"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"type": {
|
|
258
|
+
"const": "navigate",
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"url": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"required": [
|
|
266
|
+
"type",
|
|
267
|
+
"url"
|
|
268
|
+
],
|
|
269
|
+
"type": "object"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"properties": {
|
|
273
|
+
"type": {
|
|
274
|
+
"const": "back",
|
|
275
|
+
"type": "string"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"required": [
|
|
279
|
+
"type"
|
|
280
|
+
],
|
|
281
|
+
"type": "object"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"properties": {
|
|
285
|
+
"type": {
|
|
286
|
+
"const": "forward",
|
|
287
|
+
"type": "string"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": [
|
|
291
|
+
"type"
|
|
292
|
+
],
|
|
293
|
+
"type": "object"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"properties": {
|
|
297
|
+
"type": {
|
|
298
|
+
"const": "reload",
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"required": [
|
|
303
|
+
"type"
|
|
304
|
+
],
|
|
305
|
+
"type": "object"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"properties": {
|
|
309
|
+
"type": {
|
|
310
|
+
"const": "stop",
|
|
311
|
+
"type": "string"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": [
|
|
315
|
+
"type"
|
|
316
|
+
],
|
|
317
|
+
"type": "object"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"properties": {
|
|
321
|
+
"type": {
|
|
322
|
+
"const": "newTab",
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
"url": {
|
|
326
|
+
"type": [
|
|
327
|
+
"string",
|
|
328
|
+
"null"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"type"
|
|
334
|
+
],
|
|
335
|
+
"type": "object"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"properties": {
|
|
339
|
+
"pageId": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"type": {
|
|
343
|
+
"const": "closeTab",
|
|
344
|
+
"type": "string"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"required": [
|
|
348
|
+
"type",
|
|
349
|
+
"pageId"
|
|
350
|
+
],
|
|
351
|
+
"type": "object"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"description": "The viewer's picture box in CSS px, rounded: the size the browser's viewport is asked to take.",
|
|
355
|
+
"properties": {
|
|
356
|
+
"height": {
|
|
357
|
+
"format": "uint32",
|
|
358
|
+
"minimum": 0,
|
|
359
|
+
"type": "integer"
|
|
360
|
+
},
|
|
361
|
+
"type": {
|
|
362
|
+
"const": "resize",
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"width": {
|
|
366
|
+
"format": "uint32",
|
|
367
|
+
"minimum": 0,
|
|
368
|
+
"type": "integer"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"required": [
|
|
372
|
+
"type",
|
|
373
|
+
"width",
|
|
374
|
+
"height"
|
|
375
|
+
],
|
|
376
|
+
"type": "object"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"description": "The viewer's decoder lost the stream and needs a keyframe to start again.",
|
|
380
|
+
"properties": {
|
|
381
|
+
"type": {
|
|
382
|
+
"const": "keyframe",
|
|
383
|
+
"type": "string"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"required": [
|
|
387
|
+
"type"
|
|
388
|
+
],
|
|
389
|
+
"type": "object"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"description": "Renders the page as `device`, or as itself again without one. Answered by a fresh `ready`.",
|
|
393
|
+
"properties": {
|
|
394
|
+
"device": {
|
|
395
|
+
"anyOf": [
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/$defs/EmulatedDevice"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "null"
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"type": {
|
|
405
|
+
"const": "emulate",
|
|
406
|
+
"type": "string"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"required": [
|
|
410
|
+
"type"
|
|
411
|
+
],
|
|
412
|
+
"type": "object"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"description": "Answers the JavaScript dialog the window's state lists; `text` is a prompt's reply.",
|
|
416
|
+
"properties": {
|
|
417
|
+
"accept": {
|
|
418
|
+
"type": "boolean"
|
|
419
|
+
},
|
|
420
|
+
"text": {
|
|
421
|
+
"type": [
|
|
422
|
+
"string",
|
|
423
|
+
"null"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"type": {
|
|
427
|
+
"const": "dialog",
|
|
428
|
+
"type": "string"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"required": [
|
|
432
|
+
"type",
|
|
433
|
+
"accept"
|
|
434
|
+
],
|
|
435
|
+
"type": "object"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"description": "Nobody can see the picture now (a background tab, a parked view): stop sending it until `resume`.",
|
|
439
|
+
"properties": {
|
|
440
|
+
"type": {
|
|
441
|
+
"const": "pause",
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"required": [
|
|
446
|
+
"type"
|
|
447
|
+
],
|
|
448
|
+
"type": "object"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"properties": {
|
|
452
|
+
"type": {
|
|
453
|
+
"const": "resume",
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": [
|
|
458
|
+
"type"
|
|
459
|
+
],
|
|
460
|
+
"type": "object"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"description": "The account sign-in window only: the person is finished, and the profile is kept.",
|
|
464
|
+
"properties": {
|
|
465
|
+
"type": {
|
|
466
|
+
"const": "done",
|
|
467
|
+
"type": "string"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"required": [
|
|
471
|
+
"type"
|
|
472
|
+
],
|
|
473
|
+
"type": "object"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"description": "The client's liveness; answered by `pong`.",
|
|
477
|
+
"properties": {
|
|
478
|
+
"type": {
|
|
479
|
+
"const": "ping",
|
|
480
|
+
"type": "string"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"required": [
|
|
484
|
+
"type"
|
|
485
|
+
],
|
|
486
|
+
"type": "object"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"title": "BrowserViewClientMessage"
|
|
490
|
+
},
|
|
491
|
+
"frameTags": {
|
|
492
|
+
"h264Delta": 4,
|
|
493
|
+
"h264DeltaQuiet": 6,
|
|
494
|
+
"h264Key": 3,
|
|
495
|
+
"h264KeyQuiet": 5,
|
|
496
|
+
"jpeg": 0,
|
|
497
|
+
"svg": 2,
|
|
498
|
+
"webp": 1
|
|
499
|
+
},
|
|
500
|
+
"path": "/system/browser-view",
|
|
501
|
+
"server": {
|
|
502
|
+
"$defs": {
|
|
503
|
+
"PictureKind": {
|
|
504
|
+
"description": "Which decoder a picture needs.",
|
|
505
|
+
"oneOf": [
|
|
506
|
+
{
|
|
507
|
+
"const": "video",
|
|
508
|
+
"description": "H.264 of the page's viewport off the browser's X display.",
|
|
509
|
+
"type": "string"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"const": "frames",
|
|
513
|
+
"description": "One image per change from the page's compositor, for a browser with no display.",
|
|
514
|
+
"type": "string"
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
"PictureRect": {
|
|
519
|
+
"properties": {
|
|
520
|
+
"height": {
|
|
521
|
+
"format": "double",
|
|
522
|
+
"type": "number"
|
|
523
|
+
},
|
|
524
|
+
"width": {
|
|
525
|
+
"format": "double",
|
|
526
|
+
"type": "number"
|
|
527
|
+
},
|
|
528
|
+
"x": {
|
|
529
|
+
"format": "double",
|
|
530
|
+
"type": "number"
|
|
531
|
+
},
|
|
532
|
+
"y": {
|
|
533
|
+
"format": "double",
|
|
534
|
+
"type": "number"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"required": [
|
|
538
|
+
"x",
|
|
539
|
+
"y",
|
|
540
|
+
"width",
|
|
541
|
+
"height"
|
|
542
|
+
],
|
|
543
|
+
"type": "object"
|
|
544
|
+
},
|
|
545
|
+
"SelectEntry": {
|
|
546
|
+
"properties": {
|
|
547
|
+
"disabled": {
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
"label": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": [
|
|
555
|
+
"label",
|
|
556
|
+
"disabled"
|
|
557
|
+
],
|
|
558
|
+
"type": "object"
|
|
559
|
+
},
|
|
560
|
+
"SelectMenu": {
|
|
561
|
+
"description": "A native drop-down the frames path cannot show in its pictures, for the viewer to draw: its entries, the one\nchosen, and where it opens, in the picture's pixels.",
|
|
562
|
+
"properties": {
|
|
563
|
+
"options": {
|
|
564
|
+
"items": {
|
|
565
|
+
"$ref": "#/$defs/SelectEntry"
|
|
566
|
+
},
|
|
567
|
+
"type": "array"
|
|
568
|
+
},
|
|
569
|
+
"rect": {
|
|
570
|
+
"$ref": "#/$defs/PictureRect"
|
|
571
|
+
},
|
|
572
|
+
"selected": {
|
|
573
|
+
"format": "int32",
|
|
574
|
+
"type": "integer"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": [
|
|
578
|
+
"options",
|
|
579
|
+
"selected",
|
|
580
|
+
"rect"
|
|
581
|
+
],
|
|
582
|
+
"type": "object"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"description": "What a browser view socket sends as JSON text; the pictures travel as binary messages, each starting with one of\n[`BROWSER_FRAME_TAGS`].",
|
|
586
|
+
"oneOf": [
|
|
587
|
+
{
|
|
588
|
+
"description": "What the pictures after this one are: their decoder, and their size in the display's pixels, `scale` of them per\nCSS pixel, which is what pointer coordinates are in. `codec` is read off the stream, on the video path only.",
|
|
589
|
+
"properties": {
|
|
590
|
+
"codec": {
|
|
591
|
+
"type": [
|
|
592
|
+
"string",
|
|
593
|
+
"null"
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
"height": {
|
|
597
|
+
"format": "uint32",
|
|
598
|
+
"minimum": 0,
|
|
599
|
+
"type": "integer"
|
|
600
|
+
},
|
|
601
|
+
"kind": {
|
|
602
|
+
"$ref": "#/$defs/PictureKind"
|
|
603
|
+
},
|
|
604
|
+
"scale": {
|
|
605
|
+
"format": "double",
|
|
606
|
+
"type": "number"
|
|
607
|
+
},
|
|
608
|
+
"type": {
|
|
609
|
+
"const": "ready",
|
|
610
|
+
"type": "string"
|
|
611
|
+
},
|
|
612
|
+
"width": {
|
|
613
|
+
"format": "uint32",
|
|
614
|
+
"minimum": 0,
|
|
615
|
+
"type": "integer"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"required": [
|
|
619
|
+
"type",
|
|
620
|
+
"kind",
|
|
621
|
+
"width",
|
|
622
|
+
"height",
|
|
623
|
+
"scale"
|
|
624
|
+
],
|
|
625
|
+
"type": "object"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"description": "The window as the sandbox knows it now, whole: its tabs, which one is in front, what each is loading, an open\ndialog. Sent when the socket opens and again on every change, in order with the pictures, so the tabs a viewer\ndraws and the picture it shows agree. It is the window's entry in the browsers list (the contract's\n`BrowserSession`), carrying the same `seq`: of two copies, the higher `seq` is the newer. Absent from an older\nsandbox, whose viewers read the list alone.",
|
|
629
|
+
"properties": {
|
|
630
|
+
"session": true,
|
|
631
|
+
"type": {
|
|
632
|
+
"const": "state",
|
|
633
|
+
"type": "string"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"required": [
|
|
637
|
+
"type",
|
|
638
|
+
"session"
|
|
639
|
+
],
|
|
640
|
+
"type": "object"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"description": "The CSS cursor the page shows under the pointer, sent when it changes.",
|
|
644
|
+
"properties": {
|
|
645
|
+
"cursor": {
|
|
646
|
+
"type": "string"
|
|
647
|
+
},
|
|
648
|
+
"type": {
|
|
649
|
+
"const": "cursor",
|
|
650
|
+
"type": "string"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
"required": [
|
|
654
|
+
"type",
|
|
655
|
+
"cursor"
|
|
656
|
+
],
|
|
657
|
+
"type": "object"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"description": "A drop-down to draw, or null to close the one drawn (frames path only).",
|
|
661
|
+
"properties": {
|
|
662
|
+
"menu": {
|
|
663
|
+
"anyOf": [
|
|
664
|
+
{
|
|
665
|
+
"$ref": "#/$defs/SelectMenu"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"type": "null"
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
},
|
|
672
|
+
"type": {
|
|
673
|
+
"const": "select",
|
|
674
|
+
"type": "string"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"required": [
|
|
678
|
+
"type"
|
|
679
|
+
],
|
|
680
|
+
"type": "object"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"description": "What the page has selected, answering `selection`; empty when nothing is.",
|
|
684
|
+
"properties": {
|
|
685
|
+
"text": {
|
|
686
|
+
"type": "string"
|
|
687
|
+
},
|
|
688
|
+
"type": {
|
|
689
|
+
"const": "selection",
|
|
690
|
+
"type": "string"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"required": [
|
|
694
|
+
"type",
|
|
695
|
+
"text"
|
|
696
|
+
],
|
|
697
|
+
"type": "object"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"description": "The tab a `bind` named has closed.",
|
|
701
|
+
"properties": {
|
|
702
|
+
"pageId": {
|
|
703
|
+
"type": "string"
|
|
704
|
+
},
|
|
705
|
+
"type": {
|
|
706
|
+
"const": "gone",
|
|
707
|
+
"type": "string"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"required": [
|
|
711
|
+
"type",
|
|
712
|
+
"pageId"
|
|
713
|
+
],
|
|
714
|
+
"type": "object"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"properties": {
|
|
718
|
+
"type": {
|
|
719
|
+
"const": "pong",
|
|
720
|
+
"type": "string"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"required": [
|
|
724
|
+
"type"
|
|
725
|
+
],
|
|
726
|
+
"type": "object"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"description": "The window is gone for good, in words for the person; the viewer must not reconnect.",
|
|
730
|
+
"properties": {
|
|
731
|
+
"message": {
|
|
732
|
+
"type": "string"
|
|
733
|
+
},
|
|
734
|
+
"type": {
|
|
735
|
+
"const": "error",
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"required": [
|
|
740
|
+
"type",
|
|
741
|
+
"message"
|
|
742
|
+
],
|
|
743
|
+
"type": "object"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"description": "The account sign-in window only: its profile was kept.",
|
|
747
|
+
"properties": {
|
|
748
|
+
"type": {
|
|
749
|
+
"const": "saved",
|
|
750
|
+
"type": "string"
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
"required": [
|
|
754
|
+
"type"
|
|
755
|
+
],
|
|
756
|
+
"type": "object"
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"title": "BrowserViewServerMessage"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
2
762
|
"edge": {
|
|
3
763
|
"verdictHeader": "x-intentic-edge",
|
|
4
764
|
"verdicts": {
|