ai-dev-analytics 1.1.12 → 2.0.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.
- package/README.en.md +51 -57
- package/README.md +68 -485
- package/dist/cli/commands/doctor.d.ts +2 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +125 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +19 -176
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +3 -13
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/rules.d.ts +0 -10
- package/dist/cli/commands/rules.d.ts.map +1 -1
- package/dist/cli/commands/rules.js +9 -34
- package/dist/cli/commands/rules.js.map +1 -1
- package/dist/cli/commands/skills.d.ts +0 -5
- package/dist/cli/commands/skills.d.ts.map +1 -1
- package/dist/cli/commands/skills.js +5 -24
- package/dist/cli/commands/skills.js.map +1 -1
- package/dist/cli/commands/sync.d.ts +2 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +28 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/index.js +26 -85
- package/dist/cli/index.js.map +1 -1
- package/dist/{schemas/run-json.d.ts → internal/runtime/schema.d.ts} +4 -18
- package/dist/internal/runtime/schema.d.ts.map +1 -0
- package/dist/{schemas/run-json.js → internal/runtime/schema.js} +5 -9
- package/dist/internal/runtime/schema.js.map +1 -0
- package/dist/{utils/run-data.d.ts → internal/runtime/state.d.ts} +7 -8
- package/dist/internal/runtime/state.d.ts.map +1 -0
- package/dist/{utils/run-data.js → internal/runtime/state.js} +11 -12
- package/dist/internal/runtime/state.js.map +1 -0
- package/dist/internal/runtime/summary.d.ts +8 -0
- package/dist/internal/runtime/summary.d.ts.map +1 -0
- package/dist/internal/runtime/summary.js +260 -0
- package/dist/internal/runtime/summary.js.map +1 -0
- package/dist/internal/runtime/tokens.d.ts.map +1 -0
- package/dist/internal/runtime/tokens.js.map +1 -0
- package/dist/mcp/server.js +9 -8
- package/dist/mcp/server.js.map +1 -1
- package/dist/schemas/aida-project.d.ts +27 -1
- package/dist/schemas/aida-project.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +15 -0
- package/dist/schemas/rules.d.ts.map +1 -0
- package/dist/schemas/rules.js +5 -0
- package/dist/schemas/rules.js.map +1 -0
- package/dist/services/project-build.d.ts +44 -0
- package/dist/services/project-build.d.ts.map +1 -0
- package/dist/services/project-build.js +32 -0
- package/dist/services/project-build.js.map +1 -0
- package/dist/services/project-health.d.ts +14 -0
- package/dist/services/project-health.d.ts.map +1 -0
- package/dist/services/project-health.js +19 -0
- package/dist/services/project-health.js.map +1 -0
- package/dist/services/security-audit.d.ts +59 -0
- package/dist/services/security-audit.d.ts.map +1 -0
- package/dist/services/security-audit.js +638 -0
- package/dist/services/security-audit.js.map +1 -0
- package/dist/utils/ai-build.d.ts +3 -8
- package/dist/utils/ai-build.d.ts.map +1 -1
- package/dist/utils/ai-build.js +31 -117
- package/dist/utils/ai-build.js.map +1 -1
- package/dist/utils/guide.d.ts +3 -3
- package/dist/utils/guide.d.ts.map +1 -1
- package/dist/utils/guide.js +91 -68
- package/dist/utils/guide.js.map +1 -1
- package/dist/utils/import.d.ts.map +1 -1
- package/dist/utils/import.js +4 -15
- package/dist/utils/import.js.map +1 -1
- package/dist/utils/memory.d.ts +2 -0
- package/dist/utils/memory.d.ts.map +1 -1
- package/dist/utils/memory.js +440 -95
- package/dist/utils/memory.js.map +1 -1
- package/dist/utils/paths.d.ts +2 -10
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +5 -17
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/project-health.d.ts +39 -0
- package/dist/utils/project-health.d.ts.map +1 -0
- package/dist/utils/project-health.js +286 -0
- package/dist/utils/project-health.js.map +1 -0
- package/dist/utils/registry.d.ts +11 -0
- package/dist/utils/registry.d.ts.map +1 -0
- package/dist/utils/registry.js +65 -0
- package/dist/utils/registry.js.map +1 -0
- package/dist/utils/rules.d.ts +11 -1
- package/dist/utils/rules.d.ts.map +1 -1
- package/dist/utils/rules.js +76 -8
- package/dist/utils/rules.js.map +1 -1
- package/dist/utils/skills.d.ts +6 -9
- package/dist/utils/skills.d.ts.map +1 -1
- package/dist/utils/skills.js +26 -54
- package/dist/utils/skills.js.map +1 -1
- package/package.json +12 -14
- package/dist/cli/commands/build.d.ts +0 -2
- package/dist/cli/commands/build.d.ts.map +0 -1
- package/dist/cli/commands/build.js +0 -56
- package/dist/cli/commands/build.js.map +0 -1
- package/dist/cli/commands/dashboard.d.ts +0 -2
- package/dist/cli/commands/dashboard.d.ts.map +0 -1
- package/dist/cli/commands/dashboard.js +0 -70
- package/dist/cli/commands/dashboard.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -2
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js +0 -71
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/log.d.ts +0 -2
- package/dist/cli/commands/log.d.ts.map +0 -1
- package/dist/cli/commands/log.js +0 -440
- package/dist/cli/commands/log.js.map +0 -1
- package/dist/cli/commands/merge-data.d.ts +0 -20
- package/dist/cli/commands/merge-data.d.ts.map +0 -1
- package/dist/cli/commands/merge-data.js +0 -574
- package/dist/cli/commands/merge-data.js.map +0 -1
- package/dist/cli/commands/merge.d.ts +0 -2
- package/dist/cli/commands/merge.d.ts.map +0 -1
- package/dist/cli/commands/merge.js +0 -82
- package/dist/cli/commands/merge.js.map +0 -1
- package/dist/cli/commands/migrate-dir.d.ts +0 -6
- package/dist/cli/commands/migrate-dir.d.ts.map +0 -1
- package/dist/cli/commands/migrate-dir.js +0 -125
- package/dist/cli/commands/migrate-dir.js.map +0 -1
- package/dist/cli/commands/migrate-legacy.d.ts +0 -2
- package/dist/cli/commands/migrate-legacy.d.ts.map +0 -1
- package/dist/cli/commands/migrate-legacy.js +0 -143
- package/dist/cli/commands/migrate-legacy.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -2
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js +0 -300
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/reindex.d.ts +0 -14
- package/dist/cli/commands/reindex.d.ts.map +0 -1
- package/dist/cli/commands/reindex.js +0 -139
- package/dist/cli/commands/reindex.js.map +0 -1
- package/dist/cli/commands/report.d.ts +0 -2
- package/dist/cli/commands/report.d.ts.map +0 -1
- package/dist/cli/commands/report.js +0 -219
- package/dist/cli/commands/report.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -2
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -155
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -70
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -2
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -73
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/schemas/run-json.d.ts.map +0 -1
- package/dist/schemas/run-json.js.map +0 -1
- package/dist/server/api.d.ts +0 -30
- package/dist/server/api.d.ts.map +0 -1
- package/dist/server/api.js +0 -239
- package/dist/server/api.js.map +0 -1
- package/dist/server/index.d.ts +0 -2
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -228
- package/dist/server/index.js.map +0 -1
- package/dist/utils/run-data.d.ts.map +0 -1
- package/dist/utils/run-data.js.map +0 -1
- package/dist/utils/tokens.d.ts.map +0 -1
- package/dist/utils/tokens.js.map +0 -1
- package/src/assets/skills/audit.md +0 -98
- package/src/assets/skills/bug-fixer.md +0 -43
- package/src/assets/skills/code-generator.md +0 -71
- package/src/assets/skills/commit-code.md +0 -67
- package/src/assets/skills/dashboard-generator.md +0 -65
- package/src/assets/skills/dev-flower.md +0 -85
- package/src/assets/skills/deviation-recorder.md +0 -83
- package/src/assets/skills/docx-to-markdown.md +0 -69
- package/src/assets/skills/mcp-reviewer.md +0 -38
- package/src/assets/skills/requirement-analyzer.md +0 -103
- package/src/assets/skills/rules-evolver.md +0 -47
- package/src/assets/skills/self-reviewer.md +0 -49
- package/src/assets/skills/task-splitter.md +0 -60
- package/src/assets/skills/workflow-orchestrator.md +0 -209
- package/src/assets/templates/demo-run.json +0 -910
- package/src/assets/templates/run.json +0 -63
- package/src/dashboard/assets/index-B8QcPcg7.css +0 -1
- package/src/dashboard/assets/index-DcAl6lhS.js +0 -111
- package/src/dashboard/demo/overview.json +0 -71
- package/src/dashboard/demo/run.en.json +0 -1169
- package/src/dashboard/demo/run.json +0 -2667
- package/src/dashboard/demo/run.zh.json +0 -1169
- package/src/dashboard/demo/runs.json +0 -19
- package/src/dashboard/index.html +0 -13
- /package/dist/{utils → internal/runtime}/tokens.d.ts +0 -0
- /package/dist/{utils → internal/runtime}/tokens.js +0 -0
package/README.en.md
CHANGED
|
@@ -2,90 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
# AIDA
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### JSON truth-source management for AI tool assets.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**AIDA captures structured data at every development checkpoint, visualizes it in a live dashboard, and distills deviation patterns into rules that make your AI write better code — every single run.**
|
|
10
|
-
|
|
11
|
-
One line to integrate. Zero workflow changes.
|
|
7
|
+
AIDA 2.0 keeps only the assets that matter over time:
|
|
8
|
+
**rules, skills, memories, and summaries.**
|
|
12
9
|
|
|
13
10
|
```json
|
|
14
|
-
{ "mcpServers": { "aida": { "command": "npx", "args": ["-y", "ai-dev-analytics", "mcp"] } } }
|
|
11
|
+
{ "mcpServers": { "aida": { "command": "npx", "args": ["--registry=https://registry.npmjs.org/", "-y", "ai-dev-analytics", "mcp"] } } }
|
|
15
12
|
```
|
|
16
13
|
|
|
17
|
-
[
|
|
18
|
-
[](./LICENSE)
|
|
19
|
-
[](https://nodejs.org)
|
|
20
|
-
[](#testing)
|
|
21
|
-
[](https://lwtlong.github.io/ai-dev-analytics/)
|
|
22
|
-
[](https://glama.ai/mcp/servers/LWTlong/ai-dev-analytics)
|
|
23
|
-
|
|
24
|
-
[](https://glama.ai/mcp/servers/LWTlong/ai-dev-analytics)
|
|
25
|
-
|
|
26
|
-
[Quick Start](#-30-second-setup) · [Data Loop](#-the-data-driven-loop) · [Dashboard](#-the-dashboard) · [Command Reference](./COMMANDS.md) · [Docs](./docs/INDEX.md) · [中文](./README.md)
|
|
14
|
+
[Chinese README](./README.md) · [Command Reference](./COMMANDS.md) · [Docs](./docs/INDEX.md)
|
|
27
15
|
|
|
28
16
|
</div>
|
|
29
17
|
|
|
30
18
|
---
|
|
31
19
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
Vibe coding is powerful. But it's a black box.
|
|
20
|
+
## What 2.0 Is
|
|
35
21
|
|
|
36
|
-
|
|
22
|
+
AIDA 2.0 is not an analytics dashboard or a runtime ledger.
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
- Where did AI deviate from your project conventions? Why?
|
|
40
|
-
- Which deviations keep recurring? What rules would prevent them?
|
|
41
|
-
- What's the bug rate? Which phases produce the most bugs?
|
|
24
|
+
It is a clean asset manager for:
|
|
42
25
|
|
|
43
|
-
|
|
26
|
+
- project rules
|
|
27
|
+
- project skills
|
|
28
|
+
- module memories
|
|
29
|
+
- demand summaries
|
|
44
30
|
|
|
45
|
-
|
|
31
|
+
All durable data lives in `.aida/*.json`. Tool directories such as `.cursor`, `.claude`, `.codex`, and `.lingma` are generated projections.
|
|
46
32
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## 🔄 The Data-Driven Loop
|
|
33
|
+
## Truth Sources
|
|
50
34
|
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
↓
|
|
62
|
-
AI reads rules next session → same mistakes eliminated
|
|
35
|
+
```text
|
|
36
|
+
.aida/
|
|
37
|
+
config.json
|
|
38
|
+
rules.json
|
|
39
|
+
skills.json
|
|
40
|
+
summary.json
|
|
41
|
+
aida-guide.md
|
|
42
|
+
memories/
|
|
43
|
+
index.json
|
|
44
|
+
modules/*.json
|
|
63
45
|
```
|
|
64
46
|
|
|
65
|
-
|
|
47
|
+
2.0 intentionally drops the old 1.x runtime noise:
|
|
66
48
|
|
|
67
|
-
|
|
49
|
+
- `run.json`
|
|
50
|
+
- persistent task ledgers
|
|
51
|
+
- timeline / workflow / events
|
|
52
|
+
- `.aida/runs/**`
|
|
53
|
+
- `.aida/index.json`
|
|
54
|
+
- `.aida/tool-configs.json`
|
|
68
55
|
|
|
69
|
-
##
|
|
70
|
-
|
|
71
|
-
Run:
|
|
56
|
+
## Main Commands
|
|
72
57
|
|
|
73
58
|
```bash
|
|
74
|
-
|
|
59
|
+
aida init
|
|
60
|
+
aida sync
|
|
61
|
+
aida doctor
|
|
62
|
+
aida rules
|
|
63
|
+
aida skills
|
|
64
|
+
aida memory
|
|
65
|
+
aida mcp
|
|
75
66
|
```
|
|
76
67
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
---
|
|
68
|
+
- `init`: initialize 2.0 truth sources
|
|
69
|
+
- `sync`: refresh memories, summaries, and generated tool artifacts
|
|
70
|
+
- `doctor`: inspect and normalize project state
|
|
82
71
|
|
|
83
|
-
##
|
|
72
|
+
## Quick Start
|
|
84
73
|
|
|
85
|
-
Add
|
|
74
|
+
Add AIDA to your project MCP config:
|
|
86
75
|
|
|
87
76
|
```json
|
|
88
|
-
{ "mcpServers": { "aida": { "command": "npx", "args": ["-y", "ai-dev-analytics", "mcp"] } } }
|
|
77
|
+
{ "mcpServers": { "aida": { "command": "npx", "args": ["--registry=https://registry.npmjs.org/", "-y", "ai-dev-analytics", "mcp"] } } }
|
|
89
78
|
```
|
|
90
79
|
|
|
91
|
-
|
|
80
|
+
Then:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
aida init
|
|
84
|
+
aida sync
|
|
85
|
+
```
|