@copilotkit/runtime 1.4.1-pre.2 → 1.4.1-pre.6
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 +41 -3
- package/__snapshots__/schema/schema.graphql +8 -0
- package/dist/{chunk-2QIJQ6YS.mjs → chunk-SFC4IZY3.mjs} +24 -4
- package/dist/chunk-SFC4IZY3.mjs.map +1 -0
- package/dist/{chunk-L3CCF3GA.mjs → chunk-TIWN7W7O.mjs} +2 -2
- package/dist/{chunk-UAHCJ2F4.mjs → chunk-WCQG2CHA.mjs} +2 -2
- package/dist/{chunk-6WTF7IML.mjs → chunk-WWJRLGPB.mjs} +2 -2
- package/dist/{copilot-runtime-335a610d.d.ts → copilot-runtime-12e7ac40.d.ts} +2 -2
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/{groq-adapter-b6c2b7ec.d.ts → groq-adapter-24abe931.d.ts} +1 -1
- package/dist/{index-83ee522f.d.ts → index-10b1c870.d.ts} +6 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-cc06e76e.d.ts → langserve-f021ab9c.d.ts} +2 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +23 -3
- 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 +19 -2
- 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 +19 -2
- 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 +19 -2
- 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 +19 -2
- 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 +4 -4
- package/src/graphql/inputs/action.input.ts +4 -1
- package/src/graphql/resolvers/copilot.resolver.ts +4 -2
- package/src/graphql/types/enums.ts +11 -0
- package/src/lib/runtime/copilot-runtime.ts +5 -1
- package/dist/chunk-2QIJQ6YS.mjs.map +0 -1
- /package/dist/{chunk-L3CCF3GA.mjs.map → chunk-TIWN7W7O.mjs.map} +0 -0
- /package/dist/{chunk-UAHCJ2F4.mjs.map → chunk-WCQG2CHA.mjs.map} +0 -0
- /package/dist/{chunk-6WTF7IML.mjs.map → chunk-WWJRLGPB.mjs.map} +0 -0
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.4.1-pre.
|
|
47
|
+
version: "1.4.1-pre.6",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -165,6 +165,12 @@ var CopilotRequestType;
|
|
|
165
165
|
CopilotRequestType2["TextareaPopover"] = "TextareaPopover";
|
|
166
166
|
CopilotRequestType2["Suggestion"] = "Suggestion";
|
|
167
167
|
})(CopilotRequestType || (CopilotRequestType = {}));
|
|
168
|
+
var ActionInputAvailability;
|
|
169
|
+
(function(ActionInputAvailability2) {
|
|
170
|
+
ActionInputAvailability2["disabled"] = "disabled";
|
|
171
|
+
ActionInputAvailability2["enabled"] = "enabled";
|
|
172
|
+
ActionInputAvailability2["remote"] = "remote";
|
|
173
|
+
})(ActionInputAvailability || (ActionInputAvailability = {}));
|
|
168
174
|
(0, import_type_graphql.registerEnumType)(MessageRole, {
|
|
169
175
|
name: "MessageRole",
|
|
170
176
|
description: "The role of the message"
|
|
@@ -177,6 +183,10 @@ var CopilotRequestType;
|
|
|
177
183
|
name: "CopilotRequestType",
|
|
178
184
|
description: "The type of Copilot request"
|
|
179
185
|
});
|
|
186
|
+
(0, import_type_graphql.registerEnumType)(ActionInputAvailability, {
|
|
187
|
+
name: "ActionInputAvailability",
|
|
188
|
+
description: "The availability of the frontend action"
|
|
189
|
+
});
|
|
180
190
|
|
|
181
191
|
// src/graphql/types/base/index.ts
|
|
182
192
|
var import_type_graphql2 = require("type-graphql");
|
|
@@ -394,6 +404,7 @@ var ActionInput = class {
|
|
|
394
404
|
name;
|
|
395
405
|
description;
|
|
396
406
|
jsonSchema;
|
|
407
|
+
available;
|
|
397
408
|
};
|
|
398
409
|
__name(ActionInput, "ActionInput");
|
|
399
410
|
_ts_decorate3([
|
|
@@ -408,6 +419,12 @@ _ts_decorate3([
|
|
|
408
419
|
(0, import_type_graphql4.Field)(() => String),
|
|
409
420
|
_ts_metadata3("design:type", String)
|
|
410
421
|
], ActionInput.prototype, "jsonSchema", void 0);
|
|
422
|
+
_ts_decorate3([
|
|
423
|
+
(0, import_type_graphql4.Field)(() => ActionInputAvailability, {
|
|
424
|
+
nullable: true
|
|
425
|
+
}),
|
|
426
|
+
_ts_metadata3("design:type", typeof ActionInputAvailability === "undefined" ? Object : ActionInputAvailability)
|
|
427
|
+
], ActionInput.prototype, "available", void 0);
|
|
411
428
|
ActionInput = _ts_decorate3([
|
|
412
429
|
(0, import_type_graphql4.InputType)()
|
|
413
430
|
], ActionInput);
|
|
@@ -1479,7 +1496,7 @@ var CopilotResolver = class {
|
|
|
1479
1496
|
const { eventSource, threadId = (0, import_shared4.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
|
|
1480
1497
|
serviceAdapter,
|
|
1481
1498
|
messages: data.messages,
|
|
1482
|
-
actions: data.frontend.actions,
|
|
1499
|
+
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
1483
1500
|
threadId: data.threadId,
|
|
1484
1501
|
runId: data.runId,
|
|
1485
1502
|
publicApiKey: void 0,
|