Plugins/irc: migrate to scoped plugin-sdk imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import type { ChannelPlugin, OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
import type { ChannelPlugin, OpenClawPluginApi } from "openclaw/plugin-sdk/irc";
|
||||||
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core";
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/irc";
|
||||||
import { ircPlugin } from "./src/channel.js";
|
import { ircPlugin } from "./src/channel.js";
|
||||||
import { setIrcRuntime } from "./src/runtime.js";
|
import { setIrcRuntime } from "./src/runtime.js";
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
normalizeAccountId,
|
normalizeAccountId,
|
||||||
normalizeOptionalAccountId,
|
normalizeOptionalAccountId,
|
||||||
} from "openclaw/plugin-sdk/account-id";
|
} from "openclaw/plugin-sdk/account-id";
|
||||||
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/compat";
|
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/irc";
|
||||||
import type { CoreConfig, IrcAccountConfig, IrcNickServConfig } from "./types.js";
|
import type { CoreConfig, IrcAccountConfig, IrcNickServConfig } from "./types.js";
|
||||||
|
|
||||||
const TRUTHY_ENV = new Set(["true", "1", "yes", "on"]);
|
const TRUTHY_ENV = new Set(["true", "1", "yes", "on"]);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
resolveDefaultGroupPolicy,
|
resolveDefaultGroupPolicy,
|
||||||
setAccountEnabledInConfigSection,
|
setAccountEnabledInConfigSection,
|
||||||
type ChannelPlugin,
|
type ChannelPlugin,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/irc";
|
||||||
import {
|
import {
|
||||||
listIrcAccountIds,
|
listIrcAccountIds,
|
||||||
resolveDefaultIrcAccountId,
|
resolveDefaultIrcAccountId,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
ReplyRuntimeConfigSchemaShape,
|
ReplyRuntimeConfigSchemaShape,
|
||||||
ToolPolicySchema,
|
ToolPolicySchema,
|
||||||
requireOpenAllowFrom,
|
requireOpenAllowFrom,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/irc";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
const IrcGroupSchema = z
|
const IrcGroupSchema = z
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
type OutboundReplyPayload,
|
type OutboundReplyPayload,
|
||||||
type OpenClawConfig,
|
type OpenClawConfig,
|
||||||
type RuntimeEnv,
|
type RuntimeEnv,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/irc";
|
||||||
import type { ResolvedIrcAccount } from "./accounts.js";
|
import type { ResolvedIrcAccount } from "./accounts.js";
|
||||||
import { normalizeIrcAllowlist, resolveIrcAllowlistMatch } from "./normalize.js";
|
import { normalizeIrcAllowlist, resolveIrcAllowlistMatch } from "./normalize.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createLoggerBackedRuntime, type RuntimeEnv } from "openclaw/plugin-sdk/compat";
|
import { createLoggerBackedRuntime, type RuntimeEnv } from "openclaw/plugin-sdk/irc";
|
||||||
import { resolveIrcAccount } from "./accounts.js";
|
import { resolveIrcAccount } from "./accounts.js";
|
||||||
import { connectIrcClient, type IrcClient } from "./client.js";
|
import { connectIrcClient, type IrcClient } from "./client.js";
|
||||||
import { buildIrcConnectOptions } from "./connect-options.js";
|
import { buildIrcConnectOptions } from "./connect-options.js";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { RuntimeEnv, WizardPrompter } from "openclaw/plugin-sdk/compat";
|
import type { RuntimeEnv, WizardPrompter } from "openclaw/plugin-sdk/irc";
|
||||||
import { describe, expect, it, vi } from "vitest";
|
import { describe, expect, it, vi } from "vitest";
|
||||||
import { ircOnboardingAdapter } from "./onboarding.js";
|
import { ircOnboardingAdapter } from "./onboarding.js";
|
||||||
import type { CoreConfig } from "./types.js";
|
import type { CoreConfig } from "./types.js";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
type ChannelOnboardingDmPolicy,
|
type ChannelOnboardingDmPolicy,
|
||||||
type DmPolicy,
|
type DmPolicy,
|
||||||
type WizardPrompter,
|
type WizardPrompter,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/irc";
|
||||||
import { listIrcAccountIds, resolveDefaultIrcAccountId, resolveIrcAccount } from "./accounts.js";
|
import { listIrcAccountIds, resolveDefaultIrcAccountId, resolveIrcAccount } from "./accounts.js";
|
||||||
import {
|
import {
|
||||||
isChannelTarget,
|
isChannelTarget,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { PluginRuntime } from "openclaw/plugin-sdk/compat";
|
import type { PluginRuntime } from "openclaw/plugin-sdk/irc";
|
||||||
|
|
||||||
let runtime: PluginRuntime | null = null;
|
let runtime: PluginRuntime | null = null;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { BaseProbeResult } from "openclaw/plugin-sdk/compat";
|
import type { BaseProbeResult } from "openclaw/plugin-sdk/irc";
|
||||||
import type {
|
import type {
|
||||||
BlockStreamingCoalesceConfig,
|
BlockStreamingCoalesceConfig,
|
||||||
DmConfig,
|
DmConfig,
|
||||||
@@ -8,7 +8,7 @@ import type {
|
|||||||
GroupToolPolicyConfig,
|
GroupToolPolicyConfig,
|
||||||
MarkdownConfig,
|
MarkdownConfig,
|
||||||
OpenClawConfig,
|
OpenClawConfig,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/irc";
|
||||||
|
|
||||||
export type IrcChannelConfig = {
|
export type IrcChannelConfig = {
|
||||||
requireMention?: boolean;
|
requireMention?: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user