@kitnai/cli 0.1.30 → 0.1.32
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 +52 -1
- package/dist/index.js +1011 -94
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -185,7 +185,57 @@ kitn create agent my-agent
|
|
|
185
185
|
kitn create tool my-tool
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
Creates a new component
|
|
188
|
+
Creates a new component file with a template and wires it into the barrel file (`src/ai/index.ts`).
|
|
189
|
+
|
|
190
|
+
### `kitn link`
|
|
191
|
+
|
|
192
|
+
Wire a tool into an agent's `tools` object. Adds the import statement and tools entry automatically.
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# Fully explicit
|
|
196
|
+
kitn link tool weather --to general-agent
|
|
197
|
+
|
|
198
|
+
# With a custom key name
|
|
199
|
+
kitn link tool weather --to general-agent --as getWeather
|
|
200
|
+
|
|
201
|
+
# Interactive — pick tool, then agent
|
|
202
|
+
kitn link
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**Flags:**
|
|
206
|
+
|
|
207
|
+
| Flag | Description |
|
|
208
|
+
|------|-------------|
|
|
209
|
+
| `--to <agent>` | Target agent name (interactive if omitted) |
|
|
210
|
+
| `--as <key>` | Key name in the tools object (defaults to the export name) |
|
|
211
|
+
|
|
212
|
+
### `kitn unlink`
|
|
213
|
+
|
|
214
|
+
Remove a tool from an agent's `tools` object. Removes the import if it's no longer referenced.
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
# Fully explicit
|
|
218
|
+
kitn unlink tool weather --from general-agent
|
|
219
|
+
|
|
220
|
+
# Interactive — pick tool, then agent
|
|
221
|
+
kitn unlink
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**Flags:**
|
|
225
|
+
|
|
226
|
+
| Flag | Description |
|
|
227
|
+
|------|-------------|
|
|
228
|
+
| `--from <agent>` | Target agent name (interactive if omitted) |
|
|
229
|
+
|
|
230
|
+
### `kitn rules`
|
|
231
|
+
|
|
232
|
+
Generate or regenerate AI coding assistant rules files (e.g. `AGENTS.md`, `.cursor/rules/kitn.mdc`).
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
kitn rules
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Fetches the latest rules template from the registry and writes files for each AI tool selected during `kitn init`. If no `aiTools` selection exists in `kitn.json`, prompts for one.
|
|
189
239
|
|
|
190
240
|
### `kitn build`
|
|
191
241
|
|
|
@@ -279,6 +329,7 @@ Created by `kitn init`. Controls where components are installed and which regist
|
|
|
279
329
|
| `framework` | `hono` |
|
|
280
330
|
| `aliases` | Directory paths for each component type |
|
|
281
331
|
| `registries` | Named registries — each value is a URL string or an object with `url`, `homepage`, `description` |
|
|
332
|
+
| `aiTools` | (optional) Selected AI coding tools for `kitn rules` — e.g. `["claude-code", "cursor"]` |
|
|
282
333
|
|
|
283
334
|
> Installed component tracking (file paths, content hashes, versions) is stored separately in `kitn.lock`. This file is auto-managed — don't edit it manually.
|
|
284
335
|
|