Skip to content

Commit 8c6a767

Browse files
committed
feat: add agents.yaml project debugger
1 parent e776303 commit 8c6a767

64 files changed

Lines changed: 10585 additions & 5356 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@openagentpack/sdk": minor
3+
"@openagentpack/playground": minor
4+
"@openagentpack/cli": minor
5+
---
6+
7+
Replace the fixed Playbook showcase with an `agents.yaml` project debugger. Playground now watches project inputs, performs fingerprint-protected per-Agent Plan and Apply operations, streams operation and Session events, and manages explicit temporary attachment cleanup without mutating YAML or Deployment declarations.
8+
9+
Add SDK source-path tracking, runtime-scoped Agent planning, stable plan fingerprints, and stale-plan enforcement. The CLI now launches Preview with `agents playground -f/--file [--agent <id>]`, exposes the project console separately through `agents workbench`, and falls back to the diagnostic Workbench for missing, invalid, empty, or unselected multi-Agent projects; the former `playground --provider` option is removed.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ agents apply -y # apply changes
8484
agents destroy # tear down managed resources
8585
```
8686

87-
Run `agents playground` to launch the local WebUI, and use `--provider` to target `bailian`, `qoder`, `ark`, or `claude`. You can switch providers on the same declaration, run real sessions, and observe tool calls and artifacts.
87+
Run `agents playground -f agents.yaml` to open an Agent directly in Preview; single-Agent projects are selected automatically, while multi-Agent projects accept `--agent <id>` or open the Workbench for selection. Use `agents workbench -f agents.yaml` to open the project console without creating a Session. Playground reads every Agent and Provider from YAML, watches local dependencies, and keeps YAML read-only while you Plan, Apply, run Sessions, and inspect events and artifacts. Missing, invalid, or empty projects open the diagnostic Workbench.
8888

8989
[Watch the full Playground demo](https://github.com/user-attachments/assets/bf51b8d8-f2ed-464b-bca9-0709fefcc44d)
9090

@@ -186,14 +186,14 @@ See the [SDK reference](./docs/reference/sdk.md) for the public API surface.
186186

187187
## WebUI
188188

189-
`apps/webui` is a Vite single-page app for browsing playbooks and driving agent sessions; `apps/server` exposes the SDK over an OpenAPI surface. Run both from the repo root:
189+
`apps/webui` is a Vite single-page project workbench for inspecting and debugging the Agents declared in `agents.yaml`; `apps/server` exposes the SDK over an OpenAPI surface. Run both from the repo root:
190190

191191
```bash
192192
bun install
193193
bun run dev # server + webui together
194194
```
195195

196-
Or launch a packaged local UI with `agents playground --provider <bailian|qoder|ark|claude>`.
196+
Or launch the packaged local UI with `agents playground -f <path/to/agents.yaml>` for Preview or `agents workbench -f <path/to/agents.yaml>` for the project console. Provider, model, tools, memory, skills, and resources come from YAML; the UI does not override them. Deployment declarations are displayed read-only.
197197

198198
## Contributing
199199

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ agents apply -y # 执行变更
8484
agents destroy # 销毁托管资源
8585
```
8686

87-
运行 `agents playground` 可启动本地 WebUI,并通过 `--provider` 指定 `bailian``qoder``ark``claude`。你可以在同一份声明上切换 Provider、运行真实 Session,并观察工具调用和 Artifact。
87+
运行 `agents playground -f agents.yaml` 会直接打开 Agent Preview:单 Agent 项目自动选择,多 Agent 项目可传 `--agent <id>`,未指定时进入 Workbench 选择。使用 `agents workbench -f agents.yaml` 可直接打开项目控制台且不创建 Session。Playground 从 YAML 读取全部 Agent 和 Provider,监听本地依赖文件;YAML 保持只读,你可以执行 Plan、Apply、Session,并查看实时事件和 Artifact。配置缺失、非法或没有 Agent 时进入诊断 Workbench
8888

8989
[观看 Playground 完整演示](https://github.com/user-attachments/assets/bf51b8d8-f2ed-464b-bca9-0709fefcc44d)
9090

@@ -186,14 +186,14 @@ console.log(plan);
186186

187187
## WebUI
188188

189-
`apps/webui` 是一个 Vite 单页应用,用于浏览 playbook 和驱动 Agent Session;`apps/server` 通过 OpenAPI 暴露 SDK。从仓库根目录同时启动两者:
189+
`apps/webui` 是一个 Vite 单页项目工作台,用于检查和调试 `agents.yaml` 中声明的 Agent;`apps/server` 通过 OpenAPI 暴露 SDK。从仓库根目录同时启动两者:
190190

191191
```bash
192192
bun install
193193
bun run dev # 同时启动 server + webui
194194
```
195195

196-
或用 `agents playground --provider <bailian|qoder|ark|claude>` 启动打包的本地 UI
196+
也可以用 `agents playground -f <path/to/agents.yaml>` 打开打包后的 Preview,或用 `agents workbench -f <path/to/agents.yaml>` 打开项目控制台。Provider、模型、工具、memory、skills 和资源全部来自 YAML,UI 不提供覆盖;Deployment 声明仅只读展示
197197

198198
## 参与贡献
199199

0 commit comments

Comments
 (0)