@botbotgo/agent-harness 0.0.234 → 0.0.235
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 +29 -1
- package/README.zh.md +30 -2
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
>
|
|
45
45
|
</p>
|
|
46
46
|
|
|
47
|
+
<a id="readme-en-start"></a>
|
|
48
|
+
|
|
47
49
|
## Start in a few lines
|
|
48
50
|
|
|
49
51
|
You can boot an agent runtime in a few lines of code:
|
|
@@ -69,6 +71,8 @@ The goal is an **operable** runtime: approvals, recovery, inspection, and govern
|
|
|
69
71
|
Where you already use LangChain v1 or DeepAgents for execution, agent-harness adds the product runtime layer around
|
|
70
72
|
them without forcing a rewrite.
|
|
71
73
|
|
|
74
|
+
<a id="readme-en-docs-path"></a>
|
|
75
|
+
|
|
72
76
|
## Documentation Paths
|
|
73
77
|
|
|
74
78
|
Choose an entry point that matches what you need:
|
|
@@ -83,7 +87,20 @@ Recommended entry points:
|
|
|
83
87
|
- [Side-by-side comparison](./docs/development/comparison.html)
|
|
84
88
|
- [API reference](./docs/development/api-reference.html)
|
|
85
89
|
- [Protocol surfaces](./docs/development/protocol-surfaces.html)
|
|
90
|
+
- [Release notes](./docs/development/release-notes.html) (English: `RELEASE_NOTES.md`; Chinese: [`zh/release-notes`](./docs/development/zh/release-notes.html) / `RELEASE_NOTES.zh.md`)
|
|
86
91
|
- [Commercial service offerings](./docs/commercial-pricing.md)
|
|
92
|
+
- [Topical docs index](./docs/README.md) (all `docs/*.md` in one table)
|
|
93
|
+
|
|
94
|
+
### How to use this README
|
|
95
|
+
|
|
96
|
+
This file is both a quickstart and a long reference—you do not need to read it top to bottom.
|
|
97
|
+
|
|
98
|
+
| If you have… | Read this first | Then |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| **~5 minutes** | [Start in a few lines](#readme-en-start) and [Documentation Paths](#readme-en-docs-path) | Open [Getting started](./docs/development/getting-started.html) in the developer docs. |
|
|
101
|
+
| **First real integration** | [Quick Start](#readme-en-quickstart) → [How To Configure](#readme-en-config) | [Workspace and YAML](./docs/development/workspace-and-yaml.html) · [Topic index](./docs/README.md) · feature guides under [`docs/`](./docs/) |
|
|
102
|
+
| **Operations / governance** | [Runtime capabilities at a glance](#readme-en-runtime-glance) → [Primary use cases](#readme-en-use-cases) | [Runtime operations](./docs/development/runtime-operations.html) and [`docs/tool-execution-policy.md`](./docs/tool-execution-policy.md). |
|
|
103
|
+
| **API lookup** | Skip to [API Summary](#readme-en-api-summary) | Use it as a bookmarked index; the [API reference](./docs/development/api-reference.html) has fuller detail. |
|
|
87
104
|
|
|
88
105
|
## License & Commercial Support
|
|
89
106
|
|
|
@@ -116,10 +133,12 @@ Additional docs:
|
|
|
116
133
|
**At a glance:** onboarding stays thin, the runtime ships as a full layer, and day-to-day work lives in **YAML** plus **extensions** (local tools, SKILL packages, MCP)—not bespoke runtime plumbing.
|
|
117
134
|
|
|
118
135
|
- **Easy to start:** `createAgentHarness` → `request` → `stop`, plus inspection helpers such as `subscribe`, `listSessions`, `listApprovals`, and `resolveApproval`.
|
|
119
|
-
- **Configure:** routing, models, tools, stores, backends, MCP, recovery, and maintenance in declarative workspace YAML (see [Quick Start](#
|
|
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)).
|
|
120
137
|
- **Extend:** drop `tool({...})` modules and SKILL trees under `resources/`, wire shared tools and MCP in catalogs, and let agents whitelist what they use.
|
|
121
138
|
- **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
139
|
|
|
140
|
+
<a id="readme-en-runtime-glance"></a>
|
|
141
|
+
|
|
123
142
|
## Runtime capabilities at a glance
|
|
124
143
|
|
|
125
144
|
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.
|
|
@@ -238,6 +257,7 @@ Start with these user-facing docs:
|
|
|
238
257
|
- `docs/development/api-reference.html`
|
|
239
258
|
- `docs/development/protocol-surfaces.html`
|
|
240
259
|
- `docs/development/cookbook.html`
|
|
260
|
+
- `docs/development/release-notes.html`
|
|
241
261
|
- `docs/runtime-inspection-contract.md`
|
|
242
262
|
- `docs/tool-execution-policy.md`
|
|
243
263
|
- `docs/long-term-memory.md`
|
|
@@ -262,6 +282,8 @@ Recommended orchestration shape for long-running flows:
|
|
|
262
282
|
- It lets YAML own assembly and operating policy while code keeps a small, stable surface
|
|
263
283
|
- It goes deep on runtime concerns that upstream libraries do not fully productize
|
|
264
284
|
|
|
285
|
+
<a id="readme-en-use-cases"></a>
|
|
286
|
+
|
|
265
287
|
## Primary use cases
|
|
266
288
|
|
|
267
289
|
These scenarios map most directly to what the runtime is built for:
|
|
@@ -297,6 +319,8 @@ Do not reach for it when:
|
|
|
297
319
|
- you are looking for a workflow builder or low-code automation canvas
|
|
298
320
|
- you want to replace LangChain v1 or DeepAgents execution semantics rather than operate around them
|
|
299
321
|
|
|
322
|
+
<a id="readme-en-quickstart"></a>
|
|
323
|
+
|
|
300
324
|
## Quick Start
|
|
301
325
|
|
|
302
326
|
Install:
|
|
@@ -643,6 +667,8 @@ import { stop } from "@botbotgo/agent-harness";
|
|
|
643
667
|
await stop(runtime);
|
|
644
668
|
```
|
|
645
669
|
|
|
670
|
+
<a id="readme-en-config"></a>
|
|
671
|
+
|
|
646
672
|
## How To Configure
|
|
647
673
|
|
|
648
674
|
Use Kubernetes-style YAML:
|
|
@@ -970,6 +996,8 @@ For backend-specific options, prefer the upstream concept directly inside `spec.
|
|
|
970
996
|
|
|
971
997
|
In short, the product model stays stable while the execution semantics remain upstream-owned.
|
|
972
998
|
|
|
999
|
+
<a id="readme-en-api-summary"></a>
|
|
1000
|
+
|
|
973
1001
|
## API Summary
|
|
974
1002
|
|
|
975
1003
|
Primary exports:
|
package/README.zh.md
CHANGED
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
>
|
|
45
45
|
</p>
|
|
46
46
|
|
|
47
|
+
<a id="readme-zh-start"></a>
|
|
48
|
+
|
|
47
49
|
## 几行代码启动
|
|
48
50
|
|
|
49
51
|
几行代码即可把工作区跑成智能体运行时:
|
|
@@ -67,6 +69,8 @@ try {
|
|
|
67
69
|
|
|
68
70
|
目标是交付<strong>可运维</strong>的运行时:审批、恢复、可观测与治理默认就绪。若执行层已采用 LangChain v1 或 DeepAgents,可在其之上衔接产品级运行时,无需推倒重来。
|
|
69
71
|
|
|
72
|
+
<a id="readme-zh-docs-path"></a>
|
|
73
|
+
|
|
70
74
|
## 阅读路径
|
|
71
75
|
|
|
72
76
|
按你的目标选入口即可:
|
|
@@ -81,7 +85,20 @@ try {
|
|
|
81
85
|
- [并列对比页](./docs/development/zh/comparison.html)
|
|
82
86
|
- [API 参考](./docs/development/zh/api-reference.html)
|
|
83
87
|
- [协议接入说明](./docs/development/zh/protocol-surfaces.html)
|
|
88
|
+
- [发行说明](./docs/development/zh/release-notes.html)(正文来自 `RELEASE_NOTES.zh.md`,与英文 `RELEASE_NOTES.md` 对应维护)
|
|
84
89
|
- [商业服务价格说明](./docs/commercial-pricing.md)
|
|
90
|
+
- [专题 Markdown 索引](./docs/README.md)(`docs/*.md` 一览表)
|
|
91
|
+
|
|
92
|
+
### 如何阅读本 README
|
|
93
|
+
|
|
94
|
+
下文既是快速上手也是参考手册,**不必从头到尾通读**。
|
|
95
|
+
|
|
96
|
+
| 可用时间 / 目标 | 建议先看 | 然后 |
|
|
97
|
+
| --- | --- | --- |
|
|
98
|
+
| **约 5 分钟** | [几行代码启动](#readme-zh-start) 与 [阅读路径](#readme-zh-docs-path) | 打开中文[开发文档 · 起步](./docs/development/zh/getting-started.html)。 |
|
|
99
|
+
| **第一次接入** | [快速开始](#readme-zh-quickstart) → [如何配置](#readme-zh-config) | [Workspace 与 YAML](./docs/development/zh/workspace-and-yaml.html) · [`docs/` 专题索引](./docs/README.md) |
|
|
100
|
+
| **运维 / 治理** | [运行时能力速览](#readme-zh-runtime-glance) → [典型应用场景](#readme-zh-use-cases) | [运行时运维](./docs/development/zh/runtime-operations.html) 与 [`docs/tool-execution-policy.md`](./docs/tool-execution-policy.md)。 |
|
|
101
|
+
| **查 API** | 跳转到文末 [API 摘要](#readme-zh-api-summary) | 日常以[API 参考](./docs/development/zh/api-reference.html)为准。 |
|
|
85
102
|
|
|
86
103
|
## 许可证与商业支持
|
|
87
104
|
|
|
@@ -112,10 +129,12 @@ try {
|
|
|
112
129
|
**一句话:** 对外接口保持精简、运行时能力一次备齐,日常工作落在 **YAML 配置** 与 **扩展**(本地工具、SKILL、MCP)上,而不是反复搭建运行时底座。
|
|
113
130
|
|
|
114
131
|
- **容易上手:** `createAgentHarness` → `request` → `stop`,以及 `subscribe`、`listSessions`、`listApprovals`、`resolveApproval` 等查询与控制能力。
|
|
115
|
-
- **配置:** 路由、模型、工具、存储、后端、MCP、恢复与维护写在声明式工作区 YAML 里(见[快速开始](
|
|
116
|
-
- **扩展:** 在 `resources/` 下放置 `tool({...})` 模块与 SKILL
|
|
132
|
+
- **配置:** 路由、模型、工具、存储、后端、MCP、恢复与维护写在声明式工作区 YAML 里(见[快速开始](#readme-zh-quickstart)与[如何配置](#readme-zh-config))。
|
|
133
|
+
- **扩展:** 在 `resources/` 下放置 `tool({...})` 模块与 SKILL 包;共享工具与 MCP 写在 `config/catalogs/` 等 YAML 目录里,各 agent 再按名称白名单引用。
|
|
117
134
|
- **内建运行时:** 持久化 `requests`、`sessions`、`approvals` 与 `events`;恢复与排队;流式监听;MCP 接入与对外暴露;LangChain v1 与 DeepAgents 适配——避免每个应用重复造这一层。
|
|
118
135
|
|
|
136
|
+
<a id="readme-zh-runtime-glance"></a>
|
|
137
|
+
|
|
119
138
|
## 运行时能力速览
|
|
120
139
|
|
|
121
140
|
若你想先看「今天能直接用到什么」,可从本节读起。`agent-harness` 提供完整的产品级运行时能力,而不只是「能启动」的脚手架。
|
|
@@ -234,6 +253,7 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
234
253
|
- `docs/development/zh/api-reference.html`
|
|
235
254
|
- `docs/development/zh/protocol-surfaces.html`
|
|
236
255
|
- `docs/development/zh/cookbook.html`
|
|
256
|
+
- `docs/development/zh/release-notes.html`
|
|
237
257
|
- `docs/runtime-inspection-contract.md`
|
|
238
258
|
- `docs/tool-execution-policy.md`
|
|
239
259
|
- `docs/long-term-memory.md`
|
|
@@ -258,6 +278,8 @@ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正更
|
|
|
258
278
|
- 复杂装配与运行策略交给 YAML,代码面保持小而稳
|
|
259
279
|
- 在上游库未充分产品化的运行时问题上做深做透
|
|
260
280
|
|
|
281
|
+
<a id="readme-zh-use-cases"></a>
|
|
282
|
+
|
|
261
283
|
## 典型应用场景
|
|
262
284
|
|
|
263
285
|
下面三类用法与 runtime 的设计目标最直接对应:
|
|
@@ -293,6 +315,8 @@ governance:
|
|
|
293
315
|
- 你要的是工作流搭建器或低代码自动化画布
|
|
294
316
|
- 你想替代 LangChain v1 或 DeepAgents 的执行语义,而不是围绕它们做运行时
|
|
295
317
|
|
|
318
|
+
<a id="readme-zh-quickstart"></a>
|
|
319
|
+
|
|
296
320
|
## 快速开始
|
|
297
321
|
|
|
298
322
|
安装:
|
|
@@ -606,6 +630,8 @@ import { stop } from "@botbotgo/agent-harness";
|
|
|
606
630
|
await stop(runtime);
|
|
607
631
|
```
|
|
608
632
|
|
|
633
|
+
<a id="readme-zh-config"></a>
|
|
634
|
+
|
|
609
635
|
## 如何配置
|
|
610
636
|
|
|
611
637
|
使用 Kubernetes 风格的 YAML:
|
|
@@ -928,6 +954,8 @@ spec:
|
|
|
928
954
|
|
|
929
955
|
简言之:产品模型稳定,执行语义仍归上游。
|
|
930
956
|
|
|
957
|
+
<a id="readme-zh-api-summary"></a>
|
|
958
|
+
|
|
931
959
|
## API 摘要
|
|
932
960
|
|
|
933
961
|
主要导出:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.234";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.234";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botbotgo/agent-harness",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.235",
|
|
4
4
|
"description": "Workspace runtime for multi-agent applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -71,6 +71,8 @@
|
|
|
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
73
|
"docs:sync-dev-nav": "node ./scripts/sync-developer-docs-nav.mjs",
|
|
74
|
+
"docs:sync-release-notes": "node ./scripts/sync-release-notes-html.mjs",
|
|
75
|
+
"docs:sync-docs-html": "node ./scripts/sync-release-notes-html.mjs && node ./scripts/sync-developer-docs-nav.mjs",
|
|
74
76
|
"release:prepare": "npm version patch --no-git-tag-version && node ./scripts/sync-example-version.mjs",
|
|
75
77
|
"release:pack": "npm pack --dry-run",
|
|
76
78
|
"release:publish": "npm publish --access public --registry https://registry.npmjs.org/"
|