Skip to content

Commit 00c99ca

Browse files
authored
Rename the Codex runtime build and Web storage keys (#464)
1 parent 0782008 commit 00c99ca

20 files changed

Lines changed: 40 additions & 57 deletions

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ jobs:
124124
CORE_DISTRIBUTION_OFFLINE: ${{ (github.event_name == 'push' || inputs.offline) && '1' || '0' }}
125125
run: |
126126
inputs="$HOME/.oac/build/release-inputs/inputs.json"
127-
AGENTS_RUNTIME_CODEX_PACKAGE="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["codex"])' "$inputs")"
127+
CODEX_CLI_DIR="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["codex"])' "$inputs")"
128128
MCODE_HARNESS_BUILD_DIR="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["mcode"])' "$inputs")"
129-
export AGENTS_RUNTIME_CODEX_PACKAGE MCODE_HARNESS_BUILD_DIR
129+
export CODEX_CLI_DIR MCODE_HARNESS_BUILD_DIR
130130
export CORE_DISTRIBUTION_RELEASE_BASE_URL="https://github.com/$RELEASE_REPOSITORY/releases/download/$RELEASE_TAG"
131131
bash scripts/build-core-distribution.sh
132132
mkdir -p "$HOME/.oac/build/release-upload"

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SQLC_VERSION ?= v1.29.0
33
SQLC ?= go run github.com/sqlc-dev/sqlc/cmd/sqlc@$(SQLC_VERSION)
44
SWAG_VERSION ?= v1.16.4
55

6-
.PHONY: help check check-database check-go check-sqlc sqlc-generate node-deps check-claude-sdk check-web check-mcode-harness build-daemon build-core check-core check-core-packages check-core-integration docker-build-core check-core-container build-agents-runtime build-claude-runtime build-claude-sdk-runtime build-mcode-harness build-mcode-runtime
6+
.PHONY: help check check-database check-go check-sqlc sqlc-generate node-deps check-claude-sdk check-web check-mcode-harness build-daemon build-core check-core check-core-packages check-core-integration docker-build-core check-core-container build-codex-runtime build-claude-runtime build-claude-sdk-runtime build-mcode-harness build-mcode-runtime
77

88
help:
99
@printf '%s\n' 'make build-core Build standalone Core commands' 'make build-daemon Build the execution daemon' 'make check Run Core, persistence and runtime checks' 'See README.md for runtime prerequisites and deployment.'
@@ -145,8 +145,8 @@ check-mcode-harness:
145145
@for script in packages/mcode-harness/*.mjs; do node --check "$$script"; done
146146
bash -n scripts/build-mcode-harness.sh scripts/build-mcode-runtime.sh
147147

148-
build-agents-runtime:
149-
./scripts/build-agents-runtime.sh
148+
build-codex-runtime:
149+
./scripts/build-codex-runtime.sh
150150

151151
build-claude-runtime:
152152
./scripts/build-claude-runtime.sh

‎apps/web/e2e/access.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const browserStorage = (page: Page) => page.evaluate(() => JSON.stringify({ ...w
1414
test("signs in with the Core key, keeps it out of the browser, and signs out and back in", async ({ page, request }) => {
1515
await resetFixture(request, "login");
1616
await recordV1Requests(page);
17-
await page.addInitScript(() => window.localStorage.setItem("agents-core-web.language", "en"));
17+
await page.addInitScript(() => window.localStorage.setItem("oac-web.language", "en"));
1818
await page.goto("/");
1919

2020
await expect(page.getByRole("heading", { name: "Sign in to OpenAgentCore" })).toBeVisible();
@@ -47,7 +47,7 @@ test("signs in with the Core key, keeps it out of the browser, and signs out and
4747
test("opens a fresh install on the Overview's Getting started: a project and its key shown once, then the step is done", async ({ page, request }) => {
4848
await resetFixture(request, "login", { fresh: true });
4949
await recordV1Requests(page);
50-
await page.addInitScript(() => window.localStorage.setItem("agents-core-web.language", "en"));
50+
await page.addInitScript(() => window.localStorage.setItem("oac-web.language", "en"));
5151
await page.goto("/");
5252
await signIn(page, FIXTURE_CORE_KEY);
5353

‎apps/web/e2e/console.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function openConsole(page: Page, request: APIRequestContext, hash =
4040
await resetFixture(request, "authenticated", options);
4141
await recordV1Requests(page);
4242
await page.context().addCookies([{ name: "core_console", value: "fixture-session", url: web }]);
43-
await page.addInitScript(() => window.localStorage.setItem("agents-core-web.language", "en"));
43+
await page.addInitScript(() => window.localStorage.setItem("oac-web.language", "en"));
4444
await page.goto(`/#${hash}`);
4545
}
4646

‎apps/web/e2e/overview-readiness.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ test("failed summary and Session refreshes preserve their previous evidence unti
164164
});
165165

166166
test("installation failure cannot complete onboarding and its retry reveals local-only blockage", async ({ page, request }) => {
167-
await page.addInitScript(() => window.localStorage.setItem("agents-core-web.getting-started.7f3c2a90-5b1e-4c2d-9e3f-0a1b2c3d4e5f", "open"));
167+
await page.addInitScript(() => window.localStorage.setItem("oac-web.getting-started.7f3c2a90-5b1e-4c2d-9e3f-0a1b2c3d4e5f", "open"));
168168
await page.route("**/core/v1/installation", (route) => route.fulfill(reject));
169169
await openConsole(page, request, "overview", { installation: "local" });
170170
const step = page.locator(".getting-started-step").first();

‎apps/web/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<title>OpenAgentCore</title>
1414
<script>
1515
;(() => {
16-
const stored = localStorage.getItem("agents-core-web.theme")
16+
const stored = localStorage.getItem("oac-web.theme")
1717
const preference =
1818
stored === "light" || stored === "dark" || stored === "system" ? stored : "system"
1919
const resolved =

‎apps/web/src/features/overview/getting-started.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ describe("Getting started visibility", () => {
126126
const stored = new Map<string, string>();
127127
vi.stubGlobal("window", { localStorage: { getItem: (key: string) => stored.get(key) ?? null, setItem: (key: string, value: string) => stored.set(key, value) } });
128128
const down: FleetState = { status: "failed", error: new Error("down") };
129-
expect(checklistStorageKey(fleet(deployment({ installation_id: "inst-1" })))).toBe("agents-core-web.getting-started.inst-1");
130-
expect(checklistStorageKey(down)).toBe("agents-core-web.getting-started");
129+
expect(checklistStorageKey(fleet(deployment({ installation_id: "inst-1" })))).toBe("oac-web.getting-started.inst-1");
130+
expect(checklistStorageKey(down)).toBe("oac-web.getting-started");
131131
rememberInstallation("inst-1");
132-
expect(checklistStorageKey(down)).toBe("agents-core-web.getting-started.inst-1");
132+
expect(checklistStorageKey(down)).toBe("oac-web.getting-started.inst-1");
133133
expect(checklistStorageKey({ status: "loading" })).toBeNull();
134134
});
135135
});

‎apps/web/src/features/overview/getting-started.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ export function checklistView(states: readonly StepState[], memory: ChecklistMem
131131
return memory === "open" && states.some((state) => state !== null) ? "full" : "hidden";
132132
}
133133

134-
const MEMORY_KEY = "agents-core-web.getting-started";
134+
const MEMORY_KEY = "oac-web.getting-started";
135135
/** The installation this browser last read, so the checklist keeps its entry while the deployment cannot be read. */
136-
const INSTALLATION_KEY = "agents-core-web.last-installation";
136+
const INSTALLATION_KEY = "oac-web.last-installation";
137137

138138
/**
139139
* The storage entry for this installation, so a reinstall at the same origin

‎apps/web/src/features/sandbox/NodeEnrollment.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { enrolledNode, enrollmentProgress, formatCountdown, progressSteps, type
2121
import { sandboxConsoleConfigQuery } from "./sandbox-queries";
2222

2323
/** The host requirements open by default until this browser has shown them once. */
24-
const REQUIREMENTS_SEEN = "agents-core-web.node-requirements-seen";
24+
const REQUIREMENTS_SEEN = "oac-web.node-requirements-seen";
2525
function requirementsSeen(): boolean {
2626
try { return window.localStorage.getItem(REQUIREMENTS_SEEN) === "1"; } catch { return false; }
2727
}

‎apps/web/src/i18n/i18n.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Web internationalization", () => {
4444
});
4545

4646
it("honors a saved choice and otherwise selects the first supported browser preference", () => {
47-
expect(resolveLanguage("zh", ["en-US"])).toBe("zh-CN");
47+
expect(resolveLanguage("zh-CN", ["en-US"])).toBe("zh-CN");
4848
expect(resolveLanguage("en", ["zh-CN"])).toBe("en");
4949
expect(resolveLanguage(null, ["en-US", "zh-CN"])).toBe("en");
5050
expect(resolveLanguage(null, ["fr-FR", "zh-Hans", "en-US"])).toBe("zh-CN");

0 commit comments

Comments
 (0)