@botbotgo/agent-harness 0.0.237 → 0.0.239
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 +13 -13
- package/README.zh.md +13 -13
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,7 +135,7 @@ Additional docs:
|
|
|
135
135
|
- **Easy to start:** `createAgentHarness` → `request` → `stop`, plus inspection helpers such as `subscribe`, `listSessions`, `listApprovals`, and `resolveApproval`.
|
|
136
136
|
- **Configure:** routing, models, tools, stores, backends, MCP, recovery, and maintenance in declarative workspace YAML (see [Quick Start](#readme-en-quickstart) and [How To Configure](#readme-en-config)).
|
|
137
137
|
- **Extend:** drop `tool({...})` modules and SKILL trees under `resources/`, wire shared tools and MCP in catalogs, and let agents whitelist what they use.
|
|
138
|
-
- **Built into the runtime:** persisted `requests`, `sessions`, `approvals`, and `events`; recovery and queueing; streaming listeners; MCP in/out;
|
|
138
|
+
- **Built into the runtime:** persisted `requests`, `sessions`, `approvals`, and `events`; recovery and queueing; streaming listeners; MCP in/out; and backend adapters—so you do not rebuild that layer per app.
|
|
139
139
|
|
|
140
140
|
<a id="readme-en-runtime-glance"></a>
|
|
141
141
|
|
|
@@ -205,17 +205,17 @@ In concrete terms:
|
|
|
205
205
|
|
|
206
206
|
`@botbotgo/agent-harness` is a workspace-shaped application runtime for real multi-agent products.
|
|
207
207
|
|
|
208
|
-
It is not a new agent framework. It is the runtime layer around
|
|
208
|
+
It is not a new agent framework. It is the runtime layer around your existing execution stack that turns one workspace into one operable application runtime.
|
|
209
209
|
|
|
210
210
|
The positioning is simple:
|
|
211
211
|
|
|
212
212
|
- Codex, Claude Code, and Cursor are products for people using agents
|
|
213
|
-
-
|
|
213
|
+
- execution frameworks define agent execution semantics
|
|
214
214
|
- `agent-harness` is the runtime product layer for operating, recovering, approving, and governing multi-agent applications
|
|
215
215
|
|
|
216
216
|
The product boundary is strict:
|
|
217
217
|
|
|
218
|
-
-
|
|
218
|
+
- execution backends own agent execution semantics
|
|
219
219
|
- application-level orchestration and lifecycle management stays in the harness
|
|
220
220
|
|
|
221
221
|
That means:
|
|
@@ -229,7 +229,7 @@ The runtime provides:
|
|
|
229
229
|
|
|
230
230
|
- `createAgentHarness(workspaceRoot)`, `request(...)`, `memorize(...)`, `recall(...)`, `listMemories(...)`, `updateMemory(...)`, `removeMemory(...)`, `resolveApproval(...)`, `subscribe(...)`, inspection methods, and `stop(...)`
|
|
231
231
|
- YAML-defined workspace assembly for routing, models, tools, stores, backends, MCP, recovery, and maintenance
|
|
232
|
-
- backend-adapted execution
|
|
232
|
+
- backend-adapted execution behind the runtime contract
|
|
233
233
|
- local `resources/tools/` `tool({...})` modules and `resources/skills/` discovery
|
|
234
234
|
- persisted sessions, requests, approvals, events, queue state, and recovery metadata
|
|
235
235
|
|
|
@@ -246,7 +246,7 @@ The default workspace configuration shipped with the package is deliberately ful
|
|
|
246
246
|
|
|
247
247
|
The default rule is:
|
|
248
248
|
|
|
249
|
-
- if
|
|
249
|
+
- if the execution backend already has the feature, map it in YAML and adapt it internally
|
|
250
250
|
- do not add a new public runtime API unless the problem is truly runtime-owned
|
|
251
251
|
|
|
252
252
|
Start with these user-facing docs:
|
|
@@ -317,7 +317,7 @@ Do not reach for it when:
|
|
|
317
317
|
|
|
318
318
|
- you only need a single short-lived agent call with no approvals, no persistence, and no operational control surface
|
|
319
319
|
- you are looking for a workflow builder or low-code automation canvas
|
|
320
|
-
- you want to replace
|
|
320
|
+
- you want to replace the execution backend's semantics rather than operate around them
|
|
321
321
|
|
|
322
322
|
<a id="readme-en-quickstart"></a>
|
|
323
323
|
|
|
@@ -397,7 +397,7 @@ If you want the shortest possible mental model:
|
|
|
397
397
|
- Workspace runtime for multi-agent applications
|
|
398
398
|
- Small public runtime contract
|
|
399
399
|
- YAML-defined host routing and runtime policy
|
|
400
|
-
-
|
|
400
|
+
- Backend adaptation behind one runtime contract
|
|
401
401
|
- Auto-discovered local `tool({...})` tools and SKILL packages
|
|
402
402
|
- provider-native tools, MCP tools, and workspace-local tool modules
|
|
403
403
|
- persisted sessions, requests, approvals, lifecycle events, and queued requests
|
|
@@ -731,9 +731,9 @@ At the moment, the most stable path for complex production-style runs is `backen
|
|
|
731
731
|
|
|
732
732
|
Current temporary limits on the `backend: langchain-v1` path are:
|
|
733
733
|
|
|
734
|
-
- approval-gated side-effect tools are less reliable
|
|
734
|
+
- approval-gated side-effect tools are less reliable on the lighter direct-response path under real remote models
|
|
735
735
|
- long multi-agent or orchestration-heavy flows are not the recommended default path
|
|
736
|
-
- the package now treats
|
|
736
|
+
- the package now treats the planner-first backend as the default execution path for complex runtime coverage, and the lighter direct-response backend should be selected explicitly when a workspace truly wants that behavior
|
|
737
737
|
|
|
738
738
|
Practical guidance:
|
|
739
739
|
|
|
@@ -856,7 +856,7 @@ Keep bootstrap context in `config/agent-context.md`. Keep resumable execution st
|
|
|
856
856
|
|
|
857
857
|
### `config/catalogs/backends.yaml`
|
|
858
858
|
|
|
859
|
-
Use reusable
|
|
859
|
+
Use reusable backend presets so filesystem and `/memories/*` topology stays in YAML:
|
|
860
860
|
|
|
861
861
|
```yaml
|
|
862
862
|
apiVersion: agent-harness/v1alpha1
|
|
@@ -988,11 +988,11 @@ For backend-specific options, prefer the upstream concept directly inside `spec.
|
|
|
988
988
|
- public runtime contract stays generic and small
|
|
989
989
|
- application-level orchestration and lifecycle management stays in the harness
|
|
990
990
|
- the external protocol boundary should strictly conform to `deepagents-acp` instead of a parallel harness-only protocol
|
|
991
|
-
- upstream
|
|
991
|
+
- upstream execution-backend concepts should be expressed as directly as possible in YAML
|
|
992
992
|
- when a feature can be expressed in YAML, prefer YAML over expanding the public API
|
|
993
993
|
- recovery, approvals, threads, runs, and events are runtime concepts, not backend escape hatches
|
|
994
994
|
- application task centers should be built on the existing store plus runtime ids instead of expanding the public runtime contract
|
|
995
|
-
- new
|
|
995
|
+
- new backend-specific config should land in YAML mapping and tests before adding public runtime APIs
|
|
996
996
|
|
|
997
997
|
In short, the product model stays stable while the execution semantics remain upstream-owned.
|
|
998
998
|
|
package/README.zh.md
CHANGED
|
@@ -131,7 +131,7 @@ try {
|
|
|
131
131
|
- **容易上手:** `createAgentHarness` → `request` → `stop`,以及 `subscribe`、`listSessions`、`listApprovals`、`resolveApproval` 等查询与控制能力。
|
|
132
132
|
- **配置:** 路由、模型、工具、存储、后端、MCP、恢复与维护写在声明式工作区 YAML 里(见[快速开始](#readme-zh-quickstart)与[如何配置](#readme-zh-config))。
|
|
133
133
|
- **扩展:** 在 `resources/` 下放置 `tool({...})` 模块与 SKILL 包;共享工具与 MCP 写在 `config/catalogs/` 等 YAML 目录里,各 agent 再按名称白名单引用。
|
|
134
|
-
- **内建运行时:** 持久化 `requests`、`sessions`、`approvals` 与 `events`;恢复与排队;流式监听;MCP
|
|
134
|
+
- **内建运行时:** 持久化 `requests`、`sessions`、`approvals` 与 `events`;恢复与排队;流式监听;MCP 接入与对外暴露;以及后端适配——避免每个应用重复造这一层。
|
|
135
135
|
|
|
136
136
|
<a id="readme-zh-runtime-glance"></a>
|
|
137
137
|
|
|
@@ -201,17 +201,17 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
201
201
|
|
|
202
202
|
`@botbotgo/agent-harness` 是面向真实多 agent 产品的、工作区形态的应用运行时。
|
|
203
203
|
|
|
204
|
-
它不是又一个 agent
|
|
204
|
+
它不是又一个 agent 框架,而是围绕现有执行栈的运行时层:把一个工作区变成一套可运维的应用运行时。
|
|
205
205
|
|
|
206
206
|
产品定位可以概括为:
|
|
207
207
|
|
|
208
208
|
- Codex、Claude Code、Cursor 是「人用 agent」的产品
|
|
209
|
-
-
|
|
209
|
+
- 执行框架负责定义 agent 执行语义
|
|
210
210
|
- `agent-harness` 是负责运维、恢复、审批与治理多 agent 应用的运行时产品层
|
|
211
211
|
|
|
212
212
|
产品边界是清晰的:
|
|
213
213
|
|
|
214
|
-
-
|
|
214
|
+
- 执行后端拥有 agent 执行语义
|
|
215
215
|
- 应用级编排与生命周期管理留在 harness 中
|
|
216
216
|
|
|
217
217
|
因此:
|
|
@@ -225,7 +225,7 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
225
225
|
|
|
226
226
|
- `createAgentHarness(workspaceRoot)`、`request(...)`、`memorize(...)`、`recall(...)`、`listMemories(...)`、`updateMemory(...)`、`removeMemory(...)`、`resolveApproval(...)`、`subscribe(...)`、各类查询方法,以及 `stop(...)`
|
|
227
227
|
- 以 YAML 描述的工作区装配:路由、模型、工具、存储、后端、MCP、恢复与维护等
|
|
228
|
-
-
|
|
228
|
+
- 通过适配器对接当前执行后端,并把对外运行时契约保持稳定
|
|
229
229
|
- 本地 `resources/tools/` 中 `tool({...})` 工具模块与 `resources/skills/` 的发现
|
|
230
230
|
- 持久化的会话、请求、审批、事件、队列状态与恢复元数据
|
|
231
231
|
|
|
@@ -242,7 +242,7 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
242
242
|
|
|
243
243
|
默认原则是:
|
|
244
244
|
|
|
245
|
-
-
|
|
245
|
+
- 若执行后端已具备某项能力,则在 YAML 中映射并在内部适配
|
|
246
246
|
- 除非问题确实属于运行时职责,否则不增加新的公共运行时 API
|
|
247
247
|
|
|
248
248
|
建议从这些面向用户的文档开始(中文多页面在 `docs/development/zh/`):
|
|
@@ -313,7 +313,7 @@ governance:
|
|
|
313
313
|
|
|
314
314
|
- 你只需要一次短生命周期的 agent 调用,不需要审批、持久化或运维控制面
|
|
315
315
|
- 你要的是工作流搭建器或低代码自动化画布
|
|
316
|
-
-
|
|
316
|
+
- 你想替代执行后端的语义,而不是围绕它们做运行时
|
|
317
317
|
|
|
318
318
|
<a id="readme-zh-quickstart"></a>
|
|
319
319
|
|
|
@@ -393,7 +393,7 @@ try {
|
|
|
393
393
|
- 多 agent 应用的工作区运行时
|
|
394
394
|
- 精简的公共运行时契约
|
|
395
395
|
- YAML 定义的主机路由与运行时策略
|
|
396
|
-
-
|
|
396
|
+
- 在统一运行时契约之后做后端适配
|
|
397
397
|
- 自动发现本地工具与 SKILL 包
|
|
398
398
|
- 原生 provider 工具、MCP 工具与工作区本地工具模块
|
|
399
399
|
- 持久化会话、请求、审批、生命周期事件与排队请求
|
|
@@ -688,9 +688,9 @@ await stop(runtime);
|
|
|
688
688
|
|
|
689
689
|
目前 `backend: langchain-v1` 这条路径的暂时限制是:
|
|
690
690
|
|
|
691
|
-
- 在真实远端模型下,带 approval
|
|
691
|
+
- 在真实远端模型下,带 approval 的副作用工具调用稳定性弱于轻量 direct-response 路径
|
|
692
692
|
- 不建议把它作为长链路、多 agent、重 orchestration 流程的默认执行路径
|
|
693
|
-
-
|
|
693
|
+
- 本包当前已把规划优先后端作为复杂运行时覆盖的默认主路径;只有在工作区明确需要轻量 direct-response 行为时,才应显式选择另一条后端路径
|
|
694
694
|
|
|
695
695
|
实际建议:
|
|
696
696
|
|
|
@@ -816,7 +816,7 @@ spec:
|
|
|
816
816
|
|
|
817
817
|
### `config/catalogs/backends.yaml`
|
|
818
818
|
|
|
819
|
-
|
|
819
|
+
可复用的后端预设,使文件系统与 `/memories/*` 拓扑保留在 YAML 中:
|
|
820
820
|
|
|
821
821
|
```yaml
|
|
822
822
|
apiVersion: agent-harness/v1alpha1
|
|
@@ -946,11 +946,11 @@ spec:
|
|
|
946
946
|
- 公共运行时契约保持通用且精简
|
|
947
947
|
- 应用级编排与生命周期管理留在 harness 中
|
|
948
948
|
- 外部协议边界应严格契合 `deepagents-acp`,而不是再做一套并行的 harness 私有协议
|
|
949
|
-
- 应尽量在 YAML
|
|
949
|
+
- 应尽量在 YAML 中直接表达执行后端的概念
|
|
950
950
|
- 能用 YAML 表达的能力,优先 YAML 而非扩张公共 API
|
|
951
951
|
- 恢复、审批、线程、运行与事件是运行时概念,不是后端逃生舱
|
|
952
952
|
- 应用里的 task center 应基于现有 store 与 runtime id 建模,而不是把 task 扩成公共运行时契约
|
|
953
|
-
-
|
|
953
|
+
- 新的后端配置应先落在 YAML 映射与测试中,再考虑公共运行时 API
|
|
954
954
|
|
|
955
955
|
简言之:产品模型稳定,执行语义仍归上游。
|
|
956
956
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.238";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.238";
|