Plugins/feishu: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana 2026-03-04 02:32:58 -05:00
parent ed85754722
commit 3e1ca111af
44 changed files with 48 additions and 48 deletions

View File

@ -1,5 +1,5 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/core"; import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/feishu";
import { registerFeishuBitableTools } from "./src/bitable.js"; import { registerFeishuBitableTools } from "./src/bitable.js";
import { feishuPlugin } from "./src/channel.js"; import { feishuPlugin } from "./src/channel.js";
import { registerFeishuChatTools } from "./src/chat.js"; import { registerFeishuChatTools } from "./src/chat.js";

View File

@ -1,5 +1,5 @@
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id"; import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { normalizeResolvedSecretInputString, normalizeSecretInputString } from "./secret-input.js"; import { normalizeResolvedSecretInputString, normalizeSecretInputString } from "./secret-input.js";
import type { import type {
FeishuConfig, FeishuConfig,

View File

@ -1,6 +1,6 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import { Type } from "@sinclair/typebox"; import { Type } from "@sinclair/typebox";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { createFeishuToolClient } from "./tool-account.js"; import { createFeishuToolClient } from "./tool-account.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, PluginRuntime, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { beforeEach, describe, expect, it, vi } from "vitest"; import { beforeEach, describe, expect, it, vi } from "vitest";
import { createPluginRuntimeMock } from "../../test-utils/plugin-runtime-mock.js"; import { createPluginRuntimeMock } from "../../test-utils/plugin-runtime-mock.js";
import type { FeishuMessageEvent } from "./bot.js"; import type { FeishuMessageEvent } from "./bot.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { import {
buildAgentMediaPayload, buildAgentMediaPayload,
buildPendingHistoryContextFromMap, buildPendingHistoryContextFromMap,
@ -11,7 +11,7 @@ import {
resolveOpenProviderRuntimeGroupPolicy, resolveOpenProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy, resolveDefaultGroupPolicy,
warnMissingProviderGroupPolicyFallbackOnce, warnMissingProviderGroupPolicyFallbackOnce,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { tryRecordMessage, tryRecordMessagePersistent } from "./dedup.js"; import { tryRecordMessage, tryRecordMessagePersistent } from "./dedup.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { handleFeishuMessage, type FeishuMessageEvent } from "./bot.js"; import { handleFeishuMessage, type FeishuMessageEvent } from "./bot.js";

View File

@ -1,4 +1,4 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import type { OpenClawConfig } from "openclaw/plugin-sdk/feishu";
import { describe, expect, it, vi } from "vitest"; import { describe, expect, it, vi } from "vitest";
const probeFeishuMock = vi.hoisted(() => vi.fn()); const probeFeishuMock = vi.hoisted(() => vi.fn());

View File

@ -1,4 +1,4 @@
import type { ChannelMeta, ChannelPlugin, ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ChannelMeta, ChannelPlugin, ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { import {
buildBaseChannelStatusSummary, buildBaseChannelStatusSummary,
createDefaultChannelRuntimeState, createDefaultChannelRuntimeState,
@ -6,7 +6,7 @@ import {
PAIRING_APPROVED_MESSAGE, PAIRING_APPROVED_MESSAGE,
resolveAllowlistProviderRuntimeGroupPolicy, resolveAllowlistProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy, resolveDefaultGroupPolicy,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { import {
resolveFeishuAccount, resolveFeishuAccount,
resolveFeishuCredentials, resolveFeishuCredentials,

View File

@ -1,5 +1,5 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { FeishuChatSchema, type FeishuChatParams } from "./chat-schema.js"; import { FeishuChatSchema, type FeishuChatParams } from "./chat-schema.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";

View File

@ -4,7 +4,7 @@ import {
createDedupeCache, createDedupeCache,
createPersistentDedupe, createPersistentDedupe,
readJsonFileWithFallback, readJsonFileWithFallback,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
// Persistent TTL: 24 hours — survives restarts & WebSocket reconnects. // Persistent TTL: 24 hours — survives restarts & WebSocket reconnects.
const DEDUP_TTL_MS = 24 * 60 * 60 * 1000; const DEDUP_TTL_MS = 24 * 60 * 60 * 1000;

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { normalizeFeishuTarget } from "./targets.js"; import { normalizeFeishuTarget } from "./targets.js";

View File

@ -1,4 +1,4 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { describe, expect, test, vi } from "vitest"; import { describe, expect, test, vi } from "vitest";
import { registerFeishuDocTools } from "./docx.js"; import { registerFeishuDocTools } from "./docx.js";
import { createToolFactoryHarness } from "./tool-factory-test-harness.js"; import { createToolFactoryHarness } from "./tool-factory-test-harness.js";

View File

@ -4,7 +4,7 @@ import { isAbsolute } from "node:path";
import { basename } from "node:path"; import { basename } from "node:path";
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import { Type } from "@sinclair/typebox"; import { Type } from "@sinclair/typebox";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { FeishuDocSchema, type FeishuDocParams } from "./doc-schema.js"; import { FeishuDocSchema, type FeishuDocParams } from "./doc-schema.js";
import { BATCH_SIZE, insertBlocksInBatches } from "./docx-batch-insert.js"; import { BATCH_SIZE, insertBlocksInBatches } from "./docx-batch-insert.js";

View File

@ -1,5 +1,5 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { FeishuDriveSchema, type FeishuDriveParams } from "./drive-schema.js"; import { FeishuDriveSchema, type FeishuDriveParams } from "./drive-schema.js";
import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js"; import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js";

View File

@ -1,7 +1,7 @@
import fs from "node:fs"; import fs from "node:fs";
import os from "node:os"; import os from "node:os";
import path from "node:path"; import path from "node:path";
import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/compat"; import type { OpenClawConfig, PluginRuntime } from "openclaw/plugin-sdk/feishu";
import type { DynamicAgentCreationConfig } from "./types.js"; import type { DynamicAgentCreationConfig } from "./types.js";
export type MaybeCreateDynamicAgentResult = { export type MaybeCreateDynamicAgentResult = {

View File

@ -1,7 +1,7 @@
import fs from "fs"; import fs from "fs";
import path from "path"; import path from "path";
import { Readable } from "stream"; import { Readable } from "stream";
import { withTempDownloadPath, type ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import { withTempDownloadPath, type ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { normalizeFeishuExternalKey } from "./external-keys.js"; import { normalizeFeishuExternalKey } from "./external-keys.js";

View File

@ -1,6 +1,6 @@
import * as crypto from "crypto"; import * as crypto from "crypto";
import * as Lark from "@larksuiteoapi/node-sdk"; import * as Lark from "@larksuiteoapi/node-sdk";
import type { ClawdbotConfig, RuntimeEnv, HistoryEntry } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv, HistoryEntry } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { raceWithTimeoutAndAbort } from "./async.js"; import { raceWithTimeoutAndAbort } from "./async.js";
import { import {

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { hasControlCommand } from "../../../src/auto-reply/command-detection.js"; import { hasControlCommand } from "../../../src/auto-reply/command-detection.js";
import { import {

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { afterEach, describe, expect, it, vi } from "vitest"; import { afterEach, describe, expect, it, vi } from "vitest";
import { monitorFeishuProvider, stopFeishuMonitor } from "./monitor.js"; import { monitorFeishuProvider, stopFeishuMonitor } from "./monitor.js";

View File

@ -1,4 +1,4 @@
import type { RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { probeFeishu } from "./probe.js"; import { probeFeishu } from "./probe.js";
import type { ResolvedFeishuAccount } from "./types.js"; import type { ResolvedFeishuAccount } from "./types.js";

View File

@ -6,7 +6,7 @@ import {
type RuntimeEnv, type RuntimeEnv,
WEBHOOK_ANOMALY_COUNTER_DEFAULTS as WEBHOOK_ANOMALY_COUNTER_DEFAULTS_FROM_SDK, WEBHOOK_ANOMALY_COUNTER_DEFAULTS as WEBHOOK_ANOMALY_COUNTER_DEFAULTS_FROM_SDK,
WEBHOOK_RATE_LIMIT_DEFAULTS as WEBHOOK_RATE_LIMIT_DEFAULTS_FROM_SDK, WEBHOOK_RATE_LIMIT_DEFAULTS as WEBHOOK_RATE_LIMIT_DEFAULTS_FROM_SDK,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
export const wsClients = new Map<string, Lark.WSClient>(); export const wsClients = new Map<string, Lark.WSClient>();
export const httpServers = new Map<string, http.Server>(); export const httpServers = new Map<string, http.Server>();

View File

@ -4,7 +4,7 @@ import {
applyBasicWebhookRequestGuards, applyBasicWebhookRequestGuards,
type RuntimeEnv, type RuntimeEnv,
installRequestBodyLimitGuard, installRequestBodyLimitGuard,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { createFeishuWSClient } from "./client.js"; import { createFeishuWSClient } from "./client.js";
import { import {
botOpenIds, botOpenIds,

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts, resolveFeishuAccount } from "./accounts.js"; import { listEnabledFeishuAccounts, resolveFeishuAccount } from "./accounts.js";
import { import {
monitorSingleAccount, monitorSingleAccount,

View File

@ -1,6 +1,6 @@
import { createServer } from "node:http"; import { createServer } from "node:http";
import type { AddressInfo } from "node:net"; import type { AddressInfo } from "node:net";
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { afterEach, describe, expect, it, vi } from "vitest"; import { afterEach, describe, expect, it, vi } from "vitest";
const probeFeishuMock = vi.hoisted(() => vi.fn()); const probeFeishuMock = vi.hoisted(() => vi.fn());

View File

@ -1,4 +1,4 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat"; import type { OpenClawConfig } from "openclaw/plugin-sdk/feishu";
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { feishuOnboardingAdapter } from "./onboarding.js"; import { feishuOnboardingAdapter } from "./onboarding.js";

View File

@ -5,14 +5,14 @@ import type {
DmPolicy, DmPolicy,
SecretInput, SecretInput,
WizardPrompter, WizardPrompter,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { import {
addWildcardAllowFrom, addWildcardAllowFrom,
DEFAULT_ACCOUNT_ID, DEFAULT_ACCOUNT_ID,
formatDocsLink, formatDocsLink,
hasConfiguredSecretInput, hasConfiguredSecretInput,
promptSingleChannelSecretInput, promptSingleChannelSecretInput,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuCredentials } from "./accounts.js"; import { resolveFeishuCredentials } from "./accounts.js";
import { probeFeishu } from "./probe.js"; import { probeFeishu } from "./probe.js";
import type { FeishuConfig } from "./types.js"; import type { FeishuConfig } from "./types.js";

View File

@ -1,6 +1,6 @@
import fs from "fs"; import fs from "fs";
import path from "path"; import path from "path";
import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/compat"; import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { sendMediaFeishu } from "./media.js"; import { sendMediaFeishu } from "./media.js";
import { getFeishuRuntime } from "./runtime.js"; import { getFeishuRuntime } from "./runtime.js";

View File

@ -1,5 +1,5 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { FeishuPermSchema, type FeishuPermParams } from "./perm-schema.js"; import { FeishuPermSchema, type FeishuPermParams } from "./perm-schema.js";
import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js"; import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js";

View File

@ -2,7 +2,7 @@ import type {
AllowlistMatch, AllowlistMatch,
ChannelGroupContext, ChannelGroupContext,
GroupToolPolicyConfig, GroupToolPolicyConfig,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { normalizeFeishuTarget } from "./targets.js"; import { normalizeFeishuTarget } from "./targets.js";
import type { FeishuConfig, FeishuGroupConfig } from "./types.js"; import type { FeishuConfig, FeishuGroupConfig } from "./types.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";

View File

@ -5,7 +5,7 @@ import {
type ClawdbotConfig, type ClawdbotConfig,
type ReplyPayload, type ReplyPayload,
type RuntimeEnv, type RuntimeEnv,
} from "openclaw/plugin-sdk/compat"; } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { sendMediaFeishu } from "./media.js"; import { sendMediaFeishu } from "./media.js";

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { beforeEach, describe, expect, it, vi } from "vitest"; import { beforeEach, describe, expect, it, vi } from "vitest";
import { resolveFeishuSendTarget } from "./send-target.js"; import { resolveFeishuSendTarget } from "./send-target.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { resolveReceiveIdType, normalizeFeishuTarget } from "./targets.js"; import { resolveReceiveIdType, normalizeFeishuTarget } from "./targets.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { beforeEach, describe, expect, it, vi } from "vitest"; import { beforeEach, describe, expect, it, vi } from "vitest";
import { getMessageFeishu } from "./send.js"; import { getMessageFeishu } from "./send.js";

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import type { MentionTarget } from "./mention.js"; import type { MentionTarget } from "./mention.js";

View File

@ -3,7 +3,7 @@
*/ */
import type { Client } from "@larksuiteoapi/node-sdk"; import type { Client } from "@larksuiteoapi/node-sdk";
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat"; import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/feishu";
import type { FeishuDomain } from "./types.js"; import type { FeishuDomain } from "./types.js";
type Credentials = { appId: string; appSecret: string; domain?: FeishuDomain }; type Credentials = { appId: string; appSecret: string; domain?: FeishuDomain };

View File

@ -1,4 +1,4 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { beforeEach, describe, expect, test, vi } from "vitest"; import { beforeEach, describe, expect, test, vi } from "vitest";
import { registerFeishuBitableTools } from "./bitable.js"; import { registerFeishuBitableTools } from "./bitable.js";
import { registerFeishuDriveTools } from "./drive.js"; import { registerFeishuDriveTools } from "./drive.js";

View File

@ -1,5 +1,5 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { resolveToolsConfig } from "./tools-config.js"; import { resolveToolsConfig } from "./tools-config.js";

View File

@ -1,4 +1,4 @@
import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
type ToolContextLike = { type ToolContextLike = {
agentAccountId?: string; agentAccountId?: string;

View File

@ -1,4 +1,4 @@
import type { BaseProbeResult } from "openclaw/plugin-sdk/compat"; import type { BaseProbeResult } from "openclaw/plugin-sdk/feishu";
import type { import type {
FeishuConfigSchema, FeishuConfigSchema,
FeishuGroupSchema, FeishuGroupSchema,

View File

@ -1,4 +1,4 @@
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/compat"; import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
import { resolveFeishuAccount } from "./accounts.js"; import { resolveFeishuAccount } from "./accounts.js";
import { createFeishuClient } from "./client.js"; import { createFeishuClient } from "./client.js";
import { getFeishuRuntime } from "./runtime.js"; import { getFeishuRuntime } from "./runtime.js";

View File

@ -1,5 +1,5 @@
import type * as Lark from "@larksuiteoapi/node-sdk"; import type * as Lark from "@larksuiteoapi/node-sdk";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/compat"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
import { listEnabledFeishuAccounts } from "./accounts.js"; import { listEnabledFeishuAccounts } from "./accounts.js";
import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js"; import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js";
import { FeishuWikiSchema, type FeishuWikiParams } from "./wiki-schema.js"; import { FeishuWikiSchema, type FeishuWikiParams } from "./wiki-schema.js";