@nextclaw/channel-plugin-feishu 0.2.14 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -2
  3. package/src/accounts.test.ts +10 -0
  4. package/src/accounts.ts +12 -12
  5. package/src/bitable.ts +1 -1
  6. package/src/bot.test.ts +1 -1
  7. package/src/bot.ts +2 -2
  8. package/src/card-action.ts +1 -1
  9. package/src/channel.test.ts +1 -1
  10. package/src/channel.ts +3 -3
  11. package/src/chat.ts +1 -1
  12. package/src/config-schema.ts +1 -1
  13. package/src/dedup.ts +1 -1
  14. package/src/directory.test.ts +1 -1
  15. package/src/directory.ts +2 -2
  16. package/src/docx.account-selection.test.ts +1 -1
  17. package/src/docx.ts +1 -1
  18. package/src/drive.ts +1 -1
  19. package/src/dynamic-agent.ts +1 -1
  20. package/src/media.ts +1 -1
  21. package/src/monitor.account.ts +1 -1
  22. package/src/monitor.reaction.test.ts +1 -1
  23. package/src/monitor.startup.test.ts +1 -1
  24. package/src/monitor.startup.ts +1 -1
  25. package/src/monitor.state.ts +1 -1
  26. package/src/monitor.transport.ts +1 -1
  27. package/src/monitor.ts +1 -1
  28. package/src/monitor.webhook.test-helpers.ts +1 -1
  29. package/src/nextclaw-sdk/account-id.ts +31 -0
  30. package/src/nextclaw-sdk/compat.ts +8 -0
  31. package/src/nextclaw-sdk/core-channel.ts +296 -0
  32. package/src/nextclaw-sdk/core-pairing.ts +224 -0
  33. package/src/nextclaw-sdk/core.ts +26 -0
  34. package/src/nextclaw-sdk/dedupe.ts +246 -0
  35. package/src/nextclaw-sdk/feishu.ts +77 -0
  36. package/src/nextclaw-sdk/history.ts +127 -0
  37. package/src/nextclaw-sdk/network-body.ts +245 -0
  38. package/src/nextclaw-sdk/network-fetch.ts +129 -0
  39. package/src/nextclaw-sdk/network-webhook.ts +182 -0
  40. package/src/nextclaw-sdk/network.ts +13 -0
  41. package/src/nextclaw-sdk/runtime-store.ts +26 -0
  42. package/src/nextclaw-sdk/secrets-config.ts +109 -0
  43. package/src/nextclaw-sdk/secrets-core.ts +170 -0
  44. package/src/nextclaw-sdk/secrets-prompt.ts +305 -0
  45. package/src/nextclaw-sdk/secrets.ts +18 -0
  46. package/src/nextclaw-sdk/types.ts +300 -0
  47. package/src/onboarding.status.test.ts +1 -1
  48. package/src/onboarding.ts +2 -2
  49. package/src/outbound.ts +1 -1
  50. package/src/perm.ts +1 -1
  51. package/src/policy.ts +2 -2
  52. package/src/reactions.ts +1 -1
  53. package/src/reply-dispatcher.ts +1 -1
  54. package/src/runtime.ts +2 -2
  55. package/src/secret-input.ts +1 -1
  56. package/src/send-target.test.ts +1 -1
  57. package/src/send-target.ts +1 -1
  58. package/src/send.test.ts +1 -1
  59. package/src/send.ts +1 -1
  60. package/src/streaming-card.ts +1 -1
  61. package/src/tool-account-routing.test.ts +1 -1
  62. package/src/tool-account.ts +1 -1
  63. package/src/tool-factory-test-harness.ts +1 -1
  64. package/src/types.ts +1 -1
  65. package/src/typing.ts +1 -1
  66. package/src/wiki.ts +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  hasConfiguredSecretInput,
4
4
  normalizeResolvedSecretInputString,
5
5
  normalizeSecretInputString,
6
- } from "openclaw/plugin-sdk/feishu";
6
+ } from "./nextclaw-sdk/feishu.js";
7
7
 
8
8
  export {
9
9
  buildSecretInputSchema,
@@ -1,4 +1,4 @@
1
- import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
1
+ import type { ClawdbotConfig } from "./nextclaw-sdk/feishu.js";
2
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
3
  import { resolveFeishuSendTarget } from "./send-target.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
1
+ import type { ClawdbotConfig } from "./nextclaw-sdk/feishu.js";
2
2
  import { resolveFeishuAccount } from "./accounts.js";
3
3
  import { createFeishuClient } from "./client.js";
4
4
  import { resolveReceiveIdType, normalizeFeishuTarget } from "./targets.js";
package/src/send.test.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
1
+ import type { ClawdbotConfig } from "./nextclaw-sdk/feishu.js";
2
2
  import { beforeEach, describe, expect, it, vi } from "vitest";
3
3
  import { getMessageFeishu } from "./send.js";
4
4
 
package/src/send.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ClawdbotConfig } from "openclaw/plugin-sdk/feishu";
1
+ import type { ClawdbotConfig } from "./nextclaw-sdk/feishu.js";
2
2
  import { resolveFeishuAccount } from "./accounts.js";
3
3
  import { createFeishuClient } from "./client.js";
4
4
  import type { MentionTarget } from "./mention.js";
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import type { Client } from "@larksuiteoapi/node-sdk";
6
- import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/feishu";
6
+ import { fetchWithSsrFGuard } from "./nextclaw-sdk/feishu.js";
7
7
  import type { FeishuDomain } from "./types.js";
8
8
 
9
9
  type Credentials = { appId: string; appSecret: string; domain?: FeishuDomain };
@@ -1,4 +1,4 @@
1
- import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
1
+ import type { OpenClawPluginApi } from "./nextclaw-sdk/feishu.js";
2
2
  import { beforeEach, describe, expect, test, vi } from "vitest";
3
3
  import { registerFeishuBitableTools } from "./bitable.js";
4
4
  import { registerFeishuDriveTools } from "./drive.js";
@@ -1,5 +1,5 @@
1
1
  import type * as Lark from "@larksuiteoapi/node-sdk";
2
- import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
2
+ import type { OpenClawPluginApi } from "./nextclaw-sdk/feishu.js";
3
3
  import { resolveFeishuAccount } from "./accounts.js";
4
4
  import { createFeishuClient } from "./client.js";
5
5
  import { resolveToolsConfig } from "./tools-config.js";
@@ -1,4 +1,4 @@
1
- import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
1
+ import type { AnyAgentTool, OpenClawPluginApi } from "./nextclaw-sdk/feishu.js";
2
2
 
3
3
  type ToolContextLike = {
4
4
  agentAccountId?: string;
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BaseProbeResult } from "openclaw/plugin-sdk/feishu";
1
+ import type { BaseProbeResult } from "./nextclaw-sdk/feishu.js";
2
2
  import type {
3
3
  FeishuConfigSchema,
4
4
  FeishuGroupSchema,
package/src/typing.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk/feishu";
1
+ import type { ClawdbotConfig, RuntimeEnv } from "./nextclaw-sdk/feishu.js";
2
2
  import { resolveFeishuAccount } from "./accounts.js";
3
3
  import { createFeishuClient } from "./client.js";
4
4
  import { getFeishuRuntime } from "./runtime.js";
package/src/wiki.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type * as Lark from "@larksuiteoapi/node-sdk";
2
- import type { OpenClawPluginApi } from "openclaw/plugin-sdk/feishu";
2
+ import type { OpenClawPluginApi } from "./nextclaw-sdk/feishu.js";
3
3
  import { listEnabledFeishuAccounts } from "./accounts.js";
4
4
  import { createFeishuToolClient, resolveAnyEnabledFeishuToolsConfig } from "./tool-account.js";
5
5
  import {