diff --git a/.agents/skills/planning-with-files/SKILL.md b/.agents/skills/planning-with-files/SKILL.md index a5051b7..3117bd1 100644 --- a/.agents/skills/planning-with-files/SKILL.md +++ b/.agents/skills/planning-with-files/SKILL.md @@ -28,7 +28,7 @@ hooks: - type: command command: "SH=\"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\"; [ -f \"$SH\" ] || SH=$(ls \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\" 2>/dev/null | head -1); [ -n \"$SH\" ] && [ -f \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # Planning with Files diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 8353bfb..1097860 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "name": "planning-with-files", "source": "./", "description": "Persistent project planning files with lifecycle hooks that inject selected plan context. Automatic recovery uses project files only. Explicit catchup modes may read same-project local session records to emit aggregate counts or bounded nonce-framed excerpts. Optional gated mode can request continuation on capable hosts and never runs commands declared in Markdown. No network upload path. Installs across 60+ agents.", - "version": "3.20.3" + "version": "3.20.4" } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 09a7268..378fcbe 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "planning-with-files", - "version": "3.20.3", + "version": "3.20.4", "description": "Persistent project planning files with lifecycle hooks that inject selected plan context. Automatic recovery uses project files only. Explicit catchup modes may read same-project local session records to emit aggregate counts or bounded nonce-framed excerpts. Optional gated mode can request continuation on capable hosts and never runs commands declared in Markdown. No network upload path. Works across 60+ agents and includes Arabic, German, Spanish, Simplified Chinese, and Traditional Chinese.", "author": { "name": "OthmanAdi", diff --git a/.codebuddy/skills/planning-with-files/SKILL.md b/.codebuddy/skills/planning-with-files/SKILL.md index fa8a8b5..9afd0ae 100644 --- a/.codebuddy/skills/planning-with-files/SKILL.md +++ b/.codebuddy/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"${CODEBUDDY_PLUGIN_ROOT}/scripts/skill-hook.sh\" \"$HOME/.codebuddy/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 7b9a93a..f86032f 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "planning-with-files", - "version": "3.20.3", + "version": "3.20.4", "description": "Persistent project planning for Codex. Opt-in lifecycle hooks inject selected plan context; automatic recovery uses project files only. Explicit catchup modes may read same-project local session records to emit aggregate counts or bounded nonce-framed excerpts. Optional gated mode can request continuation on capable hosts and never runs Markdown-declared commands. No network upload path.", "author": { "name": "OthmanAdi", diff --git a/.codex/skills/planning-with-files/SKILL.md b/.codex/skills/planning-with-files/SKILL.md index b4e4dc3..59dcfb0 100644 --- a/.codex/skills/planning-with-files/SKILL.md +++ b/.codex/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.codex/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/.cursor/skills/planning-with-files/SKILL.md b/.cursor/skills/planning-with-files/SKILL.md index a0879c1..2b53bbb 100644 --- a/.cursor/skills/planning-with-files/SKILL.md +++ b/.cursor/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.cursor/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/.factory/skills/planning-with-files/SKILL.md b/.factory/skills/planning-with-files/SKILL.md index 3c6ac3b..d3e978e 100644 --- a/.factory/skills/planning-with-files/SKILL.md +++ b/.factory/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.factory/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # Planning with Files diff --git a/.hermes/skills/planning-with-files/SKILL.md b/.hermes/skills/planning-with-files/SKILL.md index fa2d3b8..a38d0ec 100644 --- a/.hermes/skills/planning-with-files/SKILL.md +++ b/.hermes/skills/planning-with-files/SKILL.md @@ -2,7 +2,7 @@ name: planning-with-files description: "Persistent file-based planning for multi-step AI-agent work. Keeps task_plan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and emits aggregate counts only; --replay may emit bounded nonce-framed excerpts. Optional gated mode can request continuation only when the host supports it and never runs commands declared in Markdown. The skill has no network upload path. Use for research or work needing 5+ tool calls." metadata: - version: "3.20.3" + version: "3.20.4" hermes: tags: [planning, long-running-tasks, context-engineering, workflow] --- diff --git a/.mastracode/skills/planning-with-files/SKILL.md b/.mastracode/skills/planning-with-files/SKILL.md index f4ba579..5fc72d4 100644 --- a/.mastracode/skills/planning-with-files/SKILL.md +++ b/.mastracode/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.mastracode/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/.opencode/skills/planning-with-files/SKILL.md b/.opencode/skills/planning-with-files/SKILL.md index 4052c1a..b8db0b3 100644 --- a/.opencode/skills/planning-with-files/SKILL.md +++ b/.opencode/skills/planning-with-files/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.config/opencode/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.opencode/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/.pi/skills/planning-with-files/package.json b/.pi/skills/planning-with-files/package.json index f6f464d..7f1acf7 100644 --- a/.pi/skills/planning-with-files/package.json +++ b/.pi/skills/planning-with-files/package.json @@ -1,6 +1,6 @@ { "name": "planning-with-files", - "version": "3.20.3", + "version": "3.20.4", "description": "Persistent project planning with selected context injection. Automatic recovery uses project files only; explicit catchup modes read same-project local session records for aggregate counts or bounded replay. The host-aware gate never runs Markdown-declared commands. No network upload path. Ships the skill plus a Pi Coding Agent extension.", "keywords": [ "pi-package", diff --git a/CHANGELOG.md b/CHANGELOG.md index 5023cfc..6031b46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [3.20.4] - 2026-09-19 + +### Fixed +- PowerShell route on OneDrive: `resolve-plan-dir.ps1`, the Cursor hook `resolve-plan-context.ps1` and `set-active-plan.ps1` refused an `.active_plan` pointer that carried the `ReparsePoint` file attribute. OneDrive Files On-Demand sets that attribute on every synced file, so in a project under OneDrive the Cursor hooks stopped with the unsafe-pointer notice instead of injecting the pointed plan, the resolver printed nothing for `attest-plan.ps1` and `check-complete.ps1`, and `set-active-plan.ps1` refused to write, while every other route read the pointer normally. The three checks now refuse a container or a `LinkType` of `SymbolicLink` or `Junction`, the predicate v3.20.3 gave the directory checks and the `[ -L ]` of the shell scripts. `attest-plan.ps1` had the same class of check in its native helper and refused to hash, show or clear any reparse-point file, so attestation failed in every project under OneDrive while `init-session.ps1` still reported the plan as attested; it now refuses only name-surrogate reparse points (symlinks, junctions and unknown surrogate tags), which is the set Windows path parsing follows (#275). +- `tests/test_session_catchup_copies_exact_basename.py` walked the whole checkout and loaded any untracked `session-catchup.py`, so a stale clone kept under the gitignored `.planning/` on a maintainer machine failed the two tests with 120 subtests while CI stayed green. The copies now come from `git ls-files`; the filtered walk is kept only for a checkout without git (#274). + ## [3.20.3] - 2026-09-19 ### Fixed diff --git a/CITATION.cff b/CITATION.cff index c16ca2e..f048183 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -7,7 +7,7 @@ authors: - family-names: Adi given-names: Ahmad Othman Ammar alias: OthmanAdi -version: "3.20.3" +version: "3.20.4" date-released: "2026-09-19" license: MIT url: "https://github.com/OthmanAdi/planning-with-files" diff --git a/README.md b/README.md index ce32238..c0efce1 100644 --- a/README.md +++ b/README.md @@ -347,6 +347,7 @@ One hook fire measures 289ms wall-clock since the v3.6.0 optimization, down from | Version | Highlights | |---------|------------| +| **v3.20.4** | PowerShell route on OneDrive: an `.active_plan` pointer carrying the OneDrive Files On-Demand reparse attribute no longer counts as unsafe, so the Cursor hooks, the resolver and `set-active-plan.ps1` work in projects under OneDrive (#275). The session-catchup copy guard checks tracked copies only (#274). | | **v3.20.3** | A symlinked or junctioned directory under `.planning/` is never a plan on any route: the shell counters skip it (PR #271 by @ShaunLinTW, #270), and the selection paths of the shell family plus the Codex, OpenCode and DSH counters refuse it too, so one real plan next to a linked one no longer becomes an mtime guess. | | **v3.20.2** | Hermes plugin: Hermes 0.21.3 re-homes `TERMINAL_CWD` to the home directory on the first CLI turn, so the plan in the launch directory was skipped silently. The first turn now says why nothing was injected and names the `PWF_PLAN_ROOT` pin, `/pwf-status` and `/pwf` print the same diagnostic, and the slash commands honor the pin (#272, reported by @ericshunhinglee-cloud). | | **v3.20.1** | Fixes four maintainer-filed issues from the v3.19.0 and v3.20.0 cycles: newline-safe shell slugs (#257, PR #266 by @TayfurYldz), attestation bound to the current project when `PWF_PLAN_ROOT` is inherited (#261, PR #265 by @TayfurYldz), malformed OpenCode part rows skipped by session catchup (#258, PR #263 by @ShaunLinTW), and the several-plans rule in the Hermes plugin (#264, PR #267 by @kuei51307-hub). | diff --git a/skills/i18n/planning-with-files-ar/SKILL.md b/skills/i18n/planning-with-files-ar/SKILL.md index b93d300..0ba7e61 100644 --- a/skills/i18n/planning-with-files-ar/SKILL.md +++ b/skills/i18n/planning-with-files-ar/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files-ar/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # نظام تخطيط الملفات diff --git a/skills/i18n/planning-with-files-de/SKILL.md b/skills/i18n/planning-with-files-de/SKILL.md index 96df38f..552b23d 100644 --- a/skills/i18n/planning-with-files-de/SKILL.md +++ b/skills/i18n/planning-with-files-de/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files-de/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # Dateiplanungssystem diff --git a/skills/i18n/planning-with-files-es/SKILL.md b/skills/i18n/planning-with-files-es/SKILL.md index da8836f..3f8cf4a 100644 --- a/skills/i18n/planning-with-files-es/SKILL.md +++ b/skills/i18n/planning-with-files-es/SKILL.md @@ -36,7 +36,7 @@ hooks: - type: command command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files-es/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # Sistema de Planificación con Archivos diff --git a/skills/i18n/planning-with-files-zh/SKILL.md b/skills/i18n/planning-with-files-zh/SKILL.md index 4762e0c..2f61b8b 100644 --- a/skills/i18n/planning-with-files-zh/SKILL.md +++ b/skills/i18n/planning-with-files-zh/SKILL.md @@ -37,7 +37,7 @@ hooks: command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files-zh/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/skills/i18n/planning-with-files-zht/SKILL.md b/skills/i18n/planning-with-files-zht/SKILL.md index 52201ba..030f07c 100644 --- a/skills/i18n/planning-with-files-zht/SKILL.md +++ b/skills/i18n/planning-with-files-zht/SKILL.md @@ -37,7 +37,7 @@ hooks: command: "SH=\"\"; for c in \"${PWF_SCRIPT_DIR}/skill-hook.sh\" \"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files-zht/scripts/skill-hook.sh\" \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\"; do [ -f \"$c\" ] && { SH=\"$c\"; break; }; done; [ -n \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- diff --git a/skills/planning-with-files/SKILL.md b/skills/planning-with-files/SKILL.md index 0d3100b..ff2e820 100644 --- a/skills/planning-with-files/SKILL.md +++ b/skills/planning-with-files/SKILL.md @@ -28,7 +28,7 @@ hooks: - type: command command: "[ -n \"${CLAUDE_PLUGIN_ROOT:-}\" ] && exit 0; SH=\"${CLAUDE_SKILL_DIR}/scripts/skill-hook.sh\"; [ -f \"$SH\" ] || SH=$(ls \"$HOME/.claude/skills/planning-with-files/scripts/skill-hook.sh\" \"$HOME/.claude/plugins/marketplaces/planning-with-files/scripts/skill-hook.sh\" 2>/dev/null | head -1); [ -n \"$SH\" ] && [ -f \"$SH\" ] && sh \"$SH\" --event=precompact; exit 0" metadata: - version: "3.20.3" + version: "3.20.4" --- # Planning with Files