Beztack
Tooling

Template Sync

Roadmap for template updates, and the experimental prototype in the CLI

Roadmap: not available yet

Template Sync does not exist yet. Today a project created with pnpm create beztack is a one-time copy of the template, and there is no supported way to receive later template changes.

What it will be

Template Sync will let a project created from Beztack receive template updates as reviewed pull requests, so you do not diff the whole repository by hand. The design is recorded in two architecture decisions in the repository:

  • ADR 0005: before building an engine, compare building one against adopting tools such as Copier, Cruft/Cookiecutter, Git subtree and Copybara.
  • ADR 0006: updates arrive through branches and pull requests, track tagged template revisions, and keep your product code under a sync policy.

Experimental prototype in the CLI

The beztack CLI contains an earlier prototype, beztack template. It is not the design above: it has no automated tests, it compares your working tree against the main branch of the Beztack repository instead of tagged revisions, and apply writes directly into your working tree instead of opening a pull request. Do not use it on a project you cannot restore from Git.

pnpm dlx beztack template status
pnpm dlx beztack template plan --to <version>
pnpm dlx beztack template apply --dry-run
pnpm dlx beztack template rollback --snapshot <id>
pnpm dlx beztack template inspect --port 3434

Subcommands:

  • status: summarize current template state and pending changes
  • plan: generate an update plan and report
  • apply: apply planned changes (or dry run)
  • rollback: restore files from a snapshot
  • inspect: open a local diff viewer for plan changes

Shared flags: --refresh (refresh the local template cache), --offline (use the cache only), --host and --port (for template inspect). --refresh and --offline are mutually exclusive.

The prototype writes these files in your workspace:

  • beztack.template.json: manifest with current version and migration history
  • beztack-sync-report.md: generated plan/apply report
  • .beztack/origin.json: file hashes recorded when the project was created
  • .beztack/snapshots/*: rollback snapshots taken before apply
  • .beztack/inspect/*: local inspect viewer files
  • .beztack/template-cache/*: cached copy of the template

apply takes a snapshot first and restores it if applying fails. Paths marked custom-owned are reported as conflicts and need a manual review.