copilotkit 4.27.0 → 4.28.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 +155 -23
- package/cli-build-info.json +7 -7
- package/index.js +7748 -4981
- package/onboarding/index.json +3 -2
- package/onboarding/prompts/authenticate/start.md +42 -55
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +28 -24
- package/onboarding/prompts/credentials/plan.md +31 -28
- package/onboarding/prompts/credentials/settle-credentials.md +7 -7
- package/onboarding/prompts/credentials/write-plan.md +54 -36
- package/onboarding/prompts/deployment/choose-local.md +9 -9
- package/onboarding/prompts/deployment/local-evaluation.md +11 -11
- package/onboarding/prompts/fallback/best-effort.md +9 -13
- package/onboarding/prompts/feature/a2ui/implement.md +4 -4
- package/onboarding/prompts/feature/a2ui/plan.md +3 -3
- package/onboarding/prompts/feature/a2ui/proof.md +5 -5
- package/onboarding/prompts/feature/a2ui/start.md +8 -8
- package/onboarding/prompts/feature/channels/implement.md +7 -7
- package/onboarding/prompts/feature/channels/plan.md +5 -5
- package/onboarding/prompts/feature/channels/proof.md +8 -7
- package/onboarding/prompts/feature/channels/start.md +9 -9
- package/onboarding/prompts/feature/chat-suggestions/implement.md +4 -4
- package/onboarding/prompts/feature/chat-suggestions/plan.md +3 -3
- package/onboarding/prompts/feature/chat-suggestions/proof.md +5 -5
- package/onboarding/prompts/feature/chat-suggestions/start.md +8 -8
- package/onboarding/prompts/feature/complete.md +2 -2
- package/onboarding/prompts/feature/learning/implement.md +12 -12
- package/onboarding/prompts/feature/learning/plan.md +4 -4
- package/onboarding/prompts/feature/learning/proof.md +13 -13
- package/onboarding/prompts/feature/learning/start.md +8 -8
- package/onboarding/prompts/feature/open-generative-ui/implement.md +4 -4
- package/onboarding/prompts/feature/open-generative-ui/plan.md +3 -3
- package/onboarding/prompts/feature/open-generative-ui/proof.md +5 -5
- package/onboarding/prompts/feature/open-generative-ui/start.md +8 -8
- package/onboarding/prompts/feature/realtime-sync/implement.md +5 -5
- package/onboarding/prompts/feature/realtime-sync/plan.md +3 -3
- package/onboarding/prompts/feature/realtime-sync/proof.md +5 -5
- package/onboarding/prompts/feature/realtime-sync/start.md +7 -7
- package/onboarding/prompts/feature/rich-threads/implement.md +6 -6
- package/onboarding/prompts/feature/rich-threads/plan.md +3 -3
- package/onboarding/prompts/feature/rich-threads/proof.md +5 -5
- package/onboarding/prompts/feature/rich-threads/start.md +7 -7
- package/onboarding/prompts/feature/stop.md +4 -4
- package/onboarding/prompts/feature/voice/implement.md +4 -4
- package/onboarding/prompts/feature/voice/plan.md +4 -4
- package/onboarding/prompts/feature/voice/proof.md +5 -5
- package/onboarding/prompts/feature/voice/start.md +8 -8
- package/onboarding/prompts/framework/ag2.md +3 -3
- package/onboarding/prompts/framework/agno.md +3 -3
- package/onboarding/prompts/framework/built-in.md +3 -3
- package/onboarding/prompts/framework/claude-sdk-python.md +3 -3
- package/onboarding/prompts/framework/claude-sdk-typescript.md +3 -3
- package/onboarding/prompts/framework/crewai-flows.md +6 -6
- package/onboarding/prompts/framework/custom-ag-ui.md +4 -4
- package/onboarding/prompts/framework/deep-agents.md +3 -3
- package/onboarding/prompts/framework/google-adk.md +3 -3
- package/onboarding/prompts/framework/langgraph-fastapi.md +3 -3
- package/onboarding/prompts/framework/langgraph-python.md +3 -3
- package/onboarding/prompts/framework/langgraph-typescript.md +3 -3
- package/onboarding/prompts/framework/llamaindex.md +3 -3
- package/onboarding/prompts/framework/mastra.md +3 -3
- package/onboarding/prompts/framework/ms-agent-dotnet.md +5 -5
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +5 -5
- package/onboarding/prompts/framework/ms-agent-python.md +3 -3
- package/onboarding/prompts/framework/pydantic-ai.md +3 -3
- package/onboarding/prompts/framework/strands-python.md +3 -3
- package/onboarding/prompts/framework/strands-typescript.md +3 -3
- package/onboarding/prompts/frontend/angular.md +4 -4
- package/onboarding/prompts/frontend/nextjs.md +4 -4
- package/onboarding/prompts/frontend/plan.md +12 -12
- package/onboarding/prompts/frontend/react-native.md +3 -3
- package/onboarding/prompts/frontend/react-spa.md +3 -3
- package/onboarding/prompts/frontend/vue.md +3 -3
- package/onboarding/prompts/implementation/build-and-validate.md +16 -14
- package/onboarding/prompts/proof/complete.md +6 -7
- package/onboarding/prompts/proof/oss-baseline.md +8 -5
- package/onboarding/prompts/proof/round-trip.md +18 -20
- package/onboarding/prompts/research/gather.md +38 -10
- package/onboarding/prompts/research/merge.md +3 -3
- package/onboarding/prompts/research/preflight.md +2 -2
- package/onboarding/prompts/research/route.md +10 -4
- package/onboarding/prompts/setup/questions.md +53 -234
- package/onboarding/prompts/starter/clone.md +42 -33
- package/onboarding/prompts/stopped/run-failed.md +3 -3
- package/onboarding/prompts/subagent/create-plan.md +32 -34
- package/onboarding/prompts/subagent/implement-and-validate.md +12 -35
- package/onboarding/prompts/subagent/inspect-repository.md +1 -1
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +35 -52
- package/onboarding/prompts/unsupported/no-validated-path.md +3 -3
- package/package.json +1 -1
- package/release/release-tool.js +8 -1
|
@@ -6,7 +6,7 @@ This step asks the developer nothing. If the run must wait for the developer any
|
|
|
6
6
|
the pause first:
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
9
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
React SPA has no starter. For a target directory that holds no project, build the new
|
|
@@ -26,7 +26,7 @@ that import when Vite leaves the package external.
|
|
|
26
26
|
- https://docs.copilotkit.ai/react-spa.md
|
|
27
27
|
|
|
28
28
|
If the page supports the selection, record React SPA and this URL. Then run
|
|
29
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
29
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read credentials/finalize-plan`.
|
|
30
30
|
|
|
31
31
|
If the documentation does not support the selection, run
|
|
32
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
32
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read unsupported/no-validated-path`.
|
|
@@ -6,7 +6,7 @@ This step asks the developer nothing. If the run must wait for the developer any
|
|
|
6
6
|
the pause first:
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
9
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Vue 3 has no starter. For a target directory that holds no project, build the new
|
|
@@ -26,7 +26,7 @@ page above. Vue has its own `useComponent`, which is not the React package. Take
|
|
|
26
26
|
that reference page rather than from a Vue generative-UI guide, which is not published.
|
|
27
27
|
|
|
28
28
|
If the pages support the selection, record Vue 3 and these URLs. Then run
|
|
29
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
29
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read credentials/finalize-plan`.
|
|
30
30
|
|
|
31
31
|
If the documentation does not support the selection, run
|
|
32
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
32
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read unsupported/no-validated-path`.
|
|
@@ -13,7 +13,7 @@ acted on. Send one short report before you stop. The friction command follows th
|
|
|
13
13
|
setting the developer already chose, so it needs no separate question.
|
|
14
14
|
|
|
15
15
|
```text
|
|
16
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
16
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard friction --phase stop --category <slug> --message "<sentences>"
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`--message` takes one or two sentences: the step you stopped at and what stopped it.
|
|
@@ -31,7 +31,7 @@ name in the plan prompt, `credentials/write-plan`.
|
|
|
31
31
|
|
|
32
32
|
## Departing from the approved plan
|
|
33
33
|
|
|
34
|
-
The developer saw a written plan and answered any
|
|
34
|
+
The developer saw a written plan and answered any change in it that needs approval. The approved plan is
|
|
35
35
|
that plan, with their answer. They were told that no question comes after it unless a step
|
|
36
36
|
cannot be built as written. Such a step is therefore a change to the only thing they agreed
|
|
37
37
|
to.
|
|
@@ -57,7 +57,7 @@ This prompt pauses for the developer in several places. Before you end your turn
|
|
|
57
57
|
for the developer, report the pause:
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
60
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
The existing agent's behavior is never a departure to record and carry on from. It is four
|
|
@@ -74,14 +74,14 @@ declines, use the route-out rules below.
|
|
|
74
74
|
Before you end your turn to wait for the developer, report the pause:
|
|
75
75
|
|
|
76
76
|
```text
|
|
77
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
77
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## The developer's uncommitted files
|
|
81
81
|
|
|
82
82
|
`onboard start` backed up the developer's work, so nothing is recorded before an edit. The
|
|
83
83
|
approved plan lists the files that had uncommitted changes under `Uncommitted files`. Each
|
|
84
|
-
one
|
|
84
|
+
one needs approval, so the developer's answer to the plan is their agreement to those
|
|
85
85
|
edits. Any other such file is a file
|
|
86
86
|
the plan does not name: ask the developer, as above.
|
|
87
87
|
|
|
@@ -97,12 +97,12 @@ or from an environment variable.
|
|
|
97
97
|
If the CLI prints `## Stop: this run deleted or moved the developer's work` instead of a
|
|
98
98
|
step, show the developer the list it printed, and run what they choose:
|
|
99
99
|
the `onboard restore` command the tripwire stop prints, which names each deleted file, or
|
|
100
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
100
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard tripwire --continue`. Then read the step again. If
|
|
101
101
|
you cannot ask, use the route-out rules below. Before you end your turn to wait for the
|
|
102
102
|
developer, report the pause:
|
|
103
103
|
|
|
104
104
|
```text
|
|
105
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
105
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
## Implement the plan
|
|
@@ -116,7 +116,7 @@ Run this from the target app directory. The developer saw the id in the plan, so
|
|
|
116
116
|
the first point at which it can be created:
|
|
117
117
|
|
|
118
118
|
```text
|
|
119
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
119
|
+
npx --prefer-offline --yes copilotkit@4.28.0 learning containers create --id <id> --name <name> --json
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
Pass the id the plan names. Take the name from the selected project's own display name, so
|
|
@@ -129,8 +129,11 @@ credentials step found it or another run made it. That is a container to reuse,
|
|
|
129
129
|
failure to repair and not a reason to pick a new id. Any other error code: report it and
|
|
130
130
|
stop onboarding, so no run wires a selector to an id the platform does not hold.
|
|
131
131
|
|
|
132
|
+
When you start a subagent in the background, tell the developer in one sentence what it
|
|
133
|
+
does. Then send nothing more until it returns.
|
|
134
|
+
|
|
132
135
|
Spawn one implementation subagent. Tell it to run
|
|
133
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
136
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read subagent/implement-and-validate` first and
|
|
134
137
|
follow the prompt it returns. Tell it to return at once, and say so, if that read is refused
|
|
135
138
|
or fails, and not to wait for an approval. If it returns that way, stop that subagent. Run
|
|
136
139
|
the same command yourself, then spawn a fresh subagent with the returned prompt and the same
|
|
@@ -138,8 +141,7 @@ handoff. Give it the plan, selected framework, frontend, model, exact target app
|
|
|
138
141
|
selected documentation URLs, and the
|
|
139
142
|
documentation policy recorded during framework selection or conversion planning. On a
|
|
140
143
|
conversion, also give it the frozen criterion. Give it the paths that had uncommitted
|
|
141
|
-
changes when the run started.
|
|
142
|
-
declined install. Require it to implement every step in plan order
|
|
144
|
+
changes when the run started. Require it to implement every step in plan order
|
|
143
145
|
and run the full validation list. Wait for it.
|
|
144
146
|
|
|
145
147
|
One subagent implements the whole plan. Do not divide the work across concurrent subagents,
|
|
@@ -165,7 +167,7 @@ Report it and take the failure ending.
|
|
|
165
167
|
If the implementation result does not start with `Status: passed`, do not continue to proof.
|
|
166
168
|
|
|
167
169
|
Then run
|
|
168
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
170
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read proof/round-trip`.
|
|
169
171
|
|
|
170
172
|
## Repair rules
|
|
171
173
|
|
|
@@ -193,9 +195,9 @@ developer
|
|
|
193
195
|
declined a file the plan does not name, or the run cannot ask them about it. A defect in a
|
|
194
196
|
package this run installed is not a stack CopilotKit does not serve, and a command this run
|
|
195
197
|
cannot get to pass is not one either. In those cases run
|
|
196
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
198
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`.
|
|
197
199
|
|
|
198
200
|
A plan with no path to follow takes the unsupported ending: the fix requires changing the
|
|
199
201
|
developer's existing agent or frontend, or the documentation does not support the plan. In
|
|
200
202
|
those cases run
|
|
201
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
203
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read unsupported/no-validated-path`.
|
|
@@ -24,7 +24,7 @@ friction commands follow the telemetry setting the developer already chose, so t
|
|
|
24
24
|
separate question.
|
|
25
25
|
|
|
26
26
|
```text
|
|
27
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
27
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard friction --category <slug> --cost-seconds <seconds> --message "<sentences>"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Put one or two sentences in `--message`. Pick one category from docs-missing, docs-wrong,
|
|
@@ -46,7 +46,7 @@ Pass the surface-check outcome the proof subagent returned, not the one you want
|
|
|
46
46
|
web frontend, pass `--visual-check` and the URL the browser opened, unchanged:
|
|
47
47
|
|
|
48
48
|
```text
|
|
49
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
49
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard complete --visual-check <outcome> \
|
|
50
50
|
--frontend-url <the url you opened>
|
|
51
51
|
```
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ this graph opens.
|
|
|
74
74
|
nothing drove the frontend:
|
|
75
75
|
|
|
76
76
|
```text
|
|
77
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
77
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard complete --visual-check failed --blocked-by browser-control-unresponsive
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## Write the handoff
|
|
@@ -98,10 +98,9 @@ only you can say:
|
|
|
98
98
|
- What the project now does, and the first thing to try in it.
|
|
99
99
|
- What changed since the developer approved the plan: every path, version, or step the run
|
|
100
100
|
departed from, and why. Where nothing departed, say so in one line. A file the approved
|
|
101
|
-
plan named under `Files the run writes itself`
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
`.agents/skills/` and its links in `.claude/skills/`. Say that deleting both removes them.
|
|
101
|
+
plan named under `Files the run writes itself` is not a departure.
|
|
102
|
+
- A page-context warning the proof recorded: name the framework, and say that the page's data
|
|
103
|
+
does not reach its model yet.
|
|
105
104
|
- Every change to the existing agent's behavior: its instructions, its tools, its model or
|
|
106
105
|
provider, or its memory. Name each one and its file, and say the developer approved it.
|
|
107
106
|
Where none changed, write `none`.
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# Prove the existing OSS baseline
|
|
2
2
|
|
|
3
3
|
Do not prove the baseline yourself. Spawn one proof subagent. Tell it to run
|
|
4
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
4
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read subagent/prove-oss-baseline` first and follow
|
|
5
5
|
the prompt it returns. Tell it to return at once, and say so, if that read is refused or
|
|
6
6
|
fails, and not to wait for an approval. If it returns that way, stop that subagent. Run the
|
|
7
7
|
same command yourself, then spawn a fresh subagent with the returned prompt and the same
|
|
8
8
|
handoff. Give it the repository findings and exact CLI package spec.
|
|
9
9
|
|
|
10
|
+
When you start a subagent in the background, tell the developer in one sentence what it
|
|
11
|
+
does. Then send nothing more until it returns.
|
|
12
|
+
|
|
10
13
|
Give it the browser or device control you recorded in the preflight as well. The subagent
|
|
11
14
|
proves the runtime from a shell and needs no browser for that. The control is for the one
|
|
12
15
|
predicate that drives the existing frontend. Where the preflight recorded `unavailable`, say
|
|
@@ -18,7 +21,7 @@ Wait for the subagent to finish.
|
|
|
18
21
|
Record what that proof returned before you route on it:
|
|
19
22
|
|
|
20
23
|
```text
|
|
21
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
24
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard proof --step oss-baseline --outcome <passed|failed|skipped> [--predicate <1-6>]
|
|
22
25
|
```
|
|
23
26
|
|
|
24
27
|
Report the gate whatever it returned. Use the list below. A proof that never ran is `skipped`, not failed. The command prints one line and sends
|
|
@@ -40,7 +43,7 @@ Do not change project files before this proof ends. Starting existing developmen
|
|
|
40
43
|
processes and their ignored runtime files is allowed.
|
|
41
44
|
|
|
42
45
|
If the subagent proves the `both-oss` predicate, keep its evidence with the plan and run
|
|
43
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
46
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read conversion/plan`. That project already works.
|
|
44
47
|
What it needs is the conversion, not a build.
|
|
45
48
|
|
|
46
49
|
A failed baseline does not end the run, and this step does not repair it. Decide which
|
|
@@ -55,7 +58,7 @@ pass. This proof only reads.
|
|
|
55
58
|
A failed baseline whose cause is in the project is the starting state of this project. So
|
|
56
59
|
is an operational failure still there after the third attempt. Record the starting state
|
|
57
60
|
`both-copilotkit-unproved` and run
|
|
58
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
61
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read credentials/plan`. This prompt is served
|
|
59
62
|
whenever a project looks like an OSS integration, so a baseline that did not prove is an
|
|
60
63
|
ordinary starting state rather than a failure. The build that follows fixes the
|
|
61
64
|
integration, and `proof/round-trip` proves the result, with its own bounded repair cycle.
|
|
@@ -75,5 +78,5 @@ operational. Run the proof again, three times in total, then record the starting
|
|
|
75
78
|
above and go on. Both causes lead to the same plan.
|
|
76
79
|
|
|
77
80
|
If the proof cannot identify the running process safely, or it exposes a secret, run
|
|
78
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
81
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`. Neither means the
|
|
79
82
|
project is unsupported: each means this run did not establish what it needed to.
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
# Prove the user journey
|
|
2
2
|
|
|
3
3
|
Do not do the proof work yourself. Spawn one proof subagent. Tell it to run
|
|
4
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
4
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read subagent/prove-round-trip` first and follow the
|
|
5
5
|
prompt it returns. Tell it to return at once, and say so, if that read is refused or fails,
|
|
6
6
|
and not to wait for an approval. If it returns that way, stop that subagent. Run the same
|
|
7
7
|
command yourself, then spawn a fresh subagent with the returned prompt and the same handoff.
|
|
8
8
|
Give it the selected framework, frontend, model, approved plan, selected documentation URLs,
|
|
9
9
|
and validation evidence. Give it the documentation policy recorded during framework
|
|
10
10
|
selection or conversion planning. On a conversion, also give it the frozen criterion. Give
|
|
11
|
-
it the paths that had uncommitted changes when the run started.
|
|
12
|
-
|
|
11
|
+
it the paths that had uncommitted changes when the run started.
|
|
12
|
+
|
|
13
|
+
When you start a subagent in the background, tell the developer in one sentence what it
|
|
14
|
+
does. Then send nothing more until it returns. This holds for a repair subagent too.
|
|
13
15
|
|
|
14
16
|
Give it the frontend files that publish the page context and register the tools, by path,
|
|
15
17
|
from the Files changed sections the implementation returned. The subagent sends what those
|
|
@@ -32,16 +34,13 @@ device control, and have it report `skipped-cloned-starter` rather than a missin
|
|
|
32
34
|
capability: nothing was unavailable, the run declined to spend it. That outcome completes
|
|
33
35
|
the run.
|
|
34
36
|
|
|
35
|
-
Give the subagent this guide for continued-development tools:
|
|
36
|
-
https://docs.copilotkit.ai/build-with-agents.md
|
|
37
|
-
|
|
38
37
|
Wait for the subagent to finish. Its result arrives as a notification. Do not sleep to
|
|
39
38
|
pass the time.
|
|
40
39
|
|
|
41
40
|
Record what that proof returned before you route on it:
|
|
42
41
|
|
|
43
42
|
```text
|
|
44
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
43
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard proof --step round-trip --outcome <passed|failed|skipped>
|
|
45
44
|
```
|
|
46
45
|
|
|
47
46
|
Report the gate whatever it returned. A proof that never ran is `skipped`, not failed. A
|
|
@@ -53,7 +52,7 @@ the next one starts. Until then, `onboard proof-check` counts the next failure a
|
|
|
53
52
|
If the CLI prints `## Stop: this run deleted or moved the developer's work` instead of a
|
|
54
53
|
step, show the developer the list it printed, and run what they choose:
|
|
55
54
|
the `onboard restore` command the tripwire stop prints, which names each deleted file, or
|
|
56
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
55
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard tripwire --continue`. Then read the step again. If
|
|
57
56
|
you cannot ask, use the route-out rules below.
|
|
58
57
|
|
|
59
58
|
Never repair, reset, or revert a file the developer changed outside this run. That holds for
|
|
@@ -66,16 +65,15 @@ This prompt pauses for the developer in several places. Before you end your turn
|
|
|
66
65
|
for the developer, report the pause:
|
|
67
66
|
|
|
68
67
|
```text
|
|
69
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
68
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
70
69
|
```
|
|
71
70
|
|
|
72
71
|
If the proof result starts with `Status: passed`, run
|
|
73
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
74
|
-
the full round trip is core success even if a continued-development tool fails. A skipped
|
|
72
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read proof/complete`. A skipped
|
|
75
73
|
surface outcome still enters `proof/complete`. The CLI records `skipped-cloned-starter` and
|
|
76
74
|
`skipped-no-browser-tool` after a passed round trip as complete, and `skipped-no-device` as
|
|
77
75
|
blocked. Do not describe a
|
|
78
|
-
skipped surface as proved.
|
|
76
|
+
skipped surface as proved.
|
|
79
77
|
|
|
80
78
|
A passed result can carry the surface-check outcome `failed` with the cause
|
|
81
79
|
`browser-control-unresponsive`. It means that the browser tool stopped answering, not that
|
|
@@ -97,7 +95,7 @@ credentials step found the model key missing, or the vendor refused it, and the
|
|
|
97
95
|
started nothing. Do not send it to a repair worker. Run the `onboard credentials` command
|
|
98
96
|
that its detail names, and act on its answer as `credentials/settle-credentials` says. Ask
|
|
99
97
|
the developer its question, report the pause with
|
|
100
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
98
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-model-credential`, and
|
|
101
99
|
end your turn. When the key settles, run the proof subagent again. If you have not recorded
|
|
102
100
|
this attempt yet, record it first, with the outcome it ended with. This attempt does not
|
|
103
101
|
count toward the three.
|
|
@@ -124,7 +122,7 @@ fault, so this is not a route-out. Ask the developer to send one message in the
|
|
|
124
122
|
thread, and to give you that thread's id. Give them the app URL and the request words from
|
|
125
123
|
the result. Tell them where the id is: in the browser's network tools, the request the page
|
|
126
124
|
sends to the runtime URL carries `threadId` in its body. Report the pause with
|
|
127
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
125
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer` and end your
|
|
128
126
|
turn. When the developer gives the id, start a new proof subagent with
|
|
129
127
|
the full original proof handoff, the pinned Step 1 record, and the thread id. Tell it to run
|
|
130
128
|
the proof checks with `--thread <id>`. This attempt does not count toward the three. Use the
|
|
@@ -167,19 +165,19 @@ that returns blocked because the repair needs a file the plan does not name. Han
|
|
|
167
165
|
way `implementation/build-and-validate` does: pause and ask the developer, add the file to
|
|
168
166
|
the handoff if they allow it, and use the route-out rules below if they decline. Then spawn a
|
|
169
167
|
fresh repair worker with this repair handoff, not the whole-plan implementation handoff: the
|
|
170
|
-
plan, the proof evidence, the paths that had uncommitted changes when the run started,
|
|
171
|
-
files the developer allowed
|
|
168
|
+
plan, the proof evidence, the paths that had uncommitted changes when the run started, and
|
|
169
|
+
the files the developer allowed.
|
|
172
170
|
|
|
173
171
|
Before you end your turn to wait for the developer, report the pause:
|
|
174
172
|
|
|
175
173
|
```text
|
|
176
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
174
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
177
175
|
```
|
|
178
176
|
|
|
179
177
|
Restart each project-owned process changed by the repair. Then spawn a fresh proof subagent
|
|
180
178
|
with the full original proof handoff, failed proof evidence, and new validation evidence.
|
|
181
179
|
This handoff includes the plan, documentation, policy, current process IDs, ports,
|
|
182
|
-
surface-control state,
|
|
180
|
+
surface-control state, and the failed attempt's pinned Step 1
|
|
183
181
|
record. Carry that record so the second attempt sends the request the first one failed on.
|
|
184
182
|
A fresh subagent given the plan alone writes its own request where the plan named none, and
|
|
185
183
|
its grounding check then speaks about a question the failed attempt never asked.
|
|
@@ -191,7 +189,7 @@ takes the developer path above instead.
|
|
|
191
189
|
|
|
192
190
|
Route out only when the failure is not yours to fix, when the same proof still fails after
|
|
193
191
|
three attempts, or when no evidence of the round trip can be produced. In those cases run
|
|
194
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
192
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`. The stack is supported:
|
|
195
193
|
this run did not finish, which is a different ending and a different report. All three are
|
|
196
194
|
about the round trip itself. A round trip that proved is not one of them, whatever failed
|
|
197
195
|
after it.
|
|
@@ -202,7 +200,7 @@ friction command follows the telemetry setting the developer already chose, so i
|
|
|
202
200
|
separate question.
|
|
203
201
|
|
|
204
202
|
```text
|
|
205
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
203
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard friction --phase stop --category <slug> --message "<sentences>"
|
|
206
204
|
```
|
|
207
205
|
|
|
208
206
|
`--message` takes one or two sentences: the step you stopped at and what stopped it.
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
The developer can still be signing in. Keep reading the login process as
|
|
4
4
|
`authenticate/start` says while this phase runs. This phase inspects the project and proves
|
|
5
5
|
what this environment can drive. Do not change application code here, and do not ask the
|
|
6
|
-
developer a setup question yet: every read-only
|
|
6
|
+
developer a setup question yet, except the setup message below: every other read-only
|
|
7
|
+
investigation finishes first.
|
|
7
8
|
|
|
8
9
|
## Rules for the whole run
|
|
9
10
|
|
|
@@ -14,10 +15,10 @@ own bookkeeping. Say what the run is doing in the developer's words instead.
|
|
|
14
15
|
|
|
15
16
|
Every later command must run from the directory this run is bound to. Elsewhere, the
|
|
16
17
|
command cannot find its run and refuses. Do not report that refusal as a stop. Run
|
|
17
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
18
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard start --run <onboarding_run_id>` where you are
|
|
18
19
|
standing, then run the refused command again.
|
|
19
20
|
|
|
20
|
-
If you no longer hold the id, run `npx --prefer-offline --yes copilotkit@4.
|
|
21
|
+
If you no longer hold the id, run `npx --prefer-offline --yes copilotkit@4.28.0 onboard start` in the
|
|
21
22
|
directory this run started in, with no `--run` and no `--intent`. It reprints the id
|
|
22
23
|
and starts nothing. An id this project does not already hold starts a second
|
|
23
24
|
run, and the work already done stops counting toward the first.
|
|
@@ -82,7 +83,7 @@ When that thing arrives, continue. A pause waits for one of two things:
|
|
|
82
83
|
Before you end your turn to wait for the developer, report the pause:
|
|
83
84
|
|
|
84
85
|
```text
|
|
85
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
86
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
86
87
|
```
|
|
87
88
|
|
|
88
89
|
When the answer or the result arrives, continue from the step that paused. Do not read an
|
|
@@ -102,7 +103,7 @@ Both research subagents failing means this harness has no working subagent at al
|
|
|
102
103
|
is worth recording once:
|
|
103
104
|
|
|
104
105
|
```text
|
|
105
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
106
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase delegation-unavailable
|
|
106
107
|
```
|
|
107
108
|
|
|
108
109
|
Then say once, in your own words, that this environment has no working subagents. Say that
|
|
@@ -112,14 +113,14 @@ For the rest of this run, do not spawn a subagent where a prompt tells you to. R
|
|
|
112
113
|
`subagent/` brief yourself and follow it.
|
|
113
114
|
|
|
114
115
|
Before you ask the developer any setup question, finish every read-only investigation and
|
|
115
|
-
preflight check in this section.
|
|
116
|
+
preflight check in this section. The setup message below is the one exception.
|
|
116
117
|
|
|
117
118
|
Prepare two research assignments. Before you spawn either subagent, run these two
|
|
118
119
|
read-only commands yourself, from the target project directory:
|
|
119
120
|
|
|
120
121
|
```text
|
|
121
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
122
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
122
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard read subagent/inspect-repository
|
|
123
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard inspect --json
|
|
123
124
|
```
|
|
124
125
|
|
|
125
126
|
Give each research subagent the prompt that the first command returns, the whole JSON that
|
|
@@ -137,11 +138,38 @@ Start both research subagents in parallel:
|
|
|
137
138
|
2. Spawn a second research subagent. Assign it the environment evidence packet.
|
|
138
139
|
3. Start both research subagents. Then continue.
|
|
139
140
|
|
|
141
|
+
## Show the setup message while the research runs
|
|
142
|
+
|
|
143
|
+
For some folders the setup message needs nothing that the research finds. Then the
|
|
144
|
+
developer reads it while the research runs. That is the case when the developer's request
|
|
145
|
+
names no Channel (as `research/route` lists), and the `onboard inspect` JSON shows one of:
|
|
146
|
+
|
|
147
|
+
- `appDiscovery.reason` is `no-project`: the folder holds no project.
|
|
148
|
+
- A frontend and no agent: `detection.frontend` has a `match`, and
|
|
149
|
+
`detection.agentFramework` has an empty `matched` and an empty `unmatched`.
|
|
150
|
+
|
|
151
|
+
Once `login --json` has emitted `type: completed`, read the setup questions now:
|
|
152
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read setup/questions`. Record the frontend from
|
|
153
|
+
`detection` first.
|
|
154
|
+
Show the message. Before you end your turn to wait for the developer, report the pause:
|
|
155
|
+
|
|
156
|
+
```text
|
|
157
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Then continue below: the preflight and the merge do not wait for the reply. When the
|
|
161
|
+
developer replies, record the reply as that prompt says. If `research/route` sends you back
|
|
162
|
+
to the setup questions before the developer replied, do not show the message again: the
|
|
163
|
+
pause above still holds.
|
|
164
|
+
|
|
165
|
+
In any other folder, such as one with an agent, the research can change the message. Keep
|
|
166
|
+
the research first.
|
|
167
|
+
|
|
140
168
|
The research is under way. Continue to the surface-control preflight while it runs:
|
|
141
169
|
|
|
142
170
|
```text
|
|
143
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
171
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard read research/preflight
|
|
144
172
|
```
|
|
145
173
|
|
|
146
174
|
If inspection stops onboarding, run
|
|
147
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
175
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`.
|
|
@@ -51,11 +51,11 @@ waits on the developer, end your turn and wait for it: that is a pause.
|
|
|
51
51
|
Before you end your turn to wait for the developer, report the pause:
|
|
52
52
|
|
|
53
53
|
```text
|
|
54
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
54
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard checkpoint --phase awaiting-developer
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
When both research results are merged and sign-in is done, run
|
|
58
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
58
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read research/route`.
|
|
59
59
|
|
|
60
60
|
If inspection stops onboarding, run
|
|
61
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
61
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`.
|
|
@@ -32,8 +32,8 @@ Where the device probe found no booted device, that is the whole finding.
|
|
|
32
32
|
Then merge the research:
|
|
33
33
|
|
|
34
34
|
```text
|
|
35
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
35
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard read research/merge
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
If inspection stops onboarding, run
|
|
39
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
39
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`.
|
|
@@ -21,7 +21,7 @@ On any one of them, run this before you read the three findings below, and witho
|
|
|
21
21
|
the purpose question:
|
|
22
22
|
|
|
23
23
|
```text
|
|
24
|
-
npx --prefer-offline --yes copilotkit@4.
|
|
24
|
+
npx --prefer-offline --yes copilotkit@4.28.0 onboard read feature/channels/start
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Name the provider to that node so it does not ask again. A `/slack` page names Slack. A
|
|
@@ -82,7 +82,7 @@ settle these three from your own reading of the project. Each one comes from the
|
|
|
82
82
|
packets or it is not proved.
|
|
83
83
|
|
|
84
84
|
If all three are proved, prove the live starting state before any project file changes. Run
|
|
85
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
85
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read proof/oss-baseline`.
|
|
86
86
|
|
|
87
87
|
Route there before any other question to the developer. The questions after this prompt
|
|
88
88
|
select a framework and a frontend that the findings already name, so a developer who
|
|
@@ -91,10 +91,16 @@ application is what that node protects. Whether it works is what the proof decid
|
|
|
91
91
|
these three findings.
|
|
92
92
|
|
|
93
93
|
For every other combination of the three, run
|
|
94
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
94
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read setup/questions`. That node asks every
|
|
95
95
|
remaining setup question in one message, including what the project is for when nothing
|
|
96
96
|
proves it.
|
|
97
97
|
|
|
98
|
+
On a blank folder the setup message can go out before the research ends. If the setup
|
|
99
|
+
message is already out and the developer has not replied, record what the findings settle
|
|
100
|
+
with `onboard setup-answers`, then end your turn and send the developer nothing. Report
|
|
101
|
+
the pause with `onboard checkpoint --phase awaiting-developer` first. Do not remind them,
|
|
102
|
+
and do not restate the setup. Their reply continues the run.
|
|
103
|
+
|
|
98
104
|
If authentication or inspection stops onboarding, run
|
|
99
|
-
`npx --prefer-offline --yes copilotkit@4.
|
|
105
|
+
`npx --prefer-offline --yes copilotkit@4.28.0 onboard read stopped/run-failed`. Neither says anything
|
|
100
106
|
about whether this project's stack is supported, which is not yet known at this point.
|