ccperm 1.10.0 → 1.10.1
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/dist/cli.js +9 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ const aggregator_js_1 = require("./aggregator.js");
|
|
|
13
13
|
const renderer_js_1 = require("./renderer.js");
|
|
14
14
|
const interactive_js_1 = require("./interactive.js");
|
|
15
15
|
const advisor_js_1 = require("./advisor.js");
|
|
16
|
-
const KNOWN_FLAGS = new Set(['--cwd', '--verbose', '--static', '--update', '--fix', '--
|
|
16
|
+
const KNOWN_FLAGS = new Set(['--cwd', '--verbose', '--static', '--update', '--fix', '--hey-claude-witness-me', '--debug', '--help', '-h', '--version', '-v']);
|
|
17
17
|
const HELP = `${colors_js_1.CYAN}ccperm${colors_js_1.NC} — Audit Claude Code permissions across projects
|
|
18
18
|
|
|
19
19
|
${colors_js_1.YELLOW}Usage:${colors_js_1.NC}
|
|
@@ -25,9 +25,14 @@ ${colors_js_1.YELLOW}Options:${colors_js_1.NC}
|
|
|
25
25
|
--verbose Show all permissions per project (static)
|
|
26
26
|
--static Force static output (default in non-TTY)
|
|
27
27
|
--update Update ccperm to latest version
|
|
28
|
-
--
|
|
28
|
+
--hey-claude-witness-me
|
|
29
|
+
Dump a markdown briefing so your AI can
|
|
30
|
+
judge your permission hygiene. It will.
|
|
29
31
|
--help, -h Show this help
|
|
30
|
-
--version, -v Show version
|
|
32
|
+
--version, -v Show version
|
|
33
|
+
|
|
34
|
+
${colors_js_1.DIM}Pro tip: pipe --hey-claude-witness-me into Claude and watch it roast your settings.
|
|
35
|
+
$ ccperm --hey-claude-witness-me | pbcopy # then paste into your AI of choice${colors_js_1.NC}`;
|
|
31
36
|
async function main() {
|
|
32
37
|
const args = process.argv.slice(2);
|
|
33
38
|
if (args.includes('--help') || args.includes('-h')) {
|
|
@@ -92,7 +97,7 @@ async function main() {
|
|
|
92
97
|
const results = files.map(scanner_js_1.scanFile).filter((r) => r !== null);
|
|
93
98
|
const entries = (0, aggregator_js_1.toFileEntries)(results);
|
|
94
99
|
const summary = (0, aggregator_js_1.summarize)(results);
|
|
95
|
-
if (args.includes('--
|
|
100
|
+
if (args.includes('--hey-claude-witness-me')) {
|
|
96
101
|
console.log((0, advisor_js_1.analyze)(results));
|
|
97
102
|
return;
|
|
98
103
|
}
|