@copilotkit/react-core 1.52.0-next.8 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +7 -7
- package/src/hooks/use-langgraph-interrupt.ts +2 -1
- package/src/types/interrupt-action.ts +5 -0
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.52.0
|
|
13
|
+
"version": "1.52.0",
|
|
14
14
|
"sideEffects": [
|
|
15
15
|
"**/*.css"
|
|
16
16
|
],
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"tsdown": "^0.20.3",
|
|
52
52
|
"typescript": "^5.2.3",
|
|
53
53
|
"zod": ">=3.0.0",
|
|
54
|
-
"eslint-config-custom": "1.4.
|
|
55
|
-
"tsconfig": "1.4.
|
|
54
|
+
"eslint-config-custom": "1.4.9",
|
|
55
|
+
"tsconfig": "1.4.9"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@ag-ui/client": "^0.0.45",
|
|
59
59
|
"@scarf/scarf": "^1.3.0",
|
|
60
60
|
"react-markdown": "^8.0.7",
|
|
61
61
|
"untruncate-json": "^0.0.1",
|
|
62
|
-
"@copilotkit/runtime-client-gql": "1.52.0
|
|
63
|
-
"@copilotkit/shared": "1.52.0
|
|
64
|
-
"@copilotkitnext/core": "1.52.0
|
|
65
|
-
"@copilotkitnext/react": "1.52.0
|
|
62
|
+
"@copilotkit/runtime-client-gql": "1.52.0",
|
|
63
|
+
"@copilotkit/shared": "1.52.0",
|
|
64
|
+
"@copilotkitnext/core": "1.52.0",
|
|
65
|
+
"@copilotkitnext/react": "1.52.0"
|
|
66
66
|
},
|
|
67
67
|
"keywords": [
|
|
68
68
|
"copilotkit",
|
|
@@ -40,7 +40,8 @@ export function useLangGraphInterrupt<TEventValue = any>(
|
|
|
40
40
|
actionRef.current = action;
|
|
41
41
|
|
|
42
42
|
const existingConfig = useCopilotChatConfiguration();
|
|
43
|
-
const resolvedAgentId =
|
|
43
|
+
const resolvedAgentId =
|
|
44
|
+
action.agentId ?? existingConfig?.agentId ?? "default";
|
|
44
45
|
const threadId = existingConfig?.threadId;
|
|
45
46
|
const nodeName = useAgentNodeName(resolvedAgentId);
|
|
46
47
|
|
|
@@ -34,6 +34,11 @@ export interface LangGraphInterruptRender<TEventValue = any> {
|
|
|
34
34
|
eventValue: TEventValue;
|
|
35
35
|
agentMetadata: AgentSession;
|
|
36
36
|
}) => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional agent ID to scope this interrupt to a specific agent.
|
|
39
|
+
* Defaults to the agent configured in the CopilotKit chat configuration.
|
|
40
|
+
*/
|
|
41
|
+
agentId?: string;
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
export type LangGraphInterruptAction = LangGraphInterruptRender & {
|