aifastdb-devplan 1.0.0 → 1.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.
Files changed (40) hide show
  1. package/README.md +391 -40
  2. package/dist/dev-plan-document-store.d.ts +309 -0
  3. package/dist/dev-plan-document-store.d.ts.map +1 -0
  4. package/dist/dev-plan-document-store.js +1543 -0
  5. package/dist/dev-plan-document-store.js.map +1 -0
  6. package/dist/dev-plan-factory.d.ts +49 -0
  7. package/dist/dev-plan-factory.d.ts.map +1 -0
  8. package/dist/dev-plan-factory.js +218 -0
  9. package/dist/dev-plan-factory.js.map +1 -0
  10. package/dist/dev-plan-graph-store.d.ts +114 -0
  11. package/dist/dev-plan-graph-store.d.ts.map +1 -0
  12. package/dist/dev-plan-graph-store.js +1073 -0
  13. package/dist/dev-plan-graph-store.js.map +1 -0
  14. package/dist/dev-plan-interface.d.ts +165 -0
  15. package/dist/dev-plan-interface.d.ts.map +1 -0
  16. package/dist/dev-plan-interface.js +10 -0
  17. package/dist/dev-plan-interface.js.map +1 -0
  18. package/dist/dev-plan-migrate.d.ts +52 -0
  19. package/dist/dev-plan-migrate.d.ts.map +1 -0
  20. package/dist/dev-plan-migrate.js +407 -0
  21. package/dist/dev-plan-migrate.js.map +1 -0
  22. package/dist/index.d.ts +20 -3
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +32 -10
  25. package/dist/index.js.map +1 -1
  26. package/dist/mcp-server/index.js +225 -92
  27. package/dist/mcp-server/index.js.map +1 -1
  28. package/dist/types.d.ts +375 -0
  29. package/dist/types.d.ts.map +1 -0
  30. package/dist/types.js +37 -0
  31. package/dist/types.js.map +1 -0
  32. package/dist/visualize/server.d.ts +18 -0
  33. package/dist/visualize/server.d.ts.map +1 -0
  34. package/dist/visualize/server.js +229 -0
  35. package/dist/visualize/server.js.map +1 -0
  36. package/dist/visualize/template.d.ts +8 -0
  37. package/dist/visualize/template.d.ts.map +1 -0
  38. package/dist/visualize/template.js +528 -0
  39. package/dist/visualize/template.js.map +1 -0
  40. package/package.json +14 -4
package/README.md CHANGED
@@ -1,27 +1,88 @@
1
1
  # aifastdb-devplan
2
2
 
3
- AI-powered development plan management MCP server, powered by [aifastdb](https://github.com/aifastdb/aifastdb).
3
+ <p align="center">
4
+ <strong>AI-Powered Development Plan Management — MCP Server</strong>
5
+ </p>
4
6
 
5
- ## 功能
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/aifastdb-devplan"><img src="https://img.shields.io/npm/v/aifastdb-devplan.svg" alt="npm version"></a>
9
+ <a href="https://www.npmjs.com/package/aifastdb-devplan"><img src="https://img.shields.io/npm/dm/aifastdb-devplan.svg" alt="npm downloads"></a>
10
+ <a href="https://github.com/aifastdb/aifastdb-devplan/blob/main/LICENSE"><img src="https://img.shields.io/github/license/aifastdb/aifastdb-devplan" alt="license"></a>
11
+ <a href="https://github.com/aifastdb/aifastdb-devplan"><img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="node version"></a>
12
+ </p>
6
13
 
7
- - **11 种标准文档片段类型**:overview, api_design, technical_notes 等
8
- - **两级任务层级**:主任务 (MainTask) + 子任务 (SubTask)
9
- - **功能模块注册表**:按模块维度聚合任务和文档
10
- - **Git Commit 锚定**:完成任务时记录 Git commit hash,支持回滚检测
11
- - **自动进度统计**:完成子任务时自动更新主任务进度
12
- - **Markdown 导出**:生成开发计划的 Markdown 文档
14
+ <p align="center">
15
+ Let AI assistants (Cursor / Claude Desktop) manage your development plans, task tracking, and project documentation.<br/>
16
+ Built on the <a href="https://github.com/aifastdb/aifastdb">aifastdb</a> high-performance storage engine, seamlessly integrated with AI via the <a href="https://modelcontextprotocol.io">MCP protocol</a>.
17
+ </p>
13
18
 
14
- ## 安装
19
+ <p align="center">
20
+ 让 AI 助手(Cursor / Claude Desktop)直接管理你的开发计划、任务追踪和项目文档。<br/>
21
+ 基于 <a href="https://github.com/aifastdb/aifastdb">aifastdb</a> 高性能存储引擎,通过 <a href="https://modelcontextprotocol.io">MCP 协议</a> 与 AI 无缝集成。
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="#english">English</a> | <a href="#中文">中文</a>
26
+ </p>
27
+
28
+ ---
29
+
30
+ <a id="english"></a>
31
+
32
+ ## English
33
+
34
+ ### Why aifastdb-devplan?
35
+
36
+ In the age of AI-assisted programming, developers collaborate with AI assistants more closely than ever. However, AI assistants lack **persistent project memory** — each conversation starts from scratch, with no knowledge of the overall project plan, current progress, or historical decisions.
37
+
38
+ **aifastdb-devplan** solves this problem by providing AI assistants with a set of **structured development plan management tools**, enabling AI to:
39
+
40
+ - 📋 **Understand the big picture** — Read project overviews, technical designs, API specifications, and more
41
+ - 🎯 **Track task progress** — Manage two-level task hierarchies (MainTask → SubTask) with real-time progress updates
42
+ - 🔗 **Anchor to Git history** — Automatically record Git commit hashes when completing tasks, with rollback detection
43
+ - 📦 **Modular management** — Organize tasks and docs by feature modules for a clear project architecture view
44
+ - 📄 **Export documentation** — Generate complete Markdown-formatted development plan documents in one click
45
+
46
+ ### Key Features
47
+
48
+ | Feature | Description |
49
+ |---------|-------------|
50
+ | **Dual Storage Engine** | Choose between `graph` (SocialGraphV2, default) or `document` (JSONL) per project |
51
+ | **Graph Visualization** | Built-in HTTP server + vis-network page to visualize tasks/modules as an interactive graph |
52
+ | **11 Document Section Types** | overview, requirements, api_design, technical_notes, architecture, and more |
53
+ | **Two-Level Task Hierarchy** | MainTask + SubTask with priority levels (P0–P3) and status transitions |
54
+ | **Module Registry** | Aggregate tasks and docs by module for intuitive project architecture |
55
+ | **Git Commit Anchoring** | Auto-record commit hash on task completion; `sync_git` detects rollbacks |
56
+ | **Auto Progress Tracking** | Automatically update parent task progress when subtasks are completed |
57
+ | **Idempotent Task Import** | `upsert_task` prevents duplicates, ideal for batch initialization |
58
+ | **Data Migration** | Seamlessly migrate between `document` and `graph` engines with backup support |
59
+ | **Markdown Export** | Generate structured development plan documents for sharing and archiving |
60
+ | **Zero-Config Storage** | Local storage in the project's `.devplan/` directory — no external database needed |
61
+
62
+ ### Quick Start
63
+
64
+ #### Installation
15
65
 
16
66
  ```bash
17
- npm install aifastdb-devplan
67
+ npm install -g aifastdb-devplan
18
68
  ```
19
69
 
20
- ## 使用方式
70
+ #### Option A: As an MCP Server (Recommended)
21
71
 
22
- ### 方式 A:作为 MCP Server(推荐)
72
+ Configure in Cursor IDE (`.cursor/mcp.json`):
23
73
 
24
- 在 `.cursor/mcp.json` 或 `claude_desktop_config.json` 中配置:
74
+ ```json
75
+ {
76
+ "mcpServers": {
77
+ "aifastdb-devplan": {
78
+ "command": "npx",
79
+ "args": ["aifastdb-devplan"]
80
+ }
81
+ }
82
+ }
83
+ ```
84
+
85
+ Or in Claude Desktop (`claude_desktop_config.json`):
25
86
 
26
87
  ```json
27
88
  {
@@ -34,7 +95,218 @@ npm install aifastdb-devplan
34
95
  }
35
96
  ```
36
97
 
37
- ### 方式 B:作为 npm 包编程使用
98
+ Once configured, your AI assistant can use 19 `devplan_*` tools to manage your development plans.
99
+
100
+ #### Option B: As an npm Package (Programmatic)
101
+
102
+ ```typescript
103
+ import { DevPlanStore, createDevPlan } from 'aifastdb-devplan';
104
+
105
+ const plan = createDevPlan('my-project');
106
+
107
+ // Create a main task
108
+ plan.createMainTask({
109
+ projectName: 'my-project',
110
+ taskId: 'phase-1',
111
+ title: 'Phase 1: Foundation Setup',
112
+ priority: 'P0',
113
+ });
114
+
115
+ // Add a subtask
116
+ plan.addSubTask({
117
+ projectName: 'my-project',
118
+ taskId: 'T1.1',
119
+ parentTaskId: 'phase-1',
120
+ title: 'Initialize project structure',
121
+ });
122
+
123
+ // Complete task (auto-updates progress + Git commit anchoring)
124
+ plan.completeSubTask('T1.1');
125
+
126
+ // Check progress
127
+ const progress = plan.getProgress();
128
+ console.log(progress);
129
+ ```
130
+
131
+ ### MCP Tools (19 total)
132
+
133
+ #### 📋 Document Management
134
+
135
+ | Tool | Description |
136
+ |------|-------------|
137
+ | `devplan_init` | Initialize a development plan (auto-detects storage engine) |
138
+ | `devplan_save_section` | Save/update a document section (11 standard types) |
139
+ | `devplan_get_section` | Read a specific document section |
140
+ | `devplan_list_sections` | List all document sections |
141
+
142
+ #### 🎯 Task Management
143
+
144
+ | Tool | Description |
145
+ |------|-------------|
146
+ | `devplan_create_main_task` | Create a main task (priority P0–P3) |
147
+ | `devplan_add_sub_task` | Add a subtask to a main task |
148
+ | `devplan_upsert_task` | Idempotent task import (deduplication) |
149
+ | `devplan_complete_task` | Complete a task (auto-updates progress + Git anchoring) |
150
+ | `devplan_list_tasks` | List tasks (filter by status/priority/parent) |
151
+ | `devplan_get_progress` | Get overall project progress |
152
+
153
+ #### 📦 Module Management
154
+
155
+ | Tool | Description |
156
+ |------|-------------|
157
+ | `devplan_create_module` | Create a feature module |
158
+ | `devplan_list_modules` | List all feature modules |
159
+ | `devplan_get_module` | Get module details (linked tasks and docs) |
160
+ | `devplan_update_module` | Update module information |
161
+
162
+ #### 🔧 Utilities
163
+
164
+ | Tool | Description |
165
+ |------|-------------|
166
+ | `devplan_export_markdown` | Export full Markdown development plan |
167
+ | `devplan_export_graph` | Export graph structure `{ nodes, edges }` for visualization (graph engine only) |
168
+ | `devplan_migrate_engine` | Migrate data between `document` and `graph` engines |
169
+ | `devplan_sync_git` | Sync Git history and detect rollbacks |
170
+
171
+ ### Dual Storage Engine
172
+
173
+ Each project can independently choose its storage engine:
174
+
175
+ | Engine | Backend | Default | Features |
176
+ |--------|---------|---------|----------|
177
+ | `graph` | SocialGraphV2 (WAL + sharding) | ✅ New projects | Graph visualization, entity-relation model |
178
+ | `document` | EnhancedDocumentStore (JSONL) | Auto-detected for legacy | Lightweight, human-readable files |
179
+
180
+ Engine selection priority:
181
+ 1. Explicit `engine` parameter in `createDevPlan()`
182
+ 2. `.devplan/{project}/engine.json` configuration
183
+ 3. Auto-detect existing JSONL files → `document`
184
+ 4. New projects → `graph`
185
+
186
+ ### Graph Visualization
187
+
188
+ Visualize your development plan as an interactive graph:
189
+
190
+ ```bash
191
+ npm run visualize -- --project my-project --base-path /path/to/.devplan
192
+ # or
193
+ aifastdb-devplan-visual --project my-project --port 3210
194
+ ```
195
+
196
+ The built-in HTTP server serves a self-contained HTML page with [vis-network](https://visjs.github.io/vis-network/), featuring:
197
+
198
+ - **5 node types**: project (star), module (diamond), main-task (circle), sub-task (dot), document (box)
199
+ - **Status-based coloring**: completed (green), in-progress (blue), pending (gray)
200
+ - **Interactive features**: click for details panel, filter by type, stats bar with progress
201
+ - **Dark theme**: consistent with modern development tools
202
+
203
+ ### Data Storage
204
+
205
+ Data is stored locally — **no external database required**:
206
+
207
+ ```
208
+ .devplan/{projectName}/
209
+ ├── engine.json # Engine configuration (graph or document)
210
+ ├── documents.jsonl # Document sections (document engine)
211
+ ├── tasks.jsonl # Main tasks + subtasks (document engine)
212
+ ├── modules.jsonl # Feature modules (document engine)
213
+ └── graph-data/ # WAL-based graph storage (graph engine)
214
+ └── wal/ # Write-ahead log shards
215
+ ```
216
+
217
+ Storage path resolution priority:
218
+
219
+ | Priority | Source | Description |
220
+ |----------|--------|-------------|
221
+ | 1 | `AIFASTDB_DEVPLAN_PATH` env var | Explicitly specify storage directory |
222
+ | 2 | `.devplan/` in project root | Auto-detect via `.git` / `package.json` |
223
+ | 3 | `~/.aifastdb/dev-plans/` | Global fallback path |
224
+
225
+ ### Platform Support
226
+
227
+ `aifastdb-devplan` is a pure TypeScript/JavaScript project, supporting all platforms with Node.js ≥ 18:
228
+
229
+ | Platform | Architecture | Supported |
230
+ |----------|-------------|-----------|
231
+ | Windows | x64 | ✅ |
232
+ | macOS | x64 / Apple Silicon (M1/M2/M3/M4) | ✅ |
233
+ | Linux | x64 / ARM64 | ✅ |
234
+
235
+ > Note: The underlying storage engine [aifastdb](https://github.com/aifastdb/aifastdb) includes Rust native bindings with prebuilt binaries for all listed platforms.
236
+
237
+ ---
238
+
239
+ <a id="中文"></a>
240
+
241
+ ## 中文
242
+
243
+ ### 为什么需要 aifastdb-devplan?
244
+
245
+ 在 AI 辅助编程时代,开发者与 AI 助手的协作越来越密切。但 AI 助手缺乏**持久化的项目记忆**——每次对话都从零开始,无法了解项目的整体规划、当前进度和历史决策。
246
+
247
+ **aifastdb-devplan** 解决了这个问题:它为 AI 助手提供了一套**结构化的开发计划管理工具**,让 AI 能够:
248
+
249
+ - 📋 **了解项目全貌** — 读取项目概述、技术方案、API 设计等文档片段
250
+ - 🎯 **追踪任务进度** — 管理两级任务层级(主任务 → 子任务),实时更新进度
251
+ - 🔗 **锚定 Git 历史** — 完成任务时自动记录 Git commit hash,支持回滚检测
252
+ - 📦 **模块化管理** — 按功能模块组织任务和文档,清晰展示项目架构
253
+ - 📄 **导出文档** — 一键生成完整的 Markdown 格式开发计划文档
254
+
255
+ ### 核心特性
256
+
257
+ | 特性 | 说明 |
258
+ |------|------|
259
+ | **双存储引擎** | 每个项目可独立选择 `graph`(SocialGraphV2,默认)或 `document`(JSONL)引擎 |
260
+ | **图谱可视化** | 内置 HTTP 服务器 + vis-network 页面,将任务/模块以交互式图谱展示 |
261
+ | **11 种文档片段** | overview, requirements, api_design, technical_notes, architecture 等标准类型 |
262
+ | **两级任务层级** | 主任务 (MainTask) + 子任务 (SubTask),支持优先级 (P0-P3) 和状态流转 |
263
+ | **功能模块注册表** | 按模块维度聚合任务和文档,直观展示项目架构 |
264
+ | **Git Commit 锚定** | 完成任务时自动记录 commit hash,`sync_git` 可检测代码回滚 |
265
+ | **自动进度统计** | 完成子任务时自动更新主任务进度百分比 |
266
+ | **幂等任务导入** | `upsert_task` 支持防重复导入,适合批量初始化 |
267
+ | **数据迁移** | 在 `document` 和 `graph` 引擎间无缝迁移,支持备份 |
268
+ | **Markdown 导出** | 生成结构化的开发计划文档,方便分享和归档 |
269
+ | **零配置存储** | 本地存储,数据保存在项目 `.devplan/` 目录中,无需外部数据库 |
270
+
271
+ ### 快速开始
272
+
273
+ #### 安装
274
+
275
+ ```bash
276
+ npm install -g aifastdb-devplan
277
+ ```
278
+
279
+ #### 方式 A:作为 MCP Server 使用(推荐)
280
+
281
+ 在 Cursor IDE 中配置 `.cursor/mcp.json`:
282
+
283
+ ```json
284
+ {
285
+ "mcpServers": {
286
+ "aifastdb-devplan": {
287
+ "command": "npx",
288
+ "args": ["aifastdb-devplan"]
289
+ }
290
+ }
291
+ }
292
+ ```
293
+
294
+ 或在 Claude Desktop 中配置 `claude_desktop_config.json`:
295
+
296
+ ```json
297
+ {
298
+ "mcpServers": {
299
+ "aifastdb-devplan": {
300
+ "command": "npx",
301
+ "args": ["aifastdb-devplan"]
302
+ }
303
+ }
304
+ }
305
+ ```
306
+
307
+ 配置完成后,AI 助手即可使用 19 个 `devplan_*` 工具来管理你的开发计划。
308
+
309
+ #### 方式 B:作为 npm 包编程使用
38
310
 
39
311
  ```typescript
40
312
  import { DevPlanStore, createDevPlan } from 'aifastdb-devplan';
@@ -65,48 +337,127 @@ const progress = plan.getProgress();
65
337
  console.log(progress);
66
338
  ```
67
339
 
68
- ## MCP 工具列表(18 个)
340
+ ### MCP 工具一览(19 个)
341
+
342
+ #### 📋 文档管理
69
343
 
70
344
  | 工具 | 说明 |
71
345
  |------|------|
72
- | `devplan_init` | 初始化开发计划 |
73
- | `devplan_save_section` | 保存/更新文档片段 |
74
- | `devplan_get_section` | 读取文档片段 |
346
+ | `devplan_init` | 初始化开发计划(自动检测存储引擎) |
347
+ | `devplan_save_section` | 保存/更新文档片段(11 种标准类型) |
348
+ | `devplan_get_section` | 读取指定文档片段 |
75
349
  | `devplan_list_sections` | 列出所有文档片段 |
76
- | `devplan_create_main_task` | 创建主任务 |
77
- | `devplan_add_sub_task` | 添加子任务 |
78
- | `devplan_upsert_task` | 幂等导入任务(防重复) |
79
- | `devplan_complete_task` | 完成任务(自动更新进度) |
80
- | `devplan_list_tasks` | 列出任务(支持跨主任务查询) |
81
- | `devplan_get_progress` | 获取项目进度概览 |
82
- | `devplan_export_markdown` | 导出 Markdown 文档 |
83
- | `devplan_sync_git` | 同步 Git 历史(回滚检测) |
350
+
351
+ #### 🎯 任务管理
352
+
353
+ | 工具 | 说明 |
354
+ |------|------|
355
+ | `devplan_create_main_task` | 创建主任务(支持优先级 P0-P3) |
356
+ | `devplan_add_sub_task` | 添加子任务到主任务 |
357
+ | `devplan_upsert_task` | 幂等导入任务(防重复,适合批量初始化) |
358
+ | `devplan_complete_task` | 完成任务(自动更新进度 + Git 锚定) |
359
+ | `devplan_list_tasks` | 列出任务(支持按状态/优先级/主任务筛选) |
360
+ | `devplan_get_progress` | 获取项目整体进度概览 |
361
+
362
+ #### 📦 模块管理
363
+
364
+ | 工具 | 说明 |
365
+ |------|------|
84
366
  | `devplan_create_module` | 创建功能模块 |
85
- | `devplan_list_modules` | 列出功能模块 |
86
- | `devplan_get_module` | 获取模块详情 |
367
+ | `devplan_list_modules` | 列出所有功能模块 |
368
+ | `devplan_get_module` | 获取模块详情(关联任务和文档) |
87
369
  | `devplan_update_module` | 更新模块信息 |
88
370
 
89
- ## 数据存储
371
+ #### 🔧 工具
372
+
373
+ | 工具 | 说明 |
374
+ |------|------|
375
+ | `devplan_export_markdown` | 导出完整 Markdown 格式开发计划 |
376
+ | `devplan_export_graph` | 导出图结构 `{ nodes, edges }` 用于可视化(仅 graph 引擎) |
377
+ | `devplan_migrate_engine` | 在 `document` 和 `graph` 引擎间迁移数据 |
378
+ | `devplan_sync_git` | 同步 Git 历史,检测代码回滚 |
379
+
380
+ ### 双存储引擎
90
381
 
91
- 数据以 JSONL 格式存储在项目内的 `.devplan/` 目录中:
382
+ 每个项目可独立选择存储引擎:
383
+
384
+ | 引擎 | 后端 | 默认 | 特点 |
385
+ |------|------|------|------|
386
+ | `graph` | SocialGraphV2(WAL + 分片) | ✅ 新项目 | 图可视化、实体-关系模型 |
387
+ | `document` | EnhancedDocumentStore(JSONL) | 旧项目自动检测 | 轻量、文件可读 |
388
+
389
+ 引擎选择优先级:
390
+ 1. `createDevPlan()` 显式传入 `engine` 参数
391
+ 2. `.devplan/{project}/engine.json` 配置文件
392
+ 3. 已有 JSONL 数据文件 → 自动识别为 `document`
393
+ 4. 新项目 → 默认使用 `graph`
394
+
395
+ ### 图谱可视化
396
+
397
+ 将开发计划以交互式图谱形式展示:
398
+
399
+ ```bash
400
+ npm run visualize -- --project my-project --base-path /path/to/.devplan
401
+ # 或
402
+ aifastdb-devplan-visual --project my-project --port 3210
403
+ ```
404
+
405
+ 内置 HTTP 服务器提供自包含 HTML 页面,使用 [vis-network](https://visjs.github.io/vis-network/) 渲染:
406
+
407
+ - **5 种节点类型**:项目(星形)、模块(菱形)、主任务(圆形)、子任务(小圆点)、文档(方形)
408
+ - **状态着色**:已完成(绿色)、进行中(蓝色)、待开始(灰色)
409
+ - **交互功能**:点击查看详情面板、按类型过滤、顶部统计栏 + 进度条
410
+ - **暗色主题**:与现代开发工具风格一致
411
+
412
+ ### 数据存储
413
+
414
+ 数据存储在本地,**无需外部数据库**:
92
415
 
93
416
  ```
94
417
  .devplan/{projectName}/
95
- ├── documents.jsonl # 文档片段
96
- ├── tasks.jsonl # 主任务 + 子任务
97
- └── modules.jsonl # 功能模块
418
+ ├── engine.json # 引擎配置(graph 或 document)
419
+ ├── documents.jsonl # 文档片段(document 引擎)
420
+ ├── tasks.jsonl # 主任务 + 子任务(document 引擎)
421
+ ├── modules.jsonl # 功能模块(document 引擎)
422
+ └── graph-data/ # WAL 图存储(graph 引擎)
423
+ └── wal/ # 预写日志分片
98
424
  ```
99
425
 
100
426
  存储路径解析优先级:
101
- 1. `AIFASTDB_DEVPLAN_PATH` 环境变量
102
- 2. 项目内 `.devplan/` 目录(通过 `.git` / `package.json` 定位)
103
- 3. `~/.aifastdb/dev-plans/`(兜底)
104
427
 
105
- ## 依赖
428
+ | 优先级 | 路径来源 | 说明 |
429
+ |--------|---------|------|
430
+ | 1 | `AIFASTDB_DEVPLAN_PATH` 环境变量 | 显式指定存储目录 |
431
+ | 2 | 项目内 `.devplan/` 目录 | 自动检测项目根目录(通过 `.git` / `package.json`) |
432
+ | 3 | `~/.aifastdb/dev-plans/` | 全局兜底路径 |
433
+
434
+ ### 平台支持
435
+
436
+ `aifastdb-devplan` 是纯 TypeScript/JavaScript 项目,支持所有 Node.js ≥ 18 的平台:
437
+
438
+ | 平台 | 架构 | 支持 |
439
+ |------|------|------|
440
+ | Windows | x64 | ✅ |
441
+ | macOS | x64 / Apple Silicon (M1/M2/M3/M4) | ✅ |
442
+ | Linux | x64 / ARM64 | ✅ |
443
+
444
+ > 注:底层存储引擎 [aifastdb](https://github.com/aifastdb/aifastdb) 包含 Rust 原生绑定,已为上述平台提供预编译二进制文件。
445
+
446
+ ---
447
+
448
+ ## Tech Stack / 技术栈
449
+
450
+ - **Storage Engine / 存储引擎**: [aifastdb](https://github.com/aifastdb/aifastdb) — Dual engine: SocialGraphV2 (graph) + EnhancedDocumentStore (JSONL), built with Rust + N-API
451
+ - **Protocol / 通信协议**: [MCP (Model Context Protocol)](https://modelcontextprotocol.io) — Standard protocol for AI assistant tool invocation
452
+ - **Visualization / 可视化**: [vis-network](https://visjs.github.io/vis-network/) — Interactive graph visualization (CDN, zero dependencies)
453
+ - **Runtime / 运行时**: Node.js ≥ 18
454
+ - **Language / 语言**: TypeScript (strict mode)
455
+
456
+ ## Related Projects / 相关项目
106
457
 
107
- - [aifastdb](https://github.com/aifastdb/aifastdb) — 存储引擎
108
- - [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/sdk) — MCP 协议支持
458
+ - [aifastdb](https://github.com/aifastdb/aifastdb) — AI-friendly high-performance database engine (vector search + semantic indexing + agent memory)
459
+ - [MCP Protocol](https://modelcontextprotocol.io) — Model Context Protocol official documentation
109
460
 
110
461
  ## License
111
462
 
112
- MIT
463
+ [MIT](LICENSE)