Extensions: migrate irc plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 01:20:07 -05:00
parent 39a55844bc
commit 9b6101e382
9 changed files with 10 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
import { readFileSync } from "node:fs";
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk";
import {
DEFAULT_ACCOUNT_ID,
normalizeAccountId,
normalizeOptionalAccountId,
} from "openclaw/plugin-sdk/account-id";
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/compat";
import type { CoreConfig, IrcAccountConfig, IrcNickServConfig } from "./types.js";
const TRUTHY_ENV = new Set(["true", "1", "yes", "on"]);

View File

@@ -11,7 +11,7 @@ import {
resolveDefaultGroupPolicy,
setAccountEnabledInConfigSection,
type ChannelPlugin,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import {
listIrcAccountIds,
resolveDefaultIrcAccountId,

View File

@@ -7,7 +7,7 @@ import {
ReplyRuntimeConfigSchemaShape,
ToolPolicySchema,
requireOpenAllowFrom,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import { z } from "zod";
const IrcGroupSchema = z

View File

@@ -16,7 +16,7 @@ import {
type OutboundReplyPayload,
type OpenClawConfig,
type RuntimeEnv,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import type { ResolvedIrcAccount } from "./accounts.js";
import { normalizeIrcAllowlist, resolveIrcAllowlistMatch } from "./normalize.js";
import {

View File

@@ -1,4 +1,4 @@
import { createLoggerBackedRuntime, type RuntimeEnv } from "openclaw/plugin-sdk";
import { createLoggerBackedRuntime, type RuntimeEnv } from "openclaw/plugin-sdk/compat";
import { resolveIrcAccount } from "./accounts.js";
import { connectIrcClient, type IrcClient } from "./client.js";
import { buildIrcConnectOptions } from "./connect-options.js";

View File

@@ -1,4 +1,4 @@
import type { RuntimeEnv, WizardPrompter } from "openclaw/plugin-sdk";
import type { RuntimeEnv, WizardPrompter } from "openclaw/plugin-sdk/compat";
import { describe, expect, it, vi } from "vitest";
import { ircOnboardingAdapter } from "./onboarding.js";
import type { CoreConfig } from "./types.js";

View File

@@ -8,7 +8,7 @@ import {
type ChannelOnboardingDmPolicy,
type DmPolicy,
type WizardPrompter,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import { listIrcAccountIds, resolveDefaultIrcAccountId, resolveIrcAccount } from "./accounts.js";
import {
isChannelTarget,

View File

@@ -1,4 +1,4 @@
import type { PluginRuntime } from "openclaw/plugin-sdk";
import type { PluginRuntime } from "openclaw/plugin-sdk/compat";
let runtime: PluginRuntime | null = null;

View File

@@ -1,4 +1,4 @@
import type { BaseProbeResult } from "openclaw/plugin-sdk";
import type { BaseProbeResult } from "openclaw/plugin-sdk/compat";
import type {
BlockStreamingCoalesceConfig,
DmConfig,
@@ -8,7 +8,7 @@ import type {
GroupToolPolicyConfig,
MarkdownConfig,
OpenClawConfig,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
export type IrcChannelConfig = {
requireMention?: boolean;