copilotkit 4.8.4 → 4.9.1
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 +46 -5
- package/cli-build-info.json +7 -7
- package/index.js +647 -124
- package/onboarding/index.json +140 -1
- package/onboarding/prompts/authenticate/start.md +47 -10
- package/onboarding/prompts/credentials/finalize-plan.md +64 -14
- package/onboarding/prompts/credentials/plan.md +54 -16
- package/onboarding/prompts/fallback/best-effort.md +36 -0
- package/onboarding/prompts/framework/ag2.md +48 -0
- package/onboarding/prompts/framework/agno.md +48 -0
- package/onboarding/prompts/framework/built-in.md +43 -0
- package/onboarding/prompts/framework/claude-sdk-python.md +49 -0
- package/onboarding/prompts/framework/claude-sdk-typescript.md +53 -0
- package/onboarding/prompts/framework/crewai-flows.md +56 -0
- package/onboarding/prompts/framework/deep-agents.md +45 -0
- package/onboarding/prompts/framework/google-adk.md +8 -3
- package/onboarding/prompts/framework/langgraph-fastapi.md +42 -0
- package/onboarding/prompts/framework/langgraph-python.md +8 -3
- package/onboarding/prompts/framework/langgraph-typescript.md +8 -3
- package/onboarding/prompts/framework/llamaindex.md +51 -0
- package/onboarding/prompts/framework/mastra.md +8 -3
- package/onboarding/prompts/framework/ms-agent-dotnet.md +8 -3
- package/onboarding/prompts/framework/ms-agent-harness-dotnet.md +62 -0
- package/onboarding/prompts/framework/ms-agent-python.md +8 -3
- package/onboarding/prompts/framework/pydantic-ai.md +48 -0
- package/onboarding/prompts/framework/strands-python.md +42 -0
- package/onboarding/prompts/framework/strands-typescript.md +42 -0
- package/onboarding/prompts/frontend/angular.md +9 -3
- package/onboarding/prompts/frontend/nextjs.md +8 -3
- package/onboarding/prompts/frontend/plan.md +22 -10
- package/onboarding/prompts/frontend/react-native.md +9 -3
- package/onboarding/prompts/frontend/react-spa.md +20 -5
- package/onboarding/prompts/frontend/vue.md +9 -3
- package/onboarding/prompts/implementation/build-and-validate.md +12 -2
- package/onboarding/prompts/proof/complete.md +51 -16
- package/onboarding/prompts/proof/oss-baseline.md +59 -0
- package/onboarding/prompts/proof/round-trip.md +51 -24
- package/onboarding/prompts/subagent/create-plan.md +14 -2
- package/onboarding/prompts/subagent/implement-and-validate.md +10 -0
- package/onboarding/prompts/subagent/inspect-repository.md +6 -1
- package/onboarding/prompts/subagent/prove-oss-baseline.md +35 -0
- package/onboarding/prompts/subagent/prove-round-trip.md +46 -21
- package/onboarding/prompts/unsupported/no-validated-path.md +23 -9
- package/package.json +1 -1
- package/release/release-tool.js +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ answer up front and run anywhere:
|
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
46
|
copilotkit project list --json # see the choices
|
|
47
|
+
copilotkit project list --search support --json # search name, slug, or id
|
|
47
48
|
copilotkit project select --project <slug-or-id> # pick an existing one
|
|
48
49
|
copilotkit project select --create "My App" --json # create one and select it
|
|
49
50
|
```
|
|
@@ -57,12 +58,19 @@ slugs instead of recording a selection that points at nothing.
|
|
|
57
58
|
```json
|
|
58
59
|
{
|
|
59
60
|
"type": "completed",
|
|
61
|
+
"selected_project_slug": "my-app",
|
|
60
62
|
"project": { "id": "220", "slug": "my-app", "organizationId": "org_123" },
|
|
61
63
|
"config_path": "/work/my-repo/.copilotkit/project.json",
|
|
62
|
-
"
|
|
64
|
+
"project_file_written": true,
|
|
65
|
+
"api_key_provisioned": true,
|
|
66
|
+
"environment_file_written": true
|
|
63
67
|
}
|
|
64
68
|
```
|
|
65
69
|
|
|
70
|
+
The four top-level summary fields let a coding agent read the result without
|
|
71
|
+
searching the nested object or reading either file. The payload never contains
|
|
72
|
+
the API key.
|
|
73
|
+
|
|
66
74
|
`config_path` is absolute, and it is not always under the directory you ran in.
|
|
67
75
|
The project record is repository-scoped: it goes into an existing `.copilotkit/`
|
|
68
76
|
at or above the current directory when there is one, and otherwise into the
|
|
@@ -75,11 +83,12 @@ directory you ran in, because that is the file the app process loads — so in a
|
|
|
75
83
|
repository with a `web/` and an `agent/` half, run `project select` in the half
|
|
76
84
|
that needs the key.
|
|
77
85
|
|
|
78
|
-
**Check
|
|
86
|
+
**Check all four summary fields, not just the exit code.** Key provisioning is
|
|
79
87
|
deliberately non-fatal: if it fails, the selection is still persisted, a warning
|
|
80
88
|
goes to stderr, and the command still exits 0 — leaving a scaffold with no
|
|
81
89
|
`INTELLIGENCE_API_KEY`, whose first run fails with an opaque "Failed to
|
|
82
|
-
initialize thread".
|
|
90
|
+
initialize thread". `api_key_provisioned` and `environment_file_written` are
|
|
91
|
+
false in this state.
|
|
83
92
|
Re-running `project select` is a valid recovery.
|
|
84
93
|
|
|
85
94
|
Failures use the `login --json` shape, `{"error": "...", "type": "failed"}`, and
|
|
@@ -152,6 +161,30 @@ written in, and which init flags that framework supports — `-i`, `--mock`, and
|
|
|
152
161
|
`--channel` are each accepted only for some. It answers from a catalog compiled into the
|
|
153
162
|
binary, so it needs no API call, no authentication, and no TTY.
|
|
154
163
|
|
|
164
|
+
### Scaffolding without a terminal
|
|
165
|
+
|
|
166
|
+
`init` prompts for anything you do not name, and a prompt is a keypress handler,
|
|
167
|
+
so a shell with no terminal has nobody to answer it. Name the answers up front
|
|
168
|
+
and the run needs no terminal at all:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
copilotkit login # once, at a terminal
|
|
172
|
+
copilotkit init -n my-agent -f langgraph-py \
|
|
173
|
+
--project <slug-or-id> --yes
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
- `--project <slug-or-id>` selects an existing hosted Intelligence project, and
|
|
177
|
+
`--create <name>` makes one. They are mutually exclusive, and they resolve the
|
|
178
|
+
same way `copilotkit project select` does: a typo fails with the available
|
|
179
|
+
slugs instead of creating something you did not ask for.
|
|
180
|
+
- `-y`/`--yes` installs dependencies without asking; `--no-install` answers the
|
|
181
|
+
same question without installing. `--install` is a longhand for `--yes`.
|
|
182
|
+
|
|
183
|
+
A run with no terminal is refused only for what it has not answered, and every
|
|
184
|
+
missing flag is named at once. Sign-in is the one answer no flag supplies:
|
|
185
|
+
signing in opens a browser and finishes back at the terminal, so run
|
|
186
|
+
`copilotkit login` first rather than letting a scripted run reach it.
|
|
187
|
+
|
|
155
188
|
`init` and `create` collect your starter choices, then connect project creation
|
|
156
189
|
to your CopilotKit workspace through Ops/Clerk before scaffolding. If you
|
|
157
190
|
already have a valid CLI session, the CLI reuses that workspace connection;
|
|
@@ -454,6 +487,7 @@ copilotkit verify
|
|
|
454
487
|
copilotkit verify --json # machine-readable output
|
|
455
488
|
copilotkit verify --runtime-url http://localhost:8080/copilotkit
|
|
456
489
|
copilotkit verify --round-trip # also run the agent
|
|
490
|
+
copilotkit verify --expect-runtime oss --round-trip --agent incident_triage
|
|
457
491
|
```
|
|
458
492
|
|
|
459
493
|
It checks that a hosted project is selected, that a project API key is present
|
|
@@ -485,6 +519,12 @@ a caller can branch on the command instead of parsing it. With `--json` the
|
|
|
485
519
|
payload is the only thing on stdout and every diagnostic goes to stderr, so
|
|
486
520
|
piping is safe.
|
|
487
521
|
|
|
522
|
+
Use `--expect-runtime oss` to prove an open-source runtime instead. In this
|
|
523
|
+
mode, hosted project, key, and thread-route checks do not apply. The command
|
|
524
|
+
exits zero only when `/info` is valid, declares the agent named by `--agent`,
|
|
525
|
+
omits `licenseStatus`, and `--round-trip` passes. Both `--round-trip` and
|
|
526
|
+
`--agent` are required for an OSS pass.
|
|
527
|
+
|
|
488
528
|
The runtime URL defaults to `http://localhost:3000/api/copilotkit` and the
|
|
489
529
|
report always states which URL it probed, because a wrong default is the most
|
|
490
530
|
likely reason for a runtime failure. Pass `--runtime-url` when the frontend
|
|
@@ -634,8 +674,9 @@ report `<version>-pre.<shortsha>` from `copilotkit --version`, so a tester's
|
|
|
634
674
|
build is always identifiable. `copilotkit version` also reports the canonical
|
|
635
675
|
Intelligence and first-party CopilotKit commits embedded in the artifact.
|
|
636
676
|
|
|
637
|
-
Pushes
|
|
638
|
-
|
|
677
|
+
Pushes publish `CLI_ENV=local` builds automatically. Pull requests publish
|
|
678
|
+
`CLI_ENV=production` builds under the separate `copilotkit-pr` package name so
|
|
679
|
+
testers can use hosted login without confusing the artifact with a release.
|
|
639
680
|
|
|
640
681
|
Note: `workflow_dispatch` only works against refs that contain the dispatch
|
|
641
682
|
trigger — branches cut before this workflow landed need a merge from `main`
|
package/cli-build-info.json
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "copilotkit",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.9.1"
|
|
6
6
|
},
|
|
7
7
|
"intelligence": {
|
|
8
|
-
"commit": "
|
|
8
|
+
"commit": "0528d9de0d7915386d789deb676d44c4668842b1"
|
|
9
9
|
},
|
|
10
10
|
"copilotKit": {
|
|
11
|
-
"submittedInput": "
|
|
12
|
-
"commit": "
|
|
11
|
+
"submittedInput": "2ad03320fe1f0834b138113fffe791781e5b226e",
|
|
12
|
+
"commit": "2ad03320fe1f0834b138113fffe791781e5b226e"
|
|
13
13
|
},
|
|
14
14
|
"channel": "production",
|
|
15
15
|
"triggeringActor": "MikeRyanDev",
|
|
16
16
|
"workflow": {
|
|
17
|
-
"runId": "
|
|
18
|
-
"runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/
|
|
17
|
+
"runId": "32915219082",
|
|
18
|
+
"runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/32915219082"
|
|
19
19
|
},
|
|
20
20
|
"validationResult": "passed",
|
|
21
21
|
"ag2": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"revision": "main",
|
|
25
25
|
"pinned": false
|
|
26
26
|
},
|
|
27
|
-
"builtAt": "2026-08-
|
|
27
|
+
"builtAt": "2026-08-26T00:29:57Z"
|
|
28
28
|
}
|