Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/closura-arc-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ jobs:
shell: bash
run: vp run --filter t3 build:bundle

# The fleet rollout ships the single executable, not the bundle. Its import guard
# rejects a file-backed package loaded with import(), so a head that passes the
# bundle build alone still fails the fleet build and never deploys.
- name: Build native T3 single executable
shell: bash
run: node apps/server/scripts/cli.ts build-exe

- name: Verify compiled server output
shell: bash
run: |
Expand Down
8 changes: 7 additions & 1 deletion apps/server/src/provider/antigravityUsageLimits.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as NodeModule from "node:module";

import type { AntigravitySettings, ServerProviderUsageWindow } from "@t3tools/contracts";
import * as HostProcess from "@t3tools/shared/HostProcess";
import * as Clock from "effect/Clock";
Expand Down Expand Up @@ -195,13 +197,17 @@ export function parseAntigravityCliCredential(
};
}

// A single-executable server cannot import() a file-backed package; createRequire resolves it beside the
// executable, as the other native externals do.
const requireForKeyring = NodeModule.createRequire(import.meta.url);

// The stored value is the OAuth token. Keep it out of span attributes.
const readDefaultStoredSecret = Effect.fnUntraced(function* (
spawner: ChildProcessSpawner.ChildProcessSpawner["Service"],
) {
const fromModule = yield* Effect.tryPromise({
try: async () => {
const keyring = (await import("@napi-rs/keyring")) as {
const keyring = requireForKeyring("@napi-rs/keyring") as {
readonly AsyncEntry?: new (
service: string,
account: string,
Expand Down
Loading