centient 2.21.0 → 2.25.0

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 (80) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/README.md +134 -21
  3. package/dist/cli.d.ts +38 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +816 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/commands.d.ts +18 -0
  8. package/dist/commands.d.ts.map +1 -0
  9. package/dist/commands.js +341 -0
  10. package/dist/commands.js.map +1 -0
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +86 -18
  14. package/dist/index.js.map +1 -1
  15. package/dist/server.d.ts +4 -0
  16. package/dist/server.d.ts.map +1 -1
  17. package/dist/server.js +167 -96
  18. package/dist/server.js.map +1 -1
  19. package/dist/telemetry/tracer.d.ts.map +1 -1
  20. package/dist/telemetry/tracer.js +15 -1
  21. package/dist/telemetry/tracer.js.map +1 -1
  22. package/dist/tools/knowledge/promoteDecision.d.ts.map +1 -1
  23. package/dist/tools/knowledge/promoteDecision.js +7 -1
  24. package/dist/tools/knowledge/promoteDecision.js.map +1 -1
  25. package/dist/tools/knowledge/promoteLearning.d.ts.map +1 -1
  26. package/dist/tools/knowledge/promoteLearning.js +7 -1
  27. package/dist/tools/knowledge/promoteLearning.js.map +1 -1
  28. package/dist/tools/memory-bank/pushToMemoryBank.d.ts +9 -0
  29. package/dist/tools/memory-bank/pushToMemoryBank.d.ts.map +1 -0
  30. package/dist/tools/memory-bank/pushToMemoryBank.js +195 -0
  31. package/dist/tools/memory-bank/pushToMemoryBank.js.map +1 -0
  32. package/dist/tools/patterns/executeSkill.js +0 -41
  33. package/dist/tools/patterns/executeSkill.js.map +1 -1
  34. package/dist/tools/patterns/loadSkill.js +0 -17
  35. package/dist/tools/patterns/loadSkill.js.map +1 -1
  36. package/dist/tools/patterns/searchPatterns.js +0 -15
  37. package/dist/tools/patterns/searchPatterns.js.map +1 -1
  38. package/dist/tools/patterns/signPattern.js +0 -20
  39. package/dist/tools/patterns/signPattern.js.map +1 -1
  40. package/dist/utils/AuditLogger.d.ts +25 -18
  41. package/dist/utils/AuditLogger.d.ts.map +1 -1
  42. package/dist/utils/AuditLogger.js +261 -150
  43. package/dist/utils/AuditLogger.js.map +1 -1
  44. package/dist/utils/GeminiEmbeddingService.d.ts +25 -0
  45. package/dist/utils/GeminiEmbeddingService.d.ts.map +1 -0
  46. package/dist/utils/GeminiEmbeddingService.js +115 -0
  47. package/dist/utils/GeminiEmbeddingService.js.map +1 -0
  48. package/dist/utils/InstanceRegistry.d.ts +47 -0
  49. package/dist/utils/InstanceRegistry.d.ts.map +1 -0
  50. package/dist/utils/InstanceRegistry.js +195 -0
  51. package/dist/utils/InstanceRegistry.js.map +1 -0
  52. package/dist/utils/MetaKnowledgeEncryption.d.ts +21 -0
  53. package/dist/utils/MetaKnowledgeEncryption.d.ts.map +1 -0
  54. package/dist/utils/MetaKnowledgeEncryption.js +125 -0
  55. package/dist/utils/MetaKnowledgeEncryption.js.map +1 -0
  56. package/dist/utils/MetaKnowledgeManager.d.ts +18 -0
  57. package/dist/utils/MetaKnowledgeManager.d.ts.map +1 -1
  58. package/dist/utils/MetaKnowledgeManager.js +110 -6
  59. package/dist/utils/MetaKnowledgeManager.js.map +1 -1
  60. package/dist/utils/PatternIndexer.d.ts +1 -2
  61. package/dist/utils/PatternIndexer.d.ts.map +1 -1
  62. package/dist/utils/PatternIndexer.js +40 -72
  63. package/dist/utils/PatternIndexer.js.map +1 -1
  64. package/dist/utils/SessionCoordinator.d.ts +0 -1
  65. package/dist/utils/SessionCoordinator.d.ts.map +1 -1
  66. package/dist/utils/SessionCoordinator.js +3 -61
  67. package/dist/utils/SessionCoordinator.js.map +1 -1
  68. package/dist/utils/VertexSync.d.ts +12 -0
  69. package/dist/utils/VertexSync.d.ts.map +1 -0
  70. package/dist/utils/VertexSync.js +173 -0
  71. package/dist/utils/VertexSync.js.map +1 -0
  72. package/dist/utils/config.d.ts +60 -0
  73. package/dist/utils/config.d.ts.map +1 -0
  74. package/dist/utils/config.js +246 -0
  75. package/dist/utils/config.js.map +1 -0
  76. package/dist/utils/rlvr/RewardHistoryStore.d.ts +0 -2
  77. package/dist/utils/rlvr/RewardHistoryStore.d.ts.map +1 -1
  78. package/dist/utils/rlvr/RewardHistoryStore.js +5 -18
  79. package/dist/utils/rlvr/RewardHistoryStore.js.map +1 -1
  80. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,111 @@ All notable changes to the MCP Server for Context Engineering.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.23.0] - 2026-01-11
9
+
10
+ ### Changed
11
+
12
+ - **Complete OpenAI to Gemini Migration** - All embeddings now use Gemini
13
+ - `PatternIndexer` migrated from `text-embedding-3-small` to `gemini-embedding-001`
14
+ - `RewardHistoryStore` migrated from `text-embedding-3-large` to `gemini-embedding-001`
15
+ - Vector dimensions: 1536 → 3072 for PatternIndexer (auto-migrates collection)
16
+ - RewardHistoryStore already used 3072 dimensions (no collection change needed)
17
+
18
+ - **Simplified API Dependencies** - Reduced from 4 to 3 required services
19
+ - Removed: `OPENAI_API_KEY` (no longer used)
20
+ - Kept: `QDRANT_URL` + `QDRANT_API_KEY` (vector storage)
21
+ - Kept: `GEMINI_API_KEY` (embeddings + file search)
22
+ - Kept: `OPENROUTER_API_KEY` (LLM completions)
23
+
24
+ - **Health Check Updated** - No longer checks OpenAI API
25
+ - Removed OpenAI from environment variable display
26
+ - Removed OpenAI service connectivity test
27
+ - Config display (`--config`) no longer shows OPENAI_API_KEY
28
+
29
+ ### Benefits
30
+
31
+ - **Cost Reduction** - Gemini embeddings ~5x cheaper than OpenAI
32
+ - **Fewer Dependencies** - One less API key to manage
33
+ - **Consistency** - All embedding operations use same provider
34
+ - **Higher Dimensions** - 3072 vs 1536 = better semantic resolution
35
+
36
+ ## [2.22.0] - 2026-01-11
37
+
38
+ ### Added
39
+
40
+ - **CLI Module** - Standard command-line interface for centient
41
+ - `--version/-V` - Show version number
42
+ - `--help/-h` - Show help message
43
+ - `--list-tools/-l` - List all 92 MCP tools by module
44
+ - `--health` - Run health check (validates API connections)
45
+ - `--config` - Show current configuration
46
+ - `--stats` - Show usage statistics from audit log
47
+ - `--monitor` - Real-time audit log viewer with colorized output
48
+ - `--monitor --follow` - Continuous monitoring mode
49
+
50
+ - **Instance Registry** - Multi-process monitoring support
51
+ - Instances register at `~/.centient/instances/<pid>.json`
52
+ - Heartbeat updates every 30 seconds
53
+ - Stale detection for instances older than 2 minutes
54
+ - Tracks: PID, project path, version, tool count, memory usage, request count
55
+
56
+ - **TTY Detection** - Colors disabled when output is piped
57
+
58
+ ### Changed
59
+
60
+ - **Test Suite** - 1300 passing tests across 39 test files
61
+
62
+ ### Documentation
63
+
64
+ - Added `CENTIENT_MONITOR_SPEC.md` for external monitoring tool specification
65
+ - Updated `CLAUDE.md` with CLI commands and instance registry protocol
66
+
67
+ ## [2.21.0] - 2026-01-11
68
+
69
+ ### Added
70
+
71
+ - **Trails Module** (8 new tools) - DevLex syntopic trail discovery
72
+ - `trail_query_topics` - Browse topic hierarchy (domains/subdomains)
73
+ - `trail_query_by_topic` - Find articles by topic
74
+ - `trail_query_intersect` - Find topic overlaps
75
+ - `trail_discover_convergence` - Find converging insights from independent sources
76
+ - `trail_discover_influence` - Trace influence chains through knowledge
77
+ - `trail_discover_auto` - Auto-discover trails based on patterns
78
+ - `trail_list` - List existing trails
79
+ - `trail_view` - View trail details
80
+
81
+ - **Knowledge Module** (3 new tools) - Cross-project meta-knowledge
82
+ - `promote_learning` - Promote insights to ~/.mcp-context/learnings/
83
+ - `promote_decision` - Promote decisions to ~/.mcp-context/decisions/
84
+ - `search_meta_knowledge` - Search cross-project knowledge
85
+
86
+ - **Pattern Signing** - `signPattern` tool for SHA-256 integrity checksums
87
+
88
+ ### Changed
89
+
90
+ - **Package Renamed** - `mcp-context-server` → `centient`
91
+ - npm package name updated
92
+ - MCP server name updated to `centient`
93
+ - Slash commands updated to use `mcp__centient__*`
94
+
95
+ - **Tool Counts Updated**
96
+ - Total: 92 tools across 16 modules (was 84 across 15)
97
+ - Patterns: 13 tools (added signPattern)
98
+ - Artifacts: 5 tools (added diffSessions)
99
+ - Metrics: 5 tools (added getAuditLog)
100
+ - Session: 20 tools (added ask_session)
101
+ - Health: 4 tools (added getCircuitBreakerStats, getRateLimitStats)
102
+
103
+ - **Test Suite** - 1258 passing tests across 37 test files
104
+
105
+ ### Documentation
106
+
107
+ - Comprehensive documentation overhaul for v2.21.0
108
+ - MCP_TOOLS_REFERENCE.md updated with Knowledge and Trails modules
109
+ - README.md updated with all 16 modules
110
+ - Removed duplicate README-Upgrade.md from root
111
+ - Fixed version/tool count inconsistencies across all docs
112
+
8
113
  ## [2.20.0] - 2026-01-11
9
114
 
10
115
  ### Added
@@ -337,6 +442,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
337
442
 
338
443
  ---
339
444
 
445
+ [2.21.0]: https://github.com/Szermer/centient/compare/v2.20.0...v2.21.0
340
446
  [2.20.0]: https://github.com/Szermer/centient/compare/v2.19.0...v2.20.0
341
447
  [2.19.0]: https://github.com/Szermer/centient/compare/v2.14.0...v2.19.0
342
448
  [2.14.0]: https://github.com/Szermer/centient/compare/v2.13.0...v2.14.0
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Centient
2
2
 
3
- **Version:** 2.20.0
3
+ **Version:** 2.24.0
4
4
  **Status:** Production Ready
5
- **Tools:** 84 across 16 modules
6
- **Tests:** 1258 passing
5
+ **Tools:** 93 across 16 modules
6
+ **Tests:** 1343 passing
7
7
 
8
8
  Centient is an MCP server that exposes context engineering operations as executable tools, enabling progressive skill loading and achieving **98.7% token reduction** through intelligent context management.
9
9
 
@@ -107,18 +107,94 @@ For full functionality, add environment variables to your config:
107
107
 
108
108
  **Minimal setup:** Core functionality works without API keys. Features degrade gracefully.
109
109
 
110
+ ## CLI Commands
111
+
112
+ Centient provides CLI commands for project scaffolding and diagnostics.
113
+
114
+ ### Project Scaffolding
115
+
116
+ Initialize and maintain slash commands in your project:
117
+
118
+ ```bash
119
+ # Initialize .claude/ directory with command templates
120
+ centient init
121
+
122
+ # Force overwrite existing files
123
+ centient init --force
124
+
125
+ # Check status of installed commands
126
+ centient check-commands
127
+
128
+ # Update outdated commands (preserves customizations)
129
+ centient update-commands
130
+ ```
131
+
132
+ **Command Status:**
133
+ | Status | Description |
134
+ |--------|-------------|
135
+ | Current | Installed version matches template |
136
+ | Missing | Template not installed |
137
+ | Outdated | Installed version lower than template |
138
+ | Customized | No version header (user modified) |
139
+
140
+ **What `centient init` creates:**
141
+ ```
142
+ .claude/
143
+ ├── commands/
144
+ │ ├── session-start.md # Initialize session memory
145
+ │ ├── note.md # Add decision/hypothesis/blocker
146
+ │ ├── checkpoint.md # Save progress checkpoint
147
+ │ ├── finalize.md # End session, create artifacts
148
+ │ ├── promote.md # Promote to cross-project knowledge
149
+ │ ├── patterns.md # Search pattern library
150
+ │ ├── recall.md # Recall from memory
151
+ │ ├── check-duplicate.md # Detect duplicate work
152
+ │ ├── constraint.md # Manage constraints
153
+ │ ├── history.md # Browse session history
154
+ │ └── session-status.md # Show session state
155
+ ├── hooks/ # (if templates exist)
156
+ └── settings.json # (if template exists)
157
+ ```
158
+
159
+ ### Diagnostics
160
+
161
+ ```bash
162
+ # Show version
163
+ centient --version
164
+
165
+ # Show help
166
+ centient --help
167
+
168
+ # List all 93 MCP tools
169
+ centient --list-tools
170
+
171
+ # Run health check (validates API connections)
172
+ centient --health
173
+
174
+ # Show configuration (env vars, paths)
175
+ centient --config
176
+
177
+ # Show usage statistics from audit log
178
+ centient --stats
179
+
180
+ # Monitor audit log activity
181
+ centient --monitor # Last 20 events
182
+ centient --monitor --last 50 # Last 50 events
183
+ centient --monitor --follow # Live tail mode
184
+ ```
185
+
110
186
  ## Architecture
111
187
 
112
- ### 16 Modules, 84 Tools
188
+ ### 16 Modules, 93 Tools
113
189
 
114
190
  | Module | Tools | Purpose |
115
191
  | ------------------------------------ | ----- | ------------------------------------------------------- |
116
192
  | [Patterns](#patterns-module) | 13 | Progressive skill loading with versioning |
117
- | [Artifacts](#artifacts-module) | 4 | Historical session knowledge access |
193
+ | [Artifacts](#artifacts-module) | 5 | Historical session knowledge access |
118
194
  | [Memory](#memory-module) | 3 | Session runtime context (file-based) |
119
- | [Metrics](#metrics-module) | 4 | Performance and cost tracking |
195
+ | [Metrics](#metrics-module) | 5 | Performance and cost tracking |
120
196
  | [Search](#search-module) | 3 | Semantic search via Google File Search |
121
- | [Session](#session-module) | 19 | Real-time Qdrant coordination + Hallucination Detection |
197
+ | [Session](#session-module) | 20 | Real-time Qdrant coordination + Hallucination Detection |
122
198
  | [Stuck](#stuck-module) | 2 | Stuck detection and recovery |
123
199
  | [Health](#health-module) | 4 | System health and service monitoring |
124
200
  | [Research](#research-module) | 5 | Research workflow management |
@@ -126,6 +202,9 @@ For full functionality, add environment variables to your config:
126
202
  | [Graph](#graph-module) | 3 | Temporal relationship tracking |
127
203
  | [Consultation](#consultation-module) | 9 | Cross-model validation |
128
204
  | [Branching](#branching-module) | 6 | Session branching and decision trees |
205
+ | [Knowledge](#knowledge-module) | 3 | Cross-project meta-knowledge |
206
+ | [Trails](#trails-module) | 8 | DevLex syntopic trail discovery |
207
+ | [RLVR](#rlvr-module) | 1 | Reinforcement learning verification |
129
208
 
130
209
  ### Patterns Module (13 tools)
131
210
 
@@ -145,7 +224,7 @@ Progressive skill loading with **98.7% token reduction**:
145
224
  - `predictOutcome` - Predict success probability before execution
146
225
  - `signPattern` - Sign pattern with SHA-256 checksums for integrity
147
226
 
148
- ### Artifacts Module (4 tools)
227
+ ### Artifacts Module (5 tools)
149
228
 
150
229
  Historical session knowledge access:
151
230
 
@@ -153,6 +232,7 @@ Historical session knowledge access:
153
232
  - `loadSession` - Load session context (with optional query filtering)
154
233
  - `getSessionCode` - Extract executable code from sessions
155
234
  - `extractSessionContext` - Extract compressed context for handoffs
235
+ - `diffSessions` - Compare two sessions side-by-side
156
236
 
157
237
  ### Memory Module (3 tools)
158
238
 
@@ -162,7 +242,7 @@ File-based session notes:
162
242
  - `getDecisions` - Retrieve session decisions
163
243
  - `getHypotheses` - Retrieve session hypotheses
164
244
 
165
- ### Metrics Module (4 tools)
245
+ ### Metrics Module (5 tools)
166
246
 
167
247
  Performance measurement:
168
248
 
@@ -170,6 +250,7 @@ Performance measurement:
170
250
  - `getPatternReuse` - Track pattern reuse statistics
171
251
  - `getCostDashboard` - API cost tracking by service/model
172
252
  - `getPatternAnalytics` - Historical usage trends
253
+ - `getAuditLog` - Query audit log for pattern/skill access history
173
254
 
174
255
  ### Search Module (3 tools)
175
256
 
@@ -179,7 +260,7 @@ Semantic search via Google File Search:
179
260
  - `indexSession` - Index session to File Search store
180
261
  - `getSearchStats` - Get indexing statistics and costs
181
262
 
182
- ### Session Module (19 tools)
263
+ ### Session Module (20 tools)
183
264
 
184
265
  Real-time coordination via Qdrant + Hallucination Detection:
185
266
 
@@ -188,9 +269,10 @@ Real-time coordination via Qdrant + Hallucination Detection:
188
269
  - `start_session_coordination` - Initialize Qdrant session memory
189
270
  - `save_session_note` - Save decision/hypothesis/blocker/finding
190
271
  - `session_search` - Fast semantic search (50-200ms)
272
+ - `ask_session` - Natural language queries against session memory
191
273
  - `check_duplicate_work` - Detect duplicate implementations
192
274
  - `get_session_stats` - Get session statistics
193
- - `get_session_summary` - **NEW:** Comprehensive summary with branch visualization
275
+ - `get_session_summary` - Comprehensive summary with branch visualization
194
276
  - `extract_session_memories` - Extract learnings for finalization
195
277
  - `finalize_session_coordination` - Cleanup ephemeral memory
196
278
 
@@ -289,6 +371,33 @@ Decision Point → Create Branch → Explore → Close Branch
289
371
  └── abandon (incomplete)
290
372
  ```
291
373
 
374
+ ### Knowledge Module (3 tools)
375
+
376
+ Cross-project meta-knowledge for Tier 3 universal learnings:
377
+
378
+ - `promote_learning` - Promote insights to ~/.mcp-context/learnings/
379
+ - `promote_decision` - Promote decisions to ~/.mcp-context/decisions/
380
+ - `search_meta_knowledge` - Search cross-project knowledge
381
+
382
+ ### Trails Module (8 tools)
383
+
384
+ DevLex syntopic trail discovery for knowledge exploration:
385
+
386
+ - `trail_query_topics` - Browse topic hierarchy (domains/subdomains)
387
+ - `trail_query_by_topic` - Find articles by topic
388
+ - `trail_query_intersect` - Find topic overlaps
389
+ - `trail_discover_convergence` - Find converging insights from independent sources
390
+ - `trail_discover_influence` - Trace influence chains through knowledge
391
+ - `trail_discover_auto` - Auto-discover trails based on patterns
392
+ - `trail_list` - List existing trails
393
+ - `trail_view` - View trail details
394
+
395
+ ### RLVR Module (1 tool)
396
+
397
+ Reinforcement learning verification:
398
+
399
+ - `run_rlvr_task` - Execute RLVR verification tasks
400
+
292
401
  ## Usage Examples
293
402
 
294
403
  ### Progressive Skill Loading (98.7% Token Reduction)
@@ -373,7 +482,7 @@ const feasibility = await check_code_feasibility({
373
482
  ```bash
374
483
  npm run build # Compile TypeScript
375
484
  npm run dev # Development with auto-reload
376
- npm test # Run 801 tests
485
+ npm test # Run 1343 tests
377
486
  npm run test:coverage # With coverage report
378
487
  npm run lint # Type checking
379
488
  ```
@@ -383,24 +492,28 @@ npm run lint # Type checking
383
492
  ```
384
493
  src/
385
494
  ├── index.ts # Entry point (stdio transport)
386
- ├── server.ts # MCP server config (71 tools)
495
+ ├── server.ts # MCP server config (93 tools)
387
496
  ├── tools/
388
- │ ├── patterns/ # Progressive skill loading (9 tools)
389
- │ ├── artifacts/ # Historical knowledge (4 tools)
497
+ │ ├── patterns/ # Progressive skill loading (13 tools)
498
+ │ ├── artifacts/ # Historical knowledge (5 tools)
390
499
  │ ├── memory/ # File-based notes (3 tools)
391
- │ ├── metrics/ # Performance tracking (4 tools)
500
+ │ ├── metrics/ # Performance tracking (5 tools)
392
501
  │ ├── search/ # Semantic search (3 tools)
393
- │ ├── session/ # Qdrant coordination (19 tools)
502
+ │ ├── session/ # Qdrant coordination (20 tools)
394
503
  │ ├── stuck/ # Stuck detection (2 tools)
395
- │ ├── health/ # System health (2 tools)
504
+ │ ├── health/ # System health (4 tools)
396
505
  │ ├── research/ # Research workflow (5 tools)
397
506
  │ ├── memory-bank/ # Vertex AI memory (2 tools)
398
507
  │ ├── graph/ # Temporal relationships (3 tools)
399
508
  │ ├── consultation/ # Cross-model validation (9 tools)
400
- └── branching/ # Session branching (6 tools)
509
+ ├── branching/ # Session branching (6 tools)
510
+ │ ├── knowledge/ # Cross-project meta-knowledge (3 tools)
511
+ │ ├── trails/ # DevLex syntopic discovery (8 tools)
512
+ │ └── rlvr/ # RLVR verification (1 tool)
401
513
  └── utils/
402
514
  ├── SessionCoordinator.ts # Qdrant session management
403
515
  ├── ResearchCoordinator.ts # Research session management
516
+ ├── MetaKnowledgeManager.ts # Cross-project meta-knowledge
404
517
  └── tokenEstimator.ts # Token usage tracking
405
518
  ```
406
519
 
@@ -409,7 +522,7 @@ src/
409
522
  | Document | Description |
410
523
  | ------------------------------------------------------- | ---------------------------------- |
411
524
  | [CLAUDE.md](./CLAUDE.md) | Claude Code integration guide |
412
- | [MCP_TOOLS_REFERENCE.md](./docs/MCP_TOOLS_REFERENCE.md) | Complete tool reference (71 tools) |
525
+ | [MCP_TOOLS_REFERENCE.md](./docs/MCP_TOOLS_REFERENCE.md) | Complete tool reference (93 tools) |
413
526
  | [DEVELOPER_GUIDE.md](./docs/DEVELOPER_GUIDE.md) | Guide for extending the server |
414
527
  | [ARCHITECTURE.md](./docs/ARCHITECTURE.md) | System architecture and design |
415
528
  | [DESIGN_DECISIONS.md](./docs/DESIGN_DECISIONS.md) | Technical decision rationale |
@@ -429,5 +542,5 @@ MIT
429
542
  ---
430
543
 
431
544
  **Created:** 2025-11-05
432
- **Last Updated:** 2025-01-02
545
+ **Last Updated:** 2026-01-12
433
546
  **Maintainer:** Stephen Szermer
package/dist/cli.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { Tool } from "@modelcontextprotocol/sdk/types.js";
2
+ export declare function printVersion(): void;
3
+ export declare function printHelp(): void;
4
+ export declare function printTools(tools: Tool[]): void;
5
+ export declare function printHealth(): Promise<void>;
6
+ export declare function printConfig(): void;
7
+ export declare function printStats(): Promise<void>;
8
+ export declare function log(options: {
9
+ last: number;
10
+ follow: boolean;
11
+ }): Promise<void>;
12
+ export declare function monitor(options: MonitorOptions): Promise<void>;
13
+ export interface MonitorOptions {
14
+ follow: boolean;
15
+ project?: string;
16
+ json: boolean;
17
+ quiet: boolean;
18
+ summary: boolean;
19
+ }
20
+ export interface LogOptions {
21
+ last: number;
22
+ follow: boolean;
23
+ }
24
+ export interface InitOptions {
25
+ force: boolean;
26
+ }
27
+ export interface UpdateOptions {
28
+ force: boolean;
29
+ dryRun: boolean;
30
+ }
31
+ export declare function parseArgs(args: string[]): {
32
+ action: "server" | "version" | "help" | "list-tools" | "health" | "config" | "monitor" | "log" | "stats" | "init" | "check-commands" | "update-commands";
33
+ monitorOptions?: MonitorOptions;
34
+ logOptions?: LogOptions;
35
+ initOptions?: InitOptions;
36
+ updateOptions?: UpdateOptions;
37
+ };
38
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAgC1D,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAKD,wBAAgB,SAAS,IAAI,IAAI,CAgDhC;AAKD,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAoF9C;AAKD,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAqFjD;AAKD,wBAAgB,WAAW,IAAI,IAAI,CAsClC;AAgID,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CA8GhD;AAKD,wBAAsB,GAAG,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuGnF;AAmMD,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFpE;AAKD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAKD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACjB;AAKD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,CAAC;CAChB;AAKD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAKD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IACzC,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;IACzJ,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAuIA"}