copilotkit 4.9.2 → 4.9.17

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 (47) hide show
  1. package/README.md +13 -12
  2. package/cli-build-info.json +8 -8
  3. package/index.js +1879 -685
  4. package/onboarding/index.json +15 -0
  5. package/onboarding/prompts/authenticate/start.md +180 -71
  6. package/onboarding/prompts/conversion/plan.md +103 -0
  7. package/onboarding/prompts/credentials/finalize-plan.md +105 -135
  8. package/onboarding/prompts/credentials/plan.md +42 -25
  9. package/onboarding/prompts/fallback/best-effort.md +107 -16
  10. package/onboarding/prompts/framework/ag2.md +8 -19
  11. package/onboarding/prompts/framework/agno.md +12 -20
  12. package/onboarding/prompts/framework/built-in.md +4 -14
  13. package/onboarding/prompts/framework/claude-sdk-python.md +8 -18
  14. package/onboarding/prompts/framework/claude-sdk-typescript.md +10 -20
  15. package/onboarding/prompts/framework/crewai-flows.md +31 -27
  16. package/onboarding/prompts/framework/deep-agents.md +10 -20
  17. package/onboarding/prompts/framework/google-adk.md +4 -16
  18. package/onboarding/prompts/framework/langgraph-fastapi.md +4 -16
  19. package/onboarding/prompts/framework/langgraph-python.md +4 -16
  20. package/onboarding/prompts/framework/langgraph-typescript.md +4 -16
  21. package/onboarding/prompts/framework/llamaindex.md +8 -19
  22. package/onboarding/prompts/framework/mastra.md +4 -16
  23. package/onboarding/prompts/framework/ms-agent-dotnet.md +19 -50
  24. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +24 -36
  25. package/onboarding/prompts/framework/ms-agent-python.md +4 -16
  26. package/onboarding/prompts/framework/pydantic-ai.md +27 -26
  27. package/onboarding/prompts/framework/strands-python.md +9 -18
  28. package/onboarding/prompts/framework/strands-typescript.md +10 -18
  29. package/onboarding/prompts/frontend/angular.md +22 -19
  30. package/onboarding/prompts/frontend/nextjs.md +6 -16
  31. package/onboarding/prompts/frontend/plan.md +9 -14
  32. package/onboarding/prompts/frontend/react-native.md +11 -14
  33. package/onboarding/prompts/frontend/react-spa.md +5 -15
  34. package/onboarding/prompts/frontend/vue.md +12 -14
  35. package/onboarding/prompts/implementation/build-and-validate.md +61 -101
  36. package/onboarding/prompts/proof/complete.md +24 -5
  37. package/onboarding/prompts/proof/oss-baseline.md +15 -50
  38. package/onboarding/prompts/proof/round-trip.md +96 -271
  39. package/onboarding/prompts/starter/clone.md +4 -4
  40. package/onboarding/prompts/subagent/create-plan.md +49 -11
  41. package/onboarding/prompts/subagent/implement-and-validate.md +71 -51
  42. package/onboarding/prompts/subagent/inspect-repository.md +38 -9
  43. package/onboarding/prompts/subagent/prove-oss-baseline.md +2 -1
  44. package/onboarding/prompts/subagent/prove-round-trip.md +154 -51
  45. package/onboarding/prompts/unsupported/no-validated-path.md +10 -2
  46. package/package.json +1 -1
  47. package/release/release-tool.js +1 -1
@@ -1,290 +1,115 @@
1
1
  # Prove the user journey
2
2
 
3
- Do not do the proof work yourself. Spawn one proof subagent.
4
-
5
- Give the subagent the full text of the proof brief at the end of this prompt, the selected
6
- framework, frontend, model, approved plan, selected documentation URLs, and validation
7
- evidence.
3
+ Do not do the proof work yourself. Spawn one proof subagent. Tell it to run
4
+ `npx --yes copilotkit@4.9.17 onboard read subagent/prove-round-trip` first and follow the
5
+ prompt it returns. If that read fails because the subagent cannot use the shell, stop that
6
+ subagent. Run the same command yourself, then spawn a fresh subagent with the returned prompt
7
+ and the same handoff. Give it the selected framework, frontend, model, approved plan, selected
8
+ documentation URLs, and validation evidence. Give it the documentation policy recorded during
9
+ framework selection or conversion planning. On a conversion, also give it the frozen
10
+ criterion. Give it the protected path list.
8
11
 
9
12
  Give it the browser or device control you recorded in the preflight as well. The subagent
10
13
  drives the surface and cannot see your environment, so without that finding it spends the
11
14
  step discovering what you already know. A subagent told it has no control for the surface
12
15
  this frontend needs reports the skip outcome rather than looking for a way around it.
13
16
 
14
- Wait for the subagent to finish.
15
-
16
17
  Give the subagent this guide for continued-development tools:
17
18
  https://docs.copilotkit.ai/build-with-agents.md
18
19
 
19
- If the subagent proves the complete round trip, run
20
- `npx --yes copilotkit@4.9.2 onboard read proof/complete`. The round trip proves core success
21
- even if a continued-development tool fails. Keep the Skills and MCP results separate from
22
- the proof result.
20
+ Wait for the subagent to finish.
23
21
 
24
- If the round trip fails, decide which kind of failure it is before you route. A failure
25
- caused by a file this run created or changed is a defect in the new work. Send it back to
26
- the proof subagent to fix and prove again, at most three attempts.
22
+ For every protected-path audit in this prompt, run
23
+ `npx --yes copilotkit@4.9.17 onboard audit` from the target app directory. If its result
24
+ starts with `Status: blocked`, report the printed reason and use the route-out rules below.
25
+ A blocked audit proved nothing changed and is not a preservation failure. If a
26
+ protected-path audit reports a changed path, use the route-out rules below. Never repair,
27
+ reset, or revert a protected path.
28
+
29
+ If the proof result starts with `Status: passed`, run the protected-path audit. Continue to
30
+ `proof/complete` only if that audit passes. After the audit passes, run
31
+ `npx --yes copilotkit@4.9.17 onboard read proof/complete`. A performed surface outcome with
32
+ the full round trip is core success even if a continued-development tool fails. A skipped
33
+ surface outcome still enters `proof/complete` so the CLI records the blocked result. Do not
34
+ describe a skipped surface as proved. Keep the Skills and MCP results separate from the proof
35
+ result.
36
+
37
+ If the round trip proves and something after it blocks this run anyway -- the managed
38
+ Intelligence dashboard, the debugging surface, or a capability the approved plan already
39
+ excluded for this framework -- read `proof/complete` all the same, with the command above,
40
+ and carry the blocker there with `--blocked-by`.
41
+ The stop terminal is for a journey this release cannot carry. It is
42
+ not for a journey that worked and then hit a wall: routing a proved run there tells the
43
+ developer that a framework and frontend that just worked are unsupported, and hands them a
44
+ stop report instead of the application they now have.
45
+
46
+ If the round trip fails, decide which kind of failure it is before you route. The proof
47
+ subagent can repair only project-owned processes, ports, and request options. A failure caused
48
+ by a source, configuration, dependency, or tracked-file change is a defect in the new work.
49
+
50
+ Retry the proof subagent only for a project-owned process, port, or request-option failure.
51
+ Give it the failure evidence and the failed attempt's pinned Step 1 record. Wait for the
52
+ proof subagent after each operational repair.
53
+ If the result passes, use the passed-result route above. Retry a failed result at most three
54
+ times. Use the route-out rules below for a blocked or third failed result.
55
+
56
+ Enter the code-repair branch only for a source, configuration, dependency, or tracked-file
57
+ defect.
58
+
59
+ If the starter shortcut created the selected path, spawn one repair subagent. Give it the
60
+ failed step, proof evidence, generated path list, selected framework, frontend, model, exact
61
+ target app directory, documentation, and policy.
62
+ Require it to change only files that the starter command generated. Do not read or return
63
+ secret values. Require its result to start with `Status: passed`, `Status: failed`, or
64
+ `Status: blocked`, followed by Files changed, Validation, and Blockers. Otherwise, send the
65
+ defect to the implementation subagent that validated the planned implementation path. Give it
66
+ the approved plan and proof evidence. Treat the worker that gets the defect as the repair worker.
67
+ Give the repair worker the protected path list. Do not let a generated or repaired path
68
+ overlap a protected path.
69
+
70
+ Require the full validation list to pass again. Wait for the repair worker to finish.
71
+ Continue only if its result starts with `Status: passed`. If the repair worker returns
72
+ `Status: failed`, retry the repair with its evidence. Run the protected-path audit after the
73
+ repair passes. Send the full validation list to the validator for the selected path. Use the
74
+ implementation worker for a planned implementation path. Use the repair worker for a starter
75
+ path. Wait for the validator to finish. If its result starts with `Status: passed`, continue.
76
+ If the validator returns `Status: failed`, return its evidence to the repair
77
+ worker. Repeat repair and validation at most three times. If either worker returns
78
+ `Status: blocked`, use the route-out rules below.
79
+
80
+ Run the protected-path audit again after validation passes. Continue only if its result
81
+ starts with `Status: passed`.
82
+
83
+ Restart each project-owned process changed by the repair. Then spawn a fresh proof subagent
84
+ with the full original proof handoff, failed proof evidence, and new validation evidence.
85
+ This handoff includes the plan, documentation, policy, current process IDs, ports,
86
+ surface-control state, the continued-tools guide, and the failed attempt's pinned Step 1
87
+ record. Carry that record so the second attempt sends the request the first one failed on.
88
+ A fresh subagent given the plan alone writes its own request where the plan named none, and
89
+ its grounding check then speaks about a question the failed attempt never asked.
90
+ Wait for the fresh proof subagent to finish.
91
+ If the fresh proof result starts with `Status: passed`, run the protected-path audit and use
92
+ the passed-result route above. If it starts with `Status: failed`, begin the next bounded
93
+ repair cycle. Use the route-out rules below for `Status: blocked`. Stop after three repair
94
+ and proof cycles.
27
95
 
28
96
  Route out only when the failure is not yours to fix, when the same proof still fails after
29
97
  three attempts, or when no evidence of the round trip can be produced. In those cases run
30
- `npx --yes copilotkit@4.9.2 onboard read unsupported/no-validated-path`.
31
-
32
- ## Proof subagent brief
33
-
34
- Everything below the rule is the subagent's prompt. Give it verbatim.
35
-
36
- ---
37
-
38
- # Prove the complete round trip
39
-
40
- Use the proof steps and documentation URLs from the approved plan. Fetch every selected
41
- URL in one step before you start, rather than one after another.
42
- Do not use remembered CopilotKit instructions.
43
-
44
- Run the steps below in the order they appear. They are the proof. Do not design a
45
- different sequence of your own, and do not drop a step because an earlier one looked
46
- convincing. Step 6 has a web form and a React Native form: run the one that matches this
47
- journey's frontend, and run only that one.
48
-
49
- Record the result of every step as you go. A step with nothing recorded did not happen.
50
- Write each captured file to `.copilotkit/proof/` inside the project and name the path in
51
- the record. That directory holds regenerable evidence rather than application code. Where
52
- a browser or device tool writes to a location of its own, keep that location and record
53
- it instead.
54
-
55
- A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
56
- not a fact about the page. Retrieve the same URL a second way before you judge it. Run
57
- `curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
58
- documentation gap only after a second method also fails.
59
-
60
- Gather what you need in as few commands as possible. Combine independent reads into one
61
- command rather than running them one at a time. Split a command only when its result decides
62
- what you run next.
63
-
64
- ## Step 1 -- Read what the proof needs
98
+ `npx --yes copilotkit@4.9.17 onboard read unsupported/no-validated-path`. All three are
99
+ about the round trip itself. A round trip that proved is not one of them, whatever failed
100
+ after it.
65
101
 
66
- Read all of this from the approved plan in one pass, before you start anything:
102
+ If you stop here without taking that route -- a repair cycle you cannot finish, a limit in
103
+ your own harness, a run that has run out -- send one short report before you stop.
104
+ Run the feedback command without another developer question. The CLI telemetry gate decides
105
+ whether the report is sent.
67
106
 
68
- - the exact request to send through the frontend, in the words the plan gave it,
69
- - the user-visible result that request has to produce,
70
- - the expected agent id,
71
- - where the project's own data lives, and which entities the answer has to name,
72
- - the start command for the agent and for the frontend, from the plan where it named
73
- one and from the project's own scripts otherwise,
74
- - the runtime URL.
75
-
76
- Where the plan named no request, write one that produces the outcome the plan named, and
77
- record the request you wrote. Every later step uses these words unchanged, so that the
78
- browser, the device, and the grounding check all speak about one request.
79
-
80
- ## Step 2 -- Start the agent and the frontend
81
-
82
- Read the port the developer's agent already serves from this project's own configuration.
83
- Do not assume a default, and do not start a second copy of an agent this project is
84
- already running. Before you bind any new server, check that the port is free and pick
85
- another one if it is not. Record every port you used.
86
-
87
- The table names what each frontend's own scaffolder writes, for recognizing a port in a
88
- started process's output. The project's configuration wins over the table.
89
-
90
- | Frontend | Dev server the scaffolder writes |
91
- | ------------ | -------------------------------- |
92
- | Next.js | `next dev`, port 3000 |
93
- | React SPA | Vite, port 5173 |
94
- | Vue 3 | Vite, port 5173 |
95
- | Angular | `ng serve`, port 4200 |
96
- | React Native | Metro, port 8081 |
97
-
98
- Where this project's runtime runs as a process of its own, the frontend documentation
99
- puts it on port 8200. Use the runtime URL from step 1 rather than that number.
100
-
101
- Start each server in the background with the project's own script. Then wait for it to
102
- answer rather than for a fixed number of seconds:
103
-
104
- ```bash
105
- ready=
106
- for _ in $(seq 90); do
107
- curl -fs -o /dev/null "<url>" && ready=1 && break
108
- sleep 1
109
- done
110
- [ "$ready" = 1 ] && echo "up" || echo "no answer from <url> after 90 seconds"
107
+ ```text
108
+ npx --yes copilotkit@4.9.17 onboard feedback
111
109
  ```
112
110
 
113
- Read the loop's own last line rather than assuming it ended because the server answered.
114
- A server that never answered has written the reason to its own output, and reading that
115
- output is faster than starting it again.
116
-
117
- Leave the agent and frontend servers running after proof. Record each process ID and a
118
- safe command that stops that process. Record the frontend URL and the commands that start
119
- both servers again.
120
-
121
- ## Step 3 -- Identify the process that answered
122
-
123
- Before you trust the agent, confirm that the process answering is the one in this
124
- repository. `verify` reports which agents the runtime declares and has nothing to compare
125
- them against, and `--round-trip` proves an agent answers under the declared id without
126
- proving which deployment did, so this comparison is yours. A health endpoint that returns
127
- success proves only that something listens on
128
- that port. An agent from earlier work often still holds it, and a stale process answers
129
- as though it were the new one. Ask the running agent which graph or agent id it serves
130
- and compare that with the id declared in this project.
131
-
132
- If they do not match, find out whose process it is before you signal anything.
133
- `lsof -ti :<port> -sTCP:LISTEN` gives the process id, and `lsof -a -p <pid> -d cwd` gives
134
- the directory it runs in. Stop it only when that directory is inside this project, and
135
- stop its children before the parent so nothing survives by reparenting. A holder outside
136
- this project belongs to other work: leave it running, report it, and bind to another port.
137
- Never stop a process because its command line matches a name. One `pkill` pattern reaches
138
- every project on the machine and takes down work that has nothing to do with this run.
139
- Never continue against a process you cannot identify, and never report a round trip proven
140
- by one.
141
-
142
- Address a local agent by host name rather than by an IP literal. Some local agents bind
143
- IPv6 only, so an IPv4 literal fails against the correct port.
144
-
145
- ## Step 4 -- Check the wiring
146
-
147
- With both running, check the wiring in one command before you open a browser:
148
- `npx --yes copilotkit@4.9.2 verify --json`. Add `--runtime-url` when the runtime is not at
149
- `http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
150
- alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
151
- that is not a pass before the browser, because a browser failure stacked on broken wiring
152
- costs a round of debugging to reach an answer this command already gave.
153
-
154
- Treat `intelligence_consumed` as the check that matters most here. A journey that finishes
155
- with the Intelligence credential never read looks complete and proves nothing about the
156
- paid surface. `api_key_authenticates` passing beside it says the key is real and the
157
- runtime never used it.
158
-
159
- `intelligence_thread_routes` fails when the runtime reports a license but serves no
160
- thread routes, which means saved Threads cannot load in a browser. The usual cause is a
161
- handler mounted `mode: "single-route"`: remove that option so the handler serves its full
162
- route set, and mount it at a catch-all route. If instead that check is `undetermined`
163
- because the runtime reports no thread-endpoint state, the runtime predates the field.
164
- Record that and move on -- there is nothing to repair.
165
-
166
- ## Step 5 -- Prove that the agent runs
167
-
168
- Run `npx --yes copilotkit@4.9.2 verify --round-trip --json`. It sends one request through
169
- the runtime and reads the answer back from the thread, so it separates an agent that is
170
- configured from an agent that works. Use `--agent <id>` when the runtime declares more
171
- than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
172
- session the CLI does not carry: pass what it reads with `--header "Name: value"` and run
173
- it again, because an auth-gated app refusing an unauthenticated caller is that app
174
- working. Do not continue until this passes, and never report a round trip proven without
175
- it.
176
-
177
- ## Step 6 -- Drive the surface
178
-
179
- Now send one real request through the running frontend, on this journey's own surface.
180
- Make sure that the request passes through CopilotKit and reaches the selected agent, and
181
- that the frontend receives working generative UI from the agent. This is the step that
182
- covers realtime delivery, the frontend provider being wired to this runtime, and a
183
- generative UI component actually rendering, and no command-line check reaches any of them.
184
- It is not optional polish: a run that skips it has proven the agent and not the journey,
185
- and the graph ends such a run as blocked rather than complete.
186
-
187
- Use the surface control the main coding agent recorded for your environment. Do not add a
188
- browser driver or a device tool to this project: a devDependency and a browser download
189
- land in the diff and tax a repository that never asked for one. If nothing in your
190
- environment can drive the surface this journey needs, skip this step rather than
191
- installing one, and report the skip outcome named below.
192
-
193
- Never report a result you did not see, on either surface.
194
-
195
- ### Step 6a -- Web frontends: React SPA, Next.js, Angular, Vue 3
196
-
197
- The surface is a browser, and it also covers browser-origin CORS and CSP, which a CLI
198
- request never exercises. Use a browser MCP server already configured for the coding agent
199
- you are running as, the same way step 9 configures the CopilotKit documentation MCP
200
- server.
201
-
202
- 1. Open the frontend URL from step 2 and wait for the page to finish loading.
203
- 2. Take one page snapshot. Record whether the CopilotKit surface is on the page. A page
204
- that renders without it is a wiring failure rather than a proof to retry.
205
- 3. Read the browser console before you type anything, and record every error already
206
- there. An error at this point belongs to page load rather than to the request.
207
- 4. Enter the step 1 request into the CopilotKit input, in the words step 1 recorded, and
208
- submit it.
209
- 5. Wait for the assistant turn to finish rather than for a fixed number of seconds. The
210
- turn is finished when the streamed text stops growing and the generative UI component
211
- has rendered.
212
- 6. Take one screenshot of the finished turn and record where you wrote it.
213
- 7. Read the browser console a second time, and record every error that step 3 did not
214
- already list. Those belong to the request.
215
- 8. Read the network requests. Record every request the page made to the runtime endpoint
216
- and the status each returned. An answer on the page with no successful request to this
217
- runtime behind it came from something else, and that is a failed proof rather than a
218
- passing one.
219
- 9. Record one line for the finished turn: the time, the page URL, the element you read
220
- the answer from, and what that element showed.
221
-
222
- Report exactly one of `performed`, `skipped-no-browser-tool`, or `failed` for a web
223
- frontend.
224
-
225
- ### Step 6b -- React Native
226
-
227
- The surface is a device or emulator, and a browser cannot stand in for it.
228
-
229
- 1. List the booted devices in one command: `adb devices -l`. With no booted device this
230
- step is `skipped-no-device`. Do not substitute a browser.
231
- 2. Build and install the app on the booted device with the project's own script, which
232
- an Expo or React Native CLI project names in `package.json`.
233
- 3. Clear the log buffer before the request: `adb logcat -c`.
234
- 4. Open the CopilotKit surface in the running app and enter the step 1 request, in the
235
- words step 1 recorded.
236
- 5. Wait for the assistant turn to finish rather than for a fixed number of seconds.
237
- 6. Capture the terminal state with
238
- `adb exec-out screencap -p > .copilotkit/proof/surface.png`, and record that path.
239
- 7. Read the log for the request with `adb logcat -d -t 500`. A redbox is a runtime failure
240
- the terminal state never shows.
241
- 8. Record one line for the finished turn: the time, the platform, the device id, the
242
- screen you were on, and what that screen showed.
243
-
244
- An Android emulator reaches a runtime on the host machine at `10.0.2.2` rather than at
245
- `localhost`. A request that fails against the runtime with nothing in the runtime's own
246
- log is that, rather than a broken runtime.
247
-
248
- Report exactly one of `performed`, `skipped-no-device`, or `failed` for React Native.
249
-
250
- ## Step 7 -- Check the answer against the project's data
251
-
252
- Where the answer is meant to be about data the project holds, check it against that data.
253
- Read the entities the project holds -- the ids, names, or records the answer claims to
254
- describe -- and confirm the answer names those and no others. Record the entities you
255
- compared. Where the outcome of this journey references no project data, record that
256
- instead, and do not invent a comparison to pass this step.
257
-
258
- An answer that renders correctly over entities the project does not hold looks the same as
259
- a correct one in a browser, in a screenshot, and in a video, so this comparison is the only
260
- stage that separates them. An answer that names an entity the project does not hold is a
261
- failed proof, not a passing one. Find which of these it is before you change anything: the
262
- project's data never reaches the agent, the agent receives it and its instructions ignore
263
- it, the page loads its data after the context was registered, or the run wired a different
264
- source than the page renders. Fix that cause, then prove again.
265
-
266
- ## Step 8 -- Compare with the recorded OSS baseline
267
-
268
- Run this step only for a recorded `both-oss` starting state. Compare the final round trip
269
- with the recorded OSS baseline. The same frontend request must still reach the same agent
270
- and produce the same kind of user-visible result. The runtime must now report
271
- `licenseStatus`, and the authenticated Intelligence checks must pass. Record both before
272
- and after evidence.
273
-
274
- ## Step 9 -- Set up the continued-development tools
275
-
276
- Fetch the continued-development guide from the main coding agent with the proof
277
- documentation. Try the continued-development tools after the application passes proof.
278
- Use it to install the project-scoped CopilotKit Skills.
279
- Use it to configure the CopilotKit documentation MCP server for the current coding agent.
280
-
281
- Do not validate whether the Skills or MCP server installed correctly. Record the command
282
- result for each attempt. Report each tool result separately. A tool error does not change
283
- the proof result.
284
-
285
- ## Step 10 -- Return the result
286
-
287
- Return the proof or the exact failed step to the main coding agent, together with the
288
- input, the visible result, the relevant process status, the evidence locations, the
289
- surface-check outcome, and which surface that outcome speaks for. Do not return secret
290
- values. Stop after you return the result.
111
+ Write at most four lines to standard input: the step you stopped at and what stopped it.
112
+ Send no secrets, source code, logs, or command output. The command refuses a report that
113
+ carries any of those, prints the reason, and exits zero. A refused report is not a failed
114
+ step. Report friction only from a run that finished, never from a stop. A run that dies in
115
+ this phase is the one this graph most needs to hear about and the one it hears from least.
@@ -36,7 +36,7 @@ instruction in this prompt.
36
36
 
37
37
  If the developer did not name an Intelligence project, list the available projects:
38
38
 
39
- `npx --yes copilotkit@4.9.2 project list --json`
39
+ `npx --yes copilotkit@4.9.17 project list --json`
40
40
 
41
41
  Ask the developer to select a project or give a name for a new project. If the developer
42
42
  already gave this answer, do not ask again. Do not read a secret value. Do not show or
@@ -46,7 +46,7 @@ Run the command from the parent directory. Do not inspect another entry in the p
46
46
  directory. Replace each placeholder with the recorded value. Do not run a placeholder as
47
47
  a shell argument.
48
48
 
49
- `npx --yes copilotkit@4.9.2 init --name <project-name> --framework <framework-id> --channel none --no-banner --project <slug-or-id> --install`
49
+ `npx --yes copilotkit@4.9.17 init --name <project-name> --framework <framework-id> --channel none --no-banner --project <slug-or-id> --install`
50
50
 
51
51
  If the developer wants a new project, use `--create <name>` instead of
52
52
  `--project <slug-or-id>`. If the developer asked to skip the dependency install, use
@@ -60,8 +60,8 @@ account. The command does not need terminal input.
60
60
  If the command succeeds, do not rebuild the starter by hand. Inspect only the generated
61
61
  paths inside the target directory. Record the files, install result, project connection,
62
62
  and validation commands. Then run
63
- `npx --yes copilotkit@4.9.2 onboard read proof/round-trip`.
63
+ `npx --yes copilotkit@4.9.17 onboard read proof/round-trip`.
64
64
 
65
65
  If the command fails, report its exact error and do not claim that the starter is ready.
66
66
  Then run
67
- `npx --yes copilotkit@4.9.2 onboard read unsupported/no-validated-path`.
67
+ `npx --yes copilotkit@4.9.17 onboard read unsupported/no-validated-path`.
@@ -1,20 +1,13 @@
1
1
  # Create the onboarding plan
2
2
 
3
3
  Use the selected framework, frontend, model, repository findings, and documentation URLs
4
- from the main coding agent. Fetch every selected URL in one step rather than one after
5
- another. Do not use remembered CopilotKit instructions.
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.
4
+ from the main coding agent. Follow the documentation policy it gives you.
11
5
 
12
6
  Name the application the project asks for, and plan that application. Each documentation
13
7
  page teaches through one worked example, and that example carries a domain of its own.
14
- The domain belongs to the page. The project's purpose from the repository findings
15
- decides what gets built. Where the two differ, the project wins. Where the repository
16
- never states a purpose, say so in the plan and ask the developer before you adopt the
17
- domain of an example.
8
+ The domain belongs to the page. Use the purpose from the repository findings, or the
9
+ developer outcome if the repository purpose was unproved. Do not ask for it again. Where
10
+ the documentation example differs from that purpose, the project wins.
18
11
 
19
12
  Read only inside the project directory. Answer an API question from the documentation
20
13
  URLs you were given, not from another checkout on this machine.
@@ -80,6 +73,50 @@ Create one plan for implementation, validation, and proof. Name each file or are
80
73
  change. Name the commands that can validate the result.
81
74
  Name the commands or user path that prove a real generative-UI round trip.
82
75
 
76
+ The terminal is one component rendered through this frontend's own registration -- the
77
+ `useComponent` hook, or Angular's `registerComponent` -- over entities the project holds.
78
+ Plan that component: name it, name the fields it shows, and name which of the project's own
79
+ records fill them. Do not plan a declarative A2UI card unless the developer asks for one:
80
+ the terminal needs no renderer package and nothing added to the agent, because the tool is
81
+ declared by the frontend and forwarded over AG-UI.
82
+
83
+ A prose answer is not the terminal. The structure is what the grounding comparison reads: a
84
+ component with named fields can be checked field by field against the records the project
85
+ holds, and that comparison is the only thing separating a correct answer from a confident
86
+ invented one.
87
+
88
+ For a recorded `both-oss` starting state, plan no generative-UI component. The terminal is
89
+ the baseline request still working over the same frontend, the runtime now constructed
90
+ with `intelligence`, and the thread that request creates listed in this frontend's threads
91
+ drawer. A `both-oss` project already has its user-visible result. The conversion preserves
92
+ that result rather than replacing it with a new one, and a generative-UI component added
93
+ here is work the developer did not ask for.
94
+
95
+ Plan the threads drawer itself: add it from the selected drawer page, where this frontend
96
+ does not already render one. Where this journey's frontend framework ships no threads
97
+ drawer -- React Native --, plan that the thread is proved in the managed Intelligence
98
+ dashboard instead.
99
+
100
+ ## Order the plan into steps
101
+
102
+ Create one ordered list of implementation steps. For each step, name the outcome, the exact
103
+ files or directories it changes, its validation commands, and the steps it depends on.
104
+
105
+ One implementation subagent runs every step in that order. Do not split the steps across
106
+ concurrent subagents, and do not plan a separate step to reconcile a split.
107
+
108
+ Use the protected path list you were given. It is the baseline the CLI captured, not a
109
+ list to re-derive: a path you leave out of it is not protected, and a path you add to it
110
+ is not in the baseline the audit reads. Do not name a protected path as a path a step
111
+ changes. Do not name a path that overlaps a protected path. The paths overlap when they are
112
+ equal or either path is an ancestor directory on a path-segment boundary. `apps/a` overlaps
113
+ `apps/a/src`, but not `apps/ab`. `app.ts` does not overlap `app.tsx`. If the plan needs
114
+ one, return `Status: blocked` before approval.
115
+ Return the protected path list as part of the plan.
116
+
117
+ Keep final validation and proof outside the implementation steps. The developer approves
118
+ one plan.
119
+
83
120
  Keep a production build out of the validation commands. A type check plus the real round
84
121
  trip is the proof, and the round trip runs in development mode. Name the production build
85
122
  as a follow-up for the developer instead. Never raise a bundle budget or relax a lint rule
@@ -95,5 +132,6 @@ Gather what you need in as few commands as possible. Combine independent reads i
95
132
  command rather than running them one at a time. Split a command only when its result decides
96
133
  what you run next.
97
134
 
135
+ Start with `Status: passed`, `Status: failed`, or `Status: blocked`.
98
136
  Return the plan, the URLs that you read, and each documentation gap. Stop after you return
99
137
  the findings to the main coding agent.