Skip to content

T-V6JD-repoint-template-sync-and-scripts

Status: planning/draft · Impact: low · Complexity: small

Fix pumice’s helper scripts that assume a repo-root working directory so they work from apps/pumice: the upstream template-sync (bring-up-to-date / template-check), the dynamic dev-port allocator, and the drift/dep scripts. Either repoint them or retire the sync deliberately.

Pumice’s scripts/ and mise.toml assume the pumice repo root is the CWD. mise.toml computes TAURI_DEV_PORT/STORYBOOK_PORT/MCP_PORT/HTTP_PORT via exec() of scripts/dev-port.sh, and bring_up_to_date.sh / sync-template-check sync against an upstream template repo.

LocationAssumption today
apps/pumice/scripts/bring_up_to_date.shRuns from pumice repo root; root-relative paths
apps/pumice/scripts/sync-template-checkCompares against upstream template at repo root
apps/pumice/mise.toml ([env])exec() of scripts/dev-port.sh; relative paths
apps/pumice/scripts/dev-port.shPer-worktree port block

Make the scripts CWD-correct under apps/pumice (resolve paths relative to the script/app root, not the repo root), and decide the fate of the template-sync workflow now that pumice is no longer its own repo root.

  1. Audit CWD assumptions. Enumerate scripts that resolve paths relative to the repo root and would break at apps/pumice.
  2. Repoint paths. Anchor script paths to the app root (e.g. via justfile_directory() / script-relative resolution) so just recipes and the mise.toml exec() env work from apps/pumice.
  3. Decide template-sync. Pumice’s upstream-template sync assumed a standalone repo; under the monorepo, either keep it scoped to apps/pumice or retire it. Record the decision.
  4. Verify dev ports. Confirm the dynamic port env resolves and dev/storybook still get non-colliding ports under the monorepo.
LocationKindChange
apps/pumice/scripts/*editAnchor paths to the app root
apps/pumice/mise.tomleditFix exec() env CWD assumptions
apps/pumice/justfileeditEnsure recipes resolve from the app root
  • AC-1: just recipes and the mise.toml port env run correctly from apps/pumice.
  • AC-2: The template-sync scripts either run scoped to apps/pumice or are retired with the decision recorded.
  • AC-3: No script silently reads/writes outside apps/pumice.
  • CI wiringT-T2HB.
  • Bun migration of scripts’ package-manager callsT-M7QX (this task handles CWD/pathing, not the PM swap).
  • T-K3PN (hard): the vendored scripts are what this repoints.

T-K3PN


← Back to Tasks