@copilotkit/react-core 2.0.0-rc.2 → 2.0.0-rc.21
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/{MarkdownRendererContext-B4Us6mwL.d.cts → MarkdownRendererContext-Bsl28Gmn.d.mts} +17 -33
- package/dist/MarkdownRendererContext-Bsl28Gmn.d.mts.map +1 -0
- package/dist/{MarkdownRendererContext-CRKFzsEB.d.mts → MarkdownRendererContext-CBppkb5j.d.cts} +17 -33
- package/dist/MarkdownRendererContext-CBppkb5j.d.cts.map +1 -0
- package/dist/{MarkdownSurfaces-S4wfUl3J.cjs → MarkdownSurfaces-CGW92DCL.cjs} +244 -331
- package/dist/MarkdownSurfaces-CGW92DCL.cjs.map +1 -0
- package/dist/{MarkdownSurfaces-Bd--93O1.mjs → MarkdownSurfaces-DveOwhaW.mjs} +224 -312
- package/dist/MarkdownSurfaces-DveOwhaW.mjs.map +1 -0
- package/dist/context.cjs +62 -63
- package/dist/context.cjs.map +1 -1
- package/dist/context.d.cts +53 -109
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.mts +53 -109
- package/dist/context.d.mts.map +1 -1
- package/dist/context.mjs +63 -64
- package/dist/context.mjs.map +1 -1
- package/dist/generative-ui.cjs +570 -567
- package/dist/generative-ui.cjs.map +1 -1
- package/dist/generative-ui.d.cts +2137 -4178
- package/dist/generative-ui.d.cts.map +1 -1
- package/dist/generative-ui.d.mts +2137 -4178
- package/dist/generative-ui.d.mts.map +1 -1
- package/dist/generative-ui.mjs +75 -73
- package/dist/generative-ui.mjs.map +1 -1
- package/dist/headless.cjs +286 -1021
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +143 -277
- package/dist/headless.d.cts.map +1 -1
- package/dist/headless.d.mts +107 -216
- package/dist/headless.d.mts.map +1 -1
- package/dist/headless.mjs +280 -1021
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +3351 -5707
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +314 -808
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +311 -805
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1827 -5565
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +3571 -5978
- package/dist/index.umd.js.map +1 -1
- package/package.json +17 -18
- package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +0 -1
- package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +0 -1
- package/dist/MarkdownSurfaces-Bd--93O1.mjs.map +0 -1
- package/dist/MarkdownSurfaces-S4wfUl3J.cjs.map +0 -1
package/dist/headless.d.cts
CHANGED
|
@@ -1,90 +1,48 @@
|
|
|
1
|
-
import React$1, { ComponentType, ReactNode } from "react";
|
|
1
|
+
import React$1, { ComponentType, MutableRefObject, ReactNode } from "react";
|
|
2
|
+
import * as _copilotkit_core0 from "@copilotkit/core";
|
|
3
|
+
import { ActivityMessageRenderProps, ActivityMessageRendererDef, CopilotChatDefaultLabels, CopilotChatLabels, CopilotChatLabels as CopilotChatLabels$1, CopilotKitCore, CopilotKitCoreConfig, CopilotKitCoreSubscriber, CopilotKitCoreSubscription, CustomMessageRenderProps, CustomMessageRendererDef, FrontendTool, HumanInTheLoopRenderProps, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, Suggestion, ToolCallRenderProps, ToolCallRendererDef, ɵChatConfigurationStore, ɵJsonSerializable, ɵSuggestionsConfigInput } from "@copilotkit/core";
|
|
2
4
|
import { InferSchemaOutput, StandardSchemaV1 } from "@copilotkit/shared";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import * as _ag_ui_client0 from "@ag-ui/client";
|
|
6
|
+
import { Interrupt, ResumeEntry, ResumeStatus } from "@ag-ui/client";
|
|
7
|
+
import { AgentCapabilities, ToolCall, ToolMessage } from "@ag-ui/core";
|
|
6
8
|
|
|
7
9
|
//#region src/types/react-tool-call-renderer.d.ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
agentId?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Whether calls this renderer draws join the chat's tool-call groups (see
|
|
22
|
-
* `toolCallDisplay` on `CopilotChatMessageView`). CopilotKit's built-in card
|
|
23
|
-
* sets it; a renderer that leaves it unset always shows its calls on their
|
|
24
|
-
* own, since the chat can't tell what it draws (it may even draw nothing).
|
|
25
|
-
*/
|
|
26
|
-
group?: boolean;
|
|
27
|
-
render: React.ComponentType<{
|
|
28
|
-
name: string;
|
|
29
|
-
toolCallId: string;
|
|
30
|
-
args: Partial<T>;
|
|
31
|
-
status: ToolCallStatus.InProgress;
|
|
32
|
-
result: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
name: string;
|
|
35
|
-
toolCallId: string;
|
|
36
|
-
args: T;
|
|
37
|
-
status: ToolCallStatus.Executing;
|
|
38
|
-
result: undefined;
|
|
39
|
-
} | {
|
|
40
|
-
name: string;
|
|
41
|
-
toolCallId: string;
|
|
42
|
-
args: T;
|
|
43
|
-
status: ToolCallStatus.Complete;
|
|
44
|
-
result: string;
|
|
45
|
-
}>;
|
|
46
|
-
}
|
|
10
|
+
/**
|
|
11
|
+
* A tool call renderer for React: a React component that draws one tool call
|
|
12
|
+
* in the chat. The component receives {@link ToolCallRenderProps}.
|
|
13
|
+
*
|
|
14
|
+
* Pass a list of these to `renderToolCalls` on `CopilotKitProvider`, or build
|
|
15
|
+
* one with `defineToolCallRenderer`.
|
|
16
|
+
*
|
|
17
|
+
* @typeParam T - The shape of the tool arguments.
|
|
18
|
+
*/
|
|
19
|
+
type ReactToolCallRenderer<T = unknown> = ToolCallRendererDef<T, React$1.ComponentType<ToolCallRenderProps<T>>>;
|
|
47
20
|
//#endregion
|
|
48
21
|
//#region src/types/react-activity-message-renderer.d.ts
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
agentId?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Schema describing the activity content payload.
|
|
60
|
-
*/
|
|
61
|
-
content: StandardSchemaV1<any, TActivityContent>;
|
|
62
|
-
/**
|
|
63
|
-
* React component invoked to render the activity message.
|
|
64
|
-
*/
|
|
65
|
-
render: React.ComponentType<{
|
|
66
|
-
activityType: string;
|
|
67
|
-
content: TActivityContent;
|
|
68
|
-
message: ActivityMessage;
|
|
69
|
-
agent: AbstractAgent | undefined;
|
|
70
|
-
}>;
|
|
71
|
-
}
|
|
22
|
+
/**
|
|
23
|
+
* An activity message renderer for React: a React component that draws
|
|
24
|
+
* activity messages of one `activityType` (or `"*"` for any type). The
|
|
25
|
+
* component receives {@link ActivityMessageRenderProps}.
|
|
26
|
+
*
|
|
27
|
+
* @typeParam TActivityContent - The shape of the activity content.
|
|
28
|
+
*/
|
|
29
|
+
type ReactActivityMessageRenderer<TActivityContent> = ActivityMessageRendererDef<TActivityContent, React$1.ComponentType<ActivityMessageRenderProps<TActivityContent>>>;
|
|
72
30
|
//#endregion
|
|
73
31
|
//#region src/types/react-custom-message-renderer.d.ts
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Props a React custom message renderer receives: the same as
|
|
34
|
+
* {@link CustomMessageRenderProps}, with `stateSnapshot` typed `any` so a
|
|
35
|
+
* component can read the agent state without a cast.
|
|
36
|
+
*/
|
|
37
|
+
type ReactCustomMessageRenderProps = Omit<CustomMessageRenderProps, "stateSnapshot"> & {
|
|
38
|
+
stateSnapshot: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* A custom message renderer for React: a component that draws before or
|
|
42
|
+
* after each chat message. Return `null` from the component to draw nothing
|
|
43
|
+
* for a message. A `null` render is skipped.
|
|
44
|
+
*/
|
|
45
|
+
type ReactCustomMessageRenderer = CustomMessageRendererDef<React$1.ComponentType<ReactCustomMessageRenderProps> | null>;
|
|
88
46
|
//#endregion
|
|
89
47
|
//#region src/types/frontend-tool.d.ts
|
|
90
48
|
type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknown>> = FrontendTool<T> & {
|
|
@@ -92,51 +50,19 @@ type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknow
|
|
|
92
50
|
};
|
|
93
51
|
//#endregion
|
|
94
52
|
//#region src/types/human-in-the-loop.d.ts
|
|
53
|
+
/**
|
|
54
|
+
* A human-in-the-loop tool for React. It has no handler: the agent waits until
|
|
55
|
+
* the `render` component calls `respond` with the user's answer.
|
|
56
|
+
*
|
|
57
|
+
* @typeParam T - The shape of the tool arguments.
|
|
58
|
+
*/
|
|
95
59
|
type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool<T>, "handler"> & {
|
|
96
60
|
/**
|
|
97
|
-
* Render the human-in-the-loop UI for this tool call.
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* attribution:
|
|
101
|
-
* - `toolCallId` — the AG-UI tool call id, unique per interrupt. It is the
|
|
102
|
-
* stable key for correlating this interrupt with runtime (sub)agent
|
|
103
|
-
* attribution — e.g. the `agentId` reported by `onToolExecutionStart`, or
|
|
104
|
-
* per-run attribution stamped on the event stream — so the UI can label
|
|
105
|
-
* the interrupt with the agent that actually raised it.
|
|
106
|
-
* - `agentId` — the agent this tool was *registered* to (the tool's own
|
|
107
|
-
* `agentId`), or `undefined` for an unscoped tool. This is the static
|
|
108
|
-
* registration scope; it is NOT necessarily the runtime (sub)agent that
|
|
109
|
-
* raised the interrupt. For runtime attribution, correlate `toolCallId`
|
|
110
|
-
* with the event-stream/`onToolExecutionStart` agent id.
|
|
61
|
+
* Render the human-in-the-loop UI for this tool call. The component
|
|
62
|
+
* receives {@link HumanInTheLoopRenderProps}, which also carry `toolCallId`
|
|
63
|
+
* and `agentId` for attribution.
|
|
111
64
|
*/
|
|
112
|
-
render: React$1.ComponentType<
|
|
113
|
-
name: string;
|
|
114
|
-
description: string;
|
|
115
|
-
toolCallId: string;
|
|
116
|
-
agentId?: string;
|
|
117
|
-
args: Partial<T>;
|
|
118
|
-
status: ToolCallStatus.InProgress;
|
|
119
|
-
result: undefined;
|
|
120
|
-
respond: undefined;
|
|
121
|
-
} | {
|
|
122
|
-
name: string;
|
|
123
|
-
description: string;
|
|
124
|
-
toolCallId: string;
|
|
125
|
-
agentId?: string;
|
|
126
|
-
args: T;
|
|
127
|
-
status: ToolCallStatus.Executing;
|
|
128
|
-
result: undefined;
|
|
129
|
-
respond: (result: unknown) => Promise<void>;
|
|
130
|
-
} | {
|
|
131
|
-
name: string;
|
|
132
|
-
description: string;
|
|
133
|
-
toolCallId: string;
|
|
134
|
-
agentId?: string;
|
|
135
|
-
args: T;
|
|
136
|
-
status: ToolCallStatus.Complete;
|
|
137
|
-
result: string;
|
|
138
|
-
respond: undefined;
|
|
139
|
-
}>;
|
|
65
|
+
render: React$1.ComponentType<HumanInTheLoopRenderProps<T>>;
|
|
140
66
|
};
|
|
141
67
|
//#endregion
|
|
142
68
|
//#region src/types/defineToolCallRenderer.d.ts
|
|
@@ -145,87 +71,22 @@ type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unkn
|
|
|
145
71
|
* - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
|
|
146
72
|
* - Derives `args` type from the provided schema (any Standard Schema V1 compatible library).
|
|
147
73
|
* - Ensures the render function param type exactly matches ReactToolCallRenderer<T>["render"]'s param.
|
|
148
|
-
* - For wildcard tools (name: "*"), args is optional and defaults to
|
|
74
|
+
* - For wildcard tools (name: "*"), args is optional and defaults to a schema that accepts any value.
|
|
149
75
|
*/
|
|
150
|
-
type RenderProps<T> = {
|
|
151
|
-
name: string;
|
|
152
|
-
toolCallId: string;
|
|
153
|
-
args: Partial<T>;
|
|
154
|
-
status: ToolCallStatus.InProgress;
|
|
155
|
-
result: undefined;
|
|
156
|
-
} | {
|
|
157
|
-
name: string;
|
|
158
|
-
toolCallId: string;
|
|
159
|
-
args: T;
|
|
160
|
-
status: ToolCallStatus.Executing;
|
|
161
|
-
result: undefined;
|
|
162
|
-
} | {
|
|
163
|
-
name: string;
|
|
164
|
-
toolCallId: string;
|
|
165
|
-
args: T;
|
|
166
|
-
status: ToolCallStatus.Complete;
|
|
167
|
-
result: string;
|
|
168
|
-
};
|
|
169
76
|
declare function defineToolCallRenderer(def: {
|
|
170
77
|
name: "*";
|
|
171
|
-
render: (props:
|
|
78
|
+
render: (props: ToolCallRenderProps<any>) => React$1.ReactElement | null;
|
|
172
79
|
agentId?: string;
|
|
173
80
|
group?: boolean;
|
|
174
81
|
}): ReactToolCallRenderer<any>;
|
|
175
82
|
declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
|
|
176
83
|
name: string;
|
|
177
84
|
args: S;
|
|
178
|
-
render: (props:
|
|
85
|
+
render: (props: ToolCallRenderProps<InferSchemaOutput<S>>) => React$1.ReactElement | null;
|
|
179
86
|
agentId?: string;
|
|
180
87
|
group?: boolean;
|
|
181
88
|
}): ReactToolCallRenderer<InferSchemaOutput<S>>;
|
|
182
89
|
//#endregion
|
|
183
|
-
//#region src/types/interrupt.d.ts
|
|
184
|
-
/** Legacy custom-event interrupt payload (agent emits a custom `on_interrupt` event). */
|
|
185
|
-
interface InterruptEvent<TValue = unknown> {
|
|
186
|
-
name: string;
|
|
187
|
-
value: TValue;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Resolve the agent with user input for an interrupt.
|
|
191
|
-
*
|
|
192
|
-
* - Standard interrupts: records `{ status: "resolved", payload }` for the target
|
|
193
|
-
* interrupt (defaults to the primary one). Resumes once every open interrupt is
|
|
194
|
-
* addressed; returns the resume run result, or `void` while still awaiting others.
|
|
195
|
-
* - Legacy interrupts: resumes immediately via `command.resume = payload`.
|
|
196
|
-
*/
|
|
197
|
-
type InterruptResolveFn = (payload?: unknown, interruptId?: string) => Promise<RunAgentResult | void>;
|
|
198
|
-
/**
|
|
199
|
-
* Cancel an interrupt.
|
|
200
|
-
*
|
|
201
|
-
* - Standard interrupts: records `{ status: "cancelled" }` for the target interrupt
|
|
202
|
-
* (defaults to the primary one), then resumes once all are addressed.
|
|
203
|
-
* - Legacy interrupts: dismisses the pending interrupt without resuming.
|
|
204
|
-
*/
|
|
205
|
-
type InterruptCancelFn = (interruptId?: string) => Promise<RunAgentResult | void>;
|
|
206
|
-
interface InterruptHandlerProps<TValue = unknown> {
|
|
207
|
-
/**
|
|
208
|
-
* Legacy event shape (`{ name, value }`). Always present for back-compat: for
|
|
209
|
-
* standard interrupts, `value` is the primary `Interrupt` and `name` is `"on_interrupt"`.
|
|
210
|
-
* Prefer `interrupt` / `interrupts` for standard interrupts.
|
|
211
|
-
*/
|
|
212
|
-
event: InterruptEvent<TValue>;
|
|
213
|
-
/** Primary standard interrupt (`interrupts[0]`), or `null` for legacy interrupts. */
|
|
214
|
-
interrupt: Interrupt | null;
|
|
215
|
-
/** All open standard interrupts (empty array for legacy interrupts). */
|
|
216
|
-
interrupts: Interrupt[];
|
|
217
|
-
resolve: InterruptResolveFn;
|
|
218
|
-
cancel: InterruptCancelFn;
|
|
219
|
-
}
|
|
220
|
-
interface InterruptRenderProps<TValue = unknown, TResult = unknown> {
|
|
221
|
-
event: InterruptEvent<TValue>;
|
|
222
|
-
interrupt: Interrupt | null;
|
|
223
|
-
interrupts: Interrupt[];
|
|
224
|
-
result: TResult;
|
|
225
|
-
resolve: InterruptResolveFn;
|
|
226
|
-
cancel: InterruptCancelFn;
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
90
|
//#region src/lib/react-core.d.ts
|
|
230
91
|
interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig {
|
|
231
92
|
renderToolCalls?: ReactToolCallRenderer<any>[];
|
|
@@ -235,7 +96,15 @@ interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig {
|
|
|
235
96
|
interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber {
|
|
236
97
|
onRenderToolCallsChanged?: (event: {
|
|
237
98
|
copilotkit: CopilotKitCore;
|
|
238
|
-
renderToolCalls: ReactToolCallRenderer<any>[];
|
|
99
|
+
renderToolCalls: readonly ReactToolCallRenderer<any>[];
|
|
100
|
+
}) => void | Promise<void>;
|
|
101
|
+
onRenderActivityMessagesChanged?: (event: {
|
|
102
|
+
copilotkit: CopilotKitCore;
|
|
103
|
+
renderActivityMessages: readonly ReactActivityMessageRenderer<any>[];
|
|
104
|
+
}) => void | Promise<void>;
|
|
105
|
+
onRenderCustomMessagesChanged?: (event: {
|
|
106
|
+
copilotkit: CopilotKitCore;
|
|
107
|
+
renderCustomMessages: readonly ReactCustomMessageRenderer[];
|
|
239
108
|
}) => void | Promise<void>;
|
|
240
109
|
onInterruptElementChanged?: (event: {
|
|
241
110
|
copilotkit: CopilotKitCore;
|
|
@@ -243,39 +112,21 @@ interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber {
|
|
|
243
112
|
}) => void | Promise<void>;
|
|
244
113
|
}
|
|
245
114
|
declare class CopilotKitCoreReact extends CopilotKitCore {
|
|
246
|
-
private
|
|
247
|
-
private _hookRenderToolCalls;
|
|
248
|
-
private _cachedMergedRenderToolCalls;
|
|
249
|
-
private _renderCustomMessages;
|
|
250
|
-
private _renderActivityMessages;
|
|
251
|
-
private _interruptElement;
|
|
115
|
+
private readonly _renderers;
|
|
252
116
|
constructor(config: CopilotKitCoreReactConfig);
|
|
253
|
-
get renderCustomMessages():
|
|
254
|
-
get renderActivityMessages():
|
|
255
|
-
|
|
117
|
+
get renderCustomMessages(): readonly ReactCustomMessageRenderer[];
|
|
118
|
+
get renderActivityMessages(): readonly ReactActivityMessageRenderer<any>[];
|
|
119
|
+
/** Prop and hook renderers merged; a hook renderer wins over a prop one. */
|
|
120
|
+
get renderToolCalls(): readonly ReactToolCallRenderer<any>[];
|
|
256
121
|
setRenderActivityMessages(renderers: ReactActivityMessageRenderer<any>[]): void;
|
|
257
122
|
setRenderCustomMessages(renderers: ReactCustomMessageRenderer[]): void;
|
|
258
123
|
setRenderToolCalls(renderToolCalls: ReactToolCallRenderer<any>[]): void;
|
|
259
124
|
addHookRenderToolCall(entry: ReactToolCallRenderer<any>): void;
|
|
260
125
|
removeHookRenderToolCall(name: string, agentId?: string): void;
|
|
261
|
-
private
|
|
126
|
+
private notifyRenderersChanged;
|
|
262
127
|
get interruptElement(): React$1.ReactElement | null;
|
|
263
128
|
setInterruptElement(element: React$1.ReactElement | null): void;
|
|
264
129
|
subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription;
|
|
265
|
-
/**
|
|
266
|
-
* Wait for pending React state updates before the follow-up agent run.
|
|
267
|
-
*
|
|
268
|
-
* When a frontend tool handler calls setState(), React 18 batches the update
|
|
269
|
-
* and schedules a commit via its internal scheduler (MessageChannel). The
|
|
270
|
-
* useAgentContext hook registers context via useLayoutEffect, which runs
|
|
271
|
-
* synchronously after React commits that batch.
|
|
272
|
-
*
|
|
273
|
-
* Awaiting a zero-delay timeout yields to the macrotask queue. React's
|
|
274
|
-
* MessageChannel task runs first, committing the pending state and running
|
|
275
|
-
* useLayoutEffect (which updates the context store). The follow-up runAgent
|
|
276
|
-
* call then reads fresh context.
|
|
277
|
-
*/
|
|
278
|
-
waitForPendingFrameworkUpdates(): Promise<void>;
|
|
279
130
|
}
|
|
280
131
|
//#endregion
|
|
281
132
|
//#region src/context.d.ts
|
|
@@ -295,55 +146,34 @@ interface CopilotKitContextValue {
|
|
|
295
146
|
}
|
|
296
147
|
declare const useCopilotKit: () => CopilotKitContextValue;
|
|
297
148
|
//#endregion
|
|
149
|
+
//#region src/providers/use-owned-core.d.ts
|
|
150
|
+
/** The part of a core this hook needs: something it can dispose. */
|
|
151
|
+
interface Disposable {
|
|
152
|
+
dispose(): void;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @internal Create a core for the provider's lifetime and dispose it on
|
|
156
|
+
* unmount.
|
|
157
|
+
*
|
|
158
|
+
* The dispose waits one task. StrictMode (and Fast Refresh) unmount and
|
|
159
|
+
* remount effects in the same commit, so the remount cancels the pending
|
|
160
|
+
* dispose and the same core keeps working. When effects mount again after the
|
|
161
|
+
* core was really disposed (for example an `<Activity>` that was hidden and
|
|
162
|
+
* shown), the hook creates a new core and renders again: a disposed core is
|
|
163
|
+
* never reused.
|
|
164
|
+
*
|
|
165
|
+
* `ref` holds the current core. The provider owns it, so code that runs
|
|
166
|
+
* before the core exists can read `ref.current`.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* const coreRef = useRef<CopilotKitCoreReact | null>(null);
|
|
170
|
+
* const core = ɵuseOwnedCore(coreRef, () => new CopilotKitCoreReact(config));
|
|
171
|
+
*/
|
|
172
|
+
declare function ɵuseOwnedCore<T extends Disposable>(ref: MutableRefObject<T | null>, create: () => T): T;
|
|
173
|
+
//#endregion
|
|
298
174
|
//#region src/providers/CopilotChatConfigurationProvider.d.ts
|
|
299
|
-
declare const CopilotChatDefaultLabels: {
|
|
300
|
-
chatInputPlaceholder: string;
|
|
301
|
-
chatInputToolbarStartTranscribeButtonLabel: string;
|
|
302
|
-
chatInputToolbarCancelTranscribeButtonLabel: string;
|
|
303
|
-
chatInputToolbarFinishTranscribeButtonLabel: string;
|
|
304
|
-
chatInputToolbarAddButtonLabel: string;
|
|
305
|
-
chatInputToolbarToolsButtonLabel: string;
|
|
306
|
-
chatInputToolbarSendButtonLabel: string;
|
|
307
|
-
chatInputToolbarStopButtonLabel: string;
|
|
308
|
-
assistantMessageToolbarCopyCodeLabel: string;
|
|
309
|
-
assistantMessageToolbarCopyCodeCopiedLabel: string;
|
|
310
|
-
assistantMessageToolbarCopyMessageLabel: string;
|
|
311
|
-
assistantMessageToolbarInspectorLabel: string;
|
|
312
|
-
assistantMessageToolbarInspectorDescription: string;
|
|
313
|
-
assistantMessageToolbarInspectorLocalOnlyLabel: string;
|
|
314
|
-
assistantMessageToolbarInspectorLocalOnlyDescription: string;
|
|
315
|
-
assistantMessageToolbarInspectorTitle: string;
|
|
316
|
-
assistantMessageToolbarInspectorHideLabel: string;
|
|
317
|
-
assistantMessageToolbarInspectorHideDescription: string;
|
|
318
|
-
assistantMessageToolbarThumbsUpLabel: string;
|
|
319
|
-
assistantMessageToolbarThumbsDownLabel: string;
|
|
320
|
-
assistantMessageFeedbackCommentPlaceholder: string;
|
|
321
|
-
assistantMessageFeedbackCommentSubmitLabel: string;
|
|
322
|
-
assistantMessageToolbarReadAloudLabel: string;
|
|
323
|
-
assistantMessageToolbarRegenerateLabel: string;
|
|
324
|
-
userMessageToolbarCopyMessageLabel: string;
|
|
325
|
-
userMessageToolbarEditMessageLabel: string;
|
|
326
|
-
userMessageToolbarPreviousBranchLabel: string;
|
|
327
|
-
userMessageToolbarNextBranchLabel: string;
|
|
328
|
-
chatDisclaimerText: string;
|
|
329
|
-
chatToggleOpenLabel: string;
|
|
330
|
-
chatToggleCloseLabel: string;
|
|
331
|
-
chatScrollToBottomLabel: string;
|
|
332
|
-
modalHeaderTitle: string;
|
|
333
|
-
welcomeMessageText: string;
|
|
334
|
-
reasoningMessageThinkingLabel: string;
|
|
335
|
-
chatInputSlashMenuLabel: string;
|
|
336
|
-
chatInputSlashMenuEmptyText: string;
|
|
337
|
-
attachmentRemoveButtonLabel: string;
|
|
338
|
-
attachmentPlayVideoButtonLabel: string;
|
|
339
|
-
attachmentPreviewCloseButtonLabel: string;
|
|
340
|
-
modalHeaderCloseButtonLabel: string;
|
|
341
|
-
modalHeaderThreadsButtonLabel: string;
|
|
342
|
-
sidebarLabel: string;
|
|
343
|
-
};
|
|
344
|
-
type CopilotChatLabels = typeof CopilotChatDefaultLabels;
|
|
345
175
|
interface CopilotChatConfigurationValue {
|
|
346
|
-
labels: CopilotChatLabels;
|
|
176
|
+
labels: CopilotChatLabels$1;
|
|
347
177
|
agentId: string;
|
|
348
178
|
threadId: string;
|
|
349
179
|
isModalOpen: boolean;
|
|
@@ -416,10 +246,15 @@ interface CopilotChatConfigurationValue {
|
|
|
416
246
|
* threadId is prop-controlled.
|
|
417
247
|
*/
|
|
418
248
|
startNewThread: () => void;
|
|
249
|
+
/**
|
|
250
|
+
* Internal: the core store behind this value, so a nested provider can link
|
|
251
|
+
* its own store to it.
|
|
252
|
+
*/
|
|
253
|
+
ɵstore?: ɵChatConfigurationStore;
|
|
419
254
|
}
|
|
420
255
|
interface CopilotChatConfigurationProviderProps {
|
|
421
256
|
children: ReactNode;
|
|
422
|
-
labels?: Partial<CopilotChatLabels>;
|
|
257
|
+
labels?: Partial<CopilotChatLabels$1>;
|
|
423
258
|
agentId?: string;
|
|
424
259
|
threadId?: string;
|
|
425
260
|
hasExplicitThreadId?: boolean;
|
|
@@ -553,7 +388,7 @@ declare function useAgent({
|
|
|
553
388
|
updates,
|
|
554
389
|
throttleMs
|
|
555
390
|
}?: UseAgentProps): {
|
|
556
|
-
agent: AbstractAgent;
|
|
391
|
+
agent: _ag_ui_client0.AbstractAgent | _copilotkit_core0.ProxiedCopilotRuntimeAgent;
|
|
557
392
|
/**
|
|
558
393
|
* Whether `agent` is the real, runtime-synced (or locally-registered) agent
|
|
559
394
|
* rather than a provisional stand-in returned while the runtime is still
|
|
@@ -572,6 +407,30 @@ declare function useAgent({
|
|
|
572
407
|
};
|
|
573
408
|
//#endregion
|
|
574
409
|
//#region src/hooks/use-frontend-tool.d.ts
|
|
410
|
+
/**
|
|
411
|
+
* Register a frontend tool while the component is mounted. The agent can
|
|
412
|
+
* call it, and its `render` component draws the call in the chat.
|
|
413
|
+
*
|
|
414
|
+
* A tool with the same name and agentId as a tool that is already registered
|
|
415
|
+
* (for example one from the provider's `tools`) overrides it while this
|
|
416
|
+
* component is mounted. When the component unmounts, the overridden tool is
|
|
417
|
+
* active again. The renderer stays registered after unmount, so past tool
|
|
418
|
+
* calls still render in the chat history.
|
|
419
|
+
*
|
|
420
|
+
* @param tool - The tool to register.
|
|
421
|
+
* @param deps - Extra values that re-register the tool when they change. Use
|
|
422
|
+
* it when the handler closes over a value that is not part of the tool.
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* ```tsx
|
|
426
|
+
* useFrontendTool({
|
|
427
|
+
* name: "showWeather",
|
|
428
|
+
* description: "Show the weather for a city",
|
|
429
|
+
* parameters: z.object({ city: z.string() }),
|
|
430
|
+
* handler: async ({ city }) => `Sunny in ${city}`,
|
|
431
|
+
* });
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
575
434
|
declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
|
|
576
435
|
//#endregion
|
|
577
436
|
//#region src/hooks/use-frontend-tools.d.ts
|
|
@@ -585,8 +444,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
|
|
|
585
444
|
*
|
|
586
445
|
* Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
|
|
587
446
|
* tool that disappears from the array is unregistered on the next render, and
|
|
588
|
-
* every tool is unregistered on unmount.
|
|
589
|
-
*
|
|
447
|
+
* every tool is unregistered on unmount. A listed tool hides a tool with the
|
|
448
|
+
* same name and agentId (for example one from the provider's `tools`) until it
|
|
449
|
+
* is unregistered, and then the hidden tool is active again. Renderers stay
|
|
450
|
+
* registered after unmount so past tool calls still render in the chat history.
|
|
590
451
|
*
|
|
591
452
|
* @param tools - The tools to register. May be empty and may change length.
|
|
592
453
|
* @param deps - Extra dependencies that force re-registration, compared by
|
|
@@ -696,7 +557,6 @@ type InterruptResultFromHandler<THandler> = THandler extends ((...args: never[])
|
|
|
696
557
|
type InterruptResult<TValue, TResult> = InterruptResultFromHandler<InterruptHandlerFn<TValue, TResult>>;
|
|
697
558
|
type InterruptRenderInChat = boolean | undefined;
|
|
698
559
|
type UseInterruptReturn<TRenderInChat extends InterruptRenderInChat> = TRenderInChat extends false ? React$1.ReactElement | null : TRenderInChat extends true | undefined ? void : React$1.ReactElement | null | void;
|
|
699
|
-
/** Recognize thenables returned by interrupt preprocessing handlers. */
|
|
700
560
|
/**
|
|
701
561
|
* Configuration options for `useInterrupt`.
|
|
702
562
|
*/
|
|
@@ -770,20 +630,26 @@ declare function useSuggestions({
|
|
|
770
630
|
}?: UseSuggestionsOptions): UseSuggestionsResult;
|
|
771
631
|
//#endregion
|
|
772
632
|
//#region src/hooks/use-configure-suggestions.d.ts
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
633
|
+
/**
|
|
634
|
+
* Registers a suggestions configuration (dynamic or static) for the current
|
|
635
|
+
* chat. A global config (no `consumerAgentId`, or `"*"`) applies to every
|
|
636
|
+
* agent and loads for the surrounding chat's agent first.
|
|
637
|
+
*
|
|
638
|
+
* Pass `deps` to reload suggestions when values the config reads change.
|
|
639
|
+
*
|
|
640
|
+
* @example
|
|
641
|
+
* useConfigureSuggestions({
|
|
642
|
+
* instructions: "Suggest concise next steps for the user",
|
|
643
|
+
* available: "always",
|
|
644
|
+
* });
|
|
645
|
+
*/
|
|
646
|
+
declare function useConfigureSuggestions(config: ɵSuggestionsConfigInput | null | undefined, deps?: ReadonlyArray<unknown>): void;
|
|
779
647
|
//#endregion
|
|
780
648
|
//#region src/hooks/use-agent-context.d.ts
|
|
781
649
|
/**
|
|
782
650
|
* Represents any value that can be serialized to JSON.
|
|
783
651
|
*/
|
|
784
|
-
type JsonSerializable =
|
|
785
|
-
[key: string]: JsonSerializable;
|
|
786
|
-
};
|
|
652
|
+
type JsonSerializable = ɵJsonSerializable;
|
|
787
653
|
/**
|
|
788
654
|
* Context configuration for useAgentContext.
|
|
789
655
|
* Accepts any JSON-serializable value which will be converted to a string.
|
|
@@ -1113,5 +979,5 @@ declare function useRenderToolCall(): ({
|
|
|
1113
979
|
*/
|
|
1114
980
|
declare function useCapabilities(agentId?: string): AgentCapabilities | undefined;
|
|
1115
981
|
//#endregion
|
|
1116
|
-
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads };
|
|
982
|
+
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads, ɵuseOwnedCore };
|
|
1117
983
|
//# sourceMappingURL=headless.d.cts.map
|
package/dist/headless.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless.d.cts","names":[],"sources":["../src/types/react-tool-call-renderer.ts","../src/types/react-activity-message-renderer.ts","../src/types/react-custom-message-renderer.ts","../src/types/frontend-tool.ts","../src/types/human-in-the-loop.ts","../src/types/defineToolCallRenderer.ts","../src/
|
|
1
|
+
{"version":3,"file":"headless.d.cts","names":[],"sources":["../src/types/react-tool-call-renderer.ts","../src/types/react-activity-message-renderer.ts","../src/types/react-custom-message-renderer.ts","../src/types/frontend-tool.ts","../src/types/human-in-the-loop.ts","../src/types/defineToolCallRenderer.ts","../src/lib/react-core.ts","../src/context.ts","../src/providers/use-owned-core.ts","../src/providers/CopilotChatConfigurationProvider.tsx","../src/hooks/use-agent.tsx","../src/hooks/use-frontend-tool.tsx","../src/hooks/use-frontend-tools.tsx","../src/hooks/use-component.tsx","../src/hooks/use-human-in-the-loop.tsx","../src/hooks/use-interrupt.tsx","../src/hooks/use-suggestions.tsx","../src/hooks/use-configure-suggestions.tsx","../src/hooks/use-agent-context.tsx","../src/hooks/use-threads.tsx","../src/hooks/use-render-tool.tsx","../src/hooks/use-render-tool-call.tsx","../src/hooks/use-capabilities.tsx"],"mappings":";;;;;;;;;;;;;;;;AAeA;;KAAY,qBAAA,gBAAqC,mBAAA,CAC/C,CAAA,EACA,OAAA,CAAM,aAAA,CAAc,mBAAA,CAAoB,CAAA;;;;;;;;;;KCJ9B,4BAAA,qBACV,0BAAA,CACE,gBAAA,EACA,OAAA,CAAM,aAAA,CAAc,0BAAA,CAA2B,gBAAA;;;;;;;;KCD9C,6BAAA,GAAgC,IAAA,CACnC,wBAAA;EAGA,aAAA;AAAA;;;;;;KAQU,0BAAA,GACV,wBAAA,CAAyB,OAAA,CAAM,aAAA,CAAc,6BAAA;;;KCzBnC,iBAAA,WACA,MAAA,oBAA0B,MAAA,qBAClC,YAAA,CAAa,CAAA;EACf,MAAA,GAAS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