ccperm 1.8.1 → 1.8.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.
@@ -67,7 +67,7 @@ function startInteractive(merged, results) {
67
67
  const onKey = (_str, key) => {
68
68
  if (!key)
69
69
  return;
70
- if (key.name === 'q') {
70
+ if (key.name === 'q' || (key.name === 'c' && key.ctrl)) {
71
71
  cleanup();
72
72
  console.log('');
73
73
  resolve();
@@ -78,7 +78,7 @@ function startInteractive(merged, results) {
78
78
  state.cursor = Math.max(0, state.cursor - 1);
79
79
  else if (key.name === 'down')
80
80
  state.cursor = Math.min(withPerms.length - 1, state.cursor + 1);
81
- else if (key.name === 'return') {
81
+ else if (key.name === 'return' && withPerms[state.cursor]?.totalCount > 0) {
82
82
  state.selectedProject = state.cursor;
83
83
  state.detailCursor = 0;
84
84
  state.detailScroll = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccperm",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "Audit Claude Code permissions across all your projects",
5
5
  "bin": {
6
6
  "ccperm": "bin/ccperm.js"