refactor: remove workspace publishing and bundles

This commit is contained in:
2026-08-14 16:28:01 +02:00
parent 42e02f8b1c
commit 9db4463a83
8 changed files with 147 additions and 1060 deletions
+7 -12
View File
@@ -20,24 +20,19 @@ test("loads a safe Git workspace registry configuration", () => {
});
test("uses safe workspace registry defaults", () => {
expect(loadConfig({}).workspaceRegistry).toMatchObject({
const registry = loadConfig({}).workspaceRegistry;
expect(registry).toMatchObject({
root: "/data/workspace-registry",
branch: "main",
maxImportBytes: 10 * 1024 * 1024,
maxImportEntries: 32,
});
expect(registry).not.toHaveProperty("gitAuthorName");
expect(registry).not.toHaveProperty("gitAuthorEmail");
expect(registry).not.toHaveProperty("maxImportBytes");
expect(registry).not.toHaveProperty("maxImportEntries");
});
test("rejects a relative registry root and invalid import limits", () => {
test("rejects a relative registry root", () => {
expect(() => loadConfig({ THT_WORKSPACE_REGISTRY_ROOT: "registry" })).toThrow(/registry/i);
expect(() => loadConfig({
THT_WORKSPACE_REGISTRY_ROOT: "/data/registry",
THT_WORKSPACE_MAX_IMPORT_BYTES: "0",
})).toThrow(/import/i);
expect(() => loadConfig({
THT_WORKSPACE_REGISTRY_ROOT: "/data/registry",
THT_WORKSPACE_MAX_IMPORT_ENTRIES: "1.5",
})).toThrow(/import/i);
});
test("rejects unsafe registry branch, installation ID, and secret roots", () => {