@botbotgo/agent-harness 0.0.211 → 0.0.212
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 +11 -25
- package/README.zh.md +25 -39
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<em
|
|
42
|
-
>
|
|
42
|
+
>For AI solutions and help shipping a product idea, contact
|
|
43
43
|
<a href="mailto:info@easynet.world">info@easynet.world</a>.</em
|
|
44
44
|
>
|
|
45
45
|
</p>
|
|
@@ -71,11 +71,11 @@ them without forcing a rewrite.
|
|
|
71
71
|
|
|
72
72
|
## Documentation Paths
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
Choose an entry point that matches what you need:
|
|
75
75
|
|
|
76
76
|
- **Technology:** capability comparison, runtime model, protocol surfaces, API, recovery, approvals, and operator control
|
|
77
77
|
- **Product:** what the stable runtime surface already is, which product scenarios it fits, and why it is not another agent framework
|
|
78
|
-
- **Commercial:**
|
|
78
|
+
- **Commercial:** pricing, engagement process, and scoped services for deployment help, launch hardening, and team handoff
|
|
79
79
|
|
|
80
80
|
Recommended entry points:
|
|
81
81
|
|
|
@@ -87,7 +87,7 @@ Recommended entry points:
|
|
|
87
87
|
|
|
88
88
|
## License & Commercial Support
|
|
89
89
|
|
|
90
|
-
This
|
|
90
|
+
This project is licensed under **Apache License 2.0**.
|
|
91
91
|
[LICENSE](./LICENSE)
|
|
92
92
|
|
|
93
93
|
Core runtime is open source: inspect and run it freely.
|
|
@@ -120,18 +120,18 @@ Additional docs:
|
|
|
120
120
|
- **Extend:** drop `tool({...})` modules and SKILL trees under `resources/`, wire shared tools and MCP in catalogs, and let agents whitelist what they use.
|
|
121
121
|
- **Built into the runtime:** persisted `requests`, `sessions`, `approvals`, and `events`; recovery and queueing; streaming listeners; MCP in/out; LangChain v1 and DeepAgents adapters—so you do not rebuild that layer per app.
|
|
122
122
|
|
|
123
|
-
##
|
|
123
|
+
## Runtime capabilities at a glance
|
|
124
124
|
|
|
125
|
-
The
|
|
125
|
+
The public API spans a full product runtime—persistent records, memory and evidence, protocol surfaces, and governance—not only a thin bootstrap around YAML and tools.
|
|
126
126
|
|
|
127
127
|
- **Core runtime API:** `createAgentHarness`, `request`, `subscribe`, `resolveApproval`, inspection helpers, and stable persisted runtime records for `requests`, `sessions`, `approvals`, `events`, and artifacts.
|
|
128
128
|
- **Runtime memory and evidence:** `memorize`, `recall`, `listMemories`, memory policy hooks, `listArtifacts`, `getArtifact`, `exportEvaluationBundle`, `replayEvaluationBundle`, and request/session evidence export helpers.
|
|
129
129
|
- **Protocol and transport surfaces:** `createAcpServer`, `serveAcpStdio`, `serveAcpHttp`, `serveA2aHttp`, `serveAgUiHttp`, and `createRuntimeMcpServer` / `serveRuntimeMcpOverStdio`.
|
|
130
130
|
- **Governed workspace runtime:** YAML-owned routing, concurrency, maintenance, MCP policy, runtime governance bundles, and approval defaults for sensitive memory or write-like MCP side effects.
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
If you integrate external clients, treat `deepagents-acp` as the primary protocol direction: clients connect through that surface while `agent-harness` keeps persistence, recovery, approvals, and operator control on the runtime side.
|
|
133
133
|
|
|
134
|
-
##
|
|
134
|
+
## The problem this solves
|
|
135
135
|
|
|
136
136
|
In one line: `agent-harness` productizes the runtime work that usually appears after the demo.
|
|
137
137
|
|
|
@@ -222,7 +222,7 @@ In practice, the harness exists for the parts that are expensive and repetitive
|
|
|
222
222
|
- queueing, concurrency, maintenance, and operational policy
|
|
223
223
|
- stable runtime records that stay usable even if the backend changes
|
|
224
224
|
|
|
225
|
-
The
|
|
225
|
+
The default workspace configuration shipped with the package is deliberately full-shaped. The bundled YAML keeps explicit defaults for important runtime and agent knobs so teams can start from concrete configuration instead of reverse-engineering adapter behavior from source.
|
|
226
226
|
|
|
227
227
|
The default rule is:
|
|
228
228
|
|
|
@@ -242,7 +242,7 @@ Start with these user-facing docs:
|
|
|
242
242
|
- `docs/long-term-memory.md`
|
|
243
243
|
- `docs/memory-policy-reference.md`
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
Deeper design notes and boundary discussions ship alongside the package for advanced readers; everyday integration and operations rely on the README, developer docs, and topical references above.
|
|
246
246
|
|
|
247
247
|
`deepagents-acp` is the required external protocol direction when external tools need a standard runtime boundary. The harness should conform to `deepagents-acp` semantics at that boundary while keeping runtime lifecycle, persistence, recovery, and governance harness-owned.
|
|
248
248
|
|
|
@@ -252,20 +252,6 @@ Recommended orchestration shape for long-running flows:
|
|
|
252
252
|
- use `backend: deepagent` when you want high-level execution semantics with minimal application wiring
|
|
253
253
|
- keep `backend: langchain-v1` for lighter direct-response or explicitly chosen V1 agent shapes
|
|
254
254
|
|
|
255
|
-
## Why This Exists
|
|
256
|
-
|
|
257
|
-
Most agent tooling stops at execution. Production software does not.
|
|
258
|
-
|
|
259
|
-
Real products need a runtime that can answer harder questions:
|
|
260
|
-
|
|
261
|
-
- Where do requests live?
|
|
262
|
-
- How are approvals resolved?
|
|
263
|
-
- What survives process restart?
|
|
264
|
-
- How do you inspect sessions and events without exposing raw backend state?
|
|
265
|
-
- How do you swap backend implementations without rewriting the product model?
|
|
266
|
-
|
|
267
|
-
`agent-harness` is the layer that answers those questions without turning your application API into a mirror of LangChain v1 or DeepAgents.
|
|
268
|
-
|
|
269
255
|
## What Makes It Different
|
|
270
256
|
|
|
271
257
|
- It treats `requests`, `sessions`, `approvals`, `events`, and recovery as first-class product records
|
|
@@ -719,7 +705,7 @@ Current temporary limits on the `backend: langchain-v1` path are:
|
|
|
719
705
|
|
|
720
706
|
- approval-gated side-effect tools are less reliable than the DeepAgents path under real remote models
|
|
721
707
|
- long multi-agent or orchestration-heavy flows are not the recommended default path
|
|
722
|
-
- the
|
|
708
|
+
- the package now treats DeepAgents as the default execution path for complex runtime coverage, and LangChain v1 should be selected explicitly when a workspace truly wants that behavior
|
|
723
709
|
|
|
724
710
|
Practical guidance:
|
|
725
711
|
|
package/README.zh.md
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</p>
|
|
28
28
|
|
|
29
29
|
<p align="center">
|
|
30
|
-
<a href="https://botbotgo.github.io/agent-harness/development/">开发文档</a>
|
|
30
|
+
<a href="https://botbotgo.github.io/agent-harness/development/zh/">开发文档</a>
|
|
31
31
|
(多页面静态文档位于 <code>docs/development/</code>,支持 English / 中文)
|
|
32
32
|
</p>
|
|
33
33
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<em
|
|
42
|
-
|
|
42
|
+
>如需 AI 解决方案或产品落地支持,欢迎来信
|
|
43
43
|
<a href="mailto:info@easynet.world">info@easynet.world</a>。</em
|
|
44
44
|
>
|
|
45
45
|
</p>
|
|
@@ -69,23 +69,23 @@ try {
|
|
|
69
69
|
|
|
70
70
|
## 阅读路径
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
按你的目标选入口即可:
|
|
73
73
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
74
|
+
- **想尽快接入:** 从[开发文档](./docs/development/zh/index.html)起步,再按需打开 API、协议与 Cookbook。
|
|
75
|
+
- **想弄清边界:** 读[并列对比](./docs/development/zh/comparison.html),区分运行时产品与上游执行框架。
|
|
76
|
+
- **需要部署、加固或交接支持:** 查看[商业服务](./docs/commercial-pricing.md)与[合作流程](./docs/enterprise-process.md)。
|
|
77
77
|
|
|
78
78
|
推荐入口:
|
|
79
79
|
|
|
80
|
-
- [开发文档入口](./docs/development/index.html)
|
|
81
|
-
- [并列对比页](./docs/development/comparison.html)
|
|
82
|
-
- [API 参考](./docs/development/api-reference.html)
|
|
83
|
-
- [协议接入说明](./docs/development/protocol-surfaces.html)
|
|
80
|
+
- [开发文档入口](./docs/development/zh/index.html)
|
|
81
|
+
- [并列对比页](./docs/development/zh/comparison.html)
|
|
82
|
+
- [API 参考](./docs/development/zh/api-reference.html)
|
|
83
|
+
- [协议接入说明](./docs/development/zh/protocol-surfaces.html)
|
|
84
84
|
- [商业服务价格说明](./docs/commercial-pricing.md)
|
|
85
85
|
|
|
86
86
|
## 许可证与商业支持
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
本项目采用 **Apache License 2.0** 开源许可。[查看 LICENSE](./LICENSE)
|
|
89
89
|
|
|
90
90
|
核心运行时开源,可自由查看与试用。
|
|
91
91
|
商业支持侧重帮助团队完成生产落地与交接,例如:
|
|
@@ -116,18 +116,18 @@ try {
|
|
|
116
116
|
- **扩展:** 在 `resources/` 下放置 `tool({...})` 模块与 SKILL 目录,在目录里声明共享工具与 MCP,再由各 agent 按名字白名单启用。
|
|
117
117
|
- **内建运行时:** 持久化 `requests`、`sessions`、`approvals` 与 `events`;恢复与排队;流式监听;MCP 接入与对外暴露;LangChain v1 与 DeepAgents 适配——避免每个应用重复造这一层。
|
|
118
118
|
|
|
119
|
-
##
|
|
119
|
+
## 运行时能力速览
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
若你想先看「今天能直接用到什么」,可从本节读起。`agent-harness` 提供完整的产品级运行时能力,而不只是「能启动」的脚手架。
|
|
122
122
|
|
|
123
123
|
- **核心 runtime API:** `createAgentHarness`、`request`、`subscribe`、`resolveApproval`、各类查询与检查辅助 API,以及稳定持久化的 `requests`、`sessions`、`approvals`、`events` 与 artifacts 记录。
|
|
124
124
|
- **运行时 memory 与证据能力:** `memorize`、`recall`、`listMemories`、memory policy hooks、`listArtifacts`、`getArtifact`、`exportEvaluationBundle`、`replayEvaluationBundle`,以及 request / session 级证据导出辅助函数。
|
|
125
125
|
- **协议与传输层:** `createAcpServer`、`serveAcpStdio`、`serveAcpHttp`、`serveA2aHttp`、`serveAgUiHttp`,以及 `createRuntimeMcpServer` / `serveRuntimeMcpOverStdio`。
|
|
126
126
|
- **受治理的工作区运行时:** 由 YAML 持有的路由、并发、维护、MCP 策略、runtime governance bundles,以及针对敏感 memory 或写类 MCP 副作用的默认审批门槛。
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
若你的产品需要对接外部客户端,可从本节理解边界:`deepagents-acp` 是主要的外部协议接入方向;持久化、恢复、审批与运行控制仍由 `agent-harness` 在运行时侧承担。
|
|
129
129
|
|
|
130
|
-
##
|
|
130
|
+
## 这能解决什么问题
|
|
131
131
|
|
|
132
132
|
一句话概括:`agent-harness` 把通常在 demo 之后才不得不补上的运行时工作,提前做成产品运行时的一部分。
|
|
133
133
|
|
|
@@ -218,27 +218,27 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
218
218
|
- 队列、并发、维护与运维策略
|
|
219
219
|
- 即使后端变更也保持稳定的运行时记录模型
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
本包附带的默认工作区配置刻意做成「形状完整」。随发行版提供的 YAML 对关键运行时与 agent 开关给出显式默认值,便于从具体配置起步,而不必从源码反推适配器行为。
|
|
222
222
|
|
|
223
223
|
默认原则是:
|
|
224
224
|
|
|
225
225
|
- 若 LangChain v1 或 DeepAgents 已有能力,则在 YAML 中映射并在内部适配
|
|
226
226
|
- 除非问题确实属于运行时职责,否则不增加新的公共运行时 API
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
建议从这些面向用户的文档开始(中文多页面在 `docs/development/zh/`):
|
|
229
229
|
|
|
230
|
-
- `docs/development/index.html`
|
|
231
|
-
- `docs/development/getting-started.html`
|
|
232
|
-
- `docs/development/comparison.html`
|
|
233
|
-
- `docs/development/api-reference.html`
|
|
234
|
-
- `docs/development/protocol-surfaces.html`
|
|
235
|
-
- `docs/development/cookbook.html`
|
|
230
|
+
- `docs/development/zh/index.html`
|
|
231
|
+
- `docs/development/zh/getting-started.html`
|
|
232
|
+
- `docs/development/zh/comparison.html`
|
|
233
|
+
- `docs/development/zh/api-reference.html`
|
|
234
|
+
- `docs/development/zh/protocol-surfaces.html`
|
|
235
|
+
- `docs/development/zh/cookbook.html`
|
|
236
236
|
- `docs/runtime-inspection-contract.md`
|
|
237
237
|
- `docs/tool-execution-policy.md`
|
|
238
238
|
- `docs/long-term-memory.md`
|
|
239
239
|
- `docs/memory-policy-reference.md`
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
项目内还包含面向进阶读者与贡献者的设计说明与边界讨论;日常接入与运维以 README、开发文档与上文专题为准即可。
|
|
242
242
|
|
|
243
243
|
当外部工具需要标准运行时边界时,`deepagents-acp` 是必须遵循的外部协议方向。`agent-harness` 应在该边界上严格契合 `deepagents-acp` 语义,同时继续把运行时生命周期、持久化、恢复与治理保留在 harness 内部。
|
|
244
244
|
|
|
@@ -248,20 +248,6 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
248
248
|
- 想用高层执行语义、少写应用编排时,优先选择 `backend: deepagent`
|
|
249
249
|
- 轻量 direct-response 或明确需要 V1 agent 语义时,使用 `backend: langchain-v1`
|
|
250
250
|
|
|
251
|
-
## 为何需要它
|
|
252
|
-
|
|
253
|
-
多数 agent 工具停在「能跑」,但生产软件不能只停在这里。
|
|
254
|
-
|
|
255
|
-
真实产品需要能回答更难问题的运行时:
|
|
256
|
-
|
|
257
|
-
- 请求(requests)存在哪里?
|
|
258
|
-
- 审批如何闭环?
|
|
259
|
-
- 进程重启后什么还在?
|
|
260
|
-
- 如何在不暴露原始后端状态的前提下检查会话与事件?
|
|
261
|
-
- 如何在不大改产品模型的前提下替换后端实现?
|
|
262
|
-
|
|
263
|
-
`agent-harness` 在不把应用 API 做成 LangChain v1 / DeepAgents 翻版的前提下,回答这些问题。
|
|
264
|
-
|
|
265
251
|
## 有何不同
|
|
266
252
|
|
|
267
253
|
- 将 `requests`、`sessions`、`approvals`、`events` 与恢复视为核心产品数据(长期可查、可治理)
|
|
@@ -676,7 +662,7 @@ await stop(runtime);
|
|
|
676
662
|
|
|
677
663
|
- 在真实远端模型下,带 approval 的副作用工具调用稳定性弱于 DeepAgents 路径
|
|
678
664
|
- 不建议把它作为长链路、多 agent、重 orchestration 流程的默认执行路径
|
|
679
|
-
-
|
|
665
|
+
- 本包当前已把 DeepAgents 作为复杂运行时覆盖的默认主路径;只有在工作区明确需要 V1 行为时,才应显式选择 LangChain v1
|
|
680
666
|
|
|
681
667
|
实际建议:
|
|
682
668
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.211";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.211";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botbotgo/agent-harness",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.212",
|
|
4
4
|
"description": "Workspace runtime for multi-agent applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"test:real-providers": "vitest run test/providers/real-provider-harness.test.ts",
|
|
71
71
|
"security:ci": "npm audit --omit=dev --audit-level=high",
|
|
72
72
|
"security:report": "npm audit --omit=dev --json > security-audit-report.json || true",
|
|
73
|
+
"docs:sync-dev-nav": "node ./scripts/sync-developer-docs-nav.mjs",
|
|
73
74
|
"release:prepare": "npm version patch --no-git-tag-version && node ./scripts/sync-example-version.mjs",
|
|
74
75
|
"release:pack": "npm pack --dry-run",
|
|
75
76
|
"release:publish": "npm publish --access public --registry https://registry.npmjs.org/"
|