@copilotkit/runtime 1.5.0-tyler-reset-chat.0 → 1.5.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +141 -3
  2. package/__snapshots__/schema/schema.graphql +7 -9
  3. package/dist/{chunk-K67A6XOJ.mjs → chunk-25G6SHWM.mjs} +458 -331
  4. package/dist/chunk-25G6SHWM.mjs.map +1 -0
  5. package/dist/{chunk-OKQVDDJ2.mjs → chunk-4AYRDPWK.mjs} +285 -63
  6. package/dist/chunk-4AYRDPWK.mjs.map +1 -0
  7. package/dist/{chunk-ZBG4KJW5.mjs → chunk-AFKLCW76.mjs} +2 -2
  8. package/dist/{chunk-AGSBOD2T.mjs → chunk-D6J2N5ZQ.mjs} +2 -2
  9. package/dist/{chunk-QNQ6UT3D.mjs → chunk-PIUHAIBR.mjs} +2 -2
  10. package/dist/{chunk-B74M7FXG.mjs → chunk-RFF5IIZJ.mjs} +3 -2
  11. package/dist/chunk-RFF5IIZJ.mjs.map +1 -0
  12. package/dist/{copilot-runtime-12e7ac40.d.ts → copilot-runtime-2e46a7b6.d.ts} +2 -2
  13. package/dist/graphql/types/converted/index.d.ts +1 -1
  14. package/dist/graphql/types/converted/index.js +2 -1
  15. package/dist/graphql/types/converted/index.js.map +1 -1
  16. package/dist/graphql/types/converted/index.mjs +1 -1
  17. package/dist/{groq-adapter-24abe931.d.ts → groq-adapter-7bf6824b.d.ts} +1 -1
  18. package/dist/{index-10b1c870.d.ts → index-ff3fbc33.d.ts} +7 -8
  19. package/dist/index.d.ts +5 -5
  20. package/dist/index.js +832 -480
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +15 -11
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/{langserve-f021ab9c.d.ts → langserve-f318db89.d.ts} +53 -14
  25. package/dist/lib/index.d.ts +4 -4
  26. package/dist/lib/index.js +737 -459
  27. package/dist/lib/index.js.map +1 -1
  28. package/dist/lib/index.mjs +7 -7
  29. package/dist/lib/integrations/index.d.ts +4 -4
  30. package/dist/lib/integrations/index.js +71 -30
  31. package/dist/lib/integrations/index.js.map +1 -1
  32. package/dist/lib/integrations/index.mjs +6 -6
  33. package/dist/lib/integrations/nest/index.d.ts +3 -3
  34. package/dist/lib/integrations/nest/index.js +71 -30
  35. package/dist/lib/integrations/nest/index.js.map +1 -1
  36. package/dist/lib/integrations/nest/index.mjs +4 -4
  37. package/dist/lib/integrations/node-express/index.d.ts +3 -3
  38. package/dist/lib/integrations/node-express/index.js +71 -30
  39. package/dist/lib/integrations/node-express/index.js.map +1 -1
  40. package/dist/lib/integrations/node-express/index.mjs +4 -4
  41. package/dist/lib/integrations/node-http/index.d.ts +3 -3
  42. package/dist/lib/integrations/node-http/index.js +71 -30
  43. package/dist/lib/integrations/node-http/index.js.map +1 -1
  44. package/dist/lib/integrations/node-http/index.mjs +3 -3
  45. package/dist/service-adapters/index.d.ts +36 -5
  46. package/dist/service-adapters/index.js +285 -61
  47. package/dist/service-adapters/index.js.map +1 -1
  48. package/dist/service-adapters/index.mjs +5 -1
  49. package/package.json +4 -4
  50. package/src/agents/langgraph/event-source.ts +140 -148
  51. package/src/agents/langgraph/events.ts +1 -1
  52. package/src/graphql/inputs/message.input.ts +15 -3
  53. package/src/graphql/resolvers/copilot.resolver.ts +32 -6
  54. package/src/graphql/types/converted/index.ts +4 -3
  55. package/src/graphql/types/copilot-response.type.ts +12 -3
  56. package/src/graphql/types/enums.ts +0 -11
  57. package/src/lib/runtime/copilot-runtime.ts +1 -7
  58. package/src/lib/runtime/remote-action-constructors.ts +64 -58
  59. package/src/lib/runtime/remote-actions.ts +1 -0
  60. package/src/lib/runtime/remote-lg-action.ts +184 -154
  61. package/src/service-adapters/anthropic/anthropic-adapter.ts +16 -6
  62. package/src/service-adapters/conversion.ts +2 -1
  63. package/src/service-adapters/events.ts +118 -54
  64. package/src/service-adapters/experimental/empty/empty-adapter.ts +33 -0
  65. package/src/service-adapters/experimental/ollama/ollama-adapter.ts +7 -3
  66. package/src/service-adapters/groq/groq-adapter.ts +23 -8
  67. package/src/service-adapters/index.ts +7 -1
  68. package/src/service-adapters/langchain/utils.ts +55 -32
  69. package/src/service-adapters/openai/openai-adapter.ts +22 -9
  70. package/src/service-adapters/openai/openai-assistant-adapter.ts +22 -8
  71. package/src/service-adapters/unify/unify-adapter.ts +28 -11
  72. package/dist/chunk-B74M7FXG.mjs.map +0 -1
  73. package/dist/chunk-K67A6XOJ.mjs.map +0 -1
  74. package/dist/chunk-OKQVDDJ2.mjs.map +0 -1
  75. /package/dist/{chunk-ZBG4KJW5.mjs.map → chunk-AFKLCW76.mjs.map} +0 -0
  76. /package/dist/{chunk-AGSBOD2T.mjs.map → chunk-D6J2N5ZQ.mjs.map} +0 -0
  77. /package/dist/{chunk-QNQ6UT3D.mjs.map → chunk-PIUHAIBR.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,15 +1,153 @@
1
1
  # @copilotkit/runtime
2
2
 
3
- ## 1.5.0-tyler-reset-chat.0
3
+ ## 1.5.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - Merging Markus' reset fixes with main + a new change for stopping an agent during execution of FE actions
7
+ - 1b47092: Synchronize LangGraph messages with CopilotKit
8
8
 
9
9
  ### Patch Changes
10
10
 
11
+ - 1b47092: CoAgents v0.3 prerelease
12
+ - Updated dependencies [1b47092]
13
+ - Updated dependencies [1b47092]
14
+ - @copilotkit/shared@1.5.0
15
+
16
+ ## 1.5.0-coagents-v0-3.0
17
+
18
+ ### Minor Changes
19
+
20
+ - Synchronize LangGraph messages with CopilotKit
21
+
22
+ ### Patch Changes
23
+
24
+ - e66bce4: CoAgents v0.3 prerelease
25
+ - Updated dependencies
26
+ - Updated dependencies [e66bce4]
27
+ - @copilotkit/shared@1.5.0-coagents-v0-3.0
28
+
29
+ ## 1.4.8
30
+
31
+ ### Patch Changes
32
+
33
+ - - Better error handling
34
+ - Introduce new "EmptyLLMAdapter" for when using CoAgents
35
+ - Improve dev console help options
36
+ - Allow CopilotKit remote endpoint without agents
37
+ - 989f159: - fix: allow CopilotKit Remote Endpoint without agents
38
+ - Apply suggestions from code review
39
+ - Updated dependencies
40
+ - @copilotkit/shared@1.4.8
41
+
42
+ ## 1.4.8-next.0
43
+
44
+ ### Patch Changes
45
+
46
+ - @copilotkit/shared@1.4.8-next.0
47
+
48
+ ## 1.4.7
49
+
50
+ ### Patch Changes
51
+
52
+ - Fix broken build script before release
53
+ - Updated dependencies
54
+ - @copilotkit/shared@1.4.7
55
+
56
+ ## 1.4.6
57
+
58
+ ### Patch Changes
59
+
60
+ - .
61
+
62
+ ## 1.4.5
63
+
64
+ ### Patch Changes
65
+
66
+ - testing release workflow
67
+ - Updated dependencies
68
+ - @copilotkit/shared@1.4.5
69
+
70
+ ## 1.4.5-next.0
71
+
72
+ ### Patch Changes
73
+
74
+ - testing release workflow
75
+ - Updated dependencies
76
+ - @copilotkit/shared@1.4.5-next.0
77
+
78
+ ## 1.4.4
79
+
80
+ ### Patch Changes
81
+
82
+ - 665deab: test prerelease
83
+ - 57a6012: test next prerelease automation
84
+ - 7cfc2e7: test prerelease stuff
85
+ - af36f1a: - feat(runtime): readme update
86
+ - @copilotkit/shared@1.4.4
87
+
88
+ ## 1.4.4-next.4
89
+
90
+ ### Patch Changes
91
+
92
+ - 57a6012: test next prerelease automation
93
+ - @copilotkit/shared@1.4.4-next.4
94
+
95
+ ## 1.4.4-next.3
96
+
97
+ ### Patch Changes
98
+
99
+ - 7cfc2e7: test prerelease stuff
100
+ - @copilotkit/shared@1.4.4-next.3
101
+
102
+ ## 1.4.4-next.2
103
+
104
+ ### Patch Changes
105
+
106
+ - 665deab: test prerelease
107
+ - @copilotkit/shared@1.4.4-next.2
108
+
109
+ ## 1.4.4-next.1
110
+
111
+ ### Patch Changes
112
+
113
+ - af36f1a: - feat(runtime): readme update
114
+ - @copilotkit/shared@1.4.4-next.1
115
+
116
+ ## 1.4.4-next.0
117
+
118
+ ### Patch Changes
119
+
120
+ - @copilotkit/shared@1.4.4-next.0
121
+
122
+ ## 1.4.3
123
+
124
+ ### Patch Changes
125
+
126
+ - c296282: - Better error surfacing when using LangGraph Platform streaming
127
+ - Ensure state is immediately set without using flushSync
128
+ - - Better error surfacing when using LangGraph Platform streaming
129
+ - Ensure state is immediately set without using flushSync
130
+ - Updated dependencies [c296282]
131
+ - Updated dependencies
132
+ - @copilotkit/shared@1.4.3
133
+
134
+ ## 1.4.3-pre.0
135
+
136
+ ### Patch Changes
137
+
138
+ - - Better error surfacing when using LangGraph Platform streaming
139
+ - Ensure state is immediately set without using flushSync
140
+ - Updated dependencies
141
+ - @copilotkit/shared@1.4.3-pre.0
142
+
143
+ ## 1.4.2
144
+
145
+ ### Patch Changes
146
+
147
+ - - Make sure agent state is set immediately (#1077)
148
+ - Support running an agent without messages (#1075)
11
149
  - Updated dependencies
12
- - @copilotkit/shared@1.5.0-tyler-reset-chat.0
150
+ - @copilotkit/shared@1.4.2
13
151
 
14
152
  ## 1.4.1
15
153
 
@@ -6,7 +6,8 @@
6
6
  input ActionExecutionMessageInput {
7
7
  arguments: String!
8
8
  name: String!
9
- scope: ActionExecutionScope!
9
+ parentMessageId: String
10
+ scope: String @deprecated(reason: "This field will be removed in a future version")
10
11
  }
11
12
 
12
13
  type ActionExecutionMessageOutput implements BaseMessageOutput {
@@ -14,17 +15,11 @@ type ActionExecutionMessageOutput implements BaseMessageOutput {
14
15
  createdAt: DateTimeISO!
15
16
  id: String!
16
17
  name: String!
17
- scope: ActionExecutionScope!
18
+ parentMessageId: String
19
+ scope: String @deprecated(reason: "This field will be removed in a future version")
18
20
  status: MessageStatus!
19
21
  }
20
22
 
21
- """The scope of the action"""
22
- enum ActionExecutionScope {
23
- client
24
- passThrough
25
- server
26
- }
27
-
28
23
  input ActionInput {
29
24
  available: ActionInputAvailability
30
25
  description: String!
@@ -229,6 +224,7 @@ enum ResponseStatusCode {
229
224
  input ResultMessageInput {
230
225
  actionExecutionId: String!
231
226
  actionName: String!
227
+ parentMessageId: String
232
228
  result: String!
233
229
  }
234
230
 
@@ -251,6 +247,7 @@ type SuccessResponseStatus implements BaseResponseStatus {
251
247
 
252
248
  input TextMessageInput {
253
249
  content: String!
250
+ parentMessageId: String
254
251
  role: MessageRole!
255
252
  }
256
253
 
@@ -258,6 +255,7 @@ type TextMessageOutput implements BaseMessageOutput {
258
255
  content: [String!]!
259
256
  createdAt: DateTimeISO!
260
257
  id: String!
258
+ parentMessageId: String
261
259
  role: MessageRole!
262
260
  status: MessageStatus!
263
261
  }