docs: rebalance prose cleanup and add trimming skill

This commit is contained in:
Tianyi Cui
2026-07-13 23:27:00 +08:00
parent fcdc318dda
commit 148046b9c8
392 changed files with 2801 additions and 1754 deletions
+6 -1
View File
@@ -101,7 +101,12 @@ export type WorkflowEventName =
| 'workflow/agent-end'
| 'workflow/end'
/** Machine-routable fatal workflow failures. Child-run failures are not codes. */
/**
* Machine-routable fatal workflow failures: parse/meta/argument/schema errors,
* resource caps, subagent infrastructure failures, unserializable boundary
* values, and cancellation. An ordinary child failure resolves its item to
* `null` and is not one of these fatal codes.
*/
export type WorkflowErrorCode =
| 'SCRIPT_PARSE'
| 'META_INVALID'
+4 -1
View File
@@ -106,7 +106,10 @@ export interface WorkflowResult {
}
/**
* The handle the consumer holds while a script executes.
* Holder-owned live workflow. `result` never rejects and settles within the
* engine's cancellation grace; failures resolve through `stopReason`. Consumers
* may cancel and must call idempotent `dispose()` on every path to await bounded
* script settlement and child quiescence.
*/
export interface WorkflowRun {
readonly id: WorkflowRunId