> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trytrellis.app/llms.txt
> Use this file to discover all available pages before exploring further.

# v0.6.0-beta.17

> 2026-05-15

## Enhancements

### Workflow templates

Workflow templates 现在可以在 `trellis init` 时选择，也可以之后用 `trellis workflow` 切换。

* Init flags: `--workflow`, `--workflow-source`
* Command: `trellis workflow`
* Built-in templates: `native`, `tdd`, `channel-driven-subagent-dispatch`
* Marketplace resolver: `workflow-resolver.ts`
* Active file: `.trellis/workflow.md`

### Channel worker coordination

Channel workers 现在支持 timeout warning 控制和多 kind wait 过滤。

* Wait filter: `trellis channel wait --kind done,killed`
* Warning event: `supervisor_warning`
* Spawn flag: `trellis channel spawn --warn-before <duration>`
* Disable warning: `--warn-before 0ms`
* Default warning lead time: `5m`

### Worker inbox core API

`@mindfoldhq/trellis-core/channel` 现在导出 durable worker inbox 的 read 和 watch API。

* Read API: `readWorkerInbox()`
* Watch API: `watchWorkerInbox()`
* Error class: `WorkerInboxError`
* Routing SOT: `matchesInboxPolicy()`
* Generation boundary: same-id respawns 不会 replay old worker messages

## Bug Fixes

### Cursor sessionStart hook

Cursor `sessionStart` 输出现在符合 Cursor 的 top-level context schema。

* Output field: `additional_context`
* Shared format retained: `hookSpecificOutput.additionalContext`
* Removed unsupported Cursor hook: `beforeSubmitPrompt`
* Removed copied Cursor file: `.cursor/hooks/inject-workflow-state.py`

## Upgrade

```bash theme={null}
npm install -g @mindfoldhq/trellis@beta
trellis update
```

无需文件迁移。
