refactor: remove remaining extension src imports

This commit is contained in:
Peter Steinberger
2026-03-17 19:48:47 -07:00
parent 055632460d
commit 5b2c5ee2bc
20 changed files with 136 additions and 16 deletions

View File

@@ -1,8 +1,8 @@
import type { AgentToolResult } from "@mariozechner/pi-agent-core";
import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
import {
type ActionGate,
assertMediaNotDataUrl,
type ActionGate,
jsonResult,
readNumberParam,
readReactionParams,

View File

@@ -1,6 +1,6 @@
import { Type } from "@sinclair/typebox";
import { optionalStringEnum } from "openclaw/plugin-sdk/agent-runtime";
import { jsonResult, readNumberParam, readStringParam } from "openclaw/plugin-sdk/agent-runtime";
import { optionalStringEnum } from "openclaw/plugin-sdk/core";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-runtime";
import { runFirecrawlScrape } from "./firecrawl-client.js";

View File

@@ -1,11 +1,11 @@
import {
DEFAULT_ACCOUNT_ID,
listLineAccountIds,
normalizeAccountId,
resolveLineAccount,
type ChannelSetupAdapter,
type LineConfig,
type OpenClawConfig,
} from "openclaw/plugin-sdk/line-core";
import type { ChannelSetupAdapter, OpenClawConfig } from "openclaw/plugin-sdk/setup";
const channel = "line" as const;
@@ -158,4 +158,4 @@ export const lineSetupAdapter: ChannelSetupAdapter = {
},
};
export { listLineAccountIds } from "openclaw/plugin-sdk/line-core";
export { listLineAccountIds };

View File

@@ -1,12 +1,13 @@
import crypto from "node:crypto";
import { configureClient } from "@tloncorp/api";
import { createReplyPrefixOptions } from "openclaw/plugin-sdk/channel-runtime";
import type {
ChannelAccountSnapshot,
ChannelOutboundAdapter,
ChannelPlugin,
OpenClawConfig,
} from "../api.js";
import { createLoggerBackedRuntime, createReplyPrefixOptions } from "../api.js";
} from "openclaw/plugin-sdk/channel-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import type { ChannelPlugin } from "openclaw/plugin-sdk/core";
import { createLoggerBackedRuntime } from "openclaw/plugin-sdk/runtime";
import { monitorTlonProvider } from "./monitor/index.js";
import { tlonSetupWizard } from "./setup-surface.js";
import {

View File

@@ -1,5 +1,6 @@
import type { ChannelAccountSnapshot, ChannelPlugin } from "openclaw/plugin-sdk/channel-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
import type { ChannelAccountSnapshot, ChannelPlugin, OpenClawConfig } from "../api.js";
import { tlonChannelConfigSchema } from "./config-schema.js";
import {
applyTlonSetupConfig,

View File

@@ -1,5 +1,5 @@
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/core";
import { z } from "zod";
import { buildChannelConfigSchema } from "../api.js";
const ShipSchema = z.string().min(1);
const ChannelNestSchema = z.string().min(1);

View File

@@ -1,5 +1,5 @@
import type { PluginRuntime } from "openclaw/plugin-sdk/plugin-runtime";
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
import type { PluginRuntime } from "../api.js";
const { setRuntime: setTlonRuntime, getRuntime: getTlonRuntime } =
createPluginRuntimeStore<PluginRuntime>("Tlon runtime not initialized");

View File

@@ -1,4 +1,4 @@
import type { OpenClawConfig } from "../api.js";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
export type TlonResolvedAccount = {
accountId: string;

View File

@@ -1,4 +1,4 @@
import { isBlockedHostnameOrIp } from "../../api.js";
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/infra-runtime";
export type UrbitBaseUrlValidation =
| { ok: true; baseUrl: string; hostname: string }