Commit Graph

202 Commits

Author SHA1 Message Date
GregoireW da558d3e8b feat(vertex): Add vertex 2026-03-18 15:36:46 -04:00
giulio-leone d423001771 fix: handle empty tool arguments without crashing
Treat empty, null, or undefined tool arguments as {} instead of throwing
a JSON parse error. Uses explicit checks (=== '' || === null || === undefined)
rather than a broad falsy check, as recommended in review.

Addresses all review feedback from jpr5:
- Added tests for wildcard tool path with empty args
- Added tests for null and undefined arguments
- Used explicit empty/null/undefined check instead of broad falsy
- Added inline comments explaining the fallback rationale
- Removed duplicate tests (TEST 7/8) from core-full.test.ts
- Removed console.log debugging statements from tests
2026-03-14 21:43:24 +01:00
github-actions[bot] ea746d4629 chore(post-release): update version to 1.54.0 2026-03-12 22:32:04 +00:00
Tyler Slaton a62a97a195 chore: release 1.54.0
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-12 18:27:53 -04:00
github-actions[bot] 98890426e5 chore(post-release): update version to 1.54.0-next.9 2026-03-12 19:08:50 +00:00
Alem Tuzlak 3780c6ae74 chore: deprecate all @copilotkitnext/* packages
Mark all publishable @copilotkitnext/* packages as deprecated in
package.json, pointing users to the @copilotkit/* equivalents.
V2 features will be available under the /v2 subpath.

Affected packages: shared, core, agent, angular, react, runtime,
sqlite-runner, web-inspector.
2026-03-12 15:05:29 -04:00
github-actions[bot] b443706792 chore(post-release): update version to 1.54.0-next.8 2026-03-12 16:52:13 +00:00
Ran Shemtov f1571ef73e chore: add changeset 2026-03-12 16:43:01 +01:00
github-actions[bot] ecd76256ed chore(post-release): update version to 1.54.0-next.7 2026-03-12 14:26:14 +00:00
Ran Shemtov eb1e0bf2f9 chore: add changeset 2026-03-12 10:56:07 +01:00
github-actions[bot] ed34d9daef chore(post-release): update version to 1.54.0-next.6 2026-03-11 16:22:53 +00:00
Maxim a042d74a77 Merge branch 'main' into claude/condescending-turing 2026-03-11 20:09:15 +04:00
github-actions[bot] e9cb7dfe26 chore(post-release): update version to 1.54.0-next.5 2026-03-11 15:20:13 +00:00
Ran Shemtov 4c0f92ac58 Merge branch 'main' into feat/a2ui-cpk-theme 2026-03-11 16:16:36 +01:00
Tyler Slaton c80498ec9a chore: add changeset 2026-03-11 17:25:19 +04:00
github-actions[bot] 190eb07f09 chore(post-release): update version to 1.54.0-next.4 2026-03-11 12:50:08 +00:00
Maxim af11b1ea57 chore: add changeset 2026-03-11 15:28:26 +04:00
github-actions[bot] 60de47cda2 chore(post-release): update version to 1.54.0-next.3 2026-03-11 11:14:53 +00:00
Tyler Slaton fa0d1cd2ea chore: minor version changeset
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-10 15:54:21 -07:00
Ran Shemtov 7916df6f74 chore: add changset 2026-03-10 12:22:20 +01:00
github-actions[bot] d2cf028903 chore(post-release): update version to 1.53.1-next.2 2026-03-07 08:47:03 +00:00
Ran Shemtov 0c90355847 Merge branch 'main' into feat/a2ui-eager-default-renderer 2026-03-07 09:34:25 +01:00
github-actions[bot] 6c4aab7d6f chore(post-release): update version to 1.53.1-next.1 2026-03-06 18:32:39 +00:00
Jordan Ritter 3d088cfec3 fix(react-textarea): restore focus to textarea on Escape in CMD+K popup (#3257)
Fixes #399

When the CopilotTextarea hovering popup (CMD+K / CTRL+K) is open and the
user presses `Escape`, the popup loses focus entirely, instead of safely
closing and returning focus to the underlying textarea.

This PR:
1. Adds an `Escape` key handler to the `HoveringInsertionPromptBoxCore`
component so the textarea can intercept the key.
2. Adds a document-level `Escape` listener to `HoveringToolbar` to
cleanly close the popup and use `ReactEditor.focus()` to restore focus
to the Slate editor.

## Testing
1. Run `textarea` example.
2. Type in the input, press `CMD+K` (or `CTRL+K`).
3. Press `Escape`. 
4. The popup closes and focus is successfully returned to the editor
input without needing an extra mouse click.
2026-03-06 14:29:02 -04:00
Ran Shemtov d746e4f5f5 chore: add changeset 2026-03-06 19:24:00 +01:00
github-actions[bot] 1fd878c582 chore(post-release): update version to 1.53.1-next.0 2026-03-06 17:10:16 +00:00
Ran Shemtov 6e0cddf232 chore: add changeset 2026-03-06 18:01:33 +01:00
github-actions[bot] 57eb016a10 chore(post-release): update version to 1.53.0 2026-03-05 23:57:25 +00:00
Tyler Slaton 52a3123d64 chore: release 1.53.0
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-05 18:46:37 -05:00
github-actions[bot] 671fd0ae47 chore(post-release): update version to 1.53.0-next.6 2026-03-05 23:41:37 +00:00
Maxim 501e8d70ae fix(runtime): skip afterRequestMiddleware when user didn't configure one
The v1 CopilotRuntime always set afterRequestMiddleware on the v2 runtime,
causing parseSSEResponse to attempt reading the cloned SSE stream body even
when no user hooks existed. This results in "Failed to read SSE response
body in afterRequestMiddleware" warnings. Only register the handler when
the user actually provided afterRequestMiddleware or middleware.onAfterRequest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 18:38:06 -05:00
github-actions[bot] 3ba2352ef8 chore(post-release): update version to 1.53.0-next.5 2026-03-05 23:06:01 +00:00
Tyler Slaton f822c051de refactor(runtime): mcp -> mcpApps w/ granular config
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-05 17:40:28 -05:00
github-actions[bot] 9f12589107 chore(post-release): update version to 1.52.2-next.4 2026-03-05 21:28:52 +00:00
Maxim ac313314be chore: add changeset
Prevents error propagation from CPK when an agent runtime
is defined but unreachable. Adds an onError callback to
CopilotChat and CopilotKitProvider.
2026-03-05 16:25:16 -05:00
github-actions[bot] 2173e89096 chore(post-release): update version to 1.52.2-next.3 2026-03-05 17:42:38 +00:00
Ran Shemtov 1510f64ec8 chore: add changeset
Enabled MCP and A2UI middleware directly from CopilotKit runtime.
2026-03-05 16:43:38 +01:00
github-actions[bot] 3ff24c8b05 chore(post-release): update version to 1.52.2-next.2 2026-03-05 10:31:34 +00:00
Maxim 8e0f94faf8 chore: add changeset for AI SDK v6 upgrade 2026-03-04 15:02:40 -05:00
github-actions[bot] 7abe7f89d1 chore(post-release): update version to 1.52.2-next.1 2026-03-03 23:59:38 +00:00
Maxim e8f8b5fc02 fix: remove docs from big-hornets-shake changeset 2026-03-03 18:56:09 -05:00
Maxim f4aabd7b65 fix: replace @copilotkitnext with @copilotkit packages in big-hornets-shake changeset 2026-03-03 18:56:09 -05:00
Maxim bda1c52b66 fix: remove ignored package from big-hornets-shake changeset 2026-03-03 18:56:09 -05:00
Maxim a9f518d77c Merge branch 'main' into fix/enums-in-convert-json-schema-to-zod-schema 2026-03-04 01:55:22 +04:00
Maxim b696313847 Merge branch 'main' into feat/after-run-middleware-callbacks 2026-03-04 01:27:33 +04:00
Maxim bf1fc6f075 chore: add changeset
Fixes an issue where `convertJsonSchemaToZodSchema` was dropping enum constraints.
2026-03-04 01:20:42 +04:00
Maxim d1f7aba45e chore: add changeset
Expose messages in afterRequestMiddleware for runtime.
2026-03-04 01:18:13 +04:00
github-actions[bot] 4b78d74e11 chore(post-release): update version to 1.52.2-next.0 2026-03-03 17:40:27 +00:00
Maxim a827813bbe Merge branch 'main' into tyler/fix-thing 2026-03-03 21:23:04 +04:00
Ran Shemtov 9d9f867e07 chore: add changeset 2026-03-02 13:48:01 +01:00