@copilotkit/runtime 1.1.1-feat-runtime-remote-actions.0 → 1.1.1
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 +6 -3
- package/__snapshots__/schema/schema.graphql +0 -22
- package/dist/{chunk-CC3J37S6.mjs → chunk-AMCK7MAH.mjs} +2 -2
- package/dist/{chunk-JMW74TAS.mjs → chunk-BOAAK6EY.mjs} +2 -2
- package/dist/{chunk-4MRXXS22.mjs → chunk-CUVWSISN.mjs} +3 -3
- package/dist/{chunk-KOC3ZRO4.mjs → chunk-GEIBJJQ4.mjs} +2 -12
- package/dist/chunk-GEIBJJQ4.mjs.map +1 -0
- package/dist/{chunk-4AJIFDOJ.mjs → chunk-NJUL6GAV.mjs} +2 -2
- package/dist/{chunk-CSIQEWDR.mjs → chunk-RO5NLPB3.mjs} +12 -101
- package/dist/chunk-RO5NLPB3.mjs.map +1 -0
- package/dist/{chunk-UTUNGR2L.mjs → chunk-URMISMK2.mjs} +2 -2
- package/dist/{chunk-MISUYYBG.mjs → chunk-YJAUWNAJ.mjs} +28 -356
- package/dist/chunk-YJAUWNAJ.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +0 -11
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +1 -3
- package/dist/{groq-adapter-35a54596.d.ts → groq-adapter-675b30c6.d.ts} +1 -1
- package/dist/{index-9cfb4d1f.d.ts → index-aa091e3c.d.ts} +1 -18
- package/dist/index.d.ts +8 -8
- package/dist/index.js +31 -451
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/{langserve-b97a6817.d.ts → langserve-a54438c6.d.ts} +2 -11
- package/dist/lib/index.d.ts +8 -8
- package/dist/lib/index.js +31 -451
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +8 -8
- package/dist/lib/integrations/index.d.ts +7 -7
- package/dist/lib/integrations/index.js +14 -132
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +6 -6
- package/dist/lib/integrations/nest/index.d.ts +5 -5
- package/dist/lib/integrations/nest/index.js +14 -132
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +4 -4
- package/dist/lib/integrations/node-express/index.d.ts +5 -5
- package/dist/lib/integrations/node-express/index.js +14 -132
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +4 -4
- package/dist/lib/integrations/node-http/index.d.ts +5 -5
- package/dist/lib/integrations/node-http/index.js +14 -132
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +3 -3
- package/dist/{pages-router-df63122a.d.ts → pages-router-df82c666.d.ts} +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +3 -3
- package/dist/{copilot-runtime-40b55575.d.ts → shared-ec6c7db5.d.ts} +35 -47
- package/package.json +4 -4
- package/src/graphql/inputs/message.input.ts +0 -24
- package/src/graphql/resolvers/copilot.resolver.ts +7 -40
- package/src/graphql/types/converted/index.ts +0 -10
- package/src/graphql/types/copilot-response.type.ts +0 -23
- package/src/lib/{runtime/copilot-runtime.ts → copilot-runtime.ts} +14 -123
- package/src/lib/index.ts +1 -1
- package/src/lib/integrations/shared.ts +1 -1
- package/src/service-adapters/conversion.ts +0 -14
- package/src/service-adapters/events.ts +8 -49
- package/dist/chunk-CSIQEWDR.mjs.map +0 -1
- package/dist/chunk-KOC3ZRO4.mjs.map +0 -1
- package/dist/chunk-MISUYYBG.mjs.map +0 -1
- package/src/agents/langgraph/event-source.ts +0 -29
- package/src/agents/langgraph/events.ts +0 -295
- package/src/lib/runtime/remote-actions.ts +0 -271
- /package/dist/{chunk-CC3J37S6.mjs.map → chunk-AMCK7MAH.mjs.map} +0 -0
- /package/dist/{chunk-JMW74TAS.mjs.map → chunk-BOAAK6EY.mjs.map} +0 -0
- /package/dist/{chunk-4MRXXS22.mjs.map → chunk-CUVWSISN.mjs.map} +0 -0
- /package/dist/{chunk-4AJIFDOJ.mjs.map → chunk-NJUL6GAV.mjs.map} +0 -0
- /package/dist/{chunk-UTUNGR2L.mjs.map → chunk-URMISMK2.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotRuntime,
|
|
3
3
|
flattenToolCallsNoDuplicates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RO5NLPB3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
GoogleGenerativeAIAdapter,
|
|
7
7
|
GroqAdapter,
|
|
@@ -9,31 +9,31 @@ import {
|
|
|
9
9
|
OpenAIAdapter,
|
|
10
10
|
OpenAIAssistantAdapter,
|
|
11
11
|
UnifyAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CUVWSISN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
config,
|
|
15
15
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
16
16
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AMCK7MAH.mjs";
|
|
18
18
|
import {
|
|
19
19
|
copilotRuntimeNestEndpoint
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BOAAK6EY.mjs";
|
|
21
21
|
import {
|
|
22
22
|
copilotRuntimeNodeExpressEndpoint
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NJUL6GAV.mjs";
|
|
24
24
|
import {
|
|
25
25
|
buildSchema,
|
|
26
26
|
copilotRuntimeNodeHttpEndpoint,
|
|
27
27
|
createContext,
|
|
28
28
|
getCommonConfig
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-YJAUWNAJ.mjs";
|
|
30
|
+
import "./chunk-URMISMK2.mjs";
|
|
31
31
|
import {
|
|
32
32
|
GuardrailsValidationFailureResponse,
|
|
33
33
|
MessageStreamInterruptedResponse,
|
|
34
34
|
UnknownErrorResponse
|
|
35
35
|
} from "./chunk-U3V2BCGI.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-GEIBJJQ4.mjs";
|
|
37
37
|
import "./chunk-RMZWGQ46.mjs";
|
|
38
38
|
import "./chunk-44O2JGUY.mjs";
|
|
39
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Message } from './index-
|
|
1
|
+
import { a as Message } from './index-aa091e3c.js';
|
|
2
2
|
import * as rxjs from 'rxjs';
|
|
3
3
|
import { Subject, ReplaySubject } from 'rxjs';
|
|
4
4
|
import { Action, Parameter } from '@copilotkit/shared';
|
|
@@ -19,8 +19,7 @@ declare enum RuntimeEventTypes {
|
|
|
19
19
|
ActionExecutionStart = "ActionExecutionStart",
|
|
20
20
|
ActionExecutionArgs = "ActionExecutionArgs",
|
|
21
21
|
ActionExecutionEnd = "ActionExecutionEnd",
|
|
22
|
-
ActionExecutionResult = "ActionExecutionResult"
|
|
23
|
-
AgentMessage = "AgentMessage"
|
|
22
|
+
ActionExecutionResult = "ActionExecutionResult"
|
|
24
23
|
}
|
|
25
24
|
type FunctionCallScope = "client" | "server";
|
|
26
25
|
type RuntimeEvent = {
|
|
@@ -46,13 +45,6 @@ type RuntimeEvent = {
|
|
|
46
45
|
actionName: string;
|
|
47
46
|
actionExecutionId: string;
|
|
48
47
|
result: string;
|
|
49
|
-
} | {
|
|
50
|
-
type: RuntimeEventTypes.AgentMessage;
|
|
51
|
-
threadId: string;
|
|
52
|
-
agentName: string;
|
|
53
|
-
nodeName: string;
|
|
54
|
-
state: string;
|
|
55
|
-
running: boolean;
|
|
56
48
|
};
|
|
57
49
|
type EventSourceCallback = (eventStream$: RuntimeEventSubject) => Promise<void>;
|
|
58
50
|
declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
@@ -66,7 +58,6 @@ declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
|
66
58
|
sendActionExecutionEnd(): void;
|
|
67
59
|
sendActionExecution(actionExecutionId: string, toolName: string, args: string): void;
|
|
68
60
|
sendActionExecutionResult(actionExecutionId: string, actionName: string, result: string): void;
|
|
69
|
-
sendAgentMessage(threadId: string, agentName: string, nodeName: string, state: string, running: boolean): void;
|
|
70
61
|
}
|
|
71
62
|
declare class RuntimeEventSource {
|
|
72
63
|
private eventStream$;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from '../
|
|
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-
|
|
3
|
-
export { C as CopilotRuntimeServerInstance, a as config, c as copilotRuntimeNextJSAppRouterEndpoint, b as copilotRuntimeNextJSPagesRouterEndpoint } from '../pages-router-
|
|
1
|
+
export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from '../shared-ec6c7db5.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-675b30c6.js';
|
|
3
|
+
export { C as CopilotRuntimeServerInstance, a as config, c as copilotRuntimeNextJSAppRouterEndpoint, b as copilotRuntimeNextJSPagesRouterEndpoint } from '../pages-router-df82c666.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
|
-
import '@copilotkit/shared';
|
|
8
|
-
import '../langserve-b97a6817.js';
|
|
9
|
-
import '../index-9cfb4d1f.js';
|
|
10
|
-
import '../graphql/types/base/index.js';
|
|
11
|
-
import 'rxjs';
|
|
12
7
|
import 'graphql';
|
|
13
8
|
import 'pino';
|
|
14
9
|
import 'graphql-yoga';
|
|
10
|
+
import '@copilotkit/shared';
|
|
11
|
+
import '../langserve-a54438c6.js';
|
|
12
|
+
import '../index-aa091e3c.js';
|
|
13
|
+
import '../graphql/types/base/index.js';
|
|
14
|
+
import 'rxjs';
|
|
15
15
|
import './cloud/index.js';
|
|
16
16
|
import 'openai';
|
|
17
17
|
import '@google/generative-ai';
|