@copilotkit/react-core 2.0.0-rc.20 → 2.0.0-rc.22
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/{MarkdownSurfaces-CoUoPhR9.cjs → MarkdownSurfaces-CGW92DCL.cjs} +49 -178
- package/dist/MarkdownSurfaces-CGW92DCL.cjs.map +1 -0
- package/dist/{MarkdownSurfaces-Bt7TD_U1.mjs → MarkdownSurfaces-DveOwhaW.mjs} +52 -181
- package/dist/MarkdownSurfaces-DveOwhaW.mjs.map +1 -0
- package/dist/context.cjs +43 -46
- package/dist/context.cjs.map +1 -1
- package/dist/context.d.cts +15 -11
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.mts +15 -11
- package/dist/context.d.mts.map +1 -1
- package/dist/context.mjs +44 -47
- package/dist/context.mjs.map +1 -1
- package/dist/generative-ui.cjs +1 -1
- package/dist/generative-ui.mjs +1 -1
- package/dist/headless.cjs +235 -941
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +67 -26
- package/dist/headless.d.cts.map +1 -1
- package/dist/headless.d.mts +53 -16
- package/dist/headless.d.mts.map +1 -1
- package/dist/headless.mjs +236 -943
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +1847 -3433
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -278
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +122 -279
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +924 -3379
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1866 -3583
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/dist/MarkdownSurfaces-Bt7TD_U1.mjs.map +0 -1
- package/dist/MarkdownSurfaces-CoUoPhR9.cjs.map +0 -1
package/dist/headless.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React$1, { ComponentType, ReactNode } from "react";
|
|
2
|
-
import
|
|
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";
|
|
3
4
|
import { InferSchemaOutput, StandardSchemaV1 } from "@copilotkit/shared";
|
|
4
|
-
import
|
|
5
|
+
import * as _ag_ui_client0 from "@ag-ui/client";
|
|
6
|
+
import { Interrupt, ResumeEntry, ResumeStatus } from "@ag-ui/client";
|
|
5
7
|
import { AgentCapabilities, ToolCall, ToolMessage } from "@ag-ui/core";
|
|
6
8
|
|
|
7
9
|
//#region src/types/react-tool-call-renderer.d.ts
|
|
@@ -94,7 +96,15 @@ interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig {
|
|
|
94
96
|
interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber {
|
|
95
97
|
onRenderToolCallsChanged?: (event: {
|
|
96
98
|
copilotkit: CopilotKitCore;
|
|
97
|
-
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[];
|
|
98
108
|
}) => void | Promise<void>;
|
|
99
109
|
onInterruptElementChanged?: (event: {
|
|
100
110
|
copilotkit: CopilotKitCore;
|
|
@@ -102,22 +112,18 @@ interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber {
|
|
|
102
112
|
}) => void | Promise<void>;
|
|
103
113
|
}
|
|
104
114
|
declare class CopilotKitCoreReact extends CopilotKitCore {
|
|
105
|
-
private
|
|
106
|
-
private _hookRenderToolCalls;
|
|
107
|
-
private _cachedMergedRenderToolCalls;
|
|
108
|
-
private _renderCustomMessages;
|
|
109
|
-
private _renderActivityMessages;
|
|
110
|
-
private _interruptElement;
|
|
115
|
+
private readonly _renderers;
|
|
111
116
|
constructor(config: CopilotKitCoreReactConfig);
|
|
112
|
-
get renderCustomMessages():
|
|
113
|
-
get renderActivityMessages():
|
|
114
|
-
|
|
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>[];
|
|
115
121
|
setRenderActivityMessages(renderers: ReactActivityMessageRenderer<any>[]): void;
|
|
116
122
|
setRenderCustomMessages(renderers: ReactCustomMessageRenderer[]): void;
|
|
117
123
|
setRenderToolCalls(renderToolCalls: ReactToolCallRenderer<any>[]): void;
|
|
118
124
|
addHookRenderToolCall(entry: ReactToolCallRenderer<any>): void;
|
|
119
125
|
removeHookRenderToolCall(name: string, agentId?: string): void;
|
|
120
|
-
private
|
|
126
|
+
private notifyRenderersChanged;
|
|
121
127
|
get interruptElement(): React$1.ReactElement | null;
|
|
122
128
|
setInterruptElement(element: React$1.ReactElement | null): void;
|
|
123
129
|
subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription;
|
|
@@ -140,6 +146,31 @@ interface CopilotKitContextValue {
|
|
|
140
146
|
}
|
|
141
147
|
declare const useCopilotKit: () => CopilotKitContextValue;
|
|
142
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
|
|
143
174
|
//#region src/providers/CopilotChatConfigurationProvider.d.ts
|
|
144
175
|
interface CopilotChatConfigurationValue {
|
|
145
176
|
labels: CopilotChatLabels$1;
|
|
@@ -215,6 +246,11 @@ interface CopilotChatConfigurationValue {
|
|
|
215
246
|
* threadId is prop-controlled.
|
|
216
247
|
*/
|
|
217
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;
|
|
218
254
|
}
|
|
219
255
|
interface CopilotChatConfigurationProviderProps {
|
|
220
256
|
children: ReactNode;
|
|
@@ -352,7 +388,7 @@ declare function useAgent({
|
|
|
352
388
|
updates,
|
|
353
389
|
throttleMs
|
|
354
390
|
}?: UseAgentProps): {
|
|
355
|
-
agent: AbstractAgent;
|
|
391
|
+
agent: _ag_ui_client0.AbstractAgent | _copilotkit_core0.ProxiedCopilotRuntimeAgent;
|
|
356
392
|
/**
|
|
357
393
|
* Whether `agent` is the real, runtime-synced (or locally-registered) agent
|
|
358
394
|
* rather than a provisional stand-in returned while the runtime is still
|
|
@@ -521,7 +557,6 @@ type InterruptResultFromHandler<THandler> = THandler extends ((...args: never[])
|
|
|
521
557
|
type InterruptResult<TValue, TResult> = InterruptResultFromHandler<InterruptHandlerFn<TValue, TResult>>;
|
|
522
558
|
type InterruptRenderInChat = boolean | undefined;
|
|
523
559
|
type UseInterruptReturn<TRenderInChat extends InterruptRenderInChat> = TRenderInChat extends false ? React$1.ReactElement | null : TRenderInChat extends true | undefined ? void : React$1.ReactElement | null | void;
|
|
524
|
-
/** Recognize thenables returned by interrupt preprocessing handlers. */
|
|
525
560
|
/**
|
|
526
561
|
* Configuration options for `useInterrupt`.
|
|
527
562
|
*/
|
|
@@ -595,20 +630,26 @@ declare function useSuggestions({
|
|
|
595
630
|
}?: UseSuggestionsOptions): UseSuggestionsResult;
|
|
596
631
|
//#endregion
|
|
597
632
|
//#region src/hooks/use-configure-suggestions.d.ts
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
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;
|
|
604
647
|
//#endregion
|
|
605
648
|
//#region src/hooks/use-agent-context.d.ts
|
|
606
649
|
/**
|
|
607
650
|
* Represents any value that can be serialized to JSON.
|
|
608
651
|
*/
|
|
609
|
-
type JsonSerializable =
|
|
610
|
-
[key: string]: JsonSerializable;
|
|
611
|
-
};
|
|
652
|
+
type JsonSerializable = ɵJsonSerializable;
|
|
612
653
|
/**
|
|
613
654
|
* Context configuration for useAgentContext.
|
|
614
655
|
* Accepts any JSON-serializable value which will be converted to a string.
|
|
@@ -938,5 +979,5 @@ declare function useRenderToolCall(): ({
|
|
|
938
979
|
*/
|
|
939
980
|
declare function useCapabilities(agentId?: string): AgentCapabilities | undefined;
|
|
940
981
|
//#endregion
|
|
941
|
-
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 };
|
|
942
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/lib/react-core.ts","../src/context.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":"
|
|
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;;;;;;;;;KCGrB,mBAAA,WACA,MAAA,oBAA0B,MAAA,qBAClC,IAAA,CAAK,YAAA,CAAa,CAAA;EJIV;;;;;EIEV,MAAA,EAAQ,OAAA,CAAM,aAAA,CAAc,yBAAA,CAA0B,CAAA;AAAA;;;;;;;;AJFxD;;iBKDgB,sBAAA,CAAuB,GAAA;EACrC,IAAA;EACA,MAAA,GAAS,KAAA,EAAO,mBAAA,UAA6B,OAAA,CAAM,YAAA;EACnD,OAAA;EACA,KAAA;AAAA,IACE,qBAAA;AAAA,iBAGY,sBAAA,WAAiC,gBAAA,CAA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|
|
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 { CopilotChatDefaultLabels, CopilotChatLabels, CopilotChatLabels as CopilotChatLabels$1, FrontendTool, HumanInTheLoopRenderProps, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, Suggestion, ToolCallRenderProps, ToolCallRendererDef, ɵChatConfigurationStore, ɵJsonSerializable, ɵSuggestionsConfigInput } from "@copilotkit/core";
|
|
2
4
|
import { InferSchemaOutput, StandardSchemaV1 } from "@copilotkit/shared";
|
|
3
|
-
import { CopilotChatDefaultLabels, CopilotChatLabels, CopilotChatLabels as CopilotChatLabels$1, DynamicSuggestionsConfig, FrontendTool, HumanInTheLoopRenderProps, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, StaticSuggestionsConfig, Suggestion, ToolCallRenderProps, ToolCallRendererDef } from "@copilotkit/core";
|
|
4
|
-
import { AbstractAgent, Interrupt, ResumeEntry, ResumeStatus } from "@ag-ui/client";
|
|
5
|
-
import { AgentCapabilities, ToolCall, ToolMessage } from "@ag-ui/core";
|
|
6
5
|
import { CopilotKitCoreReact, CopilotKitCoreReactConfig, useCopilotKit } from "@copilotkit/react-core/context";
|
|
6
|
+
import * as _ag_ui_client0 from "@ag-ui/client";
|
|
7
|
+
import { Interrupt, ResumeEntry, ResumeStatus } from "@ag-ui/client";
|
|
8
|
+
import { AgentCapabilities, ToolCall, ToolMessage } from "@ag-ui/core";
|
|
7
9
|
|
|
10
|
+
//#region src/providers/use-owned-core.d.ts
|
|
11
|
+
/** The part of a core this hook needs: something it can dispose. */
|
|
12
|
+
interface Disposable {
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal Create a core for the provider's lifetime and dispose it on
|
|
17
|
+
* unmount.
|
|
18
|
+
*
|
|
19
|
+
* The dispose waits one task. StrictMode (and Fast Refresh) unmount and
|
|
20
|
+
* remount effects in the same commit, so the remount cancels the pending
|
|
21
|
+
* dispose and the same core keeps working. When effects mount again after the
|
|
22
|
+
* core was really disposed (for example an `<Activity>` that was hidden and
|
|
23
|
+
* shown), the hook creates a new core and renders again: a disposed core is
|
|
24
|
+
* never reused.
|
|
25
|
+
*
|
|
26
|
+
* `ref` holds the current core. The provider owns it, so code that runs
|
|
27
|
+
* before the core exists can read `ref.current`.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const coreRef = useRef<CopilotKitCoreReact | null>(null);
|
|
31
|
+
* const core = ɵuseOwnedCore(coreRef, () => new CopilotKitCoreReact(config));
|
|
32
|
+
*/
|
|
33
|
+
declare function ɵuseOwnedCore<T extends Disposable>(ref: MutableRefObject<T | null>, create: () => T): T;
|
|
34
|
+
//#endregion
|
|
8
35
|
//#region src/providers/CopilotChatConfigurationProvider.d.ts
|
|
9
36
|
interface CopilotChatConfigurationValue {
|
|
10
37
|
labels: CopilotChatLabels$1;
|
|
@@ -80,6 +107,11 @@ interface CopilotChatConfigurationValue {
|
|
|
80
107
|
* threadId is prop-controlled.
|
|
81
108
|
*/
|
|
82
109
|
startNewThread: () => void;
|
|
110
|
+
/**
|
|
111
|
+
* Internal: the core store behind this value, so a nested provider can link
|
|
112
|
+
* its own store to it.
|
|
113
|
+
*/
|
|
114
|
+
ɵstore?: ɵChatConfigurationStore;
|
|
83
115
|
}
|
|
84
116
|
interface CopilotChatConfigurationProviderProps {
|
|
85
117
|
children: ReactNode;
|
|
@@ -217,7 +249,7 @@ declare function useAgent({
|
|
|
217
249
|
updates,
|
|
218
250
|
throttleMs
|
|
219
251
|
}?: UseAgentProps): {
|
|
220
|
-
agent: AbstractAgent;
|
|
252
|
+
agent: _ag_ui_client0.AbstractAgent | _copilotkit_core0.ProxiedCopilotRuntimeAgent;
|
|
221
253
|
/**
|
|
222
254
|
* Whether `agent` is the real, runtime-synced (or locally-registered) agent
|
|
223
255
|
* rather than a provisional stand-in returned while the runtime is still
|
|
@@ -419,7 +451,6 @@ type InterruptResultFromHandler<THandler> = THandler extends ((...args: never[])
|
|
|
419
451
|
type InterruptResult<TValue, TResult> = InterruptResultFromHandler<InterruptHandlerFn<TValue, TResult>>;
|
|
420
452
|
type InterruptRenderInChat = boolean | undefined;
|
|
421
453
|
type UseInterruptReturn<TRenderInChat extends InterruptRenderInChat> = TRenderInChat extends false ? React$1.ReactElement | null : TRenderInChat extends true | undefined ? void : React$1.ReactElement | null | void;
|
|
422
|
-
/** Recognize thenables returned by interrupt preprocessing handlers. */
|
|
423
454
|
/**
|
|
424
455
|
* Configuration options for `useInterrupt`.
|
|
425
456
|
*/
|
|
@@ -493,20 +524,26 @@ declare function useSuggestions({
|
|
|
493
524
|
}?: UseSuggestionsOptions): UseSuggestionsResult;
|
|
494
525
|
//#endregion
|
|
495
526
|
//#region src/hooks/use-configure-suggestions.d.ts
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
527
|
+
/**
|
|
528
|
+
* Registers a suggestions configuration (dynamic or static) for the current
|
|
529
|
+
* chat. A global config (no `consumerAgentId`, or `"*"`) applies to every
|
|
530
|
+
* agent and loads for the surrounding chat's agent first.
|
|
531
|
+
*
|
|
532
|
+
* Pass `deps` to reload suggestions when values the config reads change.
|
|
533
|
+
*
|
|
534
|
+
* @example
|
|
535
|
+
* useConfigureSuggestions({
|
|
536
|
+
* instructions: "Suggest concise next steps for the user",
|
|
537
|
+
* available: "always",
|
|
538
|
+
* });
|
|
539
|
+
*/
|
|
540
|
+
declare function useConfigureSuggestions(config: ɵSuggestionsConfigInput | null | undefined, deps?: ReadonlyArray<unknown>): void;
|
|
502
541
|
//#endregion
|
|
503
542
|
//#region src/hooks/use-agent-context.d.ts
|
|
504
543
|
/**
|
|
505
544
|
* Represents any value that can be serialized to JSON.
|
|
506
545
|
*/
|
|
507
|
-
type JsonSerializable =
|
|
508
|
-
[key: string]: JsonSerializable;
|
|
509
|
-
};
|
|
546
|
+
type JsonSerializable = ɵJsonSerializable;
|
|
510
547
|
/**
|
|
511
548
|
* Context configuration for useAgentContext.
|
|
512
549
|
* Accepts any JSON-serializable value which will be converted to a string.
|
|
@@ -858,5 +895,5 @@ declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
|
|
|
858
895
|
*/
|
|
859
896
|
declare function useCapabilities(agentId?: string): AgentCapabilities | undefined;
|
|
860
897
|
//#endregion
|
|
861
|
-
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 };
|
|
898
|
+
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 };
|
|
862
899
|
//# sourceMappingURL=headless.d.mts.map
|
package/dist/headless.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless.d.mts","names":[],"sources":["../src/providers/CopilotChatConfigurationProvider.tsx","../src/hooks/use-agent.tsx","../src/types/react-tool-call-renderer.ts","../src/types/frontend-tool.ts","../src/hooks/use-frontend-tool.tsx","../src/hooks/use-frontend-tools.tsx","../src/hooks/use-component.tsx","../src/types/human-in-the-loop.ts","../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/types/defineToolCallRenderer.ts","../src/hooks/use-capabilities.tsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"headless.d.mts","names":[],"sources":["../src/providers/use-owned-core.ts","../src/providers/CopilotChatConfigurationProvider.tsx","../src/hooks/use-agent.tsx","../src/types/react-tool-call-renderer.ts","../src/types/frontend-tool.ts","../src/hooks/use-frontend-tool.tsx","../src/hooks/use-frontend-tools.tsx","../src/hooks/use-component.tsx","../src/types/human-in-the-loop.ts","../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/types/defineToolCallRenderer.ts","../src/hooks/use-capabilities.tsx"],"mappings":";;;;;;;;;;;UAIU,UAAA;EACR,OAAA;A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