Plugins/nextcloud-talk: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 02:33:08 -05:00
parent adb400f9b1
commit 20ed90f1ba
14 changed files with 17 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/nextcloud-talk";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/nextcloud-talk";
import { nextcloudTalkPlugin } from "./src/channel.js";
import { setNextcloudTalkRuntime } from "./src/runtime.js";

View File

@@ -7,7 +7,7 @@ import {
import {
listConfiguredAccountIds as listConfiguredAccountIdsFromSection,
resolveAccountWithDefaultFallback,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import { normalizeResolvedSecretInputString } from "./secret-input.js";
import type { CoreConfig, NextcloudTalkAccountConfig } from "./types.js";

View File

@@ -11,7 +11,7 @@ import {
type ChannelPlugin,
type OpenClawConfig,
type ChannelSetupInput,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import { waitForAbortSignal } from "../../../src/infra/abort-signal.js";
import {
listNextcloudTalkAccountIds,

View File

@@ -7,7 +7,7 @@ import {
ReplyRuntimeConfigSchemaShape,
ToolPolicySchema,
requireOpenAllowFrom,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import { z } from "zod";
import { buildSecretInputSchema } from "./secret-input.js";

View File

@@ -1,4 +1,4 @@
import type { PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/compat";
import type { PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/nextcloud-talk";
import { describe, expect, it, vi } from "vitest";
import type { ResolvedNextcloudTalkAccount } from "./accounts.js";
import { handleNextcloudTalkInbound } from "./inbound.js";

View File

@@ -14,7 +14,7 @@ import {
type OutboundReplyPayload,
type OpenClawConfig,
type RuntimeEnv,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import type { ResolvedNextcloudTalkAccount } from "./accounts.js";
import {
normalizeNextcloudTalkAllowlist,

View File

@@ -6,7 +6,7 @@ import {
isRequestBodyLimitError,
readRequestBodyWithLimit,
requestBodyErrorToText,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import { resolveNextcloudTalkAccount } from "./accounts.js";
import { handleNextcloudTalkInbound } from "./inbound.js";
import { createNextcloudTalkReplayGuard } from "./replay-guard.js";

View File

@@ -12,7 +12,7 @@ import {
type ChannelOnboardingDmPolicy,
type OpenClawConfig,
type WizardPrompter,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import {
listNextcloudTalkAccountIds,
resolveDefaultNextcloudTalkAccountId,

View File

@@ -3,14 +3,14 @@ import type {
ChannelGroupContext,
GroupPolicy,
GroupToolPolicyConfig,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import {
buildChannelKeyCandidates,
normalizeChannelSlug,
resolveChannelEntryMatchWithFallback,
resolveMentionGatingWithBypass,
resolveNestedAllowlistDecision,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import type { NextcloudTalkRoomConfig } from "./types.js";
function normalizeAllowEntry(raw: string): string {

View File

@@ -1,5 +1,5 @@
import path from "node:path";
import { createPersistentDedupe } from "openclaw/plugin-sdk/compat";
import { createPersistentDedupe } from "openclaw/plugin-sdk/nextcloud-talk";
const DEFAULT_REPLAY_TTL_MS = 24 * 60 * 60 * 1000;
const DEFAULT_MEMORY_MAX_SIZE = 1_000;

View File

@@ -1,6 +1,6 @@
import { readFileSync } from "node:fs";
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat";
import type { RuntimeEnv } from "openclaw/plugin-sdk/compat";
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/nextcloud-talk";
import type { RuntimeEnv } from "openclaw/plugin-sdk/nextcloud-talk";
import type { ResolvedNextcloudTalkAccount } from "./accounts.js";
import { normalizeResolvedSecretInputString } from "./secret-input.js";

View File

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

View File

@@ -2,7 +2,7 @@ import {
hasConfiguredSecretInput,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
import { z } from "zod";
export { hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString };

View File

@@ -4,7 +4,7 @@ import type {
DmPolicy,
GroupPolicy,
SecretInput,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/nextcloud-talk";
export type { DmPolicy, GroupPolicy };