refactor: delete dead infra and config exports (#106019)

* refactor: delete dead infra and config exports

* refactor: preserve live infra and config contracts

* refactor(config): remove obsolete file-store lifecycle APIs

* refactor(infra): finish current-main dead export cleanup
This commit is contained in:
Peter Steinberger
2026-07-13 12:00:47 -07:00
committed by GitHub
parent 8dd57279cd
commit d1684f48a3
444 changed files with 3161 additions and 14814 deletions

View File

@@ -3,7 +3,7 @@ import fs from "node:fs/promises";
import path from "node:path";
import process from "node:process";
import { pathToFileURL } from "node:url";
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { createTrackedTempDirs } from "../test-utils/tracked-temp-dirs.js";
const tempDirs = createTrackedTempDirs();
@@ -58,26 +58,19 @@ async function makeFakeOpenClawPackage(root: string) {
describe("git commit resolution", () => {
let resolveCommitHash: (typeof import("./git-commit.js"))["resolveCommitHash"];
let testing: (typeof import("./git-commit.js"))["testing"];
beforeAll(async () => {
vi.doUnmock("node:fs");
vi.doUnmock("node:module");
({ resolveCommitHash, testing } = await import("./git-commit.js"));
});
beforeEach(() => {
beforeEach(async () => {
vi.restoreAllMocks();
vi.doUnmock("node:fs");
vi.doUnmock("node:module");
testing.clearCachedGitCommits();
vi.resetModules();
({ resolveCommitHash } = await import("./git-commit.js"));
});
afterEach(async () => {
vi.restoreAllMocks();
vi.doUnmock("node:fs");
vi.doUnmock("node:module");
testing.clearCachedGitCommits();
await tempDirs.cleanup();
});