oui-spec 0.13.0 → 0.14.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.
Files changed (37) hide show
  1. package/README.md +13 -0
  2. package/dist/{chunk-XHJILEMN.cjs → chunk-4GEL45GH.cjs} +66 -37
  3. package/dist/chunk-4GEL45GH.cjs.map +1 -0
  4. package/dist/{chunk-3EMDNYQD.js → chunk-OSFGTDAM.js} +2 -2
  5. package/dist/chunk-OSFGTDAM.js.map +1 -0
  6. package/dist/{chunk-YOJABWGB.cjs → chunk-TGMRXTZV.cjs} +2 -2
  7. package/dist/chunk-TGMRXTZV.cjs.map +1 -0
  8. package/dist/{chunk-O3C76FAO.js → chunk-YWAHY7R3.js} +37 -8
  9. package/dist/chunk-YWAHY7R3.js.map +1 -0
  10. package/dist/core/index.cjs +8 -8
  11. package/dist/core/index.d.cts +5 -5
  12. package/dist/core/index.d.ts +5 -5
  13. package/dist/core/index.js +2 -2
  14. package/dist/index.cjs +49 -49
  15. package/dist/index.d.cts +3 -3
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.js +2 -2
  18. package/dist/react/index.d.cts +3 -3
  19. package/dist/react/index.d.ts +3 -3
  20. package/dist/spec/index.cjs +43 -43
  21. package/dist/spec/index.d.cts +2 -2
  22. package/dist/spec/index.d.ts +2 -2
  23. package/dist/spec/index.js +1 -1
  24. package/dist/{surface-runtime-DXEFMXK7.d.ts → surface-runtime-DrHIKVGg.d.cts} +18 -2
  25. package/dist/{surface-runtime-BIekR9rL.d.cts → surface-runtime-EASHWNtv.d.ts} +18 -2
  26. package/dist/transport/index.d.cts +3 -3
  27. package/dist/transport/index.d.ts +3 -3
  28. package/dist/{types-6doPwE6g.d.cts → types-BNUECkjl.d.cts} +24 -1
  29. package/dist/{types-6doPwE6g.d.ts → types-BNUECkjl.d.ts} +24 -1
  30. package/dist/{websocket-DHbDDwvt.d.ts → websocket-BlQDrFtE.d.ts} +1 -1
  31. package/dist/{websocket-CCpPMZ5a.d.cts → websocket-sj4FmEZD.d.cts} +1 -1
  32. package/package.json +1 -1
  33. package/spec/OUI-SPEC-v0.1.md +1 -0
  34. package/dist/chunk-3EMDNYQD.js.map +0 -1
  35. package/dist/chunk-O3C76FAO.js.map +0 -1
  36. package/dist/chunk-XHJILEMN.cjs.map +0 -1
  37. package/dist/chunk-YOJABWGB.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
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 OUIObservationIndexEntry, o as OUIObservationSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISurface, t as OUISurfaceDeregistration, u as OUISurfaceIndex, v as OUISurfaceRegistration, w as OUISurfaceSnapshot, x as OUI_EFFECT_ACCESS, y as OUI_EFFECT_KINDS, z as OUI_PROTOCOL_EVENTS, B as argsHash, C as canonicalJson, D as effectAccess, E as requiresApproval } from './types-6doPwE6g.cjs';
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 OUIObservationIndexEntry, o as OUIObservationSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISettledWork, t as OUISurface, u as OUISurfaceDeregistration, v as OUISurfaceIndex, w as OUISurfaceRegistration, x as OUISurfaceSnapshot, y as OUI_EFFECT_ACCESS, z as OUI_EFFECT_KINDS, B as OUI_PROTOCOL_EVENTS, C as argsHash, D as canonicalJson, E as effectAccess, F as requiresApproval } from './types-BNUECkjl.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, observationIndexEntry, 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-BIekR9rL.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-DrHIKVGg.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
- 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-CCpPMZ5a.cjs';
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-sj4FmEZD.cjs';
7
7
  export { createDirectTransportPair } from './transport/index.cjs';
8
8
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
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 OUIObservationIndexEntry, o as OUIObservationSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISurface, t as OUISurfaceDeregistration, u as OUISurfaceIndex, v as OUISurfaceRegistration, w as OUISurfaceSnapshot, x as OUI_EFFECT_ACCESS, y as OUI_EFFECT_KINDS, z as OUI_PROTOCOL_EVENTS, B as argsHash, C as canonicalJson, D as effectAccess, E as requiresApproval } from './types-6doPwE6g.js';
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 OUIObservationIndexEntry, o as OUIObservationSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISettledWork, t as OUISurface, u as OUISurfaceDeregistration, v as OUISurfaceIndex, w as OUISurfaceRegistration, x as OUISurfaceSnapshot, y as OUI_EFFECT_ACCESS, z as OUI_EFFECT_KINDS, B as OUI_PROTOCOL_EVENTS, C as argsHash, D as canonicalJson, E as effectAccess, F as requiresApproval } from './types-BNUECkjl.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, observationIndexEntry, 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-DXEFMXK7.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-EASHWNtv.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
- 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-DHbDDwvt.js';
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-BlQDrFtE.js';
7
7
  export { createDirectTransportPair } from './transport/index.js';
8
8
  import 'react';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from './chunk-O3C76FAO.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, observationIndexEntry, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-3EMDNYQD.js';
1
+ export { ATTACHMENT_LIST_MAX, acceptCurrentTurn, createOUI, createSurfaceRuntime, defineSurface } from './chunk-YWAHY7R3.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, observationIndexEntry, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from './chunk-OSFGTDAM.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';
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { e as OUIActionResult } from '../types-6doPwE6g.cjs';
4
- import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-BIekR9rL.cjs';
5
- import '../websocket-CCpPMZ5a.cjs';
3
+ import { e as OUIActionResult } from '../types-BNUECkjl.cjs';
4
+ import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-DrHIKVGg.cjs';
5
+ import '../websocket-sj4FmEZD.cjs';
6
6
 
7
7
  interface SurfaceRuntimeProviderProps {
8
8
  /** A runtime in either form (§7.3.8). */
@@ -1,8 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { e as OUIActionResult } from '../types-6doPwE6g.js';
4
- import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-DXEFMXK7.js';
5
- import '../websocket-DHbDDwvt.js';
3
+ import { e as OUIActionResult } from '../types-BNUECkjl.js';
4
+ import { i as SurfaceRuntime, h as SurfaceForm, D as DefinedSurface } from '../surface-runtime-EASHWNtv.js';
5
+ import '../websocket-BlQDrFtE.js';
6
6
 
7
7
  interface SurfaceRuntimeProviderProps {
8
8
  /** A runtime in either form (§7.3.8). */
@@ -1,176 +1,176 @@
1
1
  'use strict';
2
2
 
3
- var chunkYOJABWGB_cjs = require('../chunk-YOJABWGB.cjs');
3
+ var chunkTGMRXTZV_cjs = require('../chunk-TGMRXTZV.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "ARGS_HASH_PATTERN", {
8
8
  enumerable: true,
9
- get: function () { return chunkYOJABWGB_cjs.ARGS_HASH_PATTERN; }
9
+ get: function () { return chunkTGMRXTZV_cjs.ARGS_HASH_PATTERN; }
10
10
  });
11
11
  Object.defineProperty(exports, "ATTACHMENT_ID_PATTERN", {
12
12
  enumerable: true,
13
- get: function () { return chunkYOJABWGB_cjs.ATTACHMENT_ID_PATTERN; }
13
+ get: function () { return chunkTGMRXTZV_cjs.ATTACHMENT_ID_PATTERN; }
14
14
  });
15
15
  Object.defineProperty(exports, "DEFINITION_HASH_HEX", {
16
16
  enumerable: true,
17
- get: function () { return chunkYOJABWGB_cjs.DEFINITION_HASH_HEX; }
17
+ get: function () { return chunkTGMRXTZV_cjs.DEFINITION_HASH_HEX; }
18
18
  });
19
19
  Object.defineProperty(exports, "FIT_LIST_STEPS", {
20
20
  enumerable: true,
21
- get: function () { return chunkYOJABWGB_cjs.FIT_LIST_STEPS; }
21
+ get: function () { return chunkTGMRXTZV_cjs.FIT_LIST_STEPS; }
22
22
  });
23
23
  Object.defineProperty(exports, "FIT_TEXT_CHARS", {
24
24
  enumerable: true,
25
- get: function () { return chunkYOJABWGB_cjs.FIT_TEXT_CHARS; }
25
+ get: function () { return chunkTGMRXTZV_cjs.FIT_TEXT_CHARS; }
26
26
  });
27
27
  Object.defineProperty(exports, "INDEX_DESCRIPTION_CHARS", {
28
28
  enumerable: true,
29
- get: function () { return chunkYOJABWGB_cjs.INDEX_DESCRIPTION_CHARS; }
29
+ get: function () { return chunkTGMRXTZV_cjs.INDEX_DESCRIPTION_CHARS; }
30
30
  });
31
31
  Object.defineProperty(exports, "INDEX_INPUT_CHARS", {
32
32
  enumerable: true,
33
- get: function () { return chunkYOJABWGB_cjs.INDEX_INPUT_CHARS; }
33
+ get: function () { return chunkTGMRXTZV_cjs.INDEX_INPUT_CHARS; }
34
34
  });
35
35
  Object.defineProperty(exports, "INDEX_INPUT_PROPERTIES", {
36
36
  enumerable: true,
37
- get: function () { return chunkYOJABWGB_cjs.INDEX_INPUT_PROPERTIES; }
37
+ get: function () { return chunkTGMRXTZV_cjs.INDEX_INPUT_PROPERTIES; }
38
38
  });
39
39
  Object.defineProperty(exports, "OUI_ATTACHMENT_FORMAT", {
40
40
  enumerable: true,
41
- get: function () { return chunkYOJABWGB_cjs.OUI_ATTACHMENT_FORMAT; }
41
+ get: function () { return chunkTGMRXTZV_cjs.OUI_ATTACHMENT_FORMAT; }
42
42
  });
43
43
  Object.defineProperty(exports, "OUI_DESCRIBE_ACTION", {
44
44
  enumerable: true,
45
- get: function () { return chunkYOJABWGB_cjs.OUI_DESCRIBE_ACTION; }
45
+ get: function () { return chunkTGMRXTZV_cjs.OUI_DESCRIBE_ACTION; }
46
46
  });
47
47
  Object.defineProperty(exports, "OUI_EFFECT_ACCESS", {
48
48
  enumerable: true,
49
- get: function () { return chunkYOJABWGB_cjs.OUI_EFFECT_ACCESS; }
49
+ get: function () { return chunkTGMRXTZV_cjs.OUI_EFFECT_ACCESS; }
50
50
  });
51
51
  Object.defineProperty(exports, "OUI_EFFECT_KINDS", {
52
52
  enumerable: true,
53
- get: function () { return chunkYOJABWGB_cjs.OUI_EFFECT_KINDS; }
53
+ get: function () { return chunkTGMRXTZV_cjs.OUI_EFFECT_KINDS; }
54
54
  });
55
55
  Object.defineProperty(exports, "OUI_PROTOCOL_EVENTS", {
56
56
  enumerable: true,
57
- get: function () { return chunkYOJABWGB_cjs.OUI_PROTOCOL_EVENTS; }
57
+ get: function () { return chunkTGMRXTZV_cjs.OUI_PROTOCOL_EVENTS; }
58
58
  });
59
59
  Object.defineProperty(exports, "OUI_READ_ACTION", {
60
60
  enumerable: true,
61
- get: function () { return chunkYOJABWGB_cjs.OUI_READ_ACTION; }
61
+ get: function () { return chunkTGMRXTZV_cjs.OUI_READ_ACTION; }
62
62
  });
63
63
  Object.defineProperty(exports, "OUI_RUNTIME_SURFACE", {
64
64
  enumerable: true,
65
- get: function () { return chunkYOJABWGB_cjs.OUI_RUNTIME_SURFACE; }
65
+ get: function () { return chunkTGMRXTZV_cjs.OUI_RUNTIME_SURFACE; }
66
66
  });
67
67
  Object.defineProperty(exports, "acceptsMediaType", {
68
68
  enumerable: true,
69
- get: function () { return chunkYOJABWGB_cjs.acceptsMediaType; }
69
+ get: function () { return chunkTGMRXTZV_cjs.acceptsMediaType; }
70
70
  });
71
71
  Object.defineProperty(exports, "argsHash", {
72
72
  enumerable: true,
73
- get: function () { return chunkYOJABWGB_cjs.argsHash; }
73
+ get: function () { return chunkTGMRXTZV_cjs.argsHash; }
74
74
  });
75
75
  Object.defineProperty(exports, "atPointer", {
76
76
  enumerable: true,
77
- get: function () { return chunkYOJABWGB_cjs.atPointer; }
77
+ get: function () { return chunkTGMRXTZV_cjs.atPointer; }
78
78
  });
79
79
  Object.defineProperty(exports, "attachmentIdsIn", {
80
80
  enumerable: true,
81
- get: function () { return chunkYOJABWGB_cjs.attachmentIdsIn; }
81
+ get: function () { return chunkTGMRXTZV_cjs.attachmentIdsIn; }
82
82
  });
83
83
  Object.defineProperty(exports, "attachmentInputOf", {
84
84
  enumerable: true,
85
- get: function () { return chunkYOJABWGB_cjs.attachmentInputOf; }
85
+ get: function () { return chunkTGMRXTZV_cjs.attachmentInputOf; }
86
86
  });
87
87
  Object.defineProperty(exports, "attachmentInputs", {
88
88
  enumerable: true,
89
- get: function () { return chunkYOJABWGB_cjs.attachmentInputs; }
89
+ get: function () { return chunkTGMRXTZV_cjs.attachmentInputs; }
90
90
  });
91
91
  Object.defineProperty(exports, "canonicalJson", {
92
92
  enumerable: true,
93
- get: function () { return chunkYOJABWGB_cjs.canonicalJson; }
93
+ get: function () { return chunkTGMRXTZV_cjs.canonicalJson; }
94
94
  });
95
95
  Object.defineProperty(exports, "constantOf", {
96
96
  enumerable: true,
97
- get: function () { return chunkYOJABWGB_cjs.constantOf; }
97
+ get: function () { return chunkTGMRXTZV_cjs.constantOf; }
98
98
  });
99
99
  Object.defineProperty(exports, "definitionHash", {
100
100
  enumerable: true,
101
- get: function () { return chunkYOJABWGB_cjs.definitionHash; }
101
+ get: function () { return chunkTGMRXTZV_cjs.definitionHash; }
102
102
  });
103
103
  Object.defineProperty(exports, "discriminatorOf", {
104
104
  enumerable: true,
105
- get: function () { return chunkYOJABWGB_cjs.discriminatorOf; }
105
+ get: function () { return chunkTGMRXTZV_cjs.discriminatorOf; }
106
106
  });
107
107
  Object.defineProperty(exports, "effectAccess", {
108
108
  enumerable: true,
109
- get: function () { return chunkYOJABWGB_cjs.effectAccess; }
109
+ get: function () { return chunkTGMRXTZV_cjs.effectAccess; }
110
110
  });
111
111
  Object.defineProperty(exports, "firstSentence", {
112
112
  enumerable: true,
113
- get: function () { return chunkYOJABWGB_cjs.firstSentence; }
113
+ get: function () { return chunkTGMRXTZV_cjs.firstSentence; }
114
114
  });
115
115
  Object.defineProperty(exports, "fitObservations", {
116
116
  enumerable: true,
117
- get: function () { return chunkYOJABWGB_cjs.fitObservations; }
117
+ get: function () { return chunkTGMRXTZV_cjs.fitObservations; }
118
118
  });
119
119
  Object.defineProperty(exports, "indexEntry", {
120
120
  enumerable: true,
121
- get: function () { return chunkYOJABWGB_cjs.indexEntry; }
121
+ get: function () { return chunkTGMRXTZV_cjs.indexEntry; }
122
122
  });
123
123
  Object.defineProperty(exports, "isAttachmentId", {
124
124
  enumerable: true,
125
- get: function () { return chunkYOJABWGB_cjs.isAttachmentId; }
125
+ get: function () { return chunkTGMRXTZV_cjs.isAttachmentId; }
126
126
  });
127
127
  Object.defineProperty(exports, "jsonBytes", {
128
128
  enumerable: true,
129
- get: function () { return chunkYOJABWGB_cjs.jsonBytes; }
129
+ get: function () { return chunkTGMRXTZV_cjs.jsonBytes; }
130
130
  });
131
131
  Object.defineProperty(exports, "misplacedAttachmentInputs", {
132
132
  enumerable: true,
133
- get: function () { return chunkYOJABWGB_cjs.misplacedAttachmentInputs; }
133
+ get: function () { return chunkTGMRXTZV_cjs.misplacedAttachmentInputs; }
134
134
  });
135
135
  Object.defineProperty(exports, "observationIndexEntry", {
136
136
  enumerable: true,
137
- get: function () { return chunkYOJABWGB_cjs.observationIndexEntry; }
137
+ get: function () { return chunkTGMRXTZV_cjs.observationIndexEntry; }
138
138
  });
139
139
  Object.defineProperty(exports, "pointerStep", {
140
140
  enumerable: true,
141
- get: function () { return chunkYOJABWGB_cjs.pointerStep; }
141
+ get: function () { return chunkTGMRXTZV_cjs.pointerStep; }
142
142
  });
143
143
  Object.defineProperty(exports, "pointerSteps", {
144
144
  enumerable: true,
145
- get: function () { return chunkYOJABWGB_cjs.pointerSteps; }
145
+ get: function () { return chunkTGMRXTZV_cjs.pointerSteps; }
146
146
  });
147
147
  Object.defineProperty(exports, "requiresApproval", {
148
148
  enumerable: true,
149
- get: function () { return chunkYOJABWGB_cjs.requiresApproval; }
149
+ get: function () { return chunkTGMRXTZV_cjs.requiresApproval; }
150
150
  });
151
151
  Object.defineProperty(exports, "sortedJson", {
152
152
  enumerable: true,
153
- get: function () { return chunkYOJABWGB_cjs.sortedJson; }
153
+ get: function () { return chunkTGMRXTZV_cjs.sortedJson; }
154
154
  });
155
155
  Object.defineProperty(exports, "summarizeInput", {
156
156
  enumerable: true,
157
- get: function () { return chunkYOJABWGB_cjs.summarizeInput; }
157
+ get: function () { return chunkTGMRXTZV_cjs.summarizeInput; }
158
158
  });
159
159
  Object.defineProperty(exports, "surfaceIndex", {
160
160
  enumerable: true,
161
- get: function () { return chunkYOJABWGB_cjs.surfaceIndex; }
161
+ get: function () { return chunkTGMRXTZV_cjs.surfaceIndex; }
162
162
  });
163
163
  Object.defineProperty(exports, "surfacesHash", {
164
164
  enumerable: true,
165
- get: function () { return chunkYOJABWGB_cjs.surfacesHash; }
165
+ get: function () { return chunkTGMRXTZV_cjs.surfacesHash; }
166
166
  });
167
167
  Object.defineProperty(exports, "utf8Length", {
168
168
  enumerable: true,
169
- get: function () { return chunkYOJABWGB_cjs.utf8Length; }
169
+ get: function () { return chunkTGMRXTZV_cjs.utf8Length; }
170
170
  });
171
171
  Object.defineProperty(exports, "withoutTitleLeadIn", {
172
172
  enumerable: true,
173
- get: function () { return chunkYOJABWGB_cjs.withoutTitleLeadIn; }
173
+ get: function () { return chunkTGMRXTZV_cjs.withoutTitleLeadIn; }
174
174
  });
175
175
  //# sourceMappingURL=index.cjs.map
176
176
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { s as OUISurface, u as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, m as OUIObservation, n as OUIObservationIndexEntry, o as OUIObservationSnapshot, k as OUIFitCut } from '../types-6doPwE6g.cjs';
2
- export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, t as OUISurfaceDeregistration, v as OUISurfaceRegistration, w as OUISurfaceSnapshot, x as OUI_EFFECT_ACCESS, y as OUI_EFFECT_KINDS, z as OUI_PROTOCOL_EVENTS, B as argsHash, C as canonicalJson, D as effectAccess, E as requiresApproval } from '../types-6doPwE6g.cjs';
1
+ import { t as OUISurface, v as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, m as OUIObservation, n as OUIObservationIndexEntry, o as OUIObservationSnapshot, k as OUIFitCut } from '../types-BNUECkjl.cjs';
2
+ export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISettledWork, u as OUISurfaceDeregistration, w as OUISurfaceRegistration, x as OUISurfaceSnapshot, y as OUI_EFFECT_ACCESS, z as OUI_EFFECT_KINDS, B as OUI_PROTOCOL_EVENTS, C as argsHash, D as canonicalJson, E as effectAccess, F as requiresApproval } from '../types-BNUECkjl.cjs';
3
3
 
4
4
  /**
5
5
  * The identity of a set of surfaces, for an answer that need not repeat them
@@ -1,5 +1,5 @@
1
- import { s as OUISurface, u as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, m as OUIObservation, n as OUIObservationIndexEntry, o as OUIObservationSnapshot, k as OUIFitCut } from '../types-6doPwE6g.js';
2
- export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, t as OUISurfaceDeregistration, v as OUISurfaceRegistration, w as OUISurfaceSnapshot, x as OUI_EFFECT_ACCESS, y as OUI_EFFECT_KINDS, z as OUI_PROTOCOL_EVENTS, B as argsHash, C as canonicalJson, D as effectAccess, E as requiresApproval } from '../types-6doPwE6g.js';
1
+ import { t as OUISurface, v as OUISurfaceIndex, J as JSONSchema, O as OUIAction, b as OUIActionIndexEntry, m as OUIObservation, n as OUIObservationIndexEntry, o as OUIObservationSnapshot, k as OUIFitCut } from '../types-BNUECkjl.js';
2
+ export { A as ARGS_HASH_PATTERN, a as OUIActionApproval, c as OUIActionPolling, d as OUIActionRequest, e as OUIActionResult, f as OUIActivation, g as OUIApprovalGrant, h as OUIClientSnapshot, i as OUIEffectKind, j as OUIFit, l as OUIIndexSnapshot, p as OUIObservationUpdate, q as OUIProtocolEvent, r as OUIResultDelivery, s as OUISettledWork, u as OUISurfaceDeregistration, w as OUISurfaceRegistration, x as OUISurfaceSnapshot, y as OUI_EFFECT_ACCESS, z as OUI_EFFECT_KINDS, B as OUI_PROTOCOL_EVENTS, C as argsHash, D as canonicalJson, E as effectAccess, F as requiresApproval } from '../types-BNUECkjl.js';
3
3
 
4
4
  /**
5
5
  * The identity of a set of surfaces, for an answer that need not repeat them
@@ -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, observationIndexEntry, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from '../chunk-3EMDNYQD.js';
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, observationIndexEntry, pointerStep, pointerSteps, requiresApproval, sortedJson, summarizeInput, surfaceIndex, surfacesHash, utf8Length, withoutTitleLeadIn } from '../chunk-OSFGTDAM.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { i as OUIEffectKind, J as JSONSchema, c as OUIActionPolling, f as OUIActivation, s as OUISurface, l as OUIIndexSnapshot, w as OUISurfaceSnapshot, d as OUIActionRequest, e as OUIActionResult, g as OUIApprovalGrant } from './types-6doPwE6g.js';
2
- import { S as SocketLike, e as OUITransportConfig } from './websocket-DHbDDwvt.js';
1
+ import { i as OUIEffectKind, J as JSONSchema, c as OUIActionPolling, f as OUIActivation, t as OUISurface, l as OUIIndexSnapshot, x as OUISurfaceSnapshot, d as OUIActionRequest, e as OUIActionResult, g as OUIApprovalGrant, s as OUISettledWork } from './types-BNUECkjl.cjs';
2
+ import { S as SocketLike, e as OUITransportConfig } from './websocket-sj4FmEZD.cjs';
3
3
 
4
4
  /**
5
5
  * Nominal branding for values OUI must construct itself.
@@ -331,6 +331,22 @@ interface SurfaceRuntime<F extends SurfaceForm = "full"> {
331
331
  grantApproval(grant: OUIApprovalGrant): boolean;
332
332
  /** Called whenever the snapshot changes. */
333
333
  subscribe(listener: () => void): () => void;
334
+ /**
335
+ * Called once for each request this runtime first answered `interim: true`
336
+ * (its action started work and was not done), when the request's final
337
+ * answer, a success or a failure, has been sent and the receiving side has
338
+ * acknowledged it, so a reader of the agent runtime's results finds it
339
+ * (§7.3.3). That includes the failures the runtime sends itself: work that
340
+ * passed its polling limits (`TIMEOUT`), was started again (`SUPERSEDED`),
341
+ * or whose surface left the page (`SURFACE_NOT_MOUNTED`). A request that was
342
+ * never interim is not told, and neither is a final answer that was refused
343
+ * even trimmed, or sent with no transport attached.
344
+ *
345
+ * An agent client uses it to have the agent report work that outlived the
346
+ * turn that started it. A listener that throws is logged and does not stop
347
+ * the others. Returns the function that removes the listener.
348
+ */
349
+ onSettled(listener: (work: OUISettledWork) => void): () => void;
334
350
  /** Stop polling, detach from the socket and forget every mount. */
335
351
  dispose(): void;
336
352
  }
@@ -1,5 +1,5 @@
1
- import { i as OUIEffectKind, J as JSONSchema, c as OUIActionPolling, f as OUIActivation, s as OUISurface, l as OUIIndexSnapshot, w as OUISurfaceSnapshot, d as OUIActionRequest, e as OUIActionResult, g as OUIApprovalGrant } from './types-6doPwE6g.cjs';
2
- import { S as SocketLike, e as OUITransportConfig } from './websocket-CCpPMZ5a.cjs';
1
+ import { i as OUIEffectKind, J as JSONSchema, c as OUIActionPolling, f as OUIActivation, t as OUISurface, l as OUIIndexSnapshot, x as OUISurfaceSnapshot, d as OUIActionRequest, e as OUIActionResult, g as OUIApprovalGrant, s as OUISettledWork } from './types-BNUECkjl.js';
2
+ import { S as SocketLike, e as OUITransportConfig } from './websocket-BlQDrFtE.js';
3
3
 
4
4
  /**
5
5
  * Nominal branding for values OUI must construct itself.
@@ -331,6 +331,22 @@ interface SurfaceRuntime<F extends SurfaceForm = "full"> {
331
331
  grantApproval(grant: OUIApprovalGrant): boolean;
332
332
  /** Called whenever the snapshot changes. */
333
333
  subscribe(listener: () => void): () => void;
334
+ /**
335
+ * Called once for each request this runtime first answered `interim: true`
336
+ * (its action started work and was not done), when the request's final
337
+ * answer, a success or a failure, has been sent and the receiving side has
338
+ * acknowledged it, so a reader of the agent runtime's results finds it
339
+ * (§7.3.3). That includes the failures the runtime sends itself: work that
340
+ * passed its polling limits (`TIMEOUT`), was started again (`SUPERSEDED`),
341
+ * or whose surface left the page (`SURFACE_NOT_MOUNTED`). A request that was
342
+ * never interim is not told, and neither is a final answer that was refused
343
+ * even trimmed, or sent with no transport attached.
344
+ *
345
+ * An agent client uses it to have the agent report work that outlived the
346
+ * turn that started it. A listener that throws is logged and does not stop
347
+ * the others. Returns the function that removes the listener.
348
+ */
349
+ onSettled(listener: (work: OUISettledWork) => void): () => void;
334
350
  /** Stop polling, detach from the socket and forget every mount. */
335
351
  dispose(): void;
336
352
  }
@@ -1,6 +1,6 @@
1
- import { d as OUITransport } from '../websocket-CCpPMZ5a.cjs';
2
- export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from '../websocket-CCpPMZ5a.cjs';
3
- import '../types-6doPwE6g.cjs';
1
+ import { d as OUITransport } from '../websocket-sj4FmEZD.cjs';
2
+ export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from '../websocket-sj4FmEZD.cjs';
3
+ import '../types-BNUECkjl.cjs';
4
4
 
5
5
  /**
6
6
  * Direct transport — for same-process communication.
@@ -1,6 +1,6 @@
1
- import { d as OUITransport } from '../websocket-DHbDDwvt.js';
2
- export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from '../websocket-DHbDDwvt.js';
3
- import '../types-6doPwE6g.js';
1
+ import { d as OUITransport } from '../websocket-BlQDrFtE.js';
2
+ export { O as OUIAcknowledgment, a as OUIActionHandler, b as OUIObservationHandler, c as OUIResultHandler, e as OUITransportConfig, S as SocketLike, f as createWebSocketTransport } from '../websocket-BlQDrFtE.js';
3
+ import '../types-BNUECkjl.js';
4
4
 
5
5
  /**
6
6
  * Direct transport — for same-process communication.
@@ -416,6 +416,29 @@ interface OUIActionResult {
416
416
  */
417
417
  settled?: boolean;
418
418
  }
419
+ /**
420
+ * Work an action started has ended, and the agent runtime holds its outcome
421
+ * (§7.3.3). Told by a surface runtime (`onSettled`) once for each request it
422
+ * first answered `interim: true` (started, not done), when the request's final
423
+ * answer, a success or a failure, has been sent and the receiving side has
424
+ * acknowledged it: a reader of the agent runtime's results then finds it.
425
+ *
426
+ * What a client does with it is its own: an agent client can start a turn so
427
+ * the agent reports the outcome when the turn that started the work has
428
+ * already ended.
429
+ */
430
+ interface OUISettledWork {
431
+ /** The request whose work ended: the id its final answer carries. */
432
+ requestId: string;
433
+ /** The turn that sent the request, when the request named one (`OUIActionRequest.turnId`). */
434
+ turnId?: string;
435
+ surfaceId: string;
436
+ actionId: string;
437
+ /** Whether the work succeeded: the final answer's `success`. */
438
+ success: boolean;
439
+ /** When the final answer was acknowledged, epoch ms. */
440
+ at: number;
441
+ }
419
442
  /** Latest observation values, keyed by surface id and then observation id. */
420
443
  type OUIObservationSnapshot = Record<string, Record<string, unknown>>;
421
444
  /**
@@ -510,4 +533,4 @@ declare const OUI_PROTOCOL_EVENTS: {
510
533
  readonly OBSERVATION_UPDATE: "observation:update";
511
534
  };
512
535
 
513
- export { ARGS_HASH_PATTERN as A, argsHash as B, canonicalJson as C, effectAccess as D, requiresApproval as E, type JSONSchema as J, type OUIAction as O, type OUIActionApproval as a, type OUIActionIndexEntry as b, type OUIActionPolling as c, type OUIActionRequest as d, type OUIActionResult as e, type OUIActivation as f, type OUIApprovalGrant as g, type OUIClientSnapshot as h, type OUIEffectKind as i, type OUIFit as j, type OUIFitCut as k, type OUIIndexSnapshot as l, type OUIObservation as m, type OUIObservationIndexEntry as n, type OUIObservationSnapshot as o, type OUIObservationUpdate as p, type OUIProtocolEvent as q, type OUIResultDelivery as r, type OUISurface as s, type OUISurfaceDeregistration as t, type OUISurfaceIndex as u, type OUISurfaceRegistration as v, type OUISurfaceSnapshot as w, OUI_EFFECT_ACCESS as x, OUI_EFFECT_KINDS as y, OUI_PROTOCOL_EVENTS as z };
536
+ export { ARGS_HASH_PATTERN as A, OUI_PROTOCOL_EVENTS as B, argsHash as C, canonicalJson as D, effectAccess as E, requiresApproval as F, type JSONSchema as J, type OUIAction as O, type OUIActionApproval as a, type OUIActionIndexEntry as b, type OUIActionPolling as c, type OUIActionRequest as d, type OUIActionResult as e, type OUIActivation as f, type OUIApprovalGrant as g, type OUIClientSnapshot as h, type OUIEffectKind as i, type OUIFit as j, type OUIFitCut as k, type OUIIndexSnapshot as l, type OUIObservation as m, type OUIObservationIndexEntry as n, type OUIObservationSnapshot as o, type OUIObservationUpdate as p, type OUIProtocolEvent as q, type OUIResultDelivery as r, type OUISettledWork as s, type OUISurface as t, type OUISurfaceDeregistration as u, type OUISurfaceIndex as v, type OUISurfaceRegistration as w, type OUISurfaceSnapshot as x, OUI_EFFECT_ACCESS as y, OUI_EFFECT_KINDS as z };
@@ -416,6 +416,29 @@ interface OUIActionResult {
416
416
  */
417
417
  settled?: boolean;
418
418
  }
419
+ /**
420
+ * Work an action started has ended, and the agent runtime holds its outcome
421
+ * (§7.3.3). Told by a surface runtime (`onSettled`) once for each request it
422
+ * first answered `interim: true` (started, not done), when the request's final
423
+ * answer, a success or a failure, has been sent and the receiving side has
424
+ * acknowledged it: a reader of the agent runtime's results then finds it.
425
+ *
426
+ * What a client does with it is its own: an agent client can start a turn so
427
+ * the agent reports the outcome when the turn that started the work has
428
+ * already ended.
429
+ */
430
+ interface OUISettledWork {
431
+ /** The request whose work ended: the id its final answer carries. */
432
+ requestId: string;
433
+ /** The turn that sent the request, when the request named one (`OUIActionRequest.turnId`). */
434
+ turnId?: string;
435
+ surfaceId: string;
436
+ actionId: string;
437
+ /** Whether the work succeeded: the final answer's `success`. */
438
+ success: boolean;
439
+ /** When the final answer was acknowledged, epoch ms. */
440
+ at: number;
441
+ }
419
442
  /** Latest observation values, keyed by surface id and then observation id. */
420
443
  type OUIObservationSnapshot = Record<string, Record<string, unknown>>;
421
444
  /**
@@ -510,4 +533,4 @@ declare const OUI_PROTOCOL_EVENTS: {
510
533
  readonly OBSERVATION_UPDATE: "observation:update";
511
534
  };
512
535
 
513
- export { ARGS_HASH_PATTERN as A, argsHash as B, canonicalJson as C, effectAccess as D, requiresApproval as E, type JSONSchema as J, type OUIAction as O, type OUIActionApproval as a, type OUIActionIndexEntry as b, type OUIActionPolling as c, type OUIActionRequest as d, type OUIActionResult as e, type OUIActivation as f, type OUIApprovalGrant as g, type OUIClientSnapshot as h, type OUIEffectKind as i, type OUIFit as j, type OUIFitCut as k, type OUIIndexSnapshot as l, type OUIObservation as m, type OUIObservationIndexEntry as n, type OUIObservationSnapshot as o, type OUIObservationUpdate as p, type OUIProtocolEvent as q, type OUIResultDelivery as r, type OUISurface as s, type OUISurfaceDeregistration as t, type OUISurfaceIndex as u, type OUISurfaceRegistration as v, type OUISurfaceSnapshot as w, OUI_EFFECT_ACCESS as x, OUI_EFFECT_KINDS as y, OUI_PROTOCOL_EVENTS as z };
536
+ export { ARGS_HASH_PATTERN as A, OUI_PROTOCOL_EVENTS as B, argsHash as C, canonicalJson as D, effectAccess as E, requiresApproval as F, type JSONSchema as J, type OUIAction as O, type OUIActionApproval as a, type OUIActionIndexEntry as b, type OUIActionPolling as c, type OUIActionRequest as d, type OUIActionResult as e, type OUIActivation as f, type OUIApprovalGrant as g, type OUIClientSnapshot as h, type OUIEffectKind as i, type OUIFit as j, type OUIFitCut as k, type OUIIndexSnapshot as l, type OUIObservation as m, type OUIObservationIndexEntry as n, type OUIObservationSnapshot as o, type OUIObservationUpdate as p, type OUIProtocolEvent as q, type OUIResultDelivery as r, type OUISettledWork as s, type OUISurface as t, type OUISurfaceDeregistration as u, type OUISurfaceIndex as v, type OUISurfaceRegistration as w, type OUISurfaceSnapshot as x, OUI_EFFECT_ACCESS as y, OUI_EFFECT_KINDS as z };
@@ -1,4 +1,4 @@
1
- import { d as OUIActionRequest, e as OUIActionResult, p as OUIObservationUpdate, s as OUISurface } from './types-6doPwE6g.js';
1
+ import { d as OUIActionRequest, e as OUIActionResult, p as OUIObservationUpdate, t as OUISurface } from './types-BNUECkjl.js';
2
2
 
3
3
  /**
4
4
  * OUI Transport — the wire protocol between agent runtime and surfaces.
@@ -1,4 +1,4 @@
1
- import { d as OUIActionRequest, e as OUIActionResult, p as OUIObservationUpdate, s as OUISurface } from './types-6doPwE6g.cjs';
1
+ import { d as OUIActionRequest, e as OUIActionResult, p as OUIObservationUpdate, t as OUISurface } from './types-BNUECkjl.cjs';
2
2
 
3
3
  /**
4
4
  * OUI Transport — the wire protocol between agent runtime and surfaces.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oui-spec",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "OUI — The OpenUI Specification. A machine-readable contract for agent-controllable user interfaces.",
5
5
  "keywords": [
6
6
  "oui",
@@ -658,6 +658,7 @@ When the agent invokes an action, the runtime sends an `action:request`:
658
658
  - If `success` is `true`, the `error` field MUST NOT be present
659
659
  - An async action's acknowledgment result MUST set `interim: true`; its final result MUST set `interim: false`
660
660
  - An async action whose work failed MUST send its final result as a failure (`success: false`, with `error`); it MAY keep the work's own report in `data`
661
+ - A client runtime MAY tell the application when an async action's final result has been delivered and acknowledged (`OUISettledWork`; the reference runtime's `onSettled`), so the application can act on work that outlived the agent's turn: an agent client can start a turn in which the agent reports the outcome
661
662
 
662
663
  #### 7.3.4 The Client's State After an Action
663
664