mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-22 17:49:57 +02:00
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:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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).
|
# local PGLite for code search per worktree).
|
||||||
#
|
#
|
||||||
# Per plan D5: prints a ONE-TIME discoverability notice for existing
|
# 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,
|
# When silent: anything else (Path 1/2/3 users, anyone already on PGLite,
|
||||||
# anyone who opted out, anyone without remote-http MCP).
|
# 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,
|
# on completion. Re-running this script is silent if the touchfile exists,
|
||||||
# OR if local_code_index_offered=true.
|
# OR if local_code_index_offered=true.
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ -z "${HOME:-}" ]; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GSTACK_HOME="${GSTACK_HOME:-$HOME/.gstack}"
|
GSTACK_HOME="${GSTACK_HOME:-$HOME/.gstack}"
|
||||||
MIGRATIONS_DIR="$GSTACK_HOME/.migrations"
|
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"
|
CONFIG_BIN="$HOME/.claude/skills/gstack/bin/gstack-config"
|
||||||
CLAUDE_JSON="$HOME/.claude.json"
|
CLAUDE_JSON="$HOME/.claude.json"
|
||||||
GBRAIN_CONFIG="$HOME/.gbrain/config.json"
|
GBRAIN_CONFIG="$HOME/.gbrain/config.json"
|
||||||
@@ -73,7 +73,7 @@ if is_remote_http_mcp && is_local_engine_missing; then
|
|||||||
cat <<'NOTICE'
|
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. │
|
│ Symbol-aware code search is now available on this machine. │
|
||||||
│ Your remote brain at gbrain MCP keeps working as today; you can │
|
│ Your remote brain at gbrain MCP keeps working as today; you can │
|
||||||
+4
-4
@@ -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
|
* 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
|
* (remote-http MCP) users who don't yet have a local engine, so they
|
||||||
@@ -31,7 +31,7 @@ const MIGRATION = join(
|
|||||||
"..",
|
"..",
|
||||||
"gstack-upgrade",
|
"gstack-upgrade",
|
||||||
"migrations",
|
"migrations",
|
||||||
"v1.34.0.0.sh",
|
"v1.35.0.0.sh",
|
||||||
);
|
);
|
||||||
|
|
||||||
interface MigEnv {
|
interface MigEnv {
|
||||||
@@ -100,7 +100,7 @@ exit 0
|
|||||||
tmp,
|
tmp,
|
||||||
home,
|
home,
|
||||||
gstackHome,
|
gstackHome,
|
||||||
doneTouch: join(gstackHome, ".migrations", "v1.34.0.0.done"),
|
doneTouch: join(gstackHome, ".migrations", "v1.35.0.0.done"),
|
||||||
claudeJson,
|
claudeJson,
|
||||||
gbrainConfig,
|
gbrainConfig,
|
||||||
configBin,
|
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", () => {
|
it("STATE MATCH: remote-http MCP + no local config → notice printed, touchfile written", () => {
|
||||||
const env = makeEnv({ remoteHttpMcp: true, hasLocalConfig: false });
|
const env = makeEnv({ remoteHttpMcp: true, hasLocalConfig: false });
|
||||||
try {
|
try {
|
||||||
Reference in New Issue
Block a user