oui-spec 0.11.0 → 0.12.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 +6 -2
- package/dist/{chunk-XJ34LTWV.js → chunk-7KBAHAHV.js} +24 -3
- package/dist/chunk-7KBAHAHV.js.map +1 -0
- package/dist/{chunk-MZ25RAQX.cjs → chunk-BLKQNZFC.cjs} +2 -2
- package/dist/{chunk-MZ25RAQX.cjs.map → chunk-BLKQNZFC.cjs.map} +1 -1
- package/dist/{chunk-G4HLDVAI.js → chunk-C2IMSSJK.js} +2 -2
- package/dist/{chunk-G4HLDVAI.js.map → chunk-C2IMSSJK.js.map} +1 -1
- package/dist/{chunk-LCH3H5ZH.cjs → chunk-RPHHBP7C.cjs} +53 -32
- package/dist/chunk-RPHHBP7C.cjs.map +1 -0
- package/dist/core/index.cjs +8 -8
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +2 -2
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/react/index.d.cts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/spec/index.cjs +42 -42
- package/dist/spec/index.d.cts +1 -2
- package/dist/spec/index.d.ts +1 -2
- package/dist/spec/index.js +1 -1
- package/dist/{surface-runtime-Da1FSjNF.d.ts → surface-runtime-BixhN5CJ.d.ts} +16 -6
- package/dist/{surface-runtime-C3883XHJ.d.cts → surface-runtime-Ca0oLhb4.d.cts} +16 -6
- package/package.json +1 -1
- package/spec/OUI-SPEC-v0.1.md +1 -0
- package/dist/chunk-LCH3H5ZH.cjs.map +0 -1
- package/dist/chunk-XJ34LTWV.js.map +0 -1
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from '../chunk-
|
|
2
|
-
export { OUI_PROTOCOL_EVENTS } from '../chunk-
|
|
1
|
+
export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from '../chunk-7KBAHAHV.js';
|
|
2
|
+
export { OUI_PROTOCOL_EVENTS } from '../chunk-C2IMSSJK.js';
|
|
3
3
|
import '../chunk-NXDPC3KW.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkRPHHBP7C_cjs = require('./chunk-RPHHBP7C.cjs');
|
|
4
|
+
var chunkBLKQNZFC_cjs = require('./chunk-BLKQNZFC.cjs');
|
|
5
5
|
var chunkFSGB5JNJ_cjs = require('./chunk-FSGB5JNJ.cjs');
|
|
6
6
|
var chunkROGKEMLL_cjs = require('./chunk-ROGKEMLL.cjs');
|
|
7
7
|
var chunk2FFUDX2L_cjs = require('./chunk-2FFUDX2L.cjs');
|
|
@@ -10,187 +10,187 @@ var chunk2FFUDX2L_cjs = require('./chunk-2FFUDX2L.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ATTACHMENT_LIST_MAX", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRPHHBP7C_cjs.ATTACHMENT_LIST_MAX; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "acceptCurrentTurn", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRPHHBP7C_cjs.acceptCurrentTurn; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createOUI", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRPHHBP7C_cjs.createOUI; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createSurfaceRuntime", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRPHHBP7C_cjs.createSurfaceRuntime; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "defineSurface", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkRPHHBP7C_cjs.defineSurface; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ARGS_HASH_PATTERN", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkBLKQNZFC_cjs.ARGS_HASH_PATTERN; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "ATTACHMENT_ID_PATTERN", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkBLKQNZFC_cjs.ATTACHMENT_ID_PATTERN; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEFINITION_HASH_HEX", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkBLKQNZFC_cjs.DEFINITION_HASH_HEX; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FIT_LIST_STEPS", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkBLKQNZFC_cjs.FIT_LIST_STEPS; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FIT_TEXT_CHARS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkBLKQNZFC_cjs.FIT_TEXT_CHARS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "INDEX_DESCRIPTION_CHARS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_DESCRIPTION_CHARS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "INDEX_INPUT_CHARS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_INPUT_CHARS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "INDEX_INPUT_PROPERTIES", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_INPUT_PROPERTIES; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "OUI_ATTACHMENT_FORMAT", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_ATTACHMENT_FORMAT; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "OUI_DESCRIBE_ACTION", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_DESCRIBE_ACTION; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "OUI_EFFECT_ACCESS", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_EFFECT_ACCESS; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "OUI_EFFECT_KINDS", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_EFFECT_KINDS; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "OUI_PROTOCOL_EVENTS", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_PROTOCOL_EVENTS; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "OUI_READ_ACTION", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_READ_ACTION; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "OUI_RUNTIME_SURFACE", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_RUNTIME_SURFACE; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "acceptsMediaType", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkBLKQNZFC_cjs.acceptsMediaType; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "argsHash", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkBLKQNZFC_cjs.argsHash; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "atPointer", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkBLKQNZFC_cjs.atPointer; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "attachmentIdsIn", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentIdsIn; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "attachmentInputOf", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentInputOf; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "attachmentInputs", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentInputs; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "canonicalJson", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkBLKQNZFC_cjs.canonicalJson; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "constantOf", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkBLKQNZFC_cjs.constantOf; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "definitionHash", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkBLKQNZFC_cjs.definitionHash; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "discriminatorOf", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkBLKQNZFC_cjs.discriminatorOf; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "effectAccess", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkBLKQNZFC_cjs.effectAccess; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "firstSentence", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkBLKQNZFC_cjs.firstSentence; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "fitObservations", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkBLKQNZFC_cjs.fitObservations; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "indexEntry", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkBLKQNZFC_cjs.indexEntry; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "isAttachmentId", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkBLKQNZFC_cjs.isAttachmentId; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "jsonBytes", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkBLKQNZFC_cjs.jsonBytes; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "misplacedAttachmentInputs", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkBLKQNZFC_cjs.misplacedAttachmentInputs; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "pointerStep", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkBLKQNZFC_cjs.pointerStep; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "pointerSteps", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkBLKQNZFC_cjs.pointerSteps; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "requiresApproval", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkBLKQNZFC_cjs.requiresApproval; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "sortedJson", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkBLKQNZFC_cjs.sortedJson; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "summarizeInput", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkBLKQNZFC_cjs.summarizeInput; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "surfaceIndex", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkBLKQNZFC_cjs.surfaceIndex; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "surfacesHash", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkBLKQNZFC_cjs.surfacesHash; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "utf8Length", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkBLKQNZFC_cjs.utf8Length; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "withoutTitleLeadIn", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkBLKQNZFC_cjs.withoutTitleLeadIn; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "SurfaceRuntimeProvider", {
|
|
196
196
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-DLOa7CWj.cjs';
|
|
2
2
|
export { ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUIAttachmentInput, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.cjs';
|
|
3
|
-
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-
|
|
3
|
+
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-Ca0oLhb4.cjs';
|
|
4
4
|
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, acceptCurrentTurn, createOUI } from './core/index.cjs';
|
|
5
5
|
export { SurfaceRuntimeProvider, SurfaceRuntimeProviderProps, UseSurfaceOptions, UseSurfaceResult, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './react/index.cjs';
|
|
6
6
|
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-CoSpb5nB.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ARGS_HASH_PATTERN, J as JSONSchema, O as OUIAction, a as OUIActionApproval, b as OUIActionIndexEntry, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, k as OUIFitCut, l as OUIIndexSnapshot, m as OUIObservation, n as OUIObservationSnapshot, o as OUIObservationUpdate, p as OUIProtocolEvent, q as OUIResultDelivery, r as OUISurface, s as OUISurfaceDeregistration, t as OUISurfaceIndex, u as OUISurfaceRegistration, v as OUISurfaceSnapshot, w as OUI_EFFECT_ACCESS, x as OUI_EFFECT_KINDS, y as OUI_PROTOCOL_EVENTS, z as argsHash, B as canonicalJson, C as effectAccess, D as requiresApproval } from './types-DLOa7CWj.js';
|
|
2
2
|
export { ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUIAttachmentInput, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, constantOf, definitionHash, discriminatorOf, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './spec/index.js';
|
|
3
|
-
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-
|
|
3
|
+
export { A as ATTACHMENT_LIST_MAX, a as ActionDefinition, b as ActionHandlerResult, c as ActionPollingConfig, d as AttachmentResolver, e as AttachmentText, D as DefinedSurface, M as MountedSurface, O as OUIBranded, f as ObservationDefinition, S as SettleOptions, g as SurfaceDefinition, h as SurfaceForm, i as SurfaceRuntime, j as SurfaceRuntimeOptions, k as createSurfaceRuntime, l as defineSurface } from './surface-runtime-BixhN5CJ.js';
|
|
4
4
|
export { DuplicateIds, OUIConfig, OUIConfigError, OUIInstance, OwnedTransport, ValidateSurfaceIds, acceptCurrentTurn, createOUI } from './core/index.js';
|
|
5
5
|
export { SurfaceRuntimeProvider, SurfaceRuntimeProviderProps, UseSurfaceOptions, UseSurfaceResult, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './react/index.js';
|
|
6
6
|
export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, d as OUITransport, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from './websocket-Bf7xMzs1.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from './chunk-
|
|
2
|
-
export { ARGS_HASH_PATTERN, ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, argsHash, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-
|
|
1
|
+
export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from './chunk-7KBAHAHV.js';
|
|
2
|
+
export { ARGS_HASH_PATTERN, ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, argsHash, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-C2IMSSJK.js';
|
|
3
3
|
export { SurfaceRuntimeProvider, useObservation, useSurface, useSurfaceHold, useSurfaceRuntime } from './chunk-UOTAHGIV.js';
|
|
4
4
|
export { createDirectTransportPair } from './chunk-IIZ6HL2L.js';
|
|
5
5
|
export { createWebSocketTransport } from './chunk-NXDPC3KW.js';
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { e as OUIActionResult } from '../types-DLOa7CWj.cjs';
|
|
4
|
-
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-
|
|
4
|
+
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-Ca0oLhb4.cjs';
|
|
5
5
|
import '../websocket-CoSpb5nB.cjs';
|
|
6
6
|
|
|
7
7
|
interface SurfaceRuntimeProviderProps {
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { e as OUIActionResult } from '../types-DLOa7CWj.js';
|
|
4
|
-
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-
|
|
4
|
+
import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-BixhN5CJ.js';
|
|
5
5
|
import '../websocket-Bf7xMzs1.js';
|
|
6
6
|
|
|
7
7
|
interface SurfaceRuntimeProviderProps {
|
package/dist/spec/index.cjs
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBLKQNZFC_cjs = require('../chunk-BLKQNZFC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ARGS_HASH_PATTERN", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkBLKQNZFC_cjs.ARGS_HASH_PATTERN; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ATTACHMENT_ID_PATTERN", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBLKQNZFC_cjs.ATTACHMENT_ID_PATTERN; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DEFINITION_HASH_HEX", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBLKQNZFC_cjs.DEFINITION_HASH_HEX; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FIT_LIST_STEPS", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBLKQNZFC_cjs.FIT_LIST_STEPS; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FIT_TEXT_CHARS", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBLKQNZFC_cjs.FIT_TEXT_CHARS; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "INDEX_DESCRIPTION_CHARS", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_DESCRIPTION_CHARS; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "INDEX_INPUT_CHARS", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_INPUT_CHARS; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "INDEX_INPUT_PROPERTIES", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkBLKQNZFC_cjs.INDEX_INPUT_PROPERTIES; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "OUI_ATTACHMENT_FORMAT", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_ATTACHMENT_FORMAT; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "OUI_DESCRIBE_ACTION", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_DESCRIBE_ACTION; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "OUI_EFFECT_ACCESS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_EFFECT_ACCESS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "OUI_EFFECT_KINDS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_EFFECT_KINDS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "OUI_PROTOCOL_EVENTS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_PROTOCOL_EVENTS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "OUI_READ_ACTION", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_READ_ACTION; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "OUI_RUNTIME_SURFACE", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkBLKQNZFC_cjs.OUI_RUNTIME_SURFACE; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "acceptsMediaType", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkBLKQNZFC_cjs.acceptsMediaType; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "argsHash", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkBLKQNZFC_cjs.argsHash; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "atPointer", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkBLKQNZFC_cjs.atPointer; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "attachmentIdsIn", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentIdsIn; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "attachmentInputOf", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentInputOf; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "attachmentInputs", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkBLKQNZFC_cjs.attachmentInputs; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "canonicalJson", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkBLKQNZFC_cjs.canonicalJson; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "constantOf", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkBLKQNZFC_cjs.constantOf; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "definitionHash", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkBLKQNZFC_cjs.definitionHash; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "discriminatorOf", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkBLKQNZFC_cjs.discriminatorOf; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "effectAccess", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkBLKQNZFC_cjs.effectAccess; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "firstSentence", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkBLKQNZFC_cjs.firstSentence; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "fitObservations", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkBLKQNZFC_cjs.fitObservations; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "indexEntry", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkBLKQNZFC_cjs.indexEntry; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "isAttachmentId", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkBLKQNZFC_cjs.isAttachmentId; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "jsonBytes", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkBLKQNZFC_cjs.jsonBytes; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "misplacedAttachmentInputs", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkBLKQNZFC_cjs.misplacedAttachmentInputs; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "pointerStep", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkBLKQNZFC_cjs.pointerStep; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "pointerSteps", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkBLKQNZFC_cjs.pointerSteps; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "requiresApproval", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkBLKQNZFC_cjs.requiresApproval; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "sortedJson", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkBLKQNZFC_cjs.sortedJson; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "summarizeInput", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkBLKQNZFC_cjs.summarizeInput; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "surfaceIndex", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkBLKQNZFC_cjs.surfaceIndex; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "surfacesHash", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkBLKQNZFC_cjs.surfacesHash; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "utf8Length", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkBLKQNZFC_cjs.utf8Length; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "withoutTitleLeadIn", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkBLKQNZFC_cjs.withoutTitleLeadIn; }
|
|
170
170
|
});
|
|
171
171
|
//# sourceMappingURL=index.cjs.map
|
|
172
172
|
//# sourceMappingURL=index.cjs.map
|
package/dist/spec/index.d.cts
CHANGED
|
@@ -122,8 +122,7 @@ declare function fitObservations(observations: OUIObservationSnapshot, budget: n
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* An action input that takes a file the person attached (OUI spec §7.3.11
|
|
126
|
-
* ADR-0252 §2.13).
|
|
125
|
+
* An action input that takes a file the person attached (OUI spec §7.3.11).
|
|
127
126
|
*
|
|
128
127
|
* The agent passes an attachment's id. The client resolves it, through its
|
|
129
128
|
* host's file area, to what the input declares it takes, before the action's
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -122,8 +122,7 @@ declare function fitObservations(observations: OUIObservationSnapshot, budget: n
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* An action input that takes a file the person attached (OUI spec §7.3.11
|
|
126
|
-
* ADR-0252 §2.13).
|
|
125
|
+
* An action input that takes a file the person attached (OUI spec §7.3.11).
|
|
127
126
|
*
|
|
128
127
|
* The agent passes an attachment's id. The client resolves it, through its
|
|
129
128
|
* host's file area, to what the input declares it takes, before the action's
|
package/dist/spec/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ARGS_HASH_PATTERN, ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, argsHash, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from '../chunk-
|
|
1
|
+
export { ARGS_HASH_PATTERN, ATTACHMENT_ID_PATTERN, DEFINITION_HASH_HEX, FIT_LIST_STEPS, FIT_TEXT_CHARS, INDEX_DESCRIPTION_CHARS, INDEX_INPUT_CHARS, INDEX_INPUT_PROPERTIES, OUI_ATTACHMENT_FORMAT, OUI_DESCRIBE_ACTION, OUI_EFFECT_ACCESS, OUI_EFFECT_KINDS, OUI_PROTOCOL_EVENTS, OUI_READ_ACTION, OUI_RUNTIME_SURFACE, acceptsMediaType, argsHash, atPointer, attachmentIdsIn, attachmentInputOf, attachmentInputs, canonicalJson, constantOf, definitionHash, discriminatorOf, effectAccess, firstSentence, fitObservations, indexEntry, isAttachmentId, jsonBytes, misplacedAttachmentInputs, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from '../chunk-C2IMSSJK.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -312,13 +312,23 @@ interface SurfaceRuntime<F extends SurfaceForm = "full"> {
|
|
|
312
312
|
*/
|
|
313
313
|
hold(): () => void;
|
|
314
314
|
/**
|
|
315
|
-
* Record that the user approved one request,
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
315
|
+
* Record that the user approved one request, for this tab (the agent
|
|
316
|
+
* runtime's approval store answered it to this tab: from the person's
|
|
317
|
+
* click on its confirmation, or from the grant this tab claimed when they
|
|
318
|
+
* approved by voice). An action that needs approval — a `transaction`, or a
|
|
319
|
+
* destructive write — runs only on a request whose `approval` matches an
|
|
320
|
+
* unused, unexpired grant for exactly its params. Each grant admits one
|
|
321
|
+
* request.
|
|
322
|
+
*
|
|
323
|
+
* Returns whether the grant was taken. A grant this tab already holds or
|
|
324
|
+
* has used, or one already expired, is refused: a replayed grant never
|
|
325
|
+
* admits a second request.
|
|
326
|
+
*
|
|
327
|
+
* A request carrying an `approval` this tab was never given is another
|
|
328
|
+
* tab's: it is refused on its receipt (§7.3.7), and neither run nor
|
|
329
|
+
* answered, so the tab that holds the grant gives the only answer.
|
|
320
330
|
*/
|
|
321
|
-
grantApproval(grant: OUIApprovalGrant):
|
|
331
|
+
grantApproval(grant: OUIApprovalGrant): boolean;
|
|
322
332
|
/** Called whenever the snapshot changes. */
|
|
323
333
|
subscribe(listener: () => void): () => void;
|
|
324
334
|
/** Stop polling, detach from the socket and forget every mount. */
|
|
@@ -312,13 +312,23 @@ interface SurfaceRuntime<F extends SurfaceForm = "full"> {
|
|
|
312
312
|
*/
|
|
313
313
|
hold(): () => void;
|
|
314
314
|
/**
|
|
315
|
-
* Record that the user approved one request,
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
315
|
+
* Record that the user approved one request, for this tab (the agent
|
|
316
|
+
* runtime's approval store answered it to this tab: from the person's
|
|
317
|
+
* click on its confirmation, or from the grant this tab claimed when they
|
|
318
|
+
* approved by voice). An action that needs approval — a `transaction`, or a
|
|
319
|
+
* destructive write — runs only on a request whose `approval` matches an
|
|
320
|
+
* unused, unexpired grant for exactly its params. Each grant admits one
|
|
321
|
+
* request.
|
|
322
|
+
*
|
|
323
|
+
* Returns whether the grant was taken. A grant this tab already holds or
|
|
324
|
+
* has used, or one already expired, is refused: a replayed grant never
|
|
325
|
+
* admits a second request.
|
|
326
|
+
*
|
|
327
|
+
* A request carrying an `approval` this tab was never given is another
|
|
328
|
+
* tab's: it is refused on its receipt (§7.3.7), and neither run nor
|
|
329
|
+
* answered, so the tab that holds the grant gives the only answer.
|
|
320
330
|
*/
|
|
321
|
-
grantApproval(grant: OUIApprovalGrant):
|
|
331
|
+
grantApproval(grant: OUIApprovalGrant): boolean;
|
|
322
332
|
/** Called whenever the snapshot changes. */
|
|
323
333
|
subscribe(listener: () => void): () => void;
|
|
324
334
|
/** Stop polling, detach from the socket and forget every mount. */
|
package/package.json
CHANGED
package/spec/OUI-SPEC-v0.1.md
CHANGED
|
@@ -608,6 +608,7 @@ When the agent invokes an action, the runtime sends an `action:request`:
|
|
|
608
608
|
- `params` MUST conform to the action's declared `input` schema
|
|
609
609
|
- The agent runtime SHOULD validate `params` before sending; the surface MUST validate upon receipt
|
|
610
610
|
- `knownSurfaces` (OPTIONAL) is the `surfacesHash` of the client's surfaces that the agent runtime already holds, from the client's snapshot (§7.3.5) or an earlier result. A runtime that holds the client's surfaces SHOULD send it (§7.3.4).
|
|
611
|
+
- `approval` (OPTIONAL) is the person's approval the request runs on: `{ approvalId, argsHash }`. A client runs an action that needs approval only when it matches an unused, unexpired grant this client holds for exactly these params, and answers anything else `APPROVAL_REQUIRED`. A client that was never given that approval MUST refuse the request on its receipt (§7.3.7), and MUST NOT run or answer it: another client holds the grant, and its answer is the one that counts. A client MUST refuse a grant it already holds or has used.
|
|
611
612
|
- `turnId` (OPTIONAL) names the turn of the agent's work the request belongs to. An agent runtime whose work is divided into turns that a person can stop SHOULD send it. A client MAY refuse a request whose `turnId` is not its current turn; a refused request is not run, and its receipt (§7.3.7) says it was received and not accepted. A client MUST NOT refuse a request only because it carries no `turnId`.
|
|
612
613
|
|
|
613
614
|
#### 7.3.2 Action Result (Success)
|