copilotkit 4.8.4 → 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 (45) hide show
  1. package/README.md +46 -5
  2. package/cli-build-info.json +7 -7
  3. package/index.js +647 -124
  4. package/onboarding/index.json +140 -1
  5. package/onboarding/prompts/authenticate/start.md +47 -10
  6. package/onboarding/prompts/credentials/finalize-plan.md +64 -14
  7. package/onboarding/prompts/credentials/plan.md +54 -16
  8. package/onboarding/prompts/fallback/best-effort.md +36 -0
  9. package/onboarding/prompts/framework/ag2.md +48 -0
  10. package/onboarding/prompts/framework/agno.md +48 -0
  11. package/onboarding/prompts/framework/built-in.md +43 -0
  12. package/onboarding/prompts/framework/claude-sdk-python.md +49 -0
  13. package/onboarding/prompts/framework/claude-sdk-typescript.md +53 -0
  14. package/onboarding/prompts/framework/crewai-flows.md +56 -0
  15. package/onboarding/prompts/framework/deep-agents.md +45 -0
  16. package/onboarding/prompts/framework/google-adk.md +8 -3
  17. package/onboarding/prompts/framework/langgraph-fastapi.md +42 -0
  18. package/onboarding/prompts/framework/langgraph-python.md +8 -3
  19. package/onboarding/prompts/framework/langgraph-typescript.md +8 -3
  20. package/onboarding/prompts/framework/llamaindex.md +51 -0
  21. package/onboarding/prompts/framework/mastra.md +8 -3
  22. package/onboarding/prompts/framework/ms-agent-dotnet.md +8 -3
  23. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +62 -0
  24. package/onboarding/prompts/framework/ms-agent-python.md +8 -3
  25. package/onboarding/prompts/framework/pydantic-ai.md +48 -0
  26. package/onboarding/prompts/framework/strands-python.md +42 -0
  27. package/onboarding/prompts/framework/strands-typescript.md +42 -0
  28. package/onboarding/prompts/frontend/angular.md +9 -3
  29. package/onboarding/prompts/frontend/nextjs.md +8 -3
  30. package/onboarding/prompts/frontend/plan.md +22 -10
  31. package/onboarding/prompts/frontend/react-native.md +9 -3
  32. package/onboarding/prompts/frontend/react-spa.md +20 -5
  33. package/onboarding/prompts/frontend/vue.md +9 -3
  34. package/onboarding/prompts/implementation/build-and-validate.md +12 -2
  35. package/onboarding/prompts/proof/complete.md +51 -16
  36. package/onboarding/prompts/proof/oss-baseline.md +59 -0
  37. package/onboarding/prompts/proof/round-trip.md +51 -24
  38. package/onboarding/prompts/subagent/create-plan.md +14 -2
  39. package/onboarding/prompts/subagent/implement-and-validate.md +10 -0
  40. package/onboarding/prompts/subagent/inspect-repository.md +6 -1
  41. package/onboarding/prompts/subagent/prove-oss-baseline.md +35 -0
  42. package/onboarding/prompts/subagent/prove-round-trip.md +46 -21
  43. package/onboarding/prompts/unsupported/no-validated-path.md +23 -9
  44. package/package.json +1 -1
  45. package/release/release-tool.js +1 -1
@@ -4,6 +4,11 @@ Use only the approved plan and the selected documentation URLs. Fetch every URL
4
4
  step, before you change the project, rather than one after another.
5
5
  Do not use remembered CopilotKit instructions.
6
6
 
7
+ A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
8
+ not a fact about the page. Retrieve the same URL a second way before you judge it. Run
9
+ `curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
10
+ documentation gap only after a second method also fails.
11
+
7
12
  Add only the props, options, and imports that appear in the fetched documentation. A
8
13
  remembered API from an earlier CopilotKit version will fail type checking against this
9
14
  release, so do not decorate a documented example with anything it does not show.
@@ -20,6 +25,11 @@ file outside the project directory: not for a credential, and not for an API que
20
25
  fetched documentation answers. A missing credential is the main coding agent's to ask
21
26
  for.
22
27
 
28
+ For a recorded `both-oss` baseline, preserve the existing agent, frontend, CopilotKit
29
+ integration, user-visible request, and runtime behavior. Do not replace the existing
30
+ persistence. Change only the approved project selection and Intelligence runtime wiring.
31
+ Run the recorded baseline checks after the change and report any regression.
32
+
23
33
  When the documentation creates the frontend with the framework's own scaffolder,
24
34
  run that scaffolder rather than hand-authoring what it emits.
25
35
  Do not re-declare a compiler option it set. Every real project of that framework
@@ -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
@@ -0,0 +1,35 @@
1
+ # Prove the existing OSS CopilotKit baseline
2
+
3
+ Read and run only inside the project directory. Do not edit source, configuration,
4
+ dependencies, or tracked files. Do not read, show, store, or return secret values.
5
+
6
+ Find the expected agent id from the project. Start the existing agent and frontend only
7
+ when they are not already running. Before using a port, identify its process and working
8
+ directory. Do not stop a process outside this project.
9
+
10
+ Prove the live runtime in this order:
11
+
12
+ 1. GET `/info` from the project's CopilotKit runtime and require a valid response.
13
+ 2. Require `/info` to declare the expected agent id.
14
+ 3. Confirm that `licenseStatus` is absent. Its presence means the live runtime uses
15
+ Intelligence and is not an OSS starting state.
16
+ 4. Confirm from project files that the runtime constructor passes a `runner` option rather
17
+ than an `intelligence` option. A package, import, project file, or key is not use proof.
18
+ 5. Run
19
+ `npx --yes copilotkit@4.9.1 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
20
+ with the runtime URL or auth header options that this project needs. Require exit zero
21
+ and the JSON `ok` field to be `true`.
22
+ 6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
23
+ agent. Require the existing user-visible result. If no browser tool is available, the
24
+ round trip is not proved and the state is `unproved`.
25
+
26
+ Classify the state as `both-oss` only when all six predicates are true: agent present,
27
+ interface present, CopilotKit present, CopilotKit round trip proven, runtime connection
28
+ `oss`, and managed Intelligence not configured. Return each predicate and its secret-safe
29
+ evidence.
30
+
31
+ The default in-memory OSS runner is ephemeral. SQLite, custom, or framework persistence
32
+ can be durable. Report the persistence that project evidence proves, or `unproved`. Do not
33
+ replace it and do not describe all OSS runs as ephemeral.
34
+
35
+ Stop after returning the baseline result, process ids and ports used, and evidence paths.
@@ -4,6 +4,11 @@ Use the proof steps and documentation URLs from the approved plan. Fetch every s
4
4
  URL in one step before you start, rather than one after another.
5
5
  Do not use remembered CopilotKit instructions.
6
6
 
7
+ A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
8
+ not a fact about the page. Retrieve the same URL a second way before you judge it. Run
9
+ `curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
10
+ documentation gap only after a second method also fails.
11
+
7
12
  Read the port the developer's agent already serves from this project's own
8
13
  configuration. Do not assume a default, and do not start a second copy of an agent this
9
14
  project is already running. Before you bind any new server, check that the port is free
@@ -11,8 +16,12 @@ and pick another one if it is not. Record every port you used.
11
16
 
12
17
  Start the agent and the selected frontend.
13
18
 
19
+ Leave the agent and frontend servers running after proof. Record each process ID and a
20
+ safe command that stops that process. Record the frontend URL and the commands that start
21
+ both servers again.
22
+
14
23
  With both running, check the wiring in one command before you open a browser:
15
- `npx copilotkit@4.8.4 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
16
25
  `http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
17
26
  alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
18
27
  that is not a pass before the browser, because a browser failure stacked on broken wiring
@@ -31,7 +40,7 @@ because the runtime reports no thread-endpoint state, the runtime predates the f
31
40
  Record that and move on — there is nothing to repair.
32
41
 
33
42
  Then prove that the agent actually runs, which is the gate for this node:
34
- `npx copilotkit@4.8.4 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
35
44
  runtime and reads the answer back from the thread, so it separates an agent that is
36
45
  configured from an agent that works. Use `--agent <id>` when the runtime declares more
37
46
  than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
@@ -43,6 +52,11 @@ it.
43
52
  Then send one real request through the frontend. Make sure that the request passes through
44
53
  CopilotKit and reaches the selected agent.
45
54
 
55
+ For a recorded `both-oss` starting state: Compare the final round trip with the recorded
56
+ OSS baseline. The same frontend request must still reach the same agent and produce the
57
+ same kind of user-visible result. The runtime must now report `licenseStatus`, and the
58
+ authenticated Intelligence checks must pass. Record both before and after evidence.
59
+
46
60
  Before you trust the agent, confirm that the process answering is the one in this
47
61
  repository. `verify` reports which agents the runtime declares and has nothing to compare
48
62
  them against, and `--round-trip` proves an agent answers under the declared id without
@@ -64,20 +78,32 @@ by one.
64
78
  Address a local agent by host name rather than by an IP literal. Some local agents bind
65
79
  IPv6 only, so an IPv4 literal fails against the correct port.
66
80
 
67
- Drive the real UI in a browser whenever your environment can, and make sure that the
68
- frontend receives working generative UI from the agent. Prefer this: it is the only step
69
- that covers realtime delivery to a browser, browser-origin CORS and CSP, the frontend
70
- provider being wired to this runtime, and a generative UI component actually rendering,
71
- 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.
87
+
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.
94
+
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.
72
103
 
73
- Use a browser MCP server already configured for the coding agent you are running as, the
74
- same way the CopilotKit documentation MCP server below is configured. Do not add a browser
75
- driver to this project: a devDependency and a browser download land in the diff and tax a
76
- repository that never asked for one. If nothing in your environment can drive a
77
- browser, skip this step rather than installing one, and never report a visual result you
78
- did not see.
104
+ Report exactly one of `performed`, `skipped-no-device`, or `failed` for React Native.
79
105
 
80
- Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for this step.
106
+ Never report a result you did not see, on either surface.
81
107
 
82
108
  Record the input, visible result, relevant process status, and evidence locations. Do not
83
109
  return secret values.
@@ -96,19 +122,18 @@ project's data never reaches the agent, the agent receives it and its instructio
96
122
  it, the page loads its data after the context was registered, or the run wired a different
97
123
  source than the page renders. Fix that cause, then prove again.
98
124
 
99
- Install the continued-development tools while you drive the round trip, not after it. The
100
- two are independent, so running them one after the other adds minutes to the journey for
101
- no reason. Fetch the continued-development guide from the main coding agent at the same
102
- time as the proof documentation.
125
+ Fetch the continued-development guide from the main coding agent with the proof
126
+ documentation. Try the continued-development tools after the application passes proof.
103
127
  Use it to install the project-scoped CopilotKit Skills.
104
128
  Use it to configure the CopilotKit documentation MCP server for the current coding agent.
105
129
 
106
- Record the installed Skills and the configured MCP server. If either tool step fails, return
107
- the exact documentation gap or error.
130
+ Do not validate whether the Skills or MCP server installed correctly. Record the command
131
+ result for each attempt. Report each tool result separately. A tool error does not change
132
+ the proof result.
108
133
 
109
134
  Gather what you need in as few commands as possible. Combine independent reads into one
110
135
  command rather than running them one at a time. Split a command only when its result decides
111
136
  what you run next.
112
137
 
113
138
  Return the proof or the exact failed step to the main coding agent, together with the
114
- 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.
@@ -1,16 +1,30 @@
1
- # No validated path in this release
1
+ # Stop without a supported path
2
2
 
3
- Stop onboarding without making more repository changes. Keep the developer's current agent,
4
- frontend, authentication, and package choices.
3
+ Keep the developer's current agent, frontend, authentication, and package choices.
5
4
 
6
5
  Explain the exact step that failed. State whether authentication, project selection, project
7
- credentials, the journey, a documentation URL, implementation, validation, or proof caused
8
- the stop. Do not invent an adapter or claim that an untested path works.
6
+ credentials, the journey, a documentation URL, implementation, validation, or the round
7
+ trip caused the route change. Do not say a path works when this release does not support it.
9
8
 
10
- If useful, send one short report:
9
+ Stop onboarding without making more repository changes by default.
10
+
11
+ The documentation-gap exception applies only before implementation starts. If implementation,
12
+ validation, or proof already started, do not use the documentation-gap exception.
13
+
14
+ If the only cause is a failed documentation URL or missing documentation, use the exception.
15
+ Tell the developer about the gap. Then make a best-effort plan from the official pages that
16
+ are available. Search the broader official CopilotKit documentation before you infer an API.
17
+ Mark each step that the selected pages do not prove. Do not treat the documentation gap as
18
+ proof that the requested integration is unsupported.
19
+
20
+ After the developer approves the best-effort plan, run
21
+ `npx --yes copilotkit@4.9.1 onboard read fallback/best-effort`.
22
+
23
+ Send one short report. Run the feedback command without another developer question. The
24
+ CLI telemetry gate decides whether the report is sent.
11
25
 
12
26
  ```text
13
- npx copilotkit@4.8.4 onboard feedback
27
+ npx --yes copilotkit@4.9.1 onboard feedback
14
28
  ```
15
29
 
16
30
  Write the feedback message to the command's standard input, in at most four lines.
@@ -18,5 +32,5 @@ Send no secrets, source code, logs, or command output. The command refuses a rep
18
32
  that carries any of those, prints the reason, and exits zero. A refused report is not
19
33
  a failed step. Reword it and send it again, or stop without a report. The command
20
34
  prints what it sent. This is the channel for a stop. Report friction only from a run that
21
- finished, never from here. Stop after the explanation or optional feedback. This
22
- unsupported outcome does not complete onboarding.
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.8.4",
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 ? "47c5510b4909f6728288ecf28d7b14cd14922d33" : "main";
14698
+ return true ? "2ad03320fe1f0834b138113fffe791781e5b226e" : "main";
14699
14699
  }
14700
14700
 
14701
14701
  // apps/cli/src/services/agentcore-config.ts