Files
nanobot/nanobot/channels/feishu/webui/index.tsx
T
chengyongru 328e933d36 refactor: isolate runtime contracts and enforce import boundaries (#6166)
* test: enforce Python import ownership boundaries

* test: protect client import boundaries and rehome shared UI contracts

* refactor: remove gateway and client dependency inversions

* fix: detect dynamic imports in conditional expressions

* refactor(tools): keep configuration contracts with their owners

* docs: keep design guidance focused on ownership and checks

* fix: preserve default threaded turn delivery
2026-10-13 13:56:28 +08:00

40 lines
1.0 KiB
TypeScript

import { lazy } from "react";
import type { ChannelUiContribution } from "@/channel-plugins/types";
import { chatAppGuideUrl } from "@/channel-plugins/catalog";
const FeishuAssistantsPanel = lazy(() =>
import("./FeishuAssistantsPanel").then(({ FeishuAssistantsPanel: component }) => ({
default: component,
})),
);
export default {
Panel: FeishuAssistantsPanel,
aliases: {
lark: {
displayName: "Lark",
initials: "LK",
},
},
presentation: {
logoUrl: "https://www.larksuite.com/favicon.ico",
logoLayout: "tile",
displayName: "Feishu",
initials: "FS",
color: "#3370FF",
setup: {
mode: "connect",
command: "nanobot channels login feishu",
docsUrl: chatAppGuideUrl("feishu"),
manualFields: [
{ key: "channels.feishu.appId" },
{ key: "channels.feishu.appSecret" },
{ key: "channels.feishu.domain" },
{ key: "channels.feishu.groupPolicy" },
{ key: "channels.feishu.allowFrom" },
],
},
},
} satisfies ChannelUiContribution;