Plugin SDK: use public utility subpaths

This commit is contained in:
Vincent Koc 2026-03-18 09:43:46 -07:00
parent f187e8bac4
commit a02bfd30c5
10 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
import { KeyedAsyncQueue } from "../../plugin-sdk/keyed-async-queue.js";
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
export class SessionActorQueue {
private readonly queue = new KeyedAsyncQueue();

View File

@ -4,10 +4,10 @@ import os from "node:os";
import path from "node:path";
import type { AgentTool } from "@mariozechner/pi-agent-core";
import type { ImageContent } from "@mariozechner/pi-ai";
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
import type { ThinkLevel } from "../../auto-reply/thinking.js";
import type { OpenClawConfig } from "../../config/config.js";
import type { CliBackendConfig } from "../../config/types.js";
import { KeyedAsyncQueue } from "../../plugin-sdk/keyed-async-queue.js";
import { buildTtsSystemPromptHint } from "../../tts/tts.js";
import { isRecord } from "../../utils.js";
import { buildModelAliasLines } from "../model-alias-lines.js";

View File

@ -7,6 +7,7 @@ import {
estimateTokens,
SessionManager,
} from "@mariozechner/pi-coding-agent";
import { resolveSignalReactionLevel } from "openclaw/plugin-sdk/signal";
import {
resolveTelegramInlineButtonsScope,
resolveTelegramReactionLevel,
@ -23,7 +24,6 @@ import { createInternalHookEvent, triggerInternalHook } from "../../hooks/intern
import { getMachineDisplayName } from "../../infra/machine-name.js";
import { generateSecureToken } from "../../infra/secure-random.js";
import { getMemorySearchManager } from "../../memory/index.js";
import { resolveSignalReactionLevel } from "../../plugin-sdk/signal.js";
import { getGlobalHookRunner } from "../../plugins/hook-runner-global.js";
import { prepareProviderRuntimeAuth } from "../../plugins/provider-runtime.js";
import { type enqueueCommand, enqueueCommandInLane } from "../../process/command-queue.js";

View File

@ -7,6 +7,7 @@ import {
DefaultResourceLoader,
SessionManager,
} from "@mariozechner/pi-coding-agent";
import { resolveSignalReactionLevel } from "openclaw/plugin-sdk/signal";
import {
resolveTelegramInlineButtonsScope,
resolveTelegramReactionLevel,
@ -20,7 +21,6 @@ import {
ensureGlobalUndiciStreamTimeouts,
} from "../../../infra/net/undici-global-dispatcher.js";
import { MAX_IMAGE_BYTES } from "../../../media/constants.js";
import { resolveSignalReactionLevel } from "../../../plugin-sdk/signal.js";
import { getGlobalHookRunner } from "../../../plugins/hook-runner-global.js";
import type {
PluginHookAgentContext,

View File

@ -1,4 +1,4 @@
import { mapAllowFromEntries } from "../../plugin-sdk/channel-config-helpers.js";
import { mapAllowFromEntries } from "openclaw/plugin-sdk/channel-config-helpers";
import type { RuntimeEnv } from "../../runtime.js";
import { summarizeStringEntries } from "../../shared/string-sample.js";

View File

@ -1,7 +1,7 @@
import { sendMessageSignal as sendMessageSignalImpl } from "../../plugin-sdk/signal.js";
import { sendMessageSignal as sendMessageSignalImpl } from "openclaw/plugin-sdk/signal";
type RuntimeSend = {
sendMessage: typeof import("../../plugin-sdk/signal.js").sendMessageSignal;
sendMessage: typeof import("openclaw/plugin-sdk/signal").sendMessageSignal;
};
export const runtimeSend = {

View File

@ -1,10 +1,10 @@
import { mapAllowFromEntries } from "openclaw/plugin-sdk/channel-config-helpers";
import { normalizeChatType, type ChatType } from "../../channels/chat-type.js";
import type { ChannelOutboundTargetMode } from "../../channels/plugins/types.js";
import { formatCliCommand } from "../../cli/command-format.js";
import type { OpenClawConfig } from "../../config/config.js";
import type { SessionEntry } from "../../config/sessions.js";
import type { AgentDefaultsConfig } from "../../config/types.agent-defaults.js";
import { mapAllowFromEntries } from "../../plugin-sdk/channel-config-helpers.js";
import { normalizeAccountId } from "../../routing/session-key.js";
import { deliveryContextFromSession } from "../../utils/delivery-context.js";
import type {

View File

@ -1,4 +1,4 @@
import { mapAllowFromEntries } from "../plugin-sdk/channel-config-helpers.js";
import { mapAllowFromEntries } from "openclaw/plugin-sdk/channel-config-helpers";
export function normalizeNonEmptyString(value: unknown): string | null {
if (typeof value !== "string") {

View File

@ -7,6 +7,7 @@ import type {
LeaveEvent,
PostbackEvent,
} from "@line/bot-sdk";
import { evaluateMatchedGroupAccessForPolicy } from "openclaw/plugin-sdk/group-access";
import { hasControlCommand } from "../auto-reply/command-detection.js";
import {
clearHistoryEntriesIfEnabled,
@ -30,7 +31,6 @@ import {
readChannelAllowFromStore,
upsertChannelPairingRequest,
} from "../pairing/pairing-store.js";
import { evaluateMatchedGroupAccessForPolicy } from "../plugin-sdk/group-access.js";
import { resolveAgentRoute } from "../routing/resolve-route.js";
import type { RuntimeEnv } from "../runtime.js";
import {

View File

@ -1,9 +1,9 @@
import { evaluateMatchedGroupAccessForPolicy } from "openclaw/plugin-sdk/group-access";
import { mergeDmAllowFromSources, resolveGroupAllowFromSources } from "../channels/allow-from.js";
import { resolveControlCommandGate } from "../channels/command-gating.js";
import type { ChannelId } from "../channels/plugins/types.js";
import type { GroupPolicy } from "../config/types.base.js";
import { readChannelAllowFromStore } from "../pairing/pairing-store.js";
import { evaluateMatchedGroupAccessForPolicy } from "../plugin-sdk/group-access.js";
import { normalizeStringEntries } from "../shared/string-normalization.js";
export function resolvePinnedMainDmOwnerFromAllowlist(params: {