mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 19:20:21 +00:00
Plugins: internalize small extension SDK imports
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
definePluginEntry,
|
||||
type ProviderAuthContext,
|
||||
type ProviderAuthResult,
|
||||
} from "openclaw/plugin-sdk/copilot-proxy";
|
||||
} from "./runtime-api.js";
|
||||
|
||||
const DEFAULT_BASE_URL = "http://localhost:3000/v1";
|
||||
const DEFAULT_API_KEY = "n/a";
|
||||
|
||||
1
extensions/copilot-proxy/runtime-api.ts
Normal file
1
extensions/copilot-proxy/runtime-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/copilot-proxy";
|
||||
@@ -1,4 +1,4 @@
|
||||
import { definePluginEntry, type OpenClawPluginApi } from "openclaw/plugin-sdk/open-prose";
|
||||
import { definePluginEntry, type OpenClawPluginApi } from "./runtime-api.js";
|
||||
|
||||
export default definePluginEntry({
|
||||
id: "open-prose",
|
||||
|
||||
1
extensions/open-prose/runtime-api.ts
Normal file
1
extensions/open-prose/runtime-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/open-prose";
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
definePluginEntry,
|
||||
type OpenClawPluginApi,
|
||||
type OpenClawPluginService,
|
||||
} from "openclaw/plugin-sdk/phone-control";
|
||||
} from "./runtime-api.js";
|
||||
|
||||
type ArmGroup = "camera" | "screen" | "writes" | "all";
|
||||
|
||||
|
||||
1
extensions/phone-control/runtime-api.ts
Normal file
1
extensions/phone-control/runtime-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/phone-control";
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
detectZaiEndpoint as detectZaiEndpointCore,
|
||||
type ZaiDetectedEndpoint,
|
||||
type ZaiEndpointId,
|
||||
} from "openclaw/plugin-sdk/zai";
|
||||
} from "./runtime-api.js";
|
||||
|
||||
type DetectZaiEndpointFn = typeof detectZaiEndpointCore;
|
||||
|
||||
|
||||
1
extensions/zai/runtime-api.ts
Normal file
1
extensions/zai/runtime-api.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/zai";
|
||||
Reference in New Issue
Block a user