mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 15:14:45 +00:00
fix(ci): restore main build
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user