claude-permissions-manager 1.4.66 → 1.4.67
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/README.md +28 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ cpm show # Show permissions for current project (cwd)
|
|
|
23
23
|
cpm show ~/my-project # Show detailed permissions for a specific project
|
|
24
24
|
cpm audit # Report risky permissions across all projects
|
|
25
25
|
cpm diff <path1> <path2> # Compare two projects side by side
|
|
26
|
+
cpm copy <source> <target> # Copy project-level permissions to another project
|
|
26
27
|
cpm export # Dump all permissions as JSON (stdout)
|
|
27
28
|
cpm export --format csv # Dump as CSV
|
|
28
29
|
cpm export --output out.json # Write to file
|
|
@@ -59,6 +60,32 @@ cpm reset --all --yes --project ~/my-project --scope project
|
|
|
59
60
|
cpm mode acceptEdits --project ~/my-project --scope project
|
|
60
61
|
```
|
|
61
62
|
|
|
63
|
+
### Copy permissions between projects
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Copy project-level rules and mode from one project to another
|
|
67
|
+
cpm copy ~/template-project ~/new-project --yes
|
|
68
|
+
|
|
69
|
+
# Preview without writing
|
|
70
|
+
cpm copy ~/template-project ~/new-project --dry-run
|
|
71
|
+
|
|
72
|
+
# Copy into a project-scope (shared) settings file instead of local
|
|
73
|
+
cpm copy ~/template-project ~/new-project --scope project --yes
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`cpm copy` reads allow/deny/ask rules and `defaultMode` from the **source project's `project` and `local` scope settings files only** (global user/managed rules are excluded — they already apply everywhere). It then merges those rules into the target's settings file, deduplicating any rules already present.
|
|
77
|
+
|
|
78
|
+
### Open settings in your editor
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
cpm edit # Open cwd local settings in $EDITOR
|
|
82
|
+
cpm edit --project ~/my-project # Open a specific project's local settings
|
|
83
|
+
cpm edit --scope project # Open the project-scope settings.json
|
|
84
|
+
cpm edit --scope project --project ~/p # Both options together
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Creates the file (empty `{}`) if it doesn't already exist, then opens it in `$VISUAL`, `$EDITOR`, or `vi` as a fallback.
|
|
88
|
+
|
|
62
89
|
### Scope options
|
|
63
90
|
|
|
64
91
|
| Scope | File | Applies to |
|
|
@@ -75,7 +102,7 @@ cpm mode acceptEdits --project ~/my-project --scope project
|
|
|
75
102
|
--json Output as JSON (list, show, audit, diff, export)
|
|
76
103
|
--no-global Skip user/managed global settings (list, show, audit, diff, export, ui)
|
|
77
104
|
--exit-code Exit 1 if issues found, 2 if critical issues (audit only — useful in CI)
|
|
78
|
-
--dry-run Preview what would be written without modifying files (allow, deny, ask, reset, mode, init)
|
|
105
|
+
--dry-run Preview what would be written without modifying files (allow, deny, ask, reset, mode, init, copy)
|
|
79
106
|
--format <fmt> Output format: json|csv (export only, default: json)
|
|
80
107
|
--output <file> Write output to file instead of stdout (export only)
|
|
81
108
|
```
|