@copilotkit/core 2.0.0-rc.42 → 2.0.0-rc.44
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/dist/chat-configuration.d.cts +1 -1
- package/dist/chat-configuration.d.mts +1 -1
- package/dist/generative-ui/index.cjs +325 -13
- package/dist/generative-ui/index.cjs.map +1 -1
- package/dist/generative-ui/index.d.cts +106 -8
- package/dist/generative-ui/index.d.cts.map +1 -1
- package/dist/generative-ui/index.d.mts +106 -8
- package/dist/generative-ui/index.d.mts.map +1 -1
- package/dist/generative-ui/index.mjs +323 -11
- package/dist/generative-ui/index.mjs.map +1 -1
- package/dist/index.cjs +58 -792
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +58 -767
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +137 -911
- package/dist/index.umd.js.map +1 -1
- package/dist/{learning-bridge-DNdPfyx2.d.mts → learning-bridge-DbE4J5tK.d.mts} +64 -460
- package/dist/learning-bridge-DbE4J5tK.d.mts.map +1 -0
- package/dist/{learning-bridge-DkOdyUdA.d.cts → learning-bridge-jOC46U9n.d.cts} +64 -460
- package/dist/learning-bridge-jOC46U9n.d.cts.map +1 -0
- package/dist/styles.cjs +1 -1
- package/dist/styles.cjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.mjs +1 -1
- package/dist/styles.mjs.map +1 -1
- package/package.json +3 -4
- package/tsdown.config.ts +0 -4
- package/dist/learning-bridge-DNdPfyx2.d.mts.map +0 -1
- package/dist/learning-bridge-DkOdyUdA.d.cts.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Su as ɵGenerativeUIDebugSource, Vo as A2UIMarkdownOperation, a as CopilotKitCore, bu as ɵGenerativeUIDebugRun, es as MarkdownSegment } from "../learning-bridge-jOC46U9n.cjs";
|
|
2
2
|
import "../index.cjs";
|
|
3
3
|
import { AbstractAgent, Message } from "@ag-ui/client";
|
|
4
4
|
import { A2UIActionMessage, A2UIFunctionPermissions, A2UIFunctionReturnType, A2UIOperation, CopilotKitUIEnvelope, GenerativeUIActionBinding, GenerativeUIFunctionManifest, GenerativeUIManifest, GenerativeUIRejectedOperation, GenerativeUISurfaceContent, GenerativeUISurfaceStatus, GenerativeUISurfaceSummary, GenerativeUITarget, GenerativeUIUserEvent, StandardSchemaV1, ValidateOperationOptions } from "@copilotkit/shared";
|
|
5
5
|
import { GenerativeUI, GenerativeUIError, GenerativeUIErrorInfo, GenerativeUIInvokeResult, GenerativeUISchema } from "@copilotkit/shared/generative-ui";
|
|
6
|
-
import { SurfaceModel } from "@a2ui/web_core/state";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/generative-ui/dispatcher.d.ts
|
|
@@ -64,6 +63,101 @@ interface GenerativeUIDispatcherOptions {
|
|
|
64
63
|
}
|
|
65
64
|
declare function createGenerativeUIDispatcher(options: GenerativeUIDispatcherOptions): GenerativeUIDispatcher;
|
|
66
65
|
//#endregion
|
|
66
|
+
//#region src/generative-ui/surface-model.d.ts
|
|
67
|
+
/**
|
|
68
|
+
* The state of one generated surface: its data model and its components.
|
|
69
|
+
*
|
|
70
|
+
* These classes replace the state classes of A2UI web_core (0.15) that
|
|
71
|
+
* generative UI used before. They keep their behavior, so the surface
|
|
72
|
+
* manager and the renderers work as before, without web_core, Zod 3 or
|
|
73
|
+
* Preact Signals in the bundle:
|
|
74
|
+
*
|
|
75
|
+
* - Paths are JSON Pointers: `~1` reads as `/`, `~0` as `~`, and empty
|
|
76
|
+
* segments are ignored ("/a//b/" is "/a/b").
|
|
77
|
+
* - `set` makes the missing containers on its way: an array when the next
|
|
78
|
+
* segment is an index, else an object. `null` and `undefined` remove the
|
|
79
|
+
* key (an array index keeps its slot, as `undefined`).
|
|
80
|
+
* - `get` returns the stored value itself, not a copy.
|
|
81
|
+
* - A write notifies the subscribers of its path, of the paths above it and
|
|
82
|
+
* of the paths below it, when the value at their path changed. An object
|
|
83
|
+
* or an array always counts as changed; the subscriber gets a shallow copy.
|
|
84
|
+
* - Notifications run after the write is complete. A write made by a
|
|
85
|
+
* subscriber is notified after the current round of subscribers, and a
|
|
86
|
+
* subscriber that throws does not stop the others: `set` throws its error
|
|
87
|
+
* after all of them ran (the batching of Preact Signals, which web_core
|
|
88
|
+
* used).
|
|
89
|
+
*/
|
|
90
|
+
/** A subscription to one path of a `DataModel`. */
|
|
91
|
+
interface DataSubscription {
|
|
92
|
+
unsubscribe(): void;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The data model of a surface: a JSON value read and written by JSON
|
|
96
|
+
* Pointer, with subscriptions per path.
|
|
97
|
+
*/
|
|
98
|
+
declare class DataModel {
|
|
99
|
+
private data;
|
|
100
|
+
/** By normalized path. Kept until `dispose`, as web_core kept its signals. */
|
|
101
|
+
private readonly paths;
|
|
102
|
+
/** @param initialData - The value of the root. Defaults to `{}`. */
|
|
103
|
+
constructor(initialData?: unknown);
|
|
104
|
+
/**
|
|
105
|
+
* The value at `path`, or `undefined` when there is none. "/" or "" is the
|
|
106
|
+
* root. The value is the stored one, not a copy.
|
|
107
|
+
*/
|
|
108
|
+
get(path: string): unknown;
|
|
109
|
+
/**
|
|
110
|
+
* Writes `value` at `path`, making the missing containers on the way, and
|
|
111
|
+
* notifies the subscribers. `null` or `undefined` removes the key; at the
|
|
112
|
+
* root it resets the data to `{}`.
|
|
113
|
+
*
|
|
114
|
+
* @throws Error when a segment is forbidden, when the path goes through a
|
|
115
|
+
* primitive, uses a non-index segment on an array, or an index above
|
|
116
|
+
* 10000, or when a subscriber throws (after the write).
|
|
117
|
+
*/
|
|
118
|
+
set(path: string, value: unknown): this;
|
|
119
|
+
/**
|
|
120
|
+
* Calls `onChange` with the new value when the value at `path` changes:
|
|
121
|
+
* after a write at `path`, above it or below it. It is not called with
|
|
122
|
+
* the current value.
|
|
123
|
+
*/
|
|
124
|
+
subscribe(path: string, onChange: (value: unknown) => void): DataSubscription;
|
|
125
|
+
/** Ends every subscription. The data stays. */
|
|
126
|
+
dispose(): void;
|
|
127
|
+
/** Refreshes `path`, the paths above it and the paths below it. */
|
|
128
|
+
private notify;
|
|
129
|
+
/** Queues the subscribers of `key` when its value changed. */
|
|
130
|
+
private refresh;
|
|
131
|
+
}
|
|
132
|
+
/** One component of a surface. */
|
|
133
|
+
declare class ComponentModel {
|
|
134
|
+
readonly id: string;
|
|
135
|
+
/** The component name, for example "Text". */
|
|
136
|
+
readonly type: string;
|
|
137
|
+
/** The node without `id` and `component`. Replaced on update. */
|
|
138
|
+
properties: Record<string, unknown>;
|
|
139
|
+
constructor(id: string, type: string, properties: Record<string, unknown>);
|
|
140
|
+
}
|
|
141
|
+
/** The components of a surface, by id, in the order they were added. */
|
|
142
|
+
declare class SurfaceComponentsModel {
|
|
143
|
+
private readonly components;
|
|
144
|
+
get(id: string): ComponentModel | undefined;
|
|
145
|
+
get entries(): IterableIterator<[string, ComponentModel]>;
|
|
146
|
+
/** @throws Error when a component with the same id is there. */
|
|
147
|
+
addComponent(component: ComponentModel): void;
|
|
148
|
+
removeComponent(id: string): void;
|
|
149
|
+
dispose(): void;
|
|
150
|
+
}
|
|
151
|
+
/** The state of one surface. */
|
|
152
|
+
declare class SurfaceModel {
|
|
153
|
+
readonly id: string;
|
|
154
|
+
readonly dataModel: DataModel;
|
|
155
|
+
readonly componentsModel: SurfaceComponentsModel;
|
|
156
|
+
constructor(id: string);
|
|
157
|
+
/** Ends the data subscriptions and drops the components. */
|
|
158
|
+
dispose(): void;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
67
161
|
//#region src/generative-ui/surface-manager.d.ts
|
|
68
162
|
declare function surfaceKey(threadId: string, surfaceId: string): string;
|
|
69
163
|
interface ManagedSurface {
|
|
@@ -72,7 +166,7 @@ interface ManagedSurface {
|
|
|
72
166
|
readonly surfaceId: string;
|
|
73
167
|
readonly agentId: string | undefined;
|
|
74
168
|
/** Replaced by an empty model when the surface closes, to free its data. */
|
|
75
|
-
model: SurfaceModel
|
|
169
|
+
model: SurfaceModel;
|
|
76
170
|
readonly createdAt: number;
|
|
77
171
|
target: string;
|
|
78
172
|
status: GenerativeUISurfaceStatus;
|
|
@@ -85,6 +179,11 @@ interface ManagedSurface {
|
|
|
85
179
|
clientRejected: GenerativeUIRejectedOperation[];
|
|
86
180
|
/** The committed operations of the latest content, for the inspector. */
|
|
87
181
|
operations: readonly A2UIOperation[];
|
|
182
|
+
/**
|
|
183
|
+
* `"0.9"` when the runtime converted the surface from A2UI v0.9, from the
|
|
184
|
+
* latest content. The surface summary sends it to the runtime.
|
|
185
|
+
*/
|
|
186
|
+
a2uiSourceVersion?: "0.9";
|
|
88
187
|
}
|
|
89
188
|
interface GenerativeUISurfaceManagerOptions {
|
|
90
189
|
onOperationRejected?: (info: {
|
|
@@ -110,7 +209,7 @@ interface GenerativeUIMountedTarget {
|
|
|
110
209
|
components?: string[];
|
|
111
210
|
}
|
|
112
211
|
/**
|
|
113
|
-
* Framework-agnostic store of generated surfaces. One
|
|
212
|
+
* Framework-agnostic store of generated surfaces. One SurfaceModel per
|
|
114
213
|
* (threadId, surfaceId), shared by every mount. Applies only newly committed
|
|
115
214
|
* operations, validates each before applying it, and owns app state and the
|
|
116
215
|
* data model paths that the user wrote, so agent updates cannot overwrite
|
|
@@ -143,7 +242,6 @@ declare class GenerativeUISurfaceManager {
|
|
|
143
242
|
* to every part, so an input in one part drives a binding in another.
|
|
144
243
|
*/
|
|
145
244
|
private readonly linked;
|
|
146
|
-
private readonly webCoreCatalog;
|
|
147
245
|
private activeThreadId;
|
|
148
246
|
private version;
|
|
149
247
|
constructor(ui: GenerativeUI, options?: GenerativeUISurfaceManagerOptions);
|
|
@@ -660,7 +758,7 @@ declare function series(args: Record<string, unknown>): unknown[];
|
|
|
660
758
|
* `${...}` expressions. Objects and arrays are walked, so a binding can sit
|
|
661
759
|
* at any depth. A value with nothing dynamic in it keeps its identity.
|
|
662
760
|
*/
|
|
663
|
-
/** Reads the data model. The
|
|
761
|
+
/** Reads the data model. The `DataModel` of a surface fits. */
|
|
664
762
|
interface DataReader {
|
|
665
763
|
get(path: string): unknown;
|
|
666
764
|
}
|
|
@@ -1013,9 +1111,9 @@ declare const GenerativeUISurfaceContentSchema: z.ZodObject<{
|
|
|
1013
1111
|
catalogId: z.ZodString;
|
|
1014
1112
|
operations: z.ZodArray<z.ZodAny>;
|
|
1015
1113
|
status: z.ZodEnum<{
|
|
1114
|
+
error: "error";
|
|
1016
1115
|
streaming: "streaming";
|
|
1017
1116
|
ready: "ready";
|
|
1018
|
-
error: "error";
|
|
1019
1117
|
}>;
|
|
1020
1118
|
rejected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1021
1119
|
index: z.ZodNumber;
|
|
@@ -1037,5 +1135,5 @@ type ParsedGenerativeUISurfaceContent = {
|
|
|
1037
1135
|
*/
|
|
1038
1136
|
declare function parseGenerativeUISurfaceContent(content: unknown): ParsedGenerativeUISurfaceContent;
|
|
1039
1137
|
//#endregion
|
|
1040
|
-
export { BASIC_FUNCTIONS, BasicFunction, BuildMarkdownSurfacesOptions, CalcScope, CatalogManifestOptions, DataReader, ExpressionError, FunctionCallRequest, FunctionCallRunner, FunctionCallRunnerOptions, GenerativeUIAccessibility, GenerativeUIAriaAttributes, GenerativeUICallOrigin, GenerativeUIDeclaredFunction, GenerativeUIDispatcher, GenerativeUIDispatcherOptions, GenerativeUIEngine, GenerativeUIEnvelopeOptions, GenerativeUIHandlerRef, GenerativeUIInvocationOrigin, GenerativeUIMountedTarget, GenerativeUISurfaceContentSchema, GenerativeUISurfaceManager, GenerativeUISurfaceManagerOptions, GenerativeUITargetOptions, GenerativeUITransportConfig, ManagedSurface, MarkdownBuildCache, MarkdownFenceBlock, MarkdownFunctionCall, MarkdownSurfaceSource, ParsedGenerativeUISurfaceContent, PlatformError, ReadonlyMessages, ResolveAttempt, ResolveContext, ResolveOptions, Resolved, accessibilityAttributes, activityFunctionCalls, allowedComponents, buildActionMessageText, buildCatalogManifest, buildGenerativeUIEnvelope, buildGenerativeUIManifest, buildMarkdownSurfaces, builtInFunctionManifests, calc, containsDynamicValue, controlAria, createComponentLabelResolver, createFunctionCallRunner, createGenerativeUIDebugSource, createGenerativeUIDispatcher, describeGenerativeUIRun, envelopeOptionsFor, evaluateCalc, fenceKey, getMarkdownSurfaceSource, givesValidationResult, invokeBoundEvent, invokeMatchedEvent, joinPath, markdownFunctionCalls, namedRole, openUrlSafely, parseGenerativeUISurfaceContent, readAccessibility, reportErrorSafely, requiresUserActivation, resolveDynamicValue, resolvePath, scrollToSurface, series, surfaceKey, surfaceLabelResolver, templateIndex, truthOf, tryResolveDynamicValue, wrapperAria };
|
|
1138
|
+
export { BASIC_FUNCTIONS, BasicFunction, BuildMarkdownSurfacesOptions, CalcScope, CatalogManifestOptions, type ComponentModel, type DataModel, DataReader, type DataSubscription, ExpressionError, FunctionCallRequest, FunctionCallRunner, FunctionCallRunnerOptions, GenerativeUIAccessibility, GenerativeUIAriaAttributes, GenerativeUICallOrigin, GenerativeUIDeclaredFunction, GenerativeUIDispatcher, GenerativeUIDispatcherOptions, GenerativeUIEngine, GenerativeUIEnvelopeOptions, GenerativeUIHandlerRef, GenerativeUIInvocationOrigin, GenerativeUIMountedTarget, GenerativeUISurfaceContentSchema, GenerativeUISurfaceManager, GenerativeUISurfaceManagerOptions, GenerativeUITargetOptions, GenerativeUITransportConfig, ManagedSurface, MarkdownBuildCache, MarkdownFenceBlock, MarkdownFunctionCall, MarkdownSurfaceSource, ParsedGenerativeUISurfaceContent, PlatformError, ReadonlyMessages, ResolveAttempt, ResolveContext, ResolveOptions, Resolved, type SurfaceComponentsModel, type SurfaceModel, accessibilityAttributes, activityFunctionCalls, allowedComponents, buildActionMessageText, buildCatalogManifest, buildGenerativeUIEnvelope, buildGenerativeUIManifest, buildMarkdownSurfaces, builtInFunctionManifests, calc, containsDynamicValue, controlAria, createComponentLabelResolver, createFunctionCallRunner, createGenerativeUIDebugSource, createGenerativeUIDispatcher, describeGenerativeUIRun, envelopeOptionsFor, evaluateCalc, fenceKey, getMarkdownSurfaceSource, givesValidationResult, invokeBoundEvent, invokeMatchedEvent, joinPath, markdownFunctionCalls, namedRole, openUrlSafely, parseGenerativeUISurfaceContent, readAccessibility, reportErrorSafely, requiresUserActivation, resolveDynamicValue, resolvePath, scrollToSurface, series, surfaceKey, surfaceLabelResolver, templateIndex, truthOf, tryResolveDynamicValue, wrapperAria };
|
|
1041
1139
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/generative-ui/dispatcher.ts","../../src/generative-ui/surface-manager.ts","../../src/generative-ui/runtime.ts","../../src/generative-ui/functions.ts","../../src/generative-ui/markdown-source.ts","../../src/generative-ui/function-calls.ts","../../src/generative-ui/calc.ts","../../src/generative-ui/resolve.ts","../../src/generative-ui/events.ts","../../src/generative-ui/manifest.ts","../../src/generative-ui/action-message.ts","../../src/generative-ui/debug-source.ts","../../src/generative-ui/accessibility.ts","../../src/generative-ui/targets.ts","../../src/generative-ui/activity-content.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/generative-ui/dispatcher.ts","../../src/generative-ui/surface-model.ts","../../src/generative-ui/surface-manager.ts","../../src/generative-ui/runtime.ts","../../src/generative-ui/functions.ts","../../src/generative-ui/markdown-source.ts","../../src/generative-ui/function-calls.ts","../../src/generative-ui/calc.ts","../../src/generative-ui/resolve.ts","../../src/generative-ui/events.ts","../../src/generative-ui/manifest.ts","../../src/generative-ui/action-message.ts","../../src/generative-ui/debug-source.ts","../../src/generative-ui/accessibility.ts","../../src/generative-ui/targets.ts","../../src/generative-ui/activity-content.ts"],"mappings":";;;;;;;;;;;;;UAuBiB,4BAAA,SAAqC,uBAAA;EACpD,WAAA;EACA,UAAA,EAAY,gBAAA;EACZ,UAAA,GAAa,s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AAA,EAAS,YAAA,EACT,UAAA;EACE,OAAA,EAAS,2BAAA;EACT,QAAA;AAAA;oCZ9EiB;iBY4HF,qBAAA;AAAA;;;;;;;;UCzJF,yBAAA;;EAEf,KAAA;EbgBe;Eadf,WAAA;;EAEA,IAAA;Ebea;Eabb,MAAA;AAAA;;UAIe,0BAAA;EACf,YAAA;EACA,kBAAA;EACA,WAAA;EACA,aAAA;AAAA;;;AbYF;;;iBaFgB,iBAAA,CACd,KAAA,YACC,yBAAA;;AbKH;;;;;AASA;;;;;iBacgB,uBAAA,CACd,aAAA,EAAe,yBAAA,eACd,0BAAA;;;;;;iBAgBa,SAAA,CACd,IAAA,EAAM,0BAAA,EACN,QAAA;;;;;;iBAac,WAAA,CACd,IAAA,EAAM,0BAAA,GACL,IAAA,CAAK,0BAAA;;;;;iBAYQ,WAAA,CACd,IAAA,EAAM,0BAAA,GACL,IAAA,CAAK,0BAAA;;;;iBC1GQ,eAAA,CAAgB,OAAA,EAAS,WAAA;;;;;iBAiBzB,iBAAA,CACd,SAAA,qBACA,EAAA,EAAI,YAAA;;;;;;;;;;cChBO,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;KAcjC,gCAAA;EACN,OAAA,EAAS,0BAAA;EAA4B,MAAA;AAAA;EACrC,OAAA;EAAqB,MAAA;AAAA;Afe3B;;;;;AAAA,iBeIgB,+BAAA,CACd,OAAA,YACC,gCAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Su as ɵGenerativeUIDebugSource, Vo as A2UIMarkdownOperation, a as CopilotKitCore, bu as ɵGenerativeUIDebugRun, es as MarkdownSegment } from "../learning-bridge-DbE4J5tK.mjs";
|
|
2
2
|
import "../index.mjs";
|
|
3
3
|
import { AbstractAgent, Message } from "@ag-ui/client";
|
|
4
4
|
import { A2UIActionMessage, A2UIFunctionPermissions, A2UIFunctionReturnType, A2UIOperation, CopilotKitUIEnvelope, GenerativeUIActionBinding, GenerativeUIFunctionManifest, GenerativeUIManifest, GenerativeUIRejectedOperation, GenerativeUISurfaceContent, GenerativeUISurfaceStatus, GenerativeUISurfaceSummary, GenerativeUITarget, GenerativeUIUserEvent, StandardSchemaV1, ValidateOperationOptions } from "@copilotkit/shared";
|
|
5
5
|
import { GenerativeUI, GenerativeUIError, GenerativeUIErrorInfo, GenerativeUIInvokeResult, GenerativeUISchema } from "@copilotkit/shared/generative-ui";
|
|
6
|
-
import { SurfaceModel } from "@a2ui/web_core/state";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
|
|
9
8
|
//#region src/generative-ui/dispatcher.d.ts
|
|
@@ -64,6 +63,101 @@ interface GenerativeUIDispatcherOptions {
|
|
|
64
63
|
}
|
|
65
64
|
declare function createGenerativeUIDispatcher(options: GenerativeUIDispatcherOptions): GenerativeUIDispatcher;
|
|
66
65
|
//#endregion
|
|
66
|
+
//#region src/generative-ui/surface-model.d.ts
|
|
67
|
+
/**
|
|
68
|
+
* The state of one generated surface: its data model and its components.
|
|
69
|
+
*
|
|
70
|
+
* These classes replace the state classes of A2UI web_core (0.15) that
|
|
71
|
+
* generative UI used before. They keep their behavior, so the surface
|
|
72
|
+
* manager and the renderers work as before, without web_core, Zod 3 or
|
|
73
|
+
* Preact Signals in the bundle:
|
|
74
|
+
*
|
|
75
|
+
* - Paths are JSON Pointers: `~1` reads as `/`, `~0` as `~`, and empty
|
|
76
|
+
* segments are ignored ("/a//b/" is "/a/b").
|
|
77
|
+
* - `set` makes the missing containers on its way: an array when the next
|
|
78
|
+
* segment is an index, else an object. `null` and `undefined` remove the
|
|
79
|
+
* key (an array index keeps its slot, as `undefined`).
|
|
80
|
+
* - `get` returns the stored value itself, not a copy.
|
|
81
|
+
* - A write notifies the subscribers of its path, of the paths above it and
|
|
82
|
+
* of the paths below it, when the value at their path changed. An object
|
|
83
|
+
* or an array always counts as changed; the subscriber gets a shallow copy.
|
|
84
|
+
* - Notifications run after the write is complete. A write made by a
|
|
85
|
+
* subscriber is notified after the current round of subscribers, and a
|
|
86
|
+
* subscriber that throws does not stop the others: `set` throws its error
|
|
87
|
+
* after all of them ran (the batching of Preact Signals, which web_core
|
|
88
|
+
* used).
|
|
89
|
+
*/
|
|
90
|
+
/** A subscription to one path of a `DataModel`. */
|
|
91
|
+
interface DataSubscription {
|
|
92
|
+
unsubscribe(): void;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The data model of a surface: a JSON value read and written by JSON
|
|
96
|
+
* Pointer, with subscriptions per path.
|
|
97
|
+
*/
|
|
98
|
+
declare class DataModel {
|
|
99
|
+
private data;
|
|
100
|
+
/** By normalized path. Kept until `dispose`, as web_core kept its signals. */
|
|
101
|
+
private readonly paths;
|
|
102
|
+
/** @param initialData - The value of the root. Defaults to `{}`. */
|
|
103
|
+
constructor(initialData?: unknown);
|
|
104
|
+
/**
|
|
105
|
+
* The value at `path`, or `undefined` when there is none. "/" or "" is the
|
|
106
|
+
* root. The value is the stored one, not a copy.
|
|
107
|
+
*/
|
|
108
|
+
get(path: string): unknown;
|
|
109
|
+
/**
|
|
110
|
+
* Writes `value` at `path`, making the missing containers on the way, and
|
|
111
|
+
* notifies the subscribers. `null` or `undefined` removes the key; at the
|
|
112
|
+
* root it resets the data to `{}`.
|
|
113
|
+
*
|
|
114
|
+
* @throws Error when a segment is forbidden, when the path goes through a
|
|
115
|
+
* primitive, uses a non-index segment on an array, or an index above
|
|
116
|
+
* 10000, or when a subscriber throws (after the write).
|
|
117
|
+
*/
|
|
118
|
+
set(path: string, value: unknown): this;
|
|
119
|
+
/**
|
|
120
|
+
* Calls `onChange` with the new value when the value at `path` changes:
|
|
121
|
+
* after a write at `path`, above it or below it. It is not called with
|
|
122
|
+
* the current value.
|
|
123
|
+
*/
|
|
124
|
+
subscribe(path: string, onChange: (value: unknown) => void): DataSubscription;
|
|
125
|
+
/** Ends every subscription. The data stays. */
|
|
126
|
+
dispose(): void;
|
|
127
|
+
/** Refreshes `path`, the paths above it and the paths below it. */
|
|
128
|
+
private notify;
|
|
129
|
+
/** Queues the subscribers of `key` when its value changed. */
|
|
130
|
+
private refresh;
|
|
131
|
+
}
|
|
132
|
+
/** One component of a surface. */
|
|
133
|
+
declare class ComponentModel {
|
|
134
|
+
readonly id: string;
|
|
135
|
+
/** The component name, for example "Text". */
|
|
136
|
+
readonly type: string;
|
|
137
|
+
/** The node without `id` and `component`. Replaced on update. */
|
|
138
|
+
properties: Record<string, unknown>;
|
|
139
|
+
constructor(id: string, type: string, properties: Record<string, unknown>);
|
|
140
|
+
}
|
|
141
|
+
/** The components of a surface, by id, in the order they were added. */
|
|
142
|
+
declare class SurfaceComponentsModel {
|
|
143
|
+
private readonly components;
|
|
144
|
+
get(id: string): ComponentModel | undefined;
|
|
145
|
+
get entries(): IterableIterator<[string, ComponentModel]>;
|
|
146
|
+
/** @throws Error when a component with the same id is there. */
|
|
147
|
+
addComponent(component: ComponentModel): void;
|
|
148
|
+
removeComponent(id: string): void;
|
|
149
|
+
dispose(): void;
|
|
150
|
+
}
|
|
151
|
+
/** The state of one surface. */
|
|
152
|
+
declare class SurfaceModel {
|
|
153
|
+
readonly id: string;
|
|
154
|
+
readonly dataModel: DataModel;
|
|
155
|
+
readonly componentsModel: SurfaceComponentsModel;
|
|
156
|
+
constructor(id: string);
|
|
157
|
+
/** Ends the data subscriptions and drops the components. */
|
|
158
|
+
dispose(): void;
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
67
161
|
//#region src/generative-ui/surface-manager.d.ts
|
|
68
162
|
declare function surfaceKey(threadId: string, surfaceId: string): string;
|
|
69
163
|
interface ManagedSurface {
|
|
@@ -72,7 +166,7 @@ interface ManagedSurface {
|
|
|
72
166
|
readonly surfaceId: string;
|
|
73
167
|
readonly agentId: string | undefined;
|
|
74
168
|
/** Replaced by an empty model when the surface closes, to free its data. */
|
|
75
|
-
model: SurfaceModel
|
|
169
|
+
model: SurfaceModel;
|
|
76
170
|
readonly createdAt: number;
|
|
77
171
|
target: string;
|
|
78
172
|
status: GenerativeUISurfaceStatus;
|
|
@@ -85,6 +179,11 @@ interface ManagedSurface {
|
|
|
85
179
|
clientRejected: GenerativeUIRejectedOperation[];
|
|
86
180
|
/** The committed operations of the latest content, for the inspector. */
|
|
87
181
|
operations: readonly A2UIOperation[];
|
|
182
|
+
/**
|
|
183
|
+
* `"0.9"` when the runtime converted the surface from A2UI v0.9, from the
|
|
184
|
+
* latest content. The surface summary sends it to the runtime.
|
|
185
|
+
*/
|
|
186
|
+
a2uiSourceVersion?: "0.9";
|
|
88
187
|
}
|
|
89
188
|
interface GenerativeUISurfaceManagerOptions {
|
|
90
189
|
onOperationRejected?: (info: {
|
|
@@ -110,7 +209,7 @@ interface GenerativeUIMountedTarget {
|
|
|
110
209
|
components?: string[];
|
|
111
210
|
}
|
|
112
211
|
/**
|
|
113
|
-
* Framework-agnostic store of generated surfaces. One
|
|
212
|
+
* Framework-agnostic store of generated surfaces. One SurfaceModel per
|
|
114
213
|
* (threadId, surfaceId), shared by every mount. Applies only newly committed
|
|
115
214
|
* operations, validates each before applying it, and owns app state and the
|
|
116
215
|
* data model paths that the user wrote, so agent updates cannot overwrite
|
|
@@ -143,7 +242,6 @@ declare class GenerativeUISurfaceManager {
|
|
|
143
242
|
* to every part, so an input in one part drives a binding in another.
|
|
144
243
|
*/
|
|
145
244
|
private readonly linked;
|
|
146
|
-
private readonly webCoreCatalog;
|
|
147
245
|
private activeThreadId;
|
|
148
246
|
private version;
|
|
149
247
|
constructor(ui: GenerativeUI, options?: GenerativeUISurfaceManagerOptions);
|
|
@@ -660,7 +758,7 @@ declare function series(args: Record<string, unknown>): unknown[];
|
|
|
660
758
|
* `${...}` expressions. Objects and arrays are walked, so a binding can sit
|
|
661
759
|
* at any depth. A value with nothing dynamic in it keeps its identity.
|
|
662
760
|
*/
|
|
663
|
-
/** Reads the data model. The
|
|
761
|
+
/** Reads the data model. The `DataModel` of a surface fits. */
|
|
664
762
|
interface DataReader {
|
|
665
763
|
get(path: string): unknown;
|
|
666
764
|
}
|
|
@@ -1013,9 +1111,9 @@ declare const GenerativeUISurfaceContentSchema: z.ZodObject<{
|
|
|
1013
1111
|
catalogId: z.ZodString;
|
|
1014
1112
|
operations: z.ZodArray<z.ZodAny>;
|
|
1015
1113
|
status: z.ZodEnum<{
|
|
1114
|
+
error: "error";
|
|
1016
1115
|
streaming: "streaming";
|
|
1017
1116
|
ready: "ready";
|
|
1018
|
-
error: "error";
|
|
1019
1117
|
}>;
|
|
1020
1118
|
rejected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1021
1119
|
index: z.ZodNumber;
|
|
@@ -1037,5 +1135,5 @@ type ParsedGenerativeUISurfaceContent = {
|
|
|
1037
1135
|
*/
|
|
1038
1136
|
declare function parseGenerativeUISurfaceContent(content: unknown): ParsedGenerativeUISurfaceContent;
|
|
1039
1137
|
//#endregion
|
|
1040
|
-
export { BASIC_FUNCTIONS, BasicFunction, BuildMarkdownSurfacesOptions, CalcScope, CatalogManifestOptions, DataReader, ExpressionError, FunctionCallRequest, FunctionCallRunner, FunctionCallRunnerOptions, GenerativeUIAccessibility, GenerativeUIAriaAttributes, GenerativeUICallOrigin, GenerativeUIDeclaredFunction, GenerativeUIDispatcher, GenerativeUIDispatcherOptions, GenerativeUIEngine, GenerativeUIEnvelopeOptions, GenerativeUIHandlerRef, GenerativeUIInvocationOrigin, GenerativeUIMountedTarget, GenerativeUISurfaceContentSchema, GenerativeUISurfaceManager, GenerativeUISurfaceManagerOptions, GenerativeUITargetOptions, GenerativeUITransportConfig, ManagedSurface, MarkdownBuildCache, MarkdownFenceBlock, MarkdownFunctionCall, MarkdownSurfaceSource, ParsedGenerativeUISurfaceContent, PlatformError, ReadonlyMessages, ResolveAttempt, ResolveContext, ResolveOptions, Resolved, accessibilityAttributes, activityFunctionCalls, allowedComponents, buildActionMessageText, buildCatalogManifest, buildGenerativeUIEnvelope, buildGenerativeUIManifest, buildMarkdownSurfaces, builtInFunctionManifests, calc, containsDynamicValue, controlAria, createComponentLabelResolver, createFunctionCallRunner, createGenerativeUIDebugSource, createGenerativeUIDispatcher, describeGenerativeUIRun, envelopeOptionsFor, evaluateCalc, fenceKey, getMarkdownSurfaceSource, givesValidationResult, invokeBoundEvent, invokeMatchedEvent, joinPath, markdownFunctionCalls, namedRole, openUrlSafely, parseGenerativeUISurfaceContent, readAccessibility, reportErrorSafely, requiresUserActivation, resolveDynamicValue, resolvePath, scrollToSurface, series, surfaceKey, surfaceLabelResolver, templateIndex, truthOf, tryResolveDynamicValue, wrapperAria };
|
|
1138
|
+
export { BASIC_FUNCTIONS, BasicFunction, BuildMarkdownSurfacesOptions, CalcScope, CatalogManifestOptions, type ComponentModel, type DataModel, DataReader, type DataSubscription, ExpressionError, FunctionCallRequest, FunctionCallRunner, FunctionCallRunnerOptions, GenerativeUIAccessibility, GenerativeUIAriaAttributes, GenerativeUICallOrigin, GenerativeUIDeclaredFunction, GenerativeUIDispatcher, GenerativeUIDispatcherOptions, GenerativeUIEngine, GenerativeUIEnvelopeOptions, GenerativeUIHandlerRef, GenerativeUIInvocationOrigin, GenerativeUIMountedTarget, GenerativeUISurfaceContentSchema, GenerativeUISurfaceManager, GenerativeUISurfaceManagerOptions, GenerativeUITargetOptions, GenerativeUITransportConfig, ManagedSurface, MarkdownBuildCache, MarkdownFenceBlock, MarkdownFunctionCall, MarkdownSurfaceSource, ParsedGenerativeUISurfaceContent, PlatformError, ReadonlyMessages, ResolveAttempt, ResolveContext, ResolveOptions, Resolved, type SurfaceComponentsModel, type SurfaceModel, accessibilityAttributes, activityFunctionCalls, allowedComponents, buildActionMessageText, buildCatalogManifest, buildGenerativeUIEnvelope, buildGenerativeUIManifest, buildMarkdownSurfaces, builtInFunctionManifests, calc, containsDynamicValue, controlAria, createComponentLabelResolver, createFunctionCallRunner, createGenerativeUIDebugSource, createGenerativeUIDispatcher, describeGenerativeUIRun, envelopeOptionsFor, evaluateCalc, fenceKey, getMarkdownSurfaceSource, givesValidationResult, invokeBoundEvent, invokeMatchedEvent, joinPath, markdownFunctionCalls, namedRole, openUrlSafely, parseGenerativeUISurfaceContent, readAccessibility, reportErrorSafely, requiresUserActivation, resolveDynamicValue, resolvePath, scrollToSurface, series, surfaceKey, surfaceLabelResolver, templateIndex, truthOf, tryResolveDynamicValue, wrapperAria };
|
|
1041
1139
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/generative-ui/dispatcher.ts","../../src/generative-ui/surface-manager.ts","../../src/generative-ui/runtime.ts","../../src/generative-ui/functions.ts","../../src/generative-ui/markdown-source.ts","../../src/generative-ui/function-calls.ts","../../src/generative-ui/calc.ts","../../src/generative-ui/resolve.ts","../../src/generative-ui/events.ts","../../src/generative-ui/manifest.ts","../../src/generative-ui/action-message.ts","../../src/generative-ui/debug-source.ts","../../src/generative-ui/accessibility.ts","../../src/generative-ui/targets.ts","../../src/generative-ui/activity-content.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/generative-ui/dispatcher.ts","../../src/generative-ui/surface-model.ts","../../src/generative-ui/surface-manager.ts","../../src/generative-ui/runtime.ts","../../src/generative-ui/functions.ts","../../src/generative-ui/markdown-source.ts","../../src/generative-ui/function-calls.ts","../../src/generative-ui/calc.ts","../../src/generative-ui/resolve.ts","../../src/generative-ui/events.ts","../../src/generative-ui/manifest.ts","../../src/generative-ui/action-message.ts","../../src/generative-ui/debug-source.ts","../../src/generative-ui/accessibility.ts","../../src/generative-ui/targets.ts","../../src/generative-ui/activity-content.ts"],"mappings":";;;;;;;;;;;;;UAuBiB,4BAAA,SAAqC,uBAAA;EACpD,WAAA;EACA,UAAA,EAAY,gBAAA;EACZ,UAAA,GAAa,sBAAA;AAAA;;;;;UAOE,sBAAA;EACf,OAAA,GAAU,IAAA;AAAA;;UAIK,4BAAA;EACf,SAAA;EACA,WAAA;AAAA;;;;;KAOU,sBAAA,GACR,4BAAA;EACE,cAAA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