copilotkit 4.9.60 → 4.10.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 (77) hide show
  1. package/README.md +10 -3
  2. package/cli-build-info.json +8 -8
  3. package/index.js +336 -172
  4. package/onboarding/index.json +106 -18
  5. package/onboarding/prompts/authenticate/start.md +41 -202
  6. package/onboarding/prompts/conversion/plan.md +3 -3
  7. package/onboarding/prompts/credentials/finalize-plan.md +15 -129
  8. package/onboarding/prompts/credentials/plan.md +20 -20
  9. package/onboarding/prompts/credentials/settle-credentials.md +153 -0
  10. package/onboarding/prompts/credentials/write-plan.md +93 -0
  11. package/onboarding/prompts/fallback/best-effort.md +12 -9
  12. package/onboarding/prompts/feature/a2ui/implement.md +35 -6
  13. package/onboarding/prompts/feature/a2ui/proof.md +30 -6
  14. package/onboarding/prompts/feature/a2ui/start.md +29 -6
  15. package/onboarding/prompts/feature/channels/implement.md +70 -0
  16. package/onboarding/prompts/feature/channels/proof.md +60 -0
  17. package/onboarding/prompts/feature/channels/start.md +87 -0
  18. package/onboarding/prompts/feature/chat-suggestions/implement.md +36 -6
  19. package/onboarding/prompts/feature/chat-suggestions/proof.md +30 -5
  20. package/onboarding/prompts/feature/chat-suggestions/start.md +29 -6
  21. package/onboarding/prompts/feature/complete.md +11 -0
  22. package/onboarding/prompts/feature/learning/implement.md +41 -12
  23. package/onboarding/prompts/feature/learning/proof.md +32 -6
  24. package/onboarding/prompts/feature/learning/start.md +28 -5
  25. package/onboarding/prompts/feature/open-generative-ui/implement.md +37 -6
  26. package/onboarding/prompts/feature/open-generative-ui/proof.md +30 -5
  27. package/onboarding/prompts/feature/open-generative-ui/start.md +29 -6
  28. package/onboarding/prompts/feature/realtime-sync/implement.md +36 -7
  29. package/onboarding/prompts/feature/realtime-sync/proof.md +29 -5
  30. package/onboarding/prompts/feature/realtime-sync/start.md +28 -5
  31. package/onboarding/prompts/feature/rich-threads/implement.md +37 -8
  32. package/onboarding/prompts/feature/rich-threads/proof.md +31 -5
  33. package/onboarding/prompts/feature/rich-threads/start.md +28 -5
  34. package/onboarding/prompts/feature/stop.md +17 -8
  35. package/onboarding/prompts/feature/voice/implement.md +35 -6
  36. package/onboarding/prompts/feature/voice/proof.md +30 -5
  37. package/onboarding/prompts/feature/voice/start.md +29 -6
  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 +2 -2
  52. package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
  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 +6 -6
  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 +75 -15
  64. package/onboarding/prompts/proof/complete.md +21 -8
  65. package/onboarding/prompts/proof/oss-baseline.md +6 -5
  66. package/onboarding/prompts/proof/round-trip.md +27 -14
  67. package/onboarding/prompts/research/gather.md +121 -0
  68. package/onboarding/prompts/research/route.md +81 -0
  69. package/onboarding/prompts/starter/clone.md +18 -9
  70. package/onboarding/prompts/stopped/run-failed.md +44 -0
  71. package/onboarding/prompts/subagent/create-plan.md +32 -1
  72. package/onboarding/prompts/subagent/implement-and-validate.md +9 -1
  73. package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
  74. package/onboarding/prompts/subagent/prove-round-trip.md +52 -8
  75. package/onboarding/prompts/unsupported/no-validated-path.md +9 -6
  76. package/package.json +1 -1
  77. package/release/release-tool.js +39 -3
@@ -11,18 +11,47 @@ type/test command and start the app. Confirm `/info` reports
11
11
  `audioFileTranscriptionEnabled`, but treat it as capability evidence rather than completed
12
12
  voice proof. Record changed paths and validation results.
13
13
 
14
- When implementation validation passes, report it:
14
+ After validation and each repair, run:
15
+
16
+ ```text
17
+ npx --yes copilotkit@4.10.1 onboard audit
18
+ ```
19
+
20
+ Continue only when it starts with `Status: passed`. A path under `Authorized to change:` is
21
+ not a finding. Carry it into the final summary with its reason.
22
+
23
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
24
+ with the implementation subagent's `Files changed` section. If that section does not name
25
+ the path, accept the developer's external change:
26
+
27
+ ```text
28
+ npx --yes copilotkit@4.10.1 onboard protect --accept-external --path <path>
29
+ ```
30
+
31
+ For an env file where the developer placed a requested credential, use
32
+ `onboard protect --accept-credential --path <path>` instead. If the subagent names the path,
33
+ or its report does not settle who changed it, ask the developer to allow the unplanned
34
+ change. Only after they agree, record their answer:
35
+
36
+ ```text
37
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
38
+ ```
39
+
40
+ Run the audit again after each accepted or authorized change. If it still fails, or starts
41
+ with `Status: blocked`, route out and stop:
15
42
 
16
43
  ```text
17
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase build-validated
44
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
18
45
  ```
19
46
 
20
- If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
21
- without further changes:
47
+ When implementation validation passes, report it:
22
48
 
23
49
  ```text
24
- npx --yes copilotkit@4.9.60 onboard read feature/stop
50
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase build-validated
25
51
  ```
26
52
 
53
+ If validation cannot pass, or this intent needs a prerequisite the app does not have, use
54
+ the feature stop route above without further changes.
55
+
27
56
  Otherwise run
28
- `npx --yes copilotkit@4.9.60 onboard read feature/voice/proof`.
57
+ `npx --yes copilotkit@4.10.1 onboard read feature/voice/proof`.
@@ -13,15 +13,40 @@ path, agent response, app URL, and process IDs. Fix changed-file defects and rep
13
13
  Report each attempt at the proof as it ends, counting from one:
14
14
 
15
15
  ```text
16
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase journey-attempted --attempt 1
16
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase journey-attempted --attempt 1
17
17
  ```
18
18
 
19
19
  Report each repair cycle the same way, counting from one:
20
20
 
21
21
  ```text
22
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase repair-attempted --attempt 1
22
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase repair-attempted --attempt 1
23
23
  ```
24
24
 
25
- Then run
26
- `npx --yes copilotkit@4.9.60 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
27
- with the actual surface outcome.
25
+ After the final attempt, report the gate exactly once:
26
+
27
+ ```text
28
+ npx --yes copilotkit@4.10.1 onboard proof --step round-trip --outcome <passed|failed|skipped>
29
+ ```
30
+
31
+ Use `passed` only for proved voice input, `failed` for an attempted proof that failed, and
32
+ `skipped` when the proof could not run. Then run `npx --yes copilotkit@4.10.1 onboard audit`.
33
+ Continue only when it starts with `Status: passed`.
34
+
35
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
36
+ with the proof subagent's `Files changed` section. If that section does not name the path,
37
+ run `onboard protect --accept-external --path <path>`, or
38
+ `onboard protect --accept-credential --path <path>` for an env file where the developer
39
+ placed a requested credential. If the subagent names the path, or its report does not settle
40
+ who changed it, ask the developer to allow it. Only after they agree, run
41
+ `onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"`.
42
+ Run the audit again after each accepted or authorized change.
43
+
44
+ If the audit still fails, or starts with `Status: blocked`, route out and stop:
45
+
46
+ ```text
47
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
48
+ ```
49
+
50
+ When the audit passes, run
51
+ `npx --yes copilotkit@4.10.1 onboard read feature/complete` with the actual surface
52
+ outcome.
@@ -3,17 +3,27 @@
3
3
  Treat voice as an OSS enhancement to an existing CopilotKit chat. Orchestrate with separate
4
4
  read-only, implementation, and proof subagents, each restricted to the target project.
5
5
 
6
+ Before any subagent or project process runs, capture the developer's existing work:
7
+
8
+ ```text
9
+ npx --yes copilotkit@4.10.1 onboard protect
10
+ ```
11
+
12
+ Keep the exact protected path list it prints and give that list to every subagent. No
13
+ subagent may write a protected path or an overlapping path unless this run records the
14
+ approved authorization before implementation.
15
+
6
16
  Before edits, inspect the runtime route, CopilotKit provider/chat composer, current agent,
7
17
  existing provider credential variable names (presence only), package versions, browser
8
18
  permissions approach, and test/dev commands. Prove the existing OSS baseline with `/info`,
9
- `npx --yes copilotkit@4.9.60 verify --expect-runtime oss --round-trip --agent <agent-id> --json`,
19
+ `npx --yes copilotkit@4.10.1 verify --expect-runtime oss --round-trip --agent <agent-id> --json`,
10
20
  and a real UI request when a browser is available. If that baseline is absent, change nothing
11
21
  and direct the developer to generic onboarding first.
12
22
 
13
23
  Wait for the inspection subagent to finish. Then report that the inspection came back:
14
24
 
15
25
  ```text
16
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase research-returned
26
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase research-returned
17
27
  ```
18
28
 
19
29
  A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
@@ -23,7 +33,7 @@ If the inspection did not prove the baseline this intent extends, stop here with
23
33
  changing files:
24
34
 
25
35
  ```text
26
- npx --yes copilotkit@4.9.60 onboard read feature/stop
36
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
27
37
  ```
28
38
 
29
39
  Do not run login, select Intelligence, create a credential, read a credential value, or
@@ -36,10 +46,23 @@ stop rather than writing a placeholder.
36
46
  Show a small plan for the documented transcription service, the existing composer, focused
37
47
  tests, and a microphone/canned-transcript proof. Ask for approval separately.
38
48
 
39
- After approval, report the plan this run is about to implement:
49
+ The plan must list every protected path it needs to change under `Authorization requested`,
50
+ with one sentence explaining why. Write `None` when it needs none.
51
+
52
+ After approval, record each approved path before implementation:
53
+
54
+ ```text
55
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
56
+ ```
57
+
58
+ If an approved path changed after capture and no implementation step has run, add
59
+ `--with-prior-change`. Continue only when every result starts with `Status: passed`. Do not
60
+ authorize a path the approved plan did not list.
61
+
62
+ Then report the plan this run is about to implement:
40
63
 
41
64
  ```text
42
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
65
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
43
66
  ```
44
67
 
45
- Then run `npx --yes copilotkit@4.9.60 onboard read feature/voice/implement`.
68
+ Then run `npx --yes copilotkit@4.10.1 onboard read feature/voice/implement`.
@@ -31,7 +31,7 @@ Record the selected framework, vendor, model, required credential variable names
31
31
  URLs, and the A2UI documentation gap.
32
32
 
33
33
  If the pages support the selection, run
34
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
34
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
35
35
 
36
36
  If the documentation does not support the selection, run
37
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
37
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -34,7 +34,7 @@ Record the selected framework, vendor, model, required credential variable names
34
34
  URLs, the documented dependencies and adapter, and the context documentation gap.
35
35
 
36
36
  If the pages support the selection, run
37
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
37
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
38
38
 
39
39
  If the documentation does not support the selection, run
40
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
40
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -27,7 +27,7 @@ Record the selected framework, vendor, model, required credential variable names
27
27
  these URLs.
28
28
 
29
29
  If the pages support the selection, run
30
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
30
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
31
31
 
32
32
  If the documentation does not support the selection, run
33
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
33
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -33,7 +33,7 @@ Record the selected framework, vendor, model, required credential variable names
33
33
  URLs, and the context limit.
34
34
 
35
35
  If the pages support the selection, run
36
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
36
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
37
37
 
38
38
  If the documentation does not support the selection, run
39
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
39
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -37,7 +37,7 @@ Record the selected framework, vendor, model, required credential variable names
37
37
  URLs, and the context limit.
38
38
 
39
39
  If the pages support the selection, run
40
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
40
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
41
41
 
42
42
  If the documentation does not support the selection, run
43
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
43
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -54,7 +54,7 @@ variable names the repository proves or the developer named, these URLs, the ada
54
54
  shared-state limit.
55
55
 
56
56
  If the pages support the selection, run
57
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
57
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
58
58
 
59
59
  If the documentation does not support the selection, run
60
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
60
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -29,7 +29,7 @@ Record the selected framework, language, vendor, model, required credential vari
29
29
  names, these URLs, and each documentation gap.
30
30
 
31
31
  If the pages support the selection, run
32
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
32
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
33
33
 
34
34
  If the documentation does not support the selection, run
35
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
35
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -28,7 +28,7 @@ Record the selected framework, vendor, model, required credential variable names
28
28
  these URLs.
29
29
 
30
30
  If the pages support the selection, run
31
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
31
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
32
32
 
33
33
  If the documentation does not support the selection, run
34
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
34
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -24,7 +24,7 @@ Record the selected framework, vendor, model, required credential variable names
24
24
  these URLs.
25
25
 
26
26
  If the pages support the selection, run
27
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
27
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
28
28
 
29
29
  If the documentation does not support the selection, run
30
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
30
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -15,7 +15,7 @@ Record the selected framework, vendor, model, required credential variable names
15
15
  these URLs.
16
16
 
17
17
  If the pages support the selection, run
18
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
18
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
19
19
 
20
20
  If the documentation does not support the selection, run
21
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
21
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -15,7 +15,7 @@ Record the selected framework, vendor, model, required credential variable names
15
15
  these URLs.
16
16
 
17
17
  If the pages support the selection, run
18
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
18
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
19
19
 
20
20
  If the documentation does not support the selection, run
21
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
21
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -34,7 +34,7 @@ Record the selected framework, vendor, model, required credential variable names
34
34
  URLs, the documented dependencies and adapter, and both documentation limits.
35
35
 
36
36
  If the pages support the selection, run
37
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
37
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
38
38
 
39
39
  If the documentation does not support the selection, run
40
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
40
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -45,7 +45,7 @@ Record the selected framework, vendor, model, required credential variable names
45
45
  these URLs.
46
46
 
47
47
  If the pages support the selection, run
48
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
48
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
49
49
 
50
50
  If the documentation does not support the selection, run
51
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
51
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -34,7 +34,7 @@ Record the selected framework, provider, model, required credential variable nam
34
34
  these URLs.
35
35
 
36
36
  If the pages support the selection, run
37
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
37
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
38
38
 
39
39
  If the documentation does not support the selection, run
40
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
40
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -44,7 +44,7 @@ Record the selected framework, provider, model, required credential variable nam
44
44
  URLs, and the quickstart gap.
45
45
 
46
46
  If the pages support the selection, run
47
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
47
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
48
48
 
49
49
  If the documentation does not support the selection, run
50
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
50
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -28,7 +28,7 @@ Record the selected framework, vendor, model, required credential variable names
28
28
  these URLs.
29
29
 
30
30
  If the pages support the selection, run
31
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
31
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
32
32
 
33
33
  If the documentation does not support the selection, run
34
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
34
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -43,7 +43,7 @@ Record the selected framework, vendor, model, required credential variable names
43
43
  URLs, and the two-step context route.
44
44
 
45
45
  If the pages support the selection, run
46
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
46
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
47
47
 
48
48
  If the documentation does not support the selection, run
49
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
49
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -27,7 +27,7 @@ Record the selected framework, vendor, model, required credential variable names
27
27
  URLs, and the context documentation gap.
28
28
 
29
29
  If the pages support the selection, run
30
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
30
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
31
31
 
32
32
  If the documentation does not support the selection, run
33
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
33
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -28,7 +28,7 @@ Record the selected framework, vendor, model, required credential variable names
28
28
  URLs, and the context documentation gap.
29
29
 
30
30
  If the pages support the selection, run
31
- `npx --yes copilotkit@4.9.60 onboard read frontend/plan`.
31
+ `npx --yes copilotkit@4.10.1 onboard read frontend/plan`.
32
32
 
33
33
  If the documentation does not support the selection, run
34
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
34
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -5,7 +5,7 @@ Preserve an existing Angular frontend. Use the selected page for a new frontend.
5
5
  Use the starter shortcut only if all these facts are true: the target directory contains
6
6
  no entries, its name is a valid `init` project name, and the selected framework is ADK.
7
7
  If all three facts are true, record Angular as the selected frontend. Then run
8
- `npx --yes copilotkit@4.9.60 onboard read starter/clone` before you fetch documentation.
8
+ `npx --yes copilotkit@4.10.1 onboard read starter/clone` before you fetch documentation.
9
9
 
10
10
  ## Documentation
11
11
 
@@ -63,7 +63,7 @@ you create or build an Angular project. If the installed version is lower, selec
63
63
  supported version first and use it for every later command in this project.
64
64
 
65
65
  If the pages support the selection, record Angular and these URLs. Then run
66
- `npx --yes copilotkit@4.9.60 onboard read credentials/finalize-plan`.
66
+ `npx --yes copilotkit@4.10.1 onboard read credentials/finalize-plan`.
67
67
 
68
68
  If the documentation does not support the selection, or the two version lines do not fit
69
- together, run `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
69
+ together, run `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -15,7 +15,7 @@ These TypeScript options have starters: Claude Agent SDK TypeScript, LangGraph T
15
15
  Mastra, and Strands Agents TypeScript. The .NET option is Microsoft Agent Framework .NET.
16
16
 
17
17
  If all shortcut conditions are true, record Next.js as the selected frontend. Then run
18
- `npx --yes copilotkit@4.9.60 onboard read starter/clone` before you fetch documentation.
18
+ `npx --yes copilotkit@4.10.1 onboard read starter/clone` before you fetch documentation.
19
19
 
20
20
  ## Documentation
21
21
 
@@ -27,7 +27,7 @@ agent as the default agent, which is correct only for a project that has no agen
27
27
  Do not replace the developer's existing agent with the built-in agent.
28
28
 
29
29
  If the page supports the selection, record Next.js and this URL. Then run
30
- `npx --yes copilotkit@4.9.60 onboard read credentials/finalize-plan`.
30
+ `npx --yes copilotkit@4.10.1 onboard read credentials/finalize-plan`.
31
31
 
32
32
  If the documentation does not support the selection, run
33
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
33
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -24,11 +24,11 @@ process.
24
24
 
25
25
  Use exactly one matching internal route:
26
26
 
27
- 1. React SPA: `npx --yes copilotkit@4.9.60 onboard read frontend/react-spa`
28
- 2. Next.js: `npx --yes copilotkit@4.9.60 onboard read frontend/nextjs`
29
- 3. Angular: `npx --yes copilotkit@4.9.60 onboard read frontend/angular`
30
- 4. Vue 3: `npx --yes copilotkit@4.9.60 onboard read frontend/vue`
31
- 5. React Native: `npx --yes copilotkit@4.9.60 onboard read frontend/react-native`
27
+ 1. React SPA: `npx --yes copilotkit@4.10.1 onboard read frontend/react-spa`
28
+ 2. Next.js: `npx --yes copilotkit@4.10.1 onboard read frontend/nextjs`
29
+ 3. Angular: `npx --yes copilotkit@4.10.1 onboard read frontend/angular`
30
+ 4. Vue 3: `npx --yes copilotkit@4.10.1 onboard read frontend/vue`
31
+ 5. React Native: `npx --yes copilotkit@4.10.1 onboard read frontend/react-native`
32
32
 
33
33
  If no listed frontend fits, run
34
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
34
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -15,7 +15,7 @@ documents `useRenderTool`, which is React Native's own hook for drawing a tool t
15
15
  already has. That is a different job and needs a tool in the agent.
16
16
 
17
17
  If the pages support the selection, record React Native and these URLs. Then run
18
- `npx --yes copilotkit@4.9.60 onboard read credentials/finalize-plan`.
18
+ `npx --yes copilotkit@4.10.1 onboard read credentials/finalize-plan`.
19
19
 
20
20
  If the documentation does not support the selection, run
21
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
21
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -11,7 +11,7 @@ not move the agent into it.
11
11
  - https://docs.copilotkit.ai/react-spa.md
12
12
 
13
13
  If the page supports the selection, record React SPA and this URL. Then run
14
- `npx --yes copilotkit@4.9.60 onboard read credentials/finalize-plan`.
14
+ `npx --yes copilotkit@4.10.1 onboard read credentials/finalize-plan`.
15
15
 
16
16
  If the documentation does not support the selection, run
17
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
17
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -16,7 +16,7 @@ page above. Vue has its own `useComponent`, which is not the React package. Take
16
16
  that reference page rather than from a Vue generative-UI guide, which is not published.
17
17
 
18
18
  If the pages support the selection, record Vue 3 and these URLs. Then run
19
- `npx --yes copilotkit@4.9.60 onboard read credentials/finalize-plan`.
19
+ `npx --yes copilotkit@4.10.1 onboard read credentials/finalize-plan`.
20
20
 
21
21
  If the documentation does not support the selection, run
22
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
22
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.
@@ -2,6 +2,28 @@
2
2
 
3
3
  Do not implement the plan yourself. Use the step order in the approved plan.
4
4
 
5
+ ## If you stop in this phase
6
+
7
+ One rule below stops onboarding: a Learning Container create that fails for a reason other
8
+ than the container already existing. It ends a run the developer has already approved a
9
+ plan for. Name the exact command, id, and error code that stopped you: a report that names
10
+ only the step cannot be acted on. Send one short report before you stop. Run the friction command without another developer question. The CLI telemetry gate decides whether the
11
+ report is sent.
12
+
13
+ ```text
14
+ npx --yes copilotkit@4.10.1 onboard friction --phase stop --category <slug>
15
+ ```
16
+
17
+ Write one or two sentences to standard input: the step you stopped at and what stopped it.
18
+ Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
19
+ sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
20
+ --cost-seconds off. A run that stopped cannot separate one papercut's cost from the cost
21
+ of the whole run, so the estimate is optional on a stop report and only there.
22
+ Send no secrets, source code, logs, or command output. The command refuses a report that
23
+ carries any of those, prints the reason, and exits zero. A refused report is not a failed
24
+ step. Send the report, then stop. Reporting is not a route change and does not resume the
25
+ run.
26
+
5
27
  ## Authorization requested by the plan
6
28
 
7
29
  Approving the plan is the developer agreeing to every path it listed under
@@ -9,7 +31,7 @@ Approving the plan is the developer agreeing to every path it listed under
9
31
  app directory:
10
32
 
11
33
  ```text
12
- npx --yes copilotkit@4.9.60 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
34
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
13
35
  ```
14
36
 
15
37
  Consent has to be on the record before the file moves, so a call made after the change is
@@ -21,7 +43,7 @@ No implementation step has run yet, so the change is theirs rather than this run
21
43
  consent over it by adding one flag:
22
44
 
23
45
  ```text
24
- npx --yes copilotkit@4.9.60 onboard protect --authorize --path <path> --reason "<the plan's sentence>" --with-prior-change
46
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>" --with-prior-change
25
47
  ```
26
48
 
27
49
  The flag records their change as drift beside the consent, so the closing report names both
@@ -40,7 +62,7 @@ rather than this section.
40
62
  Run the audit from the target app directory:
41
63
 
42
64
  ```text
43
- npx --yes copilotkit@4.9.60 onboard audit
65
+ npx --yes copilotkit@4.10.1 onboard audit
44
66
  ```
45
67
 
46
68
  It compares every protected path with the digest the CLI captured for it. Its result starts
@@ -75,14 +97,14 @@ A path that no Files changed section names changed outside the run, and it is th
75
97
  developer's own file. Accept it by name:
76
98
 
77
99
  ```text
78
- npx --yes copilotkit@4.9.60 onboard protect --accept-external --path <path>
100
+ npx --yes copilotkit@4.10.1 onboard protect --accept-external --path <path>
79
101
  ```
80
102
 
81
103
  A changed env file is its own case. This run asked the developer to place a credential
82
104
  there, so it takes the credential route rather than this one:
83
105
 
84
106
  ```text
85
- npx --yes copilotkit@4.9.60 onboard protect --accept-credential --path <path>
107
+ npx --yes copilotkit@4.10.1 onboard protect --accept-credential --path <path>
86
108
  ```
87
109
 
88
110
  That route proves no recorded credential was lost, instead of taking the run's word that it
@@ -101,7 +123,7 @@ neither does a one-line fix. Never repair, reset, or revert it. Ask the develope
101
123
  the change, and record the answer they give:
102
124
 
103
125
  ```text
104
- npx --yes copilotkit@4.9.60 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
126
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
105
127
  ```
106
128
 
107
129
  Use it only for an answer a developer actually gave. It records the consent as taken
@@ -115,14 +137,43 @@ protected path as changed. Report the printed reason and use the route-out rules
115
137
  An audit that has not passed never continues the run by itself. Continue only after an
116
138
  acceptance clears it, or route out. Do not send an audit result to a repair worker.
117
139
 
140
+ ## Create the approved Learning Container
141
+
142
+ Where the approved plan names a Learning Container id that the platform does not hold yet,
143
+ create it now, from the target app directory. The developer approved the id before it was
144
+ made, so this is the first point at which it can be created:
145
+
146
+ ```text
147
+ npx --yes copilotkit@4.10.1 learning containers create --id <id> --name <name> --json
148
+ ```
149
+
150
+ Pass the id the plan names. Take the name from the selected project's own display name, so
151
+ the container reads as this project's in the dashboard. Both flags are required alongside
152
+ `--json`: a create that leaves either one out is refused as `NON_INTERACTIVE` rather than
153
+ prompted for, whatever terminal the run has.
154
+
155
+ `LEARNING_CONTAINER_ALREADY_EXISTS` means another run already made it. That is a container
156
+ to reuse, not a failure to repair and not a reason to pick a new id. Any other error code:
157
+ report it and stop onboarding, so no run wires a selector to an id the platform does not
158
+ hold.
159
+
160
+ Then report that the container is settled, before any edit:
161
+
162
+ ```text
163
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase container-settled
164
+ ```
165
+
166
+ Where the plan names a container the platform already held, report the same checkpoint and
167
+ create nothing. Where the plan names no container, skip this section.
168
+
118
169
  Report the plan this run is about to implement:
119
170
 
120
171
  ```text
121
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
172
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
122
173
  ```
123
174
 
124
175
  Spawn one implementation subagent. Tell it to run
125
- `npx --yes copilotkit@4.9.60 onboard read subagent/implement-and-validate` first and follow
176
+ `npx --yes copilotkit@4.10.1 onboard read subagent/implement-and-validate` first and follow
126
177
  the prompt it returns. If that read fails because the subagent cannot use the shell, stop that
127
178
  subagent. Run the same command yourself, then spawn a fresh subagent with the returned prompt
128
179
  and the same handoff. Give it the plan, selected framework, frontend, model, exact target app
@@ -142,11 +193,11 @@ returned. Continue to proof only when that audit passes.
142
193
  After the selected implementation path passes, report it:
143
194
 
144
195
  ```text
145
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase build-validated
196
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase build-validated
146
197
  ```
147
198
 
148
199
  Then run
149
- `npx --yes copilotkit@4.9.60 onboard read proof/round-trip`.
200
+ `npx --yes copilotkit@4.10.1 onboard read proof/round-trip`.
150
201
 
151
202
  ## Repair rules
152
203
 
@@ -160,8 +211,17 @@ implementation path.
160
211
 
161
212
  ## Route-out rules
162
213
 
163
- Route out for `Status: blocked`. Route out only when the failure is not yours to fix: the
164
- failure is in code this run did not write, the fix requires changing the developer's existing
165
- agent or frontend, the same command still fails after three repair attempts, or the
166
- documentation does not support the plan. In those cases run
167
- `npx --yes copilotkit@4.9.60 onboard read unsupported/no-validated-path`.
214
+ Route out only when the failure is not yours to fix. Two endings are open from here, and
215
+ what failed decides which one this run takes.
216
+
217
+ A run that broke takes the failure ending: the failure is in code this run did not write,
218
+ the same command still fails after three repair attempts, or a result starts with
219
+ `Status: blocked`. A defect in a package this run installed is not a stack CopilotKit does
220
+ not serve, a command this run cannot get to pass is not one either, and a blocked audit
221
+ proved nothing about the stack. In those cases run
222
+ `npx --yes copilotkit@4.10.1 onboard read stopped/run-failed`.
223
+
224
+ A plan with no path to follow takes the unsupported ending: the fix requires changing the
225
+ developer's existing agent or frontend, or the documentation does not support the plan. In
226
+ those cases run
227
+ `npx --yes copilotkit@4.10.1 onboard read unsupported/no-validated-path`.