@copilotkit/runtime 1.2.1 → 1.2.2-feat-runtime-remote-actions.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 +26 -0
- package/__snapshots__/schema/schema.graphql +41 -0
- package/dist/{chunk-YMUS43FR.mjs → chunk-2N45GS3P.mjs} +2 -2
- package/dist/{chunk-URMISMK2.mjs → chunk-73NMP3DI.mjs} +2 -2
- package/dist/{chunk-736EEICU.mjs → chunk-BJ2LVHWA.mjs} +3 -3
- package/dist/{chunk-DMO6FA25.mjs → chunk-T6O5FSTK.mjs} +2 -2
- package/dist/{chunk-GEIBJJQ4.mjs → chunk-TBZGOJJX.mjs} +14 -2
- package/dist/chunk-TBZGOJJX.mjs.map +1 -0
- package/dist/{chunk-DYF5MUAH.mjs → chunk-X5QBBMCJ.mjs} +2 -2
- package/dist/{chunk-Q5ZTE7WH.mjs → chunk-XROLDARH.mjs} +786 -158
- package/dist/chunk-XROLDARH.mjs.map +1 -0
- package/dist/chunk-ZNZGATLW.mjs +260 -0
- package/dist/chunk-ZNZGATLW.mjs.map +1 -0
- package/dist/{shared-c5362338.d.ts → copilot-runtime-d427e991.d.ts} +65 -38
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +13 -0
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +3 -1
- package/dist/{index-aa091e3c.d.ts → index-0476e4f7.d.ts} +24 -2
- package/dist/{index-13aa818e.d.ts → index-079752b9.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +982 -245
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/{langserve-a54438c6.d.ts → langserve-d6073a3b.d.ts} +24 -11
- package/dist/lib/index.d.ts +7 -7
- package/dist/lib/index.js +982 -245
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +8 -8
- package/dist/lib/integrations/index.d.ts +6 -6
- package/dist/lib/integrations/index.js +437 -182
- 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 +437 -182
- 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 +437 -182
- 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 +437 -182
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +3 -3
- 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/package.json +7 -5
- package/src/agents/langgraph/event-source.ts +222 -0
- package/src/agents/langgraph/events.ts +309 -0
- package/src/graphql/inputs/agent-session.input.ts +13 -0
- package/src/graphql/inputs/agent-state.input.ts +10 -0
- package/src/graphql/inputs/generate-copilot-response.input.ts +11 -0
- package/src/graphql/inputs/message.input.ts +30 -0
- package/src/graphql/resolvers/copilot.resolver.ts +56 -12
- package/src/graphql/types/converted/index.ts +15 -0
- package/src/graphql/types/copilot-response.type.ts +29 -0
- package/src/graphql/types/enums.ts +1 -0
- package/src/lib/index.ts +1 -1
- package/src/lib/integrations/shared.ts +1 -1
- package/src/lib/runtime/copilot-runtime.ts +360 -0
- package/src/lib/runtime/remote-actions.ts +241 -0
- package/src/service-adapters/conversion.ts +16 -0
- package/src/service-adapters/events.ts +101 -19
- package/dist/chunk-GEIBJJQ4.mjs.map +0 -1
- package/dist/chunk-PB24CCIJ.mjs +0 -158
- package/dist/chunk-PB24CCIJ.mjs.map +0 -1
- package/dist/chunk-Q5ZTE7WH.mjs.map +0 -1
- package/src/lib/copilot-runtime.ts +0 -231
- /package/dist/{chunk-YMUS43FR.mjs.map → chunk-2N45GS3P.mjs.map} +0 -0
- /package/dist/{chunk-URMISMK2.mjs.map → chunk-73NMP3DI.mjs.map} +0 -0
- /package/dist/{chunk-736EEICU.mjs.map → chunk-BJ2LVHWA.mjs.map} +0 -0
- /package/dist/{chunk-DMO6FA25.mjs.map → chunk-T6O5FSTK.mjs.map} +0 -0
- /package/dist/{chunk-DYF5MUAH.mjs.map → chunk-X5QBBMCJ.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotRuntime,
|
|
3
3
|
flattenToolCallsNoDuplicates
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZNZGATLW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
GoogleGenerativeAIAdapter,
|
|
7
7
|
GroqAdapter,
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
OpenAIAdapter,
|
|
10
10
|
OpenAIAssistantAdapter,
|
|
11
11
|
UnifyAdapter
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-BJ2LVHWA.mjs";
|
|
13
13
|
import {
|
|
14
14
|
config,
|
|
15
15
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
16
16
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-X5QBBMCJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
copilotRuntimeNestEndpoint
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-2N45GS3P.mjs";
|
|
21
21
|
import {
|
|
22
22
|
copilotRuntimeNodeExpressEndpoint
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-T6O5FSTK.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-XROLDARH.mjs";
|
|
30
|
+
import "../chunk-73NMP3DI.mjs";
|
|
31
31
|
import "../chunk-U3V2BCGI.mjs";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-TBZGOJJX.mjs";
|
|
33
33
|
import "../chunk-RMZWGQ46.mjs";
|
|
34
34
|
import "../chunk-44O2JGUY.mjs";
|
|
35
35
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../
|
|
2
|
-
export { g as CommonConfig, b as CopilotRequestContextProperties, e as buildSchema, d as createContext, h as getCommonConfig } from '../../
|
|
1
|
+
import { c as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-d427e991.js';
|
|
2
|
+
export { g as CommonConfig, b as CopilotRequestContextProperties, e as buildSchema, d as createContext, h as getCommonConfig } from '../../copilot-runtime-d427e991.js';
|
|
3
3
|
import * as graphql_yoga from 'graphql-yoga';
|
|
4
4
|
import { YogaServerInstance } from 'graphql-yoga';
|
|
5
5
|
export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
|
|
6
6
|
export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
|
|
7
7
|
export { copilotRuntimeNestEndpoint } from './nest/index.js';
|
|
8
|
-
import 'graphql';
|
|
9
|
-
import 'pino';
|
|
10
8
|
import '@copilotkit/shared';
|
|
11
|
-
import '../../langserve-
|
|
12
|
-
import '../../index-
|
|
9
|
+
import '../../langserve-d6073a3b.js';
|
|
10
|
+
import '../../index-0476e4f7.js';
|
|
13
11
|
import '../../graphql/types/base/index.js';
|
|
14
12
|
import 'rxjs';
|
|
13
|
+
import 'graphql';
|
|
14
|
+
import 'pino';
|
|
15
15
|
import '../cloud/index.js';
|
|
16
16
|
|
|
17
17
|
declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
|