From bfc798bd0b2aba02985f1aa0403b5903c5f6c096 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 14 May 2026 08:38:41 +0100 Subject: [PATCH] fix(ci): restore main build --- extensions/anthropic-vertex/stream-runtime.ts | 6 +++++- src/infra/tsdown-config.test.ts | 8 +++++++- src/wizard/setup.official-plugins.test.ts | 5 +++++ tsdown.config.ts | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/extensions/anthropic-vertex/stream-runtime.ts b/extensions/anthropic-vertex/stream-runtime.ts index be69a6a3266..2b2354dd748 100644 --- a/extensions/anthropic-vertex/stream-runtime.ts +++ b/extensions/anthropic-vertex/stream-runtime.ts @@ -13,7 +13,11 @@ import { resolveAnthropicVertexClientRegion, resolveAnthropicVertexProjectId } f type AnthropicVertexEffort = NonNullable; type AnthropicVertexAdaptiveEffort = AnthropicVertexEffort | "xhigh"; -type AnthropicVertexClientOptions = ConstructorParameters[0]; +type AnthropicVertexClientOptions = { + baseURL?: string; + projectId?: string; + region: string; +}; export type AnthropicVertexStreamDeps = { AnthropicVertex: new (options: AnthropicVertexClientOptions) => unknown; diff --git a/src/infra/tsdown-config.test.ts b/src/infra/tsdown-config.test.ts index 0c643733a08..ec7d4c1651b 100644 --- a/src/infra/tsdown-config.test.ts +++ b/src/infra/tsdown-config.test.ts @@ -166,16 +166,19 @@ describe("tsdown config", () => { expect(hookEntries).toStrictEqual([]); }); - it("externalizes known heavy native dependencies", () => { + it("externalizes known heavy native and declaration-fragile dependencies", () => { const unifiedGraph = unifiedDistGraph(); const neverBundle = unifiedGraph?.deps?.neverBundle; const external = unifiedGraph?.inputOptions?.({})?.external; if (typeof neverBundle === "function") { + expect(neverBundle("@anthropic-ai/vertex-sdk")).toBe(true); expect(neverBundle("@discordjs/voice")).toBe(true); expect(neverBundle("@lancedb/lancedb")).toBe(true); expect(neverBundle("@larksuiteoapi/node-sdk")).toBe(true); expect(neverBundle("@matrix-org/matrix-sdk-crypto-nodejs")).toBe(true); + expect(neverBundle("@slack/bolt")).toBe(true); + expect(neverBundle("@slack/web-api")).toBe(true); expect(neverBundle("@vitest/expect")).toBe(true); expect(neverBundle("matrix-js-sdk/lib/client.js")).toBe(true); expect(neverBundle("prism-media")).toBe(true); @@ -184,9 +187,12 @@ describe("tsdown config", () => { expect(neverBundle("not-a-runtime-dependency")).toBe(false); } else { for (const dependency of [ + "@anthropic-ai/vertex-sdk", "@discordjs/voice", "@lancedb/lancedb", "@larksuiteoapi/node-sdk", + "@slack/bolt", + "@slack/web-api", "@vitest/expect", "matrix-js-sdk", "prism-media", diff --git a/src/wizard/setup.official-plugins.test.ts b/src/wizard/setup.official-plugins.test.ts index 98200172a82..1d1c16264cd 100644 --- a/src/wizard/setup.official-plugins.test.ts +++ b/src/wizard/setup.official-plugins.test.ts @@ -147,6 +147,11 @@ describe("setupOfficialPluginInstalls", () => { label: "Memory LanceDB", hint: "OpenClaw LanceDB-backed long-term memory plugin with auto-recall/capture", }, + { + value: "openshell", + label: "OpenShell Sandbox", + hint: "OpenClaw OpenShell sandbox backend", + }, { value: "voice-call", label: "Voice Call", diff --git a/tsdown.config.ts b/tsdown.config.ts index 7efcc411ddf..d674a467927 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -161,6 +161,7 @@ const bundledPluginRoot = (pluginId: string) => ["extensions", pluginId].join("/ const bundledPluginFile = (pluginId: string, relativePath: string) => `${bundledPluginRoot(pluginId)}/${relativePath}`; const explicitNeverBundleDependencies = [ + "@anthropic-ai/vertex-sdk", "@discordjs/voice", "@lancedb/lancedb", "@larksuiteoapi/node-sdk",