ai-dev-analytics 2.0.0 → 2.0.2

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 (180) hide show
  1. package/README.en.md +34 -48
  2. package/README.md +52 -458
  3. package/dist/cli/commands/doctor.d.ts.map +1 -1
  4. package/dist/cli/commands/doctor.js +109 -11
  5. package/dist/cli/commands/doctor.js.map +1 -1
  6. package/dist/cli/commands/init.d.ts.map +1 -1
  7. package/dist/cli/commands/init.js +4 -0
  8. package/dist/cli/commands/init.js.map +1 -1
  9. package/dist/cli/commands/memory.d.ts.map +1 -1
  10. package/dist/cli/commands/memory.js +3 -13
  11. package/dist/cli/commands/memory.js.map +1 -1
  12. package/dist/cli/commands/merge-data.d.ts +0 -1
  13. package/dist/cli/commands/merge-data.d.ts.map +1 -1
  14. package/dist/cli/commands/merge-data.js +2 -12
  15. package/dist/cli/commands/merge-data.js.map +1 -1
  16. package/dist/cli/commands/merge.js +4 -4
  17. package/dist/cli/commands/merge.js.map +1 -1
  18. package/dist/cli/commands/rules.d.ts +0 -10
  19. package/dist/cli/commands/rules.d.ts.map +1 -1
  20. package/dist/cli/commands/rules.js +7 -33
  21. package/dist/cli/commands/rules.js.map +1 -1
  22. package/dist/cli/commands/skills.d.ts +0 -5
  23. package/dist/cli/commands/skills.d.ts.map +1 -1
  24. package/dist/cli/commands/skills.js +4 -24
  25. package/dist/cli/commands/skills.js.map +1 -1
  26. package/dist/cli/commands/sync.d.ts.map +1 -1
  27. package/dist/cli/commands/sync.js +6 -15
  28. package/dist/cli/commands/sync.js.map +1 -1
  29. package/dist/cli/index.js +25 -90
  30. package/dist/cli/index.js.map +1 -1
  31. package/dist/{schemas/run-json.d.ts → internal/runtime/schema.d.ts} +4 -18
  32. package/dist/internal/runtime/schema.d.ts.map +1 -0
  33. package/dist/{schemas/run-json.js → internal/runtime/schema.js} +5 -9
  34. package/dist/internal/runtime/schema.js.map +1 -0
  35. package/dist/{utils/run-data.d.ts → internal/runtime/state.d.ts} +7 -8
  36. package/dist/internal/runtime/state.d.ts.map +1 -0
  37. package/dist/{utils/run-data.js → internal/runtime/state.js} +11 -12
  38. package/dist/internal/runtime/state.js.map +1 -0
  39. package/dist/{utils → internal/runtime}/summary.d.ts +2 -2
  40. package/dist/internal/runtime/summary.d.ts.map +1 -0
  41. package/dist/{utils → internal/runtime}/summary.js +4 -4
  42. package/dist/internal/runtime/summary.js.map +1 -0
  43. package/dist/internal/runtime/tokens.d.ts.map +1 -0
  44. package/dist/internal/runtime/tokens.js.map +1 -0
  45. package/dist/mcp/server.js +9 -8
  46. package/dist/mcp/server.js.map +1 -1
  47. package/dist/schemas/aida-project.d.ts +4 -0
  48. package/dist/schemas/aida-project.d.ts.map +1 -1
  49. package/dist/schemas/rules.d.ts +15 -0
  50. package/dist/schemas/rules.d.ts.map +1 -0
  51. package/dist/schemas/rules.js +5 -0
  52. package/dist/schemas/rules.js.map +1 -0
  53. package/dist/services/project-build.d.ts +44 -0
  54. package/dist/services/project-build.d.ts.map +1 -0
  55. package/dist/services/project-build.js +32 -0
  56. package/dist/services/project-build.js.map +1 -0
  57. package/dist/services/project-health.d.ts +14 -0
  58. package/dist/services/project-health.d.ts.map +1 -0
  59. package/dist/services/project-health.js +19 -0
  60. package/dist/services/project-health.js.map +1 -0
  61. package/dist/services/security-audit.d.ts +59 -0
  62. package/dist/services/security-audit.d.ts.map +1 -0
  63. package/dist/services/security-audit.js +638 -0
  64. package/dist/services/security-audit.js.map +1 -0
  65. package/dist/utils/ai-build.d.ts +0 -5
  66. package/dist/utils/ai-build.d.ts.map +1 -1
  67. package/dist/utils/ai-build.js +2 -35
  68. package/dist/utils/ai-build.js.map +1 -1
  69. package/dist/utils/guide.d.ts +3 -3
  70. package/dist/utils/guide.js +6 -6
  71. package/dist/utils/import.d.ts.map +1 -1
  72. package/dist/utils/import.js +4 -15
  73. package/dist/utils/import.js.map +1 -1
  74. package/dist/utils/paths.d.ts +0 -10
  75. package/dist/utils/paths.d.ts.map +1 -1
  76. package/dist/utils/paths.js +1 -17
  77. package/dist/utils/paths.js.map +1 -1
  78. package/dist/utils/project-health.d.ts +1 -0
  79. package/dist/utils/project-health.d.ts.map +1 -1
  80. package/dist/utils/project-health.js +26 -3
  81. package/dist/utils/project-health.js.map +1 -1
  82. package/dist/utils/rules.d.ts +11 -1
  83. package/dist/utils/rules.d.ts.map +1 -1
  84. package/dist/utils/rules.js +27 -1
  85. package/dist/utils/rules.js.map +1 -1
  86. package/dist/utils/skills.d.ts +6 -10
  87. package/dist/utils/skills.d.ts.map +1 -1
  88. package/dist/utils/skills.js +23 -67
  89. package/dist/utils/skills.js.map +1 -1
  90. package/package.json +12 -14
  91. package/dist/cli/commands/build.d.ts +0 -2
  92. package/dist/cli/commands/build.d.ts.map +0 -1
  93. package/dist/cli/commands/build.js +0 -55
  94. package/dist/cli/commands/build.js.map +0 -1
  95. package/dist/cli/commands/dashboard.d.ts +0 -2
  96. package/dist/cli/commands/dashboard.d.ts.map +0 -1
  97. package/dist/cli/commands/dashboard.js +0 -70
  98. package/dist/cli/commands/dashboard.js.map +0 -1
  99. package/dist/cli/commands/import.d.ts +0 -2
  100. package/dist/cli/commands/import.d.ts.map +0 -1
  101. package/dist/cli/commands/import.js +0 -71
  102. package/dist/cli/commands/import.js.map +0 -1
  103. package/dist/cli/commands/log.d.ts +0 -2
  104. package/dist/cli/commands/log.d.ts.map +0 -1
  105. package/dist/cli/commands/log.js +0 -440
  106. package/dist/cli/commands/log.js.map +0 -1
  107. package/dist/cli/commands/migrate-dir.d.ts +0 -6
  108. package/dist/cli/commands/migrate-dir.d.ts.map +0 -1
  109. package/dist/cli/commands/migrate-dir.js +0 -125
  110. package/dist/cli/commands/migrate-dir.js.map +0 -1
  111. package/dist/cli/commands/migrate-legacy.d.ts +0 -2
  112. package/dist/cli/commands/migrate-legacy.d.ts.map +0 -1
  113. package/dist/cli/commands/migrate-legacy.js +0 -141
  114. package/dist/cli/commands/migrate-legacy.js.map +0 -1
  115. package/dist/cli/commands/migrate.d.ts +0 -2
  116. package/dist/cli/commands/migrate.d.ts.map +0 -1
  117. package/dist/cli/commands/migrate.js +0 -303
  118. package/dist/cli/commands/migrate.js.map +0 -1
  119. package/dist/cli/commands/reindex.d.ts +0 -14
  120. package/dist/cli/commands/reindex.d.ts.map +0 -1
  121. package/dist/cli/commands/reindex.js +0 -69
  122. package/dist/cli/commands/reindex.js.map +0 -1
  123. package/dist/cli/commands/report.d.ts +0 -2
  124. package/dist/cli/commands/report.d.ts.map +0 -1
  125. package/dist/cli/commands/report.js +0 -224
  126. package/dist/cli/commands/report.js.map +0 -1
  127. package/dist/cli/commands/start.d.ts +0 -2
  128. package/dist/cli/commands/start.d.ts.map +0 -1
  129. package/dist/cli/commands/start.js +0 -155
  130. package/dist/cli/commands/start.js.map +0 -1
  131. package/dist/cli/commands/status.d.ts +0 -2
  132. package/dist/cli/commands/status.d.ts.map +0 -1
  133. package/dist/cli/commands/status.js +0 -70
  134. package/dist/cli/commands/status.js.map +0 -1
  135. package/dist/cli/commands/update.d.ts +0 -2
  136. package/dist/cli/commands/update.d.ts.map +0 -1
  137. package/dist/cli/commands/update.js +0 -74
  138. package/dist/cli/commands/update.js.map +0 -1
  139. package/dist/schemas/run-json.d.ts.map +0 -1
  140. package/dist/schemas/run-json.js.map +0 -1
  141. package/dist/server/api.d.ts +0 -30
  142. package/dist/server/api.d.ts.map +0 -1
  143. package/dist/server/api.js +0 -232
  144. package/dist/server/api.js.map +0 -1
  145. package/dist/server/index.d.ts +0 -2
  146. package/dist/server/index.d.ts.map +0 -1
  147. package/dist/server/index.js +0 -228
  148. package/dist/server/index.js.map +0 -1
  149. package/dist/utils/run-data.d.ts.map +0 -1
  150. package/dist/utils/run-data.js.map +0 -1
  151. package/dist/utils/summary.d.ts.map +0 -1
  152. package/dist/utils/summary.js.map +0 -1
  153. package/dist/utils/tokens.d.ts.map +0 -1
  154. package/dist/utils/tokens.js.map +0 -1
  155. package/src/assets/skills/audit.md +0 -98
  156. package/src/assets/skills/bug-fixer.md +0 -43
  157. package/src/assets/skills/code-generator.md +0 -71
  158. package/src/assets/skills/commit-code.md +0 -67
  159. package/src/assets/skills/dashboard-generator.md +0 -65
  160. package/src/assets/skills/dev-flower.md +0 -85
  161. package/src/assets/skills/deviation-recorder.md +0 -83
  162. package/src/assets/skills/docx-to-markdown.md +0 -69
  163. package/src/assets/skills/mcp-reviewer.md +0 -38
  164. package/src/assets/skills/requirement-analyzer.md +0 -103
  165. package/src/assets/skills/rules-evolver.md +0 -47
  166. package/src/assets/skills/self-reviewer.md +0 -49
  167. package/src/assets/skills/task-splitter.md +0 -60
  168. package/src/assets/skills/workflow-orchestrator.md +0 -209
  169. package/src/assets/templates/demo-run.json +0 -910
  170. package/src/assets/templates/run.json +0 -63
  171. package/src/dashboard/assets/index-B8QcPcg7.css +0 -1
  172. package/src/dashboard/assets/index-DcAl6lhS.js +0 -111
  173. package/src/dashboard/demo/overview.json +0 -71
  174. package/src/dashboard/demo/run.en.json +0 -1169
  175. package/src/dashboard/demo/run.json +0 -2667
  176. package/src/dashboard/demo/run.zh.json +0 -1169
  177. package/src/dashboard/demo/runs.json +0 -19
  178. package/src/dashboard/index.html +0 -13
  179. /package/dist/{utils → internal/runtime}/tokens.d.ts +0 -0
  180. /package/dist/{utils → internal/runtime}/tokens.js +0 -0
package/README.en.md CHANGED
@@ -2,29 +2,35 @@
2
2
 
3
3
  # AIDA
4
4
 
5
- ### Make project rules, skills, and module memory the real source of truth.
5
+ ### JSON truth-source management for AI tool assets.
6
6
 
7
- AIDA 2.0 is no longer centered on task ledgers or run timelines. It keeps the assets that actually matter over time:
8
- **rules, skills, module memory, and branch-level demand summaries.**
7
+ AIDA 2.0 keeps only the assets that matter over time:
8
+ **rules, skills, memories, and summaries.**
9
9
 
10
10
  ```json
11
11
  { "mcpServers": { "aida": { "command": "npx", "args": ["--registry=https://registry.npmjs.org/", "-y", "ai-dev-analytics", "mcp"] } } }
12
12
  ```
13
13
 
14
- [![npm version](https://img.shields.io/badge/npm-v2.0.0-0066ff)](https://www.npmjs.com/package/ai-dev-analytics)
15
- [![license](https://img.shields.io/github/license/LWTlong/ai-dev-analytics?color=%23333)](./LICENSE)
16
- [![node](https://img.shields.io/node/v/ai-dev-analytics?color=%23339933)](https://nodejs.org)
17
- [![tests](https://img.shields.io/badge/tests-passing-brightgreen)](#testing)
18
-
19
14
  [Chinese README](./README.md) · [Command Reference](./COMMANDS.md) · [Docs](./docs/INDEX.md)
20
15
 
21
16
  </div>
22
17
 
23
18
  ---
24
19
 
25
- ## What AIDA 2.0 Keeps
20
+ ## What 2.0 Is
21
+
22
+ AIDA 2.0 is not an analytics dashboard or a runtime ledger.
23
+
24
+ It is a clean asset manager for:
25
+
26
+ - project rules
27
+ - project skills
28
+ - module memories
29
+ - demand summaries
30
+
31
+ All durable data lives in `.aida/*.json`. Tool directories such as `.cursor`, `.claude`, `.codex`, and `.lingma` are generated projections.
26
32
 
27
- The durable truth sources are:
33
+ ## Truth Sources
28
34
 
29
35
  ```text
30
36
  .aida/
@@ -36,64 +42,44 @@ The durable truth sources are:
36
42
  memories/
37
43
  index.json
38
44
  modules/*.json
39
- rules/*.md
40
45
  ```
41
46
 
42
- - `rules.json`: project-level technical rules
43
- - `skills.json`: project-level skills registry
44
- - `memories/index.json`: low-cost memory lookup index
45
- - `memories/modules/*.json`: module-level business memory
46
- - `summary.json`: branch / demand summaries
47
-
48
- ## What AIDA 2.0 Discards
49
-
50
- 2.0 intentionally removes the heavy 1.x runtime ledger model:
47
+ 2.0 intentionally drops the old 1.x runtime noise:
51
48
 
52
49
  - `run.json`
53
50
  - persistent task ledgers
54
- - timeline / events / workflow history
51
+ - timeline / workflow / events
55
52
  - `.aida/runs/**`
56
53
  - `.aida/index.json`
57
54
  - `.aida/tool-configs.json`
58
55
 
59
- Migration is a cleaning rebuild, not a full carry-over.
60
-
61
- ## Command Model
62
-
63
- The main 2.0 commands are:
56
+ ## Main Commands
64
57
 
65
58
  ```bash
66
59
  aida init
67
60
  aida sync
68
- aida build
69
61
  aida doctor
70
- aida migrate-legacy
62
+ aida rules
63
+ aida skills
64
+ aida memory
65
+ aida mcp
71
66
  ```
72
67
 
73
- - `init`: create the 2.0 truth-source layout
68
+ - `init`: initialize 2.0 truth sources
74
69
  - `sync`: refresh memories, summaries, and generated tool artifacts
75
- - `build`: rebuild generated artifacts from JSON truth sources
76
70
  - `doctor`: inspect and normalize project state
77
- - `migrate-legacy`: migrate 1.x / legacy projects into the 2.0 structure
78
-
79
- ## Context Recovery
80
71
 
81
- Memory recovery is intentionally layered:
72
+ ## Quick Start
82
73
 
83
- 1. read `memories/index.json`
84
- 2. read `summary.json`
85
- 3. only read matched `memories/modules/*.json`
74
+ Add AIDA to your project MCP config:
86
75
 
87
- This keeps token usage low and prevents loading the full memory corpus every time.
88
-
89
- ## Notes
90
-
91
- - MCP is an optional structured execution channel, not the system foundation.
92
- - CLI and MCP should operate on the same JSON truth sources.
93
- - Built-in bundled workflow skills are no longer seeded by default in 2.0.
76
+ ```json
77
+ { "mcpServers": { "aida": { "command": "npx", "args": ["--registry=https://registry.npmjs.org/", "-y", "ai-dev-analytics", "mcp"] } } }
78
+ ```
94
79
 
95
- For full product explanation, migration behavior, and Chinese examples, use:
80
+ Then:
96
81
 
97
- - [README.md](./README.md)
98
- - [COMMANDS.md](./COMMANDS.md)
99
- - [docs/AIDA-2.0-DESIGN.md](./docs/AIDA-2.0-DESIGN.md)
82
+ ```bash
83
+ aida init
84
+ aida sync
85
+ ```