delimit-cli 3.11.1 → 3.11.3
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/bin/delimit-cli.js +52 -2
- package/bin/delimit.js +6 -6
- package/gateway/core/contract_ledger.py +1 -1
- package/gateway/core/dependency_graph.py +1 -1
- package/gateway/core/dependency_manifest.py +1 -1
- package/gateway/core/event_backbone.py +2 -2
- package/gateway/core/event_schema.py +1 -1
- package/gateway/core/impact_analyzer.py +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/bin/delimit-cli.js
CHANGED
|
@@ -472,8 +472,58 @@ program
|
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
console.log(chalk.green('✓ Removed PATH modifications'));
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
|
|
476
|
+
// Remove MCP config from Claude Code
|
|
477
|
+
const mcpPath = path.join(process.env.HOME, '.mcp.json');
|
|
478
|
+
if (fs.existsSync(mcpPath)) {
|
|
479
|
+
try {
|
|
480
|
+
const mcp = JSON.parse(fs.readFileSync(mcpPath, 'utf8'));
|
|
481
|
+
if (mcp.mcpServers && mcp.mcpServers.delimit) {
|
|
482
|
+
delete mcp.mcpServers.delimit;
|
|
483
|
+
fs.writeFileSync(mcpPath, JSON.stringify(mcp, null, 2));
|
|
484
|
+
console.log(chalk.green('✓ Removed from Claude Code MCP config'));
|
|
485
|
+
}
|
|
486
|
+
} catch (e) {}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// Remove from Codex config
|
|
490
|
+
const codexConfig = path.join(process.env.HOME, '.codex', 'config.json');
|
|
491
|
+
if (fs.existsSync(codexConfig)) {
|
|
492
|
+
try {
|
|
493
|
+
const cfg = JSON.parse(fs.readFileSync(codexConfig, 'utf8'));
|
|
494
|
+
if (cfg.mcpServers && cfg.mcpServers.delimit) {
|
|
495
|
+
delete cfg.mcpServers.delimit;
|
|
496
|
+
fs.writeFileSync(codexConfig, JSON.stringify(cfg, null, 2));
|
|
497
|
+
console.log(chalk.green('✓ Removed from Codex MCP config'));
|
|
498
|
+
}
|
|
499
|
+
} catch (e) {}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// Remove from Gemini CLI config
|
|
503
|
+
const geminiConfig = path.join(process.env.HOME, '.gemini', 'settings.json');
|
|
504
|
+
if (fs.existsSync(geminiConfig)) {
|
|
505
|
+
try {
|
|
506
|
+
const cfg = JSON.parse(fs.readFileSync(geminiConfig, 'utf8'));
|
|
507
|
+
if (cfg.mcpServers && cfg.mcpServers.delimit) {
|
|
508
|
+
delete cfg.mcpServers.delimit;
|
|
509
|
+
fs.writeFileSync(geminiConfig, JSON.stringify(cfg, null, 2));
|
|
510
|
+
console.log(chalk.green('✓ Removed from Gemini CLI MCP config'));
|
|
511
|
+
}
|
|
512
|
+
} catch (e) {}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// Remove shims
|
|
516
|
+
const shimsDir = path.join(process.env.HOME, '.delimit', 'shims');
|
|
517
|
+
if (fs.existsSync(shimsDir)) {
|
|
518
|
+
try {
|
|
519
|
+
fs.rmSync(shimsDir, { recursive: true });
|
|
520
|
+
console.log(chalk.green('✓ Removed CLI shims'));
|
|
521
|
+
} catch (e) {}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
console.log(chalk.green('\n Delimit has been completely removed.'));
|
|
525
|
+
console.log(chalk.gray(' Your data in ~/.delimit/ has been preserved.'));
|
|
526
|
+
console.log(chalk.gray(' Delete it manually if you want: rm -rf ~/.delimit\n'));
|
|
477
527
|
});
|
|
478
528
|
|
|
479
529
|
// Helper function for installation
|
package/bin/delimit.js
CHANGED
|
@@ -41,7 +41,7 @@ function findRealExecutable(command, customPath) {
|
|
|
41
41
|
if (command === 'pre-commit-check' || command === 'pre-commit') {
|
|
42
42
|
log('Running pre-commit governance checks...', GREEN);
|
|
43
43
|
|
|
44
|
-
// Verify PATH is still
|
|
44
|
+
// Verify PATH is still integrateed
|
|
45
45
|
if (!process.env.PATH.includes('.delimit/shims')) {
|
|
46
46
|
error('Governance layer is not active in your PATH!');
|
|
47
47
|
error('Commit REJECTED. Please restart your terminal or run: source ~/.bashrc');
|
|
@@ -183,9 +183,9 @@ if (command === 'pre-commit-check' || command === 'pre-commit') {
|
|
|
183
183
|
log('Delimit Governance Status', BLUE);
|
|
184
184
|
log('═══════════════════════════════════════════', BLUE);
|
|
185
185
|
|
|
186
|
-
// Check PATH
|
|
187
|
-
const
|
|
188
|
-
log(`PATH Hijack: ${
|
|
186
|
+
// Check PATH integrateion
|
|
187
|
+
const pathIntegrateed = process.env.PATH.includes('.delimit/shims');
|
|
188
|
+
log(`PATH Hijack: ${pathIntegrateed ? '✓ ACTIVE' : '✗ INACTIVE'}`, pathIntegrateed ? GREEN : RED);
|
|
189
189
|
|
|
190
190
|
// Check Git hooks
|
|
191
191
|
try {
|
|
@@ -206,7 +206,7 @@ if (command === 'pre-commit-check' || command === 'pre-commit') {
|
|
|
206
206
|
|
|
207
207
|
log('═══════════════════════════════════════════', BLUE);
|
|
208
208
|
|
|
209
|
-
} else if (command === 'install' || command === '
|
|
209
|
+
} else if (command === 'install' || command === 'integrate') {
|
|
210
210
|
log('Installing Delimit governance layer...', GREEN);
|
|
211
211
|
execSync(`node ${path.join(__dirname, '../../scripts/install-governance.js')}`);
|
|
212
212
|
|
|
@@ -220,7 +220,7 @@ Usage: delimit [command]
|
|
|
220
220
|
|
|
221
221
|
Commands:
|
|
222
222
|
status Check governance status
|
|
223
|
-
install/
|
|
223
|
+
install/integrate Install governance layer system-wide
|
|
224
224
|
|
|
225
225
|
Internal Commands (called by hooks/shims):
|
|
226
226
|
pre-commit-check Run pre-commit governance
|
|
@@ -3,7 +3,7 @@ Delimit Contract Ledger
|
|
|
3
3
|
Reads, validates, and queries the append-only JSONL event ledger.
|
|
4
4
|
Optional SQLite index for fast lookups (never required for CI).
|
|
5
5
|
|
|
6
|
-
Per
|
|
6
|
+
Per Delimit architecture:
|
|
7
7
|
- Deterministic outputs
|
|
8
8
|
- Append-only artifacts
|
|
9
9
|
- SQLite index is optional, not required for CI
|
|
@@ -5,7 +5,7 @@ Constructs a deterministic service dependency graph from manifests.
|
|
|
5
5
|
The graph maps each API/service to its downstream consumers,
|
|
6
6
|
enabling impact analysis when an API contract changes.
|
|
7
7
|
|
|
8
|
-
Per
|
|
8
|
+
Per Delimit architecture:
|
|
9
9
|
- Deterministic outputs (sorted, reproducible)
|
|
10
10
|
- No telemetry
|
|
11
11
|
- Graceful degradation when manifests are missing
|
|
@@ -3,7 +3,7 @@ Delimit Event Backbone
|
|
|
3
3
|
Constructs ledger events, generates SHA-256 hashes, links hash chains,
|
|
4
4
|
and appends to the append-only JSONL ledger.
|
|
5
5
|
|
|
6
|
-
Per
|
|
6
|
+
Per Delimit architecture:
|
|
7
7
|
- Deterministic outputs
|
|
8
8
|
- Append-only artifacts
|
|
9
9
|
- Fail-closed CI behavior (ledger failures never affect CI)
|
|
@@ -199,7 +199,7 @@ class EventBackbone:
|
|
|
199
199
|
This is the primary API for event generation. It is best-effort:
|
|
200
200
|
if the ledger write fails, the event is still returned but not persisted.
|
|
201
201
|
|
|
202
|
-
CRITICAL: This method NEVER raises exceptions. Per
|
|
202
|
+
CRITICAL: This method NEVER raises exceptions. Per Delimit architecture,
|
|
203
203
|
ledger failures must not affect CI pass/fail outcome.
|
|
204
204
|
|
|
205
205
|
Returns:
|
|
@@ -3,7 +3,7 @@ Delimit Impact Analyzer
|
|
|
3
3
|
Determines downstream consumers affected by an API change
|
|
4
4
|
and produces informational impact summaries for CI output.
|
|
5
5
|
|
|
6
|
-
Per
|
|
6
|
+
Per Delimit architecture:
|
|
7
7
|
- Impact analysis is INFORMATIONAL ONLY
|
|
8
8
|
- NEVER affects CI pass/fail outcome
|
|
9
9
|
- Deterministic outputs
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.3",
|
|
5
5
|
"description": "One workspace for every AI coding assistant. Tasks, memory, and governance carry between Claude Code, Codex, and Gemini CLI.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"url": "https://github.com/delimit-ai/delimit",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "3.11.
|
|
10
|
+
"version": "3.11.3",
|
|
11
11
|
"websiteUrl": "https://delimit.ai",
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "delimit-cli",
|
|
16
|
-
"version": "3.11.
|
|
16
|
+
"version": "3.11.3",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|