Bring VERSION into scope where the file uses it

3ff06dedcc59 · AtlantisPleb · · parent f54ff659b945

Bring VERSION into scope where the file uses it

`export { VERSION } from "./version.js"` re-exports a name without binding it
locally, so the two bare uses of `VERSION` in this file did not resolve and
`main` stopped typechecking. Importing it and re-exporting separately does
both jobs, and the alias that worked around the first half is no longer
needed.

The re-export landed while those two call sites were on a branch, so neither
change was wrong on its own base and the break only existed once both were on
`main`. A gate that ran on the merged state rather than on each branch would
have caught it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTmy4SEXrHXouw5sZbs3f4
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified packages/openagents-cli/src/cli.ts

Diff

1 file changed, +7 -3

packages/openagents-cli/src/cli.ts modified +7 -3

@@ -57,8 +57,12 @@ import { findToken, resolveApiEndpoint, resolveApiSession } from "./session.js";

57 57
import { TerminalSession } from "./terminal-session.js";
58 58
59 59
// The version lives in `package.json`; see `version.ts`.
60
export { VERSION } from "./version.js";
61
import { VERSION as CLI_VERSION } from "./version.js";
60
import { VERSION } from "./version.js";
61
62
// Re-exported because `main.ts` reads it from here, and imported above because
63
// this module uses it too. A bare `export … from` would do only the first, and
64
// every use in this file would be an unbound name.
65
export { VERSION };
62 66
63 67
const profileFlag = Flag.choice("profile", ["production", "staging", "local"]).pipe(
64 68
  Flag.withSchema(Profile),

@@ -1696,4 +1700,4 @@ export const openagentsCommand = rootCommand.pipe(

1696 1700
  ]),
1697 1701
);
1698 1702
1699
export const runCliWith = Command.runWith(openagentsCommand, { version: CLI_VERSION });
1703
export const runCliWith = Command.runWith(openagentsCommand, { version: VERSION });

This page updates live while a promote is in flight · changelog