* chore(deps): update yarn dependencies
Run yarn to update lockfile with latest compatible versions.
* chore(ci): Install context harness management commands and workflow
- **.claude/commands/plan.md**: Creates and manages PLAN.md to guide agent work in the branch. Assumed to be a temporary file.
- **.claude/commands/finish.md**: Cleans up temporary planning file, generates a summary for a PR.
- **.github/workflows/cleanup-ephermal-docs.yml**: Safety net workflow to remove temporary files before the branch is merged into `master` (or `main`)
* Improve cleanup workflow resilience and fork compatibility (#6822)
* Initial plan
* fix(ci): improve cleanup workflow resilience and fork compatibility
- Switch from pull_request to pull_request_target for fork compatibility
- Use fetch-depth: 0 to get full history
- Add git pull --rebase before push to handle concurrent merges
- Soften startup hook reference to clarify it's configurable
Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
* fix(ci): add error handling and security documentation
- Add fallback to regular merge if rebase fails due to conflicts
- Document security considerations for pull_request_target usage
- Clarify why this workflow is safe for fork PRs
Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
* fix(ci): make merge strategy explicit in fallback
Use --no-rebase --no-edit flags to ensure merge doesn't prompt for editor
Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
* fix: preserve full plan details on PR instead of summary only
Update the /finish command and cleanup workflow to add complete PLAN.md
contents to the PR description or comments, rather than just a summary.
- /finish: reads full PLAN.md and appends it to PR description (in a
collapsible details block) or posts as PR comment if description is long
- cleanup workflow: posts full plan contents as PR comment before removing
ephemeral files, adds pull-requests:write permission for commenting
https://claude.ai/code/session_019Qfh7drSHEfryWP1DPCCiy
* fix: rename /plan to /task-plan to avoid shadowing built-in command
Claude Code has a built-in /plan command for entering plan mode.
Rename to /task-plan to avoid the conflict.
https://claude.ai/code/session_019Qfh7drSHEfryWP1DPCCiy
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>