@weiping/magpie-cf-jev 0.1.0 → 0.1.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 +12 -2
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -36,8 +36,8 @@ magpie 的插件可以声明自己是决策供应商:`config` 钩子里 `decid
|
|
|
36
36
|
## 用法
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
# 1.
|
|
40
|
-
magpie plugin add
|
|
39
|
+
# 1. 装插件(npm 上发布的是 @weiping/magpie-cf-jev)
|
|
40
|
+
magpie plugin add @weiping/magpie-cf-jev@latest
|
|
41
41
|
|
|
42
42
|
# 2. 登录,粘贴 Cloudflare API token
|
|
43
43
|
# 只做 Workers AI 的 token 可能列不出账号,那就按 "<account id>:<token>" 粘
|
|
@@ -84,3 +84,13 @@ magpie plugin rm cf-jev # 或 magpie plugin off cf-jev
|
|
|
84
84
|
node --test peel.test.mjs # 单元测试
|
|
85
85
|
node smoke.mjs # 打真实 Cloudflare
|
|
86
86
|
```
|
|
87
|
+
|
|
88
|
+
## 发布
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
npm version patch && npm publish # @weiping/magpie-cf-jev
|
|
92
|
+
magpie plugin add @weiping/magpie-cf-jev@latest
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
本地目录也能直接用(开发时):`magpie plugin add ./`——但同一个 provider id 两个插件都装时,
|
|
96
|
+
magpie 只会让一个服务它,装完 npm 版后把目录版 `magpie plugin rm <目录>` 去掉。
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weiping/magpie-cf-jev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Cloudflare Workers AI (Jev and Clef) as a magpie decision provider, with the answers read out of Cloudflare's envelope",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|
|
7
7
|
"exports": "./index.mjs",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"index.mjs",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
9
12
|
"keywords": [
|
|
10
13
|
"magpie",
|
|
11
14
|
"magpie-plugin",
|
|
@@ -19,6 +22,10 @@
|
|
|
19
22
|
],
|
|
20
23
|
"author": "weiping",
|
|
21
24
|
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/weiping/magpie-cf-jev.git"
|
|
28
|
+
},
|
|
22
29
|
"publishConfig": {
|
|
23
30
|
"access": "public"
|
|
24
31
|
},
|