Plugins/llm-task: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 02:33:01 -05:00
parent 7b8e36583f
commit ccd2d7dc27
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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<string, unknown>) => Promise<unknown>;