@copilotkit/runtime 1.5.12-next.4 → 1.5.12-next.5
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 +7 -0
- package/dist/{chunk-U3DYEEGJ.mjs → chunk-MFDRA3BJ.mjs} +6 -6
- package/dist/{chunk-U3DYEEGJ.mjs.map → chunk-MFDRA3BJ.mjs.map} +1 -1
- package/dist/{chunk-6PZWWJ32.mjs → chunk-NORCONUM.mjs} +2 -2
- package/dist/{chunk-53ZLUGHX.mjs → chunk-QDMAQO2C.mjs} +2 -2
- package/dist/{chunk-CLGKEUOA.mjs → chunk-TPTCSIAR.mjs} +6 -4
- package/dist/chunk-TPTCSIAR.mjs.map +1 -0
- package/dist/{chunk-FOUJ36SV.mjs → chunk-XRW7ZSWJ.mjs} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.js +6 -6
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.d.ts +5 -4
- package/dist/service-adapters/index.js +6 -3
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +3 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +3 -3
- package/src/service-adapters/{experimental/empty → empty}/empty-adapter.ts +6 -4
- package/src/service-adapters/index.ts +1 -1
- package/dist/chunk-CLGKEUOA.mjs.map +0 -1
- /package/dist/{chunk-6PZWWJ32.mjs.map → chunk-NORCONUM.mjs.map} +0 -0
- /package/dist/{chunk-53ZLUGHX.mjs.map → chunk-QDMAQO2C.mjs.map} +0 -0
- /package/dist/{chunk-FOUJ36SV.mjs.map → chunk-XRW7ZSWJ.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-QDMAQO2C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XRW7ZSWJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NORCONUM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
buildSchema,
|
|
@@ -20,9 +20,10 @@ import {
|
|
|
20
20
|
getCommonConfig,
|
|
21
21
|
langGraphPlatformEndpoint,
|
|
22
22
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MFDRA3BJ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AnthropicAdapter,
|
|
26
|
+
EmptyAdapter,
|
|
26
27
|
ExperimentalEmptyAdapter,
|
|
27
28
|
ExperimentalOllamaAdapter,
|
|
28
29
|
GoogleGenerativeAIAdapter,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
OpenAIAssistantAdapter,
|
|
33
34
|
RemoteChain,
|
|
34
35
|
UnifyAdapter
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TPTCSIAR.mjs";
|
|
36
37
|
import {
|
|
37
38
|
GuardrailsValidationFailureResponse,
|
|
38
39
|
MessageStreamInterruptedResponse,
|
|
@@ -47,6 +48,7 @@ import "reflect-metadata";
|
|
|
47
48
|
export {
|
|
48
49
|
AnthropicAdapter,
|
|
49
50
|
CopilotRuntime,
|
|
51
|
+
EmptyAdapter,
|
|
50
52
|
ExperimentalEmptyAdapter,
|
|
51
53
|
ExperimentalOllamaAdapter,
|
|
52
54
|
GoogleGenerativeAIAdapter,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO;","names":[]}
|
package/dist/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.12-next.
|
|
47
|
+
version: "1.5.12-next.5",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1203,16 +1203,16 @@ var GroqAdapter = class {
|
|
|
1203
1203
|
};
|
|
1204
1204
|
__name(GroqAdapter, "GroqAdapter");
|
|
1205
1205
|
|
|
1206
|
-
// src/service-adapters/
|
|
1206
|
+
// src/service-adapters/empty/empty-adapter.ts
|
|
1207
1207
|
var import_shared6 = require("@copilotkit/shared");
|
|
1208
|
-
var
|
|
1208
|
+
var EmptyAdapter = class {
|
|
1209
1209
|
async process(request) {
|
|
1210
1210
|
return {
|
|
1211
1211
|
threadId: request.threadId || (0, import_shared6.randomId)()
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
|
-
__name(
|
|
1215
|
+
__name(EmptyAdapter, "EmptyAdapter");
|
|
1216
1216
|
|
|
1217
1217
|
// src/service-adapters/events.ts
|
|
1218
1218
|
var import_shared9 = require("@copilotkit/shared");
|
|
@@ -2859,8 +2859,8 @@ var CopilotRuntime = class {
|
|
|
2859
2859
|
if (agentSession) {
|
|
2860
2860
|
return await this.processAgentRequest(request);
|
|
2861
2861
|
}
|
|
2862
|
-
if (serviceAdapter instanceof
|
|
2863
|
-
throw new Error(`Invalid adapter configuration:
|
|
2862
|
+
if (serviceAdapter instanceof EmptyAdapter) {
|
|
2863
|
+
throw new Error(`Invalid adapter configuration: EmptyAdapter is only meant to be used with agent lock mode.
|
|
2864
2864
|
For non-agent components like useCopilotChatSuggestions, CopilotTextarea, or CopilotTask,
|
|
2865
2865
|
please use an LLM adapter instead.`);
|
|
2866
2866
|
}
|