mirror of
https://gh-proxy.org/https://github.com/klinsmaya/nocobase-plugin-portal-agent-connect-demo.git
synced 2026-11-08 01:06:52 +08:00
Hovering a portal card in the settings app reveals an action next to the portal's address; it opens a dialog with a ready-to-paste prompt that walks a coding agent through installing the NocoBase CLI, registering this instance and pulling the portal source. The portal manager offers no extension slot, so the button is attached from the outside: a provider watches the document, inserts an empty mount point into each card and renders the button into it through a React portal, which keeps it in this plugin's React tree and out of the card's click handling.
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "@light/plugin-portal-agent-connect",
|
|
"version": "1.0.0",
|
|
"main": "dist/server/index.js",
|
|
"nocobase": {
|
|
"supportedVersions": [
|
|
"2.x",
|
|
"3.x"
|
|
]
|
|
},
|
|
"displayName": "Connect coding agent",
|
|
"displayName.zh-CN": "连接编码 agent",
|
|
"description": "Hands out a ready-to-paste prompt that connects an AI Portal to a coding agent through the NocoBase CLI.",
|
|
"description.zh-CN": "为 AI Portal 生成一段可直接粘贴给编码 agent 的接入说明,agent 照着做就能用 NocoBase CLI 连上这个实例。",
|
|
"devDependencies": {
|
|
"@ant-design/icons": "5.x",
|
|
"ahooks": "3.x",
|
|
"antd": "5.x",
|
|
"react": "^18.2.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@nocobase/client-v2": "*",
|
|
"@nocobase/flow-engine": "*",
|
|
"@nocobase/server": "*"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Albert-mah/nocobase-plugin-portal-agent-connect-demo.git"
|
|
},
|
|
"keywords": [
|
|
"nocobase",
|
|
"nocobase-plugin",
|
|
"ai-portal",
|
|
"coding-agent",
|
|
"demo"
|
|
]
|
|
}
|