copilotkit 4.13.1 → 4.14.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 +109 -6
- package/cli-build-info.json +7 -7
- package/index.js +96353 -93792
- package/onboarding/index.json +1 -1
- package/onboarding/prompts/authenticate/start.md +38 -27
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +12 -11
- package/onboarding/prompts/credentials/plan.md +21 -21
- package/onboarding/prompts/credentials/settle-credentials.md +18 -11
- package/onboarding/prompts/credentials/write-plan.md +19 -12
- package/onboarding/prompts/fallback/best-effort.md +9 -9
- package/onboarding/prompts/feature/a2ui/implement.md +6 -6
- package/onboarding/prompts/feature/a2ui/proof.md +6 -6
- package/onboarding/prompts/feature/a2ui/start.md +7 -7
- package/onboarding/prompts/feature/channels/implement.md +33 -15
- package/onboarding/prompts/feature/channels/proof.md +12 -10
- package/onboarding/prompts/feature/channels/start.md +13 -12
- package/onboarding/prompts/feature/chat-suggestions/implement.md +6 -6
- package/onboarding/prompts/feature/chat-suggestions/proof.md +6 -6
- package/onboarding/prompts/feature/chat-suggestions/start.md +7 -7
- package/onboarding/prompts/feature/complete.md +19 -1
- package/onboarding/prompts/feature/learning/implement.md +16 -16
- package/onboarding/prompts/feature/learning/proof.md +7 -7
- package/onboarding/prompts/feature/learning/start.md +8 -8
- package/onboarding/prompts/feature/open-generative-ui/implement.md +6 -6
- package/onboarding/prompts/feature/open-generative-ui/proof.md +6 -6
- package/onboarding/prompts/feature/open-generative-ui/start.md +7 -7
- package/onboarding/prompts/feature/realtime-sync/implement.md +7 -7
- package/onboarding/prompts/feature/realtime-sync/proof.md +6 -6
- package/onboarding/prompts/feature/realtime-sync/start.md +6 -6
- package/onboarding/prompts/feature/rich-threads/implement.md +10 -10
- package/onboarding/prompts/feature/rich-threads/proof.md +6 -6
- package/onboarding/prompts/feature/rich-threads/start.md +6 -6
- package/onboarding/prompts/feature/stop.md +36 -2
- package/onboarding/prompts/feature/voice/implement.md +7 -7
- package/onboarding/prompts/feature/voice/proof.md +6 -6
- package/onboarding/prompts/feature/voice/start.md +8 -8
- package/onboarding/prompts/framework/ag2.md +2 -2
- package/onboarding/prompts/framework/agno.md +2 -2
- package/onboarding/prompts/framework/built-in.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
- package/onboarding/prompts/framework/crewai-flows.md +2 -2
- package/onboarding/prompts/framework/deep-agents.md +2 -2
- package/onboarding/prompts/framework/google-adk.md +2 -2
- package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
- package/onboarding/prompts/framework/langgraph-python.md +2 -2
- package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
- package/onboarding/prompts/framework/llamaindex.md +2 -2
- package/onboarding/prompts/framework/mastra.md +2 -2
- package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-python.md +2 -2
- package/onboarding/prompts/framework/pydantic-ai.md +2 -2
- package/onboarding/prompts/framework/strands-python.md +2 -2
- package/onboarding/prompts/framework/strands-typescript.md +2 -2
- package/onboarding/prompts/frontend/angular.md +3 -3
- package/onboarding/prompts/frontend/nextjs.md +3 -3
- package/onboarding/prompts/frontend/plan.md +7 -7
- package/onboarding/prompts/frontend/react-native.md +5 -2
- package/onboarding/prompts/frontend/react-spa.md +5 -2
- package/onboarding/prompts/frontend/vue.md +5 -2
- package/onboarding/prompts/implementation/build-and-validate.md +24 -23
- package/onboarding/prompts/proof/complete.md +8 -8
- package/onboarding/prompts/proof/oss-baseline.md +5 -5
- package/onboarding/prompts/proof/round-trip.md +11 -11
- package/onboarding/prompts/research/gather.md +36 -7
- package/onboarding/prompts/research/merge.md +3 -3
- package/onboarding/prompts/research/preflight.md +4 -4
- package/onboarding/prompts/research/route.md +8 -6
- package/onboarding/prompts/starter/clone.md +97 -26
- package/onboarding/prompts/stopped/run-failed.md +2 -2
- package/onboarding/prompts/subagent/create-plan.md +4 -4
- package/onboarding/prompts/subagent/implement-and-validate.md +19 -6
- package/onboarding/prompts/subagent/inspect-repository.md +2 -2
- package/onboarding/prompts/subagent/prove-oss-baseline.md +2 -2
- package/onboarding/prompts/subagent/prove-round-trip.md +10 -10
- package/onboarding/prompts/unsupported/no-validated-path.md +2 -2
- package/package.json +5 -1
- package/release/release-tool.js +230 -72
|
@@ -13,8 +13,8 @@ The existing agent's behavior is outside every step of this proof. It is four th
|
|
|
13
13
|
agent's system prompt and instructions, its tools and what those tools do, its model and
|
|
14
14
|
provider configuration, and its memory or state handling. A failing predicate is repaired
|
|
15
15
|
on the CopilotKit side -- the frontend rendering, the tool schema, the runtime wiring.
|
|
16
|
-
Where the only fix you can find is a change to the agent's instructions or tools,
|
|
17
|
-
|
|
16
|
+
Where the only fix you can find is a change to the agent's instructions or tools, return
|
|
17
|
+
the failing predicate with the change you propose, for the developer to approve.
|
|
18
18
|
Such a change is a behavior change rather than a repair: it changes how the agent answers
|
|
19
19
|
everywhere, not only in CopilotKit. Never rewrite the agent's prompt to make a component
|
|
20
20
|
render, and never report a round trip proved by a prompt this run rewrote.
|
|
@@ -145,7 +145,7 @@ IPv6 only, so an IPv4 literal fails against the correct port.
|
|
|
145
145
|
## Step 4 -- Check the wiring
|
|
146
146
|
|
|
147
147
|
With both running, check the wiring in one command before you open a browser:
|
|
148
|
-
`npx --yes copilotkit@4.
|
|
148
|
+
`npx --yes copilotkit@4.14.0 verify --json`. It reads the port from this project, so a
|
|
149
149
|
non-default port needs no flag. The payload reports `runtimeUrl` and `runtimeUrlSource`. A
|
|
150
150
|
`runtimeUrlSource` of `default` means nothing in the project named a port, so pass
|
|
151
151
|
`--runtime-url` with the URL from step 1 in that case. Read the individual checks rather than
|
|
@@ -179,7 +179,7 @@ named no port the CLI can read: keep step 2's URL, and rewrite its host as `loca
|
|
|
179
179
|
before you use it.
|
|
180
180
|
|
|
181
181
|
Then run the command once more with the URL you are about to open:
|
|
182
|
-
`npx --yes copilotkit@4.
|
|
182
|
+
`npx --yes copilotkit@4.14.0 verify --frontend-url <that url> --json`. The
|
|
183
183
|
`frontend_assets_served` check asks that server for its page and for one of the page's own
|
|
184
184
|
assets, on that exact host. A `fail` there means the dev server refuses its own static
|
|
185
185
|
assets on the host you were about to use, and the check names the URL to use instead. This
|
|
@@ -187,7 +187,7 @@ is the cheapest step that can save the most expensive one, so run it before the
|
|
|
187
187
|
|
|
188
188
|
## Step 5 -- Prove that the agent runs
|
|
189
189
|
|
|
190
|
-
Run `npx --yes copilotkit@4.
|
|
190
|
+
Run `npx --yes copilotkit@4.14.0 verify --round-trip --json`. It sends one request through
|
|
191
191
|
the runtime and reads the answer back from the thread, so it separates an agent that is
|
|
192
192
|
configured from an agent that works. Use `--agent <id>` when the runtime declares more
|
|
193
193
|
than one. If it reports `user-not-identified`, this project's `identifyUser` reads a
|
|
@@ -200,7 +200,7 @@ Where this run settled a Learning Container, add the flag to the call above rath
|
|
|
200
200
|
running a second round trip:
|
|
201
201
|
|
|
202
202
|
```text
|
|
203
|
-
npx --yes copilotkit@4.
|
|
203
|
+
npx --yes copilotkit@4.14.0 verify --round-trip --expect-learning-container <container id> --json
|
|
204
204
|
```
|
|
205
205
|
|
|
206
206
|
The check reads the thread that this run created, so a second round trip proves a second
|
|
@@ -234,7 +234,7 @@ the credential was written holds an empty key while the file beside it carries t
|
|
|
234
234
|
one. Run this from the target app directory:
|
|
235
235
|
|
|
236
236
|
```text
|
|
237
|
-
npx --yes copilotkit@4.
|
|
237
|
+
npx --yes copilotkit@4.14.0 onboard env-staleness
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
A `stale` line names the env file and how long after launch it was written. Report that,
|
|
@@ -312,7 +312,7 @@ For a recorded `both-oss` starting state, this step has no component to render.
|
|
|
312
312
|
same request the baseline recorded, require the same kind of user-visible result the
|
|
313
313
|
baseline produced, and require that the thread for that request is listed in the drawer.
|
|
314
314
|
Where this journey's frontend framework ships no threads drawer -- React Native --, prove
|
|
315
|
-
that thread with `npx --yes copilotkit@4.
|
|
315
|
+
that thread with `npx --yes copilotkit@4.14.0 verify --round-trip`, which reads the
|
|
316
316
|
answer back off the thread and needs no browser. Record which of the two you proved.
|
|
317
317
|
|
|
318
318
|
Use the surface control the main coding agent recorded for your environment. It either had
|
|
@@ -340,7 +340,7 @@ request never exercises. Drive it with the browser control step 6 named.
|
|
|
340
340
|
the page to finish loading. Do not retype the host, and do not substitute a URL a tool
|
|
341
341
|
offers you by default. Where the page loads but its styling is missing or the chat
|
|
342
342
|
control is dead, run
|
|
343
|
-
`npx --yes copilotkit@4.
|
|
343
|
+
`npx --yes copilotkit@4.14.0 verify --frontend-url <the url you opened> --json`
|
|
344
344
|
before you diagnose anything else. A dev server can serve its page and refuse every
|
|
345
345
|
static chunk behind it, and on screen that is indistinguishable from a broken
|
|
346
346
|
integration. The `frontend_assets_served` check tells the two apart.
|
|
@@ -489,4 +489,4 @@ standard blocked completion route. Use `Status: failed` for a failed proof step.
|
|
|
489
489
|
Return the proof or the exact failed step to the main coding agent, together with the
|
|
490
490
|
input, the visible result, the relevant process status, the evidence locations, the
|
|
491
491
|
surface-check outcome, and which surface that outcome speaks for. Do not return secret
|
|
492
|
-
values.
|
|
492
|
+
values. End your turn after you return the result.
|
|
@@ -30,13 +30,13 @@ Before you show the best-effort plan, require this complete packet:
|
|
|
30
30
|
- Give the ordered proof rules.
|
|
31
31
|
|
|
32
32
|
After the developer approves the best-effort plan, run
|
|
33
|
-
`npx --yes copilotkit@4.
|
|
33
|
+
`npx --yes copilotkit@4.14.0 onboard read fallback/best-effort`.
|
|
34
34
|
|
|
35
35
|
Send one short report. Run the friction command without another developer question. Do not
|
|
36
36
|
ask the developer about telemetry: the command applies the setting they already have.
|
|
37
37
|
|
|
38
38
|
```text
|
|
39
|
-
npx --yes copilotkit@4.
|
|
39
|
+
npx --yes copilotkit@4.14.0 onboard friction --phase stop --category <slug>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Write one or two sentences to standard input: the step you stopped at and what stopped it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilotkit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.9.0"
|
|
@@ -16,5 +16,9 @@
|
|
|
16
16
|
"optionalDependencies": {
|
|
17
17
|
"@microsoft/teams.cli": "3.0.3"
|
|
18
18
|
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@mastra/core": "1.48.0",
|
|
21
|
+
"@mastra/libsql": "1.14.3"
|
|
22
|
+
},
|
|
19
23
|
"license": "SEE LICENSE IN LICENSE"
|
|
20
24
|
}
|