oh-my-customcode 0.105.0 → 0.105.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/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -232,7 +232,35 @@ Skills persist output to `.claude/outputs/sessions/{YYYY-MM-DD}/{skill-name}-{HH
|
|
|
232
232
|
|
|
233
233
|
### Sensitive Path Handling
|
|
234
234
|
|
|
235
|
-
CC treats `.claude/` as a sensitive directory. The sensitive-path check runs **above** `bypassPermissions` and
|
|
235
|
+
CC treats `.claude/` as a sensitive directory, enforced across **all tool categories** — Bash, Write, and Edit. The sensitive-path check runs **above** `bypassPermissions` and explicit allow rules (e.g., `Write(.claude/**)`), so operations on sensitive paths may trigger permission prompts regardless of settings.
|
|
236
|
+
|
|
237
|
+
#### Scope
|
|
238
|
+
|
|
239
|
+
| Path pattern | Sensitive? | Applies to |
|
|
240
|
+
|--------------|-----------|-----------|
|
|
241
|
+
| `.claude/**` | Yes | Bash (`cp`, `mkdir`, `rm`), Write, Edit |
|
|
242
|
+
| `templates/.claude/**` | Yes | Bash, Write, Edit (confirmed v2.1.116+, 3x repeat v0.105.0 session) |
|
|
243
|
+
| `.claude/outputs/**` | No (artifact convention) | — |
|
|
244
|
+
|
|
245
|
+
#### Behavior
|
|
246
|
+
|
|
247
|
+
| Tool | Allow rule | Result |
|
|
248
|
+
|------|-----------|--------|
|
|
249
|
+
| `Bash(cp ...)` on `.claude/` | `Bash(*)` allowed | Prompt (sensitive-path overrides) |
|
|
250
|
+
| `Write(.claude/**)` | `Write(.claude/**)` allowed | Prompt (sensitive-path overrides) |
|
|
251
|
+
| `Edit(templates/.claude/**)` | `Edit(templates/.claude/**)` allowed | Prompt (sensitive-path overrides) |
|
|
252
|
+
|
|
253
|
+
#### Recommended practice
|
|
254
|
+
|
|
255
|
+
1. **Prefer `Write`/`Edit` over `Bash(cp)`/`Bash(mkdir)`** — even though both trigger prompts, `Write`/`Edit` provide better auditability and avoid shell injection risk
|
|
256
|
+
2. **Add allow rules defensively** — `Write(.claude/**)`, `Edit(.claude/**)`, `Write(templates/.claude/**)`, `Edit(templates/.claude/**)` in `.claude/settings.local.json`. Rules may not bypass sensitive-path check but document intent and aid future CC behavior changes
|
|
257
|
+
3. **Accept interactive prompts as a release-pipeline constraint** — `templates/.claude/` sync during release automation requires human approval; plan release windows accordingly
|
|
258
|
+
4. **This is CC design behavior, not a bug** — sensitive-path check is a defense-in-depth layer. File upstream as a documentation request (not bug report) if behavior is unclear
|
|
259
|
+
|
|
260
|
+
#### Cross-references
|
|
261
|
+
|
|
262
|
+
- `feedback_sensitive_path.md` — session memory with Bash + Write scope (#960, #961, #981)
|
|
263
|
+
- `feedback_templates_claude_glob.md` — `.claude/**` glob does not cover `templates/.claude/**`, separate allow rules required
|
|
236
264
|
|
|
237
265
|
### Artifact Channel Protocol
|
|
238
266
|
|
package/templates/manifest.json
CHANGED