@datafrog-io/n2n-nexus 0.2.0 โ 0.2.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.md +24 -13
- package/build/resources/index.js +19 -27
- package/build/storage/index.js +64 -9
- package/build/storage/sqlite-meeting.js +38 -8
- package/build/storage/sqlite.js +10 -0
- package/build/storage/store.js +11 -4
- package/build/tools/definitions.js +295 -0
- package/build/tools/handlers.js +19 -8
- package/build/tools/index.js +6 -9
- package/build/tools/schemas.js +6 -3
- package/docs/ASSISTANT_GUIDE.md +23 -17
- package/docs/CHANGELOG_zh.md +50 -166
- package/{README_zh.md โ docs/README_zh.md} +26 -15
- package/docs/TODO_zh.md +71 -0
- package/package.json +2 -2
- package/docs/CHANGELOG.md +0 -170
package/docs/CHANGELOG.md
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [v0.2.0] - 2025-12-31
|
|
6
|
-
|
|
7
|
-
### ๐ Task Primitive System (Phase 2 & 3)
|
|
8
|
-
- **Async Deepening**: Critical blocking operations (`rename_project`, `moderator_delete_project`) migrated to the Task primitive with background cascading updates.
|
|
9
|
-
- **Traceability**: All tasks now support `source_meeting_id` to link execution back to meeting decisions.
|
|
10
|
-
- **Progressive UI**: Added `progress` tracking (0.0-1.0) and `result_uri` for structured task output.
|
|
11
|
-
- **Lifecycle Tools**: Added `create_task`, `get_task`, `list_tasks`, `update_task`, and `cancel_task`.
|
|
12
|
-
|
|
13
|
-
### ๐ก๏ธ Type Safety & Security
|
|
14
|
-
- **Defense-in-Depth**: Implemented secondary permission gates inside `handleRemoveProject` and `handleModeratorMaintenance` for maximum project isolation.
|
|
15
|
-
- **Meeting Hardening**: `end_meeting` and `archive_meeting` are now strictly **Moderator-only**.
|
|
16
|
-
- **Zod integration**: All tool definitions migrated to strictly-typed Zod schemas with regex path-traversal protection.
|
|
17
|
-
- **Infrastructure**: Modernized toolchain to **TypeScript 5.9.3**, **Vitest 4.0.16**, and **ESLint 9.39.2**.
|
|
18
|
-
|
|
19
|
-
### โ๏ธ Code Diet (Architectural Cleanliness)
|
|
20
|
-
- **The Great Purge**: Removed 6 redundant tools (`list_projects`, `read_project`, `list_global_docs`, `read_global_doc`, `list_meetings`, `read_meeting`) in favor of Resource URIs.
|
|
21
|
-
- **Native Zod 4 Schemas**: Removed `zod-to-json-schema` dependency; now using native Zod 4 `toJSONSchema()` generation.
|
|
22
|
-
|
|
23
|
-
## [v0.1.9] - 2025-12-30
|
|
24
|
-
|
|
25
|
-
### ๐ก๏ธ Collaboration & Security
|
|
26
|
-
- **Initiator-only Permissions**: Implemented restricted access for `end_meeting` and `archive_meeting`.
|
|
27
|
-
- **Session Presence Awareness**: Automated `[ONLINE/OFFLINE]` status messages in global logs.
|
|
28
|
-
- **Clean Tool Naming**: Finalized transition to `send_message` and `read_messages`.
|
|
29
|
-
|
|
30
|
-
### ๐ Resource Namespacing (MCP 2025 Standard)
|
|
31
|
-
- **Unified Authority**: All core resource URIs migrated to `mcp://nexus/`.
|
|
32
|
-
- **New Resources**: Added `mcp://nexus/status` and `mcp://nexus/active-meeting`.
|
|
33
|
-
|
|
34
|
-
## [v0.1.8] - 2025-12-30
|
|
35
|
-
|
|
36
|
-
### ๐ฏ Meeting Architecture (Phase 1 & 2)
|
|
37
|
-
- **Hybrid Storage Backend**: Automatic selection between **SQLite** (preferred) and **JSON Fallback**.
|
|
38
|
-
- **SQLite Engine**: Powered by `better-sqlite3` with **WAL mode** for high-concurrency and multi-process safety.
|
|
39
|
-
- **New Lifecycle Entity**: `MeetingSession` replaces monolithic chat logs with discrete sessions.
|
|
40
|
-
- **Lifecycle Tools**:
|
|
41
|
-
- `start_meeting(topic)`: Creates dedicated session with unique ID and random entropy.
|
|
42
|
-
- `end_meeting(meetingId?, summary?)`: Closes meeting, collects decisions.
|
|
43
|
-
- `archive_meeting(meetingId)`: Moves sessions to historical archives.
|
|
44
|
-
- `list_meetings(status?)`: Filtered discovery of sessions.
|
|
45
|
-
- `read_meeting(meetingId)`: Detailed retrieval of history, participants, and decisions.
|
|
46
|
-
|
|
47
|
-
### ๐๏ธ API & Storage Improvements
|
|
48
|
-
- **Structured JSON Responses**: Meeting tools now return machine-readable JSON for better agent integration.
|
|
49
|
-
- **Smart Auto-Routing**: Global discussion messages are automatically routed to active meetings.
|
|
50
|
-
- **ID Generation**: Robust slug generation with Base64 fallback for non-ASCII topics (Chinese/Unicode).
|
|
51
|
-
- **Concurrency Control**: Shared `AsyncMutex` utility and native SQLite locking.
|
|
52
|
-
- **Status Reporting**: `mcp://nexus/status` now reports `storage_mode` and `is_degraded` flags.
|
|
53
|
-
|
|
54
|
-
### ๐งช Quality Assurance
|
|
55
|
-
- **Comprehensive Test Suite**: Added 24+ integration and stress tests (100% Green).
|
|
56
|
-
- **Concurrency Stress Tests**: Validated data integrity under rapid message bursts.
|
|
57
|
-
- **Fallback Verification**: Confirmed system stability when native modules are unavailable.
|
|
58
|
-
|
|
59
|
-
### ๐ก๏ธ Security
|
|
60
|
-
- **Hardened Project Deletion**: Renamed `delete_project` to `moderator_delete_project` and enforced explicit moderator validation to prevent unauthorized project destruction.
|
|
61
|
-
- **Path Sanitization**: Enhanced error handling to strip absolute local file paths from MCP error messages.
|
|
62
|
-
|
|
63
|
-
### ๐ Resources & Documentation
|
|
64
|
-
- **New Resource**: Added `mcp://nexus/active-meeting` for instant access to the current meeting transcript and decisions.
|
|
65
|
-
- **Improved Tooling UX**: Documented return value structures and administrative requirements in tool definitions.
|
|
66
|
-
- **Manuals**: Updated `ASSISTANT_GUIDE.md` and both README versions with new admin tool documentation and Phase 2 best practices.
|
|
67
|
-
|
|
68
|
-
## [v0.1.7] - 2025-12-30
|
|
69
|
-
|
|
70
|
-
### โ๏ธ CLI Simplification
|
|
71
|
-
- **Moderator flag**: Replaced `--moderator-id <id>` with simple `--moderator` boolean flag.
|
|
72
|
-
- Moderator: `--id Master-AI --moderator`
|
|
73
|
-
- Regular AI: `--id Assistant-AI` (no extra flag needed)
|
|
74
|
-
|
|
75
|
-
### โ
Tests
|
|
76
|
-
- Added session resource tests for role verification (Moderator/Regular).
|
|
77
|
-
- All 17 unit tests passing.
|
|
78
|
-
|
|
79
|
-
## [v0.1.6] - 2025-12-29
|
|
80
|
-
|
|
81
|
-
### ๐ Concurrency Safety
|
|
82
|
-
- **AsyncMutex Lock**: Implemented mutex-based concurrency control to prevent race conditions during simultaneous file writes.
|
|
83
|
-
- Protected write operations:
|
|
84
|
-
- Discussion: `addGlobalLog()`, `pruneGlobalLogs()`, `clearGlobalLogs()`
|
|
85
|
-
- Registry: `saveProjectManifest()`, `renameProject()`, `deleteProject()`
|
|
86
|
-
|
|
87
|
-
### ๐ฆ Schema v2.0
|
|
88
|
-
- **Manifest Schema Enhancements**: Added new optional fields for enterprise coordination:
|
|
89
|
-
- `apiDependencies`: Map of projectId to version constraint (e.g., `">=v2.1"`)
|
|
90
|
-
- `gatewayCompatibility`: Gateway version compatibility string
|
|
91
|
-
- `api_versions`: Feature-level API versions
|
|
92
|
-
- `feature_tier`: Capability tier declaration (`"free"` | `"pro"` | `"enterprise"`)
|
|
93
|
-
|
|
94
|
-
## [v0.1.5] - 2025-12-29
|
|
95
|
-
|
|
96
|
-
### ๐ Major Features
|
|
97
|
-
- **Project ID Naming Convention**: Enforced `[prefix]_[technical-name]` standard with 13 type prefixes (web_, api_, chrome_, vscode_, mcp_, android_, ios_, flutter_, desktop_, lib_, bot_, infra_, doc_).
|
|
98
|
-
- **MCP Prompts Capability**: Added `init_project_nexus` prompt for guiding AI through proper project registration workflow.
|
|
99
|
-
- **delete_project Tool**: New admin tool for complete project removal (manifest, assets, registry entry).
|
|
100
|
-
|
|
101
|
-
### ๐ Guardrails
|
|
102
|
-
- Added `validateProjectId()` with runtime regex validation in `handleRegisterSession`, `handleSyncProjectAssets`, and `handleRenameProject`.
|
|
103
|
-
- Projects with invalid ID formats are now rejected at the API level.
|
|
104
|
-
|
|
105
|
-
### โจ Enhancements
|
|
106
|
-
- Resource names now display project type icons (e.g., "๐ Website: web_example.com").
|
|
107
|
-
- Handler unit tests expanded to cover delete, rename, and validation scenarios.
|
|
108
|
-
|
|
109
|
-
### ๐ Documentation
|
|
110
|
-
- Added "Project ID Conventions" section to README.md.
|
|
111
|
-
- Updated tool descriptions with Prefix Dictionary guidance.
|
|
112
|
-
|
|
113
|
-
## [v0.1.4] - 2025-12-29
|
|
114
|
-
|
|
115
|
-
### ๐ Bug Fix
|
|
116
|
-
- Added shebang (`#!/usr/bin/env node`) to fix npx execution on Windows.
|
|
117
|
-
|
|
118
|
-
## [v0.1.3] - 2025-12-29
|
|
119
|
-
|
|
120
|
-
### ๐ง CI/CD
|
|
121
|
-
- Switched to npm Trusted Publishing (OIDC) - no more NPM_TOKEN needed.
|
|
122
|
-
- Upgraded to Node.js 22 for npm 11.5.1+ support.
|
|
123
|
-
- Added `--provenance` flag for supply chain security.
|
|
124
|
-
|
|
125
|
-
## [v0.1.2] - 2025-12-29
|
|
126
|
-
|
|
127
|
-
### ๐ง Refactoring
|
|
128
|
-
- Modularized codebase into `tools/`, `resources/`, and `storage/` modules.
|
|
129
|
-
- Reduced `index.ts` from 535 to 115 lines.
|
|
130
|
-
- Moved tests from `src/__tests__/` to top-level `tests/` directory.
|
|
131
|
-
|
|
132
|
-
### ๐ฆ CI/CD
|
|
133
|
-
- Changed GitHub Actions trigger from `release` to tag push (`v*`).
|
|
134
|
-
|
|
135
|
-
### ๐ Documentation
|
|
136
|
-
- Added npm downloads badge.
|
|
137
|
-
- Fixed repository URLs to `n2n-nexus`.
|
|
138
|
-
|
|
139
|
-
## [v0.1.1] - 2025-12-29
|
|
140
|
-
|
|
141
|
-
### ๐ฆ npm Release
|
|
142
|
-
- Published to npm as `@datafrog-io/n2n-nexus`.
|
|
143
|
-
- Updated README with `npx` configuration for easy MCP integration.
|
|
144
|
-
- Added CLI arguments documentation table.
|
|
145
|
-
|
|
146
|
-
## [v0.1.0] - 2025-12-29
|
|
147
|
-
|
|
148
|
-
### ๐ Major Features
|
|
149
|
-
- **Project Asset Hub**: Centralized storage for Project Manifests, Internal Docs, and Assets (Images/Files).
|
|
150
|
-
- **Communication Channels**:
|
|
151
|
-
- `mcp://chat/global`: Real-time inter-agent messaging stream.
|
|
152
|
-
- `post_global_discussion`: Broadcast tool for coordination.
|
|
153
|
-
- **Topology Engine**:
|
|
154
|
-
- `get_global_topology`: Auto-generates dependency graphs based on manifest `relations`.
|
|
155
|
-
- **Global Knowledge Base**:
|
|
156
|
-
- New `docs/` directory structure for shared standards.
|
|
157
|
-
- Tools: `sync_global_doc`, `read_global_doc`, `list_global_docs`.
|
|
158
|
-
- **Self-Healing Storage**:
|
|
159
|
-
- Automatic repair of corrupted JSON registries or logs.
|
|
160
|
-
- Safe-defaults for missing configurations.
|
|
161
|
-
|
|
162
|
-
### ๐ ๏ธ Tooling
|
|
163
|
-
- Added `update_project` for partial manifest patches.
|
|
164
|
-
- Added `rename_project` with auto-cascading reference updates across all projects.
|
|
165
|
-
- Added `register_session_context` for IDE session binding.
|
|
166
|
-
- Added `moderator_maintenance` for log pruning.
|
|
167
|
-
|
|
168
|
-
### ๐ Documentation
|
|
169
|
-
- Updated `README.md` with complete architecture diagrams and data persistence details.
|
|
170
|
-
- Added `ASSISTANT_GUIDE.md` for AI-to-AI operational protocols.
|