magpie-login-bridge 0.12.0 → 0.12.1
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/README.md +13 -5
- package/package.json +3 -1
- package/server.mjs +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ magpie plugin rm magpie-login-bridge
|
|
|
49
49
|
magpie plugin add "E:\workspace\claude_workplace\aic智能车\codex-login-bridge\magpie-login-bridge-plugin"
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
当前插件版本为 `0.12.
|
|
52
|
+
当前插件版本为 `0.12.1`,页面服务契约版本为 `7`。更新服务端代码后必须**完全退出并重启 Magpie**,否则页面可能连到旧版服务。重启后重新打开插件页面即可。
|
|
53
53
|
|
|
54
54
|
## 使用流程
|
|
55
55
|
|
|
@@ -133,10 +133,10 @@ magpie plugin add "E:\workspace\claude_workplace\aic智能车\codex-login-bridge
|
|
|
133
133
|
|
|
134
134
|
### 方式一:直接传 npm 安装包(最简单)
|
|
135
135
|
|
|
136
|
-
本机已生成 `magpie-login-bridge-0.12.
|
|
136
|
+
本机已生成 `magpie-login-bridge-0.12.1.tgz`(位于 Codex 可视化工作目录)。把该文件复制到另一台电脑,然后执行。下面路径只是示例,请换成实际文件位置:
|
|
137
137
|
|
|
138
138
|
```powershell
|
|
139
|
-
magpie plugin add "C:\path\to\magpie-login-bridge-0.12.
|
|
139
|
+
magpie plugin add "C:\path\to\magpie-login-bridge-0.12.1.tgz"
|
|
140
140
|
```
|
|
141
141
|
|
|
142
142
|
这是离线安装,不需要 npm 账号,也不需要联网发布。
|
|
@@ -147,7 +147,7 @@ magpie plugin add "C:\path\to\magpie-login-bridge-0.12.0.tgz"
|
|
|
147
147
|
|
|
148
148
|
```powershell
|
|
149
149
|
npm adduser
|
|
150
|
-
npm publish "C:\path\to\magpie-login-bridge-0.12.
|
|
150
|
+
npm publish "C:\path\to\magpie-login-bridge-0.12.1.tgz" --access public
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
发布后,另一台电脑执行:
|
|
@@ -176,4 +176,12 @@ magpie plugin add github:<你的用户名>/<仓库名>
|
|
|
176
176
|
|
|
177
177
|
### 关于 Magpie 插件商店
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
根据官方插件文档,Magpie 的「插件 → 发现」搜索会查询 npm:包名或 keywords 里需要同时含有 `opencode` 和 `auth`、`plugin`、`provider` 之一。当前包缺少 `opencode` 关键词,所以图形界面按名字安装时还可能先校验社区清单,网络访问 GitHub 失败就会报错。
|
|
180
|
+
|
|
181
|
+
想让它在图形插件列表里更容易被发现,需要满足:
|
|
182
|
+
|
|
183
|
+
- npm 包的 keywords 包含 `opencode` 和 `plugin`,例如 `["opencode", "opencode-plugin", "magpie", "codex", "login"]`。
|
|
184
|
+
- 想进入官方推荐列表,需要给 `magpie-community/plugins` 的 `registry.json` 提 PR;页面类插件使用 `"kind": "page"`。
|
|
185
|
+
- 社区仓库的页面包通常放在 `packages/<name>`,包名为 `@magpie-community/page-<name>`。
|
|
186
|
+
|
|
187
|
+
如果只是自己几台电脑使用,仍然推荐直接传 `.tgz` 离线安装,避免依赖 GitHub 社区清单。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magpie-login-bridge",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Magpie 页面插件:点击后一次性读取本机浏览器 ChatGPT 登录态并导入本地 Codex;支持导出文件兜底与一键还原,同时保持 Magpie 模型路由。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"keywords": [
|
|
20
|
+
"opencode",
|
|
21
|
+
"opencode-plugin",
|
|
20
22
|
"magpie",
|
|
21
23
|
"magpie-page",
|
|
22
24
|
"codex",
|
package/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const bridgeScript = join(pluginDir, "codex-login-bridge.ps1")
|
|
|
12
12
|
const uiRoot = join(pluginDir, "ui")
|
|
13
13
|
const defaultPort = 3488
|
|
14
14
|
const contractVersion = 7
|
|
15
|
-
const pluginVersion = "0.12.
|
|
15
|
+
const pluginVersion = "0.12.1"
|
|
16
16
|
const maxJsonBytes = 2 * 1024 * 1024
|
|
17
17
|
const maxConfigBytes = 1024 * 1024
|
|
18
18
|
const bridgeTimeoutMs = 180_000
|