Skip to content

Commit 2ac7d22

Browse files
committed
chore(storybloq): finish rebrand to STORYBLOQ_VERSION env var
Build-time tsup injection and the five read sites all rename CLAUDESTORY_VERSION to STORYBLOQ_VERSION. No external setters exist for this var (it's a build-time inject only), so no fallback needed. CLAUDESTORY_LIVENESS_DEBUG is kept as a deprecated fallback alongside the new STORYBLOQ_LIVENESS_DEBUG since users may set the debug flag externally in shell rc files. Tail end of the claudestory -> storybloq rename. No behavior change.
1 parent 51155df commit 2ac7d22

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/autonomous/liveness.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if (!SIDECAR_SCRIPT.includes(SIDECAR_SENTINEL)) {
5151
}
5252

5353
function livenessLog(tag: string, detail: Record<string, unknown>): void {
54-
if (process.env.CLAUDESTORY_LIVENESS_DEBUG !== "1") return;
54+
const debug = process.env.STORYBLOQ_LIVENESS_DEBUG ?? process.env.CLAUDESTORY_LIVENESS_DEBUG;
55+
if (debug !== "1") return;
5556
try { process.stderr.write("liveness:" + tag + " " + JSON.stringify(detail) + "\n"); } catch { /* best-effort */ }
5657
}
5758

src/autonomous/version-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ export function getInstalledVersion(): string | null {
5656
* Get the running server version from the build-time constant.
5757
*/
5858
export function getRunningVersion(): string {
59-
return process.env.CLAUDESTORY_VERSION ?? "0.0.0-dev";
59+
return process.env.STORYBLOQ_VERSION ?? "0.0.0-dev";
6060
}

src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function runCli(): Promise<void> {
6363
} = await import("./register.js");
6464

6565
// Version injected at build time by tsup define
66-
const version = process.env.CLAUDESTORY_VERSION ?? "0.0.0-dev";
66+
const version = process.env.STORYBLOQ_VERSION ?? "0.0.0-dev";
6767

6868
// ISS-570: silent skill-dir refresh if the CLI version changed + schedule
6969
// a background update check so the next invocation's banner is fresh.

src/mcp/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const LEGACY_ENV_VAR = "CLAUDESTORY_PROJECT_ROOT";
2828
const CONFIG_PATH = ".story/config.json";
2929

3030
// Version injected at build time by tsup define
31-
const version = process.env.CLAUDESTORY_VERSION ?? "0.0.0-dev";
31+
const version = process.env.STORYBLOQ_VERSION ?? "0.0.0-dev";
3232

3333
/**
3434
* Try to discover project root. Returns the root path or null.

src/mcp/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export function registerAllTools(server: McpServer, pinnedRoot: string): void {
246246
// call has fresh data. Dev builds skip the check.
247247
try {
248248
const { readUpdateCacheSync, refreshUpdateCacheInBackground } = await import("../core/update-check.js");
249-
const running = process.env.CLAUDESTORY_VERSION ?? "0.0.0-dev";
249+
const running = process.env.STORYBLOQ_VERSION ?? "0.0.0-dev";
250250
const info = readUpdateCacheSync(running);
251251
refreshUpdateCacheInBackground();
252252
if (info?.updateAvailable && result.content[0]?.type === "text") {

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export default defineConfig({
1313
splitting: false,
1414
shims: true,
1515
define: {
16-
"process.env.CLAUDESTORY_VERSION": JSON.stringify(pkg.version),
16+
"process.env.STORYBLOQ_VERSION": JSON.stringify(pkg.version),
1717
},
1818
});

0 commit comments

Comments
 (0)