cc-safe-setup 10.6.0 → 10.7.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.
- package/index.mjs +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -414,12 +414,14 @@ function examples() {
|
|
|
414
414
|
};
|
|
415
415
|
|
|
416
416
|
// Optional category filter: --examples safety, --examples ux, etc.
|
|
417
|
-
const
|
|
418
|
-
const
|
|
417
|
+
const exIdx = Math.max(process.argv.indexOf('--examples'), process.argv.indexOf('-e'));
|
|
418
|
+
const nextArg = exIdx !== -1 ? (process.argv[exIdx + 1] || '') : '';
|
|
419
|
+
const filter = nextArg.startsWith('-') ? '' : nextArg.toLowerCase();
|
|
419
420
|
|
|
420
421
|
console.log();
|
|
421
422
|
console.log(c.bold + ' cc-safe-setup --examples' + c.reset + (filter ? ' ' + filter : ''));
|
|
422
|
-
|
|
423
|
+
const totalExamples = Object.values(CATEGORIES).reduce((sum, cat) => sum + Object.keys(cat).length, 0);
|
|
424
|
+
console.log(c.dim + ` ${totalExamples} hooks beyond the 8 built-in ones` + c.reset);
|
|
423
425
|
if (filter) console.log(c.dim + ' Filter: ' + filter + c.reset);
|
|
424
426
|
console.log();
|
|
425
427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-safe-setup",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"description": "One command to make Claude Code safe. 59 hooks (8 built-in + 51 examples). 26 CLI commands: dashboard, create, audit, lint, diff, migrate, compare, generate-ci. 284 tests.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"bin": {
|