@copilotkit/runtime 1.9.2-next.9 → 1.9.3-next.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 (60) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/dist/{chunk-Z5GYTKMD.mjs → chunk-EK5RTZVJ.mjs} +225 -149
  3. package/dist/chunk-EK5RTZVJ.mjs.map +1 -0
  4. package/dist/{chunk-SMDVD4VG.mjs → chunk-KCYFFRJY.mjs} +2 -2
  5. package/dist/{chunk-4JBKY7XT.mjs → chunk-QLLV2QVK.mjs} +48 -28
  6. package/dist/chunk-QLLV2QVK.mjs.map +1 -0
  7. package/dist/{chunk-5YGKE5SN.mjs → chunk-R5D7D7YN.mjs} +2 -2
  8. package/dist/{chunk-UUXRYAB4.mjs → chunk-RCCT2GOF.mjs} +2 -2
  9. package/dist/{chunk-ALZ5H3VD.mjs → chunk-YGS5B7PN.mjs} +2 -2
  10. package/dist/{groq-adapter-172a2ca4.d.ts → groq-adapter-742818f2.d.ts} +5 -1
  11. package/dist/index.d.ts +3 -3
  12. package/dist/index.js +267 -171
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +9 -9
  15. package/dist/{langserve-fc5cac89.d.ts → langserve-3e8d0e06.d.ts} +6 -0
  16. package/dist/lib/index.d.ts +155 -5
  17. package/dist/lib/index.js +221 -168
  18. package/dist/lib/index.js.map +1 -1
  19. package/dist/lib/index.mjs +9 -9
  20. package/dist/lib/integrations/index.d.ts +3 -3
  21. package/dist/lib/integrations/index.js +11 -11
  22. package/dist/lib/integrations/index.js.map +1 -1
  23. package/dist/lib/integrations/index.mjs +8 -8
  24. package/dist/lib/integrations/nest/index.d.ts +2 -2
  25. package/dist/lib/integrations/nest/index.js +11 -11
  26. package/dist/lib/integrations/nest/index.js.map +1 -1
  27. package/dist/lib/integrations/nest/index.mjs +4 -4
  28. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  29. package/dist/lib/integrations/node-express/index.js +11 -11
  30. package/dist/lib/integrations/node-express/index.js.map +1 -1
  31. package/dist/lib/integrations/node-express/index.mjs +4 -4
  32. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  33. package/dist/lib/integrations/node-http/index.js +11 -11
  34. package/dist/lib/integrations/node-http/index.js.map +1 -1
  35. package/dist/lib/integrations/node-http/index.mjs +3 -3
  36. package/dist/service-adapters/index.d.ts +5 -4
  37. package/dist/service-adapters/index.js +47 -27
  38. package/dist/service-adapters/index.js.map +1 -1
  39. package/dist/service-adapters/index.mjs +1 -1
  40. package/dist/{shared-bd953ebf.d.ts → shared-96b46379.d.ts} +16 -18
  41. package/package.json +11 -11
  42. package/src/graphql/resolvers/copilot.resolver.ts +1 -2
  43. package/src/lib/runtime/__tests__/{copilot-runtime-trace.test.ts → copilot-runtime-error.test.ts} +27 -27
  44. package/src/lib/runtime/__tests__/mcp-tools-utils.test.ts +464 -0
  45. package/src/lib/runtime/agui-action.ts +9 -3
  46. package/src/lib/runtime/copilot-runtime.ts +112 -124
  47. package/src/lib/runtime/mcp-tools-utils.ts +84 -18
  48. package/src/lib/runtime/remote-actions.ts +6 -0
  49. package/src/service-adapters/anthropic/anthropic-adapter.ts +64 -4
  50. package/src/service-adapters/anthropic/utils.ts +3 -8
  51. package/src/service-adapters/events.ts +40 -1
  52. package/src/service-adapters/google/google-genai-adapter.ts +5 -0
  53. package/src/service-adapters/openai/openai-adapter.ts +0 -14
  54. package/tests/service-adapters/anthropic/anthropic-adapter.test.ts +172 -387
  55. package/dist/chunk-4JBKY7XT.mjs.map +0 -1
  56. package/dist/chunk-Z5GYTKMD.mjs.map +0 -1
  57. /package/dist/{chunk-SMDVD4VG.mjs.map → chunk-KCYFFRJY.mjs.map} +0 -0
  58. /package/dist/{chunk-5YGKE5SN.mjs.map → chunk-R5D7D7YN.mjs.map} +0 -0
  59. /package/dist/{chunk-UUXRYAB4.mjs.map → chunk-RCCT2GOF.mjs.map} +0 -0
  60. /package/dist/{chunk-ALZ5H3VD.mjs.map → chunk-YGS5B7PN.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,181 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.9.3-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 88ceae2: - upgrade AG-UI packages
8
+ - @copilotkit/shared@1.9.3-next.0
9
+
10
+ ## 1.9.2
11
+
12
+ ### Patch Changes
13
+
14
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
15
+ - remove request logging
16
+ - 3a7f45f: - fix: resolve agui agents only after all other endpoints
17
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
18
+
19
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
20
+
21
+ - 7ca7023: - feat: send node name to agui agent
22
+ - 54b62f0: - fix: add default schema keys for input and output of agui langgraph
23
+ - 4fd92d1: - fix: enable resolving of langgraph agents when cpk starts
24
+ - 1f4949a: - fix: remove agent discovery for agui agents
25
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
26
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
27
+ - 8e67158: - fixes gemini adapter
28
+ - 83822d2: - fix: do not show error on state loading if thread does not exist
29
+ - fe9009c: - feat(langgraph): new thread metadata
30
+ - f295375: - fix: remove all agents as tools when there is an active agent session
31
+ - fix formatting
32
+ - 9b986ba: - fix: use active interrupt from thread instead of saving to global state
33
+ - 1d1c51d: - feat: surface all errors in structured format
34
+ - dec5527: - fix: only fetch agent state for langgraph agents
35
+ - 9b81464: - fix: use latest langgraph agui
36
+ - 10345a5: - feat: structured error visibility system for streaming errors
37
+ - 8ef8199: - fix: use latest agui dependencies to include required fixes
38
+ - 20e8c3c: - fix(anthropic-adapter): resolve infinite loop caused by duplicate result messages
39
+ - 9169ad7: - feat: add onTrace handler for comprehensive debugging and observability - Add CopilotTraceEvent interfaces with rich debugging context, implement runtime-side tracing with publicApiKey gating, add UI-side error tracing, include comprehensive test coverage, and fix tsup build config to exclude test files
40
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
41
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
42
+ - Ensures consistency in how parameters are passed to the execute function across the codebase.
43
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
44
+ - Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
45
+ - fix: enhance MCP schema support for complex types and remove duplicate headers
46
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
47
+ - Updated dependencies [fac89c2]
48
+ - Updated dependencies [9169ad7]
49
+ - Updated dependencies [1d1c51d]
50
+ - Updated dependencies [10345a5]
51
+ - Updated dependencies [9169ad7]
52
+ - @copilotkit/shared@1.9.2
53
+
54
+ ## 1.9.2-next.26
55
+
56
+ ### Patch Changes
57
+
58
+ - 83822d2: - fix: do not show error on state loading if thread does not exist
59
+ - @copilotkit/shared@1.9.2-next.26
60
+
61
+ ## 1.9.2-next.25
62
+
63
+ ### Patch Changes
64
+
65
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
66
+ - remove request logging
67
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
68
+ - @copilotkit/shared@1.9.2-next.25
69
+
70
+ ## 1.9.2-next.24
71
+
72
+ ### Patch Changes
73
+
74
+ - 8ef8199: - fix: use latest agui dependencies to include required fixes
75
+ - @copilotkit/shared@1.9.2-next.24
76
+
77
+ ## 1.9.2-next.23
78
+
79
+ ### Patch Changes
80
+
81
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
82
+ - Ensures consistency in how parameters are passed to the execute function across the codebase.
83
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
84
+ - Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
85
+ - fix: enhance MCP schema support for complex types and remove duplicate headers
86
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
87
+ - @copilotkit/shared@1.9.2-next.23
88
+
89
+ ## 1.9.2-next.22
90
+
91
+ ### Patch Changes
92
+
93
+ - @copilotkit/shared@1.9.2-next.22
94
+
95
+ ## 1.9.2-next.21
96
+
97
+ ### Patch Changes
98
+
99
+ - @copilotkit/shared@1.9.2-next.21
100
+
101
+ ## 1.9.2-next.20
102
+
103
+ ### Patch Changes
104
+
105
+ - @copilotkit/shared@1.9.2-next.20
106
+
107
+ ## 1.9.2-next.19
108
+
109
+ ### Patch Changes
110
+
111
+ - 8e67158: - fixes gemini adapter
112
+ - @copilotkit/shared@1.9.2-next.19
113
+
114
+ ## 1.9.2-next.18
115
+
116
+ ### Patch Changes
117
+
118
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
119
+
120
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
121
+
122
+ - Updated dependencies [fac89c2]
123
+ - @copilotkit/shared@1.9.2-next.18
124
+
125
+ ## 1.9.2-next.17
126
+
127
+ ### Patch Changes
128
+
129
+ - 7ca7023: - feat: send node name to agui agent
130
+ - @copilotkit/shared@1.9.2-next.17
131
+
132
+ ## 1.9.2-next.16
133
+
134
+ ### Patch Changes
135
+
136
+ - fe9009c: - feat(langgraph): new thread metadata
137
+ - @copilotkit/shared@1.9.2-next.16
138
+
139
+ ## 1.9.2-next.15
140
+
141
+ ### Patch Changes
142
+
143
+ - @copilotkit/shared@1.9.2-next.15
144
+
145
+ ## 1.9.2-next.14
146
+
147
+ ### Patch Changes
148
+
149
+ - 3a7f45f: - fix: resolve agui agents only after all other endpoints
150
+ - @copilotkit/shared@1.9.2-next.14
151
+
152
+ ## 1.9.2-next.13
153
+
154
+ ### Patch Changes
155
+
156
+ - dec5527: - fix: only fetch agent state for langgraph agents
157
+ - @copilotkit/shared@1.9.2-next.13
158
+
159
+ ## 1.9.2-next.12
160
+
161
+ ### Patch Changes
162
+
163
+ - @copilotkit/shared@1.9.2-next.12
164
+
165
+ ## 1.9.2-next.11
166
+
167
+ ### Patch Changes
168
+
169
+ - 1f4949a: - fix: remove agent discovery for agui agents
170
+ - @copilotkit/shared@1.9.2-next.11
171
+
172
+ ## 1.9.2-next.10
173
+
174
+ ### Patch Changes
175
+
176
+ - 20e8c3c: - fix(anthropic-adapter): resolve infinite loop caused by duplicate result messages
177
+ - @copilotkit/shared@1.9.2-next.10
178
+
3
179
  ## 1.9.2-next.9
4
180
 
5
181
  ### Patch Changes