copilotkit 4.9.4 → 4.9.24
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 +26 -12
- package/cli-build-info.json +8 -8
- package/index.js +3508 -2375
- package/onboarding/index.json +15 -1
- package/onboarding/prompts/authenticate/start.md +129 -65
- package/onboarding/prompts/conversion/plan.md +113 -0
- package/onboarding/prompts/credentials/finalize-plan.md +174 -138
- package/onboarding/prompts/credentials/plan.md +26 -21
- package/onboarding/prompts/fallback/best-effort.md +103 -22
- package/onboarding/prompts/framework/ag2.md +7 -7
- package/onboarding/prompts/framework/agno.md +11 -8
- package/onboarding/prompts/framework/built-in.md +2 -2
- package/onboarding/prompts/framework/claude-sdk-python.md +7 -7
- package/onboarding/prompts/framework/claude-sdk-typescript.md +9 -9
- package/onboarding/prompts/framework/crewai-flows.md +27 -11
- package/onboarding/prompts/framework/deep-agents.md +8 -7
- 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 +6 -6
- package/onboarding/prompts/framework/mastra.md +3 -3
- package/onboarding/prompts/framework/ms-agent-dotnet.md +3 -3
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +7 -9
- package/onboarding/prompts/framework/ms-agent-python.md +3 -3
- package/onboarding/prompts/framework/pydantic-ai.md +26 -15
- package/onboarding/prompts/framework/strands-python.md +7 -6
- package/onboarding/prompts/framework/strands-typescript.md +9 -7
- package/onboarding/prompts/frontend/angular.md +16 -3
- package/onboarding/prompts/frontend/nextjs.md +3 -3
- package/onboarding/prompts/frontend/plan.md +6 -6
- package/onboarding/prompts/frontend/react-native.md +7 -2
- package/onboarding/prompts/frontend/react-spa.md +2 -2
- package/onboarding/prompts/frontend/vue.md +7 -2
- package/onboarding/prompts/implementation/build-and-validate.md +45 -79
- package/onboarding/prompts/proof/complete.md +31 -12
- package/onboarding/prompts/proof/oss-baseline.md +15 -50
- package/onboarding/prompts/proof/round-trip.md +88 -268
- package/onboarding/prompts/starter/clone.md +17 -8
- package/onboarding/prompts/subagent/create-plan.md +52 -1
- package/onboarding/prompts/subagent/implement-and-validate.md +70 -44
- package/onboarding/prompts/subagent/inspect-repository.md +26 -4
- package/onboarding/prompts/subagent/prove-oss-baseline.md +2 -1
- package/onboarding/prompts/subagent/prove-round-trip.md +156 -36
- package/onboarding/prompts/unsupported/no-validated-path.md +10 -2
- package/package.json +1 -1
- package/release/release-tool.js +1 -1
|
@@ -5,24 +5,37 @@ Preserve an existing Angular frontend. Use the selected page for a new frontend.
|
|
|
5
5
|
Use the starter shortcut only if all these facts are true: the target directory contains
|
|
6
6
|
no entries, its name is a valid `init` project name, and the selected framework is ADK.
|
|
7
7
|
If all three facts are true, record Angular as the selected frontend. Then run
|
|
8
|
-
`npx --yes copilotkit@4.9.
|
|
8
|
+
`npx --yes copilotkit@4.9.24 onboard read starter/clone` before you fetch documentation.
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
12
|
- https://docs.copilotkit.ai/angular.md
|
|
13
13
|
- https://docs.copilotkit.ai/angular/inspector.md
|
|
14
14
|
- https://docs.copilotkit.ai/reference/angular/directives/CopilotKitAgentContext.md
|
|
15
|
+
- https://docs.copilotkit.ai/angular/guides/frontend-tools-generative-ui.md
|
|
15
16
|
|
|
16
17
|
Take the frontend-context step from the directive page. The agent-framework page shows
|
|
17
18
|
the React hook, and Angular shares the same context through this directive instead.
|
|
18
19
|
Use the Inspector page for proof.
|
|
19
20
|
|
|
21
|
+
Angular has no `useComponent`. Render the terminal component with `registerComponent` from
|
|
22
|
+
`@copilotkit/angular`, from the generative-UI guide above. The component is an ordinary
|
|
23
|
+
`ToolRenderer`: it takes a required `toolCall` signal input and reads `toolCall().args`.
|
|
24
|
+
The framework page shows the React hook. This function is Angular's equivalent, and the
|
|
25
|
+
two are the same tool to the agent, so nothing changes on the agent side.
|
|
26
|
+
|
|
27
|
+
`registerComponent` takes no `handler`, because the component only displays. If the
|
|
28
|
+
installed `@copilotkit/angular` does not export it, use `registerFrontendTool` with the
|
|
29
|
+
same `component` and `handler: async () => {}` instead, and record that substitution. Do
|
|
30
|
+
not give the handler a body: a display-only tool that returns a value writes it into the
|
|
31
|
+
thread as the tool's result.
|
|
32
|
+
|
|
20
33
|
Angular CLI 22 requires Node `^22.22.3 || ^24.15.0 || >=26`. Check the Node version before
|
|
21
34
|
you create or build an Angular project. If the installed version is lower, select a
|
|
22
35
|
supported version first and use it for every later command in this project.
|
|
23
36
|
|
|
24
37
|
If the pages support the selection, record Angular and these URLs. Then run
|
|
25
|
-
`npx --yes copilotkit@4.9.
|
|
38
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/finalize-plan`.
|
|
26
39
|
|
|
27
40
|
If the documentation does not support the selection, run
|
|
28
|
-
`npx --yes copilotkit@4.9.
|
|
41
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -15,7 +15,7 @@ These TypeScript options have starters: Claude Agent SDK TypeScript, LangGraph T
|
|
|
15
15
|
Mastra, and Strands Agents TypeScript. The .NET option is Microsoft Agent Framework .NET.
|
|
16
16
|
|
|
17
17
|
If all shortcut conditions are true, record Next.js as the selected frontend. Then run
|
|
18
|
-
`npx --yes copilotkit@4.9.
|
|
18
|
+
`npx --yes copilotkit@4.9.24 onboard read starter/clone` before you fetch documentation.
|
|
19
19
|
|
|
20
20
|
## Documentation
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ agent as the default agent, which is correct only for a project that has no agen
|
|
|
27
27
|
Do not replace the developer's existing agent with the built-in agent.
|
|
28
28
|
|
|
29
29
|
If the page supports the selection, record Next.js and this URL. Then run
|
|
30
|
-
`npx --yes copilotkit@4.9.
|
|
30
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/finalize-plan`.
|
|
31
31
|
|
|
32
32
|
If the documentation does not support the selection, run
|
|
33
|
-
`npx --yes copilotkit@4.9.
|
|
33
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -24,11 +24,11 @@ process.
|
|
|
24
24
|
|
|
25
25
|
Use exactly one matching internal route:
|
|
26
26
|
|
|
27
|
-
1. React SPA: `npx --yes copilotkit@4.9.
|
|
28
|
-
2. Next.js: `npx --yes copilotkit@4.9.
|
|
29
|
-
3. Angular: `npx --yes copilotkit@4.9.
|
|
30
|
-
4. Vue 3: `npx --yes copilotkit@4.9.
|
|
31
|
-
5. React Native: `npx --yes copilotkit@4.9.
|
|
27
|
+
1. React SPA: `npx --yes copilotkit@4.9.24 onboard read frontend/react-spa`
|
|
28
|
+
2. Next.js: `npx --yes copilotkit@4.9.24 onboard read frontend/nextjs`
|
|
29
|
+
3. Angular: `npx --yes copilotkit@4.9.24 onboard read frontend/angular`
|
|
30
|
+
4. Vue 3: `npx --yes copilotkit@4.9.24 onboard read frontend/vue`
|
|
31
|
+
5. React Native: `npx --yes copilotkit@4.9.24 onboard read frontend/react-native`
|
|
32
32
|
|
|
33
33
|
If no listed frontend fits, run
|
|
34
|
-
`npx --yes copilotkit@4.9.
|
|
34
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -9,8 +9,13 @@ Preserve an existing React Native frontend. Use the selected page for a new fron
|
|
|
9
9
|
|
|
10
10
|
Use the Event Inspector page for proof.
|
|
11
11
|
|
|
12
|
+
Render the terminal component with `useComponent` from `@copilotkit/react-native`. The
|
|
13
|
+
package re-exports it from react-core, and it behaves as it does on the web. The page also
|
|
14
|
+
documents `useRenderTool`, which is React Native's own hook for drawing a tool the agent
|
|
15
|
+
already has. That is a different job and needs a tool in the agent.
|
|
16
|
+
|
|
12
17
|
If the pages support the selection, record React Native and these URLs. Then run
|
|
13
|
-
`npx --yes copilotkit@4.9.
|
|
18
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/finalize-plan`.
|
|
14
19
|
|
|
15
20
|
If the documentation does not support the selection, run
|
|
16
|
-
`npx --yes copilotkit@4.9.
|
|
21
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -11,7 +11,7 @@ not move the agent into it.
|
|
|
11
11
|
- https://docs.copilotkit.ai/react-spa.md
|
|
12
12
|
|
|
13
13
|
If the page supports the selection, record React SPA and this URL. Then run
|
|
14
|
-
`npx --yes copilotkit@4.9.
|
|
14
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/finalize-plan`.
|
|
15
15
|
|
|
16
16
|
If the documentation does not support the selection, run
|
|
17
|
-
`npx --yes copilotkit@4.9.
|
|
17
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -7,11 +7,16 @@ Preserve an existing Vue 3 frontend. Use the selected page for a new frontend.
|
|
|
7
7
|
- https://docs.copilotkit.ai/vue.md
|
|
8
8
|
- https://docs.copilotkit.ai/reference/vue/components/CopilotKitProvider.md
|
|
9
9
|
- https://docs.copilotkit.ai/reference/vue/hooks/useAgentContext.md
|
|
10
|
+
- https://docs.copilotkit.ai/reference/vue/hooks/useComponent.md
|
|
10
11
|
|
|
11
12
|
Use the component page for the provider setup. Use the hook page for frontend context.
|
|
12
13
|
|
|
14
|
+
Render the terminal component with `useComponent` from `@copilotkit/vue/v2`, from the hook
|
|
15
|
+
page above. Vue has its own `useComponent`, which is not the React package. Take it from
|
|
16
|
+
that reference page rather than from a Vue generative-UI guide, which is not published.
|
|
17
|
+
|
|
13
18
|
If the pages support the selection, record Vue 3 and these URLs. Then run
|
|
14
|
-
`npx --yes copilotkit@4.9.
|
|
19
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/finalize-plan`.
|
|
15
20
|
|
|
16
21
|
If the documentation does not support the selection, run
|
|
17
|
-
`npx --yes copilotkit@4.9.
|
|
22
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -1,97 +1,63 @@
|
|
|
1
1
|
# Implement and validate the plan
|
|
2
2
|
|
|
3
|
-
Do not implement the plan yourself.
|
|
3
|
+
Do not implement the plan yourself. Use the step order in the approved plan.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
approved plan, selected framework, frontend, model, repository findings, and selected
|
|
7
|
-
documentation URLs. Give it the documentation policy recorded during framework selection.
|
|
8
|
-
Wait for the subagent to finish.
|
|
5
|
+
## Protected-path audit
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
`npx --yes copilotkit@4.9.4 onboard read proof/round-trip`.
|
|
7
|
+
Run the audit from the target app directory:
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
```text
|
|
10
|
+
npx --yes copilotkit@4.9.24 onboard audit
|
|
11
|
+
```
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
It compares every protected path with the digest the CLI captured for it. Its result starts
|
|
14
|
+
with `Status: passed`, `Status: failed`, or `Status: blocked`. The audit passes only when
|
|
15
|
+
the result starts with `Status: passed`.
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
support the plan. In those cases run
|
|
23
|
-
`npx --yes copilotkit@4.9.4 onboard read unsupported/no-validated-path`.
|
|
17
|
+
`Status: failed` names each protected path that changed and how. If an audit reports a
|
|
18
|
+
changed protected path, use the route-out rules. Never repair, reset, or revert a protected
|
|
19
|
+
path. Also do not retry the audit: it reads files, so a second run of it answers the same.
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
`Status: blocked` means the audit has no baseline to read. A blocked audit compared
|
|
22
|
+
nothing and proved nothing changed. It is not a preservation failure: do not report a
|
|
23
|
+
protected path as changed. Report the printed reason and use the route-out rules.
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
A non-pass audit never continues the run. Do not send an audit result to a repair worker.
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
Spawn one implementation subagent. Tell it to run
|
|
28
|
+
`npx --yes copilotkit@4.9.24 onboard read subagent/implement-and-validate` first and follow
|
|
29
|
+
the prompt it returns. If that read fails because the subagent cannot use the shell, stop that
|
|
30
|
+
subagent. Run the same command yourself, then spawn a fresh subagent with the returned prompt
|
|
31
|
+
and the same handoff. Give it the plan, selected framework, frontend, model, exact target app
|
|
32
|
+
directory, selected documentation URLs, and the
|
|
33
|
+
documentation policy recorded during framework selection or conversion planning. On a
|
|
34
|
+
conversion, also give it the frozen criterion. Give it the protected path list. Require it
|
|
35
|
+
to implement every step in plan order and run the full validation list. Wait for it.
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
One subagent implements the whole plan. Do not divide the work across concurrent subagents,
|
|
38
|
+
and do not spawn a second subagent to reconcile a split.
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
If the implementation result does not start with `Status: passed`, do not continue to proof.
|
|
41
|
+
Run the protected-path audit after the implementation subagent passes. If any protected path
|
|
42
|
+
changed, use the route-out rules. Continue to proof only when that audit passes.
|
|
35
43
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
release, so do not decorate a documented example with anything it does not show.
|
|
44
|
+
After the selected implementation path passes, run
|
|
45
|
+
`npx --yes copilotkit@4.9.24 onboard read proof/round-trip`.
|
|
39
46
|
|
|
40
|
-
|
|
41
|
-
governs props, options, and imports, and it stops there. A documentation example names a
|
|
42
|
-
domain of its own to make itself readable. Build what the plan names, in the project's
|
|
43
|
-
own domain, from the wiring the page shows. Do not carry the page's example domain into
|
|
44
|
-
the project: not its agent name, not its tools, not its data.
|
|
47
|
+
## Repair rules
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
file outside the project directory: not for a credential, and not for an API question the
|
|
49
|
-
fetched documentation answers. A missing credential is the main coding agent's to ask
|
|
50
|
-
for.
|
|
49
|
+
If a result starts with `Status: failed`, or a validation command fails, first
|
|
50
|
+
decide which kind of failure it is before you route.
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Run the recorded baseline checks again after the Intelligence wiring and report any
|
|
57
|
-
regression.
|
|
52
|
+
A failure in a file this run created or changed is a defect in the new work. Send it to the
|
|
53
|
+
implementation subagent. Before you run the next command, repeat the failed command. Make at
|
|
54
|
+
most three repair attempts per command. After the repair passes, continue on the same
|
|
55
|
+
implementation path.
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
step, and record each version it changed. Then re-run the recorded baseline checks. A
|
|
61
|
-
regression at this point can only be the upgrade, which is why it is checked here rather
|
|
62
|
-
than after the wiring.
|
|
57
|
+
## Route-out rules
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Report each `@copilotkit/*` version before and after the upgrade. Where the plan named no
|
|
70
|
-
dependency change, say that the installed versions already met the floor.
|
|
71
|
-
|
|
72
|
-
When the documentation creates the frontend with the framework's own scaffolder,
|
|
73
|
-
run that scaffolder rather than hand-authoring what it emits.
|
|
74
|
-
Do not re-declare a compiler option it set. Every real project of that framework
|
|
75
|
-
inherits those defaults, so a hand-written replacement measures a configuration no
|
|
76
|
-
developer has. Where the plan needs configuration the scaffolder did not write,
|
|
77
|
-
extend the scaffolder's file and set only what you add.
|
|
78
|
-
|
|
79
|
-
Where the plan names data the project already holds, share that data with the agent
|
|
80
|
-
through the context API the selected documentation names for this frontend. Then write the agent's instructions to
|
|
81
|
-
refuse to answer about entities the shared context does not carry, and to name what is
|
|
82
|
-
missing instead. An agent with no context and no refusal invents plausible entities, and
|
|
83
|
-
no part of the run errors.
|
|
84
|
-
|
|
85
|
-
Run the validation commands from the approved plan. Record the changed files, command
|
|
86
|
-
results, and each error. Do not claim that the real user journey works in this phase.
|
|
87
|
-
|
|
88
|
-
Report the runtime constructor you wrote. Name whether it passes `intelligence` or
|
|
89
|
-
`runner`. A runtime built with `runner` is the SSE runtime and never reads the credential,
|
|
90
|
-
whatever the browser shows.
|
|
91
|
-
|
|
92
|
-
Gather what you need in as few commands as possible. Combine independent reads into one
|
|
93
|
-
command rather than running them one at a time. Split a command only when its result decides
|
|
94
|
-
what you run next.
|
|
95
|
-
|
|
96
|
-
Return the implementation result and validation evidence to the main coding agent. Stop
|
|
97
|
-
after you return the result.
|
|
59
|
+
Route out for `Status: blocked`. Route out only when the failure is not yours to fix: the
|
|
60
|
+
failure is in code this run did not write, the fix requires changing the developer's existing
|
|
61
|
+
agent or frontend, the same command still fails after three repair attempts, or the
|
|
62
|
+
documentation does not support the plan. In those cases run
|
|
63
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|
|
@@ -37,15 +37,30 @@ The handoff must include:
|
|
|
37
37
|
- The URL of the running app.
|
|
38
38
|
- The command that starts the app in the future.
|
|
39
39
|
- The debugging surface this journey's frontend can reach, named below.
|
|
40
|
-
- How to use https://intelligence.copilotkit.ai to manage the Intelligence
|
|
40
|
+
- How to use https://intelligence.copilotkit.ai to manage the Intelligence
|
|
41
|
+
installation. Do not open it. This item makes the developer aware the dashboard is
|
|
42
|
+
there, and it is a sentence to write rather than a check to perform. Nothing in this
|
|
43
|
+
graph gates on the dashboard, so a dashboard this run never opened is not a finding,
|
|
44
|
+
not a caveat, and not a blocker.
|
|
41
45
|
- The process IDs and stop commands for the running agent and frontend.
|
|
42
46
|
- The `@copilotkit/*` versions this conversion changed, and what they were before.
|
|
47
|
+
- On a conversion, the criterion this run was judged against, in the words the run was
|
|
48
|
+
given.
|
|
49
|
+
- Any path this run created that git does not ignore, and what to do with each.
|
|
50
|
+
|
|
51
|
+
A run leaves paths beside the credential file. Tool output such as `.playwright-mcp/` and
|
|
52
|
+
`.langgraph_api/` is regenerable, so the developer normally wants it ignored.
|
|
53
|
+
`.copilotkit/` is not debris: `project.json` and `channels.json` are the project's own
|
|
54
|
+
declared state and belong in the commit, while `.copilotkit/artifacts/` holds regenerable
|
|
55
|
+
manifests and does not. Name each path and say which of the two it is. Do not add an
|
|
56
|
+
ignore line for any of them yourself. None of these carries a secret, unlike the
|
|
57
|
+
credential path, so the developer decides.
|
|
43
58
|
|
|
44
59
|
Name the debugging surface this journey's frontend can reach, rather than the one the rest
|
|
45
60
|
of the documentation leads with. For a web frontend it is the CopilotKit Inspector. For
|
|
46
61
|
React Native there is no Inspector: it is a browser overlay built on a DOM custom element,
|
|
47
62
|
and `@copilotkit/react-native` does not ship it. Give a mobile developer
|
|
48
|
-
`npx --yes copilotkit@4.9.
|
|
63
|
+
`npx --yes copilotkit@4.9.24 verify --round-trip`, the runtime's own log, the AG-UI
|
|
49
64
|
Event Inspector in the CopilotKit VS Code extension, and the Intelligence thread view
|
|
50
65
|
instead. Naming the Inspector to a developer who cannot open it costs them the time it
|
|
51
66
|
takes to conclude their own wiring is broken.
|
|
@@ -57,7 +72,7 @@ the friction commands without another developer question. The CLI telemetry gate
|
|
|
57
72
|
whether the report is sent.
|
|
58
73
|
|
|
59
74
|
```text
|
|
60
|
-
npx --yes copilotkit@4.9.
|
|
75
|
+
npx --yes copilotkit@4.9.24 onboard friction --category <slug> --cost-seconds <seconds>
|
|
61
76
|
```
|
|
62
77
|
|
|
63
78
|
Write one or two sentences on the command's standard input. Pick one category from
|
|
@@ -74,14 +89,14 @@ Tell the developer when you send a friction report. Do not quote or summarize th
|
|
|
74
89
|
unless the developer asks. If the CLI says that telemetry is disabled or unavailable,
|
|
75
90
|
state that the report was not sent and continue without another question.
|
|
76
91
|
|
|
77
|
-
When the evidence is gathered, run `npx --yes copilotkit@4.9.
|
|
92
|
+
When the evidence is gathered, run `npx --yes copilotkit@4.9.24 onboard complete`, carrying
|
|
78
93
|
the surface-check outcome the proof subagent returned. Pass exactly one flag, and pass the
|
|
79
94
|
one that matches this journey's surface.
|
|
80
95
|
|
|
81
96
|
For a web frontend -- React SPA, Next.js, Angular, Vue:
|
|
82
97
|
|
|
83
98
|
```text
|
|
84
|
-
npx --yes copilotkit@4.9.
|
|
99
|
+
npx --yes copilotkit@4.9.24 onboard complete --visual-check <outcome>
|
|
85
100
|
```
|
|
86
101
|
|
|
87
102
|
The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`.
|
|
@@ -89,7 +104,7 @@ The outcome is one of `performed`, `skipped-no-browser-tool`, or `failed`.
|
|
|
89
104
|
For React Native:
|
|
90
105
|
|
|
91
106
|
```text
|
|
92
|
-
npx --yes copilotkit@4.9.
|
|
107
|
+
npx --yes copilotkit@4.9.24 onboard complete --device-check <outcome>
|
|
93
108
|
```
|
|
94
109
|
|
|
95
110
|
The outcome is one of `performed`, `skipped-no-device`, or `failed`.
|
|
@@ -107,14 +122,18 @@ If the round trip proved and something after it still blocked this run, add `--b
|
|
|
107
122
|
to the same command:
|
|
108
123
|
|
|
109
124
|
```text
|
|
110
|
-
npx --yes copilotkit@4.9.
|
|
125
|
+
npx --yes copilotkit@4.9.24 onboard complete --visual-check performed --blocked-by <cause>
|
|
111
126
|
```
|
|
112
127
|
|
|
113
|
-
The cause is one of `
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
128
|
+
The cause is one of `inspector` for a debugging surface that did not open,
|
|
129
|
+
`plan-excluded-capability` for a capability the approved plan had already excluded for this
|
|
130
|
+
framework, and `other` for anything else. Pick `other` rather than leaving the flag off.
|
|
131
|
+
The command ends the run as blocked and prints what the blocker leaves unverified.
|
|
132
|
+
|
|
133
|
+
The managed Intelligence dashboard is not among these, because nothing in this graph asks a
|
|
134
|
+
run to open it. A run that records a blocker for a surface it was never sent to looks worse
|
|
135
|
+
than an identical run that wrote the same handoff sentence, and the two are then not
|
|
136
|
+
comparable.
|
|
118
137
|
|
|
119
138
|
This is the flag for a journey that worked. It is not a way to report an unsupported path,
|
|
120
139
|
and a blocked run here is still owed the full handoff above: the URL, the start command,
|
|
@@ -1,59 +1,24 @@
|
|
|
1
1
|
# Prove the existing OSS baseline
|
|
2
2
|
|
|
3
|
-
Do not prove the baseline yourself. Spawn one proof subagent.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Do not prove the baseline yourself. Spawn one proof subagent. Tell it to run
|
|
4
|
+
`npx --yes copilotkit@4.9.24 onboard read subagent/prove-oss-baseline` first and follow the
|
|
5
|
+
prompt it returns. If that read fails because the subagent cannot use the shell, stop that
|
|
6
|
+
subagent. Run the same command yourself, then spawn a fresh subagent with the returned prompt
|
|
7
|
+
and the same handoff. Give it the repository findings and exact CLI package spec. Wait for the
|
|
8
|
+
subagent to finish.
|
|
7
9
|
|
|
8
10
|
Do not change project files before this proof ends. Starting existing development
|
|
9
11
|
processes and their ignored runtime files is allowed.
|
|
10
12
|
|
|
11
|
-
If the subagent proves the `both-oss` predicate, keep its evidence with the plan
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
If the subagent proves the `both-oss` predicate, keep its evidence with the plan and run
|
|
14
|
+
`npx --yes copilotkit@4.9.24 onboard read conversion/plan`. That project already works.
|
|
15
|
+
What it needs is the conversion, not a build.
|
|
16
|
+
|
|
17
|
+
If it proves another supported starting state, record that state and run
|
|
18
|
+
`npx --yes copilotkit@4.9.24 onboard read credentials/plan`. This prompt is served
|
|
19
|
+
whenever a project looks like an OSS integration, so a baseline that did not prove is an
|
|
20
|
+
ordinary starting state rather than a failure.
|
|
14
21
|
|
|
15
22
|
If it cannot identify the running process safely, exposes a secret, or finds a baseline
|
|
16
23
|
failure that cannot be classified, run
|
|
17
|
-
`npx --yes copilotkit@4.9.
|
|
18
|
-
|
|
19
|
-
## Baseline proof subagent brief
|
|
20
|
-
|
|
21
|
-
Everything below the rule is the subagent's prompt. Give it verbatim.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
# Prove the existing OSS CopilotKit baseline
|
|
26
|
-
|
|
27
|
-
Read and run only inside the project directory. Do not edit source, configuration,
|
|
28
|
-
dependencies, or tracked files. Do not read, show, store, or return secret values.
|
|
29
|
-
|
|
30
|
-
Find the expected agent id from the project. Start the existing agent and frontend only
|
|
31
|
-
when they are not already running. Before using a port, identify its process and working
|
|
32
|
-
directory. Do not stop a process outside this project.
|
|
33
|
-
|
|
34
|
-
Prove the live runtime in this order:
|
|
35
|
-
|
|
36
|
-
1. GET `/info` from the project's CopilotKit runtime and require a valid response.
|
|
37
|
-
2. Require `/info` to declare the expected agent id.
|
|
38
|
-
3. Confirm that `licenseStatus` is absent. Its presence means the live runtime uses
|
|
39
|
-
Intelligence and is not an OSS starting state.
|
|
40
|
-
4. Confirm from project files that the runtime constructor passes a `runner` option rather
|
|
41
|
-
than an `intelligence` option. A package, import, project file, or key is not use proof.
|
|
42
|
-
5. Run
|
|
43
|
-
`npx --yes copilotkit@4.9.4 verify --expect-runtime oss --round-trip --agent <expected-agent-id> --json`,
|
|
44
|
-
with the runtime URL or auth header options that this project needs. Require exit zero
|
|
45
|
-
and the JSON `ok` field to be `true`.
|
|
46
|
-
6. Drive one real request through the existing frontend, CopilotKit runtime, and expected
|
|
47
|
-
agent. Require the existing user-visible result. If no browser tool is available, the
|
|
48
|
-
round trip is not proved and the state is `unproved`.
|
|
49
|
-
|
|
50
|
-
Classify the state as `both-oss` only when all six predicates are true: agent present,
|
|
51
|
-
interface present, CopilotKit present, CopilotKit round trip proven, runtime connection
|
|
52
|
-
`oss`, and managed Intelligence not configured. Return each predicate and its secret-safe
|
|
53
|
-
evidence.
|
|
54
|
-
|
|
55
|
-
The default in-memory OSS runner is ephemeral. SQLite, custom, or framework persistence
|
|
56
|
-
can be durable. Report the persistence that project evidence proves, or `unproved`. Do not
|
|
57
|
-
replace it and do not describe all OSS runs as ephemeral.
|
|
58
|
-
|
|
59
|
-
Stop after returning the baseline result, process ids and ports used, and evidence paths.
|
|
24
|
+
`npx --yes copilotkit@4.9.24 onboard read unsupported/no-validated-path`.
|