copilotkit 4.19.0 → 4.21.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 (79) hide show
  1. package/README.md +46 -9
  2. package/cli-build-info.json +8 -8
  3. package/index.js +4828 -3374
  4. package/onboarding/index.json +1 -1
  5. package/onboarding/prompts/authenticate/start.md +26 -28
  6. package/onboarding/prompts/conversion/plan.md +3 -3
  7. package/onboarding/prompts/credentials/finalize-plan.md +7 -7
  8. package/onboarding/prompts/credentials/plan.md +22 -22
  9. package/onboarding/prompts/credentials/settle-credentials.md +7 -5
  10. package/onboarding/prompts/credentials/write-plan.md +9 -6
  11. package/onboarding/prompts/fallback/best-effort.md +8 -8
  12. package/onboarding/prompts/feature/a2ui/implement.md +6 -12
  13. package/onboarding/prompts/feature/a2ui/proof.md +7 -18
  14. package/onboarding/prompts/feature/a2ui/start.md +9 -18
  15. package/onboarding/prompts/feature/channels/implement.md +12 -21
  16. package/onboarding/prompts/feature/channels/proof.md +7 -18
  17. package/onboarding/prompts/feature/channels/start.md +14 -21
  18. package/onboarding/prompts/feature/chat-suggestions/implement.md +6 -12
  19. package/onboarding/prompts/feature/chat-suggestions/proof.md +7 -18
  20. package/onboarding/prompts/feature/chat-suggestions/start.md +9 -18
  21. package/onboarding/prompts/feature/complete.md +4 -2
  22. package/onboarding/prompts/feature/learning/implement.md +13 -38
  23. package/onboarding/prompts/feature/learning/proof.md +8 -19
  24. package/onboarding/prompts/feature/learning/start.md +9 -18
  25. package/onboarding/prompts/feature/open-generative-ui/implement.md +6 -12
  26. package/onboarding/prompts/feature/open-generative-ui/proof.md +7 -18
  27. package/onboarding/prompts/feature/open-generative-ui/start.md +9 -18
  28. package/onboarding/prompts/feature/realtime-sync/implement.md +7 -13
  29. package/onboarding/prompts/feature/realtime-sync/proof.md +7 -18
  30. package/onboarding/prompts/feature/realtime-sync/start.md +8 -17
  31. package/onboarding/prompts/feature/rich-threads/implement.md +8 -14
  32. package/onboarding/prompts/feature/rich-threads/proof.md +7 -18
  33. package/onboarding/prompts/feature/rich-threads/start.md +8 -17
  34. package/onboarding/prompts/feature/stop.md +3 -3
  35. package/onboarding/prompts/feature/voice/implement.md +6 -12
  36. package/onboarding/prompts/feature/voice/proof.md +7 -18
  37. package/onboarding/prompts/feature/voice/start.md +9 -18
  38. package/onboarding/prompts/framework/ag2.md +2 -2
  39. package/onboarding/prompts/framework/agno.md +2 -2
  40. package/onboarding/prompts/framework/built-in.md +2 -2
  41. package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
  42. package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
  43. package/onboarding/prompts/framework/crewai-flows.md +2 -2
  44. package/onboarding/prompts/framework/deep-agents.md +2 -2
  45. package/onboarding/prompts/framework/google-adk.md +2 -2
  46. package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
  47. package/onboarding/prompts/framework/langgraph-python.md +2 -2
  48. package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
  49. package/onboarding/prompts/framework/llamaindex.md +2 -2
  50. package/onboarding/prompts/framework/mastra.md +2 -2
  51. package/onboarding/prompts/framework/ms-agent-dotnet.md +3 -3
  52. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +3 -3
  53. package/onboarding/prompts/framework/ms-agent-python.md +2 -2
  54. package/onboarding/prompts/framework/pydantic-ai.md +2 -2
  55. package/onboarding/prompts/framework/strands-python.md +2 -2
  56. package/onboarding/prompts/framework/strands-typescript.md +2 -2
  57. package/onboarding/prompts/frontend/angular.md +3 -3
  58. package/onboarding/prompts/frontend/nextjs.md +3 -3
  59. package/onboarding/prompts/frontend/plan.md +7 -7
  60. package/onboarding/prompts/frontend/react-native.md +2 -2
  61. package/onboarding/prompts/frontend/react-spa.md +2 -2
  62. package/onboarding/prompts/frontend/vue.md +2 -2
  63. package/onboarding/prompts/implementation/build-and-validate.md +24 -40
  64. package/onboarding/prompts/proof/complete.md +86 -204
  65. package/onboarding/prompts/proof/oss-baseline.md +5 -5
  66. package/onboarding/prompts/proof/round-trip.md +9 -22
  67. package/onboarding/prompts/research/gather.md +5 -14
  68. package/onboarding/prompts/research/merge.md +2 -11
  69. package/onboarding/prompts/research/preflight.md +2 -8
  70. package/onboarding/prompts/research/route.md +5 -5
  71. package/onboarding/prompts/starter/clone.md +5 -15
  72. package/onboarding/prompts/stopped/run-failed.md +2 -2
  73. package/onboarding/prompts/subagent/create-plan.md +16 -1
  74. package/onboarding/prompts/subagent/inspect-repository.md +1 -1
  75. package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
  76. package/onboarding/prompts/subagent/prove-round-trip.md +28 -20
  77. package/onboarding/prompts/unsupported/no-validated-path.md +2 -2
  78. package/package.json +1 -1
  79. package/release/release-tool.js +9 -5
package/README.md CHANGED
@@ -242,13 +242,18 @@ copilotkit login --json
242
242
  ```
243
243
 
244
244
  The command prints JSON lines for the sign-in URL, an instruction for the
245
- machine reader, and the final result. It does not open a browser. Every JSON
246
- login URL carries the `agent_onboarding` display hint because JSON mode is the
247
- machine-readable login contract. A machine reader should open the first
248
- `authentication_url` once with the operating system's default browser, then
249
- keep reading the same process until its terminal event. If the opener fails,
250
- show the URL for manual sign-in instead of retrying it. A failed sign-in prints
251
- one final failure object and exits nonzero.
245
+ machine reader, and the final result. Every JSON login URL carries the
246
+ `agent_onboarding` display hint because JSON mode is the machine-readable login
247
+ contract.
248
+
249
+ The command opens the page in the default browser itself when a browser can be
250
+ reached. It does not try on CI, over SSH, in a container, on Linux with no
251
+ display, or when `BROWSER=none` is set. A launcher that exits with an error counts
252
+ as not opened, and the CLI does not retry it. The `action_required` record says which
253
+ happened in `browser_opened`. When it is `false`, the machine reader shows the
254
+ URL for manual sign-in. Either way, it keeps reading the same process until its
255
+ terminal event. A failed sign-in prints one final failure object and exits
256
+ nonzero.
252
257
 
253
258
  After the CLI exchanges the browser token and saves its credentials, the
254
259
  agent-onboarding callback page tries to close the tab. If the browser blocks
@@ -342,8 +347,12 @@ frontend.
342
347
  Its first prompt records the coding agent with `onboard identify`, including when
343
348
  the entry command omitted `--coding-agent`. The agent also passes `--model` with
344
349
  the exact model id its instructions name, and leaves it out when they name none.
345
- The event records a missing id as `unknown`, and the coding agent the environment
346
- shows as `detected_coding_agent`. `cli.onboarding.started` also carries
350
+ It passes `--model-family` with its model family, such as `gpt-5`, for the agent
351
+ that cannot see its exact id. The event records a missing id or family as
352
+ `unknown`, and a value that is not a model, such as a coding-agent product name,
353
+ as `unreportable`. It records the coding agent the environment shows as
354
+ `detected_coding_agent`, and sets `coding_agent_mismatch` when that agent differs
355
+ from the declared one. `cli.onboarding.started` also carries
347
356
  `detected_coding_agent`, because a run that stops before `onboard identify` sends
348
357
  no identify event. Channel setup stage events include
349
358
  the existing `onboarding_run_id` when the command runs inside an onboarding run;
@@ -1536,3 +1545,31 @@ copilotkit import --source langgraph --langgraph-snapshot native.jsonl \
1536
1545
  The destination frontend must register that catalog. This option works with all import sources and applies to every selected conversation; import applications with different defaults separately. Explicit native `catalogId` values and native A2UI operation payloads take precedence. Native tool arguments/results are preserved; the setting only controls reconstructed UI. Without the option, existing replay behavior is unchanged. Invalid empty/whitespace identifiers fail before upload. No catalog is inferred from message prose.
1537
1546
 
1538
1547
  API callers can set `replayConfig: { defaultCatalogId: "copilotkit://app-dashboard-catalog" }` on each normalized conversation. An unchanged source identity is still deduplicated: changing this option does not update an existing import. Use the existing `--replace` workflow to regenerate its imported history, after accounting for any destination changes.
1548
+
1549
+ ## Claude Managed Agents starter
1550
+
1551
+ ```bash
1552
+ copilotkit init --template claude-managed-agents
1553
+ ```
1554
+
1555
+ The command clones the Claude Managed Agents starter from CopilotKit, creates a Learning Container and runtime key in the selected Intelligence project, installs dependencies, and provisions the Anthropic agent and environment with Ant. The frontend contains the SDK thread drawer and CopilotChat with the Beautiful Chat styles. The Inspector uses the SDK defaults and is available during local development. The generated README covers daily development and links to the component docs. A separate `REFERENCE.md` covers configuration and deployment. New threads bind to the Learning Container; the starter fetches published Skill files through the Intelligence SDK, uploads them to Anthropic, and pins their native versions for each new session. Existing sessions retain their skills.
1556
+
1557
+ Requires Node.js 20.19+, Git, npm, Ant, Intelligence Learning access, and a Claude Console workspace with Managed Agents access and credits. Ant owns and refreshes its OAuth credentials; the CLI never copies them into the app. The project runtime key, container ID, and local app-user ID go into gitignored `.env.local` with private file permissions.
1558
+
1559
+ Interactive setup asks for the app directory, opens Intelligence login when needed, and uses the existing project picker to select or create a project. If Ant is missing, setup offers to install it with Homebrew or Go when either is available. Otherwise it prints both installation methods and the [Ant installation guide](https://github.com/anthropics/anthropic-cli#installation). Installation must finish with Ant available on `PATH`. Setup opens Ant login when needed and asks before starting the dev server. Between prompts, setup stops reading terminal input so Ant and npm can receive input and Ctrl-C.
1560
+
1561
+ Pass `--name my-app` to name the directory, `--project <slug>` to select a project, or `--create "Project name"` to create one. Use `--profile work` for an Ant profile, `--no-dev` to skip the dev-server offer, and `--skip-install` (or `--no-install`) to install app dependencies yourself. The destination must be a new child directory. `copilotkit with-claude [directory]` opens the same setup flow.
1562
+
1563
+ For automation, sign in to both services first, then run:
1564
+
1565
+ ```bash
1566
+ copilotkit init --template claude-managed-agents --name my-app --project your-project-slug --yes
1567
+ ```
1568
+
1569
+ With `--yes` or no terminal, setup never opens prompts, installs Ant, or starts the dev server. It requires existing logins and Ant on `PATH`. Without project flags it uses the current directory's selected Intelligence project; without a name it uses `my-claude-app`.
1570
+
1571
+ A failed install leaves the configured app in place: run `npm install`, then `npm run agent:apply`, then `npm run dev` there. Failed Ant provisioning can be retried with `npm run agent:apply`. Neither failure prints Ready. A Learning or key error stops setup and reports the remaining step; remote resources are not deleted automatically.
1572
+
1573
+ The starter listens on localhost and uses one local developer identity. Before deployment, add verified user authentication, request limits, and durable Managed Agents session mappings. Intelligence thread storage does not replace that adapter mapping.
1574
+
1575
+ Release ordering: merge the CopilotKit starter before releasing this command. The shared starter catalog includes `examples/integrations/claude-managed-agents`, so the release source gate rejects a template revision that omits it. The command uses the build-pinned CopilotKit revision, like the existing starters.
@@ -2,20 +2,20 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "copilotkit",
5
- "version": "4.19.0"
5
+ "version": "4.21.0"
6
6
  },
7
7
  "intelligence": {
8
- "commit": "76b87a74c7887974711242010d86136292a1d56f"
8
+ "commit": "83dc327eb0243ab1d5a74b9fd1496b9f8679d3df"
9
9
  },
10
10
  "copilotKit": {
11
- "submittedInput": "bb299bd0e719",
12
- "commit": "bb299bd0e71963c139b78c5bc9ac0bc0fd6d614f"
11
+ "submittedInput": "3dc45f8bdca6665af9b4cc5cecfbcb8ab057e426",
12
+ "commit": "3dc45f8bdca6665af9b4cc5cecfbcb8ab057e426"
13
13
  },
14
14
  "channel": "production",
15
- "triggeringActor": "BenTaylorDev",
15
+ "triggeringActor": "MikeRyanDev",
16
16
  "workflow": {
17
- "runId": "36608240272",
18
- "runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/36608240272"
17
+ "runId": "36646329163",
18
+ "runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/36646329163"
19
19
  },
20
20
  "validationResult": "passed",
21
21
  "ag2": {
@@ -24,5 +24,5 @@
24
24
  "revision": "main",
25
25
  "pinned": false
26
26
  },
27
- "builtAt": "2026-09-29T17:56:39Z"
27
+ "builtAt": "2026-09-29T23:41:18Z"
28
28
  }