delimit-cli 4.1.24 → 4.1.25
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 +35 -0
- package/package.json +1 -1
package/bin/delimit-cli.js
CHANGED
|
@@ -3494,5 +3494,40 @@ program
|
|
|
3494
3494
|
console.log("");
|
|
3495
3495
|
});
|
|
3496
3496
|
|
|
3497
|
+
// Badge command — generate governance badge for README
|
|
3498
|
+
program
|
|
3499
|
+
.command('badge')
|
|
3500
|
+
.description('Generate a governance badge for your README')
|
|
3501
|
+
.action(() => {
|
|
3502
|
+
const policyFile = path.join(process.cwd(), '.delimit', 'policies.yml');
|
|
3503
|
+
const hasPolicy = fs.existsSync(policyFile);
|
|
3504
|
+
const workflowDir = path.join(process.cwd(), '.github', 'workflows');
|
|
3505
|
+
const hasAction = fs.existsSync(workflowDir) && fs.readdirSync(workflowDir).some(f => {
|
|
3506
|
+
try { return fs.readFileSync(path.join(workflowDir, f), 'utf-8').includes('delimit'); } catch { return false; }
|
|
3507
|
+
});
|
|
3508
|
+
|
|
3509
|
+
console.log(chalk.bold('\n Delimit Badge\n'));
|
|
3510
|
+
|
|
3511
|
+
if (hasPolicy && hasAction) {
|
|
3512
|
+
console.log(chalk.green(' Governance: active (policy + CI)\n'));
|
|
3513
|
+
console.log(' Add this to your README.md:\n');
|
|
3514
|
+
console.log(chalk.cyan(' [](https://github.com/delimit-ai/delimit-mcp-server)'));
|
|
3515
|
+
} else if (hasPolicy) {
|
|
3516
|
+
console.log(chalk.yellow(' Governance: policy only (no CI action)\n'));
|
|
3517
|
+
console.log(' Add this to your README.md:\n');
|
|
3518
|
+
console.log(chalk.cyan(' [](https://github.com/delimit-ai/delimit-mcp-server)'));
|
|
3519
|
+
console.log(chalk.gray('\n Add CI: npx delimit-cli init (creates GitHub Action workflow)'));
|
|
3520
|
+
} else {
|
|
3521
|
+
console.log(chalk.gray(' No governance found. Run:\n'));
|
|
3522
|
+
console.log(` ${chalk.green('npx delimit-cli init')} — set up policy + GitHub Action`);
|
|
3523
|
+
console.log(` ${chalk.green('npx delimit-cli badge')} — then generate your badge\n`);
|
|
3524
|
+
return;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
console.log('');
|
|
3528
|
+
console.log(chalk.gray(' Copy the line above and paste it in your README.md'));
|
|
3529
|
+
console.log(chalk.gray(' The badge links to Delimit so visitors can learn more.\n'));
|
|
3530
|
+
});
|
|
3531
|
+
|
|
3497
3532
|
const normalizedArgs = normalizeNaturalLanguageArgs(process.argv);
|
|
3498
3533
|
program.parse([process.argv[0], process.argv[1], ...normalizedArgs]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit-mcp-server",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.25",
|
|
5
5
|
"description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|