copilotkit 3.0.3 → 4.0.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.
Files changed (3) hide show
  1. package/README.md +59 -8
  2. package/index.js +2382 -944
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -54,7 +54,7 @@ persistence, insights), and `init` provisions a free license automatically —
54
54
  you sign in with your browser during scaffolding. The `-i`/`--intelligence`
55
55
  flag is retained as a deprecated no-op for backward compatibility.
56
56
 
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`, and `agno`.
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`.
58
58
 
59
59
  `init` and `create` collect your starter choices, then connect project creation
60
60
  to your CopilotKit workspace through Ops/Clerk before scaffolding. If you
@@ -69,13 +69,34 @@ when you already have an app and want your coding agent to add CopilotKit for yo
69
69
 
70
70
  ```bash
71
71
  copilotkit skills install
72
+ copilotkit skills install -y
73
+ copilotkit skills install --skill react-core,runtime --agent claude-code
74
+ copilotkit skills install --list
72
75
  copilotkit skills onboard
73
76
  copilotkit skills onboard --no-clipboard
74
77
  ```
75
78
 
76
- `copilotkit skills install` installs all CopilotKit agent skills for your coding
79
+ `copilotkit skills install` installs CopilotKit agent skills for your coding
77
80
  agent (Claude Code, Codex, Cursor, Gemini, and others) by running the standalone
78
- `skills` installer under the hood. It runs without a TTY, so it is safe in CI.
81
+ `skills` installer under the hood.
82
+
83
+ By default it installs every skill and prompts you to choose which coding agents
84
+ to install them to. Narrow or automate the install with these flags (they work
85
+ on both `install` and `onboard`):
86
+
87
+ - `-s, --skill <names>` — comma-separated skills to install (default: all),
88
+ e.g. `--skill react-core,runtime`.
89
+ - `-a, --agent <names>` — comma-separated coding agents to install to
90
+ (default: choose interactively), e.g. `--agent claude-code,cursor`.
91
+ - `-y, --yes` — install everything (all skills to all agents) non-interactively.
92
+ - `--global` — install at the user level instead of the current project.
93
+ - `--list` — list the available skills and exit without installing (`install`
94
+ only).
95
+
96
+ Choosing which coding agents to install to is interactive, so a non-interactive
97
+ environment (CI, scripts) must make the choice deterministic: pass `-y` to
98
+ install everything, or `--agent <name>` to target specific agents. Otherwise the
99
+ command exits with guidance instead of hanging.
79
100
 
80
101
  `copilotkit skills onboard` is a superset of `install`. It also:
81
102
 
@@ -89,7 +110,8 @@ agent (Claude Code, Codex, Cursor, Gemini, and others) by running the standalone
89
110
  Pass `--no-clipboard` to always print the prompt instead of copying it. This is
90
111
  useful in headless or remote shells where clipboard access is unavailable.
91
112
  `onboard` requires an interactive terminal because it opens a browser to sign
92
- in; use `skills install` for non-interactive environments.
113
+ in; use `skills install -y` (or `--agent <name>`) for non-interactive
114
+ environments.
93
115
 
94
116
  When to use which:
95
117
 
@@ -126,7 +148,19 @@ After creation, add any provider secrets required by the template. Most template
126
148
  OPENAI_API_KEY=your-key-here
127
149
  ```
128
150
 
129
- The ADK template uses `GOOGLE_API_KEY`. The A2A template uses both `GOOGLE_API_KEY` and `OPENAI_API_KEY`.
151
+ (Replace `your-key-here` with your real key placeholder-shaped values are
152
+ rejected by the dev preflight described below.)
153
+
154
+ The ADK template uses `GOOGLE_API_KEY`. The A2A template uses both `OPENAI_API_KEY` and `GOOGLE_API_KEY`.
155
+
156
+ For threads-enabled scaffolds, `npm run dev` verifies the required key(s)
157
+ before starting anything: if a key is unset, empty, or still an obvious
158
+ placeholder (wrapped in `<...>`, starting with `your-`/`your_`, or ending in
159
+ `...` like the printed examples), the run exits with instructions naming the
160
+ key, the vendor console URL to create one, and the exact `.env` line to add.
161
+ A real key exported in your shell environment satisfies the check too. An
162
+ exported empty or whitespace value falls back to the `.env` value, while an
163
+ exported placeholder-shaped value fails the gate outright.
130
164
 
131
165
  The Microsoft Agent Framework .NET template uses GitHub Models. Set its C# agent token with `dotnet user-secrets set GitHubToken "<your-token>"` from the generated `agent/` directory.
132
166
 
@@ -134,11 +168,28 @@ Do not commit generated `.env` files or personal secrets.
134
168
 
135
169
  ## Run A Generated Project
136
170
 
137
- After scaffolding:
171
+ After scaffolding, the CLI prompts you to install dependencies:
172
+
173
+ ```
174
+ Install dependencies now? (npm install) [Y/n]
175
+ ```
176
+
177
+ Press Enter (or `y`) to let the CLI run the install command for you. Press `n` to skip and run it yourself later. Either way, the CLI then prints the exact next steps.
178
+
179
+ When a required LLM vendor API key is missing from `.env` — unset, empty, or still a placeholder — the next-step block names the key, links to the vendor console, and shows the exact `.env` line to add before you run the dev server:
180
+
181
+ ```
182
+ Set OPENAI_API_KEY before running: Required by the agent runtime.
183
+ Get a key: https://platform.openai.com/api-keys
184
+ Add to .env: OPENAI_API_KEY=sk-...
185
+ ```
186
+
187
+ This is the same key the `npm run dev` preflight gate enforces (see [Environment Files](#environment-files)), so the two are always in agreement.
188
+
189
+ The CLI also prints `cd <project>` because it cannot change your shell's working directory. `npm run dev` is always left for you to run:
138
190
 
139
191
  ```bash
140
192
  cd my-agent
141
- npm install
142
193
  npm run dev
143
194
  ```
144
195
 
@@ -151,7 +202,7 @@ python3 -m venv agents/.venv
151
202
  agents/.venv/bin/pip install -r agents/requirements.txt
152
203
  ```
153
204
 
154
- For the Intelligence threads template, keep Docker Desktop running before `npm run dev`. The root dev script starts the required Docker Compose services automatically, so a separate `docker compose up` step is only needed when you intentionally want to manage infrastructure by hand.
205
+ For the Intelligence threads template, keep Docker Desktop running before `npm run dev`. The root dev script starts the required Docker Compose services automatically when a license token is present in `.env` (without one it prints a "threads locked" hint and skips Docker), so a separate `docker compose up` step is only needed when you intentionally want to manage infrastructure by hand.
155
206
 
156
207
  ## Diagnostics
157
208