diff --git a/extensions/llm-task/index.ts b/extensions/llm-task/index.ts index 27bc98dcb7b..7d258ab6a39 100644 --- a/extensions/llm-task/index.ts +++ b/extensions/llm-task/index.ts @@ -1,4 +1,4 @@ -import type { AnyAgentTool, OpenClawPluginApi } from "../../src/plugins/types.js"; +import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/llm-task"; import { createLlmTaskTool } from "./src/llm-task-tool.js"; export default function register(api: OpenClawPluginApi) { diff --git a/extensions/llm-task/src/llm-task-tool.ts b/extensions/llm-task/src/llm-task-tool.ts index 34e7607c378..cf0c0250d0a 100644 --- a/extensions/llm-task/src/llm-task-tool.ts +++ b/extensions/llm-task/src/llm-task-tool.ts @@ -2,12 +2,12 @@ import fs from "node:fs/promises"; import path from "node:path"; import { Type } from "@sinclair/typebox"; import Ajv from "ajv"; -import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/compat"; +import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/llm-task"; // NOTE: This extension is intended to be bundled with OpenClaw. // When running from source (tests/dev), OpenClaw internals live under src/. // When running from a built install, internals live under dist/ (no src/ tree). // So we resolve internal imports dynamically with src-first, dist-fallback. -import type { OpenClawPluginApi } from "../../../src/plugins/types.js"; +import type { OpenClawPluginApi } from "openclaw/plugin-sdk/llm-task"; type RunEmbeddedPiAgentFn = (params: Record) => Promise;