opencode2pi 0.3.1 → 0.3.2
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 +10 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -13,19 +13,24 @@
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
#
|
|
16
|
+
# 推荐:npm(已发布,自动带 provenance)
|
|
17
|
+
omp install npm:opencode2pi
|
|
18
|
+
pi install npm:opencode2pi
|
|
19
|
+
|
|
20
|
+
# 备用:git @stable(最近一次发版)
|
|
17
21
|
omp install git:https://github.com/FanchangWang/opencode2pi@stable
|
|
18
22
|
pi install git:https://github.com/FanchangWang/opencode2pi@stable
|
|
19
23
|
|
|
20
|
-
# npm 尚未上线(仓库没有 NPM_TOKEN,OIDC 首发也未配置),下面的命令暂时不可用:
|
|
21
|
-
# omp install npm:opencode2pi
|
|
22
|
-
# pi install npm:opencode2pi
|
|
23
|
-
|
|
24
24
|
# 追踪最新代码:装的是"此刻 main 指向的 commit",含未发布的改动,之后不会自动更新
|
|
25
25
|
omp install git:https://github.com/FanchangWang/opencode2pi@main
|
|
26
26
|
pi install git:https://github.com/FanchangWang/opencode2pi@main
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
**为什么 npm 优先**:git 装的是源码快照,宿主要现读现编译;npm 装的是已发布的
|
|
30
|
+
tarball,带 provenance 签名(可在 npmjs.com 包页面核验),且 tag 与版本号一一对应。
|
|
31
|
+
注意 **omp/pi 不支持直接装 `.tgz` 文件**(实测报 `package.json not found`),
|
|
32
|
+
所以只能用 npm spec 或 git URL。
|
|
33
|
+
|
|
29
34
|
`@stable` 是最近一次发版的版本,随发版前移;要固定到某一版,去
|
|
30
35
|
[releases](https://github.com/FanchangWang/opencode2pi/releases) 挑一个 tag,
|
|
31
36
|
把 `@stable` 换成那个 tag 名或 commit SHA。上游随时可能改闸门,只有钉死才能复现"当时能用"的状态。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode2pi",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "OpenCode Zen's anonymous free models (no API key) as a native omp/pi provider extension.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "FanchangWang",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"scripts": {
|
|
46
46
|
"typecheck": "tsc --noEmit",
|
|
47
47
|
"test": "bun test",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
"smoke": "omp -e ./src/index.ts -p --model opencode-zen-free/big-pickle \"Reply with exactly OK\"",
|
|
49
|
+
"registry": "npm --registry=https://registry.npmjs.org/",
|
|
50
|
+
"whoami": "npm --registry=https://registry.npmjs.org/ whoami",
|
|
51
|
+
"dry-run": "npm --registry=https://registry.npmjs.org/ pack --dry-run",
|
|
52
|
+
"release:check": "npm run typecheck && npm test && npm run dry-run"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@oh-my-pi/pi-coding-agent": "^18.6.1",
|