Commit Graph

60 Commits

Author SHA1 Message Date
Max Korp 9fa9de3bb1 Merge remote-tracking branch 'origin/main' into feat/intelligence-thread-plumbing 2026-03-13 11:19:25 -07:00
github-actions[bot] ea746d4629 chore(post-release): update version to 1.54.0 2026-03-12 22:32:04 +00:00
Benjamin Taylor fd81932515 feat(core): Add explicit named exports for intelligence-platform in runtime barrel 2026-03-12 13:04:26 -07:00
Benjamin Taylor 8aea0205c9 feat(runtime, client): Simplifications suggested in PR comments 2026-03-12 13:03:06 -07:00
Mike Ryan de6e4007cb feat(runtime,core): Automatic opt-in to Intelligence when an SDK is provided 2026-03-12 13:02:33 -07:00
Benjamin Taylor 209bbda853 fix(client, runtime): Remove bad merge results 2026-03-12 12:59:18 -07:00
Mike Ryan 9ce4013d84 feat(runtime,core): Automatic opt-in to Intelligence when an SDK is provided 2026-03-12 12:59:05 -07: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
github-actions[bot] ecd76256ed chore(post-release): update version to 1.54.0-next.7 2026-03-12 14:26:14 +00:00
github-actions[bot] ed34d9daef chore(post-release): update version to 1.54.0-next.6 2026-03-11 16:22:53 +00:00
github-actions[bot] e9cb7dfe26 chore(post-release): update version to 1.54.0-next.5 2026-03-11 15:20:13 +00:00
github-actions[bot] 190eb07f09 chore(post-release): update version to 1.54.0-next.4 2026-03-11 12:50:08 +00: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 26541a9268 chore(lint): run formatter on changes
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-10 15:49:34 -07:00
Alem Tuzlak ea98c8649c test: add Zod regression tests for Standard Schema migration
Adds 77 regression tests across shared, core, react, and agent packages
proving that existing Zod usage produces identical results after the
Standard Schema V1 migration. Covers JSON Schema output identity,
additionalProperties stripping, schema pass-through to AI SDK, React
hook compatibility, and complex Zod patterns (unions, discriminated
unions, nested objects, arrays, constraints, defaults, etc.).
2026-03-10 15:36:27 -07:00
Alem Tuzlak f64a815cea feat: migrate public API from Zod to Standard Schema V1
Replace Zod-specific types (z.ZodType, z.infer) with Standard Schema V1
interfaces across the V2 public API surface. This allows users to use any
Standard Schema V1 compatible library (Zod 3.24+, Valibot v1+, ArkType v2+)
for tool parameters, with zero breaking changes for existing Zod users.

- Add schemaToJsonSchema() utility in shared with Standard JSON Schema V1
  support and Zod fallback
- Update FrontendTool, ToolDefinition, useRenderTool, useComponent, and
  Angular tool types to accept StandardSchemaV1
- Move zod from dependencies to devDependencies in core and angular
- Add runtime tests (40) and type-level tests (38) across all packages
  verifying Zod, Valibot, and ArkType compatibility
2026-03-10 15:36:26 -07:00
giulio-leone 921dd1944d fix: address all 7 PR review feedback items for tool args guard
CRITICAL 1: ensureObjectArgs (renamed from safeParseToolArgs) in
run-handler.ts now throws on non-object parsed results so the catch
block fires TOOL_ARGUMENT_PARSE_FAILED structured errors.

CRITICAL 2: partialJSONParse return type reverted from
Record<string,unknown> to unknown — callers handle the type.

IMPORTANT 3: safeParseToolArgs consolidated into shared/utils.ts and
exported. Agent/index.ts imports from @copilotkitnext/shared. V1 keeps
a local copy with a comment noting it mirrors the shared version.

IMPORTANT 4: All non-object fallback sites now emit console.warn with
consistent [CopilotKit] prefix format.

IMPORTANT 5: Removed console.warn from getPartialArguments catch block
(incomplete JSON is expected during streaming). Warning is now only in
the try-block non-object guard.

TEST 6: Added run-handler-ensureObjectArgs.test.ts covering valid
object, string, number, array, null, boolean, and undefined inputs.

TEST 7: Added conversion.test.ts for v1 safeParseToolArgs covering
valid object, string, number, array, malformed JSON, null, boolean,
and empty string inputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-10 21:13:16 +01:00
Jordan Ritter ed61eefb67 fix: extend non-object tool argument guards to all parse sites
Guard partialJSONParse, both agui-to-gql converters, and
run-handler.ts against LLMs returning non-object JSON (strings,
arrays, numbers, booleans, null) as tool arguments. Adds
safeParseToolArgs helper to run-handler.ts and tests for all sites.
2026-03-09 15:10:00 +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
Ran Shem Tov a53bc556b2 feat: only add a2ui renderer when a2ui is enabled in runtime 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
Ben Taylor a5ce8abdcc feat(runtime, react): Explicit error handling and retires for IntelligenceAgent* (#3379)
<!--
Thank you for sending the PR! We appreciate you spending the time to
work on these changes.

Help us understand your motivation by explaining why you decided to make
this change.


**Please PLEASE reach out to us first before starting any significant
work on new or existing features.**

By the time you've gotten here, you're looking at creating a pull
request so hopefully we're not too late.

We love community contributions! That said, we want to make sure we're
all on the same page before you start.
Investing a lot of time and effort just to find out it doesn't align
with the upstream project feels awful, and we don't want that to happen.
It also helps to make sure the work you're planning isn't already in
progress.

As described in our contributing guide, please file an issue first:
https://github.com/ag-ui-protocol/ag-ui/issues
Or, reach out to us on Discord: https://discord.com/invite/6dffbvGU3D


You can learn more about contributing to copilotkit here:
https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md

Happy contributing!

-->

## What does this PR do?

This PR expands on reconnection and error handling for the
IntelligenceAgent and IntelligenceAgentRunner interactions with the
Phoenix lib/server, like timeouts and disconnects.

It explicitly defines exponential backoff behavior (Phoenix has default
settings, but they are silently disabled if you add error callbacks.
While that was only done in the AgentRunner to begin with, it felt
strange to leave it as a foot gun elsewhere).

There is also added logic to ensure cleanup messages are sent (at best
effort) before channels are closed.

Additionally:
* each agent run through the IntelligenceAgentRunner now gets its own
web socket connection (before, it only got its own _channel_)
* the IntelligenceAgent now stops a running agent by publishing a stop
(custom AG-UI) message to Phoenix, which is handled by the
IntelligenceAgentRunner.

## Related PRs and Issues

- https://linear.app/copilotkit/issue/ENT-54
- https://linear.app/copilotkit/issue/ENT-59

## Checklist

- [ ] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [ ] If the PR changes or adds functionality, I have updated the
relevant documentation
2026-03-05 20:38:15 -06:00
github-actions[bot] 57eb016a10 chore(post-release): update version to 1.53.0 2026-03-05 23:57:25 +00:00
github-actions[bot] 671fd0ae47 chore(post-release): update version to 1.53.0-next.6 2026-03-05 23:41:37 +00:00
github-actions[bot] 3ba2352ef8 chore(post-release): update version to 1.53.0-next.5 2026-03-05 23:06:01 +00:00
github-actions[bot] 9f12589107 chore(post-release): update version to 1.52.2-next.4 2026-03-05 21:28:52 +00:00
Benjamin Taylor b78189e008 feat(runtime, react): DRY test helper and move helper function to utils 2026-03-05 12:49:23 -06:00
github-actions[bot] 2173e89096 chore(post-release): update version to 1.52.2-next.3 2026-03-05 17:42:38 +00:00
Benjamin Taylor 8b26574a15 feat(runtime, react): Add more explicit Phoenix.js retry config and error case handling 2026-03-05 10:33:27 -06:00
Ran Shem Tov e76e5e7c11 chore: use latest agui 2026-03-05 16:43:33 +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
Ben Taylor ddea8d0f99 feat(runtime, react): Scaffold Intelligence runner and agent (#3348)
<!--
Thank you for sending the PR! We appreciate you spending the time to
work on these changes.

Help us understand your motivation by explaining why you decided to make
this change.


**Please PLEASE reach out to us first before starting any significant
work on new or existing features.**

By the time you've gotten here, you're looking at creating a pull
request so hopefully we're not too late.

We love community contributions! That said, we want to make sure we're
all on the same page before you start.
Investing a lot of time and effort just to find out it doesn't align
with the upstream project feels awful, and we don't want that to happen.
It also helps to make sure the work you're planning isn't already in
progress.

As described in our contributing guide, please file an issue first:
https://github.com/ag-ui-protocol/ag-ui/issues
Or, reach out to us on Discord: https://discord.com/invite/6dffbvGU3D


You can learn more about contributing to copilotkit here:
https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md

Happy contributing!

-->

## What does this PR do?

This PR adds an initial scaffolding of the CopilotKit Intelligence agent
runner and React agent classes.

Both will be part of the new threads-enabled feature set, and will be
iterated upon in subsequent PRs.

For this PR, the React agent is not tied into `useAgent`, so it cannot
currently be interacted with.

Also, in this PR, docs that describe the agent and runner architecture
are not updated, as it is assumed that these classes may change
substantially and rapidly in the very near term.

A big part of this PR is the integration of the Phoenix JS client SDK to
enable the IntelligenceAgent and IntelligenceAgentRunner to connect to
the Intelligence platform's Phoenix server. That allows threaded AG-UI
messages to be streamed from to and from the platform, instead of
directly from agent runner to client agent hook.

The message structure for the Phoenix connection is still in flux.

Note: while the SQLite-backed agent runner is in a separate package, the
IntelligenceAgentRunner was intentionally placed along side the
`ProxiedCopilotRuntimeAgent` to make it that much easier to switch from
the latter to the former if desired.

## Related PRs and Issues

- https://linear.app/copilotkit/issue/ENT-59
- https://linear.app/copilotkit/issue/ENT-54

## Checklist

- [x] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [ ] If the PR changes or adds functionality, I have updated the
relevant documentation
2026-03-04 14:05:17 -06:00
github-actions[bot] 7abe7f89d1 chore(post-release): update version to 1.52.2-next.1 2026-03-03 23:59:38 +00:00
Benjamin Taylor d814a36050 feat(runtime, react): Simplify expected Phoenix server message format to avoid many on() listeners 2026-03-03 17:23:52 -06:00
github-actions[bot] 4b78d74e11 chore(post-release): update version to 1.52.2-next.0 2026-03-03 17:40:27 +00:00
github-actions[bot] aeac645881 chore(post-release): update version to 1.52.1 2026-02-27 20:04:51 +00:00
Markus Ecker 39722ecbe4 Merge branch 'main' into mme/ag-ui-0.0.46 2026-02-27 15:13:22 +01:00
github-actions[bot] d523d6cc68 chore(post-release): update version to 1.52.1-next.1 2026-02-27 14:12:29 +00:00
Markus Ecker 979511a900 chore: upgrade AG-UI to 0.0.46 2026-02-27 14:47:50 +01:00
github-actions[bot] 0cf39911a0 chore(post-release): update version to 1.52.1-next.0 2026-02-27 03:53:52 +00:00
github-actions[bot] f924ecb4aa chore(post-release): update version to 1.52.0 2026-02-26 19:37:25 +00:00
github-actions[bot] a0cd2ed364 chore(post-release): update version to 1.52.0-next.8 2026-02-24 15:21:43 +00:00
github-actions[bot] 17d42682ef chore(post-release): update version to 1.52.0-next.7 2026-02-24 14:54:00 +00:00
github-actions[bot] 740d21a0aa chore(post-release): update version to 1.52.0-next.6 2026-02-21 02:42:07 +00:00
github-actions[bot] 4fc8abe886 chore(post-release): update version to 1.52.0-next.5 2026-02-21 02:20:08 +00:00
github-actions[bot] fac1c7c015 chore(post-release): update version to 1.51.5-next.4 2026-02-20 23:28:02 +00:00