magpie-plugin-loomy-auth 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/README.md +31 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,6 +55,37 @@ magpie 每天调一次,一次做完三件事:刷新今日额度、领新手
55
55
 
56
56
  先卸掉别的 Loomy 插件 —— 会抢同一个供应商。
57
57
 
58
+ ### 命令行
59
+
60
+ ```bash
61
+ # 从 npm(推荐)
62
+ magpie plugin add magpie-plugin-loomy-auth
63
+
64
+ # 从仓库源码(拿最新代码,不走 npm)
65
+ magpie plugin add github:MYCF711/magpie-loomy-auth
66
+
67
+ # 本地 tgz(自己改了代码)
68
+ npm pack --pack-destination ./dist
69
+ cp dist/magpie-plugin-loomy-auth-*.tgz ~/.config/magpie/plugins/dist/
70
+ # plugins.json 追加 { "spec": "magpie-plugin-loomy-auth" }
71
+ # plugins/package.json 追加 "magpie-plugin-loomy-auth": "./dist/magpie-plugin-loomy-auth-*.tgz"
72
+ cd ~/.config/magpie/plugins && ~/.cache/magpie/bun/1.4.4/magpie-bun.exe install
73
+ ```
74
+
75
+ ⚠ **`magpie plugin add <tgz路径>` 用不了** —— 它把 tgz 当 JS 模块 `import()`,报
76
+ `exports no OpenCode plugin function`(实测 0.1.1254)。本地包必须走上头那套
77
+ `plugins.json` 登记 + `bun install`。
78
+
79
+ 装完确认:
80
+
81
+ ```bash
82
+ magpie plugin list
83
+ # magpie-plugin-loomy-auth on
84
+ # loomy (Loomy, 10 models) signed in as 189****8051
85
+ ```
86
+
87
+ ⚠ 改了代码要 **bump `version` 再打包** —— 同一版本号重打,bun 会命中缓存(输出 `no changes`)。
88
+
58
89
  ---
59
90
 
60
91
  ## 常见问题
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie-plugin-loomy-auth",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Loomy (iFlytek) for magpie: desktop-session import / SMS / session sign-in, live model catalog with reasoning efforts, chat with tools and images, and the two credit pools reported as the host routes them — the daily pool counts, the permanent one is shown aside.",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",