mirror of https://github.com/openclaw/openclaw.git
Plugins/llm-task: migrate to scoped plugin-sdk imports
This commit is contained in:
parent
7b8e36583f
commit
ccd2d7dc27
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue