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
@@ -4,6 +4,16 @@ Treat Learning as a managed Intelligence feature that assigns real threads to a
4
4
  Learning Container. Orchestrate with separate read-only, implementation, and proof
5
5
  subagents. Work only inside the target project and preserve its existing agent and chat.
6
6
 
7
+ Before any subagent or project process runs, capture the developer's existing work:
8
+
9
+ ```text
10
+ npx --yes copilotkit@4.10.1 onboard protect
11
+ ```
12
+
13
+ Keep the exact protected path list it prints and give that list to every subagent. No
14
+ subagent may write a protected path or an overlapping path unless this run records the
15
+ approved authorization before implementation.
16
+
7
17
  Before edits, inspect the runtime, agent id, provider/chat, server-side user identity,
8
18
  existing Intelligence configuration (presence only), existing thread routes, and the normal
9
19
  test/dev commands. Prove the current round trip and inspect `/info`. If the project does not
@@ -13,7 +23,7 @@ onboarding.
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
  Fetch the current official guides before planning:
@@ -47,10 +57,23 @@ Show a concise plan for managed runtime/thread prerequisites, a stable selected
47
57
  the documented `getLearningContainerId` selector, validation, and a visible assignment
48
58
  proof. Ask for approval separately.
49
59
 
50
- After approval, report the plan this run is about to implement:
60
+ The plan must list every protected path it needs to change under `Authorization requested`,
61
+ with one sentence explaining why. Write `None` when it needs none.
62
+
63
+ After approval, record each approved path before implementation:
64
+
65
+ ```text
66
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
67
+ ```
68
+
69
+ If an approved path changed after capture and no implementation step has run, add
70
+ `--with-prior-change`. Continue only when every result starts with `Status: passed`. Do not
71
+ authorize a path the approved plan did not list.
72
+
73
+ Then report the plan this run is about to implement:
51
74
 
52
75
  ```text
53
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
76
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
54
77
  ```
55
78
 
56
- Then run `npx --yes copilotkit@4.9.60 onboard read feature/learning/implement`.
79
+ Then run `npx --yes copilotkit@4.10.1 onboard read feature/learning/implement`.
@@ -11,18 +11,49 @@ intact unless the official guide and observed failure require a minimal document
11
11
 
12
12
  Run the project's focused validation commands. Start the app and confirm `/info` reports
13
13
  `openGenerativeUIEnabled`, while treating that only as capability evidence. Record changed paths and
14
- validation results without secrets. When implementation validation passes, report it:
14
+ validation results without secrets.
15
+
16
+ After validation and each repair, run:
17
+
18
+ ```text
19
+ npx --yes copilotkit@4.10.1 onboard audit
20
+ ```
21
+
22
+ Continue only when it starts with `Status: passed`. A path under `Authorized to change:` is
23
+ not a finding. Carry it into the final summary with its reason.
24
+
25
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
26
+ with the implementation subagent's `Files changed` section. If that section does not name
27
+ the path, accept the developer's external change:
15
28
 
16
29
  ```text
17
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase build-validated
30
+ npx --yes copilotkit@4.10.1 onboard protect --accept-external --path <path>
18
31
  ```
19
32
 
20
- If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
21
- without further changes:
33
+ For an env file where the developer placed a requested credential, use
34
+ `onboard protect --accept-credential --path <path>` instead. If the subagent names the path,
35
+ or its report does not settle who changed it, ask the developer to allow the unplanned
36
+ change. Only after they agree, record their answer:
22
37
 
23
38
  ```text
24
- npx --yes copilotkit@4.9.60 onboard read feature/stop
39
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
25
40
  ```
26
41
 
42
+ Run the audit again after each accepted or authorized change. If it still fails, or starts
43
+ with `Status: blocked`, route out and stop:
44
+
45
+ ```text
46
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
47
+ ```
48
+
49
+ When implementation validation passes, report it:
50
+
51
+ ```text
52
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase build-validated
53
+ ```
54
+
55
+ If validation cannot pass, or this intent needs a prerequisite the app does not have, use
56
+ the feature stop route above without further changes.
57
+
27
58
  Otherwise run
28
- `npx --yes copilotkit@4.9.60 onboard read feature/open-generative-ui/proof`.
59
+ `npx --yes copilotkit@4.10.1 onboard read feature/open-generative-ui/proof`.
@@ -13,15 +13,40 @@ the missing visual proof honestly.
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 outcome actually observed.
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 a proved generated UI, `failed` for an attempted proof that failed,
32
+ and `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 outcome actually
52
+ observed.
@@ -3,10 +3,20 @@
3
3
  Treat this as a focused OSS enhancement. Orchestrate the work with separate read-only,
4
4
  implementation, and proof subagents, all restricted to the target project directory.
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, have a research subagent identify the current CopilotKit runtime route,
7
17
  provider/chat component, agent id, package versions, existing middleware, sandbox/CSP
8
18
  constraints, and normal test/dev commands. Prove the existing app first 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 frontend request when browser control is available. If the app is not an existing
11
21
  OSS CopilotKit app with a proven round trip, change nothing and direct the developer to the
12
22
  generic onboarding path first.
@@ -14,7 +24,7 @@ generic onboarding path first.
14
24
  Wait for the inspection subagent to finish. Then report that the inspection came back:
15
25
 
16
26
  ```text
17
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase research-returned
27
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase research-returned
18
28
  ```
19
29
 
20
30
  A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
@@ -24,7 +34,7 @@ If the inspection did not prove the baseline this intent extends, stop here with
24
34
  changing files:
25
35
 
26
36
  ```text
27
- npx --yes copilotkit@4.9.60 onboard read feature/stop
37
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
28
38
  ```
29
39
 
30
40
  Do not sign in, select an Intelligence project, create credentials, change the existing
@@ -38,10 +48,23 @@ Retry through a second retrieval method if needed. Setup is the documented
38
48
  Show a small plan covering that runtime option, the existing provider's renderer path,
39
49
  likely CSP/sandbox implications, tests, and a user-visible generated UI proof. Ask for approval separately.
40
50
 
41
- After approval, report the plan this run is about to implement:
51
+ The plan must list every protected path it needs to change under `Authorization requested`,
52
+ with one sentence explaining why. Write `None` when it needs none.
53
+
54
+ After approval, record each approved path before implementation:
55
+
56
+ ```text
57
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
58
+ ```
59
+
60
+ If an approved path changed after capture and no implementation step has run, add
61
+ `--with-prior-change`. Continue only when every result starts with `Status: passed`. Do not
62
+ authorize a path the approved plan did not list.
63
+
64
+ Then report the plan this run is about to implement:
42
65
 
43
66
  ```text
44
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
67
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
45
68
  ```
46
69
 
47
- Then run `npx --yes copilotkit@4.9.60 onboard read feature/open-generative-ui/implement`.
70
+ Then run `npx --yes copilotkit@4.10.1 onboard read feature/open-generative-ui/implement`.
@@ -17,22 +17,51 @@ non-zero on an app that is working. Pass what `identifyUser` reads with a repeat
17
17
  It is not a defect to repair.
18
18
 
19
19
  Run focused tests and
20
- `npx --yes copilotkit@4.9.60 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
20
+ `npx --yes copilotkit@4.10.1 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
21
21
  Repair changed-file failures and record changed paths and secret-safe validation
22
22
  evidence.
23
23
 
24
- When implementation validation passes, report it:
24
+ After validation and each repair, run:
25
+
26
+ ```text
27
+ npx --yes copilotkit@4.10.1 onboard audit
28
+ ```
29
+
30
+ Continue only when it starts with `Status: passed`. A path under `Authorized to change:` is
31
+ not a finding. Carry it into the final summary with its reason.
32
+
33
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
34
+ with the implementation subagent's `Files changed` section. If that section does not name
35
+ the path, accept the developer's external change:
36
+
37
+ ```text
38
+ npx --yes copilotkit@4.10.1 onboard protect --accept-external --path <path>
39
+ ```
40
+
41
+ For an env file where the developer placed a requested credential, use
42
+ `onboard protect --accept-credential --path <path>` instead. If the subagent names the path,
43
+ or its report does not settle who changed it, ask the developer to allow the unplanned
44
+ change. Only after they agree, record their answer:
45
+
46
+ ```text
47
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
48
+ ```
49
+
50
+ Run the audit again after each accepted or authorized change. If it still fails, or starts
51
+ with `Status: blocked`, route out and stop:
25
52
 
26
53
  ```text
27
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase build-validated
54
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
28
55
  ```
29
56
 
30
- If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
31
- without further changes:
57
+ When implementation validation passes, report it:
32
58
 
33
59
  ```text
34
- npx --yes copilotkit@4.9.60 onboard read feature/stop
60
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase build-validated
35
61
  ```
36
62
 
63
+ If validation cannot pass, or this intent needs a prerequisite the app does not have, use
64
+ the feature stop route above without further changes.
65
+
37
66
  Otherwise run
38
- `npx --yes copilotkit@4.9.60 onboard read feature/realtime-sync/proof`.
67
+ `npx --yes copilotkit@4.10.1 onboard read feature/realtime-sync/proof`.
@@ -14,15 +14,39 @@ the missing proof rather than claiming realtime works.
14
14
  Report each attempt at the proof as it ends, counting from one:
15
15
 
16
16
  ```text
17
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase journey-attempted --attempt 1
17
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase journey-attempted --attempt 1
18
18
  ```
19
19
 
20
20
  Report each repair cycle the same way, counting from one:
21
21
 
22
22
  ```text
23
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase repair-attempted --attempt 1
23
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase repair-attempted --attempt 1
24
24
  ```
25
25
 
26
- Run
27
- `npx --yes copilotkit@4.9.60 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
28
- with the actual outcome.
26
+ After the final attempt, report the gate exactly once:
27
+
28
+ ```text
29
+ npx --yes copilotkit@4.10.1 onboard proof --step round-trip --outcome <passed|failed|skipped>
30
+ ```
31
+
32
+ Use `passed` only for proved two-client sync, `failed` for an attempted proof that failed,
33
+ and `skipped` when the proof could not run. Then run `npx --yes copilotkit@4.10.1 onboard audit`.
34
+ Continue only when it starts with `Status: passed`.
35
+
36
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
37
+ with the proof subagent's `Files changed` section. If that section does not name the path,
38
+ run `onboard protect --accept-external --path <path>`, or
39
+ `onboard protect --accept-credential --path <path>` for an env file where the developer
40
+ placed a requested credential. If the subagent names the path, or its report does not settle
41
+ who changed it, ask the developer to allow it. Only after they agree, run
42
+ `onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"`.
43
+ Run the audit again after each accepted or authorized change.
44
+
45
+ If the audit still fails, or starts with `Status: blocked`, route out and stop:
46
+
47
+ ```text
48
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
49
+ ```
50
+
51
+ When the audit passes, run
52
+ `npx --yes copilotkit@4.10.1 onboard read feature/complete` with the actual outcome.
@@ -4,6 +4,16 @@ Treat realtime sync as the Intelligence thread-realtime plane, not as a generic
4
4
  exercise. Act as the orchestrator and delegate read-only inspection, implementation, and
5
5
  two-context proof to subagents within the target project.
6
6
 
7
+ Before any subagent or project process runs, capture the developer's existing work:
8
+
9
+ ```text
10
+ npx --yes copilotkit@4.10.1 onboard protect
11
+ ```
12
+
13
+ Keep the exact protected path list it prints and give that list to every subagent. No
14
+ subagent may write a protected path or an overlapping path unless this run records the
15
+ approved authorization before implementation.
16
+
7
17
  Before edits, inspect the current runtime, provider/chat, agent id, authenticated stable user
8
18
  identity, thread routes, existing Intelligence configuration (presence only), current websocket
9
19
  configuration, and normal test/dev commands. Prove the current frontend-to-runtime-to-agent
@@ -13,7 +23,7 @@ unchanged and direct the developer to generic onboarding first.
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
  Fetch the current official guides before planning:
@@ -41,10 +51,23 @@ from explicit developer-owned values; never derive one from the other. The clien
41
51
  `/api` itself, so an `apiUrl` that already ends in `/api` produces `/api/api/...`. Hosted setup may not
42
52
  need a `wsUrl`. Ask for approval separately.
43
53
 
44
- After approval, report the plan this run is about to implement:
54
+ The plan must list every protected path it needs to change under `Authorization requested`,
55
+ with one sentence explaining why. Write `None` when it needs none.
56
+
57
+ After approval, record each approved path before implementation:
58
+
59
+ ```text
60
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
61
+ ```
62
+
63
+ If an approved path changed after capture and no implementation step has run, add
64
+ `--with-prior-change`. Continue only when every result starts with `Status: passed`. Do not
65
+ authorize a path the approved plan did not list.
66
+
67
+ Then report the plan this run is about to implement:
45
68
 
46
69
  ```text
47
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
70
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
48
71
  ```
49
72
 
50
- Then run `npx --yes copilotkit@4.9.60 onboard read feature/realtime-sync/implement`.
73
+ Then run `npx --yes copilotkit@4.10.1 onboard read feature/realtime-sync/implement`.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Delegate implementation to one subagent with the approved plan and fetched official guides.
4
4
  If repository evidence does not prove an existing valid Intelligence selection, run
5
- `npx --yes copilotkit@4.9.60 login --json` and follow its single streaming session. Then
5
+ `npx --yes copilotkit@4.10.1 login --json` and follow its single streaming session. Then
6
6
  list projects, show the developer the current/recent choices, and select or create one only
7
7
  after they choose. Require the secret-safe selection summary to confirm the project file,
8
8
  environment file, and key provisioning; never display a key. If existing configuration is
@@ -20,22 +20,51 @@ non-zero on an app that is working. Pass what `identifyUser` reads with a repeat
20
20
  It is not a defect to repair.
21
21
 
22
22
  Run focused type/test commands, then start the app and run
23
- `npx --yes copilotkit@4.9.60 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
23
+ `npx --yes copilotkit@4.10.1 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
24
24
  Repair changed-file failures before continuing. Record changed paths and secret-safe
25
25
  validation evidence.
26
26
 
27
- When implementation validation passes, report it:
27
+ After validation and each repair, run:
28
+
29
+ ```text
30
+ npx --yes copilotkit@4.10.1 onboard audit
31
+ ```
32
+
33
+ Continue only when it starts with `Status: passed`. A path under `Authorized to change:` is
34
+ not a finding. Carry it into the final summary with its reason.
35
+
36
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
37
+ with the implementation subagent's `Files changed` section. If that section does not name
38
+ the path, accept the developer's external change:
39
+
40
+ ```text
41
+ npx --yes copilotkit@4.10.1 onboard protect --accept-external --path <path>
42
+ ```
43
+
44
+ For an env file where the developer placed a requested credential, use
45
+ `onboard protect --accept-credential --path <path>` instead. If the subagent names the path,
46
+ or its report does not settle who changed it, ask the developer to allow the unplanned
47
+ change. Only after they agree, record their answer:
48
+
49
+ ```text
50
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
51
+ ```
52
+
53
+ Run the audit again after each accepted or authorized change. If it still fails, or starts
54
+ with `Status: blocked`, route out and stop:
28
55
 
29
56
  ```text
30
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase build-validated
57
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
31
58
  ```
32
59
 
33
- If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
34
- without further changes:
60
+ When implementation validation passes, report it:
35
61
 
36
62
  ```text
37
- npx --yes copilotkit@4.9.60 onboard read feature/stop
63
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase build-validated
38
64
  ```
39
65
 
66
+ If validation cannot pass, or this intent needs a prerequisite the app does not have, use
67
+ the feature stop route above without further changes.
68
+
40
69
  Otherwise run
41
- `npx --yes copilotkit@4.9.60 onboard read feature/rich-threads/proof`.
70
+ `npx --yes copilotkit@4.10.1 onboard read feature/rich-threads/proof`.
@@ -13,15 +13,41 @@ running.
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 browser 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 persistence and reopen, `failed` for an attempted proof that
32
+ failed, and `skipped` when the proof could not run. Then run
33
+ `npx --yes copilotkit@4.10.1 onboard audit`. Continue only when it starts with
34
+ `Status: passed`.
35
+
36
+ If the audit fails, never repair, reset, or revert a protected path. Compare each named path
37
+ with the proof subagent's `Files changed` section. If that section does not name the path,
38
+ run `onboard protect --accept-external --path <path>`, or
39
+ `onboard protect --accept-credential --path <path>` for an env file where the developer
40
+ placed a requested credential. If the subagent names the path, or its report does not settle
41
+ who changed it, ask the developer to allow it. Only after they agree, run
42
+ `onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"`.
43
+ Run the audit again after each accepted or authorized change.
44
+
45
+ If the audit still fails, or starts with `Status: blocked`, route out and stop:
46
+
47
+ ```text
48
+ npx --yes copilotkit@4.10.1 onboard read feature/stop
49
+ ```
50
+
51
+ When the audit passes, run
52
+ `npx --yes copilotkit@4.10.1 onboard read feature/complete` with the actual browser
53
+ outcome.
@@ -4,6 +4,16 @@ Treat Rich Threads as a managed Intelligence feature layered onto the existing a
4
4
  reason to replace its agent or chat. Act as the orchestrator and delegate inspection,
5
5
  implementation, and proof to separate subagents within the target project.
6
6
 
7
+ Before any subagent or project process runs, capture the developer's existing work:
8
+
9
+ ```text
10
+ npx --yes copilotkit@4.10.1 onboard protect
11
+ ```
12
+
13
+ Keep the exact protected path list it prints and give that list to every subagent. No
14
+ subagent may write a protected path or an overlapping path unless this run records the
15
+ approved authorization before implementation.
16
+
7
17
  Before edits, have a read-only subagent locate the runtime route, CopilotKit provider/chat,
8
18
  agent id, current thread UI or headless API, authentication boundary, stable server-side user
9
19
  identity source, current project configuration (presence only), and test/dev commands. Prove
@@ -13,7 +23,7 @@ an existing CopilotKit app, leave it unchanged and direct the developer to gener
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
  Fetch the current official guides before planning:
@@ -43,10 +53,23 @@ The plan must name the documented Intelligence runtime wiring, server-side `iden
43
53
  catch-all thread routes, the selected UI (drawer or existing headless UI), preserved behavior,
44
54
  tests, and a reload/reopen proof. Ask for approval separately.
45
55
 
46
- After approval, report the plan this run is about to implement:
56
+ The plan must list every protected path it needs to change under `Authorization requested`,
57
+ with one sentence explaining why. Write `None` when it needs none.
58
+
59
+ After approval, record each approved path before implementation:
60
+
61
+ ```text
62
+ npx --yes copilotkit@4.10.1 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
63
+ ```
64
+
65
+ If an approved path changed after capture and no implementation step has run, add
66
+ `--with-prior-change`. Continue only when every result starts with `Status: passed`. Do not
67
+ authorize a path the approved plan did not list.
68
+
69
+ Then report the plan this run is about to implement:
47
70
 
48
71
  ```text
49
- npx --yes copilotkit@4.9.60 onboard checkpoint --phase plan-written
72
+ npx --yes copilotkit@4.10.1 onboard checkpoint --phase plan-written
50
73
  ```
51
74
 
52
- Then run `npx --yes copilotkit@4.9.60 onboard read feature/rich-threads/implement`.
75
+ Then run `npx --yes copilotkit@4.10.1 onboard read feature/rich-threads/implement`.
@@ -8,13 +8,19 @@ extends, a documentation page that would not load, a prerequisite the app does n
8
8
  validation that would not pass, or a proof that could not be driven. Do not say the feature
9
9
  works when this run could not prove it.
10
10
 
11
- If the app has no proven CopilotKit baseline, say so plainly and point the developer at
12
- generic onboarding, which builds the app this intent needs. Give it a run id of its own:
11
+ For `add-channels`, Slack or Teams is the UI; a CopilotKit web app is not required.
12
+ Do not send this intent to generic onboarding because the project has no web app.
13
+ Name the missing Channel prerequisite or failed mention proof and the next step needed
14
+ to resolve it. Keep the existing agent and runtime, and report friction below.
15
+
16
+ For other intents, if the app has no proven CopilotKit baseline, say so plainly and point
17
+ the developer at generic onboarding, which builds the app this intent needs. Give it a run
18
+ id of its own:
13
19
  a `start` with no `--run` reprints the id this stopped run already holds, and one id
14
20
  covering both reads as one run that did two different things.
15
21
 
16
22
  ```text
17
- npx --yes copilotkit@4.9.60 onboard start --run <new-12-character-id>
23
+ npx --yes copilotkit@4.10.1 onboard start --run <new-12-character-id>
18
24
  ```
19
25
 
20
26
  Do not read a generic onboarding node from this run. A feature run and a generic run are
@@ -25,17 +31,20 @@ Do not run `onboard complete`. This run did not complete.
25
31
  If this run changed files before it stopped, list every path it changed and say whether it
26
32
  reverted them. A report that says only that the run stopped cannot be acted on.
27
33
 
28
- Send one short report. Run the feedback command without another developer question. The
34
+ Send one short report. Run the friction command without another developer question. The
29
35
  CLI telemetry gate decides whether the report is sent.
30
36
 
31
37
  ```text
32
- npx --yes copilotkit@4.9.60 onboard feedback
38
+ npx --yes copilotkit@4.10.1 onboard friction --phase stop --category <slug>
33
39
  ```
34
40
 
35
- Write the feedback message to the command's standard input, in at most four lines. Send no
41
+ Write one or two sentences to standard input: the step you stopped at and what stopped it.
42
+ Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
43
+ sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
44
+ --cost-seconds off. A run that stopped cannot separate one papercut's cost from the cost
45
+ of the whole run, so the estimate is optional on a stop report and only there. Send no
36
46
  secrets, source code, logs, or command output. The command refuses a report that carries
37
47
  any of those, prints the reason, and exits zero. A refused report is not a failed step.
38
48
  Reword it and send it again, or stop without a report. The command prints what it sent.
39
- This is the channel for a stop. Report friction only from a run that finished, never from
40
- here. If the CLI says the report was not sent, state what it said and
49
+ This is the channel for a stop. If the CLI says the report was not sent, state what it said and
41
50
  stop without another question.