@copilotkit/react-core 2.0.0-rc.3 → 2.0.0-rc.30
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-BX26QLwl.d.cts} +16 -33
- package/dist/MarkdownRendererContext-BX26QLwl.d.cts.map +1 -0
- package/dist/{MarkdownRendererContext-CRKFzsEB.d.mts → MarkdownRendererContext-DAOMewji.d.mts} +16 -33
- package/dist/MarkdownRendererContext-DAOMewji.d.mts.map +1 -0
- package/dist/{MarkdownSurfaces-S4wfUl3J.cjs → MarkdownSurfaces-BbrHcSHN.cjs} +246 -334
- package/dist/MarkdownSurfaces-BbrHcSHN.cjs.map +1 -0
- package/dist/{MarkdownSurfaces-Bd--93O1.mjs → MarkdownSurfaces-DQbRS91-.mjs} +226 -315
- package/dist/MarkdownSurfaces-DQbRS91-.mjs.map +1 -0
- package/dist/context.cjs +75 -63
- package/dist/context.cjs.map +1 -1
- package/dist/context.d.cts +62 -107
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.mts +62 -107
- package/dist/context.d.mts.map +1 -1
- package/dist/context.mjs +76 -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 +289 -1054
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +159 -293
- package/dist/headless.d.cts.map +1 -1
- package/dist/headless.d.mts +112 -232
- package/dist/headless.d.mts.map +1 -1
- package/dist/headless.mjs +283 -1054
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +4157 -6520
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +332 -831
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +329 -828
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2012 -6009
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4057 -6472
- package/dist/index.umd.js.map +1 -1
- package/package.json +19 -20
- 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, ɵThreadSummary } 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,32 @@ 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
|
+
/**
|
|
120
|
+
* Prop, hook and built-in renderers merged. For one name and agentId, a
|
|
121
|
+
* hook renderer wins over a prop one, and both win over a built-in one.
|
|
122
|
+
*/
|
|
123
|
+
get renderToolCalls(): readonly ReactToolCallRenderer<any>[];
|
|
256
124
|
setRenderActivityMessages(renderers: ReactActivityMessageRenderer<any>[]): void;
|
|
257
125
|
setRenderCustomMessages(renderers: ReactCustomMessageRenderer[]): void;
|
|
258
126
|
setRenderToolCalls(renderToolCalls: ReactToolCallRenderer<any>[]): void;
|
|
259
127
|
addHookRenderToolCall(entry: ReactToolCallRenderer<any>): void;
|
|
260
128
|
removeHookRenderToolCall(name: string, agentId?: string): void;
|
|
261
|
-
private _notifyRenderToolCallsChanged;
|
|
262
|
-
get interruptElement(): React$1.ReactElement | null;
|
|
263
|
-
setInterruptElement(element: React$1.ReactElement | null): void;
|
|
264
|
-
subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription;
|
|
265
129
|
/**
|
|
266
|
-
*
|
|
130
|
+
* @internal Add a renderer for a tool a built-in feature owns (A2UI,
|
|
131
|
+
* generative UI). Prop and hook renderers with the same name and agent win
|
|
132
|
+
* over it, and `setRenderToolCalls` never removes it.
|
|
267
133
|
*
|
|
268
|
-
*
|
|
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.
|
|
134
|
+
* @returns A function that removes the renderer.
|
|
277
135
|
*/
|
|
278
|
-
|
|
136
|
+
ɵaddBuiltInRenderToolCall(entry: ReactToolCallRenderer): () => void;
|
|
137
|
+
private notifyRenderersChanged;
|
|
138
|
+
get interruptElement(): React$1.ReactElement | null;
|
|
139
|
+
setInterruptElement(element: React$1.ReactElement | null): void;
|
|
140
|
+
subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription;
|
|
279
141
|
}
|
|
280
142
|
//#endregion
|
|
281
143
|
//#region src/context.d.ts
|
|
@@ -295,55 +157,34 @@ interface CopilotKitContextValue {
|
|
|
295
157
|
}
|
|
296
158
|
declare const useCopilotKit: () => CopilotKitContextValue;
|
|
297
159
|
//#endregion
|
|
160
|
+
//#region src/providers/use-owned-core.d.ts
|
|
161
|
+
/** The part of a core this hook needs: something it can dispose. */
|
|
162
|
+
interface Disposable {
|
|
163
|
+
dispose(): void;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @internal Create a core for the provider's lifetime and dispose it on
|
|
167
|
+
* unmount.
|
|
168
|
+
*
|
|
169
|
+
* The dispose waits one task. StrictMode (and Fast Refresh) unmount and
|
|
170
|
+
* remount effects in the same commit, so the remount cancels the pending
|
|
171
|
+
* dispose and the same core keeps working. When effects mount again after the
|
|
172
|
+
* core was really disposed (for example an `<Activity>` that was hidden and
|
|
173
|
+
* shown), the hook creates a new core and renders again: a disposed core is
|
|
174
|
+
* never reused.
|
|
175
|
+
*
|
|
176
|
+
* `ref` holds the current core. The provider owns it, so code that runs
|
|
177
|
+
* before the core exists can read `ref.current`.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* const coreRef = useRef<CopilotKitCoreReact | null>(null);
|
|
181
|
+
* const core = ɵuseOwnedCore(coreRef, () => new CopilotKitCoreReact(config));
|
|
182
|
+
*/
|
|
183
|
+
declare function ɵuseOwnedCore<T extends Disposable>(ref: MutableRefObject<T | null>, create: () => T): T;
|
|
184
|
+
//#endregion
|
|
298
185
|
//#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
186
|
interface CopilotChatConfigurationValue {
|
|
346
|
-
labels: CopilotChatLabels;
|
|
187
|
+
labels: CopilotChatLabels$1;
|
|
347
188
|
agentId: string;
|
|
348
189
|
threadId: string;
|
|
349
190
|
isModalOpen: boolean;
|
|
@@ -416,10 +257,15 @@ interface CopilotChatConfigurationValue {
|
|
|
416
257
|
* threadId is prop-controlled.
|
|
417
258
|
*/
|
|
418
259
|
startNewThread: () => void;
|
|
260
|
+
/**
|
|
261
|
+
* Internal: the core store behind this value, so a nested provider can link
|
|
262
|
+
* its own store to it.
|
|
263
|
+
*/
|
|
264
|
+
ɵstore?: ɵChatConfigurationStore;
|
|
419
265
|
}
|
|
420
266
|
interface CopilotChatConfigurationProviderProps {
|
|
421
267
|
children: ReactNode;
|
|
422
|
-
labels?: Partial<CopilotChatLabels>;
|
|
268
|
+
labels?: Partial<CopilotChatLabels$1>;
|
|
423
269
|
agentId?: string;
|
|
424
270
|
threadId?: string;
|
|
425
271
|
hasExplicitThreadId?: boolean;
|
|
@@ -553,7 +399,7 @@ declare function useAgent({
|
|
|
553
399
|
updates,
|
|
554
400
|
throttleMs
|
|
555
401
|
}?: UseAgentProps): {
|
|
556
|
-
agent: AbstractAgent;
|
|
402
|
+
agent: _ag_ui_client0.AbstractAgent | _copilotkit_core0.ProxiedCopilotRuntimeAgent;
|
|
557
403
|
/**
|
|
558
404
|
* Whether `agent` is the real, runtime-synced (or locally-registered) agent
|
|
559
405
|
* rather than a provisional stand-in returned while the runtime is still
|
|
@@ -572,6 +418,30 @@ declare function useAgent({
|
|
|
572
418
|
};
|
|
573
419
|
//#endregion
|
|
574
420
|
//#region src/hooks/use-frontend-tool.d.ts
|
|
421
|
+
/**
|
|
422
|
+
* Register a frontend tool while the component is mounted. The agent can
|
|
423
|
+
* call it, and its `render` component draws the call in the chat.
|
|
424
|
+
*
|
|
425
|
+
* A tool with the same name and agentId as a tool that is already registered
|
|
426
|
+
* (for example one from the provider's `tools`) overrides it while this
|
|
427
|
+
* component is mounted. When the component unmounts, the overridden tool is
|
|
428
|
+
* active again. The renderer stays registered after unmount, so past tool
|
|
429
|
+
* calls still render in the chat history.
|
|
430
|
+
*
|
|
431
|
+
* @param tool - The tool to register.
|
|
432
|
+
* @param deps - Extra values that re-register the tool when they change. Use
|
|
433
|
+
* it when the handler closes over a value that is not part of the tool.
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* ```tsx
|
|
437
|
+
* useFrontendTool({
|
|
438
|
+
* name: "showWeather",
|
|
439
|
+
* description: "Show the weather for a city",
|
|
440
|
+
* parameters: z.object({ city: z.string() }),
|
|
441
|
+
* handler: async ({ city }) => `Sunny in ${city}`,
|
|
442
|
+
* });
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
575
445
|
declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
|
|
576
446
|
//#endregion
|
|
577
447
|
//#region src/hooks/use-frontend-tools.d.ts
|
|
@@ -585,8 +455,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
|
|
|
585
455
|
*
|
|
586
456
|
* Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
|
|
587
457
|
* tool that disappears from the array is unregistered on the next render, and
|
|
588
|
-
* every tool is unregistered on unmount.
|
|
589
|
-
*
|
|
458
|
+
* every tool is unregistered on unmount. A listed tool hides a tool with the
|
|
459
|
+
* same name and agentId (for example one from the provider's `tools`) until it
|
|
460
|
+
* is unregistered, and then the hidden tool is active again. Renderers stay
|
|
461
|
+
* registered after unmount so past tool calls still render in the chat history.
|
|
590
462
|
*
|
|
591
463
|
* @param tools - The tools to register. May be empty and may change length.
|
|
592
464
|
* @param deps - Extra dependencies that force re-registration, compared by
|
|
@@ -696,7 +568,6 @@ type InterruptResultFromHandler<THandler> = THandler extends ((...args: never[])
|
|
|
696
568
|
type InterruptResult<TValue, TResult> = InterruptResultFromHandler<InterruptHandlerFn<TValue, TResult>>;
|
|
697
569
|
type InterruptRenderInChat = boolean | undefined;
|
|
698
570
|
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
571
|
/**
|
|
701
572
|
* Configuration options for `useInterrupt`.
|
|
702
573
|
*/
|
|
@@ -770,20 +641,26 @@ declare function useSuggestions({
|
|
|
770
641
|
}?: UseSuggestionsOptions): UseSuggestionsResult;
|
|
771
642
|
//#endregion
|
|
772
643
|
//#region src/hooks/use-configure-suggestions.d.ts
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
644
|
+
/**
|
|
645
|
+
* Registers a suggestions configuration (dynamic or static) for the current
|
|
646
|
+
* chat. A global config (no `consumerAgentId`, or `"*"`) applies to every
|
|
647
|
+
* agent and loads for the surrounding chat's agent first.
|
|
648
|
+
*
|
|
649
|
+
* Pass `deps` to reload suggestions when values the config reads change.
|
|
650
|
+
*
|
|
651
|
+
* @example
|
|
652
|
+
* useConfigureSuggestions({
|
|
653
|
+
* instructions: "Suggest concise next steps for the user",
|
|
654
|
+
* available: "always",
|
|
655
|
+
* });
|
|
656
|
+
*/
|
|
657
|
+
declare function useConfigureSuggestions(config: ɵSuggestionsConfigInput | null | undefined, deps?: ReadonlyArray<unknown>): void;
|
|
779
658
|
//#endregion
|
|
780
659
|
//#region src/hooks/use-agent-context.d.ts
|
|
781
660
|
/**
|
|
782
661
|
* Represents any value that can be serialized to JSON.
|
|
783
662
|
*/
|
|
784
|
-
type JsonSerializable =
|
|
785
|
-
[key: string]: JsonSerializable;
|
|
786
|
-
};
|
|
663
|
+
type JsonSerializable = ɵJsonSerializable;
|
|
787
664
|
/**
|
|
788
665
|
* Context configuration for useAgentContext.
|
|
789
666
|
* Accepts any JSON-serializable value which will be converted to a string.
|
|
@@ -801,23 +678,12 @@ declare function useAgentContext(context: AgentContextInput): void;
|
|
|
801
678
|
* A conversation thread managed by CopilotKit Intelligence.
|
|
802
679
|
*
|
|
803
680
|
* Each thread has a unique `id`, an optional human-readable `name`, and
|
|
804
|
-
*
|
|
681
|
+
* ISO-8601 `createdAt` and `updatedAt` timestamps. `lastRunAt` is the time of
|
|
682
|
+
* the most recent agent run, absent when the thread has never run; prefer it
|
|
683
|
+
* over `updatedAt` for "last activity", since rename and archive do not bump
|
|
684
|
+
* it. The shape is core's thread summary, which Angular also exposes.
|
|
805
685
|
*/
|
|
806
|
-
|
|
807
|
-
id: string;
|
|
808
|
-
agentId: string;
|
|
809
|
-
name: string | null;
|
|
810
|
-
archived: boolean;
|
|
811
|
-
createdAt: string;
|
|
812
|
-
updatedAt: string;
|
|
813
|
-
/**
|
|
814
|
-
* ISO-8601 timestamp of the most recent agent run on this thread. Absent
|
|
815
|
-
* when the thread has never been run. Prefer this over `updatedAt` for
|
|
816
|
-
* user-facing "last activity" displays — it is not bumped by metadata-only
|
|
817
|
-
* actions like rename or archive.
|
|
818
|
-
*/
|
|
819
|
-
lastRunAt?: string;
|
|
820
|
-
}
|
|
686
|
+
type Thread = ɵThreadSummary;
|
|
821
687
|
/**
|
|
822
688
|
* Configuration for the {@link useThreads} hook.
|
|
823
689
|
*
|
|
@@ -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,qBAAA,CAAsB,CAAA;AAAA;;;;;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