opencode-acp 1.14.17-pr.304.13 → 1.14.17-pr.305.15

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 CHANGED
@@ -492,13 +492,13 @@ For the complete list with root cause analysis, see the [bug tracker](https://gi
492
492
 
493
493
  ## Changelog
494
494
 
495
- ### v1.14.17 — Eliminate compress retry dead-ends (#301)
495
+ ### v1.14.17 — Per-PR npm preview builds + release publishing feedback (#298)
496
496
 
497
- **Problem**: Two compress arguments hard-failed on first use and produced confusing error loops instead of actionable feedback. (1) The model learned "add `acknowledgeRisk: true` to retry" from quality-gate rejection templates, then carried the flag into *every* retry — including retries after non-quality errors (e.g. a missing topic), where no quality-gate rejection was pending, hitting `Parameter "acknowledgeRisk": true was provided, but no quality gate rejection is pending` (issue #301). (2) `content[0] needs a topic — provide content[0].topic or the top-level topic` hard-failed compress calls whose entries had no topic and no top-level fallback.
497
+ **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.
498
498
 
499
- **Fix**: Both parameters are now tolerant. `acknowledgeRisk` without a pending rejection is a no-op quality checks still run (the gate's protection is unchanged: bypass is only armed by a real quality-gate rejection), and a successful result carries an `⚠️ acknowledgeRisk was ignored: ...` note teaching correct usage. Topics are fully optional: an entry without its own topic falls back to the top-level topic, then to one derived from the summary's first line (markdown headings stripped, capped at 80 chars), so `search_context` always has something searchable.
499
+ **Fix** (#298): New `.github/workflows/pr-artifact.yml` on every PR to master: build the plugin, publish it to npm under a `pr-<N>` tag (version `<base>-pr.<N>.<run>`), 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.
500
500
 
501
- Files: `lib/compress/range.ts`, `lib/compress/range-utils.ts` (new `deriveFallbackTopic`), `lib/compress/quality-gate/rejection.ts` (removed `buildPreemptiveAcknowledgeError`), `lib/compress/types.ts`, `lib/prompts/compress-range.ts`, `lib/prompts/extensions/tool.ts`, `lib/state/types.ts`. Tests: 976 pass.
501
+ Files: `.github/workflows/pr-artifact.yml`, `.github/workflows/release.yml`. Tests: 976 pass.
502
502
 
503
503
  **Install**: `opencode plugin opencode-acp@latest --global`
504
504
 
package/README.zh-CN.md CHANGED
@@ -446,13 +446,13 @@ ACP 是 DCP 的直接替代品。迁移步骤:
446
446
 
447
447
  ## 更新日志
448
448
 
449
- ### v1.14.17 — 消除 compress 重试死循环(#301
449
+ ### v1.14.17 — PR 预览构建发布 npm + 发版发布反馈(#298
450
450
 
451
- **问题**:两个 compress 参数在首次使用时硬报错,产生令人困惑的错误循环而非可执行的反馈。(1) 模型从质量门拒绝模板学到「重试要加 `acknowledgeRisk: true`」,于是把它带进了所有重试——包括非质量错误(如缺 topic)之后的重试,此时没有 pending 的质量门拒绝,撞上 `Parameter "acknowledgeRisk": true was provided, but no quality gate rejection is pending`(issue #301)。(2) `content[0] needs a topic — provide content[0].topic or the top-level topic` 在 entry 无 topic 且无顶层 fallback 时硬报错。
451
+ **问题**:合并前无法安装测试 PR 的构建产物;发版合并后 PR 上也没有确认发布到了 npm 的哪个版本。
452
452
 
453
- **修复**:两个参数均改为宽容处理。无 pending 拒绝时的 `acknowledgeRisk` no-op——质量检查照常运行(质量门保护不变:bypass 只由真实的质量门拒绝解锁),成功结果附带 `⚠️ acknowledgeRisk was ignored: ...` 提示教模型正确用法。topic 完全可选:entry 无自有 topic 时依次回退到顶层 topic、再到从 summary 首行派生的 topic(去 markdown 标题符、截断 80 字符),保证 `search_context` 始终有可检索内容。
453
+ **修复**(#298):新增 \`.github/workflows/pr-artifact.yml\` —— 每个指向 master PR:构建插件、以 \`pr-<N>\` tag 发布到 npm(版本 \`<base>-pr.<N>.<run>\`)、上传 tarball + \`dist/\` 作为 workflow artifact(保留 30 天)、在 PR 上评论安装指引。\`release.yml\` 另在发版合并后于关联 PR 评论已发布版本。本版本不含插件运行时行为变更。
454
454
 
455
- 文件:`lib/compress/range.ts`、`lib/compress/range-utils.ts`(新增 `deriveFallbackTopic`)、`lib/compress/quality-gate/rejection.ts`(移除 `buildPreemptiveAcknowledgeError`)、`lib/compress/types.ts`、`lib/prompts/compress-range.ts`、`lib/prompts/extensions/tool.ts`、`lib/state/types.ts`。测试:976 通过。
455
+ 文件:\`.github/workflows/pr-artifact.yml\`、\`.github/workflows/release.yml\`。测试:976 通过。
456
456
 
457
457
  **安装**:`opencode plugin opencode-acp@latest --global`
458
458
 
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.17-pr.304.13" : "dev";
8952
+ var LOG_VERSION = true ? "1.14.17-pr.305.15" : "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.17-pr.304.13",
4
+ "version": "1.14.17-pr.305.15",
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",