@larksuite/openclaw-lark 2025.7.15-beta.0
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/LICENSE +21 -0
- package/README.md +76 -0
- package/bin/openclaw-lark.js +39 -0
- package/index.d.ts +36 -0
- package/index.js +188 -0
- package/openclaw.plugin.json +64 -0
- package/package.json +63 -0
- package/secret-contract-api.d.ts +15 -0
- package/secret-contract-api.js +78 -0
- package/skills/feishu-bitable/SKILL.md +248 -0
- package/skills/feishu-bitable/references/examples.md +813 -0
- package/skills/feishu-bitable/references/field-properties.md +763 -0
- package/skills/feishu-bitable/references/record-values.md +911 -0
- package/skills/feishu-calendar/SKILL.md +242 -0
- package/skills/feishu-channel-rules/SKILL.md +18 -0
- package/skills/feishu-channel-rules/references/markdown-syntax.md +138 -0
- package/skills/feishu-create-doc/SKILL.md +719 -0
- package/skills/feishu-fetch-doc/SKILL.md +93 -0
- package/skills/feishu-im-read/SKILL.md +163 -0
- package/skills/feishu-task/SKILL.md +340 -0
- package/skills/feishu-troubleshoot/SKILL.md +70 -0
- package/skills/feishu-update-doc/SKILL.md +285 -0
- package/src/card/builder.d.ts +152 -0
- package/src/card/builder.js +794 -0
- package/src/card/card-error.d.ts +91 -0
- package/src/card/card-error.js +206 -0
- package/src/card/cardkit.d.ts +90 -0
- package/src/card/cardkit.js +203 -0
- package/src/card/flush-controller.d.ts +45 -0
- package/src/card/flush-controller.js +138 -0
- package/src/card/image-resolver.d.ts +45 -0
- package/src/card/image-resolver.js +116 -0
- package/src/card/markdown-style.d.ts +16 -0
- package/src/card/markdown-style.js +106 -0
- package/src/card/reasoning-utils.d.ts +14 -0
- package/src/card/reasoning-utils.js +64 -0
- package/src/card/reply-dispatcher-types.d.ts +132 -0
- package/src/card/reply-dispatcher-types.js +61 -0
- package/src/card/reply-dispatcher.d.ts +15 -0
- package/src/card/reply-dispatcher.js +447 -0
- package/src/card/reply-mode.d.ts +41 -0
- package/src/card/reply-mode.js +70 -0
- package/src/card/streaming-card-controller.d.ts +118 -0
- package/src/card/streaming-card-controller.js +1045 -0
- package/src/card/tool-use-config.d.ts +26 -0
- package/src/card/tool-use-config.js +76 -0
- package/src/card/tool-use-display.d.ts +37 -0
- package/src/card/tool-use-display.js +476 -0
- package/src/card/tool-use-trace-store.d.ts +51 -0
- package/src/card/tool-use-trace-store.js +271 -0
- package/src/card/unavailable-guard.d.ts +35 -0
- package/src/card/unavailable-guard.js +87 -0
- package/src/channel/abort-detect.d.ts +47 -0
- package/src/channel/abort-detect.js +219 -0
- package/src/channel/chat-queue.d.ts +41 -0
- package/src/channel/chat-queue.js +68 -0
- package/src/channel/config-adapter.d.ts +23 -0
- package/src/channel/config-adapter.js +107 -0
- package/src/channel/directory.d.ts +57 -0
- package/src/channel/directory.js +197 -0
- package/src/channel/event-handlers.d.ts +17 -0
- package/src/channel/event-handlers.js +380 -0
- package/src/channel/interactive-dispatch.d.ts +59 -0
- package/src/channel/interactive-dispatch.js +195 -0
- package/src/channel/monitor.d.ts +17 -0
- package/src/channel/monitor.js +140 -0
- package/src/channel/onboarding-config.d.ts +18 -0
- package/src/channel/onboarding-config.js +96 -0
- package/src/channel/onboarding-migrate.d.ts +25 -0
- package/src/channel/onboarding-migrate.js +70 -0
- package/src/channel/onboarding.d.ts +12 -0
- package/src/channel/onboarding.js +300 -0
- package/src/channel/plugin.d.ts +13 -0
- package/src/channel/plugin.js +310 -0
- package/src/channel/probe.d.ts +14 -0
- package/src/channel/probe.js +24 -0
- package/src/channel/types.d.ts +37 -0
- package/src/channel/types.js +8 -0
- package/src/commands/auth.d.ts +21 -0
- package/src/commands/auth.js +165 -0
- package/src/commands/diagnose.d.ts +69 -0
- package/src/commands/diagnose.js +848 -0
- package/src/commands/doctor.d.ts +27 -0
- package/src/commands/doctor.js +588 -0
- package/src/commands/index.d.ts +25 -0
- package/src/commands/index.js +219 -0
- package/src/commands/locale.d.ts +7 -0
- package/src/commands/locale.js +8 -0
- package/src/core/accounts.d.ts +51 -0
- package/src/core/accounts.js +219 -0
- package/src/core/agent-config.d.ts +100 -0
- package/src/core/agent-config.js +148 -0
- package/src/core/api-error.d.ts +48 -0
- package/src/core/api-error.js +117 -0
- package/src/core/app-owner-fallback.d.ts +22 -0
- package/src/core/app-owner-fallback.js +39 -0
- package/src/core/app-scope-checker.d.ts +87 -0
- package/src/core/app-scope-checker.js +198 -0
- package/src/core/auth-errors.d.ts +144 -0
- package/src/core/auth-errors.js +160 -0
- package/src/core/card-action-operator.d.ts +33 -0
- package/src/core/card-action-operator.js +30 -0
- package/src/core/chat-info-cache.d.ts +67 -0
- package/src/core/chat-info-cache.js +165 -0
- package/src/core/comment-target.d.ts +65 -0
- package/src/core/comment-target.js +100 -0
- package/src/core/config-schema.d.ts +490 -0
- package/src/core/config-schema.js +223 -0
- package/src/core/device-flow.d.ts +77 -0
- package/src/core/device-flow.js +217 -0
- package/src/core/domains.d.ts +18 -0
- package/src/core/domains.js +34 -0
- package/src/core/feishu-fetch.d.ts +18 -0
- package/src/core/feishu-fetch.js +28 -0
- package/src/core/footer-config.d.ts +24 -0
- package/src/core/footer-config.js +51 -0
- package/src/core/lark-client.d.ts +125 -0
- package/src/core/lark-client.js +468 -0
- package/src/core/lark-logger.d.ts +23 -0
- package/src/core/lark-logger.js +160 -0
- package/src/core/lark-ticket.d.ts +29 -0
- package/src/core/lark-ticket.js +40 -0
- package/src/core/message-unavailable.d.ts +53 -0
- package/src/core/message-unavailable.js +142 -0
- package/src/core/owner-policy.d.ts +32 -0
- package/src/core/owner-policy.js +55 -0
- package/src/core/permission-url.d.ts +22 -0
- package/src/core/permission-url.js +76 -0
- package/src/core/raw-request.d.ts +27 -0
- package/src/core/raw-request.js +90 -0
- package/src/core/runtime-store.d.ts +13 -0
- package/src/core/runtime-store.js +29 -0
- package/src/core/scope-manager.d.ts +168 -0
- package/src/core/scope-manager.js +224 -0
- package/src/core/sdk-compat.d.ts +20 -0
- package/src/core/sdk-compat.js +28 -0
- package/src/core/security-check.d.ts +72 -0
- package/src/core/security-check.js +184 -0
- package/src/core/shutdown-hooks.d.ts +22 -0
- package/src/core/shutdown-hooks.js +61 -0
- package/src/core/synthetic-target.d.ts +33 -0
- package/src/core/synthetic-target.js +40 -0
- package/src/core/targets.d.ts +60 -0
- package/src/core/targets.js +173 -0
- package/src/core/token-store.d.ts +54 -0
- package/src/core/token-store.js +326 -0
- package/src/core/tool-client.d.ts +176 -0
- package/src/core/tool-client.js +426 -0
- package/src/core/tool-scopes.d.ts +156 -0
- package/src/core/tool-scopes.js +344 -0
- package/src/core/tools-config.d.ts +55 -0
- package/src/core/tools-config.js +143 -0
- package/src/core/types.d.ts +91 -0
- package/src/core/types.js +12 -0
- package/src/core/uat-client.d.ts +46 -0
- package/src/core/uat-client.js +192 -0
- package/src/core/version.d.ts +31 -0
- package/src/core/version.js +69 -0
- package/src/messaging/converters/audio.d.ts +8 -0
- package/src/messaging/converters/audio.js +24 -0
- package/src/messaging/converters/calendar.d.ts +13 -0
- package/src/messaging/converters/calendar.js +56 -0
- package/src/messaging/converters/content-converter-helpers.d.ts +30 -0
- package/src/messaging/converters/content-converter-helpers.js +82 -0
- package/src/messaging/converters/content-converter.d.ts +24 -0
- package/src/messaging/converters/content-converter.js +40 -0
- package/src/messaging/converters/file.d.ts +8 -0
- package/src/messaging/converters/file.js +24 -0
- package/src/messaging/converters/folder.d.ts +8 -0
- package/src/messaging/converters/folder.js +24 -0
- package/src/messaging/converters/hongbao.d.ts +8 -0
- package/src/messaging/converters/hongbao.js +20 -0
- package/src/messaging/converters/image.d.ts +8 -0
- package/src/messaging/converters/image.js +22 -0
- package/src/messaging/converters/index.d.ts +8 -0
- package/src/messaging/converters/index.js +53 -0
- package/src/messaging/converters/interactive/card-converter.d.ts +76 -0
- package/src/messaging/converters/interactive/card-converter.js +1177 -0
- package/src/messaging/converters/interactive/card-utils.d.ts +9 -0
- package/src/messaging/converters/interactive/card-utils.js +47 -0
- package/src/messaging/converters/interactive/index.d.ts +8 -0
- package/src/messaging/converters/interactive/index.js +25 -0
- package/src/messaging/converters/interactive/legacy.d.ts +11 -0
- package/src/messaging/converters/interactive/legacy.js +60 -0
- package/src/messaging/converters/interactive/types.d.ts +23 -0
- package/src/messaging/converters/interactive/types.js +27 -0
- package/src/messaging/converters/location.d.ts +8 -0
- package/src/messaging/converters/location.js +23 -0
- package/src/messaging/converters/merge-forward.d.ts +32 -0
- package/src/messaging/converters/merge-forward.js +235 -0
- package/src/messaging/converters/post.d.ts +11 -0
- package/src/messaging/converters/post.js +235 -0
- package/src/messaging/converters/share.d.ts +9 -0
- package/src/messaging/converters/share.js +28 -0
- package/src/messaging/converters/sticker.d.ts +8 -0
- package/src/messaging/converters/sticker.js +22 -0
- package/src/messaging/converters/system.d.ts +12 -0
- package/src/messaging/converters/system.js +36 -0
- package/src/messaging/converters/text.d.ts +8 -0
- package/src/messaging/converters/text.js +18 -0
- package/src/messaging/converters/todo.d.ts +8 -0
- package/src/messaging/converters/todo.js +45 -0
- package/src/messaging/converters/types.d.ts +114 -0
- package/src/messaging/converters/types.js +8 -0
- package/src/messaging/converters/unknown.d.ts +8 -0
- package/src/messaging/converters/unknown.js +20 -0
- package/src/messaging/converters/utils.d.ts +22 -0
- package/src/messaging/converters/utils.js +57 -0
- package/src/messaging/converters/video-chat.d.ts +8 -0
- package/src/messaging/converters/video-chat.js +31 -0
- package/src/messaging/converters/video.d.ts +8 -0
- package/src/messaging/converters/video.js +35 -0
- package/src/messaging/converters/vote.d.ts +8 -0
- package/src/messaging/converters/vote.js +28 -0
- package/src/messaging/inbound/bot-content.d.ts +84 -0
- package/src/messaging/inbound/bot-content.js +117 -0
- package/src/messaging/inbound/bot-loop-guard.d.ts +48 -0
- package/src/messaging/inbound/bot-loop-guard.js +89 -0
- package/src/messaging/inbound/comment-context.d.ts +82 -0
- package/src/messaging/inbound/comment-context.js +353 -0
- package/src/messaging/inbound/comment-handler.d.ts +30 -0
- package/src/messaging/inbound/comment-handler.js +269 -0
- package/src/messaging/inbound/dedup.d.ts +59 -0
- package/src/messaging/inbound/dedup.js +121 -0
- package/src/messaging/inbound/dispatch-builders.d.ts +104 -0
- package/src/messaging/inbound/dispatch-builders.js +241 -0
- package/src/messaging/inbound/dispatch-commands.d.ts +22 -0
- package/src/messaging/inbound/dispatch-commands.js +131 -0
- package/src/messaging/inbound/dispatch-context.d.ts +67 -0
- package/src/messaging/inbound/dispatch-context.js +153 -0
- package/src/messaging/inbound/dispatch.d.ts +50 -0
- package/src/messaging/inbound/dispatch.js +477 -0
- package/src/messaging/inbound/enrich.d.ts +102 -0
- package/src/messaging/inbound/enrich.js +236 -0
- package/src/messaging/inbound/gate-effects.d.ts +23 -0
- package/src/messaging/inbound/gate-effects.js +46 -0
- package/src/messaging/inbound/gate.d.ts +91 -0
- package/src/messaging/inbound/gate.js +342 -0
- package/src/messaging/inbound/handler-registry.d.ts +25 -0
- package/src/messaging/inbound/handler-registry.js +23 -0
- package/src/messaging/inbound/handler.d.ts +37 -0
- package/src/messaging/inbound/handler.js +286 -0
- package/src/messaging/inbound/media-resolver.d.ts +32 -0
- package/src/messaging/inbound/media-resolver.js +91 -0
- package/src/messaging/inbound/mention-registry.d.ts +59 -0
- package/src/messaging/inbound/mention-registry.js +115 -0
- package/src/messaging/inbound/mention.d.ts +48 -0
- package/src/messaging/inbound/mention.js +102 -0
- package/src/messaging/inbound/parse-io.d.ts +50 -0
- package/src/messaging/inbound/parse-io.js +86 -0
- package/src/messaging/inbound/parse.d.ts +28 -0
- package/src/messaging/inbound/parse.js +128 -0
- package/src/messaging/inbound/permission.d.ts +17 -0
- package/src/messaging/inbound/permission.js +44 -0
- package/src/messaging/inbound/policy.d.ts +95 -0
- package/src/messaging/inbound/policy.js +168 -0
- package/src/messaging/inbound/reaction-handler.d.ts +62 -0
- package/src/messaging/inbound/reaction-handler.js +259 -0
- package/src/messaging/inbound/sentinel-store.d.ts +37 -0
- package/src/messaging/inbound/sentinel-store.js +98 -0
- package/src/messaging/inbound/synthetic-message.d.ts +26 -0
- package/src/messaging/inbound/synthetic-message.js +59 -0
- package/src/messaging/inbound/user-name-cache-store.d.ts +62 -0
- package/src/messaging/inbound/user-name-cache-store.js +236 -0
- package/src/messaging/inbound/user-name-cache.d.ts +78 -0
- package/src/messaging/inbound/user-name-cache.js +306 -0
- package/src/messaging/inbound/vc-meeting-invited-handler.d.ts +20 -0
- package/src/messaging/inbound/vc-meeting-invited-handler.js +236 -0
- package/src/messaging/inbound/vc-sender.d.ts +41 -0
- package/src/messaging/inbound/vc-sender.js +53 -0
- package/src/messaging/outbound/actions.d.ts +16 -0
- package/src/messaging/outbound/actions.js +329 -0
- package/src/messaging/outbound/bot-peer-context.d.ts +42 -0
- package/src/messaging/outbound/bot-peer-context.js +40 -0
- package/src/messaging/outbound/chat-manage.d.ts +64 -0
- package/src/messaging/outbound/chat-manage.js +117 -0
- package/src/messaging/outbound/deliver.d.ts +186 -0
- package/src/messaging/outbound/deliver.js +410 -0
- package/src/messaging/outbound/fetch.d.ts +12 -0
- package/src/messaging/outbound/fetch.js +17 -0
- package/src/messaging/outbound/forward.d.ts +26 -0
- package/src/messaging/outbound/forward.js +51 -0
- package/src/messaging/outbound/media-url-utils.d.ts +29 -0
- package/src/messaging/outbound/media-url-utils.js +172 -0
- package/src/messaging/outbound/media.d.ts +260 -0
- package/src/messaging/outbound/media.js +865 -0
- package/src/messaging/outbound/normalize-mentions.d.ts +50 -0
- package/src/messaging/outbound/normalize-mentions.js +166 -0
- package/src/messaging/outbound/outbound-mention.d.ts +41 -0
- package/src/messaging/outbound/outbound-mention.js +112 -0
- package/src/messaging/outbound/outbound.d.ts +79 -0
- package/src/messaging/outbound/outbound.js +195 -0
- package/src/messaging/outbound/reactions.d.ts +124 -0
- package/src/messaging/outbound/reactions.js +384 -0
- package/src/messaging/outbound/send.d.ts +153 -0
- package/src/messaging/outbound/send.js +417 -0
- package/src/messaging/outbound/typing.d.ts +60 -0
- package/src/messaging/outbound/typing.js +139 -0
- package/src/messaging/shared/message-lookup.d.ts +54 -0
- package/src/messaging/shared/message-lookup.js +120 -0
- package/src/messaging/types.d.ts +316 -0
- package/src/messaging/types.js +11 -0
- package/src/tools/ask-user-question.d.ts +32 -0
- package/src/tools/ask-user-question.js +922 -0
- package/src/tools/auto-auth.d.ts +57 -0
- package/src/tools/auto-auth.js +904 -0
- package/src/tools/helpers.d.ts +264 -0
- package/src/tools/helpers.js +389 -0
- package/src/tools/mcp/doc/create.d.ts +12 -0
- package/src/tools/mcp/doc/create.js +47 -0
- package/src/tools/mcp/doc/fetch.d.ts +12 -0
- package/src/tools/mcp/doc/fetch.js +39 -0
- package/src/tools/mcp/doc/index.d.ts +12 -0
- package/src/tools/mcp/doc/index.js +50 -0
- package/src/tools/mcp/doc/update.d.ts +12 -0
- package/src/tools/mcp/doc/update.js +64 -0
- package/src/tools/mcp/shared.d.ts +59 -0
- package/src/tools/mcp/shared.js +239 -0
- package/src/tools/oapi/bitable/app-table-field.d.ts +16 -0
- package/src/tools/oapi/bitable/app-table-field.js +225 -0
- package/src/tools/oapi/bitable/app-table-record.d.ts +20 -0
- package/src/tools/oapi/bitable/app-table-record.js +439 -0
- package/src/tools/oapi/bitable/app-table-view.d.ts +16 -0
- package/src/tools/oapi/bitable/app-table-view.js +172 -0
- package/src/tools/oapi/bitable/app-table.d.ts +17 -0
- package/src/tools/oapi/bitable/app-table.js +195 -0
- package/src/tools/oapi/bitable/app.d.ts +18 -0
- package/src/tools/oapi/bitable/app.js +189 -0
- package/src/tools/oapi/bitable/index.d.ts +9 -0
- package/src/tools/oapi/bitable/index.js +17 -0
- package/src/tools/oapi/calendar/calendar.d.ts +15 -0
- package/src/tools/oapi/calendar/calendar.js +125 -0
- package/src/tools/oapi/calendar/event-attendee.d.ts +14 -0
- package/src/tools/oapi/calendar/event-attendee.js +161 -0
- package/src/tools/oapi/calendar/event.d.ts +16 -0
- package/src/tools/oapi/calendar/event.js +712 -0
- package/src/tools/oapi/calendar/freebusy.d.ts +13 -0
- package/src/tools/oapi/calendar/freebusy.js +114 -0
- package/src/tools/oapi/calendar/index.d.ts +8 -0
- package/src/tools/oapi/calendar/index.js +15 -0
- package/src/tools/oapi/chat/chat.d.ts +16 -0
- package/src/tools/oapi/chat/chat.js +127 -0
- package/src/tools/oapi/chat/index.d.ts +10 -0
- package/src/tools/oapi/chat/index.js +23 -0
- package/src/tools/oapi/chat/members.d.ts +11 -0
- package/src/tools/oapi/chat/members.js +84 -0
- package/src/tools/oapi/common/get-user.d.ts +12 -0
- package/src/tools/oapi/common/get-user.js +109 -0
- package/src/tools/oapi/common/index.d.ts +6 -0
- package/src/tools/oapi/common/index.js +11 -0
- package/src/tools/oapi/common/search-user.d.ts +11 -0
- package/src/tools/oapi/common/search-user.js +76 -0
- package/src/tools/oapi/drive/doc-comments.d.ts +15 -0
- package/src/tools/oapi/drive/doc-comments.js +351 -0
- package/src/tools/oapi/drive/doc-media.d.ts +19 -0
- package/src/tools/oapi/drive/doc-media.js +371 -0
- package/src/tools/oapi/drive/file.d.ts +19 -0
- package/src/tools/oapi/drive/file.js +519 -0
- package/src/tools/oapi/drive/index.d.ts +12 -0
- package/src/tools/oapi/drive/index.js +45 -0
- package/src/tools/oapi/helpers.d.ts +183 -0
- package/src/tools/oapi/helpers.js +385 -0
- package/src/tools/oapi/im/format-messages.d.ts +50 -0
- package/src/tools/oapi/im/format-messages.js +169 -0
- package/src/tools/oapi/im/index.d.ts +10 -0
- package/src/tools/oapi/im/index.js +25 -0
- package/src/tools/oapi/im/message-read.d.ts +13 -0
- package/src/tools/oapi/im/message-read.js +419 -0
- package/src/tools/oapi/im/message.d.ts +16 -0
- package/src/tools/oapi/im/message.js +152 -0
- package/src/tools/oapi/im/resource.d.ts +13 -0
- package/src/tools/oapi/im/resource.js +186 -0
- package/src/tools/oapi/im/time-utils.d.ts +46 -0
- package/src/tools/oapi/im/time-utils.js +212 -0
- package/src/tools/oapi/im/user-name-uat.d.ts +26 -0
- package/src/tools/oapi/im/user-name-uat.js +143 -0
- package/src/tools/oapi/index.d.ts +11 -0
- package/src/tools/oapi/index.js +64 -0
- package/src/tools/oapi/sdk-types.d.ts +96 -0
- package/src/tools/oapi/sdk-types.js +13 -0
- package/src/tools/oapi/search/doc-search.d.ts +13 -0
- package/src/tools/oapi/search/doc-search.js +194 -0
- package/src/tools/oapi/search/index.d.ts +12 -0
- package/src/tools/oapi/search/index.js +37 -0
- package/src/tools/oapi/sheets/index.d.ts +12 -0
- package/src/tools/oapi/sheets/index.js +35 -0
- package/src/tools/oapi/sheets/sheet.d.ts +16 -0
- package/src/tools/oapi/sheets/sheet.js +688 -0
- package/src/tools/oapi/task/attachment.d.ts +18 -0
- package/src/tools/oapi/task/attachment.js +107 -0
- package/src/tools/oapi/task/comment.d.ts +15 -0
- package/src/tools/oapi/task/comment.js +149 -0
- package/src/tools/oapi/task/index.d.ts +11 -0
- package/src/tools/oapi/task/index.js +21 -0
- package/src/tools/oapi/task/section.d.ts +17 -0
- package/src/tools/oapi/task/section.js +293 -0
- package/src/tools/oapi/task/subtask.d.ts +14 -0
- package/src/tools/oapi/task/subtask.js +171 -0
- package/src/tools/oapi/task/task.d.ts +19 -0
- package/src/tools/oapi/task/task.js +512 -0
- package/src/tools/oapi/task/task_agent.d.ts +14 -0
- package/src/tools/oapi/task/task_agent.js +108 -0
- package/src/tools/oapi/task/tasklist.d.ts +19 -0
- package/src/tools/oapi/task/tasklist.js +276 -0
- package/src/tools/oapi/wiki/index.d.ts +12 -0
- package/src/tools/oapi/wiki/index.js +42 -0
- package/src/tools/oapi/wiki/space-node.d.ts +17 -0
- package/src/tools/oapi/wiki/space-node.js +233 -0
- package/src/tools/oapi/wiki/space.d.ts +15 -0
- package/src/tools/oapi/wiki/space.js +133 -0
- package/src/tools/oauth-batch-auth.d.ts +11 -0
- package/src/tools/oauth-batch-auth.js +150 -0
- package/src/tools/oauth-cards.d.ts +39 -0
- package/src/tools/oauth-cards.js +324 -0
- package/src/tools/oauth.d.ts +47 -0
- package/src/tools/oauth.js +592 -0
- package/src/tools/onboarding-auth.d.ts +27 -0
- package/src/tools/onboarding-auth.js +133 -0
- package/src/tools/tat/im/index.d.ts +15 -0
- package/src/tools/tat/im/index.js +22 -0
- package/src/tools/tat/im/resource.d.ts +15 -0
- package/src/tools/tat/im/resource.js +192 -0
- package/tsdown.config.d.ts +2 -0
- package/tsdown.config.js +25 -0
- package/vitest.config.d.ts +2 -0
- package/vitest.config.js +12 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2026 ByteDance Ltd. and/or its affiliates
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* feishu_doc_media tool -- 文档媒体管理(插入 + 下载)
|
|
7
|
+
*
|
|
8
|
+
* Actions:
|
|
9
|
+
* insert - 在飞书文档末尾插入本地图片或文件(3 步流程)
|
|
10
|
+
* download - 下载文档素材或画板缩略图到本地
|
|
11
|
+
*
|
|
12
|
+
* 使用以下 SDK 接口:
|
|
13
|
+
* - sdk.docx.documentBlockChildren.create - 创建子块
|
|
14
|
+
* - sdk.drive.v1.media.uploadAll - 上传素材
|
|
15
|
+
* - sdk.docx.documentBlock.batchUpdate - 批量更新块
|
|
16
|
+
* - sdk.drive.v1.media.download - 下载素材
|
|
17
|
+
* - sdk.board.v1.whiteboard.downloadAsImage - 下载画板缩略图
|
|
18
|
+
*/
|
|
19
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
37
|
+
var ownKeys = function(o) {
|
|
38
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
39
|
+
var ar = [];
|
|
40
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
41
|
+
return ar;
|
|
42
|
+
};
|
|
43
|
+
return ownKeys(o);
|
|
44
|
+
};
|
|
45
|
+
return function (mod) {
|
|
46
|
+
if (mod && mod.__esModule) return mod;
|
|
47
|
+
var result = {};
|
|
48
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
49
|
+
__setModuleDefault(result, mod);
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
})();
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.registerDocMediaTool = registerDocMediaTool;
|
|
55
|
+
const fs = __importStar(require("node:fs/promises"));
|
|
56
|
+
const node_fs_1 = require("node:fs");
|
|
57
|
+
const os = __importStar(require("node:os"));
|
|
58
|
+
const path = __importStar(require("node:path"));
|
|
59
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
60
|
+
const image_size_1 = require("image-size");
|
|
61
|
+
const media_url_utils_1 = require("../../../messaging/outbound/media-url-utils.js");
|
|
62
|
+
const helpers_1 = require("../helpers.js");
|
|
63
|
+
// ---------------------------------------------------------------------------
|
|
64
|
+
// Constants
|
|
65
|
+
// ---------------------------------------------------------------------------
|
|
66
|
+
const MAX_FILE_SIZE = 20 * 1024 * 1024; // 20MB
|
|
67
|
+
const ALIGN_MAP = {
|
|
68
|
+
left: 1,
|
|
69
|
+
center: 2,
|
|
70
|
+
right: 3,
|
|
71
|
+
};
|
|
72
|
+
/** 插入时的媒体类型配置 */
|
|
73
|
+
const MEDIA_CONFIG = {
|
|
74
|
+
image: {
|
|
75
|
+
block_type: 27,
|
|
76
|
+
block_data: { image: {} },
|
|
77
|
+
parent_type: 'docx_image',
|
|
78
|
+
label: '图片',
|
|
79
|
+
},
|
|
80
|
+
file: {
|
|
81
|
+
block_type: 23,
|
|
82
|
+
block_data: { file: { token: '' } },
|
|
83
|
+
parent_type: 'docx_file',
|
|
84
|
+
label: '文件',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
/** MIME type → 扩展名映射 */
|
|
88
|
+
const MIME_TO_EXT = {
|
|
89
|
+
'image/png': '.png',
|
|
90
|
+
'image/jpeg': '.jpg',
|
|
91
|
+
'image/jpg': '.jpg',
|
|
92
|
+
'image/gif': '.gif',
|
|
93
|
+
'image/webp': '.webp',
|
|
94
|
+
'image/svg+xml': '.svg',
|
|
95
|
+
'image/bmp': '.bmp',
|
|
96
|
+
'image/tiff': '.tiff',
|
|
97
|
+
'video/mp4': '.mp4',
|
|
98
|
+
'video/mpeg': '.mpeg',
|
|
99
|
+
'video/quicktime': '.mov',
|
|
100
|
+
'video/x-msvideo': '.avi',
|
|
101
|
+
'video/webm': '.webm',
|
|
102
|
+
'application/pdf': '.pdf',
|
|
103
|
+
'application/msword': '.doc',
|
|
104
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx',
|
|
105
|
+
'application/vnd.ms-excel': '.xls',
|
|
106
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': '.xlsx',
|
|
107
|
+
'application/vnd.ms-powerpoint': '.ppt',
|
|
108
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation': '.pptx',
|
|
109
|
+
'application/zip': '.zip',
|
|
110
|
+
'application/x-rar-compressed': '.rar',
|
|
111
|
+
'text/plain': '.txt',
|
|
112
|
+
'application/json': '.json',
|
|
113
|
+
};
|
|
114
|
+
// ---------------------------------------------------------------------------
|
|
115
|
+
// Helpers
|
|
116
|
+
// ---------------------------------------------------------------------------
|
|
117
|
+
/**
|
|
118
|
+
* 从文档 URL 或纯 ID 中提取 document_id
|
|
119
|
+
*/
|
|
120
|
+
function extractDocumentId(input) {
|
|
121
|
+
const trimmed = input.trim();
|
|
122
|
+
const urlMatch = trimmed.match(/\/docx\/([A-Za-z0-9]+)/);
|
|
123
|
+
if (urlMatch)
|
|
124
|
+
return urlMatch[1];
|
|
125
|
+
return trimmed;
|
|
126
|
+
}
|
|
127
|
+
// ---------------------------------------------------------------------------
|
|
128
|
+
// Schema
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
const DocMediaSchema = typebox_1.Type.Union([
|
|
131
|
+
// INSERT action
|
|
132
|
+
typebox_1.Type.Object({
|
|
133
|
+
action: typebox_1.Type.Literal('insert'),
|
|
134
|
+
doc_id: typebox_1.Type.String({
|
|
135
|
+
description: '文档 ID 或文档 URL(必填)。支持从 URL 自动提取 document_id',
|
|
136
|
+
}),
|
|
137
|
+
file_path: typebox_1.Type.String({
|
|
138
|
+
description: '本地文件的绝对路径(必填)。图片支持 jpg/png/gif/webp 等,文件支持任意格式,最大 20MB',
|
|
139
|
+
}),
|
|
140
|
+
type: typebox_1.Type.Optional((0, helpers_1.StringEnum)(['image', 'file'], {
|
|
141
|
+
description: '媒体类型:"image"(图片,默认)或 "file"(文件附件)',
|
|
142
|
+
})),
|
|
143
|
+
align: typebox_1.Type.Optional((0, helpers_1.StringEnum)(['left', 'center', 'right'], {
|
|
144
|
+
description: '对齐方式(仅图片生效):"center"(默认居中)、"left"(居左)、"right"(居右)',
|
|
145
|
+
})),
|
|
146
|
+
caption: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
147
|
+
description: '图片描述/标题(可选,仅图片生效)',
|
|
148
|
+
})),
|
|
149
|
+
}),
|
|
150
|
+
// DOWNLOAD action
|
|
151
|
+
typebox_1.Type.Object({
|
|
152
|
+
action: typebox_1.Type.Literal('download'),
|
|
153
|
+
resource_token: typebox_1.Type.String({
|
|
154
|
+
description: '资源的唯一标识(file_token 用于文档素材,whiteboard_id 用于画板)',
|
|
155
|
+
}),
|
|
156
|
+
resource_type: (0, helpers_1.StringEnum)(['media', 'whiteboard'], {
|
|
157
|
+
description: '资源类型:media(文档素材:图片、视频、文件等)或 whiteboard(画板缩略图)',
|
|
158
|
+
}),
|
|
159
|
+
output_path: typebox_1.Type.String({
|
|
160
|
+
description: '保存文件的完整本地路径。可以包含扩展名(如 /tmp/image.png),' +
|
|
161
|
+
'也可以不带扩展名,系统会根据 Content-Type 自动添加',
|
|
162
|
+
}),
|
|
163
|
+
}),
|
|
164
|
+
]);
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
// Action handlers
|
|
167
|
+
// ---------------------------------------------------------------------------
|
|
168
|
+
async function handleInsert(p, client, log) {
|
|
169
|
+
const documentId = extractDocumentId(p.doc_id);
|
|
170
|
+
const mediaType = p.type ?? 'image';
|
|
171
|
+
const config = MEDIA_CONFIG[mediaType];
|
|
172
|
+
// 0. 路径白名单校验 — 仅允许 tmpdir 下的文件
|
|
173
|
+
const filePath = p.file_path;
|
|
174
|
+
const DOC_MEDIA_ALLOWED_ROOTS = [os.tmpdir()];
|
|
175
|
+
(0, media_url_utils_1.validateLocalMediaRoots)(path.resolve(filePath), DOC_MEDIA_ALLOWED_ROOTS);
|
|
176
|
+
// 1. 读取并校验本地文件
|
|
177
|
+
let fileSize;
|
|
178
|
+
try {
|
|
179
|
+
const stat = await fs.stat(filePath);
|
|
180
|
+
fileSize = stat.size;
|
|
181
|
+
}
|
|
182
|
+
catch (err) {
|
|
183
|
+
return (0, helpers_1.json)({
|
|
184
|
+
error: `failed to read file: ${err instanceof Error ? err.message : String(err)}`,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
if (fileSize > MAX_FILE_SIZE) {
|
|
188
|
+
return (0, helpers_1.json)({
|
|
189
|
+
error: `file ${(fileSize / 1024 / 1024).toFixed(1)}MB exceeds 20MB limit`,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
const fileName = path.basename(filePath);
|
|
193
|
+
log.info(`insert: doc=${documentId}, type=${mediaType}, file=${fileName}, size=${fileSize}`);
|
|
194
|
+
// 2. 创建空 Block(追加到文档末尾)
|
|
195
|
+
const createRes = await client.invoke('feishu_doc_media.insert', (sdk, opts) => sdk.docx.documentBlockChildren.create({
|
|
196
|
+
path: {
|
|
197
|
+
document_id: documentId,
|
|
198
|
+
block_id: documentId,
|
|
199
|
+
},
|
|
200
|
+
data: {
|
|
201
|
+
children: [{ block_type: config.block_type, ...config.block_data }],
|
|
202
|
+
},
|
|
203
|
+
params: { document_revision_id: -1 },
|
|
204
|
+
}, opts), { as: 'user' });
|
|
205
|
+
(0, helpers_1.assertLarkOk)(createRes);
|
|
206
|
+
// File Block 返回 View Block(block_type: 33)作为容器,
|
|
207
|
+
// 真正的 File Block ID 在 children[0].children[0];
|
|
208
|
+
// Image Block 直接返回,block_id 在 children[0].block_id
|
|
209
|
+
let blockId;
|
|
210
|
+
if (mediaType === 'file') {
|
|
211
|
+
blockId = createRes.data?.children?.[0]?.children?.[0];
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
blockId = createRes.data?.children?.[0]?.block_id;
|
|
215
|
+
}
|
|
216
|
+
if (!blockId) {
|
|
217
|
+
return (0, helpers_1.json)({
|
|
218
|
+
error: `failed to create ${config.label} block: no block_id returned`,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
log.info(`insert: created ${mediaType} block ${blockId}`);
|
|
222
|
+
// 3. 上传素材
|
|
223
|
+
const uploadRes = await client.invoke('feishu_doc_media.insert', (sdk, opts) => sdk.drive.v1.media.uploadAll({
|
|
224
|
+
data: {
|
|
225
|
+
file_name: fileName,
|
|
226
|
+
parent_type: config.parent_type,
|
|
227
|
+
parent_node: blockId,
|
|
228
|
+
size: fileSize,
|
|
229
|
+
file: (0, node_fs_1.createReadStream)(filePath),
|
|
230
|
+
extra: JSON.stringify({
|
|
231
|
+
drive_route_token: documentId,
|
|
232
|
+
}),
|
|
233
|
+
},
|
|
234
|
+
}, opts), { as: 'user' });
|
|
235
|
+
const fileToken = uploadRes?.file_token ?? uploadRes?.data?.file_token;
|
|
236
|
+
if (!fileToken) {
|
|
237
|
+
return (0, helpers_1.json)({
|
|
238
|
+
error: `failed to upload ${config.label} media: no file_token returned`,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
log.info(`insert: uploaded media, file_token=${fileToken}`);
|
|
242
|
+
// 4. 批量更新 Block - 设置 token
|
|
243
|
+
const patchRequest = { block_id: blockId };
|
|
244
|
+
if (mediaType === 'image') {
|
|
245
|
+
const alignNum = ALIGN_MAP[p.align ?? 'center'];
|
|
246
|
+
// 自动检测图片尺寸
|
|
247
|
+
let width;
|
|
248
|
+
let height;
|
|
249
|
+
try {
|
|
250
|
+
const imgBuf = await fs.readFile(filePath);
|
|
251
|
+
const dims = (0, image_size_1.imageSize)(imgBuf);
|
|
252
|
+
if (dims.width && dims.height) {
|
|
253
|
+
width = dims.width;
|
|
254
|
+
height = dims.height;
|
|
255
|
+
log.info(`insert: detected image size ${width}x${height}`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
log.info('insert: could not detect image dimensions, skipping');
|
|
260
|
+
}
|
|
261
|
+
patchRequest.replace_image = {
|
|
262
|
+
token: fileToken,
|
|
263
|
+
align: alignNum,
|
|
264
|
+
...(width != null ? { width } : {}),
|
|
265
|
+
...(height != null ? { height } : {}),
|
|
266
|
+
...(p.caption ? { caption: { content: p.caption } } : {}),
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
patchRequest.replace_file = { token: fileToken };
|
|
271
|
+
}
|
|
272
|
+
const patchRes = await client.invoke('feishu_doc_media.insert', (sdk, opts) => sdk.docx.documentBlock.batchUpdate({
|
|
273
|
+
path: { document_id: documentId },
|
|
274
|
+
data: { requests: [patchRequest] },
|
|
275
|
+
params: { document_revision_id: -1 },
|
|
276
|
+
}, opts), { as: 'user' });
|
|
277
|
+
(0, helpers_1.assertLarkOk)(patchRes);
|
|
278
|
+
log.info(`insert: patched ${mediaType} block with file_token`);
|
|
279
|
+
return (0, helpers_1.json)({
|
|
280
|
+
success: true,
|
|
281
|
+
type: mediaType,
|
|
282
|
+
document_id: documentId,
|
|
283
|
+
block_id: blockId,
|
|
284
|
+
file_token: fileToken,
|
|
285
|
+
file_name: fileName,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
async function handleDownload(p, client, log) {
|
|
289
|
+
log.info(`download: resource_type=${p.resource_type}, token="${p.resource_token}"`);
|
|
290
|
+
let res;
|
|
291
|
+
if (p.resource_type === 'media') {
|
|
292
|
+
res = await client.invoke('feishu_doc_media.download', (sdk, opts) => sdk.drive.v1.media.download({ path: { file_token: p.resource_token } }, opts), { as: 'user' });
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
res = await client.invoke('feishu_doc_media.download', (sdk, opts) => sdk.board.v1.whiteboard.downloadAsImage({ path: { whiteboard_id: p.resource_token } }, opts), { as: 'user' });
|
|
296
|
+
}
|
|
297
|
+
// 读取二进制流
|
|
298
|
+
const stream = res.getReadableStream();
|
|
299
|
+
const chunks = [];
|
|
300
|
+
for await (const chunk of stream) {
|
|
301
|
+
chunks.push(chunk);
|
|
302
|
+
}
|
|
303
|
+
const buffer = Buffer.concat(chunks);
|
|
304
|
+
log.info(`download: received ${buffer.length} bytes`);
|
|
305
|
+
// 从 Content-Type 推断扩展名
|
|
306
|
+
const contentType = res.headers?.['content-type'] || '';
|
|
307
|
+
let finalPath = p.output_path;
|
|
308
|
+
const currentExt = path.extname(p.output_path);
|
|
309
|
+
if (!currentExt && contentType) {
|
|
310
|
+
const mimeType = contentType.split(';')[0].trim();
|
|
311
|
+
const defaultExt = p.resource_type === 'whiteboard' ? '.png' : undefined;
|
|
312
|
+
const suggestedExt = MIME_TO_EXT[mimeType] || defaultExt;
|
|
313
|
+
if (suggestedExt) {
|
|
314
|
+
finalPath = p.output_path + suggestedExt;
|
|
315
|
+
log.info(`download: auto-detected extension ${suggestedExt}`);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
// 确保父目录存在并保存
|
|
319
|
+
await fs.mkdir(path.dirname(finalPath), { recursive: true });
|
|
320
|
+
try {
|
|
321
|
+
await fs.writeFile(finalPath, buffer);
|
|
322
|
+
log.info(`download: saved to ${finalPath}`);
|
|
323
|
+
}
|
|
324
|
+
catch (err) {
|
|
325
|
+
return (0, helpers_1.json)({
|
|
326
|
+
error: `failed to save file: ${err instanceof Error ? err.message : String(err)}`,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
return (0, helpers_1.json)({
|
|
330
|
+
resource_type: p.resource_type,
|
|
331
|
+
resource_token: p.resource_token,
|
|
332
|
+
size_bytes: buffer.length,
|
|
333
|
+
content_type: contentType,
|
|
334
|
+
saved_path: finalPath,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// ---------------------------------------------------------------------------
|
|
338
|
+
// Registration
|
|
339
|
+
// ---------------------------------------------------------------------------
|
|
340
|
+
function registerDocMediaTool(api) {
|
|
341
|
+
if (!api.config)
|
|
342
|
+
return false;
|
|
343
|
+
const cfg = api.config;
|
|
344
|
+
const { toolClient, log } = (0, helpers_1.createToolContext)(api, 'feishu_doc_media');
|
|
345
|
+
return (0, helpers_1.registerTool)(api, {
|
|
346
|
+
name: 'feishu_doc_media',
|
|
347
|
+
label: 'Feishu: Document Media',
|
|
348
|
+
description: '【以用户身份】文档媒体管理工具。' +
|
|
349
|
+
'支持两种操作:' +
|
|
350
|
+
'(1) insert - 在飞书文档末尾插入本地图片或文件(需要文档 ID + 本地文件路径);' +
|
|
351
|
+
'(2) download - 下载文档素材或画板缩略图到本地(需要资源 token + 输出路径)。' +
|
|
352
|
+
'\n\n【重要】insert 仅支持本地文件路径。URL 图片请使用 create-doc/update-doc 的 <image url="..."/> 语法。',
|
|
353
|
+
parameters: DocMediaSchema,
|
|
354
|
+
async execute(_toolCallId, params) {
|
|
355
|
+
const p = params;
|
|
356
|
+
try {
|
|
357
|
+
const client = toolClient();
|
|
358
|
+
if (p.action === 'insert') {
|
|
359
|
+
return await handleInsert(p, client, log);
|
|
360
|
+
}
|
|
361
|
+
if (p.action === 'download') {
|
|
362
|
+
return await handleDownload(p, client, log);
|
|
363
|
+
}
|
|
364
|
+
return (0, helpers_1.json)({ error: `unknown action: ${p.action}` });
|
|
365
|
+
}
|
|
366
|
+
catch (err) {
|
|
367
|
+
return await (0, helpers_1.handleInvokeErrorWithAutoAuth)(err, cfg);
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
}, { name: 'feishu_doc_media' });
|
|
371
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 ByteDance Ltd. and/or its affiliates
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*
|
|
5
|
+
* feishu_drive_file tool -- Manage Feishu Drive files.
|
|
6
|
+
*
|
|
7
|
+
* Actions: list, get_meta, copy, move, delete, upload, download
|
|
8
|
+
*
|
|
9
|
+
* Uses the Feishu Drive API:
|
|
10
|
+
* - list: GET /open-apis/drive/v1/files
|
|
11
|
+
* - get_meta: POST /open-apis/drive/v1/metas/batch_query
|
|
12
|
+
* - copy: POST /open-apis/drive/v1/files/:file_token/copy
|
|
13
|
+
* - move: POST /open-apis/drive/v1/files/:file_token/move
|
|
14
|
+
* - delete: DELETE /open-apis/drive/v1/files/:file_token
|
|
15
|
+
* - upload: POST /open-apis/drive/v1/files/upload_all
|
|
16
|
+
* - download: GET /open-apis/drive/v1/files/:file_token/download
|
|
17
|
+
*/
|
|
18
|
+
import type { OpenClawPluginApi } from 'openclaw/plugin-sdk';
|
|
19
|
+
export declare function registerFeishuDriveFileTool(api: OpenClawPluginApi): boolean;
|