copilotkit 4.9.2 → 4.9.4
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/cli-build-info.json +8 -8
- package/index.js +134 -20
- package/onboarding/index.json +1 -0
- package/onboarding/prompts/authenticate/start.md +78 -33
- package/onboarding/prompts/credentials/finalize-plan.md +21 -26
- package/onboarding/prompts/credentials/plan.md +37 -25
- package/onboarding/prompts/fallback/best-effort.md +22 -11
- package/onboarding/prompts/framework/ag2.md +4 -15
- package/onboarding/prompts/framework/agno.md +4 -15
- package/onboarding/prompts/framework/built-in.md +4 -14
- package/onboarding/prompts/framework/claude-sdk-python.md +4 -14
- package/onboarding/prompts/framework/claude-sdk-typescript.md +4 -14
- package/onboarding/prompts/framework/crewai-flows.md +11 -23
- package/onboarding/prompts/framework/deep-agents.md +4 -15
- package/onboarding/prompts/framework/google-adk.md +3 -15
- package/onboarding/prompts/framework/langgraph-fastapi.md +3 -15
- package/onboarding/prompts/framework/langgraph-python.md +3 -15
- package/onboarding/prompts/framework/langgraph-typescript.md +3 -15
- package/onboarding/prompts/framework/llamaindex.md +4 -15
- package/onboarding/prompts/framework/mastra.md +3 -15
- package/onboarding/prompts/framework/ms-agent-dotnet.md +18 -49
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +20 -30
- package/onboarding/prompts/framework/ms-agent-python.md +3 -15
- package/onboarding/prompts/framework/pydantic-ai.md +4 -14
- package/onboarding/prompts/framework/strands-python.md +4 -14
- package/onboarding/prompts/framework/strands-typescript.md +4 -14
- package/onboarding/prompts/frontend/angular.md +9 -19
- package/onboarding/prompts/frontend/nextjs.md +6 -16
- package/onboarding/prompts/frontend/plan.md +9 -14
- package/onboarding/prompts/frontend/react-native.md +7 -15
- package/onboarding/prompts/frontend/react-spa.md +5 -15
- package/onboarding/prompts/frontend/vue.md +8 -15
- package/onboarding/prompts/implementation/build-and-validate.md +5 -11
- package/onboarding/prompts/proof/complete.md +22 -5
- package/onboarding/prompts/proof/oss-baseline.md +3 -3
- package/onboarding/prompts/proof/round-trip.md +28 -23
- package/onboarding/prompts/starter/clone.md +4 -4
- package/onboarding/prompts/subagent/create-plan.md +4 -11
- package/onboarding/prompts/subagent/implement-and-validate.md +2 -8
- package/onboarding/prompts/subagent/inspect-repository.md +14 -7
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +12 -18
- package/onboarding/prompts/unsupported/no-validated-path.md +2 -2
- package/package.json +1 -1
- package/release/release-tool.js +1 -1
|
@@ -45,7 +45,7 @@ Name the debugging surface this journey's frontend can reach, rather than the on
|
|
|
45
45
|
of the documentation leads with. For a web frontend it is the CopilotKit Inspector. For
|
|
46
46
|
React Native there is no Inspector: it is a browser overlay built on a DOM custom element,
|
|
47
47
|
and `@copilotkit/react-native` does not ship it. Give a mobile developer
|
|
48
|
-
`npx --yes copilotkit@4.9.
|
|
48
|
+
`npx --yes copilotkit@4.9.4 verify --round-trip`, the runtime's own log, the AG-UI
|
|
49
49
|
Event Inspector in the CopilotKit VS Code extension, and the Intelligence thread view
|
|
50
50
|
instead. Naming the Inspector to a developer who cannot open it costs them the time it
|
|
51
51
|
takes to conclude their own wiring is broken.
|
|
@@ -57,7 +57,7 @@ the friction commands without another developer question. The CLI telemetry gate
|
|
|
57
57
|
whether the report is sent.
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
npx --yes copilotkit@4.9.
|
|
60
|
+
npx --yes copilotkit@4.9.4 onboard friction --category <slug> --cost-seconds <seconds>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Write one or two sentences on the command's standard input. Pick one category from
|
|
@@ -74,14 +74,14 @@ Tell the developer when you send a friction report. Do not quote or summarize th
|
|
|
74
74
|
unless the developer asks. If the CLI says that telemetry is disabled or unavailable,
|
|
75
75
|
state that the report was not sent and continue without another question.
|
|
76
76
|
|
|
77
|
-
When the evidence is gathered, run `npx --yes copilotkit@4.9.
|
|
77
|
+
When the evidence is gathered, run `npx --yes copilotkit@4.9.4 onboard complete`, carrying
|
|
78
78
|
the surface-check outcome the proof subagent returned. Pass exactly one flag, and pass the
|
|
79
79
|
one that matches this journey's surface.
|
|
80
80
|
|
|
81
81
|
For a web frontend -- React SPA, Next.js, Angular, Vue:
|
|
82
82
|
|
|
83
83
|
```text
|
|
84
|
-
npx --yes copilotkit@4.9.
|
|
84
|
+
npx --yes copilotkit@4.9.4 onboard complete --visual-check <outcome>
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`.
|
|
@@ -89,7 +89,7 @@ The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`.
|
|
|
89
89
|
For React Native:
|
|
90
90
|
|
|
91
91
|
```text
|
|
92
|
-
npx --yes copilotkit@4.9.
|
|
92
|
+
npx --yes copilotkit@4.9.4 onboard complete --device-check <outcome>
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
The outcome is one of `performed`, `skipped-no-device`, or `failed`.
|
|
@@ -102,3 +102,20 @@ Pass the outcome you were given rather than the one you wanted. Anything but `pe
|
|
|
102
102
|
prints what the missing check leaves unverified and ends this run as blocked. That output
|
|
103
103
|
is the developer's finding, so carry it into the summary rather than restating it as a
|
|
104
104
|
smaller caveat.
|
|
105
|
+
|
|
106
|
+
If the round trip proved and something after it still blocked this run, add `--blocked-by`
|
|
107
|
+
to the same command:
|
|
108
|
+
|
|
109
|
+
```text
|
|
110
|
+
npx --yes copilotkit@4.9.4 onboard complete --visual-check performed --blocked-by <cause>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The cause is one of `hosted-dashboard` for a managed dashboard that did not load or refused
|
|
114
|
+
a sign-in, `inspector` for a debugging surface that did not open, `plan-excluded-capability`
|
|
115
|
+
for a capability the approved plan had already excluded for this framework, and `other` for
|
|
116
|
+
anything else. Pick `other` rather than leaving the flag off. The command ends the run as
|
|
117
|
+
blocked and prints what the blocker leaves unverified.
|
|
118
|
+
|
|
119
|
+
This is the flag for a journey that worked. It is not a way to report an unsupported path,
|
|
120
|
+
and a blocked run here is still owed the full handoff above: the URL, the start command,
|
|
121
|
+
the process IDs, and the versions this conversion changed.
|
|
@@ -10,11 +10,11 @@ processes and their ignored runtime files is allowed.
|
|
|
10
10
|
|
|
11
11
|
If the subagent proves the `both-oss` predicate, keep its evidence with the plan. If it
|
|
12
12
|
proves another supported starting state, record that state. In either case, run
|
|
13
|
-
`npx --yes copilotkit@4.9.
|
|
13
|
+
`npx --yes copilotkit@4.9.4 onboard read credentials/plan`.
|
|
14
14
|
|
|
15
15
|
If it cannot identify the running process safely, exposes a secret, or finds a baseline
|
|
16
16
|
failure that cannot be classified, run
|
|
17
|
-
`npx --yes copilotkit@4.9.
|
|
17
|
+
`npx --yes copilotkit@4.9.4 onboard read unsupported/no-validated-path`.
|
|
18
18
|
|
|
19
19
|
## Baseline proof subagent brief
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ Prove the live runtime in this order:
|
|
|
40
40
|
4. Confirm from project files that the runtime constructor passes a `runner` option rather
|
|
41
41
|
than an `intelligence` option. A package, import, project file, or key is not use proof.
|
|
42
42
|
5. Run
|
|
43
|
-
`npx --yes copilotkit@4.9.
|
|
43
|
+
`npx --yes copilotkit@4.9.4 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
|
|
44
44
|
with the runtime URL or auth header options that this project needs. Require exit zero
|
|
45
45
|
and the JSON `ok` field to be `true`.
|
|
46
46
|
6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
|
|
@@ -4,30 +4,41 @@ Do not do the proof work yourself. Spawn one proof subagent.
|
|
|
4
4
|
|
|
5
5
|
Give the subagent the full text of the proof brief at the end of this prompt, the selected
|
|
6
6
|
framework, frontend, model, approved plan, selected documentation URLs, and validation
|
|
7
|
-
evidence.
|
|
7
|
+
evidence. Give it the documentation policy recorded during framework selection.
|
|
8
8
|
|
|
9
9
|
Give it the browser or device control you recorded in the preflight as well. The subagent
|
|
10
10
|
drives the surface and cannot see your environment, so without that finding it spends the
|
|
11
11
|
step discovering what you already know. A subagent told it has no control for the surface
|
|
12
12
|
this frontend needs reports the skip outcome rather than looking for a way around it.
|
|
13
13
|
|
|
14
|
-
Wait for the subagent to finish.
|
|
15
|
-
|
|
16
14
|
Give the subagent this guide for continued-development tools:
|
|
17
15
|
https://docs.copilotkit.ai/build-with-agents.md
|
|
18
16
|
|
|
17
|
+
Wait for the subagent to finish.
|
|
18
|
+
|
|
19
19
|
If the subagent proves the complete round trip, run
|
|
20
|
-
`npx --yes copilotkit@4.9.
|
|
20
|
+
`npx --yes copilotkit@4.9.4 onboard read proof/complete`. The round trip proves core success
|
|
21
21
|
even if a continued-development tool fails. Keep the Skills and MCP results separate from
|
|
22
22
|
the proof result.
|
|
23
23
|
|
|
24
|
+
If the round trip proves and something after it blocks this run anyway -- the managed
|
|
25
|
+
Intelligence dashboard, the debugging surface, or a capability the approved plan already
|
|
26
|
+
excluded for this framework -- read `proof/complete` all the same, with the command above,
|
|
27
|
+
and carry the blocker there with `--blocked-by`.
|
|
28
|
+
The stop terminal is for a journey this release cannot carry. It is
|
|
29
|
+
not for a journey that worked and then hit a wall: routing a proved run there tells the
|
|
30
|
+
developer that a framework and frontend that just worked are unsupported, and hands them a
|
|
31
|
+
stop report instead of the application they now have.
|
|
32
|
+
|
|
24
33
|
If the round trip fails, decide which kind of failure it is before you route. A failure
|
|
25
34
|
caused by a file this run created or changed is a defect in the new work. Send it back to
|
|
26
35
|
the proof subagent to fix and prove again, at most three attempts.
|
|
27
36
|
|
|
28
37
|
Route out only when the failure is not yours to fix, when the same proof still fails after
|
|
29
38
|
three attempts, or when no evidence of the round trip can be produced. In those cases run
|
|
30
|
-
`npx --yes copilotkit@4.9.
|
|
39
|
+
`npx --yes copilotkit@4.9.4 onboard read unsupported/no-validated-path`. All three are
|
|
40
|
+
about the round trip itself. A round trip that proved is not one of them, whatever failed
|
|
41
|
+
after it.
|
|
31
42
|
|
|
32
43
|
## Proof subagent brief
|
|
33
44
|
|
|
@@ -37,9 +48,8 @@ Everything below the rule is the subagent's prompt. Give it verbatim.
|
|
|
37
48
|
|
|
38
49
|
# Prove the complete round trip
|
|
39
50
|
|
|
40
|
-
Use the proof steps and documentation URLs from the approved plan.
|
|
41
|
-
|
|
42
|
-
Do not use remembered CopilotKit instructions.
|
|
51
|
+
Use the proof steps and documentation URLs from the approved plan. Follow the documentation
|
|
52
|
+
policy the main coding agent gives you before you start.
|
|
43
53
|
|
|
44
54
|
Run the steps below in the order they appear. They are the proof. Do not design a
|
|
45
55
|
different sequence of your own, and do not drop a step because an earlier one looked
|
|
@@ -52,11 +62,6 @@ the record. That directory holds regenerable evidence rather than application co
|
|
|
52
62
|
a browser or device tool writes to a location of its own, keep that location and record
|
|
53
63
|
it instead.
|
|
54
64
|
|
|
55
|
-
A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
|
|
56
|
-
not a fact about the page. Retrieve the same URL a second way before you judge it. Run
|
|
57
|
-
`curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
|
|
58
|
-
documentation gap only after a second method also fails.
|
|
59
|
-
|
|
60
65
|
Gather what you need in as few commands as possible. Combine independent reads into one
|
|
61
66
|
command rather than running them one at a time. Split a command only when its result decides
|
|
62
67
|
what you run next.
|
|
@@ -145,7 +150,7 @@ IPv6 only, so an IPv4 literal fails against the correct port.
|
|
|
145
150
|
## Step 4 -- Check the wiring
|
|
146
151
|
|
|
147
152
|
With both running, check the wiring in one command before you open a browser:
|
|
148
|
-
`npx --yes copilotkit@4.9.
|
|
153
|
+
`npx --yes copilotkit@4.9.4 verify --json`. Add `--runtime-url` when the runtime is not at
|
|
149
154
|
`http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
|
|
150
155
|
alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
|
|
151
156
|
that is not a pass before the browser, because a browser failure stacked on broken wiring
|
|
@@ -165,7 +170,7 @@ Record that and move on -- there is nothing to repair.
|
|
|
165
170
|
|
|
166
171
|
## Step 5 -- Prove that the agent runs
|
|
167
172
|
|
|
168
|
-
Run `npx --yes copilotkit@4.9.
|
|
173
|
+
Run `npx --yes copilotkit@4.9.4 verify --round-trip --json`. It sends one request through
|
|
169
174
|
the runtime and reads the answer back from the thread, so it separates an agent that is
|
|
170
175
|
configured from an agent that works. Use `--agent <id>` when the runtime declares more
|
|
171
176
|
than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
|
|
@@ -184,20 +189,20 @@ generative UI component actually rendering, and no command-line check reaches an
|
|
|
184
189
|
It is not optional polish: a run that skips it has proven the agent and not the journey,
|
|
185
190
|
and the graph ends such a run as blocked rather than complete.
|
|
186
191
|
|
|
187
|
-
Use the surface control the main coding agent recorded for your environment.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
Use the surface control the main coding agent recorded for your environment. It either had
|
|
193
|
+
one already or registered one before this step, so that finding is the answer and there is
|
|
194
|
+
nothing here for you to go looking for. Do not add a browser driver or a device tool to this
|
|
195
|
+
project: a devDependency and a browser download land in the diff and tax a repository that
|
|
196
|
+
never asked for one, which is a different thing from the server registered against the
|
|
197
|
+
coding agent. If nothing in your environment can drive the surface this journey needs, skip
|
|
198
|
+
this step rather than installing one, and report the skip outcome named below.
|
|
192
199
|
|
|
193
200
|
Never report a result you did not see, on either surface.
|
|
194
201
|
|
|
195
202
|
### Step 6a -- Web frontends: React SPA, Next.js, Angular, Vue 3
|
|
196
203
|
|
|
197
204
|
The surface is a browser, and it also covers browser-origin CORS and CSP, which a CLI
|
|
198
|
-
request never exercises.
|
|
199
|
-
you are running as, the same way step 9 configures the CopilotKit documentation MCP
|
|
200
|
-
server.
|
|
205
|
+
request never exercises. Drive it with the browser control step 6 named.
|
|
201
206
|
|
|
202
207
|
1. Open the frontend URL from step 2 and wait for the page to finish loading.
|
|
203
208
|
2. Take one page snapshot. Record whether the CopilotKit surface is on the page. A page
|
|
@@ -36,7 +36,7 @@ instruction in this prompt.
|
|
|
36
36
|
|
|
37
37
|
If the developer did not name an Intelligence project, list the available projects:
|
|
38
38
|
|
|
39
|
-
`npx --yes copilotkit@4.9.
|
|
39
|
+
`npx --yes copilotkit@4.9.4 project list --json`
|
|
40
40
|
|
|
41
41
|
Ask the developer to select a project or give a name for a new project. If the developer
|
|
42
42
|
already gave this answer, do not ask again. Do not read a secret value. Do not show or
|
|
@@ -46,7 +46,7 @@ Run the command from the parent directory. Do not inspect another entry in the p
|
|
|
46
46
|
directory. Replace each placeholder with the recorded value. Do not run a placeholder as
|
|
47
47
|
a shell argument.
|
|
48
48
|
|
|
49
|
-
`npx --yes copilotkit@4.9.
|
|
49
|
+
`npx --yes copilotkit@4.9.4 init --name <project-name> --framework <framework-id> --channel none --no-banner --project <slug-or-id> --install`
|
|
50
50
|
|
|
51
51
|
If the developer wants a new project, use `--create <name>` instead of
|
|
52
52
|
`--project <slug-or-id>`. If the developer asked to skip the dependency install, use
|
|
@@ -60,8 +60,8 @@ account. The command does not need terminal input.
|
|
|
60
60
|
If the command succeeds, do not rebuild the starter by hand. Inspect only the generated
|
|
61
61
|
paths inside the target directory. Record the files, install result, project connection,
|
|
62
62
|
and validation commands. Then run
|
|
63
|
-
`npx --yes copilotkit@4.9.
|
|
63
|
+
`npx --yes copilotkit@4.9.4 onboard read proof/round-trip`.
|
|
64
64
|
|
|
65
65
|
If the command fails, report its exact error and do not claim that the starter is ready.
|
|
66
66
|
Then run
|
|
67
|
-
`npx --yes copilotkit@4.9.
|
|
67
|
+
`npx --yes copilotkit@4.9.4 onboard read unsupported/no-validated-path`.
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
# Create the onboarding plan
|
|
2
2
|
|
|
3
3
|
Use the selected framework, frontend, model, repository findings, and documentation URLs
|
|
4
|
-
from the main coding agent.
|
|
5
|
-
another. Do not use remembered CopilotKit instructions.
|
|
6
|
-
|
|
7
|
-
A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
|
|
8
|
-
not a fact about the page. Retrieve the same URL a second way before you judge it. Run
|
|
9
|
-
`curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
|
|
10
|
-
documentation gap only after a second method also fails.
|
|
4
|
+
from the main coding agent. Follow the documentation policy it gives you.
|
|
11
5
|
|
|
12
6
|
Name the application the project asks for, and plan that application. Each documentation
|
|
13
7
|
page teaches through one worked example, and that example carries a domain of its own.
|
|
14
|
-
The domain belongs to the page.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
domain of an example.
|
|
8
|
+
The domain belongs to the page. Use the purpose from the repository findings, or the
|
|
9
|
+
developer outcome if the repository purpose was unproved. Do not ask for it again. Where
|
|
10
|
+
the documentation example differs from that purpose, the project wins.
|
|
18
11
|
|
|
19
12
|
Read only inside the project directory. Answer an API question from the documentation
|
|
20
13
|
URLs you were given, not from another checkout on this machine.
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
# Implement and validate the approved plan
|
|
2
2
|
|
|
3
|
-
Use only the approved plan and the selected documentation URLs.
|
|
4
|
-
|
|
5
|
-
Do not use remembered CopilotKit instructions.
|
|
6
|
-
|
|
7
|
-
A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
|
|
8
|
-
not a fact about the page. Retrieve the same URL a second way before you judge it. Run
|
|
9
|
-
`curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
|
|
10
|
-
documentation gap only after a second method also fails.
|
|
3
|
+
Use only the approved plan and the selected documentation URLs. Follow the documentation
|
|
4
|
+
policy the main coding agent gives you before you change the project.
|
|
11
5
|
|
|
12
6
|
Add only the props, options, and imports that appear in the fetched documentation. A
|
|
13
7
|
remembered API from an earlier CopilotKit version will fail type checking against this
|
|
@@ -3,14 +3,20 @@
|
|
|
3
3
|
Inspect the repository without changing it. Find evidence for:
|
|
4
4
|
|
|
5
5
|
- what the project is for, in the project's own words
|
|
6
|
-
-
|
|
7
|
-
- any
|
|
8
|
-
-
|
|
6
|
+
- the target app or runtime directory that owns `.env` and the CopilotKit setup
|
|
7
|
+
- whether the target project directory contains any entries
|
|
8
|
+
- any existing agent framework and frontend
|
|
9
|
+
- current CopilotKit integration and configuration, including whether
|
|
10
|
+
`.copilotkit/project.json` has `projectId`, `projectSlug`, and `clerkOrgId`
|
|
9
11
|
- authentication boundaries
|
|
10
|
-
- names of required credential variables
|
|
12
|
+
- names of required credential variables and whether `.env` has a non-empty
|
|
13
|
+
`INTELLIGENCE_API_KEY`
|
|
14
|
+
- retain the `.env` modification time for a later comparison without returning it
|
|
11
15
|
- package manager and lockfile
|
|
12
16
|
- required toolchains and their installed versions
|
|
13
17
|
- declared ports and whether each port is available
|
|
18
|
+
- whether the runtime constructor uses a `runner` option, an `intelligence` option, or
|
|
19
|
+
neither can be proved from project files
|
|
14
20
|
- CopilotKit package versions and package compatibility risks
|
|
15
21
|
|
|
16
22
|
For the CopilotKit versions, report the exact installed version of every `@copilotkit/*`
|
|
@@ -29,6 +35,7 @@ what you run next. Keep this preflight read-only. Do not install packages, stop
|
|
|
29
35
|
or change a port. Check only the toolchains and ports that repository files require.
|
|
30
36
|
|
|
31
37
|
Return the file paths and a short finding for each item. State each absent or unproved item.
|
|
32
|
-
Do not read, print, or return secret values.
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
Do not read, print, or return secret values. For `.env` and `.copilotkit/project.json`
|
|
39
|
+
checks, return only paths, presence checks, and missing field names. Do not read a file
|
|
40
|
+
outside the project directory. Do not run or return another onboarding command. Stop after
|
|
41
|
+
returning the findings to the main coding agent.
|
|
@@ -16,7 +16,7 @@ Prove the live runtime in this order:
|
|
|
16
16
|
4. Confirm from project files that the runtime constructor passes a `runner` option rather
|
|
17
17
|
than an `intelligence` option. A package, import, project file, or key is not use proof.
|
|
18
18
|
5. Run
|
|
19
|
-
`npx --yes copilotkit@4.9.
|
|
19
|
+
`npx --yes copilotkit@4.9.4 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
|
|
20
20
|
with the runtime URL or auth header options that this project needs. Require exit zero
|
|
21
21
|
and the JSON `ok` field to be `true`.
|
|
22
22
|
6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Prove the complete round trip
|
|
2
2
|
|
|
3
|
-
Use the proof steps and documentation URLs from the approved plan.
|
|
4
|
-
|
|
5
|
-
Do not use remembered CopilotKit instructions.
|
|
3
|
+
Use the proof steps and documentation URLs from the approved plan. Follow the documentation
|
|
4
|
+
policy the main coding agent gives you before you start.
|
|
6
5
|
|
|
7
6
|
Run the steps below in the order they appear. They are the proof. Do not design a
|
|
8
7
|
different sequence of your own, and do not drop a step because an earlier one looked
|
|
@@ -15,11 +14,6 @@ the record. That directory holds regenerable evidence rather than application co
|
|
|
15
14
|
a browser or device tool writes to a location of its own, keep that location and record
|
|
16
15
|
it instead.
|
|
17
16
|
|
|
18
|
-
A fetch tool that refuses a URL, or fails to reach it, reports a limit of the tool and
|
|
19
|
-
not a fact about the page. Retrieve the same URL a second way before you judge it. Run
|
|
20
|
-
`curl -fsSL <url>`, or read the same page without the `.md` suffix. Report a
|
|
21
|
-
documentation gap only after a second method also fails.
|
|
22
|
-
|
|
23
17
|
Gather what you need in as few commands as possible. Combine independent reads into one
|
|
24
18
|
command rather than running them one at a time. Split a command only when its result decides
|
|
25
19
|
what you run next.
|
|
@@ -108,7 +102,7 @@ IPv6 only, so an IPv4 literal fails against the correct port.
|
|
|
108
102
|
## Step 4 -- Check the wiring
|
|
109
103
|
|
|
110
104
|
With both running, check the wiring in one command before you open a browser:
|
|
111
|
-
`npx --yes copilotkit@4.9.
|
|
105
|
+
`npx --yes copilotkit@4.9.4 verify --json`. Add `--runtime-url` when the runtime is not at
|
|
112
106
|
`http://localhost:3000/api/copilotkit`. Read the individual checks rather than the summary
|
|
113
107
|
alone: a check reported `undetermined` did not run, and that is not a pass. Fix anything
|
|
114
108
|
that is not a pass before the browser, because a browser failure stacked on broken wiring
|
|
@@ -128,7 +122,7 @@ Record that and move on -- there is nothing to repair.
|
|
|
128
122
|
|
|
129
123
|
## Step 5 -- Prove that the agent runs
|
|
130
124
|
|
|
131
|
-
Run `npx --yes copilotkit@4.9.
|
|
125
|
+
Run `npx --yes copilotkit@4.9.4 verify --round-trip --json`. It sends one request through
|
|
132
126
|
the runtime and reads the answer back from the thread, so it separates an agent that is
|
|
133
127
|
configured from an agent that works. Use `--agent <id>` when the runtime declares more
|
|
134
128
|
than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
|
|
@@ -147,20 +141,20 @@ generative UI component actually rendering, and no command-line check reaches an
|
|
|
147
141
|
It is not optional polish: a run that skips it has proven the agent and not the journey,
|
|
148
142
|
and the graph ends such a run as blocked rather than complete.
|
|
149
143
|
|
|
150
|
-
Use the surface control the main coding agent recorded for your environment.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
144
|
+
Use the surface control the main coding agent recorded for your environment. It either had
|
|
145
|
+
one already or registered one before this step, so that finding is the answer and there is
|
|
146
|
+
nothing here for you to go looking for. Do not add a browser driver or a device tool to this
|
|
147
|
+
project: a devDependency and a browser download land in the diff and tax a repository that
|
|
148
|
+
never asked for one, which is a different thing from the server registered against the
|
|
149
|
+
coding agent. If nothing in your environment can drive the surface this journey needs, skip
|
|
150
|
+
this step rather than installing one, and report the skip outcome named below.
|
|
155
151
|
|
|
156
152
|
Never report a result you did not see, on either surface.
|
|
157
153
|
|
|
158
154
|
### Step 6a -- Web frontends: React SPA, Next.js, Angular, Vue 3
|
|
159
155
|
|
|
160
156
|
The surface is a browser, and it also covers browser-origin CORS and CSP, which a CLI
|
|
161
|
-
request never exercises.
|
|
162
|
-
you are running as, the same way step 9 configures the CopilotKit documentation MCP
|
|
163
|
-
server.
|
|
157
|
+
request never exercises. Drive it with the browser control step 6 named.
|
|
164
158
|
|
|
165
159
|
1. Open the frontend URL from step 2 and wait for the page to finish loading.
|
|
166
160
|
2. Take one page snapshot. Record whether the CopilotKit surface is on the page. A page
|
|
@@ -18,13 +18,13 @@ Mark each step that the selected pages do not prove. Do not treat the documentat
|
|
|
18
18
|
proof that the requested integration is unsupported.
|
|
19
19
|
|
|
20
20
|
After the developer approves the best-effort plan, run
|
|
21
|
-
`npx --yes copilotkit@4.9.
|
|
21
|
+
`npx --yes copilotkit@4.9.4 onboard read fallback/best-effort`.
|
|
22
22
|
|
|
23
23
|
Send one short report. Run the feedback command without another developer question. The
|
|
24
24
|
CLI telemetry gate decides whether the report is sent.
|
|
25
25
|
|
|
26
26
|
```text
|
|
27
|
-
npx --yes copilotkit@4.9.
|
|
27
|
+
npx --yes copilotkit@4.9.4 onboard feedback
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Write the feedback message to the command's standard input, in at most four lines.
|
package/package.json
CHANGED
package/release/release-tool.js
CHANGED
|
@@ -14698,7 +14698,7 @@ import * as path4 from "node:path";
|
|
|
14698
14698
|
|
|
14699
14699
|
// apps/cli/src/config.ts
|
|
14700
14700
|
function getTemplateRef() {
|
|
14701
|
-
return true ? "
|
|
14701
|
+
return true ? "f6f2dc4bb62b50d2f09384619f5b9e8fe7edde02" : "main";
|
|
14702
14702
|
}
|
|
14703
14703
|
|
|
14704
14704
|
// apps/cli/src/services/agentcore-config.ts
|