ccperm 1.8.4 → 1.8.6

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.
@@ -12,7 +12,7 @@ function visLen(s) {
12
12
  }
13
13
  function boxLine(text, width) {
14
14
  const vis = visLen(text);
15
- const padRight = Math.max(0, width - vis - 1);
15
+ const padRight = Math.max(0, width - vis - 3);
16
16
  return `${colors_js_1.DIM}│${colors_js_1.NC} ${text}${' '.repeat(padRight)}${colors_js_1.DIM}│${colors_js_1.NC}`;
17
17
  }
18
18
  function boxTop(title, info, width) {
@@ -137,7 +137,7 @@ function renderList(state, withPerms, emptyCount) {
137
137
  const r = withPerms[i];
138
138
  const isCursor = i === state.cursor;
139
139
  const truncName = r.shortName.length > nameWidth ? r.shortName.slice(0, nameWidth - 1) + '…' : r.shortName;
140
- const typeTag = r.isGlobal ? '' : r.fileType === 'local' ? ` ${colors_js_1.DIM}local${colors_js_1.NC}` : ` ${colors_js_1.DIM}shared${colors_js_1.NC}`;
140
+ const typeTag = r.isGlobal ? pad('', 7) : `${colors_js_1.DIM} ${pad(r.fileType, 6)}${colors_js_1.NC}`;
141
141
  const prefix = r.isGlobal ? '★ ' : '';
142
142
  const marker = isCursor ? `${colors_js_1.CYAN}▸ ` : ' ';
143
143
  const nameStyle = isCursor ? `${colors_js_1.BOLD}` : r.isGlobal ? `${colors_js_1.YELLOW}` : '';
package/dist/renderer.js CHANGED
@@ -28,7 +28,7 @@ function printCompact(entries, summary) {
28
28
  for (let i = 0; i < withPerms.length; i++) {
29
29
  const result = withPerms[i];
30
30
  const truncName = result.shortName.length > nameWidth ? result.shortName.slice(0, nameWidth - 1) + '…' : result.shortName;
31
- const typeTag = result.isGlobal ? '' : result.fileType === 'local' ? ` ${colors_js_1.DIM}local${colors_js_1.NC}` : ` ${colors_js_1.DIM}shared${colors_js_1.NC}`;
31
+ const typeTag = result.isGlobal ? pad('', 7) : `${colors_js_1.DIM} ${pad(result.fileType, 6)}${colors_js_1.NC}`;
32
32
  const prefix = result.isGlobal ? '★ ' : '';
33
33
  const nameStyle = result.isGlobal ? `${colors_js_1.YELLOW}` : '';
34
34
  const nameCol = ` ${nameStyle}${prefix}${pad(truncName, nameWidth)}${colors_js_1.NC}${typeTag}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccperm",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "Audit Claude Code permissions across all your projects",
5
5
  "bin": {
6
6
  "ccperm": "bin/ccperm.js"