Skip to content

chore(dev): add scripts/dev/v04/dev-preflight.sh - #120

Merged
couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/chore/dev-preflight-script
May 8, 2026
Merged

couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/chore/dev-preflight-script

Conversation

@couragehong

Copy link
Copy Markdown
Contributor

Idempotent pre-flight for v0.4 dev verificatio

  • rebuilds bin/rune-mcp from the current branch,
  • scrubs ~/.rune,
  • clears ~/.claude.json mcpServers,
  • removes legacy plugin cache,
  • and probes vault + runed daemons.

Used in the dev workflow that launches Claude Code with --plugin-dir against this repo (the production install path is still unfinished — Task #30).

REPO is auto-resolved relative to the script location (3 levels up from scripts/dev/v04/), so the script can be invoked from anywhere.

Idempotent pre-flight for v0.4 dev verification: rebuilds bin/rune-mcp
from the current branch, scrubs ~/.rune, clears ~/.claude.json
mcpServers, removes legacy plugin cache, and probes vault + runed
daemons. Used in the dev workflow that launches Claude Code with
--plugin-dir against this repo (the production install path is still
unfinished — Task #30).

REPO is auto-resolved relative to the script location (3 levels up
from scripts/dev/v04/), so the script can be invoked from anywhere.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@couragehong couragehong self-assigned this May 7, 2026
@couragehong
couragehong merged commit 796958d into feat/go-migration May 8, 2026
1 check passed
@couragehong
couragehong deleted the couragehong/chore/dev-preflight-script branch May 8, 2026 00:15
heeyeon01 pushed a commit to heeyeon01/rune that referenced this pull request Jul 7, 2026
The path-fix from PR CryptoLabInc#120 review never made it into the merged commit
(staging order issue) — REPO landed pointing at scripts/dev/v04/
itself, so step 1's `cd "$REPO"` followed by `go build ./cmd/rune-mcp`
tries to stat scripts/dev/v04/cmd/rune-mcp, which doesn't exist, and
the script aborts with a build failure.

Going up three directories from scripts/dev/v04/ resolves to the repo
root regardless of where the user invokes the script from, restoring
the intended idempotent pre-flight behavior.

Verified locally: every section (build / plugin source / vault /
runed / ~/.rune scrub / mcpServers / plugin cache) reports green and
the script exits 0.

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