copilotkit 4.3.0 → 4.5.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 +39 -10
- package/cli-build-info.json +28 -0
- package/index.js +7835 -1183
- package/package.json +6 -1
- package/release/release-tool.js +16191 -0
package/README.md
CHANGED
|
@@ -15,10 +15,33 @@ npx copilotkit@latest init
|
|
|
15
15
|
For this workspace, build and run the local CLI with Nx:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
pnpm nx build cli
|
|
18
|
+
CLI_ENV=local pnpm nx build cli
|
|
19
19
|
node dist/apps/cli/index.js --help
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
## Manual local validation
|
|
23
|
+
|
|
24
|
+
For manual login/session and hosted-project validation, run the supported built
|
|
25
|
+
artifact:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
CLI_ENV=local pnpm nx build cli
|
|
29
|
+
node dist/apps/cli/index.js login
|
|
30
|
+
node dist/apps/cli/index.js whoami
|
|
31
|
+
node dist/apps/cli/index.js project select
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`project select` selects or creates a hosted Intelligence project and provisions
|
|
35
|
+
its project-scoped `INTELLIGENCE_API_KEY`. Threads-enabled `init` and `create`
|
|
36
|
+
scaffolds run the same hosted project selection and API-key provisioning path;
|
|
37
|
+
use the built entrypoint when manually validating those steps too.
|
|
38
|
+
|
|
39
|
+
Do not run raw CLI source with commands such as
|
|
40
|
+
`pnpm exec tsx apps/cli/src/index.ts login`; source execution bypasses the
|
|
41
|
+
supported bundle, build-time defines, and packaging behavior, so it does not
|
|
42
|
+
validate the CLI users receive. An explicitly approved workspace wrapper is
|
|
43
|
+
acceptable only when it runs the built artifact.
|
|
44
|
+
|
|
22
45
|
## Discover Commands
|
|
23
46
|
|
|
24
47
|
Run help first when exploring the CLI:
|
|
@@ -54,7 +77,7 @@ persistence, insights), and `init` provisions a free license automatically —
|
|
|
54
77
|
you sign in with your browser during scaffolding. The `-i`/`--intelligence`
|
|
55
78
|
flag is retained as a deprecated no-op for backward compatibility.
|
|
56
79
|
|
|
57
|
-
Supported framework values include `langgraph-py`, `langgraph-js`, `mastra`, `pydantic-ai`, `aws-strands-py`, `adk`, `a2a`, `microsoft-agent-framework-dotnet`, `microsoft-agent-framework-py`, `flows`, `llamaindex`, `agno`, `ag2`, `mcp-apps`, `agentcore-langgraph`, `agentcore-strands`, `a2ui`, and `opengenui`.
|
|
80
|
+
Supported framework values include `langgraph-py`, `langgraph-js`, `claude-sdk-typescript`, `claude-sdk-python`, `mastra`, `pydantic-ai`, `aws-strands-py`, `adk`, `adk-angular`, `a2a`, `microsoft-agent-framework-dotnet`, `microsoft-agent-framework-py`, `flows`, `llamaindex`, `agno`, `ag2`, `mcp-apps`, `agentcore-langgraph`, `agentcore-strands`, `a2ui`, and `opengenui`.
|
|
58
81
|
|
|
59
82
|
`init` and `create` collect your starter choices, then connect project creation
|
|
60
83
|
to your CopilotKit workspace through Ops/Clerk before scaffolding. If you
|
|
@@ -252,7 +275,7 @@ explicitly re-enabled. `copilotkit telemetry reset` restores the full
|
|
|
252
275
|
fresh-install state: the decision is forgotten and the one-time notice shows
|
|
253
276
|
again on the next interactive run.
|
|
254
277
|
|
|
255
|
-
##
|
|
278
|
+
## Preview and release builds
|
|
256
279
|
|
|
257
280
|
Tester-facing prerelease builds are produced by CI via `workflow_dispatch` on
|
|
258
281
|
the `pkg-pr-new (cli)` workflow — never built locally (the repo root `.env`
|
|
@@ -261,21 +284,23 @@ targets local services, and CI is the reproducible path).
|
|
|
261
284
|
```bash
|
|
262
285
|
gh workflow run "pkg-pr-new (cli)" --ref <feature-branch> \
|
|
263
286
|
-f cli_env=production \
|
|
264
|
-
-f template_ref=<copilotkit-branch>
|
|
287
|
+
-f template_ref=<copilotkit-branch-tag-or-commit>
|
|
265
288
|
```
|
|
266
289
|
|
|
267
290
|
- `cli_env` — endpoint set baked into the binary (`local`, `dev`, `staging`,
|
|
268
291
|
`production`; defaults to `production`).
|
|
269
|
-
- `template_ref` — `CopilotKit/CopilotKit` branch
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
template comes from the third-party `ag2ai/ag2-copilotkit-starter`
|
|
273
|
-
|
|
292
|
+
- `template_ref` — committed `CopilotKit/CopilotKit` branch, tag, or commit.
|
|
293
|
+
The workflow resolves it to one canonical commit before building. Empty means
|
|
294
|
+
current remote `main`, which is also resolved before publication. The `ag2`
|
|
295
|
+
template comes from the third-party `ag2ai/ag2-copilotkit-starter` repository
|
|
296
|
+
at mutable `main`; build provenance identifies this explicit unpinned
|
|
297
|
+
exception.
|
|
274
298
|
|
|
275
299
|
Open the workflow run and copy the `npx https://pkg.pr.new/...` command from
|
|
276
300
|
the **job summary**; hand that one-liner to testers. Prerelease binaries
|
|
277
301
|
report `<version>-pre.<shortsha>` from `copilotkit --version`, so a tester's
|
|
278
|
-
build is always identifiable.
|
|
302
|
+
build is always identifiable. `copilotkit version` also reports the canonical
|
|
303
|
+
Intelligence and first-party CopilotKit commits embedded in the artifact.
|
|
279
304
|
|
|
280
305
|
Pushes and PRs continue to publish `CLI_ENV=local` builds automatically, as
|
|
281
306
|
before.
|
|
@@ -283,3 +308,7 @@ before.
|
|
|
283
308
|
Note: `workflow_dispatch` only works against refs that contain the dispatch
|
|
284
309
|
trigger — branches cut before this workflow landed need a merge from `main`
|
|
285
310
|
first.
|
|
311
|
+
|
|
312
|
+
Production validation, publication, provenance inspection, post-npm recovery,
|
|
313
|
+
and rollback are documented in the
|
|
314
|
+
[CLI release runbook](../../docs/runbooks/cli-release.md).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": {
|
|
4
|
+
"name": "copilotkit",
|
|
5
|
+
"version": "4.5.0"
|
|
6
|
+
},
|
|
7
|
+
"intelligence": {
|
|
8
|
+
"commit": "cdb1dbd45dd27adbaa8be1fcfd6843c2927f5943"
|
|
9
|
+
},
|
|
10
|
+
"copilotKit": {
|
|
11
|
+
"submittedInput": "a1c9b3147829ac358bae82df651f45a1aea2a437",
|
|
12
|
+
"commit": "a1c9b3147829ac358bae82df651f45a1aea2a437"
|
|
13
|
+
},
|
|
14
|
+
"channel": "production",
|
|
15
|
+
"triggeringActor": "MikeRyanDev",
|
|
16
|
+
"workflow": {
|
|
17
|
+
"runId": "30390320157",
|
|
18
|
+
"runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/30390320157"
|
|
19
|
+
},
|
|
20
|
+
"validationResult": "passed",
|
|
21
|
+
"ag2": {
|
|
22
|
+
"ownership": "third-party",
|
|
23
|
+
"repository": "ag2ai/ag2-copilotkit-starter",
|
|
24
|
+
"revision": "main",
|
|
25
|
+
"pinned": false
|
|
26
|
+
},
|
|
27
|
+
"builtAt": "2026-07-28T19:06:01Z"
|
|
28
|
+
}
|