@ch4acko3/dsh-agent-fleet-lark
v0.1.0
Published
Lark and Feishu connector for Agent Fleet Gateway
Readme
Agent Fleet Lark
Lark and Feishu integration for Agent Fleet. It exposes two deliberately separate identities:
- A bot connector backed by
@larksuite/channel, registered with Fleet Gateway for long-running inbound and outbound messaging. - Identity-pinned
lark-cliadapters atctx.fleetLark.userandctx.fleetLark.bot. Every business command is spawned directly with an explicit--as useror--as bot; Fleet never silently switches identity.
Set LARK_APP_ID and store the App Secret under the DSH credential reference LARK_APP_SECRET to activate the realtime bot connector. Both CLI identities use the existing lark-cli profile and remain idle until DSH calls them. LARK_CLI_PATH and LARK_CLI_PROFILE optionally select a binary and profile.
The package performs transport and identity adaptation only. Fleet Mailbox owns persistence and Team routing; DSH decides which identity and capability to expose.
Fleet registers lark.read, lark.message-post, lark.content-write, lark.manage, and lark.act-as-user plus the lark-resource resource kind. Trusted DSH adapters call ctx.fleetLark.executeForAgent(...) with an Agent id, classified action, and canonical resource. User-identity calls require both the business action and lark.act-as-user; raw CLI adapters remain Host-only.
