@relipa/ai-flow-kit 0.0.4 → 0.0.5-beta.1

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 (41) hide show
  1. package/{docs/README.md → README.md} +25 -18
  2. package/bin/aiflow.js +77 -7
  3. package/custom/skills/{validate-ticket → read-study-requirement}/SKILL.md +27 -17
  4. package/custom/skills/review-plan/SKILL.md +1 -1
  5. package/custom/templates/shared/gate-workflow.md +88 -75
  6. package/custom/templates/tools/claude.md +1 -1
  7. package/custom/templates/tools/copilot.md +1 -1
  8. package/custom/templates/tools/cursor.md +1 -1
  9. package/custom/templates/tools/gemini.md +1 -1
  10. package/custom/templates/tools/generic.md +1 -1
  11. package/docs/{AIFLOW.md → common/AIFLOW.md} +462 -458
  12. package/docs/{CHANGELOG.md → common/CHANGELOG.md} +132 -100
  13. package/docs/{cli-reference.md → common/cli-reference.md} +98 -28
  14. package/docs/{troubleshooting.md → common/troubleshooting.md} +15 -0
  15. package/docs/project/ARCHITECTURE.md +28 -0
  16. package/package.json +7 -5
  17. package/scripts/context.js +1 -1
  18. package/scripts/guide.js +16 -0
  19. package/scripts/hooks/session-start.js +145 -141
  20. package/scripts/init.js +168 -44
  21. package/scripts/prompt.js +431 -402
  22. package/scripts/telemetry/cli.js +243 -0
  23. package/scripts/telemetry/config.js +91 -0
  24. package/scripts/telemetry/crypto.js +20 -0
  25. package/scripts/telemetry/flush.js +162 -0
  26. package/scripts/telemetry/record.js +138 -0
  27. package/scripts/use.js +74 -31
  28. package/upstream/skills/using-superpowers/SKILL.md +14 -0
  29. package/docs/IMPLEMENTATION_SUMMARY.md +0 -330
  30. package/docs/architecture.md +0 -394
  31. package/docs/developer-overview.md +0 -126
  32. package/upstream/tests/brainstorm-server/package-lock.json +0 -36
  33. /package/docs/{QUICK_START.md → common/QUICK_START.md} +0 -0
  34. /package/docs/{ai-integration.md → common/ai-integration.md} +0 -0
  35. /package/docs/{configuration.md → common/configuration.md} +0 -0
  36. /package/docs/{getting-started.md → common/getting-started.md} +0 -0
  37. /package/docs/{workflows → common/workflows}/bug-fix.md +0 -0
  38. /package/docs/{workflows → common/workflows}/feature.md +0 -0
  39. /package/docs/{workflows → common/workflows}/impact-analysis.md +0 -0
  40. /package/docs/{workflows → common/workflows}/investigation.md +0 -0
  41. /package/docs/{workflows → common/workflows}/refactor.md +0 -0
@@ -1,100 +1,132 @@
1
- # Changelog
2
-
3
- All notable changes to **@relipa/ai-flow-kit** will be documented in this file.
4
-
5
- Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
- Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ---
9
-
10
- ## [0.0.4-beta.5] - 2026-04-21
11
-
12
- ### Added
13
- - Created a dedicated `docs/` folder to house all developer-facing documentation.
14
- - Integrated AI Skill Registry into all tool templates (Claude, Cursor, Gemini, Copilot) for better skill discovery.
15
-
16
- ### Changed
17
- - Moved `README.md`, `QUICK_START.md`, `AIFLOW.md`, `CHANGELOG.md`, and `IMPLEMENTATION_SUMMARY.md` into the `docs/` directory.
18
- - Updated `package.json` to exclude internal-only files (`CONTRIBUTING.md`, `plan.md`) from the NPM package distribution.
19
- - Updated `scripts/init.js` to source documentation from the new `docs/` location.
20
- - Updated all internal documentation links to reflect the new directory structure.
21
-
22
- ---
23
-
24
- ## [Unreleased]
25
-
26
- ---
27
-
28
- ## [0.0.3-beta.0] - 2026-04-13
29
- ### Security
30
- - Removed internal GitLab repository links and tracking information.
31
- - Cleaned `.npmrc` configuration.
32
- - Added helper scripts for beta and stable releases.
33
-
34
- ## [0.0.2] - 2026-04-13
35
- ### Changed
36
- - Updated package to scoped name `@relipa/ai-flow-kit` in documentation and configuration.
37
- - Fixed installation guides in README and QUICK_START.
38
-
39
- ## [0.0.1] - 2026-04-13 Initial Release
40
-
41
- ### Added
42
-
43
- #### CLI (`aiflow`)
44
- - `aiflow init` — scaffold AI workflow config into any project
45
- (supports `--framework` spring-boot/reactjs, `--adapter` jira/backlog)
46
- - `aiflow use <skill>` activate a custom skill in the current project
47
- - `aiflow remove` cleanly remove `ai-flow-kit` scaffolding from a project
48
- - `aiflow guide` interactive onboarding guide
49
- - `aiflow update` sync upstream skill/hook updates
50
- - `aiflow doctor` validate config, detect missing keys, report issues
51
- - `aiflow --version` print installed version
52
-
53
- #### 5-Gate AI Workflow
54
- - **Gate 1 AI Analyze Requirement**: Auto-starts when a ticket context exists
55
- in `.claude/context/current.json`; outputs `plan/[ticket-id]/requirement.md`
56
- - **Gate 2 — Implementation Plan**: TDD plan generation, gated by `APPROVED`
57
- - **Gate 3 — Code Generation**: TDD-only, test-first discipline enforced
58
- - **Gate 4 — AI Self-Review**: Verification + impact analysis + checklist, gated by `APPROVED`
59
- - **Gate 5 — Peer Review & PR**: Guided PR creation via `requesting-code-review` skill
60
-
61
- #### Custom Skills (7 skills)
62
- - `validate-ticket` Gate 1 requirement analysis with clarifying Q&A loop
63
- - `generate-spec` — Gate 2 TDD implementation spec generator
64
- - `impact-analysis` breaking-change and dependency impact assessment
65
- - `investigate-bug` — systematic bug investigation (reproduce → root cause → fix)
66
- - `report-customer` — customer-facing incident report generator
67
- - `review-plan` — Gate 4 self-review orchestrator
68
- - `figma-to-component` Figma design UI component code generator
69
-
70
- #### Multi-AI Support
71
- - **Claude Code** integration via `CLAUDE.md` + `.claude/` directory structure
72
- - **Gemini CLI** integration via `GEMINI.md`
73
- - **GitHub Copilot** integration via agents config
74
- - Superpowers skill library bundled as `upstream/` (pinned to v5.0.5)
75
-
76
- #### Project Templates
77
- - `AIFLOW.md` team workflow reference document
78
- - `QUICK_START.md`5-minute setup guide
79
- - `.aiflowrc.json.example` — configuration file reference
80
-
81
- ### Architecture Notes
82
- - Stateless per-ticket design no persistent memory across sessions (planned: v0.1.x)
83
- - Manual skill sync model via `aiflow use` (managed `aiflow skill` CLI planned: v0.1.x)
84
- - Spring Boot (Java 17+) used as the reference framework in `CLAUDE.md` coding rules
85
-
86
- ---
87
-
88
- ## How to upgrade
89
-
90
- ```bash
91
- npm install -g @relipa/ai-flow-kit@latest
92
- aiflow --version
93
- ```
94
-
95
- After upgrading, run `aiflow update` inside your project to sync the latest skills and hooks:
96
-
97
- ```bash
98
- cd your-project
99
- aiflow update
100
- ```
1
+ # Changelog
2
+
3
+ All notable changes to **@relipa/ai-flow-kit** will be documented in this file.
4
+
5
+ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
+ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ ## [0.0.4-beta.5] - 2026-04-21
11
+
12
+ ### Added
13
+ - Created a dedicated `docs/` folder to house all developer-facing documentation.
14
+ - Integrated AI Skill Registry into all tool templates (Claude, Cursor, Gemini, Copilot) for better skill discovery.
15
+
16
+ ### Changed
17
+ - Moved `README.md`, `QUICK_START.md`, `AIFLOW.md`, `CHANGELOG.md`, and `IMPLEMENTATION_SUMMARY.md` into the `docs/` directory.
18
+ - Updated `package.json` to exclude internal-only files (`CONTRIBUTING.md`, `plan.md`) from the NPM package distribution.
19
+ - Updated `scripts/init.js` to source documentation from the new `docs/` location.
20
+ - Updated all internal documentation links to reflect the new directory structure.
21
+
22
+ ---
23
+
24
+ ## [0.0.5-beta.0] - 2026-04-23
25
+
26
+ ### Added
27
+ - **`aiflow gate <n> <action>` command** — Called automatically by AI during gate transitions. Supports `start` and `approved` actions for gates 1-5. Options: `--ticket <id>`, `--ai-tool <tool>`.
28
+ - **Telemetry gate logging** — Gate workflow templates now emit `aiflow gate N start/approved --ticket [id]` telemetry calls at each gate transition for usage metrics.
29
+ - **`aiflow telemetry flush` command** — Force-sends buffered telemetry events immediately.
30
+
31
+ ### Changed
32
+ - **`aiflow init` safe overwrite flow** When a project already has `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, etc., `aiflow init` now prompts before overwriting:
33
+ - **No (default):** keeps existing file untouched; saves the aiflow template to `.aiflow/reference/<file>` for manual comparison/merge.
34
+ - **Yes:** backs up the existing file to `.aiflow/backup/<file>` before overwriting — nothing is permanently lost.
35
+ - **`aiflow use --manual` pre-fill (Edit mode)** — Re-running `aiflow use --manual` when context already exists now pre-fills all fields (Ticket ID, Title, Description, Task type) with the current values; press Enter on any field to keep it unchanged.
36
+ - **Fix TEAM_SECRET input** Replaced `password()` prompt with `input()` using a masked hint `[Reli***!@#]`; pressing Enter retains the existing value.
37
+ - **Fix Apps Script URL input** Same pattern as TEAM_SECRET: masked hint `[https://script.google.com/macros/s/AKfy***xxxx/exec]`; pressing Enter retains the existing value.
38
+ - **Downgrade dependencies for Node >=16 compatibility** — `@inquirer/prompts` downgraded from `^8.3.2` to `^3.0.0`; `commander` downgraded from `^14.0.3` to `^11.0.0`.
39
+ - **`engines.node`** updated from `>=14.0.0` to `>=16.0.0`.
40
+
41
+ ---
42
+
43
+ ## [0.0.5] - 2026-04-23
44
+
45
+ ### Added
46
+ - **Telemetry System (MVP)**: Added anonymous usage tracking to measure command metrics and user adoption.
47
+ - `aiflow telemetry enable/disable/status` commands to easily opt-in or opt-out.
48
+ - Automatically captures environment metadata and Git email via `git config --global user.email`.
49
+ - Secure payload signing natively using Node `crypto` HMAC-SHA256 to ensure data authenticity.
50
+ - Asynchronous payload flusher to ensure zero impact on command execution time (`< 5ms` overhead).
51
+ - Support tracking for multiple AI platforms including Cursor and Gemini via Command Execution events and the new Telemetry SDK.
52
+
53
+ ### Security
54
+ - **Strict Privacy**: Explicitly removed all prompt content and chat history tracking to ensure 100% confidentiality of company code and PII.
55
+
56
+ ---
57
+
58
+ ## [Unreleased]
59
+
60
+ ## [0.0.3-beta.0] - 2026-04-13
61
+ ### Security
62
+ - Removed internal GitLab repository links and tracking information.
63
+ - Cleaned `.npmrc` configuration.
64
+ - Added helper scripts for beta and stable releases.
65
+
66
+ ## [0.0.2] - 2026-04-13
67
+ ### Changed
68
+ - Updated package to scoped name `@relipa/ai-flow-kit` in documentation and configuration.
69
+ - Fixed installation guides in README and QUICK_START.
70
+
71
+ ## [0.0.1] - 2026-04-13 Initial Release
72
+
73
+ ### Added
74
+
75
+ #### CLI (`aiflow`)
76
+ - `aiflow init` — scaffold AI workflow config into any project
77
+ (supports `--framework` spring-boot/reactjs, `--adapter` jira/backlog)
78
+ - `aiflow use <skill>` activate a custom skill in the current project
79
+ - `aiflow remove` cleanly remove `ai-flow-kit` scaffolding from a project
80
+ - `aiflow guide` — interactive onboarding guide
81
+ - `aiflow update` — sync upstream skill/hook updates
82
+ - `aiflow doctor`validate config, detect missing keys, report issues
83
+ - `aiflow --version` print installed version
84
+
85
+ #### 5-Gate AI Workflow
86
+ - **Gate 1 — AI Analyze Requirement**: Auto-starts when a ticket context exists
87
+ in `.aiflow/context/current.json`; outputs `plan/[ticket-id]/requirement.md`
88
+ - **Gate 2 — Implementation Plan**: TDD plan generation, gated by `APPROVED`
89
+ - **Gate 3 — Code Generation**: TDD-only, test-first discipline enforced
90
+ - **Gate 4 — AI Self-Review**: Verification + impact analysis + checklist, gated by `APPROVED`
91
+ - **Gate 5 — Peer Review & PR**: Guided PR creation via `requesting-code-review` skill
92
+
93
+ #### Custom Skills (7 skills)
94
+ - `read-study-requirement` — Gate 1 requirement analysis with clarifying Q&A loop
95
+ - `generate-spec` Gate 2 TDD implementation spec generator
96
+ - `impact-analysis` — breaking-change and dependency impact assessment
97
+ - `investigate-bug` — systematic bug investigation (reproduce → root cause → fix)
98
+ - `report-customer` — customer-facing incident report generator
99
+ - `review-plan` — Gate 4 self-review orchestrator
100
+ - `figma-to-component` — Figma design → UI component code generator
101
+
102
+ #### Multi-AI Support
103
+ - **Claude Code** integration via `CLAUDE.md` + `.claude/` directory structure
104
+ - **Gemini CLI** integration via `GEMINI.md`
105
+ - **GitHub Copilot** integration via agents config
106
+ - Superpowers skill library bundled as `upstream/` (pinned to v5.0.5)
107
+
108
+ #### Project Templates
109
+ - `AIFLOW.md` — team workflow reference document
110
+ - `QUICK_START.md` — 5-minute setup guide
111
+ - `.aiflowrc.json.example` — configuration file reference
112
+
113
+ ### Architecture Notes
114
+ - Stateless per-ticket design — no persistent memory across sessions (planned: v0.1.x)
115
+ - Manual skill sync model via `aiflow use` (managed `aiflow skill` CLI planned: v0.1.x)
116
+ - Spring Boot (Java 17+) used as the reference framework in `CLAUDE.md` coding rules
117
+
118
+ ---
119
+
120
+ ## How to upgrade
121
+
122
+ ```bash
123
+ npm install -g @relipa/ai-flow-kit@latest
124
+ aiflow --version
125
+ ```
126
+
127
+ After upgrading, run `aiflow update` inside your project to sync the latest skills and hooks:
128
+
129
+ ```bash
130
+ cd your-project
131
+ aiflow update
132
+ ```
@@ -30,6 +30,7 @@ aiflow init --framework laravel --adapter jira
30
30
  **Options:**
31
31
  - `-f, --framework <type>` — Framework template (laravel, nextjs, vue-nuxt)
32
32
  - `-a, --adapter <type>` — MCP adapter (jira, backlog, google-sheets)
33
+ - `-e, --env <types>` — AI tools to configure (cursor, gemini, copilot)
33
34
 
34
35
  **What it does:**
35
36
  1. Creates `.claude/skills/` with all available skills
@@ -76,6 +77,9 @@ aiflow use 1.0.0
76
77
  - `-m, --manual` — Manual context entry
77
78
  - `-f, --file <path>` — Load from JSON file
78
79
  - `-s, --save <name>` — Save as named context
80
+ - `--with-comments` — Include all ticket comments
81
+ - `--comments-last <n>` — Only fetch last N comments
82
+ - `--comments-from <n>` — Fetch comments starting from comment N
79
83
 
80
84
  **What it does:**
81
85
  1. Fetches context from MCP adapter (if applicable)
@@ -123,7 +127,6 @@ aiflow prompt --list
123
127
  - `<type>` — Prompt type (bug-fix, feature, investigation, refactor, impact, docs)
124
128
  - `-l, --list` — List available prompt types
125
129
  - `-o, --output <file>` — Save to file instead of printing
126
- - `-c, --copy` — Copy to clipboard
127
130
  - `--lang <lang>` — Language (english, vietnamese)
128
131
  - `--detail <level>` — Detail level (minimal, standard, comprehensive)
129
132
 
@@ -234,7 +237,7 @@ aiflow context --show
234
237
 
235
238
  **What it does:**
236
239
  1. Lists, saves, loads, or deletes contexts
237
- 2. Manages context history in `.claude/context/history/`
240
+ 2. Manages context history in `.aiflow/context/history/`
238
241
  3. Makes it easy to switch between tasks
239
242
 
240
243
  **Example:**
@@ -258,12 +261,11 @@ Update to the latest version.
258
261
  # Update to latest
259
262
  aiflow update
260
263
 
261
- # Keep old version
262
- aiflow update --keep-old
264
+ # Force update even if already latest
265
+ aiflow update --force
263
266
  ```
264
267
 
265
268
  **Options:**
266
- - `--keep-old` — Don't delete previous version
267
269
  - `--force` — Force update even if already latest
268
270
 
269
271
  **What it does:**
@@ -296,12 +298,11 @@ Health check for your setup.
296
298
  # Run health check
297
299
  aiflow doctor
298
300
 
299
- # Fix issues automatically
300
- aiflow doctor --fix
301
+ # Run with verbose output
302
+ aiflow doctor --verbose
301
303
  ```
302
304
 
303
305
  **Options:**
304
- - `--fix` — Attempt to fix found issues
305
306
  - `-v, --verbose` — Show detailed checks
306
307
 
307
308
  **What it does:**
@@ -367,61 +368,130 @@ Issues found: 2 warnings, 1 error
367
368
  Suggestions: Add test case, rename variable
368
369
  ```
369
370
 
371
+ ## telemetry
372
+
373
+ Manage usage telemetry.
374
+
375
+ ```bash
376
+ # View current status, buffer size, last flush
377
+ aiflow telemetry status
378
+
379
+ # Interactive setup (URL, secret, email)
380
+ aiflow telemetry enable
381
+
382
+ # Disable tracking (config retained)
383
+ aiflow telemetry disable
384
+
385
+ # Force-send buffered events now
386
+ aiflow telemetry flush
387
+ ```
388
+
389
+ **Sub-commands:**
390
+ - `status` — View current status, buffer size, last flush time
391
+ - `enable` — Interactive setup (Apps Script URL, team secret, email)
392
+ - `disable` — Disable tracking; configuration is retained
393
+ - `flush` — Force-send all buffered events immediately
394
+
395
+ ---
396
+
370
397
  ## memory
371
398
 
372
399
  Manage team knowledge and context memory.
373
400
 
374
401
  ```bash
375
402
  # Save knowledge
376
- aiflow memory --save "Laravel validation pattern" "Use FormRequest..."
403
+ aiflow memory save "payment-flow" "Process: 1. Validate amount, 2. Call Stripe API, 3. Update DB"
377
404
 
378
405
  # Retrieve knowledge
379
- aiflow memory --get "Laravel validation pattern"
406
+ aiflow memory get "payment-flow"
380
407
 
381
408
  # List all memories
382
- aiflow memory --list
409
+ aiflow memory list
383
410
 
384
411
  # Delete memory
385
- aiflow memory --delete "old-memory"
412
+ aiflow memory delete "old-memory"
386
413
 
387
414
  # Search memories
388
- aiflow memory --search "validation"
415
+ aiflow memory search "validation"
416
+
417
+ # Clear all memories
418
+ aiflow memory clear
389
419
  ```
390
420
 
391
- **Options:**
392
- - `-s, --save <key> <value>` — Save memory
393
- - `-g, --get <key>` — Retrieve memory
394
- - `-l, --list` — List all memories
395
- - `-d, --delete <key>` — Delete memory
396
- - `--search <query>` — Search memories
397
- - `--auto-load` — Auto-load relevant memories
421
+ **Sub-commands:**
422
+ - `save <key> <value>` — Save a note
423
+ - `get <key>` — Read a note
424
+ - `list` — List all notes
425
+ - `search <query>` — Search notes
426
+ - `delete <key>` — Delete a note
427
+ - `clear`Clear all notes
398
428
 
399
429
  **What it does:**
400
430
  1. Stores team knowledge in `.aiflow/memory/`
401
- 2. Auto-loads relevant memory for current task
402
- 3. Makes knowledge discoverable across team
431
+ 2. Makes knowledge discoverable across the team
403
432
 
404
433
  **Example:**
405
434
  ```bash
406
- $ aiflow memory --save "payment-flow" "Process: 1. Validate amount, 2. Call Stripe API, 3. Update DB"
435
+ $ aiflow memory save "payment-flow" "Process: 1. Validate amount, 2. Call Stripe API, 3. Update DB"
407
436
  ✓ Saved: payment-flow
408
437
 
409
- $ aiflow memory --search "payment"
438
+ $ aiflow memory search "payment"
410
439
  Found 3 memories matching "payment":
411
440
  1. payment-flow
412
441
  2. payment-error-handling
413
442
  3. payment-tests
414
443
  ```
415
444
 
445
+ ## guide
446
+
447
+ Show quickstart guide.
448
+
449
+ ```bash
450
+ # Full guide
451
+ aiflow guide
452
+
453
+ # Architecture & flow only
454
+ aiflow guide --flow
455
+
456
+ # Command reference only
457
+ aiflow guide --commands
458
+ ```
459
+
460
+ **Options:**
461
+ - `--flow` — Show architecture & flow diagram only
462
+ - `--commands` — Show command reference only
463
+
464
+ ---
465
+
466
+ ## gate (AI workflow logging)
467
+
468
+ Called automatically by AI during gate workflow — not intended for manual use.
469
+
470
+ ```bash
471
+ # Log gate N started
472
+ aiflow gate <n> start --ticket <id>
473
+
474
+ # Log gate N approved
475
+ aiflow gate <n> approved --ticket <id>
476
+ ```
477
+
478
+ **Arguments:**
479
+ - `<n>` — Gate number (1-5)
480
+ - `<action>` — `start` or `approved`
481
+
482
+ **Options:**
483
+ - `--ticket <id>` — Ticket ID associated with the gate transition
484
+ - `--ai-tool <tool>` — AI tool that triggered the gate (e.g. claude, cursor, gemini)
485
+
486
+ ---
487
+
416
488
  ## Global Options
417
489
 
418
490
  These work with any command:
419
491
 
420
492
  ```bash
421
- aiflow <command> --version # Show version
422
- aiflow <command> --verbose # Verbose output
423
- aiflow <command> --debug # Debug mode
424
- aiflow <command> --config <file> # Use custom config file
493
+ aiflow --version # Show installed version
494
+ aiflow <command> --help # Show help for a command
425
495
  ```
426
496
 
427
497
  ## Exit Codes
@@ -545,6 +545,21 @@ cat CLAUDE.md | grep -i "rule"
545
545
  - Close and reopen
546
546
  - Run `aiflow doctor` to verify setup
547
547
 
548
+ ## Telemetry Tracking
549
+
550
+ ### "Telemetry connection test failed"
551
+
552
+ **Verify Apps Script settings:**
553
+ - Ensure the Apps Script Web App is deployed and accessible.
554
+ - Ensure the `TEAM_SECRET` is exactly correct without trailing spaces.
555
+
556
+ **Bypass / Opt-out locally:**
557
+ If you don't want telemetry tracked on a specific repo, or the upload is failing constantly:
558
+ ```bash
559
+ touch .aiflow/no-telemetry
560
+ # CLI will automatically ignore logging for this repo.
561
+ ```
562
+
548
563
  ---
549
564
 
550
565
  ## Getting More Help
@@ -0,0 +1,28 @@
1
+ # Architecture Overview
2
+
3
+ > **Template file** — Replace this with your project's actual architecture.
4
+
5
+ ## System Architecture
6
+
7
+ ```
8
+ [Describe your system layers here]
9
+ ```
10
+
11
+ ## Tech Stack
12
+
13
+ | Layer | Technology |
14
+ |-------|-----------|
15
+ | Backend | |
16
+ | Frontend | |
17
+ | Database | |
18
+ | Infrastructure | |
19
+
20
+ ## Key Components
21
+
22
+ -
23
+
24
+ ## Data Flow
25
+
26
+ ```
27
+ [Describe main data flows]
28
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relipa/ai-flow-kit",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-beta.1",
4
4
  "description": "All-in-one AI Flow Kit for team development with Claude AI - skills, templates, and MCP adapters",
5
5
  "author": "Relipa AI Team",
6
6
  "publishConfig": {
@@ -14,11 +14,13 @@
14
14
  "aiflow": "./bin/aiflow.js"
15
15
  },
16
16
  "files": [
17
+ "README.md",
17
18
  "bin",
18
19
  "custom",
19
20
  "scripts",
20
21
  "upstream",
21
- "docs",
22
+ "docs/common",
23
+ "docs/project",
22
24
  "package.json",
23
25
  "index.js"
24
26
  ],
@@ -33,7 +35,7 @@
33
35
  "productivity"
34
36
  ],
35
37
  "engines": {
36
- "node": ">=14.0.0",
38
+ "node": ">=16.0.0",
37
39
  "npm": ">=6.0.0"
38
40
  },
39
41
  "scripts": {
@@ -45,9 +47,9 @@
45
47
  "publish:stable": "npm publish"
46
48
  },
47
49
  "dependencies": {
48
- "@inquirer/prompts": "^8.3.2",
50
+ "@inquirer/prompts": "^3.0.0",
49
51
  "chalk": "^4.1.2",
50
- "commander": "^14.0.3",
52
+ "commander": "^11.0.0",
51
53
  "fs-extra": "^11.3.4",
52
54
  "semver": "^7.7.4"
53
55
  },
@@ -3,7 +3,7 @@ const path = require('path');
3
3
  const chalk = require('chalk');
4
4
 
5
5
  const PROJECT_DIR = process.cwd();
6
- const CONTEXT_DIR = path.join(PROJECT_DIR, '.claude', 'context');
6
+ const CONTEXT_DIR = path.join(PROJECT_DIR, '.aiflow', 'context');
7
7
  const HISTORY_DIR = path.join(CONTEXT_DIR, 'history');
8
8
  const CURRENT_FILE = path.join(CONTEXT_DIR, 'current.json');
9
9
 
package/scripts/guide.js CHANGED
@@ -210,6 +210,22 @@ function showCommands() {
210
210
  ['aiflow validate <file>', '-r strict', 'Report all warnings'],
211
211
  ]
212
212
  },
213
+ {
214
+ group: 'Telemetry',
215
+ items: [
216
+ ['aiflow telemetry status', '', 'View telemetry status'],
217
+ ['aiflow telemetry enable', '', 'Enable usage tracking'],
218
+ ['aiflow telemetry disable', '', 'Disable usage tracking'],
219
+ ['aiflow telemetry flush', '', 'Force-send buffered events now'],
220
+ ]
221
+ },
222
+ {
223
+ group: 'AI Workflow Integration',
224
+ items: [
225
+ ['aiflow gate <n> start', '--ticket <id>', 'Log gate N started (AI calls this)'],
226
+ ['aiflow gate <n> approved', '--ticket <id>', 'Log gate N approved (AI calls this)'],
227
+ ]
228
+ },
213
229
  {
214
230
  group: 'Help',
215
231
  items: [