Skip to content

feat: pt project add --virtual for board-only projects#123

Merged
eriksjaastad merged 1 commit into
mainfrom
feat/pt-project-add-virtual
May 5, 2026
Merged

feat: pt project add --virtual for board-only projects#123
eriksjaastad merged 1 commit into
mainfrom
feat/pt-project-add-virtual

Conversation

@manager-identity
Copy link
Copy Markdown
Contributor

Summary

  • Adds pt project add <id> [--virtual | --path PATH] for manually registering projects without a filesystem scan.
  • --virtual creates a board-only record with a virtual://<id> path and project_type=virtual; --path registers an existing directory.
  • Validates slug, requires exactly one mode, refuses duplicates.

Why

MacBook needs to register board-only projects on the shared Kanban without requiring a real directory under PROJECTS_ROOT.

Test plan

  • uv run pytest tests/test_project_cli.py — 3 passed
  • On MacBook: pt project add openclaw --name OpenClaw --virtual and confirm it appears on the board

🤖 Generated with Claude Code

Adds a manual project-creation command that skips the filesystem scan,
supporting either an existing directory (--path) or a board-only
virtual:// record (--virtual). Needed so the MacBook can register
board-only projects on the shared Kanban without requiring a real
directory under PROJECTS_ROOT.

Includes CLI tests covering the virtual path, slug validation, missing
mode/path errors, and duplicate-project refusal.
@eriksjaastad eriksjaastad merged commit e05f771 into main May 5, 2026
1 check failed
@eriksjaastad eriksjaastad deleted the feat/pt-project-add-virtual branch May 5, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant