cc-safe-setup 4.0.2 → 4.0.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/index.mjs +8 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -363,12 +363,18 @@ function examples() {
|
|
|
363
363
|
},
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
+
// Optional category filter: --examples safety, --examples ux, etc.
|
|
367
|
+
const filterArg = process.argv[process.argv.indexOf('--examples') + 1] || process.argv[process.argv.indexOf('-e') + 1] || '';
|
|
368
|
+
const filter = filterArg.toLowerCase();
|
|
369
|
+
|
|
366
370
|
console.log();
|
|
367
|
-
console.log(c.bold + ' cc-safe-setup --examples' + c.reset);
|
|
368
|
-
console.log(c.dim + '
|
|
371
|
+
console.log(c.bold + ' cc-safe-setup --examples' + c.reset + (filter ? ' ' + filter : ''));
|
|
372
|
+
console.log(c.dim + ' 38 hooks beyond the 8 built-in ones' + c.reset);
|
|
373
|
+
if (filter) console.log(c.dim + ' Filter: ' + filter + c.reset);
|
|
369
374
|
console.log();
|
|
370
375
|
|
|
371
376
|
for (const [cat, hooks] of Object.entries(CATEGORIES)) {
|
|
377
|
+
if (filter && !cat.toLowerCase().includes(filter)) continue;
|
|
372
378
|
console.log(' ' + c.bold + c.blue + cat + c.reset);
|
|
373
379
|
for (const [file, desc] of Object.entries(hooks)) {
|
|
374
380
|
console.log(' ' + c.green + '*' + c.reset + ' ' + c.bold + file + c.reset);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-safe-setup",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "One command to make Claude Code safe for autonomous operation. 8 built-in + 38 examples. 22 commands including dashboard, create, audit, lint, diff, benchmark. 2,500+ daily npm downloads.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"bin": {
|