Skip to content

CS-10627: Reimplement boxel file touch command#4552

Draft
FadhlanR wants to merge 2 commits intomainfrom
cs-10627-reimplement-boxel-file-touch-command
Draft

CS-10627: Reimplement boxel file touch command#4552
FadhlanR wants to merge 2 commits intomainfrom
cs-10627-reimplement-boxel-file-touch-command

Conversation

@FadhlanR
Copy link
Copy Markdown
Contributor

Status

Draft — plan doc only, implementation to follow. Opening early per CS-10900 workflow.

Summary

  • Port boxel touch from the standalone cardstack/boxel-cli into packages/boxel-cli/src/commands/file/touch.ts
  • Namespaced under file group (per-file op, same shape as read/write/delete/list/lint) — matches the existing command-structure decision
  • Options: --all (touch all .json and .gts), --dry-run
  • Without it the .gts edit→push→re-index loop is broken — users see stale renders after a definition update

Linear

CS-10627 — blocks Claude Code plugin in CS-10900

Plan doc

See docs/cs-10627-boxel-file-touch-plan.md in this PR.

Test plan

  • pnpm --filter @cardstack/boxel-cli test:unit passes
  • pnpm --filter @cardstack/boxel-cli test:integration passes (real realm endpoints)
  • pnpm --filter @cardstack/boxel-cli build succeeds
  • boxel file touch --help documents --all and --dry-run
  • Manual: edit a .gts, push, then boxel file touch <realm-url> SomeCard/instance.json and confirm re-render

🤖 Generated with Claude Code

FadhlanR and others added 2 commits April 28, 2026 14:09
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Ports the legacy `boxel touch` into the monorepo's `boxel-cli` under the
`file` subcommand group. Touch forces realm re-indexing of one or more
instances by GET-then-POST with a semantically-neutral mutation (a
`_touched` timestamp in JSON `meta`, or a toggle of `// touched for
re-index` in `.gts`). Supports `--all` (enumerate via `_mtimes`) and
`--dry-run`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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