@erclx/canon 4.20.0 → 4.20.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.
|
@@ -7,4 +7,4 @@ description: Write temporary files to the scratch folder structure
|
|
|
7
7
|
## Temporary files
|
|
8
8
|
|
|
9
9
|
- Write temporary files to `.canon/tmp/<slug>/<file>.md` in the project root, a nested `<slug>/` folder with a kebab-slug tied to the topic, not a flat `<slug>-<file>.md`. The scratch-guard hook enforces the location.
|
|
10
|
-
- Write to `.claude/.tmp/<slug>/` instead in a project that carries no `.canon/` root, which is one the record move has not reached. The hook accepts either, and `canon migrate records` is what moves a project from
|
|
10
|
+
- Write to `.claude/.tmp/<slug>/` instead in a project that carries no `.canon/` root, which is one the record move has not reached. The hook accepts either, but the ignore file is the source: `.gitignore` and its manifest counterpart are what keep the fallback spelling out of `git status`, and the hook and this rule both defer to it. `canon migrate records` is what moves a project from this second spelling to the first. <!-- canon-keep-record-root -->
|
package/package.json
CHANGED
|
@@ -21,4 +21,4 @@ scaffold = ""
|
|
|
21
21
|
# array no longer tells it to ignore them, so the first sign is a memory file or
|
|
22
22
|
# a task board appearing in someone's commit.
|
|
23
23
|
[gitignore]
|
|
24
|
-
"# Claude" = [".canon/", ".claude/worktrees/"]
|
|
24
|
+
"# Claude" = [".canon/", ".claude/worktrees/", ".claude/.tmp/"] # canon-keep-record-root
|
|
@@ -62,9 +62,9 @@ A project installed before the diagram surface became a folder still holds `.cla
|
|
|
62
62
|
|
|
63
63
|
## Gitignore
|
|
64
64
|
|
|
65
|
-
- `# Claude`: `.canon/`, `.claude/worktrees/`
|
|
65
|
+
- `# Claude`: `.canon/`, `.claude/worktrees/`, `.claude/.tmp/` <!-- canon-keep-record-root -->
|
|
66
66
|
|
|
67
|
-
The first entry covers the whole record root, so a record folder added later needs no line here and no sync. The second is the carve-out, since
|
|
67
|
+
The first entry covers the whole record root, so a record folder added later needs no line here and no sync. The second is the carve-out the harness owns, since it creates a worktree under `.claude/` and requires its target to sit there. The third is the scratch rule's fallback spelling, carried for a project the record move has not reached and retired once none is left to reach.
|
|
68
68
|
|
|
69
69
|
## CLI
|
|
70
70
|
|
|
@@ -57,5 +57,5 @@ marker="$marker_dir/$key"
|
|
|
57
57
|
mkdir -p "$marker_dir"
|
|
58
58
|
: >"$marker"
|
|
59
59
|
|
|
60
|
-
msg='Temporary file write outside the project scratch folder. Write temp files to .
|
|
60
|
+
msg='Temporary file write outside the project scratch folder. Write temp files to .canon/tmp/<slug>/ in the project root, or .claude/.tmp/<slug>/ where the project carries no .canon/ root, not system temp. See the Scratch rule at .claude/rules/core/055-scratch.md.'
|
|
61
61
|
jq -nc --arg msg "$msg" '{hookSpecificOutput:{hookEventName:"PreToolUse",additionalContext:$msg}}'
|