copilotkit 4.9.0 → 4.9.1

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 (42) hide show
  1. package/README.md +24 -0
  2. package/cli-build-info.json +7 -7
  3. package/index.js +542 -95
  4. package/onboarding/prompts/authenticate/start.md +37 -17
  5. package/onboarding/prompts/credentials/finalize-plan.md +32 -7
  6. package/onboarding/prompts/credentials/plan.md +26 -20
  7. package/onboarding/prompts/fallback/best-effort.md +10 -3
  8. package/onboarding/prompts/framework/ag2.md +2 -2
  9. package/onboarding/prompts/framework/agno.md +2 -2
  10. package/onboarding/prompts/framework/built-in.md +2 -2
  11. package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
  12. package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
  13. package/onboarding/prompts/framework/crewai-flows.md +2 -2
  14. package/onboarding/prompts/framework/deep-agents.md +2 -2
  15. package/onboarding/prompts/framework/google-adk.md +2 -2
  16. package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
  17. package/onboarding/prompts/framework/langgraph-python.md +2 -2
  18. package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
  19. package/onboarding/prompts/framework/llamaindex.md +2 -2
  20. package/onboarding/prompts/framework/mastra.md +2 -2
  21. package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
  22. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
  23. package/onboarding/prompts/framework/ms-agent-python.md +2 -2
  24. package/onboarding/prompts/framework/pydantic-ai.md +2 -2
  25. package/onboarding/prompts/framework/strands-python.md +2 -2
  26. package/onboarding/prompts/framework/strands-typescript.md +2 -2
  27. package/onboarding/prompts/frontend/angular.md +2 -2
  28. package/onboarding/prompts/frontend/nextjs.md +2 -2
  29. package/onboarding/prompts/frontend/plan.md +12 -6
  30. package/onboarding/prompts/frontend/react-native.md +2 -2
  31. package/onboarding/prompts/frontend/react-spa.md +2 -2
  32. package/onboarding/prompts/frontend/vue.md +2 -2
  33. package/onboarding/prompts/implementation/build-and-validate.md +2 -2
  34. package/onboarding/prompts/proof/complete.md +40 -14
  35. package/onboarding/prompts/proof/oss-baseline.md +3 -3
  36. package/onboarding/prompts/proof/round-trip.md +29 -17
  37. package/onboarding/prompts/subagent/inspect-repository.md +6 -1
  38. package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
  39. package/onboarding/prompts/subagent/prove-round-trip.md +27 -15
  40. package/onboarding/prompts/unsupported/no-validated-path.md +6 -5
  41. package/package.json +1 -1
  42. package/release/release-tool.js +1 -1
@@ -1,13 +1,20 @@
1
- # Complete onboarding
1
+ # Close out onboarding
2
2
 
3
3
  Report the selected framework, frontend, model, and complete round-trip evidence to the developer.
4
4
  Report the exact interaction, visible result, validation commands, and evidence locations.
5
5
 
6
6
  Do not complete onboarding without this evidence.
7
7
 
8
- Report whether the real UI was driven in a browser, using the outcome the proof subagent
8
+ Report whether the real UI was driven on this journey's own surface -- in a browser for a
9
+ web frontend, on a device for React Native -- using the outcome the proof subagent
9
10
  returned. Do not soften it and do not leave it out: a run that never drove the UI proved
10
- the agent, not the browser path, and the developer needs to know which they have.
11
+ the agent, not the surface, and the developer needs to know which they have.
12
+
13
+ **Whether this run is complete is decided by the command at the end of this prompt, not
14
+ here.** Run it before you write the summary, and let its output decide which summary you
15
+ write. A run whose surface was never driven is blocked, not complete: say so in the first
16
+ line, name the evidence the command lists as missing, and do not describe the run as
17
+ finished, working, or ready. Everything else below applies to either outcome.
11
18
 
12
19
  Report only the project this run worked in. The summary and every report below describe
13
20
  that project and nothing else. Do not name or describe a file outside the project
@@ -35,11 +42,12 @@ The handoff must include:
35
42
 
36
43
  State that the servers remain running after proof.
37
44
 
38
- If the developer permitted external feedback at the start, report each thing that slowed
39
- this run down. Send at most four reports, worst first:
45
+ Report each thing that slowed this run down. Send at most four reports, worst first. Run
46
+ the friction commands without another developer question. The CLI telemetry gate decides
47
+ whether the report is sent.
40
48
 
41
49
  ```text
42
- npx --yes copilotkit@4.9.0 onboard friction --category <slug> --cost-seconds <seconds>
50
+ npx --yes copilotkit@4.9.1 onboard friction --category <slug> --cost-seconds <seconds>
43
51
  ```
44
52
 
45
53
  Write one or two sentences on the command's standard input. Pick one category from
@@ -53,16 +61,34 @@ a failed step and not a failed onboarding run. Reword it and send it again, or m
53
61
  on. A run that proves a round trip is complete whether or not it reported friction.
54
62
 
55
63
  Tell the developer when you send a friction report. Do not quote or summarize the report
56
- unless the developer asks. If the developer did not permit feedback, do not run a friction
57
- command.
64
+ unless the developer asks. If the CLI says that telemetry is disabled or unavailable,
65
+ state that the report was not sent and continue without another question.
66
+
67
+ When the evidence is gathered, run `npx --yes copilotkit@4.9.1 onboard complete`, carrying
68
+ the surface-check outcome the proof subagent returned. Pass exactly one flag, and pass the
69
+ one that matches this journey's surface.
58
70
 
59
- When the evidence is complete, run `npx --yes copilotkit@4.9.0 onboard complete`, carrying
60
- the visual-check outcome the proof subagent returned:
71
+ For a web frontend -- React SPA, Next.js, Angular, Vue:
61
72
 
62
73
  ```text
63
- npx --yes copilotkit@4.9.0 onboard complete --visual-check <outcome>
74
+ npx --yes copilotkit@4.9.1 onboard complete --visual-check <outcome>
64
75
  ```
65
76
 
66
- The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`. The command
67
- prints what a skipped visual check leaves unverified, so pass the outcome you were given
68
- rather than the one you wanted.
77
+ The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`.
78
+
79
+ For React Native:
80
+
81
+ ```text
82
+ npx --yes copilotkit@4.9.1 onboard complete --device-check <outcome>
83
+ ```
84
+
85
+ The outcome is one of `performed`, `skipped-no-device`, or `failed`.
86
+
87
+ The two flags are not interchangeable and neither takes the other's outcomes. A browser
88
+ proves nothing about a React Native view tree, and a device capture proves nothing about
89
+ browser-origin CORS, so the flag you pass is how this run states which surface it proved.
90
+
91
+ Pass the outcome you were given rather than the one you wanted. Anything but `performed`
92
+ prints what the missing check leaves unverified and ends this run as blocked. That output
93
+ is the developer's finding, so carry it into the summary rather than restating it as a
94
+ smaller caveat.
@@ -10,11 +10,11 @@ processes and their ignored runtime files is allowed.
10
10
 
11
11
  If the subagent proves the `both-oss` predicate, keep its evidence with the plan. If it
12
12
  proves another supported starting state, record that state. In either case, run
13
- `npx --yes copilotkit@4.9.0 onboard read credentials/plan`.
13
+ `npx --yes copilotkit@4.9.1 onboard read credentials/plan`.
14
14
 
15
15
  If it cannot identify the running process safely, exposes a secret, or finds a baseline
16
16
  failure that cannot be classified, run
17
- `npx --yes copilotkit@4.9.0 onboard read unsupported/no-validated-path`.
17
+ `npx --yes copilotkit@4.9.1 onboard read unsupported/no-validated-path`.
18
18
 
19
19
  ## Baseline proof subagent brief
20
20
 
@@ -40,7 +40,7 @@ Prove the live runtime in this order:
40
40
  4. Confirm from project files that the runtime constructor passes a `runner` option rather
41
41
  than an `intelligence` option. A package, import, project file, or key is not use proof.
42
42
  5. Run
43
- `npx --yes copilotkit@4.9.0 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
43
+ `npx --yes copilotkit@4.9.1 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
44
44
  with the runtime URL or auth header options that this project needs. Require exit zero
45
45
  and the JSON `ok` field to be `true`.
46
46
  6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
@@ -11,7 +11,7 @@ Give the subagent this guide for continued-development tools:
11
11
  https://docs.copilotkit.ai/build-with-agents.md
12
12
 
13
13
  If the subagent proves the complete round trip, run
14
- `npx --yes copilotkit@4.9.0 onboard read proof/complete`. The round trip proves core success
14
+ `npx --yes copilotkit@4.9.1 onboard read proof/complete`. The round trip proves core success
15
15
  even if a continued-development tool fails. Keep the Skills and MCP results separate from
16
16
  the proof result.
17
17
 
@@ -21,7 +21,7 @@ the proof subagent to fix and prove again, at most three attempts.
21
21
 
22
22
  Route out only when the failure is not yours to fix, when the same proof still fails after
23
23
  three attempts, or when no evidence of the round trip can be produced. In those cases run
24
- `npx --yes copilotkit@4.9.0 onboard read unsupported/no-validated-path`.
24
+ `npx --yes copilotkit@4.9.1 onboard read unsupported/no-validated-path`.
25
25
 
26
26
  ## Proof subagent brief
27
27
 
@@ -52,7 +52,7 @@ safe command that stops that process. Record the frontend URL and the commands t
52
52
  both servers again.
53
53
 
54
54
  With both running, check the wiring in one command before you open a browser:
55
- `npx --yes copilotkit@4.9.0 verify --json`. Add `--runtime-url` when the runtime is not at
55
+ `npx --yes copilotkit@4.9.1 verify --json`. Add `--runtime-url` when the runtime is not at
56
56
  `http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
57
57
  alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
58
58
  that is not a pass before the browser, because a browser failure stacked on broken wiring
@@ -71,7 +71,7 @@ because the runtime reports no thread-endpoint state, the runtime predates the f
71
71
  Record that and move on — there is nothing to repair.
72
72
 
73
73
  Then prove that the agent actually runs, which is the gate for this node:
74
- `npx --yes copilotkit@4.9.0 verify --round-trip --json`. It sends one request through the
74
+ `npx --yes copilotkit@4.9.1 verify --round-trip --json`. It sends one request through the
75
75
  runtime and reads the answer back from the thread, so it separates an agent that is
76
76
  configured from an agent that works. Use `--agent <id>` when the runtime declares more
77
77
  than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
@@ -109,20 +109,32 @@ by one.
109
109
  Address a local agent by host name rather than by an IP literal. Some local agents bind
110
110
  IPv6 only, so an IPv4 literal fails against the correct port.
111
111
 
112
- Drive the real UI in a browser whenever your environment can, and make sure that the
113
- frontend receives working generative UI from the agent. Prefer this: it is the only step
114
- that covers realtime delivery to a browser, browser-origin CORS and CSP, the frontend
115
- provider being wired to this runtime, and a generative UI component actually rendering,
116
- and no command-line check reaches any of them.
112
+ Drive the real UI on this journey's own surface, and make sure that the frontend receives
113
+ working generative UI from the agent. This is the step that covers realtime delivery, the
114
+ frontend provider being wired to this runtime, and a generative UI component actually
115
+ rendering, and no command-line check reaches any of them. It is not optional polish: a run
116
+ that skips it has proven the agent and not the journey, and the graph ends such a run as
117
+ blocked rather than complete.
117
118
 
118
- Use a browser MCP server already configured for the coding agent you are running as, the
119
- same way the CopilotKit documentation MCP server below is configured. Do not add a browser
120
- driver to this project: a devDependency and a browser download land in the diff and tax a
121
- repository that never asked for one. If nothing in your environment can drive a
122
- browser, skip this step rather than installing one, and never report a visual result you
123
- did not see.
119
+ For a web frontend, that surface is a browser, and it also covers browser-origin CORS and
120
+ CSP, which a CLI request never exercises. Use a browser MCP server already configured for
121
+ the coding agent you are running as, the same way the CopilotKit documentation MCP server
122
+ below is configured. Do not add a browser driver to this project: a devDependency and a
123
+ browser download land in the diff and tax a repository that never asked for one. If nothing
124
+ in your environment can drive a browser, skip this step rather than installing one.
124
125
 
125
- Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for this step.
126
+ Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for a web
127
+ frontend.
128
+
129
+ For React Native, that surface is a device or emulator, and a browser cannot stand in for
130
+ it. Run the app on a booted emulator, drive the same request, and capture the terminal
131
+ state with `adb exec-out screencap -p`. Read `adb logcat` as well: a redbox is a runtime
132
+ failure the terminal output never shows. If no device or emulator is available, skip this
133
+ step rather than substituting a browser.
134
+
135
+ Report exactly one of `performed`, `skipped-no-device`, or `failed` for React Native.
136
+
137
+ Never report a result you did not see, on either surface.
126
138
 
127
139
  Record the input, visible result, relevant process status, and evidence locations. Do not
128
140
  return secret values.
@@ -155,4 +167,4 @@ command rather than running them one at a time. Split a command only when its re
155
167
  what you run next.
156
168
 
157
169
  Return the proof or the exact failed step to the main coding agent, together with the
158
- visual-check outcome. Stop after you return the result.
170
+ surface-check outcome and which surface it speaks for. Stop after you return the result.
@@ -8,6 +8,10 @@ Inspect the repository without changing it. Find evidence for:
8
8
  - current CopilotKit packages and configuration
9
9
  - authentication boundaries
10
10
  - names of required credential variables, without reading their values
11
+ - package manager and lockfile
12
+ - required toolchains and their installed versions
13
+ - declared ports and whether each port is available
14
+ - CopilotKit package versions and package compatibility risks
11
15
 
12
16
  A project states what it is for in its `README.md`, in its package description, or in
13
17
  the prompt of an agent it already has. Quote that statement rather than rewriting it. An
@@ -16,7 +20,8 @@ evidence. State the purpose as unproved when the project never says.
16
20
 
17
21
  Gather what you need in as few commands as possible. Combine independent reads into one
18
22
  command rather than running them one at a time. Split a command only when its result decides
19
- what you run next.
23
+ what you run next. Keep this preflight read-only. Do not install packages, stop processes,
24
+ or change a port. Check only the toolchains and ports that repository files require.
20
25
 
21
26
  Return the file paths and a short finding for each item. State each absent or unproved item.
22
27
  Do not read, print, or return secret values. Do not read a file outside the project
@@ -16,7 +16,7 @@ Prove the live runtime in this order:
16
16
  4. Confirm from project files that the runtime constructor passes a `runner` option rather
17
17
  than an `intelligence` option. A package, import, project file, or key is not use proof.
18
18
  5. Run
19
- `npx --yes copilotkit@4.9.0 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
19
+ `npx --yes copilotkit@4.9.1 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
20
20
  with the runtime URL or auth header options that this project needs. Require exit zero
21
21
  and the JSON `ok` field to be `true`.
22
22
  6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
@@ -21,7 +21,7 @@ safe command that stops that process. Record the frontend URL and the commands t
21
21
  both servers again.
22
22
 
23
23
  With both running, check the wiring in one command before you open a browser:
24
- `npx --yes copilotkit@4.9.0 verify --json`. Add `--runtime-url` when the runtime is not at
24
+ `npx --yes copilotkit@4.9.1 verify --json`. Add `--runtime-url` when the runtime is not at
25
25
  `http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
26
26
  alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
27
27
  that is not a pass before the browser, because a browser failure stacked on broken wiring
@@ -40,7 +40,7 @@ because the runtime reports no thread-endpoint state, the runtime predates the f
40
40
  Record that and move on — there is nothing to repair.
41
41
 
42
42
  Then prove that the agent actually runs, which is the gate for this node:
43
- `npx --yes copilotkit@4.9.0 verify --round-trip --json`. It sends one request through the
43
+ `npx --yes copilotkit@4.9.1 verify --round-trip --json`. It sends one request through the
44
44
  runtime and reads the answer back from the thread, so it separates an agent that is
45
45
  configured from an agent that works. Use `--agent <id>` when the runtime declares more
46
46
  than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
@@ -78,20 +78,32 @@ by one.
78
78
  Address a local agent by host name rather than by an IP literal. Some local agents bind
79
79
  IPv6 only, so an IPv4 literal fails against the correct port.
80
80
 
81
- Drive the real UI in a browser whenever your environment can, and make sure that the
82
- frontend receives working generative UI from the agent. Prefer this: it is the only step
83
- that covers realtime delivery to a browser, browser-origin CORS and CSP, the frontend
84
- provider being wired to this runtime, and a generative UI component actually rendering,
85
- and no command-line check reaches any of them.
81
+ Drive the real UI on this journey's own surface, and make sure that the frontend receives
82
+ working generative UI from the agent. This is the step that covers realtime delivery, the
83
+ frontend provider being wired to this runtime, and a generative UI component actually
84
+ rendering, and no command-line check reaches any of them. It is not optional polish: a run
85
+ that skips it has proven the agent and not the journey, and the graph ends such a run as
86
+ blocked rather than complete.
86
87
 
87
- Use a browser MCP server already configured for the coding agent you are running as, the
88
- same way the CopilotKit documentation MCP server below is configured. Do not add a browser
89
- driver to this project: a devDependency and a browser download land in the diff and tax a
90
- repository that never asked for one. If nothing in your environment can drive a
91
- browser, skip this step rather than installing one, and never report a visual result you
92
- did not see.
88
+ For a web frontend, that surface is a browser, and it also covers browser-origin CORS and
89
+ CSP, which a CLI request never exercises. Use a browser MCP server already configured for
90
+ the coding agent you are running as, the same way the CopilotKit documentation MCP server
91
+ below is configured. Do not add a browser driver to this project: a devDependency and a
92
+ browser download land in the diff and tax a repository that never asked for one. If nothing
93
+ in your environment can drive a browser, skip this step rather than installing one.
93
94
 
94
- Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for this step.
95
+ Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for a web
96
+ frontend.
97
+
98
+ For React Native, that surface is a device or emulator, and a browser cannot stand in for
99
+ it. Run the app on a booted emulator, drive the same request, and capture the terminal
100
+ state with `adb exec-out screencap -p`. Read `adb logcat` as well: a redbox is a runtime
101
+ failure the terminal output never shows. If no device or emulator is available, skip this
102
+ step rather than substituting a browser.
103
+
104
+ Report exactly one of `performed`, `skipped-no-device`, or `failed` for React Native.
105
+
106
+ Never report a result you did not see, on either surface.
95
107
 
96
108
  Record the input, visible result, relevant process status, and evidence locations. Do not
97
109
  return secret values.
@@ -124,4 +136,4 @@ command rather than running them one at a time. Split a command only when its re
124
136
  what you run next.
125
137
 
126
138
  Return the proof or the exact failed step to the main coding agent, together with the
127
- visual-check outcome. Stop after you return the result.
139
+ surface-check outcome and which surface it speaks for. Stop after you return the result.
@@ -18,12 +18,13 @@ Mark each step that the selected pages do not prove. Do not treat the documentat
18
18
  proof that the requested integration is unsupported.
19
19
 
20
20
  After the developer approves the best-effort plan, run
21
- `npx --yes copilotkit@4.9.0 onboard read fallback/best-effort`.
21
+ `npx --yes copilotkit@4.9.1 onboard read fallback/best-effort`.
22
22
 
23
- If the developer permitted external feedback at the start, you can send one short report:
23
+ Send one short report. Run the feedback command without another developer question. The
24
+ CLI telemetry gate decides whether the report is sent.
24
25
 
25
26
  ```text
26
- npx --yes copilotkit@4.9.0 onboard feedback
27
+ npx --yes copilotkit@4.9.1 onboard feedback
27
28
  ```
28
29
 
29
30
  Write the feedback message to the command's standard input, in at most four lines.
@@ -31,5 +32,5 @@ Send no secrets, source code, logs, or command output. The command refuses a rep
31
32
  that carries any of those, prints the reason, and exits zero. A refused report is not
32
33
  a failed step. Reword it and send it again, or stop without a report. The command
33
34
  prints what it sent. This is the channel for a stop. Report friction only from a run that
34
- finished, never from here. If the developer did not permit feedback, do not run the
35
- command.
35
+ finished, never from here. If the CLI says that telemetry is disabled or unavailable,
36
+ state that the report was not sent and stop without another question.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilotkit",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14695,7 +14695,7 @@ import * as path4 from "node:path";
14695
14695
 
14696
14696
  // apps/cli/src/config.ts
14697
14697
  function getTemplateRef() {
14698
- return true ? "bf2068734bcc42b9dc9999b183d0fd07a673f713" : "main";
14698
+ return true ? "2ad03320fe1f0834b138113fffe791781e5b226e" : "main";
14699
14699
  }
14700
14700
 
14701
14701
  // apps/cli/src/services/agentcore-config.ts