fix(ci): restore main build

This commit is contained in:
Peter Steinberger
2026-05-14 08:38:41 +01:00
parent 32f89760e3
commit bfc798bd0b
4 changed files with 18 additions and 2 deletions

View File

@@ -13,7 +13,11 @@ import { resolveAnthropicVertexClientRegion, resolveAnthropicVertexProjectId } f
type AnthropicVertexEffort = NonNullable<AnthropicOptions["effort"]>;
type AnthropicVertexAdaptiveEffort = AnthropicVertexEffort | "xhigh";
type AnthropicVertexClientOptions = ConstructorParameters<typeof AnthropicVertexSdk>[0];
type AnthropicVertexClientOptions = {
baseURL?: string;
projectId?: string;
region: string;
};
export type AnthropicVertexStreamDeps = {
AnthropicVertex: new (options: AnthropicVertexClientOptions) => unknown;

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",