@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
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.4.1-pre.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1721cbd: lower case copilotkit property
|
|
8
|
+
- 1721cbd: add zod conversion
|
|
9
|
+
- 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
|
|
10
|
+
- fix assistant message CSS and propagate actions to LG JS
|
|
11
|
+
- Updated dependencies [1721cbd]
|
|
12
|
+
- Updated dependencies [1721cbd]
|
|
13
|
+
- Updated dependencies [1721cbd]
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @copilotkit/shared@1.4.1-pre.6
|
|
16
|
+
|
|
17
|
+
## 1.4.1-pre.5
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- bump
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @copilotkit/shared@1.4.1-pre.5
|
|
24
|
+
|
|
25
|
+
## 1.4.1-pre.4
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- bump
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @copilotkit/shared@1.4.1-pre.4
|
|
32
|
+
|
|
33
|
+
## 1.4.1-pre.3
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- bump
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
- @copilotkit/shared@1.4.1-pre.3
|
|
40
|
+
|
|
3
41
|
## 1.4.1-pre.2
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
6
44
|
|
|
7
|
-
-
|
|
45
|
+
- bump
|
|
8
46
|
- Updated dependencies
|
|
9
47
|
- @copilotkit/shared@1.4.1-pre.2
|
|
10
48
|
|
|
@@ -12,7 +50,7 @@
|
|
|
12
50
|
|
|
13
51
|
### Patch Changes
|
|
14
52
|
|
|
15
|
-
-
|
|
53
|
+
- bump
|
|
16
54
|
- Updated dependencies
|
|
17
55
|
- @copilotkit/shared@1.4.1-pre.1
|
|
18
56
|
|
|
@@ -20,7 +58,7 @@
|
|
|
20
58
|
|
|
21
59
|
### Patch Changes
|
|
22
60
|
|
|
23
|
-
-
|
|
61
|
+
- New prerelease
|
|
24
62
|
- Updated dependencies
|
|
25
63
|
- @copilotkit/shared@1.4.1-pre.0
|
|
26
64
|
|
|
@@ -26,11 +26,19 @@ enum ActionExecutionScope {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
input ActionInput {
|
|
29
|
+
available: ActionInputAvailability
|
|
29
30
|
description: String!
|
|
30
31
|
jsonSchema: String!
|
|
31
32
|
name: String!
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
"""The availability of the frontend action"""
|
|
36
|
+
enum ActionInputAvailability {
|
|
37
|
+
disabled
|
|
38
|
+
enabled
|
|
39
|
+
remote
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
input AgentSessionInput {
|
|
35
43
|
agentName: String!
|
|
36
44
|
nodeName: String
|
|
@@ -37,7 +37,7 @@ var require_package = __commonJS({
|
|
|
37
37
|
publishConfig: {
|
|
38
38
|
access: "public"
|
|
39
39
|
},
|
|
40
|
-
version: "1.4.1-pre.
|
|
40
|
+
version: "1.4.1-pre.6",
|
|
41
41
|
sideEffects: false,
|
|
42
42
|
main: "./dist/index.js",
|
|
43
43
|
module: "./dist/index.mjs",
|
|
@@ -153,6 +153,12 @@ var CopilotRequestType;
|
|
|
153
153
|
CopilotRequestType2["TextareaPopover"] = "TextareaPopover";
|
|
154
154
|
CopilotRequestType2["Suggestion"] = "Suggestion";
|
|
155
155
|
})(CopilotRequestType || (CopilotRequestType = {}));
|
|
156
|
+
var ActionInputAvailability;
|
|
157
|
+
(function(ActionInputAvailability2) {
|
|
158
|
+
ActionInputAvailability2["disabled"] = "disabled";
|
|
159
|
+
ActionInputAvailability2["enabled"] = "enabled";
|
|
160
|
+
ActionInputAvailability2["remote"] = "remote";
|
|
161
|
+
})(ActionInputAvailability || (ActionInputAvailability = {}));
|
|
156
162
|
registerEnumType(MessageRole, {
|
|
157
163
|
name: "MessageRole",
|
|
158
164
|
description: "The role of the message"
|
|
@@ -165,6 +171,10 @@ registerEnumType(CopilotRequestType, {
|
|
|
165
171
|
name: "CopilotRequestType",
|
|
166
172
|
description: "The type of Copilot request"
|
|
167
173
|
});
|
|
174
|
+
registerEnumType(ActionInputAvailability, {
|
|
175
|
+
name: "ActionInputAvailability",
|
|
176
|
+
description: "The availability of the frontend action"
|
|
177
|
+
});
|
|
168
178
|
|
|
169
179
|
// src/graphql/inputs/message.input.ts
|
|
170
180
|
function _ts_decorate(decorators, target, key, desc) {
|
|
@@ -347,6 +357,7 @@ var ActionInput = class {
|
|
|
347
357
|
name;
|
|
348
358
|
description;
|
|
349
359
|
jsonSchema;
|
|
360
|
+
available;
|
|
350
361
|
};
|
|
351
362
|
__name(ActionInput, "ActionInput");
|
|
352
363
|
_ts_decorate2([
|
|
@@ -361,6 +372,12 @@ _ts_decorate2([
|
|
|
361
372
|
Field2(() => String),
|
|
362
373
|
_ts_metadata2("design:type", String)
|
|
363
374
|
], ActionInput.prototype, "jsonSchema", void 0);
|
|
375
|
+
_ts_decorate2([
|
|
376
|
+
Field2(() => ActionInputAvailability, {
|
|
377
|
+
nullable: true
|
|
378
|
+
}),
|
|
379
|
+
_ts_metadata2("design:type", typeof ActionInputAvailability === "undefined" ? Object : ActionInputAvailability)
|
|
380
|
+
], ActionInput.prototype, "available", void 0);
|
|
364
381
|
ActionInput = _ts_decorate2([
|
|
365
382
|
InputType2()
|
|
366
383
|
], ActionInput);
|
|
@@ -2119,7 +2136,10 @@ var CopilotRuntime = class {
|
|
|
2119
2136
|
}));
|
|
2120
2137
|
const actionInputs = flattenToolCallsNoDuplicates([
|
|
2121
2138
|
...serverSideActionsInput,
|
|
2122
|
-
...clientSideActionsInput
|
|
2139
|
+
...clientSideActionsInput.filter(
|
|
2140
|
+
// Filter remote actions from CopilotKit core loop
|
|
2141
|
+
(action) => action.available !== ActionInputAvailability.remote
|
|
2142
|
+
)
|
|
2123
2143
|
]);
|
|
2124
2144
|
await ((_a = this.onBeforeRequest) == null ? void 0 : _a.call(this, {
|
|
2125
2145
|
threadId,
|
|
@@ -2675,7 +2695,7 @@ var CopilotResolver = class {
|
|
|
2675
2695
|
const { eventSource, threadId = randomId4(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
|
|
2676
2696
|
serviceAdapter,
|
|
2677
2697
|
messages: data.messages,
|
|
2678
|
-
actions: data.frontend.actions,
|
|
2698
|
+
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
2679
2699
|
threadId: data.threadId,
|
|
2680
2700
|
runId: data.runId,
|
|
2681
2701
|
publicApiKey: void 0,
|
|
@@ -3124,4 +3144,4 @@ export {
|
|
|
3124
3144
|
getCommonConfig,
|
|
3125
3145
|
copilotRuntimeNodeHttpEndpoint
|
|
3126
3146
|
};
|
|
3127
|
-
//# sourceMappingURL=chunk-
|
|
3147
|
+
//# sourceMappingURL=chunk-SFC4IZY3.mjs.map
|