This directory contains utility scripts for Scopecraft operations.
Migrates tasks from local .tasks/ directory to the new centralized storage location at ~/.scopecraft/projects/{encoded}/tasks/.
# Preview what will be migrated (recommended first step)
bun scripts/migrate-to-centralized-storage.ts --dry-run
# Perform the actual migration
bun scripts/migrate-to-centralized-storage.ts
# Force overwrite any conflicts without prompting
bun scripts/migrate-to-centralized-storage.ts --force- Migrates tasks from
backlog/,current/, andarchive/workflows - Preserves directory structure including parent task folders
- Automatic MD5 comparison - Identical files are skipped without prompting
- Detects conflicts and shows task metadata (title, status, type) for resolution
- Interactive conflict resolution with options to:
- Keep local version (overwrite central)
- Keep central version (skip local)
- Skip the file entirely
- Works correctly from worktrees (detects main repository)
- Provides migration summary with counts including identical files
- All
.task.mdfiles - Parent task
_overview.mdfiles - Preserves the complete directory structure
- Templates (
.tasks/.templates/) - Modes (
.tasks/.modes/) - Session data (
.sessions/)
These require special handling due to potential sharing models (user-level vs project-level).
Once migration is complete and verified, you can safely remove the local .tasks/ directory:
rm -rf .tasks/