copilotkit 4.17.0 → 4.19.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 +133 -6
- package/cli-build-info.json +7 -7
- package/exporters/langgraph/README.md +118 -0
- package/exporters/langgraph/export_checkpointer.py +125 -0
- package/index.js +13382 -9313
- package/onboarding/index.json +1 -1
- package/onboarding/prompts/authenticate/start.md +31 -23
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +57 -200
- package/onboarding/prompts/credentials/plan.md +50 -23
- package/onboarding/prompts/credentials/settle-credentials.md +56 -217
- package/onboarding/prompts/credentials/write-plan.md +17 -8
- package/onboarding/prompts/fallback/best-effort.md +36 -24
- package/onboarding/prompts/feature/a2ui/implement.md +7 -7
- package/onboarding/prompts/feature/a2ui/proof.md +8 -8
- package/onboarding/prompts/feature/a2ui/start.md +53 -9
- package/onboarding/prompts/feature/channels/implement.md +8 -8
- package/onboarding/prompts/feature/channels/proof.md +7 -7
- package/onboarding/prompts/feature/channels/start.md +50 -7
- package/onboarding/prompts/feature/chat-suggestions/implement.md +7 -7
- package/onboarding/prompts/feature/chat-suggestions/proof.md +7 -7
- package/onboarding/prompts/feature/chat-suggestions/start.md +50 -7
- package/onboarding/prompts/feature/complete.md +2 -2
- package/onboarding/prompts/feature/learning/implement.md +24 -19
- package/onboarding/prompts/feature/learning/proof.md +8 -8
- package/onboarding/prompts/feature/learning/start.md +43 -20
- package/onboarding/prompts/feature/open-generative-ui/implement.md +7 -7
- package/onboarding/prompts/feature/open-generative-ui/proof.md +7 -7
- package/onboarding/prompts/feature/open-generative-ui/start.md +50 -7
- package/onboarding/prompts/feature/realtime-sync/implement.md +8 -8
- package/onboarding/prompts/feature/realtime-sync/proof.md +7 -7
- package/onboarding/prompts/feature/realtime-sync/start.md +49 -6
- package/onboarding/prompts/feature/rich-threads/implement.md +9 -9
- package/onboarding/prompts/feature/rich-threads/proof.md +7 -7
- package/onboarding/prompts/feature/rich-threads/start.md +49 -6
- package/onboarding/prompts/feature/stop.md +5 -5
- package/onboarding/prompts/feature/voice/implement.md +7 -7
- package/onboarding/prompts/feature/voice/proof.md +7 -7
- package/onboarding/prompts/feature/voice/start.md +50 -7
- 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 +8 -3
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +8 -3
- 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 +9 -8
- 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 +27 -20
- package/onboarding/prompts/proof/complete.md +35 -19
- package/onboarding/prompts/proof/oss-baseline.md +5 -5
- package/onboarding/prompts/proof/round-trip.md +29 -20
- package/onboarding/prompts/research/gather.md +6 -6
- package/onboarding/prompts/research/merge.md +5 -4
- package/onboarding/prompts/research/preflight.md +15 -50
- package/onboarding/prompts/research/route.md +7 -6
- package/onboarding/prompts/starter/clone.md +8 -7
- package/onboarding/prompts/stopped/run-failed.md +4 -4
- package/onboarding/prompts/subagent/create-plan.md +19 -1
- package/onboarding/prompts/subagent/inspect-repository.md +18 -3
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +106 -62
- package/onboarding/prompts/unsupported/no-validated-path.md +4 -4
- package/package.json +1 -1
- package/release/release-tool.js +28 -5
|
@@ -1,13 +1,57 @@
|
|
|
1
1
|
# Add A2UI to the existing CopilotKit app
|
|
2
2
|
|
|
3
3
|
Treat this as an additive OSS feature integration, not a new-app scaffold. Act as the
|
|
4
|
-
orchestrator and delegate inspection, implementation, and proof to focused subagents.
|
|
5
|
-
|
|
4
|
+
orchestrator and delegate inspection, implementation, and proof to focused subagents. Work
|
|
5
|
+
only inside the target project. Prompt names are this graph's own bookkeeping. Say what the
|
|
6
|
+
run is doing in the developer's words instead.
|
|
7
|
+
|
|
8
|
+
## Waits, stops, and subagents
|
|
9
|
+
|
|
10
|
+
A run that starts here has not read these rules yet, so they come first. They cover this
|
|
11
|
+
prompt and every later one.
|
|
12
|
+
|
|
13
|
+
Spawning a subagent returns almost at once. That return is the dispatch succeeding, not the
|
|
14
|
+
work finishing: the result reaches you as a notification, or with the dispatch itself where
|
|
15
|
+
your harness works that way. Do the work that does not depend on the result, then end your
|
|
16
|
+
turn and wait for the result. That wait is a pause. Do not sleep or poll.
|
|
17
|
+
|
|
18
|
+
A subagent that returns no usable result failed in your harness, not in this graph. Every
|
|
19
|
+
assignment here is work you can do yourself, slower, so run that assignment yourself and
|
|
20
|
+
carry on. Keep a read-only assignment read-only. If no subagent works at all, report it
|
|
21
|
+
once:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase delegation-unavailable
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Before you end your turn to wait for the developer, report the pause:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase awaiting-developer
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
A turn that ends while the run waits is a pause, not a stop, even when your harness ends it.
|
|
34
|
+
When the answer or the result arrives, continue from the step that paused.
|
|
35
|
+
|
|
36
|
+
If you stop this run, send one short report before you stop. The friction command follows
|
|
37
|
+
the telemetry setting the developer already chose, so it needs no separate question.
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard friction --phase stop --category <slug> --message "<sentences>"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`--message` takes one or two sentences: the step you stopped at and what stopped it.
|
|
44
|
+
Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
|
|
45
|
+
sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
|
|
46
|
+
--cost-seconds off. Send no secrets, source code, logs, or command output. A refused report
|
|
47
|
+
is not a failed step: reword it and send it again, or stop without a report. A stop that
|
|
48
|
+
routes to `feature/stop` sends no report here: that prompt first asks the developer about
|
|
49
|
+
one scoped fix, and sends the report itself when no fix is approved.
|
|
6
50
|
|
|
7
51
|
Before any subagent or project process runs, capture the developer's existing work:
|
|
8
52
|
|
|
9
53
|
```text
|
|
10
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
54
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect
|
|
11
55
|
```
|
|
12
56
|
|
|
13
57
|
Keep the exact protected path list it prints and give that list to every subagent. No
|
|
@@ -22,13 +66,13 @@ development/test commands. It must return paths and secret-safe presence checks
|
|
|
22
66
|
|
|
23
67
|
Require an existing frontend, agent, and CopilotKit round trip. Start only project-owned
|
|
24
68
|
processes when needed, inspect `/info`, and run
|
|
25
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
69
|
+
`npx --prefer-offline --yes copilotkit@4.19.0 verify --expect-runtime oss --round-trip --agent <agent-id> --json`.
|
|
26
70
|
Also drive one existing request through the frontend when browser control is available.
|
|
27
71
|
|
|
28
72
|
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
29
73
|
|
|
30
74
|
```text
|
|
31
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
75
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase research-returned
|
|
32
76
|
```
|
|
33
77
|
|
|
34
78
|
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
@@ -38,7 +82,7 @@ If the inspection did not prove the baseline this intent extends, stop here with
|
|
|
38
82
|
changing files:
|
|
39
83
|
|
|
40
84
|
```text
|
|
41
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
85
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
42
86
|
```
|
|
43
87
|
|
|
44
88
|
Do not run `login`, select an Intelligence project, add an Intelligence client, mint a
|
|
@@ -62,7 +106,7 @@ one.
|
|
|
62
106
|
After approval, record each approved path before implementation:
|
|
63
107
|
|
|
64
108
|
```text
|
|
65
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
109
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
|
|
66
110
|
```
|
|
67
111
|
|
|
68
112
|
If an approved path changed after capture and no implementation step has run, add
|
|
@@ -72,7 +116,7 @@ authorize a path the approved plan did not list.
|
|
|
72
116
|
Then report the plan this run is about to implement:
|
|
73
117
|
|
|
74
118
|
```text
|
|
75
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
119
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase plan-written
|
|
76
120
|
```
|
|
77
121
|
|
|
78
|
-
Then run `npx --prefer-offline --yes copilotkit@4.
|
|
122
|
+
Then run `npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/a2ui/implement`.
|
|
@@ -19,7 +19,7 @@ On Teams, skip Slack-only tools and the Slack e2e harness. Do not add a CopilotK
|
|
|
19
19
|
web app to make this run look complete. Do not replace the existing agent.
|
|
20
20
|
|
|
21
21
|
If repository evidence does not prove an existing valid Intelligence selection, sign in
|
|
22
|
-
yourself with `npx --prefer-offline --yes copilotkit@4.
|
|
22
|
+
yourself with `npx --prefer-offline --yes copilotkit@4.19.0 login --json`: the same single streaming
|
|
23
23
|
session generic onboarding uses. Read its JSON Lines while the process runs. Open the
|
|
24
24
|
first `authentication_url` exactly once with the operating system's default browser
|
|
25
25
|
opener, `open` on macOS, `xdg-open` on Linux, `Start-Process` in Windows PowerShell. Your
|
|
@@ -78,7 +78,7 @@ starter to satisfy this rule, and do not report the page that shows it.
|
|
|
78
78
|
Before you spawn the implementation subagent, take the authorized list from the CLI:
|
|
79
79
|
|
|
80
80
|
```text
|
|
81
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
81
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard audit
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
From its result, copy the paths under `Authorized to modify:`. A passed or failed audit with
|
|
@@ -97,7 +97,7 @@ still go on the record. Name the file and why the work needs it, then end your t
|
|
|
97
97
|
for the developer's answer. If they allow it, record their answer before any edit:
|
|
98
98
|
|
|
99
99
|
```text
|
|
100
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
100
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
Continue only when the result starts with `Status: passed`. Run the audit again, take the
|
|
@@ -109,7 +109,7 @@ feature stop route below.
|
|
|
109
109
|
After validation and each repair, run:
|
|
110
110
|
|
|
111
111
|
```text
|
|
112
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
112
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard audit
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
Continue only when it starts with `Status: passed`. A path under `Authorized to modify:` is
|
|
@@ -120,7 +120,7 @@ with the implementation subagent's `Files changed` section. If that section does
|
|
|
120
120
|
the path, accept the developer's external change:
|
|
121
121
|
|
|
122
122
|
```text
|
|
123
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
123
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --accept-external --path <path>
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
For an env file where the developer placed a requested credential, use
|
|
@@ -133,7 +133,7 @@ Run the audit again after each accepted change. If it still fails, or starts
|
|
|
133
133
|
with `Status: blocked`, route out and stop:
|
|
134
134
|
|
|
135
135
|
```text
|
|
136
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
136
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
## Values this run writes, and the one credential the developer supplies
|
|
@@ -169,11 +169,11 @@ variable while every recorded one keeps its value, and run the audit again.
|
|
|
169
169
|
When implementation validation passes, report it:
|
|
170
170
|
|
|
171
171
|
```text
|
|
172
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
172
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase build-validated
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
If validation cannot pass, or this run needs a prerequisite the app does not have, use
|
|
176
176
|
the feature stop route above without further changes.
|
|
177
177
|
|
|
178
178
|
Otherwise run
|
|
179
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
179
|
+
`npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/channels/proof`.
|
|
@@ -31,7 +31,7 @@ still go on the record. Name the file and why the fix needs it, then end your tu
|
|
|
31
31
|
for the developer's answer. If they allow it, record their answer before any edit:
|
|
32
32
|
|
|
33
33
|
```text
|
|
34
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
34
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Continue only when the result starts with `Status: passed`. Run the audit again, take the
|
|
@@ -43,23 +43,23 @@ route below.
|
|
|
43
43
|
Report each attempt at the proof as it ends, counting from one:
|
|
44
44
|
|
|
45
45
|
```text
|
|
46
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
46
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase journey-attempted --attempt 1
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Report each repair cycle the same way, counting from one:
|
|
50
50
|
|
|
51
51
|
```text
|
|
52
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
52
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase repair-attempted --attempt 1
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
After the final attempt, report the gate exactly once:
|
|
56
56
|
|
|
57
57
|
```text
|
|
58
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
58
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard proof --step round-trip --outcome <passed|failed|skipped>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
Use `passed` only for a proved mention reply, `failed` for an attempted proof that
|
|
62
|
-
failed, and `skipped` when the proof did not run. Then run `npx --prefer-offline --yes copilotkit@4.
|
|
62
|
+
failed, and `skipped` when the proof did not run. Then run `npx --prefer-offline --yes copilotkit@4.19.0 onboard audit`.
|
|
63
63
|
Continue only when it starts with `Status: passed`.
|
|
64
64
|
|
|
65
65
|
If the audit fails, never repair, reset, or revert a protected path. Compare each named path
|
|
@@ -74,11 +74,11 @@ the path and the change the audit reports. Run the audit again after each accept
|
|
|
74
74
|
If the audit still fails, or starts with `Status: blocked`, route out and stop:
|
|
75
75
|
|
|
76
76
|
```text
|
|
77
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
77
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
When the audit passes and the round trip you reported above was `passed`, run
|
|
81
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
81
|
+
`npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/complete` and complete with
|
|
82
82
|
`--visual-check channels-proof-passed`. The recorded mention and reply are this run's
|
|
83
83
|
proof, so no web app check is missing. Use `--visual-check performed` only when a
|
|
84
84
|
browser drove Slack or Teams web and proved the mention reply. Do not use
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
First, report your coding agent identity using the same command as generic onboarding:
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
6
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard identify --coding-agent <coding-agent-slug> --model <model-id>
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Use your own product's slug, such as `codex` or `claude-code`. For `--model`, give the
|
|
@@ -16,10 +16,53 @@ Empty folders, agent-only folders, and existing CopilotKit apps are all valid st
|
|
|
16
16
|
Orchestrate with separate read-only, implementation, and proof subagents, each
|
|
17
17
|
restricted to the target project.
|
|
18
18
|
|
|
19
|
+
## Waits, stops, and subagents
|
|
20
|
+
|
|
21
|
+
A run that starts here has not read these rules yet, so they come first. They cover this
|
|
22
|
+
prompt and every later one.
|
|
23
|
+
|
|
24
|
+
Spawning a subagent returns almost at once. That return is the dispatch succeeding, not the
|
|
25
|
+
work finishing: the result reaches you as a notification, or with the dispatch itself where
|
|
26
|
+
your harness works that way. Do the work that does not depend on the result, then end your
|
|
27
|
+
turn and wait for the result. That wait is a pause. Do not sleep or poll.
|
|
28
|
+
|
|
29
|
+
A subagent that returns no usable result failed in your harness, not in this graph. Every
|
|
30
|
+
assignment here is work you can do yourself, slower, so run that assignment yourself and
|
|
31
|
+
carry on. Keep a read-only assignment read-only. If no subagent works at all, report it
|
|
32
|
+
once:
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase delegation-unavailable
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Before you end your turn to wait for the developer, report the pause:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase awaiting-developer
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A turn that ends while the run waits is a pause, not a stop, even when your harness ends it.
|
|
45
|
+
When the answer or the result arrives, continue from the step that paused.
|
|
46
|
+
|
|
47
|
+
If you stop this run, send one short report before you stop. The friction command follows
|
|
48
|
+
the telemetry setting the developer already chose, so it needs no separate question.
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard friction --phase stop --category <slug> --message "<sentences>"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`--message` takes one or two sentences: the step you stopped at and what stopped it.
|
|
55
|
+
Pick the category that fits from docs-missing, docs-wrong, docs-sequential, cli-gap,
|
|
56
|
+
sdk-gap, environment, port-collision, credential, validation-loop, and other. Leave
|
|
57
|
+
--cost-seconds off. Send no secrets, source code, logs, or command output. A refused report
|
|
58
|
+
is not a failed step: reword it and send it again, or stop without a report. A stop that
|
|
59
|
+
routes to `feature/stop` sends no report here: that prompt first asks the developer about
|
|
60
|
+
one scoped fix, and sends the report itself when no fix is approved.
|
|
61
|
+
|
|
19
62
|
Before any subagent or project process runs, capture the developer's existing work:
|
|
20
63
|
|
|
21
64
|
```text
|
|
22
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
65
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect
|
|
23
66
|
```
|
|
24
67
|
|
|
25
68
|
Keep the exact protected path list it prints and give that list to every subagent. Do not
|
|
@@ -49,7 +92,7 @@ This one does not.
|
|
|
49
92
|
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
50
93
|
|
|
51
94
|
```text
|
|
52
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
95
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase research-returned
|
|
53
96
|
```
|
|
54
97
|
|
|
55
98
|
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
@@ -66,7 +109,7 @@ and its install command in the message the developer sees: `nvm install 22` for
|
|
|
66
109
|
for Python. Offer a custom headless build as a later path. Then route out:
|
|
67
110
|
|
|
68
111
|
```text
|
|
69
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
112
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
70
113
|
```
|
|
71
114
|
|
|
72
115
|
Do not run login, select Intelligence, or create a credential until the developer
|
|
@@ -96,7 +139,7 @@ one.
|
|
|
96
139
|
After approval, record each approved path before implementation:
|
|
97
140
|
|
|
98
141
|
```text
|
|
99
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
142
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
|
|
100
143
|
```
|
|
101
144
|
|
|
102
145
|
If an approved path changed after capture and no implementation step has run, add
|
|
@@ -106,7 +149,7 @@ authorize a path the approved plan did not list.
|
|
|
106
149
|
Then report the plan this run is about to implement:
|
|
107
150
|
|
|
108
151
|
```text
|
|
109
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
152
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase plan-written
|
|
110
153
|
```
|
|
111
154
|
|
|
112
|
-
Then run `npx --prefer-offline --yes copilotkit@4.
|
|
155
|
+
Then run `npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/channels/implement`.
|
|
@@ -15,7 +15,7 @@ Run focused type/test checks and start the app. Record the changed files and val
|
|
|
15
15
|
Before you spawn the implementation subagent, take the authorized list from the CLI:
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
18
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard audit
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
From its result, copy the paths under `Authorized to modify:`. A passed or failed audit with
|
|
@@ -34,7 +34,7 @@ still go on the record. Name the file and why the work needs it, then end your t
|
|
|
34
34
|
for the developer's answer. If they allow it, record their answer before any edit:
|
|
35
35
|
|
|
36
36
|
```text
|
|
37
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
37
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Continue only when the result starts with `Status: passed`. Run the audit again, take the
|
|
@@ -46,7 +46,7 @@ feature stop route below.
|
|
|
46
46
|
After validation and each repair, run:
|
|
47
47
|
|
|
48
48
|
```text
|
|
49
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
49
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard audit
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Continue only when it starts with `Status: passed`. A path under `Authorized to modify:` is
|
|
@@ -57,7 +57,7 @@ with the implementation subagent's `Files changed` section. If that section does
|
|
|
57
57
|
the path, accept the developer's external change:
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
60
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --accept-external --path <path>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
For an env file where the developer placed a requested credential, use
|
|
@@ -70,17 +70,17 @@ Run the audit again after each accepted change. If it still fails, or starts
|
|
|
70
70
|
with `Status: blocked`, route out and stop:
|
|
71
71
|
|
|
72
72
|
```text
|
|
73
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
73
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
When implementation validation passes, report it:
|
|
77
77
|
|
|
78
78
|
```text
|
|
79
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
79
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase build-validated
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
If validation cannot pass, or this intent needs a prerequisite the app does not have, use
|
|
83
83
|
the feature stop route above without further changes.
|
|
84
84
|
|
|
85
85
|
Otherwise run
|
|
86
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
86
|
+
`npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/chat-suggestions/proof`.
|
|
@@ -20,7 +20,7 @@ still go on the record. Name the file and why the fix needs it, then end your tu
|
|
|
20
20
|
for the developer's answer. If they allow it, record their answer before any edit:
|
|
21
21
|
|
|
22
22
|
```text
|
|
23
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
23
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --unplanned --path <path> --reason "<what the developer said>"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Continue only when the result starts with `Status: passed`. Run the audit again, take the
|
|
@@ -32,23 +32,23 @@ route below.
|
|
|
32
32
|
Report each attempt at the proof as it ends, counting from one:
|
|
33
33
|
|
|
34
34
|
```text
|
|
35
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
35
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase journey-attempted --attempt 1
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Report each repair cycle the same way, counting from one:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
41
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase repair-attempted --attempt 1
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
After the final attempt, report the gate exactly once:
|
|
45
45
|
|
|
46
46
|
```text
|
|
47
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
47
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard proof --step round-trip --outcome <passed|failed|skipped>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Use `passed` only for a proved sent suggestion, `failed` for an attempted proof that failed,
|
|
51
|
-
and `skipped` when the proof could not run. Then run `npx --prefer-offline --yes copilotkit@4.
|
|
51
|
+
and `skipped` when the proof could not run. Then run `npx --prefer-offline --yes copilotkit@4.19.0 onboard audit`.
|
|
52
52
|
Continue only when it starts with `Status: passed`.
|
|
53
53
|
|
|
54
54
|
If the audit fails, never repair, reset, or revert a protected path. Compare each named path
|
|
@@ -63,9 +63,9 @@ the path and the change the audit reports. Run the audit again after each accept
|
|
|
63
63
|
If the audit still fails, or starts with `Status: blocked`, route out and stop:
|
|
64
64
|
|
|
65
65
|
```text
|
|
66
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
66
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
When the audit passes, run
|
|
70
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
70
|
+
`npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/complete` with the real browser-proof
|
|
71
71
|
outcome.
|
|
@@ -3,10 +3,53 @@
|
|
|
3
3
|
Treat this as an additive OSS chat-surface feature. Delegate repository inspection,
|
|
4
4
|
implementation, and proof to separate subagents and keep all work inside the target project.
|
|
5
5
|
|
|
6
|
+
## Waits, stops, and subagents
|
|
7
|
+
|
|
8
|
+
A run that starts here has not read these rules yet, so they come first. They cover this
|
|
9
|
+
prompt and every later one.
|
|
10
|
+
|
|
11
|
+
Spawning a subagent returns almost at once. That return is the dispatch succeeding, not the
|
|
12
|
+
work finishing: the result reaches you as a notification, or with the dispatch itself where
|
|
13
|
+
your harness works that way. Do the work that does not depend on the result, then end your
|
|
14
|
+
turn and wait for the result. That wait is a pause. Do not sleep or poll.
|
|
15
|
+
|
|
16
|
+
A subagent that returns no usable result failed in your harness, not in this graph. Every
|
|
17
|
+
assignment here is work you can do yourself, slower, so run that assignment yourself and
|
|
18
|
+
carry on. Keep a read-only assignment read-only. If no subagent works at all, report it
|
|
19
|
+
once:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase delegation-unavailable
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Before you end your turn to wait for the developer, report the pause:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase awaiting-developer
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
A turn that ends while the run waits is a pause, not a stop, even when your harness ends it.
|
|
32
|
+
When the answer or the result arrives, continue from the step that paused.
|
|
33
|
+
|
|
34
|
+
If you stop this run, send one short report before you stop. The friction command follows
|
|
35
|
+
the telemetry setting the developer already chose, so it needs no separate question.
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard friction --phase stop --category <slug> --message "<sentences>"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`--message` takes one or two sentences: 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. Send no secrets, source code, logs, or command output. A refused report
|
|
45
|
+
is not a failed step: reword it and send it again, or stop without a report. A stop that
|
|
46
|
+
routes to `feature/stop` sends no report here: that prompt first asks the developer about
|
|
47
|
+
one scoped fix, and sends the report itself when no fix is approved.
|
|
48
|
+
|
|
6
49
|
Before any subagent or project process runs, capture the developer's existing work:
|
|
7
50
|
|
|
8
51
|
```text
|
|
9
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
52
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect
|
|
10
53
|
```
|
|
11
54
|
|
|
12
55
|
Keep the exact protected path list it prints and give that list to every subagent. No
|
|
@@ -15,13 +58,13 @@ approved authorization before implementation.
|
|
|
15
58
|
|
|
16
59
|
Before edits, identify the current CopilotKit provider, chat component, message lifecycle,
|
|
17
60
|
agent id, package version, and test/dev commands. Prove the existing OSS round trip with
|
|
18
|
-
`/info`, `npx --prefer-offline --yes copilotkit@4.
|
|
61
|
+
`/info`, `npx --prefer-offline --yes copilotkit@4.19.0 verify --expect-runtime oss --round-trip --agent <agent-id> --json`,
|
|
19
62
|
and one real frontend request when browser control is available.
|
|
20
63
|
|
|
21
64
|
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
22
65
|
|
|
23
66
|
```text
|
|
24
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
67
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase research-returned
|
|
25
68
|
```
|
|
26
69
|
|
|
27
70
|
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
@@ -31,7 +74,7 @@ If the inspection did not prove the baseline this intent extends, stop here with
|
|
|
31
74
|
changing files:
|
|
32
75
|
|
|
33
76
|
```text
|
|
34
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
77
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/stop
|
|
35
78
|
```
|
|
36
79
|
|
|
37
80
|
Do not run login, provision Intelligence, request a credential, replace the agent, or alter
|
|
@@ -53,7 +96,7 @@ one.
|
|
|
53
96
|
After approval, record each approved path before implementation:
|
|
54
97
|
|
|
55
98
|
```text
|
|
56
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
99
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard protect --authorize --path <path> --reason "<the plan's sentence>"
|
|
57
100
|
```
|
|
58
101
|
|
|
59
102
|
If an approved path changed after capture and no implementation step has run, add
|
|
@@ -63,7 +106,7 @@ authorize a path the approved plan did not list.
|
|
|
63
106
|
Then report the plan this run is about to implement:
|
|
64
107
|
|
|
65
108
|
```text
|
|
66
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
109
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard checkpoint --phase plan-written
|
|
67
110
|
```
|
|
68
111
|
|
|
69
|
-
Then run `npx --prefer-offline --yes copilotkit@4.
|
|
112
|
+
Then run `npx --prefer-offline --yes copilotkit@4.19.0 onboard read feature/chat-suggestions/implement`.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Use the outcome the proof step observed. Run:
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
6
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard complete --visual-check <performed|skipped-no-browser-tool|channels-proof-passed|failed>
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Use `channels-proof-passed` for a Slack or Teams run that recorded a passed round-trip proof
|
|
@@ -20,7 +20,7 @@ Before `onboard complete`, send the friction this run mentioned to the developer
|
|
|
20
20
|
report each, at most four, costliest first:
|
|
21
21
|
|
|
22
22
|
```text
|
|
23
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
23
|
+
npx --prefer-offline --yes copilotkit@4.19.0 onboard friction --category <slug> --cost-seconds <seconds> --message "<sentences>"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Put one or two sentences in `--message`, with no secrets, source, or logs. Pick the
|