@copilotkit/runtime 1.5.15-next.7 → 1.5.15
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 +25 -0
- package/__snapshots__/schema/schema.graphql +14 -1
- package/dist/{chunk-F4WILQ32.mjs → chunk-2ITUMI4O.mjs} +2 -2
- package/dist/{chunk-BUEAVIXA.mjs → chunk-GRU4U3VO.mjs} +2 -2
- package/dist/{chunk-OMS5GY45.mjs → chunk-HOTR3KYO.mjs} +538 -416
- package/dist/chunk-HOTR3KYO.mjs.map +1 -0
- package/dist/{chunk-65VBDTR4.mjs → chunk-USNCP24V.mjs} +2 -2
- package/dist/{copilot-runtime-a113045f.d.ts → copilot-runtime-3e7f1c7b.d.ts} +5 -4
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/{groq-adapter-248058e8.d.ts → groq-adapter-3b894689.d.ts} +1 -1
- package/dist/{index-a7f37670.d.ts → index-f6d1f30b.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1283 -1161
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9580bd66.d.ts → langserve-3a591089.d.ts} +11 -3
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +1283 -1161
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +493 -400
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +493 -400
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +493 -400
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +493 -400
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +4 -4
- package/package.json +2 -2
- package/src/agents/langgraph/event-source.ts +7 -0
- package/src/agents/langgraph/events.ts +11 -1
- package/src/graphql/inputs/meta-event.input.ts +4 -3
- package/src/graphql/resolvers/copilot.resolver.ts +44 -1
- package/src/graphql/types/copilot-response.type.ts +1 -3
- package/src/graphql/types/meta-events.type.ts +41 -1
- package/src/lib/runtime/remote-lg-action.ts +44 -19
- package/src/service-adapters/events.ts +8 -2
- package/dist/chunk-OMS5GY45.mjs.map +0 -1
- /package/dist/{chunk-F4WILQ32.mjs.map → chunk-2ITUMI4O.mjs.map} +0 -0
- /package/dist/{chunk-BUEAVIXA.mjs.map → chunk-GRU4U3VO.mjs.map} +0 -0
- /package/dist/{chunk-65VBDTR4.mjs.map → chunk-USNCP24V.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-USNCP24V.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GRU4U3VO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2ITUMI4O.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
buildSchema,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getCommonConfig,
|
|
21
21
|
langGraphPlatformEndpoint,
|
|
22
22
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HOTR3KYO.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AnthropicAdapter,
|
|
26
26
|
EmptyAdapter,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ActionInputAvailability, a as Message } from './index-
|
|
1
|
+
import { A as ActionInputAvailability, T as TextMessage, b as ActionExecutionMessage, R as ResultMessage, a as Message } from './index-f6d1f30b.js';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Subject, ReplaySubject } from 'rxjs';
|
|
4
4
|
import { Action, Parameter } from '@copilotkit/shared';
|
|
@@ -32,16 +32,24 @@ declare enum RuntimeEventTypes {
|
|
|
32
32
|
}
|
|
33
33
|
declare enum RuntimeMetaEventName {
|
|
34
34
|
LangGraphInterruptEvent = "LangGraphInterruptEvent",
|
|
35
|
-
LangGraphInterruptResumeEvent = "LangGraphInterruptResumeEvent"
|
|
35
|
+
LangGraphInterruptResumeEvent = "LangGraphInterruptResumeEvent",
|
|
36
|
+
CopilotKitLangGraphInterruptEvent = "CopilotKitLangGraphInterruptEvent"
|
|
36
37
|
}
|
|
37
38
|
type RunTimeMetaEvent = {
|
|
38
39
|
type: RuntimeEventTypes.MetaEvent;
|
|
39
40
|
name: RuntimeMetaEventName.LangGraphInterruptEvent;
|
|
40
41
|
value: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: RuntimeEventTypes.MetaEvent;
|
|
44
|
+
name: RuntimeMetaEventName.CopilotKitLangGraphInterruptEvent;
|
|
45
|
+
data: {
|
|
46
|
+
value: string;
|
|
47
|
+
messages: (TextMessage | ActionExecutionMessage | ResultMessage)[];
|
|
48
|
+
};
|
|
41
49
|
} | {
|
|
42
50
|
type: RuntimeEventTypes.MetaEvent;
|
|
43
51
|
name: RuntimeMetaEventName.LangGraphInterruptResumeEvent;
|
|
44
|
-
|
|
52
|
+
data: string;
|
|
45
53
|
};
|
|
46
54
|
type RuntimeEvent = {
|
|
47
55
|
type: RuntimeEventTypes.TextMessageStart;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-
|
|
2
|
-
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-
|
|
1
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-3e7f1c7b.js';
|
|
2
|
+
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-3b894689.js';
|
|
3
3
|
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.js';
|
|
5
5
|
export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/index.js';
|
|
6
6
|
export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
|
|
7
7
|
import '@copilotkit/shared';
|
|
8
|
-
import '../langserve-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../langserve-3a591089.js';
|
|
9
|
+
import '../index-f6d1f30b.js';
|
|
10
10
|
import '../graphql/types/base/index.js';
|
|
11
11
|
import 'rxjs';
|
|
12
12
|
import 'graphql';
|