Plugins: internalize more extension SDK imports

This commit is contained in:
Vincent Koc 2026-03-17 10:42:52 -07:00
parent 4b2aec622b
commit 0f56b16d47
10 changed files with 13 additions and 17 deletions

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/device-pair";

View File

@ -1,4 +1,5 @@
import os from "node:os";
import qrcode from "qrcode-terminal";
import {
approveDevicePairing,
definePluginEntry,
@ -8,8 +9,7 @@ import {
runPluginCommandWithTimeout,
resolveTailnetHostWithRunner,
type OpenClawPluginApi,
} from "openclaw/plugin-sdk/device-pair";
import qrcode from "qrcode-terminal";
} from "./api.js";
import {
armPairNotifyOnce,
formatPendingRequests,

View File

@ -1,7 +1,7 @@
import { promises as fs } from "node:fs";
import path from "node:path";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/device-pair";
import { listDevicePairing } from "openclaw/plugin-sdk/device-pair";
import type { OpenClawPluginApi } from "./api.js";
import { listDevicePairing } from "./api.js";
const NOTIFY_STATE_FILE = "device-pair-notify.json";
const NOTIFY_POLL_INTERVAL_MS = 10_000;

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/llm-task";

View File

@ -1,8 +1,4 @@
import {
definePluginEntry,
type AnyAgentTool,
type OpenClawPluginApi,
} from "openclaw/plugin-sdk/llm-task";
import { definePluginEntry, type AnyAgentTool, type OpenClawPluginApi } from "./api.js";
import { createLlmTaskTool } from "./src/llm-task-tool.js";
export default definePluginEntry({

View File

@ -8,8 +8,8 @@ import {
normalizeThinkLevel,
resolvePreferredOpenClawTmpDir,
supportsXHighThinking,
} from "openclaw/plugin-sdk/llm-task";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/llm-task";
} from "../api.js";
import type { OpenClawPluginApi } from "../api.js";
function stripCodeFences(s: string): string {
const trimmed = s.trim();

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/memory-lancedb";

View File

@ -10,7 +10,7 @@ import { randomUUID } from "node:crypto";
import type * as LanceDB from "@lancedb/lancedb";
import { Type } from "@sinclair/typebox";
import OpenAI from "openai";
import { definePluginEntry, type OpenClawPluginApi } from "openclaw/plugin-sdk/memory-lancedb";
import { definePluginEntry, type OpenClawPluginApi } from "./api.js";
import {
DEFAULT_CAPTURE_MAX_CHARS,
MEMORY_CATEGORIES,

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/thread-ownership";

View File

@ -1,8 +1,4 @@
import {
definePluginEntry,
type OpenClawConfig,
type OpenClawPluginApi,
} from "openclaw/plugin-sdk/thread-ownership";
import { definePluginEntry, type OpenClawConfig, type OpenClawPluginApi } from "./api.js";
type ThreadOwnershipConfig = {
forwarderUrl?: string;