A page plugin that turns a Magpie Web address into Feishu's client/web_url/open AppLink (mode=appCenter), so Magpie Web opens in Feishu desktop's left sidebar. No permissions, no request: the page only builds the link. Addresses with credentials, a query or a fragment are refused (keeps ?k= keys out of a shared link), and plain HTTP only on loopback. By zhaiqiming. Run at the reviewed head f3164eb2 (mica, temp HOME): - bun test packages/feishu-sidebar: 3 pass, 0 fail. - bun scripts/check.mjs feishu-sidebar: ok. bun test scripts: 39 pass. - The page itself, with a stub bridge, in Playwright Chromium and WebKit at 400px, en and zh-CN: the title is translated, Enter on a loopback address shows the link, a ?k= address shows the error and hides the link, nothing scrolls sideways. Not tried: Feishu desktop itself (the author verified it on macOS). The package's first npm version waits for the owner; dist serves it.
18 lines
572 B
JSON
18 lines
572 B
JSON
{
|
|
"name": "@magpie-community/page-feishu-sidebar",
|
|
"version": "0.1.0",
|
|
"description": "Open Magpie Web in the Feishu desktop sidebar with an AppLink",
|
|
"files": ["page", "README.md"],
|
|
"keywords": ["magpie", "magpie-page", "feishu"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/feishu-sidebar" },
|
|
"magpie": {
|
|
"page": {
|
|
"title": "Feishu sidebar",
|
|
"titles": { "zh": "飞书侧边栏" },
|
|
"file": "page/index.html"
|
|
},
|
|
"permissions": []
|
|
}
|
|
}
|