opencode-acp 1.14.17-pr.305.15 → 1.14.18-pr.306.16
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 -0
- package/README.zh-CN.md +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -492,6 +492,16 @@ For the complete list with root cause analysis, see the [bug tracker](https://gi
|
|
|
492
492
|
|
|
493
493
|
## Changelog
|
|
494
494
|
|
|
495
|
+
### v1.14.18 — Supersedes unpublished v1.14.17; fix release pipeline
|
|
496
|
+
|
|
497
|
+
**Problem**: v1.14.17 was merged (#305) but never published — `release.yml` failed at `npm run check:package` because the `prepare` hook added in #298 (`npm run build`) runs during `npm pack --json` inside `verify-package.mjs`, and tsup's `CLI Building entry: index.ts` stdout output breaks `JSON.parse` (`SyntaxError: Unexpected token 'C'`).
|
|
498
|
+
|
|
499
|
+
**Fix**: `scripts/verify-package.mjs` now runs `npm pack --dry-run --json --ignore-scripts` — skipping the `prepare` hook, consistent with `pr-artifact.yml` which already publishes with `--ignore-scripts`. `dist/` is already built by `check:package`'s preceding build step, so packing semantics are unchanged.
|
|
500
|
+
|
|
501
|
+
Files: `scripts/verify-package.mjs`. Tests: 976 pass; `check:package` green.
|
|
502
|
+
|
|
503
|
+
**Install**: `opencode plugin opencode-acp@latest --global`
|
|
504
|
+
|
|
495
505
|
### v1.14.17 — Per-PR npm preview builds + release publishing feedback (#298)
|
|
496
506
|
|
|
497
507
|
**Problem**: There was no way to install and test a PR's build before merging, and after a release merge nothing on the PR confirmed which version was published to npm.
|
package/README.zh-CN.md
CHANGED
|
@@ -446,6 +446,16 @@ ACP 是 DCP 的直接替代品。迁移步骤:
|
|
|
446
446
|
|
|
447
447
|
## 更新日志
|
|
448
448
|
|
|
449
|
+
### v1.14.18 — 取代未能发布的 v1.14.17;修复发版流水线
|
|
450
|
+
|
|
451
|
+
**问题**:v1.14.17 已合并(#305)但从未发布 —— \`release.yml\` 在 \`npm run check:package\` 一步失败:#298 新增的 \`prepare\` 钩子(\`npm run build\`)会在 \`verify-package.mjs\` 的 \`npm pack --json\` 期间运行,tsup 的 \`CLI Building entry: index.ts\` 输出污染 stdout,导致 \`JSON.parse\` 报错(\`SyntaxError: Unexpected token 'C'\`)。
|
|
452
|
+
|
|
453
|
+
**修复**:\`scripts/verify-package.mjs\` 改为执行 \`npm pack --dry-run --json --ignore-scripts\` —— 跳过 \`prepare\` 钩子,与 \`pr-artifact.yml\` 发布时使用 \`--ignore-scripts\` 的做法一致。\`dist/\` 由 \`check:package\` 前置构建步骤产出,打包语义不变。
|
|
454
|
+
|
|
455
|
+
文件:\`scripts/verify-package.mjs\`。测试:976 通过;\`check:package\` 绿。
|
|
456
|
+
|
|
457
|
+
**安装**:`opencode plugin opencode-acp@latest --global`
|
|
458
|
+
|
|
449
459
|
### v1.14.17 — PR 预览构建发布 npm + 发版发布反馈(#298)
|
|
450
460
|
|
|
451
461
|
**问题**:合并前无法安装测试 PR 的构建产物;发版合并后 PR 上也没有确认发布到了 npm 的哪个版本。
|
package/dist/index.js
CHANGED
|
@@ -8949,7 +8949,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
|
|
|
8949
8949
|
import { join as join3 } from "path";
|
|
8950
8950
|
import { existsSync as existsSync3 } from "fs";
|
|
8951
8951
|
import { homedir as homedir3 } from "os";
|
|
8952
|
-
var LOG_VERSION = true ? "1.14.
|
|
8952
|
+
var LOG_VERSION = true ? "1.14.18-pr.306.16" : "dev";
|
|
8953
8953
|
var Logger = class {
|
|
8954
8954
|
logDir;
|
|
8955
8955
|
enabled;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "opencode-acp",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.18-pr.306.16",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)",
|
|
7
7
|
"main": "./dist/index.js",
|