copilotkit 4.9.47 → 4.9.50
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 +135 -5
- package/cli-build-info.json +6 -6
- package/index.js +6200 -3380
- package/onboarding/index.json +162 -1
- package/onboarding/prompts/authenticate/start.md +9 -9
- package/onboarding/prompts/conversion/plan.md +3 -3
- package/onboarding/prompts/credentials/finalize-plan.md +11 -11
- package/onboarding/prompts/credentials/plan.md +20 -20
- package/onboarding/prompts/fallback/best-effort.md +6 -6
- package/onboarding/prompts/feature/a2ui/implement.md +32 -0
- package/onboarding/prompts/feature/a2ui/proof.md +34 -0
- package/onboarding/prompts/feature/a2ui/start.md +55 -0
- package/onboarding/prompts/feature/chat-suggestions/implement.md +28 -0
- package/onboarding/prompts/feature/chat-suggestions/proof.md +26 -0
- package/onboarding/prompts/feature/chat-suggestions/start.md +46 -0
- package/onboarding/prompts/feature/learning/implement.md +44 -0
- package/onboarding/prompts/feature/learning/proof.md +27 -0
- package/onboarding/prompts/feature/learning/start.md +52 -0
- package/onboarding/prompts/feature/open-generative-ui/implement.md +28 -0
- package/onboarding/prompts/feature/open-generative-ui/proof.md +27 -0
- package/onboarding/prompts/feature/open-generative-ui/start.md +47 -0
- package/onboarding/prompts/feature/realtime-sync/implement.md +38 -0
- package/onboarding/prompts/feature/realtime-sync/proof.md +28 -0
- package/onboarding/prompts/feature/realtime-sync/start.md +50 -0
- package/onboarding/prompts/feature/rich-threads/implement.md +41 -0
- package/onboarding/prompts/feature/rich-threads/proof.md +27 -0
- package/onboarding/prompts/feature/rich-threads/start.md +52 -0
- package/onboarding/prompts/feature/stop.md +41 -0
- package/onboarding/prompts/feature/voice/implement.md +28 -0
- package/onboarding/prompts/feature/voice/proof.md +27 -0
- package/onboarding/prompts/feature/voice/start.md +45 -0
- package/onboarding/prompts/framework/ag2.md +2 -2
- package/onboarding/prompts/framework/agno.md +2 -2
- package/onboarding/prompts/framework/built-in.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-python.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-typescript.md +2 -2
- package/onboarding/prompts/framework/crewai-flows.md +2 -2
- package/onboarding/prompts/framework/deep-agents.md +2 -2
- package/onboarding/prompts/framework/google-adk.md +2 -2
- package/onboarding/prompts/framework/langgraph-fastapi.md +2 -2
- package/onboarding/prompts/framework/langgraph-python.md +2 -2
- package/onboarding/prompts/framework/langgraph-typescript.md +2 -2
- package/onboarding/prompts/framework/llamaindex.md +2 -2
- package/onboarding/prompts/framework/mastra.md +2 -2
- package/onboarding/prompts/framework/ms-agent-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +2 -2
- package/onboarding/prompts/framework/ms-agent-python.md +2 -2
- package/onboarding/prompts/framework/pydantic-ai.md +2 -2
- package/onboarding/prompts/framework/strands-python.md +2 -2
- package/onboarding/prompts/framework/strands-typescript.md +2 -2
- package/onboarding/prompts/frontend/angular.md +3 -3
- package/onboarding/prompts/frontend/nextjs.md +3 -3
- package/onboarding/prompts/frontend/plan.md +6 -6
- package/onboarding/prompts/frontend/react-native.md +2 -2
- package/onboarding/prompts/frontend/react-spa.md +2 -2
- package/onboarding/prompts/frontend/vue.md +2 -2
- package/onboarding/prompts/implementation/build-and-validate.md +33 -13
- package/onboarding/prompts/proof/complete.md +8 -8
- package/onboarding/prompts/proof/oss-baseline.md +5 -5
- package/onboarding/prompts/proof/round-trip.md +9 -9
- package/onboarding/prompts/starter/clone.md +5 -5
- package/onboarding/prompts/subagent/create-plan.md +11 -3
- package/onboarding/prompts/subagent/prove-oss-baseline.md +1 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +6 -6
- package/onboarding/prompts/unsupported/no-validated-path.md +2 -2
- package/package.json +1 -1
- package/release/release-tool.js +36 -10
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Add chat suggestions to the existing CopilotKit app
|
|
2
|
+
|
|
3
|
+
Treat this as an additive OSS chat-surface feature. Delegate repository inspection,
|
|
4
|
+
implementation, and proof to separate subagents and keep all work inside the target project.
|
|
5
|
+
|
|
6
|
+
Before edits, identify the current CopilotKit provider, chat component, message lifecycle,
|
|
7
|
+
agent id, package version, and test/dev commands. Prove the existing OSS round trip with
|
|
8
|
+
`/info`, `npx --yes copilotkit@4.9.50 verify --expect-runtime oss --round-trip --agent <agent-id> --json`,
|
|
9
|
+
and one real frontend request when browser control is available. If there is no proven
|
|
10
|
+
existing CopilotKit chat, leave files unchanged and direct the developer to generic
|
|
11
|
+
onboarding first.
|
|
12
|
+
|
|
13
|
+
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase research-returned
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
20
|
+
failed step.
|
|
21
|
+
|
|
22
|
+
If the inspection did not prove the baseline this intent extends, stop here without
|
|
23
|
+
changing files:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Do not run login, provision Intelligence, request a credential, replace the agent, or alter
|
|
30
|
+
the existing runtime/persistence. Fetch the official hook guide before planning:
|
|
31
|
+
https://docs.copilotkit.ai/reference/hooks/useConfigureSuggestions.md
|
|
32
|
+
Use a second retrieval method if the first fails.
|
|
33
|
+
|
|
34
|
+
Determine static versus dynamic suggestions from the repository. If the repository does not
|
|
35
|
+
answer it, ask one short question only: recommend static suggestions for a predictable
|
|
36
|
+
first-message experience, or offer dynamic suggestions when the developer needs
|
|
37
|
+
context-dependent follow-ups. Show an approved-plan-sized diff, a focused test, and a proof
|
|
38
|
+
that a visible suggestion submits the intended message.
|
|
39
|
+
|
|
40
|
+
After approval, report the plan this run is about to implement:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase plan-written
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then run `npx --yes copilotkit@4.9.50 onboard read feature/chat-suggestions/implement`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Implement Learning Container assignment without inventing a container
|
|
2
|
+
|
|
3
|
+
Delegate implementation to one subagent with the approved plan and official guides. Reuse a
|
|
4
|
+
valid existing Intelligence selection. If it is absent, use the documented streaming
|
|
5
|
+
`login --json` session, let the developer select or create the Intelligence project, and
|
|
6
|
+
require the secret-safe project/key provisioning summary before wiring the runtime.
|
|
7
|
+
|
|
8
|
+
After the project is selected, ask the developer to create or select a stable Learning
|
|
9
|
+
Container in the selected project's dashboard and provide its non-secret id. This is a real
|
|
10
|
+
human gate: stop if they cannot provide it. Do not write a placeholder, a guessed id, or a
|
|
11
|
+
new unsupported CLI command.
|
|
12
|
+
|
|
13
|
+
Add only the documented managed runtime/thread prerequisites and the selected
|
|
14
|
+
`getLearningContainerId` on the `CopilotKitIntelligence` instance. Return the same stable
|
|
15
|
+
1-64 character id for the same thread every time: a thread cannot move after its first
|
|
16
|
+
assignment, and a thread whose agent already ran cannot receive its first assignment
|
|
17
|
+
later. Preserve the existing agent, identity, thread behavior,
|
|
18
|
+
and persistence.
|
|
19
|
+
|
|
20
|
+
An Intelligence runtime requires `identifyUser`, and it usually reads a signed-in session
|
|
21
|
+
that a CLI request does not carry. That makes the round trip UNKNOWN and the command exit
|
|
22
|
+
non-zero on an app that is working. Pass what `identifyUser` reads with a repeatable
|
|
23
|
+
`--header "Name: value"`, or record UNKNOWN as the expected result for an auth-gated app.
|
|
24
|
+
It is not a defect to repair.
|
|
25
|
+
|
|
26
|
+
Run focused tests and
|
|
27
|
+
`npx --yes copilotkit@4.9.50 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
|
|
28
|
+
Repair changed-file failures and record secret-safe evidence.
|
|
29
|
+
|
|
30
|
+
When implementation validation passes, report it:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase build-validated
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
|
|
37
|
+
without further changes:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Otherwise run
|
|
44
|
+
`npx --yes copilotkit@4.9.50 onboard read feature/learning/proof`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Prove a real run is assigned to the selected Learning Container
|
|
2
|
+
|
|
3
|
+
Delegate proof to a fresh subagent. In the real authenticated app, create or use a thread,
|
|
4
|
+
send a normal agent request, and confirm the resulting run is assigned to the selected
|
|
5
|
+
Learning Container through the documented Intelligence/Inspector evidence. Confirm the
|
|
6
|
+
thread remains associated with the expected user and that the managed round-trip check still
|
|
7
|
+
passes.
|
|
8
|
+
|
|
9
|
+
Do not claim that Insights or Skills are already available: those depend on completed runs
|
|
10
|
+
and later learning processing. Record only the assignment visible now, the request, app URL,
|
|
11
|
+
process IDs, and safe stop commands. Repair changed-file defects and repeat.
|
|
12
|
+
|
|
13
|
+
Report each attempt at the proof as it ends, counting from one:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase journey-attempted --attempt 1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Report each repair cycle the same way, counting from one:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Run
|
|
26
|
+
`npx --yes copilotkit@4.9.50 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
|
|
27
|
+
with the actual surface outcome.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Add Learning to the existing CopilotKit app
|
|
2
|
+
|
|
3
|
+
Treat Learning as a managed Intelligence feature that assigns real threads to a chosen
|
|
4
|
+
Learning Container. Orchestrate with separate read-only, implementation, and proof
|
|
5
|
+
subagents. Work only inside the target project and preserve its existing agent and chat.
|
|
6
|
+
|
|
7
|
+
Before edits, inspect the runtime, agent id, provider/chat, server-side user identity,
|
|
8
|
+
existing Intelligence configuration (presence only), existing thread routes, and the normal
|
|
9
|
+
test/dev commands. Prove the current round trip and inspect `/info`. If the project does not
|
|
10
|
+
already have a CopilotKit app, leave it unchanged and direct the developer to generic
|
|
11
|
+
onboarding.
|
|
12
|
+
|
|
13
|
+
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase research-returned
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
20
|
+
failed step.
|
|
21
|
+
|
|
22
|
+
If the inspection did not prove the baseline this intent extends, stop here without
|
|
23
|
+
changing files:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Fetch the current official guides before planning:
|
|
30
|
+
https://docs.copilotkit.ai/backend/copilot-runtime.md
|
|
31
|
+
https://docs.copilotkit.ai/intelligence/connect-your-runtime.md
|
|
32
|
+
https://docs.copilotkit.ai/threads.md
|
|
33
|
+
Use a second retrieval method if needed. The CLI has no supported command to create or list
|
|
34
|
+
Learning Containers. Do not invent an id, scrape a dashboard, or treat an arbitrary string
|
|
35
|
+
as one.
|
|
36
|
+
|
|
37
|
+
Read the "Assign Threads to Learning Containers" section of that page. The container is
|
|
38
|
+
chosen by `getLearningContainerId` on the `CopilotKitIntelligence` instance, which the
|
|
39
|
+
same page documents; it receives the resolved application user and the run input, and it
|
|
40
|
+
serves web and Channel runs through one API.
|
|
41
|
+
|
|
42
|
+
Show a concise plan for managed runtime/thread prerequisites, a stable selected container,
|
|
43
|
+
the documented `getLearningContainerId` selector, validation, and a visible assignment
|
|
44
|
+
proof. Ask for approval separately.
|
|
45
|
+
|
|
46
|
+
After approval, report the plan this run is about to implement:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase plan-written
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Then run `npx --yes copilotkit@4.9.50 onboard read feature/learning/implement`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Implement Open Generative UI with the existing chat surface
|
|
2
|
+
|
|
3
|
+
Delegate implementation to one subagent with the approved plan and the fetched official
|
|
4
|
+
guide. Add only the documented Open Generative UI runtime middleware and any documented
|
|
5
|
+
provider wiring the current package versions require. Preserve the existing agent, runtime
|
|
6
|
+
route, persistence, chat surface, and model setup.
|
|
7
|
+
|
|
8
|
+
Do not introduce Intelligence, a license key, a replacement agent, bespoke iframe HTML, or
|
|
9
|
+
an "unknown tool" placeholder as the success path. Keep sandboxing and existing CSP rules
|
|
10
|
+
intact unless the official guide and observed failure require a minimal documented change.
|
|
11
|
+
|
|
12
|
+
Run the project's focused validation commands. Start the app and confirm `/info` reports
|
|
13
|
+
`openGenerativeUIEnabled`, while treating that only as capability evidence. Record changed paths and
|
|
14
|
+
validation results without secrets. When implementation validation passes, report it:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase build-validated
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
|
|
21
|
+
without further changes:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Otherwise run
|
|
28
|
+
`npx --yes copilotkit@4.9.50 onboard read feature/open-generative-ui/proof`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Prove a generated UI renders safely in the real chat
|
|
2
|
+
|
|
3
|
+
Delegate proof to a fresh subagent. Use the existing frontend and agent to request a small,
|
|
4
|
+
benign interactive UI such as a greeting card. Require the resulting sandboxed generated UI
|
|
5
|
+
or iframe to render in the conversation and respond to its intended interaction. A capability
|
|
6
|
+
flag, tool-call stream, or "Unknown Tool" fallback is not proof.
|
|
7
|
+
|
|
8
|
+
Record the request, visible result, app URL, process IDs, and safe stop commands. Keep
|
|
9
|
+
project-owned services running. Repair a failure caused by changed files and prove again;
|
|
10
|
+
do not replace the output with a hard-coded component. If browser control is absent, report
|
|
11
|
+
the missing visual proof honestly.
|
|
12
|
+
|
|
13
|
+
Report each attempt at the proof as it ends, counting from one:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase journey-attempted --attempt 1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Report each repair cycle the same way, counting from one:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then run
|
|
26
|
+
`npx --yes copilotkit@4.9.50 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
|
|
27
|
+
with the outcome actually observed.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Add Open Generative UI to the existing CopilotKit app
|
|
2
|
+
|
|
3
|
+
Treat this as a focused OSS enhancement. Orchestrate the work with separate read-only,
|
|
4
|
+
implementation, and proof subagents, all restricted to the target project directory.
|
|
5
|
+
|
|
6
|
+
Before edits, have a research subagent identify the current CopilotKit runtime route,
|
|
7
|
+
provider/chat component, agent id, package versions, existing middleware, sandbox/CSP
|
|
8
|
+
constraints, and normal test/dev commands. Prove the existing app first with `/info`,
|
|
9
|
+
`npx --yes copilotkit@4.9.50 verify --expect-runtime oss --round-trip --agent <agent-id> --json`,
|
|
10
|
+
and a real frontend request when browser control is available. If the app is not an existing
|
|
11
|
+
OSS CopilotKit app with a proven round trip, change nothing and direct the developer to the
|
|
12
|
+
generic onboarding path first.
|
|
13
|
+
|
|
14
|
+
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase research-returned
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
21
|
+
failed step.
|
|
22
|
+
|
|
23
|
+
If the inspection did not prove the baseline this intent extends, stop here without
|
|
24
|
+
changing files:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Do not sign in, select an Intelligence project, create credentials, change the existing
|
|
31
|
+
agent, or swap out the chat surface. Open Generative UI is an OSS runtime feature.
|
|
32
|
+
|
|
33
|
+
Fetch the current official guide before planning:
|
|
34
|
+
https://docs.copilotkit.ai/generative-ui/open-generative-ui.md
|
|
35
|
+
Retry through a second retrieval method if needed. Setup is the documented
|
|
36
|
+
`openGenerativeUI` option on the runtime, which makes `/info` report
|
|
37
|
+
`openGenerativeUIEnabled`; the middleware is what parses tool-call arguments afterwards.
|
|
38
|
+
Show a small plan covering that runtime option, the existing provider's renderer path,
|
|
39
|
+
likely CSP/sandbox implications, tests, and a user-visible generated UI proof. Ask for approval separately.
|
|
40
|
+
|
|
41
|
+
After approval, report the plan this run is about to implement:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase plan-written
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Then run `npx --yes copilotkit@4.9.50 onboard read feature/open-generative-ui/implement`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Implement managed realtime thread sync with documented endpoints
|
|
2
|
+
|
|
3
|
+
Delegate implementation to one subagent with the approved plan and fetched guides. If no
|
|
4
|
+
valid Intelligence selection exists, follow the single streaming `login --json` session,
|
|
5
|
+
let the developer select or create a project, and require the secret-safe selection summary
|
|
6
|
+
before wiring it. Reuse a valid selected project instead of creating another one.
|
|
7
|
+
|
|
8
|
+
Add only the documented Intelligence runtime, stable server-side `identifyUser`, catch-all
|
|
9
|
+
thread routes, and client realtime wiring. Preserve the existing agent, persistence, and
|
|
10
|
+
chat UI. For self-hosted setup, require explicit `apiUrl` and `wsUrl` together; do not infer
|
|
11
|
+
or rewrite either endpoint. For hosted setup, do not add a speculative URL.
|
|
12
|
+
|
|
13
|
+
An Intelligence runtime requires `identifyUser`, and it usually reads a signed-in session
|
|
14
|
+
that a CLI request does not carry. That makes the round trip UNKNOWN and the command exit
|
|
15
|
+
non-zero on an app that is working. Pass what `identifyUser` reads with a repeatable
|
|
16
|
+
`--header "Name: value"`, or record UNKNOWN as the expected result for an auth-gated app.
|
|
17
|
+
It is not a defect to repair.
|
|
18
|
+
|
|
19
|
+
Run focused tests and
|
|
20
|
+
`npx --yes copilotkit@4.9.50 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
|
|
21
|
+
Repair changed-file failures and record changed paths and secret-safe validation
|
|
22
|
+
evidence.
|
|
23
|
+
|
|
24
|
+
When implementation validation passes, report it:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase build-validated
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
|
|
31
|
+
without further changes:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Otherwise run
|
|
38
|
+
`npx --yes copilotkit@4.9.50 onboard read feature/realtime-sync/proof`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Prove realtime thread changes reach a second active client
|
|
2
|
+
|
|
3
|
+
Delegate proof to a fresh subagent. Open the same authenticated project/thread in two isolated
|
|
4
|
+
browser contexts. From context A, create or mutate a thread and send a message. Require
|
|
5
|
+
context B to receive the thread/message change without a manual reload. Then exercise a
|
|
6
|
+
second mutation in the reverse direction where the product supports it. Keep the managed
|
|
7
|
+
round-trip verification green.
|
|
8
|
+
|
|
9
|
+
Record both visible states, actions, timing, app URL, process IDs, and safe stop commands.
|
|
10
|
+
A successful WebSocket connection, a server event, or a refreshed second tab is not proof.
|
|
11
|
+
Repair changed-file defects and repeat. If the environment cannot drive two contexts, report
|
|
12
|
+
the missing proof rather than claiming realtime works.
|
|
13
|
+
|
|
14
|
+
Report each attempt at the proof as it ends, counting from one:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase journey-attempted --attempt 1
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Report each repair cycle the same way, counting from one:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase repair-attempted --attempt 1
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Run
|
|
27
|
+
`npx --yes copilotkit@4.9.50 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
|
|
28
|
+
with the actual outcome.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Add realtime thread sync to the existing CopilotKit app
|
|
2
|
+
|
|
3
|
+
Treat realtime sync as the Intelligence thread-realtime plane, not as a generic WebSocket
|
|
4
|
+
exercise. Act as the orchestrator and delegate read-only inspection, implementation, and
|
|
5
|
+
two-context proof to subagents within the target project.
|
|
6
|
+
|
|
7
|
+
Before edits, inspect the current runtime, provider/chat, agent id, authenticated stable user
|
|
8
|
+
identity, thread routes, existing Intelligence configuration (presence only), current websocket
|
|
9
|
+
configuration, and normal test/dev commands. Prove the current frontend-to-runtime-to-agent
|
|
10
|
+
round trip and inspect `/info`. If this is not an existing CopilotKit app, leave files
|
|
11
|
+
unchanged and direct the developer to generic onboarding first.
|
|
12
|
+
|
|
13
|
+
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase research-returned
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
20
|
+
failed step.
|
|
21
|
+
|
|
22
|
+
If the inspection did not prove the baseline this intent extends, stop here without
|
|
23
|
+
changing files:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Fetch the current official guides before planning:
|
|
30
|
+
https://docs.copilotkit.ai/intelligence/connect-your-runtime.md
|
|
31
|
+
https://docs.copilotkit.ai/auth.md
|
|
32
|
+
https://docs.copilotkit.ai/intelligence/threads-explained.md
|
|
33
|
+
https://docs.copilotkit.ai/reference/hooks/useThreads.md
|
|
34
|
+
Retry unavailable pages a second way. Reuse a proven Intelligence project where present; do
|
|
35
|
+
not sign in or select/create one until the developer approves the plan.
|
|
36
|
+
|
|
37
|
+
The plan must name the documented managed runtime/thread wiring, identity and catch-all
|
|
38
|
+
thread routes, the existing or documented client realtime connection, tests, and a proof in
|
|
39
|
+
two browser contexts. For self-hosted Intelligence, configure `apiUrl` and `wsUrl` together
|
|
40
|
+
from explicit developer-owned values; never derive one from the other. The client prepends
|
|
41
|
+
`/api` itself, so an `apiUrl` that already ends in `/api` produces `/api/api/...`. Hosted setup may not
|
|
42
|
+
need a `wsUrl`. Ask for approval separately.
|
|
43
|
+
|
|
44
|
+
After approval, report the plan this run is about to implement:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase plan-written
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then run `npx --yes copilotkit@4.9.50 onboard read feature/realtime-sync/implement`.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Implement Rich Threads with a stable identity and managed runtime
|
|
2
|
+
|
|
3
|
+
Delegate implementation to one subagent with the approved plan and fetched official guides.
|
|
4
|
+
If repository evidence does not prove an existing valid Intelligence selection, run
|
|
5
|
+
`npx --yes copilotkit@4.9.50 login --json` and follow its single streaming session. Then
|
|
6
|
+
list projects, show the developer the current/recent choices, and select or create one only
|
|
7
|
+
after they choose. Require the secret-safe selection summary to confirm the project file,
|
|
8
|
+
environment file, and key provisioning; never display a key. If existing configuration is
|
|
9
|
+
valid, reuse it rather than minting another project or key.
|
|
10
|
+
|
|
11
|
+
Add only documented Intelligence runtime wiring, server-side `identifyUser`, and catch-all
|
|
12
|
+
thread routes. Use the existing authenticated user source; if no stable source exists, stop
|
|
13
|
+
and explain that it is a prerequisite. Preserve the agent, existing persistence, and chat
|
|
14
|
+
surface. Add the documented drawer only if the approved plan selected it.
|
|
15
|
+
|
|
16
|
+
An Intelligence runtime requires `identifyUser`, and it usually reads a signed-in session
|
|
17
|
+
that a CLI request does not carry. That makes the round trip UNKNOWN and the command exit
|
|
18
|
+
non-zero on an app that is working. Pass what `identifyUser` reads with a repeatable
|
|
19
|
+
`--header "Name: value"`, or record UNKNOWN as the expected result for an auth-gated app.
|
|
20
|
+
It is not a defect to repair.
|
|
21
|
+
|
|
22
|
+
Run focused type/test commands, then start the app and run
|
|
23
|
+
`npx --yes copilotkit@4.9.50 verify --expect-runtime intelligence --round-trip --agent <agent-id> --json`.
|
|
24
|
+
Repair changed-file failures before continuing. Record changed paths and secret-safe
|
|
25
|
+
validation evidence.
|
|
26
|
+
|
|
27
|
+
When implementation validation passes, report it:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase build-validated
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
|
|
34
|
+
without further changes:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Otherwise run
|
|
41
|
+
`npx --yes copilotkit@4.9.50 onboard read feature/rich-threads/proof`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Prove Rich Threads persist and reopen for the same user
|
|
2
|
+
|
|
3
|
+
Delegate proof to a fresh subagent. In the real authenticated frontend, create a conversation,
|
|
4
|
+
send a distinct message, confirm the response, reload or reopen the same thread, and require
|
|
5
|
+
the prior history to remain visible for that same stable user. Confirm the runtime exposes
|
|
6
|
+
the required thread routes and the Intelligence verification remains successful.
|
|
7
|
+
|
|
8
|
+
Record the interaction, visible persisted history, app URL, process IDs, and safe stop
|
|
9
|
+
commands. Do not count a thread id in a log, a successful API call, or an in-memory history
|
|
10
|
+
as proof. Repair defects caused by changed files and repeat. Keep project-owned servers
|
|
11
|
+
running.
|
|
12
|
+
|
|
13
|
+
Report each attempt at the proof as it ends, counting from one:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase journey-attempted --attempt 1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Report each repair cycle the same way, counting from one:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then run
|
|
26
|
+
`npx --yes copilotkit@4.9.50 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
|
|
27
|
+
with the actual browser outcome.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Add Rich Threads to the existing CopilotKit app
|
|
2
|
+
|
|
3
|
+
Treat Rich Threads as a managed Intelligence feature layered onto the existing app, not as a
|
|
4
|
+
reason to replace its agent or chat. Act as the orchestrator and delegate inspection,
|
|
5
|
+
implementation, and proof to separate subagents within the target project.
|
|
6
|
+
|
|
7
|
+
Before edits, have a read-only subagent locate the runtime route, CopilotKit provider/chat,
|
|
8
|
+
agent id, current thread UI or headless API, authentication boundary, stable server-side user
|
|
9
|
+
identity source, current project configuration (presence only), and test/dev commands. Prove
|
|
10
|
+
the current frontend-to-runtime-to-agent round trip and inspect `/info`. If the project lacks
|
|
11
|
+
an existing CopilotKit app, leave it unchanged and direct the developer to generic onboarding.
|
|
12
|
+
|
|
13
|
+
Wait for the inspection subagent to finish. Then report that the inspection came back:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase research-returned
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A refused checkpoint prints its reason and leaves onboarding unaffected. It is not a
|
|
20
|
+
failed step.
|
|
21
|
+
|
|
22
|
+
If the inspection did not prove the baseline this intent extends, stop here without
|
|
23
|
+
changing files:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Fetch the current official guides before planning:
|
|
30
|
+
https://docs.copilotkit.ai/threads.md
|
|
31
|
+
https://docs.copilotkit.ai/threads-lifecycle.md
|
|
32
|
+
https://docs.copilotkit.ai/intelligence/connect-your-runtime.md
|
|
33
|
+
https://docs.copilotkit.ai/auth.md
|
|
34
|
+
https://docs.copilotkit.ai/prebuilt-components/copilot-threads-drawer.md
|
|
35
|
+
Retry unavailable pages a second way. Do not infer an identity from a browser display name or
|
|
36
|
+
use a client-supplied identifier as the server-side user identity. `identifyUser` names an
|
|
37
|
+
already-authenticated caller; it is not the authentication gate, and the auth page lists the
|
|
38
|
+
thread routes that do not resolve the caller through it and must be guarded separately.
|
|
39
|
+
|
|
40
|
+
Re-use a valid existing Intelligence project and credential when repository evidence proves
|
|
41
|
+
one. If Intelligence is missing, do not create a project or sign in yet: show a plan first.
|
|
42
|
+
The plan must name the documented Intelligence runtime wiring, server-side `identifyUser`,
|
|
43
|
+
catch-all thread routes, the selected UI (drawer or existing headless UI), preserved behavior,
|
|
44
|
+
tests, and a reload/reopen proof. Ask for approval separately.
|
|
45
|
+
|
|
46
|
+
After approval, report the plan this run is about to implement:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase plan-written
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Then run `npx --yes copilotkit@4.9.50 onboard read feature/rich-threads/implement`.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Stop this feature without changing the app
|
|
2
|
+
|
|
3
|
+
Keep the developer's current agent, frontend, runtime, persistence, chat surface, and
|
|
4
|
+
package choices exactly as they were.
|
|
5
|
+
|
|
6
|
+
Name the step that stopped this run and what it needed: a CopilotKit baseline this intent
|
|
7
|
+
extends, a documentation page that would not load, a prerequisite the app does not have, a
|
|
8
|
+
validation that would not pass, or a proof that could not be driven. Do not say the feature
|
|
9
|
+
works when this run could not prove it.
|
|
10
|
+
|
|
11
|
+
If the app has no proven CopilotKit baseline, say so plainly and point the developer at
|
|
12
|
+
generic onboarding, which builds the app this intent needs. Give it a run id of its own:
|
|
13
|
+
a `start` with no `--run` reprints the id this stopped run already holds, and one id
|
|
14
|
+
covering both reads as one run that did two different things.
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.9.50 onboard start --run <new-12-character-id>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Do not read a generic onboarding node from this run. A feature run and a generic run are
|
|
21
|
+
separate routes, and continuing one inside the other reports a stop that never happened.
|
|
22
|
+
|
|
23
|
+
Do not run `onboard complete`. This run did not complete.
|
|
24
|
+
|
|
25
|
+
If this run changed files before it stopped, list every path it changed and say whether it
|
|
26
|
+
reverted them. A report that says only that the run stopped cannot be acted on.
|
|
27
|
+
|
|
28
|
+
Send one short report. Run the feedback command without another developer question. The
|
|
29
|
+
CLI telemetry gate decides whether the report is sent.
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
npx --yes copilotkit@4.9.50 onboard feedback
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Write the feedback message to the command's standard input, in at most four lines. Send no
|
|
36
|
+
secrets, source code, logs, or command output. The command refuses a report that carries
|
|
37
|
+
any of those, prints the reason, and exits zero. A refused report is not a failed step.
|
|
38
|
+
Reword it and send it again, or stop without a report. The command prints what it sent.
|
|
39
|
+
This is the channel for a stop. Report friction only from a run that finished, never from
|
|
40
|
+
here. If the CLI says that telemetry is disabled or unavailable, state that the report was
|
|
41
|
+
not sent and stop without another question.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Implement documented voice transcription wiring
|
|
2
|
+
|
|
3
|
+
Delegate implementation to one subagent with the approved plan and fetched voice guide.
|
|
4
|
+
Wire the documented `TranscriptionService` into the existing v2 catch-all runtime and retain
|
|
5
|
+
the current provider/chat surface. Use the already configured credential variable by name
|
|
6
|
+
only; never read, print, synthesize, or add a secret. If no supported credential is present,
|
|
7
|
+
stop with that specific setup requirement.
|
|
8
|
+
|
|
9
|
+
Do not add Intelligence, replace the agent, or make a fake microphone button. Run the focused
|
|
10
|
+
type/test command and start the app. Confirm `/info` reports
|
|
11
|
+
`audioFileTranscriptionEnabled`, but treat it as capability evidence rather than completed
|
|
12
|
+
voice proof. Record changed paths and validation results.
|
|
13
|
+
|
|
14
|
+
When implementation validation passes, report it:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase build-validated
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If validation cannot pass, or this intent needs a prerequisite the app does not have, stop
|
|
21
|
+
without further changes:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
npx --yes copilotkit@4.9.50 onboard read feature/stop
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Otherwise run
|
|
28
|
+
`npx --yes copilotkit@4.9.50 onboard read feature/voice/proof`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Prove voice input reaches the existing chat without fabricating microphone access
|
|
2
|
+
|
|
3
|
+
Delegate proof to a fresh subagent. Confirm the real composer renders the microphone control
|
|
4
|
+
and that the runtime advertises transcription. Where browser microphone permission is
|
|
5
|
+
available and the developer authorizes it, record a short benign utterance and require its
|
|
6
|
+
transcript to appear in the composer and submit through the existing agent path.
|
|
7
|
+
|
|
8
|
+
When microphone permission is unavailable, use the official guide's documented canned
|
|
9
|
+
`onTranscribed`/transcript route for automated proof instead; do not grant permissions on the
|
|
10
|
+
developer's behalf or claim a live recording was made. Record the visible control, transcript
|
|
11
|
+
path, agent response, app URL, and process IDs. Fix changed-file defects and repeat.
|
|
12
|
+
|
|
13
|
+
Report each attempt at the proof as it ends, counting from one:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase journey-attempted --attempt 1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Report each repair cycle the same way, counting from one:
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
npx --yes copilotkit@4.9.50 onboard checkpoint --phase repair-attempted --attempt 1
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then run
|
|
26
|
+
`npx --yes copilotkit@4.9.50 onboard complete --visual-check <performed|skipped-no-browser-tool|failed>`
|
|
27
|
+
with the actual surface outcome.
|