copilotkit 4.9.50 → 4.10.0
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.
- package/README.md +44 -4
- package/cli-build-info.json +7 -7
- package/index.js +1810 -354
- package/onboarding/index.json +81 -18
- package/onboarding/prompts/authenticate/start.md +56 -190
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +25 -98
- package/onboarding/prompts/credentials/plan.md +20 -20
- package/onboarding/prompts/credentials/settle-credentials.md +153 -0
- package/onboarding/prompts/credentials/write-plan.md +93 -0
- package/onboarding/prompts/fallback/best-effort.md +12 -9
- package/onboarding/prompts/feature/a2ui/implement.md +35 -6
- package/onboarding/prompts/feature/a2ui/proof.md +30 -6
- package/onboarding/prompts/feature/a2ui/start.md +29 -6
- package/onboarding/prompts/feature/chat-suggestions/implement.md +36 -6
- package/onboarding/prompts/feature/chat-suggestions/proof.md +30 -5
- package/onboarding/prompts/feature/chat-suggestions/start.md +29 -6
- package/onboarding/prompts/feature/complete.md +11 -0
- package/onboarding/prompts/feature/learning/implement.md +102 -11
- package/onboarding/prompts/feature/learning/proof.md +53 -9
- package/onboarding/prompts/feature/learning/start.md +35 -8
- package/onboarding/prompts/feature/open-generative-ui/implement.md +37 -6
- package/onboarding/prompts/feature/open-generative-ui/proof.md +30 -5
- package/onboarding/prompts/feature/open-generative-ui/start.md +29 -6
- package/onboarding/prompts/feature/realtime-sync/implement.md +36 -7
- package/onboarding/prompts/feature/realtime-sync/proof.md +29 -5
- package/onboarding/prompts/feature/realtime-sync/start.md +28 -5
- package/onboarding/prompts/feature/rich-threads/implement.md +37 -8
- package/onboarding/prompts/feature/rich-threads/proof.md +31 -5
- package/onboarding/prompts/feature/rich-threads/start.md +28 -5
- package/onboarding/prompts/feature/stop.md +10 -7
- package/onboarding/prompts/feature/voice/implement.md +35 -6
- package/onboarding/prompts/feature/voice/proof.md +30 -5
- package/onboarding/prompts/feature/voice/start.md +29 -6
- package/onboarding/prompts/framework/ag2.md +2 -2
- package/onboarding/prompts/framework/agno.md +2 -2
- package/onboarding/prompts/framework/built-in.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
- package/onboarding/prompts/framework/crewai-flows.md +2 -2
- package/onboarding/prompts/framework/deep-agents.md +2 -2
- package/onboarding/prompts/framework/google-adk.md +2 -2
- package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
- package/onboarding/prompts/framework/langgraph-python.md +2 -2
- package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
- package/onboarding/prompts/framework/llamaindex.md +2 -2
- package/onboarding/prompts/framework/mastra.md +2 -2
- package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-python.md +2 -2
- package/onboarding/prompts/framework/pydantic-ai.md +2 -2
- package/onboarding/prompts/framework/strands-python.md +2 -2
- package/onboarding/prompts/framework/strands-typescript.md +2 -2
- package/onboarding/prompts/frontend/angular.md +3 -3
- package/onboarding/prompts/frontend/nextjs.md +3 -3
- package/onboarding/prompts/frontend/plan.md +6 -6
- package/onboarding/prompts/frontend/react-native.md +2 -2
- package/onboarding/prompts/frontend/react-spa.md +2 -2
- package/onboarding/prompts/frontend/vue.md +2 -2
- package/onboarding/prompts/implementation/build-and-validate.md +122 -12
- package/onboarding/prompts/proof/complete.md +23 -10
- package/onboarding/prompts/proof/oss-baseline.md +17 -7
- package/onboarding/prompts/proof/round-trip.md +33 -13
- package/onboarding/prompts/research/gather.md +121 -0
- package/onboarding/prompts/research/route.md +81 -0
- package/onboarding/prompts/starter/clone.md +18 -9
- package/onboarding/prompts/stopped/run-failed.md +44 -0
- package/onboarding/prompts/subagent/create-plan.md +32 -1
- package/onboarding/prompts/subagent/implement-and-validate.md +9 -1
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +59 -12
- package/onboarding/prompts/unsupported/no-validated-path.md +10 -7
- package/package.json +1 -1
- package/release/release-tool.js +39 -3
|
@@ -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.0 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.
|
|
19
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
27
|
+
npx --yes copilotkit@4.10.0 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.
|
|
37
|
+
npx --yes copilotkit@4.10.0 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
|
-
|
|
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.0 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.
|
|
67
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase plan-written
|
|
45
68
|
```
|
|
46
69
|
|
|
47
|
-
Then run `npx --yes copilotkit@4.
|
|
70
|
+
Then run `npx --yes copilotkit@4.10.0 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.
|
|
20
|
+
`npx --yes copilotkit@4.10.0 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
|
-
|
|
24
|
+
After validation and each repair, run:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 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.
|
|
54
|
+
npx --yes copilotkit@4.10.0 onboard read feature/stop
|
|
28
55
|
```
|
|
29
56
|
|
|
30
|
-
|
|
31
|
-
without further changes:
|
|
57
|
+
When implementation validation passes, report it:
|
|
32
58
|
|
|
33
59
|
```text
|
|
34
|
-
npx --yes copilotkit@4.
|
|
60
|
+
npx --yes copilotkit@4.10.0 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.
|
|
67
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
17
|
+
npx --yes copilotkit@4.10.0 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.
|
|
23
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase repair-attempted --attempt 1
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
After the final attempt, report the gate exactly once:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 onboard read feature/stop
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
When the audit passes, run
|
|
52
|
+
`npx --yes copilotkit@4.10.0 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.0 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.
|
|
26
|
+
npx --yes copilotkit@4.10.0 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.
|
|
36
|
+
npx --yes copilotkit@4.10.0 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
|
-
|
|
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.0 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.
|
|
70
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase plan-written
|
|
48
71
|
```
|
|
49
72
|
|
|
50
|
-
Then run `npx --yes copilotkit@4.
|
|
73
|
+
Then run `npx --yes copilotkit@4.10.0 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.
|
|
5
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
23
|
+
`npx --yes copilotkit@4.10.0 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
|
-
|
|
27
|
+
After validation and each repair, run:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 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.
|
|
57
|
+
npx --yes copilotkit@4.10.0 onboard read feature/stop
|
|
31
58
|
```
|
|
32
59
|
|
|
33
|
-
|
|
34
|
-
without further changes:
|
|
60
|
+
When implementation validation passes, report it:
|
|
35
61
|
|
|
36
62
|
```text
|
|
37
|
-
npx --yes copilotkit@4.
|
|
63
|
+
npx --yes copilotkit@4.10.0 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.
|
|
70
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
16
|
+
npx --yes copilotkit@4.10.0 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.
|
|
22
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
After the final attempt, report the gate exactly once:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 onboard read feature/stop
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
When the audit passes, run
|
|
52
|
+
`npx --yes copilotkit@4.10.0 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.0 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.
|
|
26
|
+
npx --yes copilotkit@4.10.0 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.
|
|
36
|
+
npx --yes copilotkit@4.10.0 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
|
-
|
|
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.0 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.
|
|
72
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase plan-written
|
|
50
73
|
```
|
|
51
74
|
|
|
52
|
-
Then run `npx --yes copilotkit@4.
|
|
75
|
+
Then run `npx --yes copilotkit@4.10.0 onboard read feature/rich-threads/implement`.
|
|
@@ -14,7 +14,7 @@ a `start` with no `--run` reprints the id this stopped run already holds, and on
|
|
|
14
14
|
covering both reads as one run that did two different things.
|
|
15
15
|
|
|
16
16
|
```text
|
|
17
|
-
npx --yes copilotkit@4.
|
|
17
|
+
npx --yes copilotkit@4.10.0 onboard start --run <new-12-character-id>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Do not read a generic onboarding node from this run. A feature run and a generic run are
|
|
@@ -25,17 +25,20 @@ Do not run `onboard complete`. This run did not complete.
|
|
|
25
25
|
If this run changed files before it stopped, list every path it changed and say whether it
|
|
26
26
|
reverted them. A report that says only that the run stopped cannot be acted on.
|
|
27
27
|
|
|
28
|
-
Send one short report. Run the
|
|
28
|
+
Send one short report. Run the friction command without another developer question. The
|
|
29
29
|
CLI telemetry gate decides whether the report is sent.
|
|
30
30
|
|
|
31
31
|
```text
|
|
32
|
-
npx --yes copilotkit@4.
|
|
32
|
+
npx --yes copilotkit@4.10.0 onboard friction --phase stop --category <slug>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Write
|
|
35
|
+
Write one or two sentences to standard input: the step you stopped at and what stopped it.
|
|
36
|
+
Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
|
|
37
|
+
sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
|
|
38
|
+
--cost-seconds off. A run that stopped cannot separate one papercut's cost from the cost
|
|
39
|
+
of the whole run, so the estimate is optional on a stop report and only there. Send no
|
|
36
40
|
secrets, source code, logs, or command output. The command refuses a report that carries
|
|
37
41
|
any of those, prints the reason, and exits zero. A refused report is not a failed step.
|
|
38
42
|
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.
|
|
40
|
-
|
|
41
|
-
not sent and stop without another question.
|
|
43
|
+
This is the channel for a stop. If the CLI says the report was not sent, state what it said and
|
|
44
|
+
stop without another question.
|
|
@@ -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
|
-
|
|
14
|
+
After validation and each repair, run:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 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.
|
|
44
|
+
npx --yes copilotkit@4.10.0 onboard read feature/stop
|
|
18
45
|
```
|
|
19
46
|
|
|
20
|
-
|
|
21
|
-
without further changes:
|
|
47
|
+
When implementation validation passes, report it:
|
|
22
48
|
|
|
23
49
|
```text
|
|
24
|
-
npx --yes copilotkit@4.
|
|
50
|
+
npx --yes copilotkit@4.10.0 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.
|
|
57
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
16
|
+
npx --yes copilotkit@4.10.0 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.
|
|
22
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
After the final attempt, report the gate exactly once:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
npx --yes copilotkit@4.10.0 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.0 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.0 onboard read feature/stop
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
When the audit passes, run
|
|
51
|
+
`npx --yes copilotkit@4.10.0 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.0 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.
|
|
19
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
26
|
+
npx --yes copilotkit@4.10.0 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.
|
|
36
|
+
npx --yes copilotkit@4.10.0 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
|
-
|
|
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.0 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.
|
|
65
|
+
npx --yes copilotkit@4.10.0 onboard checkpoint --phase plan-written
|
|
43
66
|
```
|
|
44
67
|
|
|
45
|
-
Then run `npx --yes copilotkit@4.
|
|
68
|
+
Then run `npx --yes copilotkit@4.10.0 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.
|
|
34
|
+
`npx --yes copilotkit@4.10.0 onboard read frontend/plan`.
|
|
35
35
|
|
|
36
36
|
If the documentation does not support the selection, run
|
|
37
|
-
`npx --yes copilotkit@4.
|
|
37
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
37
|
+
`npx --yes copilotkit@4.10.0 onboard read frontend/plan`.
|
|
38
38
|
|
|
39
39
|
If the documentation does not support the selection, run
|
|
40
|
-
`npx --yes copilotkit@4.
|
|
40
|
+
`npx --yes copilotkit@4.10.0 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.
|
|
30
|
+
`npx --yes copilotkit@4.10.0 onboard read frontend/plan`.
|
|
31
31
|
|
|
32
32
|
If the documentation does not support the selection, run
|
|
33
|
-
`npx --yes copilotkit@4.
|
|
33
|
+
`npx --yes copilotkit@4.10.0 onboard read unsupported/no-validated-path`.
|