chore(gbrain): bump migration to v1.35.0.0 after main merge

main shipped v1.34.0.0 (factory-export submodule) + v1.34.1.0 (update-check
hardening) while this branch was in flight. The migration file I named
v1.34.0.0.sh now belongs at v1.35.0.0 — the next minor on top of main,
matching the scale of split-engine work (new lib + orchestrator skip +
template overhaul + transcripts routing).

Renames the migration script and its test file; updates all internal
version references in both files. Behavior unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-05-13 14:20:27 -07:00
parent 6f4ffe0299
commit e1b2b7fae9
2 changed files with 9 additions and 9 deletions
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Migration: v1.34.0.0 — split-engine gbrain (remote MCP brain + optional
# Migration: v1.35.0.0 — split-engine gbrain (remote MCP brain + optional
# local PGLite for code search per worktree).
#
# Per plan D5: prints a ONE-TIME discoverability notice for existing
@@ -17,20 +17,20 @@
# When silent: anything else (Path 1/2/3 users, anyone already on PGLite,
# anyone who opted out, anyone without remote-http MCP).
#
# Idempotency: writes a touchfile at ~/.gstack/.migrations/v1.34.0.0.done
# Idempotency: writes a touchfile at ~/.gstack/.migrations/v1.35.0.0.done
# on completion. Re-running this script is silent if the touchfile exists,
# OR if local_code_index_offered=true.
set -euo pipefail
if [ -z "${HOME:-}" ]; then
echo " [v1.34.0.0] HOME is unset — skipping migration." >&2
echo " [v1.35.0.0] HOME is unset — skipping migration." >&2
exit 0
fi
GSTACK_HOME="${GSTACK_HOME:-$HOME/.gstack}"
MIGRATIONS_DIR="$GSTACK_HOME/.migrations"
DONE_TOUCH="$MIGRATIONS_DIR/v1.34.0.0.done"
DONE_TOUCH="$MIGRATIONS_DIR/v1.35.0.0.done"
CONFIG_BIN="$HOME/.claude/skills/gstack/bin/gstack-config"
CLAUDE_JSON="$HOME/.claude.json"
GBRAIN_CONFIG="$HOME/.gbrain/config.json"
@@ -73,7 +73,7 @@ if is_remote_http_mcp && is_local_engine_missing; then
cat <<'NOTICE'
┌──────────────────────────────────────────────────────────────────┐
│ gstack v1.34.0.0 — split-engine gbrain │
│ gstack v1.35.0.0 — split-engine gbrain │
│ │
│ Symbol-aware code search is now available on this machine. │
│ Your remote brain at gbrain MCP keeps working as today; you can │
@@ -1,5 +1,5 @@
/**
* Unit tests for gstack-upgrade/migrations/v1.34.0.0.sh split-engine notice.
* Unit tests for gstack-upgrade/migrations/v1.35.0.0.sh split-engine notice.
*
* Per plan D5: print a one-time discoverability notice for existing Path 4
* (remote-http MCP) users who don't yet have a local engine, so they
@@ -31,7 +31,7 @@ const MIGRATION = join(
"..",
"gstack-upgrade",
"migrations",
"v1.34.0.0.sh",
"v1.35.0.0.sh",
);
interface MigEnv {
@@ -100,7 +100,7 @@ exit 0
tmp,
home,
gstackHome,
doneTouch: join(gstackHome, ".migrations", "v1.34.0.0.done"),
doneTouch: join(gstackHome, ".migrations", "v1.35.0.0.done"),
claudeJson,
gbrainConfig,
configBin,
@@ -127,7 +127,7 @@ function runMigration(env: MigEnv): { stdout: string; stderr: string; exitCode:
};
}
describe("gstack-upgrade/migrations/v1.34.0.0.sh", () => {
describe("gstack-upgrade/migrations/v1.35.0.0.sh", () => {
it("STATE MATCH: remote-http MCP + no local config → notice printed, touchfile written", () => {
const env = makeEnv({ remoteHttpMcp: true, hasLocalConfig: false });
try {