@kitnai/cli 0.1.32 → 0.1.34

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 CHANGED
@@ -235,7 +235,65 @@ Generate or regenerate AI coding assistant rules files (e.g. `AGENTS.md`, `.curs
235
235
  kitn rules
236
236
  ```
237
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.
238
+ Prompts you to select which AI coding tools you use, then fetches the latest rules template from the registry and generates the corresponding files. Works in any directory uses project aliases from `kitn.json` if available, otherwise uses defaults.
239
+
240
+ ### `kitn chat <message>`
241
+
242
+ AI-powered scaffolding assistant. Describe what you need in plain English and the assistant will generate a plan to add, create, link, or remove components.
243
+
244
+ ```bash
245
+ # Basic usage
246
+ kitn chat "I want a weather agent with a tool"
247
+
248
+ # Override the chat service URL
249
+ kitn chat "add a calculator tool" --url http://localhost:4002
250
+ ```
251
+
252
+ **Flags:**
253
+
254
+ | Flag | Description |
255
+ |------|-------------|
256
+ | `--url <url>` | Chat service URL (overrides config and default) |
257
+
258
+ The chat service URL is resolved in this order:
259
+ 1. `--url` flag
260
+ 2. `KITN_CHAT_URL` environment variable
261
+ 3. User config (`~/.kitn/config.json` `chat-url` key)
262
+ 4. Project config (`kitn.json` `chatService.url`)
263
+ 5. Default: `https://chat.kitn.dev`
264
+
265
+ ### `kitn config`
266
+
267
+ Manage user-level configuration stored at `~/.kitn/config.json`.
268
+
269
+ ```bash
270
+ # Set a config value
271
+ kitn config set chat-url https://chat.acme.com
272
+ kitn config set api-key sk_my_secret_key
273
+
274
+ # Get a config value
275
+ kitn config get chat-url
276
+
277
+ # List all config values
278
+ kitn config list
279
+ ```
280
+
281
+ **Subcommands:**
282
+
283
+ | Subcommand | Description |
284
+ |------------|-------------|
285
+ | `set <key> <value>` | Set a config value |
286
+ | `get <key>` | Get a config value |
287
+ | `list` | List all config values |
288
+
289
+ **Valid keys:**
290
+
291
+ | Key | Description |
292
+ |-----|-------------|
293
+ | `chat-url` | Chat service URL for `kitn chat` |
294
+ | `api-key` | API key for authenticated chat service requests |
295
+
296
+ API key values are masked in output for security.
239
297
 
240
298
  ### `kitn build`
241
299
 
@@ -329,7 +387,6 @@ Created by `kitn init`. Controls where components are installed and which regist
329
387
  | `framework` | `hono` |
330
388
  | `aliases` | Directory paths for each component type |
331
389
  | `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"]` |
333
390
 
334
391
  > Installed component tracking (file paths, content hashes, versions) is stored separately in `kitn.lock`. This file is auto-managed — don't edit it manually.
335
392