@noah-claw/feishu 0.1.0 → 0.1.1
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.
- package/package.json +3 -2
- package/src/accounts.ts +2 -2
- package/src/bot.ts +2 -2
- package/src/channel.ts +2 -2
- package/src/directory.ts +1 -1
- package/src/media.ts +1 -1
- package/src/monitor.ts +1 -1
- package/src/onboarding.ts +2 -2
- package/src/outbound.ts +1 -1
- package/src/policy.ts +1 -1
- package/src/reactions.ts +1 -1
- package/src/reply-dispatcher.ts +1 -1
- package/src/runtime.ts +1 -1
- package/src/send.ts +1 -1
- package/src/typing.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noah-claw/feishu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw Feishu/Lark channel plugin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@larksuiteoapi/node-sdk": "^1.30.0",
|
|
49
|
-
"zod": "^4.3.6"
|
|
49
|
+
"zod": "^4.3.6",
|
|
50
|
+
"openclaw": "^2026.1.24"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@types/node": "^25.0.10",
|
package/src/accounts.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ClawdbotConfig } from "
|
|
2
|
-
import { DEFAULT_ACCOUNT_ID } from "
|
|
1
|
+
import type { ClawdbotConfig } from "openclaw/plugin-sdk";
|
|
2
|
+
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk";
|
|
3
3
|
import type { FeishuConfig, FeishuDomain, ResolvedFeishuAccount } from "./types.js";
|
|
4
4
|
|
|
5
5
|
export function resolveFeishuCredentials(cfg?: FeishuConfig): {
|
package/src/bot.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ClawdbotConfig, RuntimeEnv } from "
|
|
1
|
+
import type { ClawdbotConfig, RuntimeEnv } from "openclaw/plugin-sdk";
|
|
2
2
|
import {
|
|
3
3
|
buildPendingHistoryContextFromMap,
|
|
4
4
|
recordPendingHistoryEntryIfEnabled,
|
|
5
5
|
clearHistoryEntriesIfEnabled,
|
|
6
6
|
DEFAULT_GROUP_HISTORY_LIMIT,
|
|
7
7
|
type HistoryEntry,
|
|
8
|
-
} from "
|
|
8
|
+
} from "openclaw/plugin-sdk";
|
|
9
9
|
import type { FeishuConfig, FeishuMessageContext, FeishuMediaInfo } from "./types.js";
|
|
10
10
|
import { getFeishuRuntime } from "./runtime.js";
|
|
11
11
|
import { createFeishuClient } from "./client.js";
|
package/src/channel.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChannelPlugin, ClawdbotConfig } from "
|
|
2
|
-
import { DEFAULT_ACCOUNT_ID, PAIRING_APPROVED_MESSAGE } from "
|
|
1
|
+
import type { ChannelPlugin, ClawdbotConfig } from "openclaw/plugin-sdk";
|
|
2
|
+
import { DEFAULT_ACCOUNT_ID, PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk";
|
|
3
3
|
import type { ResolvedFeishuAccount, FeishuConfig } from "./types.js";
|
|
4
4
|
import { resolveFeishuAccount, resolveFeishuCredentials } from "./accounts.js";
|
|
5
5
|
import { feishuOutbound } from "./outbound.js";
|
package/src/directory.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClawdbotConfig } from "
|
|
1
|
+
import type { ClawdbotConfig } from "openclaw/plugin-sdk";
|
|
2
2
|
import type { FeishuConfig } from "./types.js";
|
|
3
3
|
import { createFeishuClient } from "./client.js";
|
|
4
4
|
import { normalizeFeishuTarget } from "./targets.js";
|
package/src/media.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClawdbotConfig } from "
|
|
1
|
+
import type { ClawdbotConfig } from "openclaw/plugin-sdk";
|
|
2
2
|
import type { FeishuConfig } from "./types.js";
|
|
3
3
|
import { createFeishuClient } from "./client.js";
|
|
4
4
|
import { resolveReceiveIdType, normalizeFeishuTarget } from "./targets.js";
|
package/src/monitor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Lark from "@larksuiteoapi/node-sdk";
|
|
2
|
-
import type { ClawdbotConfig, RuntimeEnv, HistoryEntry } from "
|
|
2
|
+
import type { ClawdbotConfig, RuntimeEnv, HistoryEntry } from "openclaw/plugin-sdk";
|
|
3
3
|
import type { FeishuConfig } from "./types.js";
|
|
4
4
|
import { createFeishuWSClient, createEventDispatcher } from "./client.js";
|
|
5
5
|
import { resolveFeishuCredentials } from "./accounts.js";
|
package/src/onboarding.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type {
|
|
|
4
4
|
ClawdbotConfig,
|
|
5
5
|
DmPolicy,
|
|
6
6
|
WizardPrompter,
|
|
7
|
-
} from "
|
|
8
|
-
import { addWildcardAllowFrom, DEFAULT_ACCOUNT_ID, formatDocsLink } from "
|
|
7
|
+
} from "openclaw/plugin-sdk";
|
|
8
|
+
import { addWildcardAllowFrom, DEFAULT_ACCOUNT_ID, formatDocsLink } from "openclaw/plugin-sdk";
|
|
9
9
|
|
|
10
10
|
import { resolveFeishuCredentials } from "./accounts.js";
|
|
11
11
|
import { probeFeishu } from "./probe.js";
|
package/src/outbound.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelOutboundAdapter } from "
|
|
1
|
+
import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk";
|
|
2
2
|
import { getFeishuRuntime } from "./runtime.js";
|
|
3
3
|
import { sendMessageFeishu } from "./send.js";
|
|
4
4
|
import { sendMediaFeishu } from "./media.js";
|
package/src/policy.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelGroupContext, GroupToolPolicyConfig } from "
|
|
1
|
+
import type { ChannelGroupContext, GroupToolPolicyConfig } from "openclaw/plugin-sdk";
|
|
2
2
|
import type { FeishuConfig, FeishuGroupConfig } from "./types.js";
|
|
3
3
|
|
|
4
4
|
export type FeishuAllowlistMatch = {
|
package/src/reactions.ts
CHANGED
package/src/reply-dispatcher.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
type ClawdbotConfig,
|
|
6
6
|
type RuntimeEnv,
|
|
7
7
|
type ReplyPayload,
|
|
8
|
-
} from "
|
|
8
|
+
} from "openclaw/plugin-sdk";
|
|
9
9
|
import { getFeishuRuntime } from "./runtime.js";
|
|
10
10
|
import { sendMessageFeishu, sendMarkdownCardFeishu } from "./send.js";
|
|
11
11
|
import type { FeishuConfig } from "./types.js";
|
package/src/runtime.ts
CHANGED
package/src/send.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClawdbotConfig } from "
|
|
1
|
+
import type { ClawdbotConfig } from "openclaw/plugin-sdk";
|
|
2
2
|
import type { FeishuConfig, FeishuSendResult } from "./types.js";
|
|
3
3
|
import { createFeishuClient } from "./client.js";
|
|
4
4
|
import { resolveReceiveIdType, normalizeFeishuTarget } from "./targets.js";
|
package/src/typing.ts
CHANGED