@relipa/ai-flow-kit 0.0.7 → 0.0.8-beta.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 +7 -6
- package/bin/aiflow.js +400 -360
- package/bin/ak.js +4 -0
- package/custom/templates/php-plain.md +261 -261
- package/custom/templates/php.md +261 -0
- package/custom/templates/python.md +79 -0
- package/docs/common/CHANGELOG.md +43 -1
- package/docs/common/QUICK_START.md +57 -50
- package/docs/common/cli-reference.md +161 -196
- package/docs/common/getting-started.md +3 -3
- package/docs/common/troubleshooting.md +7 -7
- package/package.json +2 -1
- package/scripts/checkpoint.js +46 -46
- package/scripts/gitnexus-worker.js +94 -94
- package/scripts/hooks/session-stop.js +55 -55
- package/scripts/init.js +7 -4
- package/scripts/task.js +21 -0
- package/scripts/use.js +880 -625
|
@@ -1,34 +1,56 @@
|
|
|
1
1
|
# CLI Reference
|
|
2
2
|
|
|
3
|
-
Complete reference for all `aiflow` commands.
|
|
3
|
+
Complete reference for all `ak` / `aiflow` commands.
|
|
4
|
+
|
|
5
|
+
> **Short alias:** `ak` is the preferred short form of `aiflow`. Every command also has a short alias shown in the format `command|alias`.
|
|
4
6
|
|
|
5
7
|
## Commands Overview
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
ak --help # Show all commands
|
|
11
|
+
ak <command> --help # Show command help
|
|
12
|
+
ak <alias> --help # Also works with aliases
|
|
10
13
|
```
|
|
11
14
|
|
|
15
|
+
### Quick Alias Reference
|
|
16
|
+
|
|
17
|
+
| Full command | Short | Full command | Short |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| `ak init` | `ak i` | `ak use` | `ak u` |
|
|
20
|
+
| `ak prompt` | `ak p` | `ak detect` | `ak d` |
|
|
21
|
+
| `ak task` | `ak t` | `ak context` | `ak ctx` |
|
|
22
|
+
| `ak checkpoint` | `ak cp` | `ak validate` | `ak vl` |
|
|
23
|
+
| `ak memory` | `ak mem` | `ak guide` | `ak g` |
|
|
24
|
+
| `ak remove` | `ak rm` | `ak update` | `ak up` |
|
|
25
|
+
| `ak sync-skills` | `ak sync` | `ak doctor` | `ak dr` |
|
|
26
|
+
| `ak telemetry` | `ak tel` | | |
|
|
27
|
+
|
|
28
|
+
| `task` sub-command | Short | `memory` sub-command | Short |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| `ak t status` | `ak t st` | `ak mem save` | `ak mem s` |
|
|
31
|
+
| `ak t list` | `ak t ls` | `ak mem get` | `ak mem g` |
|
|
32
|
+
| `ak t pause` | `ak t p` | `ak mem list` | `ak mem ls` |
|
|
33
|
+
| `ak t switch` | `ak t sw` | `ak mem search` | `ak mem sr` |
|
|
34
|
+
| `ak t resume` | `ak t r` | `ak mem delete` | `ak mem d` |
|
|
35
|
+
| `ak t reset` | `ak t rst` | `ak mem clear` | `ak mem cl` |
|
|
36
|
+
| `ak t remove` | `ak t rm` | | |
|
|
37
|
+
| `ak t next` | `ak t n` | | |
|
|
38
|
+
|
|
12
39
|
## init
|
|
13
40
|
|
|
14
41
|
Initialize AI Flow Kit in your project.
|
|
15
42
|
|
|
16
43
|
```bash
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# With adapter (MCP integration)
|
|
24
|
-
aiflow init --adapter jira
|
|
25
|
-
|
|
26
|
-
# Full setup
|
|
27
|
-
aiflow init --framework laravel --adapter jira
|
|
44
|
+
ak init # basic initialization
|
|
45
|
+
ak init -f laravel # with framework (--framework)
|
|
46
|
+
ak init -a jira # with adapter (--adapter)
|
|
47
|
+
ak init -f laravel -a jira # full setup
|
|
48
|
+
ak init -f spring-boot --with-rtk # enable RTK compression
|
|
49
|
+
ak init --no-rtk # skip RTK setup
|
|
28
50
|
```
|
|
29
51
|
|
|
30
52
|
**Options:**
|
|
31
|
-
- `-f, --framework <types>` — Framework templates, comma-separated (e.g. `spring-boot,reactjs`)
|
|
53
|
+
- `-f, --framework <types>` (alias: `--fw`) — Framework templates, comma-separated (e.g. `spring-boot,reactjs`)
|
|
32
54
|
- `-a, --adapter <types>` — MCP adapters (jira, backlog, google-sheets)
|
|
33
55
|
- `-e, --env <types>` — AI tools to configure (cursor, gemini, copilot, generic). Default excludes `generic`.
|
|
34
56
|
- `--with-rtk` — Force enable RTK token compression hook
|
|
@@ -62,38 +84,31 @@ Initializing ai-flow-kit (v1.0.0)...
|
|
|
62
84
|
Load context from a ticket, file, or manual entry.
|
|
63
85
|
|
|
64
86
|
```bash
|
|
65
|
-
#
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
#
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
aiflow use BACKLOG-456 --full
|
|
76
|
-
|
|
77
|
-
# Manual entry
|
|
78
|
-
aiflow use --manual
|
|
79
|
-
|
|
80
|
-
# Load from local file
|
|
81
|
-
aiflow use --file path/to/context.json
|
|
82
|
-
|
|
83
|
-
# Switch between versions
|
|
84
|
-
aiflow use 1.0.0
|
|
87
|
+
ak use JIRA-123 # load from Jira
|
|
88
|
+
ak use BACKLOG-456 # load from Backlog
|
|
89
|
+
ak use BACKLOG-456 -F # fast mode (--fast)
|
|
90
|
+
ak use BACKLOG-456 -U # full mode (--full)
|
|
91
|
+
ak use -m # manual entry (--manual)
|
|
92
|
+
ak use -f path/to/context.json # load from file (--file)
|
|
93
|
+
ak use BACKLOG-456 -c # load with all comments (--coms)
|
|
94
|
+
ak use BACKLOG-456 --clast 5 # last 5 comments
|
|
95
|
+
ak use BACKLOG-456 --cid 42 # specific comment
|
|
96
|
+
ak use 1.0.0 # switch between versions
|
|
85
97
|
```
|
|
86
98
|
|
|
87
99
|
**Options:**
|
|
88
100
|
- `<id>` — Ticket ID or version number
|
|
89
101
|
- `-m, --manual` — Manual context entry
|
|
90
|
-
- `-f, --file <path>` — Load from JSON
|
|
102
|
+
- `-f, --file <path>` — Load from file (JSON or plain text)
|
|
91
103
|
- `-s, --save <name>` — Save as named context
|
|
104
|
+
- `-c, --coms` — Load all comments (alias for `--with-comments`)
|
|
92
105
|
- `--with-comments` — Include all ticket comments
|
|
93
|
-
- `--
|
|
94
|
-
- `--
|
|
95
|
-
- `--
|
|
96
|
-
- `--
|
|
106
|
+
- `--cid <id>` — Load a specific comment by ID
|
|
107
|
+
- `--clast <n>` — Only fetch last N comments
|
|
108
|
+
- `--cfrom <id>` — Fetch comments from ID N onward
|
|
109
|
+
- `--cto <id>` — Fetch comments up to ID N
|
|
110
|
+
- `-F, --fast` — Fast mode: AI skips Q&A, lite 3-section requirement doc (< 5 min Gate 1)
|
|
111
|
+
- `-U, --full` — Full mode: force complete Gate 1 analysis with Q&A
|
|
97
112
|
|
|
98
113
|
**What it does:**
|
|
99
114
|
1. Fetches context from MCP adapter (if applicable)
|
|
@@ -113,42 +128,32 @@ Fetching context from Jira...
|
|
|
113
128
|
Ready to prompt! Run: aiflow prompt bug-fix
|
|
114
129
|
```
|
|
115
130
|
|
|
116
|
-
## task
|
|
131
|
+
## task (alias: `t`)
|
|
117
132
|
|
|
118
133
|
Manage multiple tasks — pause, switch, and resume while preserving gate progress.
|
|
119
134
|
|
|
120
135
|
```bash
|
|
121
|
-
#
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
# Pause current + switch to another task
|
|
132
|
-
aiflow task switch PROJ-99
|
|
133
|
-
|
|
134
|
-
# Resume a paused task
|
|
135
|
-
aiflow task resume PROJ-33
|
|
136
|
-
|
|
137
|
-
# Reset task to Gate 1 (keeps ticket context, clears gate progress)
|
|
138
|
-
aiflow task reset PROJ-33
|
|
139
|
-
|
|
140
|
-
# Permanently delete all saved data for a task
|
|
141
|
-
aiflow task remove PROJ-33
|
|
136
|
+
ak t st # show active + pending (task status)
|
|
137
|
+
ak t ls # list all saved tasks (task list)
|
|
138
|
+
ak t p # pause current task (task pause)
|
|
139
|
+
ak t p -n "waiting for API spec from PM" # pause with note (--note)
|
|
140
|
+
ak t sw PROJ-99 # switch to another task (task switch)
|
|
141
|
+
ak t r PROJ-33 # resume a paused task (task resume)
|
|
142
|
+
ak t rst PROJ-33 # reset to Gate 1 (task reset)
|
|
143
|
+
ak t rm PROJ-33 # delete all task data (task remove)
|
|
144
|
+
ak t n # approve gate & prep next session (task next)
|
|
145
|
+
ak t n -t PROJ-33 # specify ticket (--ticket)
|
|
142
146
|
```
|
|
143
147
|
|
|
144
|
-
**Sub-commands:**
|
|
145
|
-
- `status` — Show active task and all pending tasks
|
|
146
|
-
- `list` — List all saved tasks with gate state
|
|
147
|
-
- `pause [
|
|
148
|
-
- `switch <ticket-id>` — Pause current task + load/switch to another
|
|
149
|
-
- `resume <ticket-id>` — Restore a paused task as active
|
|
150
|
-
- `reset <ticket-id>` — Reset gate progress to Gate 1
|
|
151
|
-
- `remove <ticket-id>` — Permanently delete all saved data for the task
|
|
148
|
+
**Sub-commands (with aliases):**
|
|
149
|
+
- `status|st` — Show active task and all pending tasks
|
|
150
|
+
- `list|ls` — List all saved tasks with gate state
|
|
151
|
+
- `pause|p [-n <text>]` — Save current progress and clear active task
|
|
152
|
+
- `switch|sw <ticket-id>` — Pause current task + load/switch to another
|
|
153
|
+
- `resume|r <ticket-id>` — Restore a paused task as active
|
|
154
|
+
- `reset|rst <ticket-id>` — Reset gate progress to Gate 1; prompts to optionally delete `plan/<id>/` files
|
|
155
|
+
- `remove|rm <ticket-id>` — Permanently delete all saved data for the task
|
|
156
|
+
- `next|n [-t <id>]` — Approve current gate and prepare next session
|
|
152
157
|
|
|
153
158
|
**What it does:**
|
|
154
159
|
1. Saves a snapshot of the current context (`current.json`) to `.aiflow/tasks/<taskId>/context.json`
|
|
@@ -208,36 +213,28 @@ aiflow task remove PROJ-33
|
|
|
208
213
|
|
|
209
214
|
---
|
|
210
215
|
|
|
211
|
-
## prompt
|
|
216
|
+
## prompt (alias: `p`)
|
|
212
217
|
|
|
213
218
|
Generate an AI prompt with context, rules, and template.
|
|
214
219
|
|
|
215
220
|
```bash
|
|
216
|
-
#
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
#
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
#
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
# Generate refactor prompt
|
|
226
|
-
aiflow prompt refactor
|
|
227
|
-
|
|
228
|
-
# Generate impact analysis prompt
|
|
229
|
-
aiflow prompt impact
|
|
230
|
-
|
|
231
|
-
# List available prompts
|
|
232
|
-
aiflow prompt --list
|
|
221
|
+
ak p bug-fix # generate bug fix prompt
|
|
222
|
+
ak p feature # generate feature prompt
|
|
223
|
+
ak p investigation # generate investigation prompt
|
|
224
|
+
ak p refactor # generate refactor prompt
|
|
225
|
+
ak p impact # generate impact analysis prompt
|
|
226
|
+
ak p -l # list all prompt types (--list)
|
|
227
|
+
ak p bug-fix -o p.md # save to file (--output)
|
|
228
|
+
ak p bug-fix -L vietnamese # Vietnamese language (--lang)
|
|
229
|
+
ak p bug-fix -d comprehensive # comprehensive detail (--detail)
|
|
233
230
|
```
|
|
234
231
|
|
|
235
232
|
**Options:**
|
|
236
233
|
- `<type>` — Prompt type (bug-fix, feature, investigation, refactor, impact, docs)
|
|
237
234
|
- `-l, --list` — List available prompt types
|
|
238
235
|
- `-o, --output <file>` — Save to file instead of printing
|
|
239
|
-
-
|
|
240
|
-
-
|
|
236
|
+
- `-L, --lang <lang>` — Language (english, vietnamese)
|
|
237
|
+
- `-d, --detail <level>` — Detail level (minimal, standard, comprehensive)
|
|
241
238
|
|
|
242
239
|
**What it does:**
|
|
243
240
|
1. Loads current context (from `aiflow use`)
|
|
@@ -272,19 +269,15 @@ Investigate the bug following this process:
|
|
|
272
269
|
[Complete prompt ready to copy to Claude]
|
|
273
270
|
```
|
|
274
271
|
|
|
275
|
-
## detect
|
|
272
|
+
## detect (alias: `d`)
|
|
276
273
|
|
|
277
274
|
Auto-detect task type from a description.
|
|
278
275
|
|
|
279
276
|
```bash
|
|
280
|
-
#
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
aiflow detect
|
|
285
|
-
|
|
286
|
-
# Show confidence
|
|
287
|
-
aiflow detect "Add new feature" --verbose
|
|
277
|
+
ak d "Payment integration is broken" # detect from description
|
|
278
|
+
ak d # detect from current context
|
|
279
|
+
ak d "Add new feature" -v # show confidence (--verbose)
|
|
280
|
+
ak d "description" -t 90 # set threshold (--threshold)
|
|
288
281
|
```
|
|
289
282
|
|
|
290
283
|
**Options:**
|
|
@@ -312,34 +305,22 @@ Suggested skill: investigate-bug
|
|
|
312
305
|
Next: aiflow prompt bug-fix
|
|
313
306
|
```
|
|
314
307
|
|
|
315
|
-
## context
|
|
308
|
+
## context (alias: `ctx`)
|
|
316
309
|
|
|
317
310
|
Manage task contexts (save, load, list, delete).
|
|
318
311
|
|
|
319
312
|
```bash
|
|
320
|
-
#
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
#
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
# Load saved context
|
|
327
|
-
aiflow context --load "checkout-fix"
|
|
328
|
-
|
|
329
|
-
# Delete saved context
|
|
330
|
-
aiflow context --delete "checkout-fix"
|
|
331
|
-
|
|
332
|
-
# Clear all contexts
|
|
333
|
-
aiflow context --clear
|
|
334
|
-
|
|
335
|
-
# Show current context
|
|
336
|
-
aiflow context --show
|
|
313
|
+
ak ctx list # list saved contexts
|
|
314
|
+
ak ctx -s "checkout-fix" # save current context (--save)
|
|
315
|
+
ak ctx -l "checkout-fix" # load saved context (--load)
|
|
316
|
+
ak ctx -d "checkout-fix" # delete saved context (--delete)
|
|
317
|
+
ak ctx clear # clear all contexts
|
|
318
|
+
ak ctx show # show current context
|
|
337
319
|
```
|
|
338
320
|
|
|
339
321
|
**Options:**
|
|
340
|
-
- `-l, --list` — List all saved contexts
|
|
341
322
|
- `-s, --save <name>` — Save current context
|
|
342
|
-
-
|
|
323
|
+
- `-l, --load <name>` — Load saved context
|
|
343
324
|
- `-d, --delete <name>` — Delete saved context
|
|
344
325
|
- `--clear` — Clear all contexts
|
|
345
326
|
- `--show` — Show current context details
|
|
@@ -362,20 +343,17 @@ $ aiflow context --load checkout-fix
|
|
|
362
343
|
✓ Ready to prompt!
|
|
363
344
|
```
|
|
364
345
|
|
|
365
|
-
## update
|
|
346
|
+
## update (alias: `up`)
|
|
366
347
|
|
|
367
348
|
Update to the latest version.
|
|
368
349
|
|
|
369
350
|
```bash
|
|
370
|
-
#
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
# Force update even if already latest
|
|
374
|
-
aiflow update --force
|
|
351
|
+
ak up # update to latest
|
|
352
|
+
ak up -f # force update (--force)
|
|
375
353
|
```
|
|
376
354
|
|
|
377
355
|
**Options:**
|
|
378
|
-
-
|
|
356
|
+
- `-f, --force` — Force update even if already latest
|
|
379
357
|
|
|
380
358
|
**What it does:**
|
|
381
359
|
1. Checks for newer version
|
|
@@ -399,13 +377,12 @@ You can switch back with: aiflow use 1.0.0
|
|
|
399
377
|
✨ Update completed!
|
|
400
378
|
```
|
|
401
379
|
|
|
402
|
-
## sync-skills
|
|
380
|
+
## sync-skills (alias: `sync`)
|
|
403
381
|
|
|
404
382
|
Manually synchronize AI Instruction files with local custom skills.
|
|
405
383
|
|
|
406
384
|
```bash
|
|
407
|
-
#
|
|
408
|
-
aiflow sync-skills
|
|
385
|
+
ak sync # sync AI Instruction files
|
|
409
386
|
```
|
|
410
387
|
|
|
411
388
|
**What it does:**
|
|
@@ -422,19 +399,18 @@ $ aiflow sync-skills
|
|
|
422
399
|
✨ Sync completed!
|
|
423
400
|
```
|
|
424
401
|
|
|
425
|
-
## doctor
|
|
402
|
+
## doctor (alias: `dr`)
|
|
426
403
|
|
|
427
404
|
Health check for your setup.
|
|
428
405
|
|
|
429
406
|
```bash
|
|
430
|
-
#
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
# Run with verbose output
|
|
434
|
-
aiflow doctor --verbose
|
|
407
|
+
ak dr # run health check
|
|
408
|
+
ak dr -v # verbose output (--verbose)
|
|
409
|
+
ak dr -t PROJ-33 # token breakdown for ticket (--ticket)
|
|
435
410
|
```
|
|
436
411
|
|
|
437
412
|
**Options:**
|
|
413
|
+
- `-t, --ticket <id>` — Show token breakdown for specific ticket
|
|
438
414
|
- `-v, --verbose` — Show detailed checks
|
|
439
415
|
|
|
440
416
|
**What it does:**
|
|
@@ -459,26 +435,22 @@ Running health check for AI Flow Kit...
|
|
|
459
435
|
✨ Everything looks healthy! You are ready to fly.
|
|
460
436
|
```
|
|
461
437
|
|
|
462
|
-
## validate
|
|
438
|
+
## validate (alias: `vl`)
|
|
463
439
|
|
|
464
440
|
Validate AI output against team rules and quality standards.
|
|
465
441
|
|
|
466
442
|
```bash
|
|
467
|
-
#
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
aiflow validate output.php --ruleset strict
|
|
472
|
-
|
|
473
|
-
# Show detailed report
|
|
474
|
-
aiflow validate output.php --verbose
|
|
443
|
+
ak vl output.php # validate a file
|
|
444
|
+
ak vl output.php -r strict # strict rule set (--ruleset)
|
|
445
|
+
ak vl output.php -v # detailed report (--verbose)
|
|
446
|
+
ak vl output.php -x # auto-fix trailing whitespace (--fix)
|
|
475
447
|
```
|
|
476
448
|
|
|
477
449
|
**Options:**
|
|
478
450
|
- `<file>` — File to validate
|
|
479
|
-
- `-r, --ruleset <set>` — Rule set (default, strict,
|
|
451
|
+
- `-r, --ruleset <set>` — Rule set (default, strict, lenient)
|
|
480
452
|
- `-v, --verbose` — Detailed report
|
|
481
|
-
-
|
|
453
|
+
- `-x, --fix` — Auto-fix trailing whitespace
|
|
482
454
|
|
|
483
455
|
**What it does:**
|
|
484
456
|
1. Loads validation rules from `custom/rules/`
|
|
@@ -500,22 +472,15 @@ Issues found: 2 warnings, 1 error
|
|
|
500
472
|
Suggestions: Add test case, rename variable
|
|
501
473
|
```
|
|
502
474
|
|
|
503
|
-
## telemetry
|
|
475
|
+
## telemetry (alias: `tel`)
|
|
504
476
|
|
|
505
477
|
Manage usage telemetry.
|
|
506
478
|
|
|
507
479
|
```bash
|
|
508
|
-
#
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
#
|
|
512
|
-
aiflow telemetry enable
|
|
513
|
-
|
|
514
|
-
# Disable tracking (config retained)
|
|
515
|
-
aiflow telemetry disable
|
|
516
|
-
|
|
517
|
-
# Force-send buffered events now
|
|
518
|
-
aiflow telemetry flush
|
|
480
|
+
ak tel status # view status, buffer size, last flush
|
|
481
|
+
ak tel enable # interactive setup (URL, secret, email)
|
|
482
|
+
ak tel disable # disable tracking (config retained)
|
|
483
|
+
ak tel flush # force-send buffered events now
|
|
519
484
|
```
|
|
520
485
|
|
|
521
486
|
**Sub-commands:**
|
|
@@ -526,37 +491,26 @@ aiflow telemetry flush
|
|
|
526
491
|
|
|
527
492
|
---
|
|
528
493
|
|
|
529
|
-
## memory
|
|
494
|
+
## memory (alias: `mem`)
|
|
530
495
|
|
|
531
496
|
Manage team knowledge and context memory.
|
|
532
497
|
|
|
533
498
|
```bash
|
|
534
|
-
#
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
#
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
# List all memories
|
|
541
|
-
aiflow memory list
|
|
542
|
-
|
|
543
|
-
# Delete memory
|
|
544
|
-
aiflow memory delete "old-memory"
|
|
545
|
-
|
|
546
|
-
# Search memories
|
|
547
|
-
aiflow memory search "validation"
|
|
548
|
-
|
|
549
|
-
# Clear all memories
|
|
550
|
-
aiflow memory clear
|
|
499
|
+
ak mem s "payment-flow" "Process: 1. Validate, 2. Call Stripe, 3. Update DB" # save
|
|
500
|
+
ak mem g "payment-flow" # retrieve (memory get)
|
|
501
|
+
ak mem ls # list all (memory list)
|
|
502
|
+
ak mem sr "validation" # search (memory search)
|
|
503
|
+
ak mem d "old-memory" # delete (memory delete)
|
|
504
|
+
ak mem cl # clear all (memory clear)
|
|
551
505
|
```
|
|
552
506
|
|
|
553
|
-
**Sub-commands:**
|
|
554
|
-
- `save <key> <value>` — Save a note
|
|
555
|
-
- `get <key>` — Read a note
|
|
556
|
-
- `list` — List all notes
|
|
557
|
-
- `search <query>` — Search notes
|
|
558
|
-
- `delete <key>` — Delete a note
|
|
559
|
-
- `clear` — Clear all notes
|
|
507
|
+
**Sub-commands (with aliases):**
|
|
508
|
+
- `save|s <key> <value>` — Save a note
|
|
509
|
+
- `get|g <key>` — Read a note
|
|
510
|
+
- `list|ls` — List all notes
|
|
511
|
+
- `search|sr <query>` — Search notes
|
|
512
|
+
- `delete|d <key>` — Delete a note
|
|
513
|
+
- `clear|cl` — Clear all notes
|
|
560
514
|
|
|
561
515
|
**What it does:**
|
|
562
516
|
1. Stores team knowledge in `.aiflow/memory/`
|
|
@@ -574,24 +528,19 @@ Found 3 memories matching "payment":
|
|
|
574
528
|
3. payment-tests
|
|
575
529
|
```
|
|
576
530
|
|
|
577
|
-
## guide
|
|
531
|
+
## guide (alias: `g`)
|
|
578
532
|
|
|
579
533
|
Show quickstart guide.
|
|
580
534
|
|
|
581
535
|
```bash
|
|
582
|
-
#
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
# Architecture & flow only
|
|
586
|
-
aiflow guide --flow
|
|
587
|
-
|
|
588
|
-
# Command reference only
|
|
589
|
-
aiflow guide --commands
|
|
536
|
+
ak g # full guide
|
|
537
|
+
ak g -f # architecture & flow only (--flow)
|
|
538
|
+
ak g -c # command reference only (--commands)
|
|
590
539
|
```
|
|
591
540
|
|
|
592
541
|
**Options:**
|
|
593
|
-
-
|
|
594
|
-
-
|
|
542
|
+
- `-f, --flow` — Show architecture & flow diagram only
|
|
543
|
+
- `-c, --commands` — Show command reference only
|
|
595
544
|
|
|
596
545
|
---
|
|
597
546
|
|
|
@@ -617,13 +566,29 @@ aiflow gate <n> approved --ticket <id>
|
|
|
617
566
|
|
|
618
567
|
---
|
|
619
568
|
|
|
569
|
+
## remove (alias: `rm`)
|
|
570
|
+
|
|
571
|
+
Remove ai-flow-kit from project, a cached version, or uninstall globally.
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
ak rm # remove from project
|
|
575
|
+
ak rm -g # uninstall globally (--global)
|
|
576
|
+
ak rm --version 1.0.0 # remove cached version from .aiflow/
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**Options:**
|
|
580
|
+
- `--version <ver>` — Remove a specific cached version from `.aiflow/versions/`
|
|
581
|
+
- `-g, --global` — Uninstall the global npm package (removes `aiflow` command)
|
|
582
|
+
|
|
583
|
+
---
|
|
584
|
+
|
|
620
585
|
## Global Options
|
|
621
586
|
|
|
622
587
|
These work with any command:
|
|
623
588
|
|
|
624
589
|
```bash
|
|
625
|
-
|
|
626
|
-
|
|
590
|
+
ak --version # Show installed version (-v, -V)
|
|
591
|
+
ak <command> --help # Show help for a command (-h)
|
|
627
592
|
```
|
|
628
593
|
|
|
629
594
|
## Exit Codes
|
|
@@ -13,14 +13,14 @@ This guide walks you through setting up AI Flow Kit for your first project.
|
|
|
13
13
|
|
|
14
14
|
### Global Installation (Recommended for teams)
|
|
15
15
|
```bash
|
|
16
|
-
npm install -g ai-flow-kit
|
|
16
|
+
npm install -g @relipa/ai-flow-kit
|
|
17
17
|
aiflow --version
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
### Local Installation
|
|
21
21
|
```bash
|
|
22
22
|
cd your-project
|
|
23
|
-
npm install ai-flow-kit
|
|
23
|
+
npm install @relipa/ai-flow-kit
|
|
24
24
|
npx aiflow --version
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -199,7 +199,7 @@ aiflow doctor
|
|
|
199
199
|
### "aiflow command not found"
|
|
200
200
|
```bash
|
|
201
201
|
# If installed globally
|
|
202
|
-
npm install -g ai-flow-kit
|
|
202
|
+
npm install -g @relipa/ai-flow-kit
|
|
203
203
|
|
|
204
204
|
# If installed locally
|
|
205
205
|
npx aiflow --version
|
|
@@ -8,20 +8,20 @@ Solutions to common issues with AI Flow Kit.
|
|
|
8
8
|
|
|
9
9
|
**Global installation:**
|
|
10
10
|
```bash
|
|
11
|
-
npm install -g ai-flow-kit
|
|
11
|
+
npm install -g @relipa/ai-flow-kit
|
|
12
12
|
aiflow --version
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Local installation:**
|
|
16
16
|
```bash
|
|
17
17
|
cd your-project
|
|
18
|
-
npm install ai-flow-kit
|
|
18
|
+
npm install @relipa/ai-flow-kit
|
|
19
19
|
npx aiflow --version
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Windows cmd/PowerShell:**
|
|
23
23
|
```cmd
|
|
24
|
-
npm install -g ai-flow-kit
|
|
24
|
+
npm install -g @relipa/ai-flow-kit
|
|
25
25
|
refreshenv
|
|
26
26
|
aiflow --version
|
|
27
27
|
```
|
|
@@ -33,8 +33,8 @@ aiflow --version
|
|
|
33
33
|
chmod +x ~/.npm/_npx/*/bin/aiflow.js
|
|
34
34
|
|
|
35
35
|
# Or reinstall globally
|
|
36
|
-
npm uninstall -g ai-flow-kit
|
|
37
|
-
npm install -g ai-flow-kit
|
|
36
|
+
npm uninstall -g @relipa/ai-flow-kit
|
|
37
|
+
npm install -g @relipa/ai-flow-kit
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
---
|
|
@@ -52,7 +52,7 @@ npm --version # Should be 6 or higher
|
|
|
52
52
|
**Clear npm cache:**
|
|
53
53
|
```bash
|
|
54
54
|
npm cache clean --force
|
|
55
|
-
npm install -g ai-flow-kit
|
|
55
|
+
npm install -g @relipa/ai-flow-kit
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Check disk space:**
|
|
@@ -589,7 +589,7 @@ touch .aiflow/no-telemetry
|
|
|
589
589
|
|
|
590
590
|
## Quick Fixes Checklist
|
|
591
591
|
|
|
592
|
-
- [ ] `npm install -g ai-flow-kit` — Fresh install
|
|
592
|
+
- [ ] `npm install -g @relipa/ai-flow-kit` — Fresh install
|
|
593
593
|
- [ ] `aiflow update` — Update to latest
|
|
594
594
|
- [ ] `aiflow doctor` — Verify setup
|
|
595
595
|
- [ ] `aiflow doctor --fix` — Auto-fix issues
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relipa/ai-flow-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8-beta.0",
|
|
4
4
|
"description": "All-in-one AI Flow Kit for team development with Claude AI - skills, templates, and MCP adapters",
|
|
5
5
|
"author": "Example Team",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "commonjs",
|
|
12
12
|
"main": "index.js",
|
|
13
13
|
"bin": {
|
|
14
|
+
"ak": "./bin/ak.js",
|
|
14
15
|
"aiflow": "./bin/aiflow.js"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|