From 7c1ad2d48cde0ee7231478580f5f8ca05068c2e3 Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Fri, 14 Aug 2026 23:53:52 +0800 Subject: [PATCH] =?UTF-8?q?release:=20v1.14.17=20=E2=80=94=20per-PR=20npm?= =?UTF-8?q?=20preview=20builds=20(#298)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++ README.zh-CN.md | 10 +++++ devlog/2026-08-14_release-v1.14.17/REQ.md | 36 ++++++++++++++++ devlog/2026-08-14_release-v1.14.17/WORKLOG.md | 42 +++++++++++++++++++ package.json | 2 +- 5 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 devlog/2026-08-14_release-v1.14.17/REQ.md create mode 100644 devlog/2026-08-14_release-v1.14.17/WORKLOG.md diff --git a/README.md b/README.md index 0aebd9ca..1b5ec324 100644 --- a/README.md +++ b/README.md @@ -492,6 +492,16 @@ For the complete list with root cause analysis, see the [bug tracker](https://gi ## Changelog +### v1.14.17 — Per-PR npm preview builds + release publishing feedback (#298) + +**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. + +**Fix** (#298): New `.github/workflows/pr-artifact.yml` — on every PR to master: build the plugin, publish it to npm under a `pr-` tag (version `-pr..`), upload the tarball + `dist/` as a workflow artifact (30-day retention), and comment install instructions on the PR. `release.yml` additionally comments the published version on the associated PR after a release merge. No plugin runtime changes in this release. + +Files: `.github/workflows/pr-artifact.yml`, `.github/workflows/release.yml`. Tests: 976 pass. + +**Install**: `opencode plugin opencode-acp@latest --global` + ### v1.14.16 — Raise context limits to 80% **Problem**: The compression thresholds were `maxContextLimit: 55%` / `minContextLimit: 45%`. The strong "over-limit" nudge fired as soon as context exceeded 55% of the model window. Combined with the fixed 50K growth threshold (v1.14.15), this still engaged compression relatively early, leaving usable context unused. diff --git a/README.zh-CN.md b/README.zh-CN.md index 701ba00c..9841cfe0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -446,6 +446,16 @@ ACP 是 DCP 的直接替代品。迁移步骤: ## 更新日志 +### v1.14.17 — PR 预览构建发布 npm + 发版发布反馈(#298) + +**问题**:合并前无法安装测试 PR 的构建产物;发版合并后 PR 上也没有确认发布到了 npm 的哪个版本。 + +**修复**(#298):新增 \`.github/workflows/pr-artifact.yml\` —— 每个指向 master 的 PR:构建插件、以 \`pr-\` tag 发布到 npm(版本 \`-pr..\`)、上传 tarball + \`dist/\` 作为 workflow artifact(保留 30 天)、在 PR 上评论安装指引。\`release.yml\` 另在发版合并后于关联 PR 评论已发布版本。本版本不含插件运行时行为变更。 + +文件:\`.github/workflows/pr-artifact.yml\`、\`.github/workflows/release.yml\`。测试:976 通过。 + +**安装**:`opencode plugin opencode-acp@latest --global` + ### v1.14.16 — 将上下文 limit 提升至 80% **问题**:压缩阈值原为 `maxContextLimit: 55%` / `minContextLimit: 45%`。上下文一旦超过模型窗口的 55% 就会触发强「超限」nudge。配合 v1.14.15 固定的 50K 增长阈值,压缩仍较早介入,可用上下文未被充分利用。 diff --git a/devlog/2026-08-14_release-v1.14.17/REQ.md b/devlog/2026-08-14_release-v1.14.17/REQ.md new file mode 100644 index 00000000..025a2727 --- /dev/null +++ b/devlog/2026-08-14_release-v1.14.17/REQ.md @@ -0,0 +1,36 @@ +# REQ — v1.14.17: Stable release of master (per-PR npm preview builds) + +## Background + +One substantive change merged to master since v1.14.16 and is unreleased: + +- #298 (`0c59851`) — new `.github/workflows/pr-artifact.yml`: every PR to + master builds the plugin, publishes it to npm under a `pr-` tag + (version `-pr..`), uploads the tarball + `dist/` as a + workflow artifact (30-day retention), and comments install instructions + on the PR. `release.yml` also comments the published version on the + associated PR after a release merge. `package.json` gained one line + (npm publish config). + +Note on #299 (`8a2bee3`): its merge commit contains ONLY devlog files. The +workflow change its WORKLOG describes (`pr-artifact.yml` `GITHUB_OUTPUT` +version display) is NOT on master — the code change was lost before merge. +This release therefore credits #298 only; #299's functionality needs a +follow-up PR if still wanted. + +The pending #301 fix PRs (#302, #303) are intentionally NOT part of this +release; they merge after and ship in a later version. + +## Requirement + +Cut a stable release from current master (`8a2bee3`) per AGENTS.md §5.4.2: +branch `2026-08-14_release-v1.14.17`, version 1.14.16 → 1.14.17, bilingual +changelog describing #298 accurately, release commit containing ONLY the 5 +release files. + +## Acceptance criteria + +- `./scripts/ci/check-pr.sh 2026-08-14_release-v1.14.17 github/master` passes. +- typecheck + tests green (code identical to master). +- Merge triggers release.yml: tag `v1.14.17`, npm publish `latest`, + GitHub Release. diff --git a/devlog/2026-08-14_release-v1.14.17/WORKLOG.md b/devlog/2026-08-14_release-v1.14.17/WORKLOG.md new file mode 100644 index 00000000..c6296af4 --- /dev/null +++ b/devlog/2026-08-14_release-v1.14.17/WORKLOG.md @@ -0,0 +1,42 @@ +# WORKLOG — v1.14.17: Stable release of master (per-PR npm preview builds) + +## Investigation + +- `git log v1.14.16..master`: one substantive commit since v1.14.16 — + #298 (`0c59851`): new `pr-artifact.yml` (per-PR npm publish under + `pr-` tag, tarball + dist/ artifact upload, PR install-instructions + comment) + `release.yml` published-version comment + one package.json + line. CI/workflow-only; no runtime changes. +- #299 (`8a2bee3`) merged with ONLY its devlog files — the workflow change + its WORKLOG describes (`GITHUB_OUTPUT` version display in pr-artifact.yml) + is NOT on master (verified by grep). Changelog credits #298 only. +- Prior release PR (#304, closed) incorrectly carried the #301 fix commits + on the release branch. AGENTS.md convention (verified against + v1.14.8–v1.14.16): release commits contain only the 5 release files; + feature code reaches master through its own PRs before the release branch + is cut. + +## Change + +Release files only: + +- `package.json`: 1.14.16 → 1.14.17. +- `README.md` / `README.zh-CN.md`: v1.14.17 changelog entries (#298). +- `devlog/2026-08-14_release-v1.14.17/REQ.md` + `WORKLOG.md` (this pair). + +Branch reset to `github/master` (`8a2bee3`) — code identical to master. + +## Verification + +- typecheck (`tsc --noEmit`): clean. +- tests: 976 pass / 0 fail. +- `./scripts/ci/check-pr.sh 2026-08-14_release-v1.14.17 github/master`: all + checks passed. + +## Release + +- Commit `release: v1.14.17 — CI dist artifact + npm version display`. +- Merge (human) triggers release.yml → tag `v1.14.17` → npm `latest` → + GitHub Release. +- #302/#303 (#301 fixes) merge AFTER this release and ship in a later + version. diff --git a/package.json b/package.json index a7babc57..b9a26fb8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "opencode-acp", - "version": "1.14.16", + "version": "1.14.17", "type": "module", "description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)", "main": "./dist/index.js",