ccperm 1.3.1 → 1.3.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +12 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -68,17 +68,24 @@ async function main() {
68
68
  const searchDir = isCwd ? process.cwd() : node_os_1.default.homedir();
69
69
  console.log(` Scope: ${colors_js_1.YELLOW}${isCwd ? searchDir : '~ (all projects)'}${colors_js_1.NC}`);
70
70
  const isTTY = process.stdout.isTTY;
71
- const onProgress = isTTY ? (count) => {
72
- process.stdout.write(`\r ${colors_js_1.CYAN}⠹${colors_js_1.NC} Scanning... ${colors_js_1.BOLD}${count}${colors_js_1.NC} found`);
73
- } : undefined;
71
+ const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
72
+ let frame = 0;
73
+ let fileCount = 0;
74
+ const spinner = isTTY ? setInterval(() => {
75
+ const countText = fileCount > 0 ? ` ${colors_js_1.BOLD}${fileCount}${colors_js_1.NC} found` : '';
76
+ process.stdout.write(`\r ${colors_js_1.CYAN}${frames[frame++ % frames.length]}${colors_js_1.NC} Scanning...${countText}`);
77
+ }, 80) : null;
78
+ const onProgress = (count) => { fileCount = count; };
74
79
  const files = await (0, scanner_js_1.findSettingsFiles)(searchDir, onProgress);
75
- if (isTTY)
80
+ if (spinner) {
81
+ clearInterval(spinner);
76
82
  process.stdout.write('\r\x1b[K');
83
+ }
77
84
  if (files.length === 0) {
78
85
  console.log(` ${colors_js_1.GREEN}✔ No settings files found.${colors_js_1.NC}\n`);
79
86
  return;
80
87
  }
81
- console.log(` Found ${colors_js_1.CYAN}${files.length}${colors_js_1.NC} settings files\n`);
88
+ console.log(` ${colors_js_1.GREEN}✔${colors_js_1.NC} Found ${colors_js_1.CYAN}${files.length}${colors_js_1.NC} settings files\n`);
82
89
  const results = files.map(scanner_js_1.scanFile).filter((r) => r !== null);
83
90
  const merged = (0, aggregator_js_1.mergeByProject)(results);
84
91
  const summary = (0, aggregator_js_1.summarize)(results);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccperm",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Audit Claude Code permissions across all your projects",
5
5
  "bin": {
6
6
  "ccperm": "bin/ccperm.js"