wayfind 2.0.78 → 2.0.79

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.
@@ -2908,12 +2908,21 @@ function ensureStateWritePermissions() {
2908
2908
  if (!HOME) return [];
2909
2909
  const settingsPath = path.join(HOME, '.claude', 'settings.json');
2910
2910
 
2911
+ // Each path is listed twice: once as absolute (for tools that resolve paths)
2912
+ // and once as the literal form Claude Code may pass (tilde or relative).
2913
+ // Permission matching is against the literal file_path argument, not the
2914
+ // resolved path, so both forms are needed.
2911
2915
  const required = [
2912
2916
  `Write(${HOME}/.claude/memory/**)`,
2917
+ `Write(~/.claude/memory/**)`,
2913
2918
  `Write(${HOME}/.claude/global-state.md)`,
2919
+ `Write(~/.claude/global-state.md)`,
2914
2920
  `Write(${HOME}/.claude/state.md)`,
2921
+ `Write(~/.claude/state.md)`,
2915
2922
  `Write(${HOME}/**/.claude/team-state.md)`,
2923
+ `Write(.claude/team-state.md)`,
2916
2924
  `Write(${HOME}/**/.claude/personal-state.md)`,
2925
+ `Write(.claude/personal-state.md)`,
2917
2926
  ];
2918
2927
 
2919
2928
  let settings = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "description": "Team decision trail for AI-assisted development. The connective tissue between product, engineering, and strategy.",
5
5
  "bin": {
6
6
  "wayfind": "./bin/team-context.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "description": "Team decision trail for AI-assisted development. Session memory, decision journals, and team digests.",
5
5
  "author": {
6
6
  "name": "Wayfind",
@@ -150,14 +150,21 @@ If `CLAUDE.md` doesn't exist, create a minimal one with the repo name as a headi
150
150
 
151
151
  Read `~/.claude/settings.json` (create it as `{}` if missing).
152
152
 
153
- Ensure the following entries are present in `permissions.allow`. Add any that are missing — do NOT remove existing entries:
153
+ Ensure the following entries are present in `permissions.allow`. Add any that are missing — do NOT remove existing entries.
154
+
155
+ Each path needs two forms: absolute (for tools that resolve paths before the permission check) and literal (tilde or relative, for tools that pass the path as-is). Both are required — Claude Code matches against the literal `file_path` argument, not the resolved path.
154
156
 
155
157
  ```
156
158
  Write(<HOME>/.claude/memory/**)
159
+ Write(~/.claude/memory/**)
157
160
  Write(<HOME>/.claude/global-state.md)
161
+ Write(~/.claude/global-state.md)
158
162
  Write(<HOME>/.claude/state.md)
163
+ Write(~/.claude/state.md)
159
164
  Write(<HOME>/**/.claude/team-state.md)
165
+ Write(.claude/team-state.md)
160
166
  Write(<HOME>/**/.claude/personal-state.md)
167
+ Write(.claude/personal-state.md)
161
168
  ```
162
169
 
163
170
  Where `<HOME>` is the user's actual home directory (e.g. `/home/greg` or `/Users/greg`).