Skip to content

Commit 7006c8f

Browse files
0.0.65: Linux, Docker and npm installs, Windows CI, compatibility lab, structured output, image input, webhooks, model provider presets, stream progress, data retention, docs site and cookbook
See CHANGELOG.md for the full list, including behavior changes and what has not been verified.
1 parent af1c596 commit 7006c8f

441 files changed

Lines changed: 61043 additions & 5851 deletions

File tree

Some content is hidden

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

‎.dockerignore‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# The Dockerfile copies named paths only; this keeps everything else out of the build context.
2+
.git
3+
.github
4+
.claude
5+
.vscode
6+
.idea
7+
**/.DS_Store
8+
node_modules
9+
dist
10+
release
11+
output
12+
coverage
13+
**/*.tgz
14+
15+
# runtime data, secrets and local environment
16+
.oaa*/
17+
**/admin.token
18+
**/*.sqlite
19+
**/*.sqlite-shm
20+
**/*.sqlite-wal
21+
**/*.db
22+
**/*.log
23+
**/*.key
24+
**/*.pem
25+
**/.env
26+
**/.env.*
27+
28+
# not needed to build or run the gateway
29+
docs
30+
site
31+
desktop
32+
integrations
33+
tools
34+
README*.md
35+
CHANGELOG.md
36+
CONTRIBUTING.md
37+
CODE_OF_CONDUCT.md
38+
SECURITY.md
39+
Dockerfile
40+
docker-compose*.yml
41+
42+
# of scripts/ only the entrypoint is copied
43+
scripts/*
44+
!scripts/docker-entrypoint.mjs

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.sh text eol=lf
2+
Dockerfile text eol=lf
3+
.dockerignore text eol=lf
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Agent verification report
3+
about: Share the result of `oaa verify` for an agent you have installed (Codex, Claude Code, an ACP agent, ...)
4+
title: 'Agent verification: <agent name and version>'
5+
labels: verification
6+
assignees: ''
7+
---
8+
9+
> Only Antigravity has been verified with real calls so far (see `docs/evidence.md`). A report from you for
10+
> Codex, Claude Code or any other agent helps everyone know what really works.
11+
>
12+
> **Please paste the generated Markdown report as it is.** `oaa verify` already removes keys, your user name,
13+
> host name and local paths. Read it once before posting; if anything private is left, remove it and say so.
14+
> Never paste keys, tokens or the content of `.oaa/admin.token`.
15+
16+
## How I ran it
17+
18+
```bash
19+
oaa verify <agent> --confirm-live-cost
20+
```
21+
22+
<!-- Add any other options you used (--model, --scenarios, --timeout-ms). Running without --confirm-live-cost only prints the plan. -->
23+
24+
## Report
25+
26+
<!-- Paste the whole content of report.md here (written to the --out directory, `oaa-verify-<agent>-<time>/` by default). -->
27+
28+
## Anything unusual
29+
30+
<!-- For example: the agent asked for a login during the run, you cancelled it with Ctrl+C, a scenario failed because of your own setup, or a result surprised you. -->
31+
32+
## Checklist
33+
34+
- [ ] I ran the command myself on the machine named in the report, with the agent's own sign-in.
35+
- [ ] I read the report and removed anything private that was left in it.
36+
- [ ] I know the run made real agent calls that may count against my quota or cost money.
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
11
---
2-
name: Bug 报告
3-
about: 报告一个可复现的缺陷
2+
name: Bug report
3+
about: Report a reproducible defect
44
title: ''
55
labels: bug
66
assignees: ''
77
---
88

9-
> 安全漏洞请不要在这里提,按仓库的 SECURITY.md 私下报告。
10-
> **请不要贴密钥、令牌、`.oaa/admin.token` 的内容;日志请先脱敏。**
9+
<!-- 欢迎用中文填写 / You are welcome to fill this in Chinese. -->
1110

12-
## 问题描述
11+
> Please do not report security vulnerabilities here; report them privately as described in SECURITY.md of the repository.
12+
> **Do not paste keys, tokens or the contents of `.oaa/admin.token`; redact logs first.**
1313
14-
<!-- 发生了什么? -->
14+
## Description
1515

16-
## 复现步骤
16+
<!-- What happened? -->
17+
18+
## Steps to reproduce
1719

1820
1.
1921
2.
2022
3.
2123

22-
## 期望的结果
24+
## Expected result
2325

24-
## 实际的结果
26+
## Actual result
2527

26-
<!-- 错误信息、错误码(如 `run_not_found`)、响应状态码,请脱敏后贴出 -->
28+
<!-- Error messages, error codes (such as `run_not_found`) and response status codes, redacted -->
2729

28-
## 环境
30+
## Environment
2931

30-
- Open Agent API 版本(`package.json` 的 `version`):
31-
- Node.js 版本(`node -v`):
32-
- 操作系统:
33-
- 涉及的协议或接入方式(OpenAI / Claude / Gemini 兼容、`oaa/1`、MCP、Codex、ACP 等):
32+
- Open Agent API version (`version` in `package.json`):
33+
- Node.js version (`node -v`):
34+
- Operating system:
35+
- Protocol or way of access involved (OpenAI / Claude / Gemini compatible, `oaa/1`, MCP, Codex, ACP, and so on):
3436

35-
## 其他信息
37+
## Other information
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
---
2-
name: 功能建议
3-
about: 提出一个新功能或改进
2+
name: Feature request
3+
about: Suggest a new feature or an improvement
44
title: ''
55
labels: enhancement
66
assignees: ''
77
---
88

9-
## 你想解决什么问题?
9+
<!-- 欢迎用中文填写 / You are welcome to fill this in Chinese. -->
1010

11-
<!-- 先讲场景和痛点,而不是方案 -->
11+
## What problem do you want to solve?
1212

13-
## 你设想的做法
13+
<!-- Start with the scenario and the pain point, not the solution -->
1414

15-
## 考虑过的其他做法
15+
## The approach you have in mind
1616

17-
## 是否影响兼容性?
17+
## Other approaches you considered
1818

19-
<!-- 例如:会不会改变已有请求的线上输出、错误码、事件字段、SQLite 结构(见 CONTRIBUTING.md 的兼容性红线) -->
19+
## Does it affect compatibility?
2020

21-
## 其他信息
21+
<!-- For example: would it change the wire output of existing requests, error codes, event fields or the SQLite schema (see the compatibility red lines in CONTRIBUTING.md)? -->
22+
23+
## Other information

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
## 改了什么,为什么
1+
<!-- 欢迎用中文填写 / You are welcome to fill this in Chinese. -->
22

3-
<!-- 简要说明这次改动与动机;关联的 issue 写 `Closes #编号` -->
3+
## What changed, and why
44

5-
## 怎么验证的
5+
<!-- A short description of the change and its motivation. Link the related issue with `Closes #number`. -->
66

7-
- [ ] 本地跑通 `npm run verify`(类型检查、排版检查、全部测试)
8-
- [ ] 功能改动有对应的测试;纯重构没有改测试断言
7+
## How it was verified
98

10-
## 检查清单
9+
- [ ] `npm run verify` passes locally (type check, format check, all tests)
10+
- [ ] A functional change has a matching test; a pure refactor did not change test assertions
1111

12-
- [ ] 符合 CONTRIBUTING.md 的代码约定(分层、文件行数、不用 `any`、错误码登记)
13-
- [ ] 不改变既有请求的线上输出,也不改已发布的错误码与事件字段;若有变化,已在下面说明
14-
- [ ] 有用户可见的变化时,已在 `CHANGELOG.md` 的「未发布」里记录
15-
- [ ] 引入第三方素材或新依赖时,已更新 `THIRD_PARTY_NOTICES.md`
16-
- [ ] 提交信息为 `范围:做了什么` 的格式
17-
- [ ] 没有提交密钥、令牌或个人信息
12+
## Checklist
1813

19-
## 兼容性与风险
14+
- [ ] Follows the code conventions in CONTRIBUTING.md (layers, file length, no `any`, error code registration)
15+
- [ ] Does not change the wire output of existing requests, or published error codes and event fields; if it does, explained below
16+
- [ ] User-visible text is bilingual (Chinese and English), and a documentation change is made in both `docs/` and `docs/zh-CN/` (or explained below)
17+
- [ ] A user-visible change is recorded under `## Unreleased` in `CHANGELOG.md`
18+
- [ ] Third-party material or a new dependency is added to `THIRD_PARTY_NOTICES.md`
19+
- [ ] Commit messages follow `scope: what changed`
20+
- [ ] No keys, tokens or personal information are committed
2021

21-
<!-- 没有写「无」 -->
22+
## Compatibility and risk
23+
24+
<!-- Write "none" if there is none -->

‎.github/workflows/ci.yml‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,33 @@ permissions:
99

1010
jobs:
1111
verify:
12-
name: verify (${{ matrix.os }})
12+
name: verify (${{ matrix.os }}, node ${{ matrix.node }})
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17+
# engines 是 >=24.18.0 <27:24 与 26 两条线都要通过(发布包自带的运行时仍是 24.18.0)。
18+
node: ['24', '26']
1719
runs-on: ${{ matrix.os }}
1820
timeout-minutes: 30
1921
steps:
2022
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2123
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2224
with:
23-
node-version: '24'
25+
node-version: ${{ matrix.node }}
26+
- run: node --version && npm --version
2427
- run: npm ci --omit=optional --ignore-scripts
2528
- run: npm run verify
2629

2730
# Windows:测试里大量用到 POSIX 专用写法(chmod 出来的带 shebang 的假可执行文件、/bin/sh、
2831
# 权限位、SIGTERM/SIGKILL 等),完整测试在 Windows 上必然失败。这里先跑类型检查、格式检查与
2932
# 和 Windows 打包相关的测试;完整的 Windows 兼容是另一项工作(清单见 docs/releasing.md)。
3033
windows:
31-
name: check (windows-latest)
34+
name: check (windows-latest, node ${{ matrix.node }})
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
node: ['24', '26']
3239
runs-on: windows-latest
3340
timeout-minutes: 20
3441
steps:
@@ -37,7 +44,7 @@ jobs:
3744
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
3845
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3946
with:
40-
node-version: '24'
47+
node-version: ${{ matrix.node }}
4148
- run: npm ci --omit=optional --ignore-scripts
4249
- run: npm run check
4350
- run: npm run format:check

‎.github/workflows/compat.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# 兼容性实验室(integrations/compat):用社区真实在用的 SDK 与框架去打一个隔离的网关,并回放各聊天客户端
2+
# 的请求形状。网关在 127.0.0.1 随机端口、临时数据目录里运行,只发布离线示例智能体与确定性夹具模型,
3+
# 不调用任何模型服务。第三方包没有锁死到补丁版本(requirements.txt 只设上限),所以每周跑一次,
4+
# 它们更新后出现的不兼容能及时发现;矩阵作为产物上传,并写进作业摘要。
5+
name: Compat
6+
7+
on:
8+
push:
9+
pull_request:
10+
workflow_dispatch:
11+
schedule:
12+
- cron: '17 5 * * 1'
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
lab:
19+
name: compatibility lab
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 30
22+
steps:
23+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
24+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
25+
with:
26+
node-version: '24'
27+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
28+
with:
29+
python-version: '3.13'
30+
- run: npm ci --omit=optional --ignore-scripts
31+
# 实验室自己的 Node 依赖(锁文件 integrations/compat/package-lock.json),不是网关的依赖。
32+
- run: npm ci --ignore-scripts --prefix integrations/compat
33+
# Python 依赖装进虚拟环境(requirements.txt 带版本上限);run.mjs 会自动用 integrations/compat/.venv。
34+
- run: python -m venv integrations/compat/.venv
35+
- run: integrations/compat/.venv/bin/python -m pip install --disable-pip-version-check -r integrations/compat/requirements.txt
36+
- run: npm run compat -- --out compat-out --strict
37+
- name: Write the matrix into the job summary
38+
if: always()
39+
run: |
40+
if [ -f compat-out/matrix.md ]; then cat compat-out/matrix.md >> "$GITHUB_STEP_SUMMARY"; else echo "The lab produced no matrix." >> "$GITHUB_STEP_SUMMARY"; fi
41+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
42+
if: always()
43+
with:
44+
name: compat-matrix
45+
path: compat-out/
46+
if-no-files-found: warn

0 commit comments

Comments
 (0)