Skip to content

Commit a1fff4b

Browse files
author
hzq
committed
Bundle EverythingACP 0.4.0 in Open Agent API 0.0.72
Use the pinned upstream converter, verification tools and resources. Check a generated wrapper's recorded files before managed import and launch, preserve legacy recipe pins, and wait for local ACP output delivery before declaring a turn complete.
1 parent 7a31adc commit a1fff4b

82 files changed

Lines changed: 2737 additions & 496 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ English · [简体中文](CHANGELOG.zh-CN.md)
44

55
## Unreleased
66

7+
## 0.0.72 (2026-11-24)
8+
9+
- The ACP worker waits for accepted text and progress callbacks before reporting success. A slow or failed delivery is no longer hidden by an earlier `end_turn`; cancellation does not resend the prompt.
10+
- Embed EverythingACP 0.4.0: generated wrappers now carry a package record, managed launches verify recorded assets as well as the recipe, and `oaa acp` exposes the bundled upstream CLI. Existing unrecorded recipe-pinned wrappers keep working. The desktop and console interface are unchanged.
711
- Opening an approval and parking or yielding a run now verify their own committed records. A lost SQLite acknowledgement no longer fails an already approved run, publishes a phantom request, or repeats a tool. A native caller's pending step and request are registered together.
812
- Caller-tool continuations now commit a result batch, its audits, delivery cursor and tool option together. Losing the SQLite acknowledgement no longer strands the last batch; rejected or replayed returns cannot change an existing run's tool choice.
913
- Manual approvals and denials now confirm both the decision and its audit event before notifying waiters. Losing a SQLite acknowledgement no longer strands an already approved run or prompts the operator to vote again. Waiting for the writer does not block unrelated requests.

‎CHANGELOG.zh-CN.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## 未发布
66

7+
## 0.0.72(2026-11-24)
8+
9+
- ACP 工作节点在已收到的文本和进度回调处理完后才报告成功。对端先发来的 `end_turn` 不会掩盖慢回调或写入失败;取消不会重发提示。
10+
- 内置 EverythingACP 0.4.0。新生成的托管包装器会在导入和启动时核对配方与包内记录的文件;旧版仅固定配方的包装器仍可使用。`oaa acp` 可直接运行随包提供的上游 CLI,桌面和控制台界面不变。
711
- 创建审批待办、暂停等待和公平让出执行槽时,内核会核对本次提交的原记录。SQLite 回执丢失不会再把已批准的任务判为失败,也不会多发待办或重做工具;原生调用方工具的待处理步骤与待办一起登记。
812
- 调用方工具回传的整批结果、审计事件、输出位置和工具选项现在一起提交。最后一批结果丢失提交回执也能继续原任务;被拒绝或重复的回传不会改变原运行的工具选择。
913
- 人工批准或拒绝后,网关核对决定和对应的审计事件再通知等待者。即使 SQLite 已提交但回执丢失,已批准的任务也能继续,不需要重新审批;等待写锁不会阻塞其他请求。

‎NOTICE‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Copyright 2026 The Open Agent API Authors
33

44
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
55

6-
This distribution includes the project-owned EverythingACP 0.3.1 conversion
6+
This distribution includes the project-owned EverythingACP 0.4.0 conversion
77
runtime, licensed under the same Apache License, Version 2.0. The integration
88
and its modifications are documented in vendor/everything-acp/README.md.
9+
The optional upstream workbench includes Lucide icons; its original license
10+
is retained in vendor/everything-acp/web/lucide/LICENSE and the built runtime.
911

1012
This product includes software and metadata developed by third parties:
1113

‎THIRD_PARTY_NOTICES.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Verification record (2026-11-10): the launch commands of all 32 presets in the c
2323

2424
Additional note: "presets that use an `npx` launcher are not discovered or run" means that OAA never downloads or executes those packages with `npx`. `claude-acp`, `codex-acp`, `codebuddy`, `pi-acp`, `deepagents`, `minimax-code`, and `glm` can discover their installed package binaries on `PATH`; discovery never enables or runs them. The latter four binary names and arguments were checked against package manifests on 2026-11-15 (MiniMax's binary is `mcode acp`, not `minimax`).
2525

26-
The ACP client (`src/engines/acp.ts`) is a minimal JSON-RPC implementation written independently against the public Agent Client Protocol v1 specification; it does not ship or copy any code of `@agentclientprotocol/sdk`, and during development the SDK (Apache-2.0) was consulted only through the `schema.json` it publishes, to check field names.
26+
The OAA worker's ACP client (`src/engines/acp.ts`) is a minimal JSON-RPC implementation written independently against the public Agent Client Protocol v1 specification. The separately bundled EverythingACP converter uses the Apache-2.0 `@agentclientprotocol/sdk` dependency; it does not replace the OAA worker's client.
2727

2828
## Brand mark
2929

@@ -33,6 +33,8 @@ The Open Agent API mark in `web/brand.svg` and `docs/brand/` (a thin-line O and
3333

3434
The console's interface icons come from [Lucide](https://lucide.dev) (ISC license) and are served at `/icons.js` through the installed `lucide` dependency. The full license text (ISC, together with the MIT license that applies to some icons from Feather) is copied in `licenses/Lucide-ISC.txt` and is also distributed with `node_modules/lucide`.
3535

36+
The optional upstream EverythingACP workbench has its own Lucide SVG files and license in `vendor/everything-acp/web/lucide`; both are copied into the converter runtime.
37+
3638
## Interface fonts (`web/fonts/*.woff2`)
3739

3840
The console and the developer portal ship four fonts with the product, so they do not depend on what is installed on a visitor's machine. The files are copied from the Fontsource npm packages (version 5.3.0) and are all under the SIL Open Font License 1.1 (OFL-1.1); the full license texts are in `licenses/`. The `@font-face` rules are in `web/shared/fonts.css` and `web/shared/fonts-serif-sc.css`, and the gateway serves them under `/fonts/` and `/portal/fonts/`.

‎docs/intelligence.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ Instead of guessing model capability from marketing names, the gateway includes
8282

8383
## Importing EverythingACP Wrappers
8484

85-
Open Agent API includes [EverythingACP 0.3.1](https://github.com/jiangxingfan1-coder/Open-Agent-API/tree/main/vendor/everything-acp). It turns a non-ACP program or service into an ACP stdio agent; it does not replace its model, install the original software, or start a network listener. For example, with Git installed and a local gateway running:
85+
Open Agent API includes [EverythingACP 0.4.0](https://github.com/jiangxingfan1-coder/EverythingACP/tree/498e7ebba3d888d8897874aeaa5685f14ed3effd). It turns a non-ACP program or service into an ACP stdio agent; it does not replace its model, install the original software, or start a network listener. For example, with Git installed and a local gateway running:
8686

8787
```sh
8888
oaa wrap git --type command --args '["hash-object","--stdin"]' --out ./git-wrapper
8989
oaa connect git-hash --client-file ./git-wrapper/oaa-client.json
9090
```
9191

92+
New managed descriptors also pin `record_sha256` from generation. Import and startup check the recorded runtime, distribution and packaged assets. Unrecorded 0.0.71 descriptors retain their original recipe-only check. Use `oaa acp check-package ./git-wrapper --record-sha256 DIGEST` for an offline integrity check, `oaa acp list-bins ./git-wrapper` to see launch commands, or `oaa acp --help` for the full CLI. Discovery only checks the descriptor and its pinned recipe and record; it does not scan every asset in every candidate folder.
93+
9294
Use `agent/git-hash` through the normal Responses API. The operator can instead discover the output folder under **Execution machines**: import alone leaves the wrapper disabled. The bundled descriptor pins the generated recipe and passes the task text without appending workspace instructions. Changing that recipe requires a new wrapper; the executable and its own dependencies remain under the operator's control. Permissions, cancellation and output use the existing ACP worker. Cancelling an already dispatched program does not prove that its earlier effects were rolled back.
9395

9496
Use `oaa wrap TARGET --manifest adapter.json --out NEW_DIRECTORY` for a declared command, JSONL stream or session/job recipe. An OpenAPI JSON file can be mapped with `--operation`, `--prompt-field` and `--reply-path`. Generation sends no task and never installs dependencies; discovery of a command may run its help probe, so use trusted local programs. Ambiguous mappings stay drafts. The generated `client.json` and package also work independently after installing their dependencies. Browser, PTY and desktop mappings use this standalone route and require their own platform prerequisites. The `client_file` in the CLI result identifies which descriptor to use.

‎docs/zh-CN/intelligence.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@
8282

8383
## 导入 EverythingACP 本地适配器
8484

85-
Open Agent API 已内置 [EverythingACP 0.3.1](https://github.com/jiangxingfan1-coder/Open-Agent-API/tree/main/vendor/everything-acp)。它把原本不支持 ACP 的程序或服务包装为 ACP stdio 智能体,不替换原软件的模型,不安装原软件,也不自动开放网络端口。以下示例只需要本机 Git 和正在运行的网关:
85+
Open Agent API 已内置 [EverythingACP 0.4.0](https://github.com/jiangxingfan1-coder/EverythingACP/tree/498e7ebba3d888d8897874aeaa5685f14ed3effd)。它把原本不支持 ACP 的程序或服务包装为 ACP stdio 智能体,不替换原软件的模型,不安装原软件,也不自动开放网络端口。以下示例只需要本机 Git 和正在运行的网关:
8686

8787
```sh
8888
oaa wrap git --type command --args '["hash-object","--stdin"]' --out ./git-wrapper
8989
oaa connect git-hash --client-file ./git-wrapper/oaa-client.json
9090
```
9191

92+
新托管描述文件还会固定生成时返回的 `record_sha256`。导入和启动前都会核对记录中的运行时、发布文件和随包资产;0.0.71 没有包记录的旧描述文件仍按原规则核对配方。用 `oaa acp check-package ./git-wrapper --record-sha256 摘要` 可离线核验,用 `oaa acp list-bins ./git-wrapper` 可查看入口,完整命令见 `oaa acp --help`。发现列表只核对描述文件、配方和记录摘要,不逐份扫描所有候选目录里的资产。
93+
9294
按现有 Responses 接口调用 `agent/git-hash` 即可。也可以在原有的「执行机器」页选择生成目录;只导入不会启用或发布。内置描述文件校验生成配方的摘要,传给程序的任务文本不追加工作区说明。修改配方后需要重新生成;原程序和它的依赖仍由操作者管理。权限请求、取消和输出沿用现有 ACP 工作节点。取消已派发的程序,不等于回滚它可能已产生的副作用。
9395

9496
命令、JSONL 流或有会话、轮询的服务可用 `oaa wrap TARGET --manifest adapter.json --out 新目录`;OpenAPI JSON 可通过 `--operation`、`--prompt-field`、`--reply-path` 映射。生成时不提交任务、不自动安装依赖;自动识别命令可能读取其帮助输出,只对受信任的本机程序使用。无法确定的映射保留为草稿。生成的 `client.json` 和独立包在安装自身依赖后也可单独运行;浏览器、PTY、桌面类型走独立包,并需满足对应平台条件。使用 CLI 结果的 `client_file` 即可选中正确的描述文件。

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-agent-api",
3-
"version": "0.0.71",
3+
"version": "0.0.72",
44
"private": true,
55
"type": "module",
66
"description": "A capability-aware agent runtime with a portable API and distributed workers",

‎scripts/build-everything-acp.mjs‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,30 @@ async function compile(rel = '') {
4949
await writeFile(path.join(stage, child.replace(/\.ts$/, '.js')), text, { mode: 0o644 });
5050
}
5151
}
52+
async function copyWorkbench(rel = 'web') {
53+
await mkdir(path.join(stage, rel));
54+
for (const entry of await readdir(path.join(vendor, rel), { withFileTypes: true })) {
55+
const child = path.join(rel, entry.name);
56+
if (entry.name.startsWith('.')) throw Error('Unexpected workbench resource: ' + child);
57+
if (entry.isDirectory()) await copyWorkbench(child);
58+
else if (entry.isFile() && (entry.name === 'LICENSE' || /\.(css|html|js|svg)$/.test(child))) {
59+
await copyFile(path.join(vendor, child), path.join(stage, child));
60+
await chmod(path.join(stage, child), 0o644);
61+
} else throw Error('Unexpected workbench resource: ' + child);
62+
}
63+
}
5264
try {
5365
await compile();
66+
await chmod(path.join(stage, 'cli.js'), 0o755);
67+
await copyWorkbench();
5468
await mkdir(path.join(stage, 'native'));
5569
const resources = [
5670
['native/ax.swift', 'native/ax.swift'],
71+
['native/AXObservation.swift', 'native/AXObservation.swift'],
5772
['resources/install.mjs', 'install.mjs'],
5873
['resources/oaa-stdio.mjs', 'oaa-stdio.mjs'],
74+
['resources/oaa-managed.mjs', 'oaa-managed.mjs'],
75+
['LICENSE', 'LICENSE'],
5976
['resources/upstream-package.json', 'runtime-package.json'],
6077
['resources/upstream-lock.json', 'runtime-lock.json'],
6178
...['GENERATE.md', 'INTEROP.md', 'KERNEL.md'].map((name) => ['resources/' + name, name]),
@@ -64,7 +81,6 @@ try {
6481
await copyFile(path.join(vendor, src), path.join(stage, dst));
6582
await chmod(path.join(stage, dst), 0o644);
6683
}
67-
await copyFile(path.join(root, 'LICENSE'), path.join(stage, 'LICENSE'));
6884
const { manifestSchema } = await import(pathToFileURL(path.join(stage, 'manifest.js')).href);
6985
const { describeBuild, inspectKernel } = await import(
7086
pathToFileURL(path.join(stage, 'kernel.js')).href

‎scripts/smoke-flow.mjs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ export async function firstCallFlow({ run, step, sleep, freePort, expectVersion
228228
const wrapped = JSON.parse(run(['wrap', 'git', '--manifest', manifest, '--out', wrapper]));
229229
if (wrapped.runtime !== 'bundled' || wrapped.published !== false)
230230
throw Error('The installed CLI did not produce a bundled ACP launch descriptor.');
231+
const core = JSON.parse(run(['acp', 'kernel']));
232+
const checked = JSON.parse(
233+
run(['acp', 'check-package', wrapper, '--record-sha256', wrapped.record_sha256]),
234+
);
235+
if (
236+
!checked.ok ||
237+
checked.recordSha256 !== wrapped.record_sha256 ||
238+
core.packageVersion !==
239+
JSON.parse(fs.readFileSync(path.join(wrapper, 'package.json'), 'utf8')).version
240+
)
241+
throw Error('The installed converter did not verify its generated package.');
242+
step(
243+
`Bundled EverythingACP ${core.packageVersion}: kernel and generated package record verified`,
244+
);
231245
run(['connect', 'packaged-git', '--client-file', wrapped.client_file, '--dir', dir]);
232246
const scoped = path.join(dir, 'keys', 'packaged-git.key'),
233247
text = 'packaged non-ACP Git $&\n';

0 commit comments

Comments
 (0)