|
@@ -31,7 +31,7 @@ A fully configured agent and live session were published. Setup is composition-o
|
|
|
'agent/created'(this: Scoped<Agent>, agent: Agent): void
|
|
'agent/created'(this: Scoped<Agent>, agent: Agent): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:141`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:141`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -51,7 +51,7 @@ An agent left the registry; AgentLoop emits this after driver quiescence but bef
|
|
|
'agent/disposed'(this: Scoped<Agent>, agent: Agent): void
|
|
'agent/disposed'(this: Scoped<Agent>, agent: Agent): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:150`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:150`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -73,7 +73,7 @@ A step or turn errored. The loop reports a failure here (plus the logger) even w
|
|
|
'agent/error'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, error: Error): void
|
|
'agent/error'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, error: Error): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:285`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:285`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -101,7 +101,7 @@ Awaited serial checkpoint for session-surface mutation after prompt assembly and
|
|
|
'agent/pre-step'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, fullSystemPrompt: string, sessionPrefix: readonly Message[], signal: AbortSignal): Promise<void> | void
|
|
'agent/pre-step'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, fullSystemPrompt: string, sessionPrefix: readonly Message[], signal: AbortSignal): Promise<void> | void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:204`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:204`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -122,7 +122,7 @@ Allow, rewrite, or block one drained prompt before it becomes a user message. Ca
|
|
|
'agent/prompt-submit'(this: Scoped<Agent>, agent: Agent, content: ContentBlock[], source: MessageSource, next: () => Promise<PromptDecision>): Promise<PromptDecision>
|
|
'agent/prompt-submit'(this: Scoped<Agent>, agent: Agent, content: ContentBlock[], source: MessageSource, next: () => Promise<PromptDecision>): Promise<PromptDecision>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md) · [PromptDecision](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:214`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:214`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -143,7 +143,7 @@ Detached, frozen content entered the agent's inbox. Source defaults have already
|
|
|
'agent/queued'(this: Scoped<Agent>, agent: Agent, content: ContentBlock[], info: { source: MessageSource; steering: boolean }): void
|
|
'agent/queued'(this: Scoped<Agent>, agent: Agent, content: ContentBlock[], info: { source: MessageSource; steering: boolean }): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:169`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:169`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -166,7 +166,7 @@ Replace the frozen call configuration. Model-visible content must use logged cha
|
|
|
'agent/request'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, config: LlmCallConfig, next: () => Promise<LlmCallConfig>): Promise<LlmCallConfig>
|
|
'agent/request'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, config: LlmCallConfig, next: () => Promise<LlmCallConfig>): Promise<LlmCallConfig>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [LlmCallConfig](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [LlmCallConfig](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:226`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:226`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -192,7 +192,7 @@ Compose request-only messages placed before derived history. The frozen result i
|
|
|
'agent/session-prefix'(this: Scoped<Agent>, agent: Agent, prefix: Message[], signal: AbortSignal, next: () => Promise<Message[]>): Promise<Message[]>
|
|
'agent/session-prefix'(this: Scoped<Agent>, agent: Agent, prefix: Message[], signal: AbortSignal, next: () => Promise<Message[]>): Promise<Message[]>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:241`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:241`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -214,7 +214,7 @@ The session lifecycle began, once before the first turn. Use `agent.inject()` to
|
|
|
'agent/session-start'(this: Scoped<Agent>, agent: Agent, source: SessionStartSource): void
|
|
'agent/session-start'(this: Scoped<Agent>, agent: Agent, source: SessionStartSource): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [SessionStartSource](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md) · [SessionStartSource](../core-data-structures/core.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:182`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:182`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -234,7 +234,7 @@ Agent status changed (`idle` ⇄ `running`, or → `disposed`). `send()` does no
|
|
|
'agent/status'(this: Scoped<Agent>, agent: Agent, status: AgentStatus): void
|
|
'agent/status'(this: Scoped<Agent>, agent: Agent, status: AgentStatus): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [AgentStatus](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:159`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:159`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -256,7 +256,7 @@ Waterfall: post-process the assembled assistant Message before tool dispatch (va
|
|
|
'agent/step-result'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, message: Message, next: () => Promise<Message>): Promise<Message>
|
|
'agent/step-result'(this: Scoped<Agent>, agent: Agent, turn: number, step: number, message: Message, next: () => Promise<Message>): Promise<Message>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:252`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:252`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -277,7 +277,7 @@ Override whether the turn continues. The default continues after tool calls or s
|
|
|
'agent/turn-continuation'(this: Scoped<Agent>, agent: Agent, turn: number, defaultDecision: ContinuationDecision, next: () => Promise<ContinuationDecision>): Promise<ContinuationDecision>
|
|
'agent/turn-continuation'(this: Scoped<Agent>, agent: Agent, turn: number, defaultDecision: ContinuationDecision, next: () => Promise<ContinuationDecision>): Promise<ContinuationDecision>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [ContinuationDecision](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:262`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:262`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -298,7 +298,7 @@ Monotonic terminal-stop checkpoint after continuation and steering are folded; a
|
|
|
'agent/turn-stop'(this: Scoped<Agent>, agent: Agent, turn: number): ContinuationStop | undefined
|
|
'agent/turn-stop'(this: Scoped<Agent>, agent: Agent, turn: number): ContinuationStop | undefined
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [Agent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Agent](../core-data-structures/core.md) · [ContinuationStop](../core-data-structures/core.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/agent/src/types.ts:272`](../../packages/core/agent/src/types.ts)
|
|
Source: [`packages/core/agent/src/types.ts:272`](../../packages/core/agent/src/types.ts)
|
|
|
|
|
|
|
@@ -321,6 +321,8 @@ A declarative agent entry failed before it could publish a live agent. Consumers
|
|
|
'agent-loop/config-start-failed'(sessionId: SessionId, error: unknown): void
|
|
'agent-loop/config-start-failed'(sessionId: SessionId, error: unknown): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [SessionId](../core-data-structures/core.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/core/agent-loop/src/index.ts:362`](../../packages/core/agent-loop/src/index.ts)
|
|
Source: [`packages/core/agent-loop/src/index.ts:362`](../../packages/core/agent-loop/src/index.ts)
|
|
|
|
|
|
|
|
## `approval/*`
|
|
## `approval/*`
|
|
@@ -340,7 +342,7 @@ Ask composed answerers for one decision. Return an outcome to claim the request
|
|
|
'approval/request'(this: Scoped<ApprovalService>, req: ApprovalRequest, next: () => Promise<ApprovalOutcome>): Promise<ApprovalOutcome>
|
|
'approval/request'(this: Scoped<ApprovalService>, req: ApprovalRequest, next: () => Promise<ApprovalOutcome>): Promise<ApprovalOutcome>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [ApprovalOutcome](../core-data-structures/approval.md) · [ApprovalRequest](../core-data-structures/approval.md)
|
|
|
|
|
|
|
+Types: [ApprovalOutcome](../core-data-structures/approval.md) · [ApprovalRequest](../core-data-structures/approval.md) · [ApprovalService](../core-data-structures/approval.md) · [Scoped](../core-data-structures/scope.md)
|
|
|
|
|
|
|
|
Source: [`packages/ui/user-approval/src/index.ts:31`](../../packages/ui/user-approval/src/index.ts)
|
|
Source: [`packages/ui/user-approval/src/index.ts:31`](../../packages/ui/user-approval/src/index.ts)
|
|
|
|
|
|
|
@@ -426,7 +428,7 @@ Waterfall around every streaming model call (retry, replay, routing). Bound to t
|
|
|
'llm/stream'(this: LlmService, options: GenerateOptions, next: () => AsyncIterable<StreamChunk>): AsyncIterable<StreamChunk>
|
|
'llm/stream'(this: LlmService, options: GenerateOptions, next: () => AsyncIterable<StreamChunk>): AsyncIterable<StreamChunk>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [GenerateOptions](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
|
|
|
|
|
|
+Types: [GenerateOptions](../core-data-structures/core.md) · [LlmService](../core-data-structures/llm-streaming.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
|
|
|
|
|
|
|
Source: [`packages/llm/llm/src/index.ts:40`](../../packages/llm/llm/src/index.ts)
|
|
Source: [`packages/llm/llm/src/index.ts:40`](../../packages/llm/llm/src/index.ts)
|
|
|
|
|
|
|
@@ -451,6 +453,8 @@ Creation announcement during session publication. A synchronous throw vetoes and
|
|
|
'session/created'(this: Scoped<Session>, session: Session): void
|
|
'session/created'(this: Scoped<Session>, session: Session): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [Session](../core-data-structures/session.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/core/session/src/index.ts:47`](../../packages/core/session/src/index.ts)
|
|
Source: [`packages/core/session/src/index.ts:47`](../../packages/core/session/src/index.ts)
|
|
|
|
|
|
|
|
### `session/disposed` — emit
|
|
### `session/disposed` — emit
|
|
@@ -470,6 +474,8 @@ Emitted once when an announced session leaves the store, including publication r
|
|
|
'session/disposed'(this: Scoped<Session>, session: Session): void
|
|
'session/disposed'(this: Scoped<Session>, session: Session): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [Session](../core-data-structures/session.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/core/session/src/index.ts:57`](../../packages/core/session/src/index.ts)
|
|
Source: [`packages/core/session/src/index.ts:57`](../../packages/core/session/src/index.ts)
|
|
|
|
|
|
|
|
### `session/event` — emit
|
|
### `session/event` — emit
|
|
@@ -491,7 +497,7 @@ Post-commit, fire-and-forget append feed. The listener snapshot resolves before
|
|
|
'session/event'(this: Scoped<Session>, session: Session, event: SessionEvent): void
|
|
'session/event'(this: Scoped<Session>, session: Session, event: SessionEvent): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [SessionEvent](../core-data-structures/core.md)
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [Session](../core-data-structures/session.md) · [SessionEvent](../core-data-structures/core.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/session/src/index.ts:69`](../../packages/core/session/src/index.ts)
|
|
Source: [`packages/core/session/src/index.ts:69`](../../packages/core/session/src/index.ts)
|
|
|
|
|
|
|
@@ -512,6 +518,8 @@ Awaited parallel durability checkpoint: every listener runs and the caller await
|
|
|
'session/flush'(this: Scoped<Session>, session: Session): Promise<void> | void
|
|
'session/flush'(this: Scoped<Session>, session: Session): Promise<void> | void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [Session](../core-data-structures/session.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/core/session/src/index.ts:79`](../../packages/core/session/src/index.ts)
|
|
Source: [`packages/core/session/src/index.ts:79`](../../packages/core/session/src/index.ts)
|
|
|
|
|
|
|
|
## `subagent/*`
|
|
## `subagent/*`
|
|
@@ -532,6 +540,8 @@ A ready child settled. Scope-filtered dispatch uses the same delegating parent c
|
|
|
'subagent/end'(this: Scoped<SubagentService>, info: SubagentRunEndInfo): void
|
|
'subagent/end'(this: Scoped<SubagentService>, info: SubagentRunEndInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [SubagentService](../core-data-structures/subagent.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/subagent/subagent/src/index.ts:112`](../../packages/subagent/subagent/src/index.ts)
|
|
Source: [`packages/subagent/subagent/src/index.ts:112`](../../packages/subagent/subagent/src/index.ts)
|
|
|
|
|
|
|
|
### `subagent/provider-added` — emit
|
|
### `subagent/provider-added` — emit
|
|
@@ -547,6 +557,8 @@ A provider became resolvable in the registry.
|
|
|
'subagent/provider-added'(provider: SubagentProvider): void
|
|
'subagent/provider-added'(provider: SubagentProvider): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [SubagentProvider](../core-data-structures/subagent.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/subagent/subagent/src/index.ts:86`](../../packages/subagent/subagent/src/index.ts)
|
|
Source: [`packages/subagent/subagent/src/index.ts:86`](../../packages/subagent/subagent/src/index.ts)
|
|
|
|
|
|
|
|
### `subagent/provider-removed` — emit
|
|
### `subagent/provider-removed` — emit
|
|
@@ -582,6 +594,8 @@ A provider established a ready child. For in-process providers, `ctx.agents.get(
|
|
|
'subagent/start'(this: Scoped<SubagentService>, info: SubagentRunInfo): void
|
|
'subagent/start'(this: Scoped<SubagentService>, info: SubagentRunInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [SubagentService](../core-data-structures/subagent.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/subagent/subagent/src/index.ts:103`](../../packages/subagent/subagent/src/index.ts)
|
|
Source: [`packages/subagent/subagent/src/index.ts:103`](../../packages/subagent/subagent/src/index.ts)
|
|
|
|
|
|
|
|
## `system-prompt/*`
|
|
## `system-prompt/*`
|
|
@@ -602,6 +616,8 @@ Expert waterfall over the assembled sections, tools, and variables. Scope-filter
|
|
|
'system-prompt/assemble'(this: Scoped<SystemPrompt>, assembly: PromptAssembly, context: AssembleContext, next: () => Promise<PromptAssembly>): Promise<PromptAssembly>
|
|
'system-prompt/assemble'(this: Scoped<SystemPrompt>, assembly: PromptAssembly, context: AssembleContext, next: () => Promise<PromptAssembly>): Promise<PromptAssembly>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [AssembleContext](../core-data-structures/system-prompt.md) · [Scoped](../core-data-structures/scope.md) · [SystemPrompt](../core-data-structures/system-prompt.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/core/system-prompt/src/index.ts:27`](../../packages/core/system-prompt/src/index.ts)
|
|
Source: [`packages/core/system-prompt/src/index.ts:27`](../../packages/core/system-prompt/src/index.ts)
|
|
|
|
|
|
|
|
### `system-prompt/change` — emit
|
|
### `system-prompt/change` — emit
|
|
@@ -656,7 +672,7 @@ Around-dispatch waterfall for timeout, retry, or metrics. `next()` returns a nor
|
|
|
'tools/execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, next: () => Promise<ToolExecutionResult>): Promise<ToolExecutionResult>
|
|
'tools/execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, next: () => Promise<ToolExecutionResult>): Promise<ToolExecutionResult>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md) · [ToolRegistry](../core-data-structures/tools.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/tools/src/index.ts:89`](../../packages/core/tools/src/index.ts)
|
|
Source: [`packages/core/tools/src/index.ts:89`](../../packages/core/tools/src/index.ts)
|
|
|
|
|
|
|
@@ -676,7 +692,7 @@ Accept, replace, enrich, or block a normalized dispatch result. `next()` accepts
|
|
|
'tools/post-execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, result: Readonly<ToolExecutionResult>, next: () => Promise<PostToolDecision>): Promise<PostToolDecision>
|
|
'tools/post-execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, result: Readonly<ToolExecutionResult>, next: () => Promise<PostToolDecision>): Promise<PostToolDecision>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
|
|
|
|
|
|
+Types: [PostToolDecision](../core-data-structures/tools.md) · [Scoped](../core-data-structures/scope.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md) · [ToolRegistry](../core-data-structures/tools.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/tools/src/index.ts:98`](../../packages/core/tools/src/index.ts)
|
|
Source: [`packages/core/tools/src/index.ts:98`](../../packages/core/tools/src/index.ts)
|
|
|
|
|
|
|
@@ -695,7 +711,7 @@ Allow, deny, or ask before dispatch. `next()` delegates to allow; missing approv
|
|
|
'tools/pre-execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, next: () => Promise<PreToolDecision>): Promise<PreToolDecision>
|
|
'tools/pre-execute'(this: Scoped<ToolRegistry>, exec: ToolExecution, next: () => Promise<PreToolDecision>): Promise<PreToolDecision>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [ToolExecution](../core-data-structures/tools.md)
|
|
|
|
|
|
|
+Types: [PreToolDecision](../core-data-structures/tools.md) · [Scoped](../core-data-structures/scope.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolRegistry](../core-data-structures/tools.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/tools/src/index.ts:80`](../../packages/core/tools/src/index.ts)
|
|
Source: [`packages/core/tools/src/index.ts:80`](../../packages/core/tools/src/index.ts)
|
|
|
|
|
|
|
@@ -714,7 +730,7 @@ Observe the frozen, lossless-JSON final outcome. Listener failures are contained
|
|
|
'tools/result'(this: Scoped<ToolRegistry>, exec: Readonly<ToolExecution>, result: Readonly<ToolExecutionResult>): undefined
|
|
'tools/result'(this: Scoped<ToolRegistry>, exec: Readonly<ToolExecution>, result: Readonly<ToolExecutionResult>): undefined
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Types: [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
|
|
|
|
|
|
+Types: [Scoped](../core-data-structures/scope.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md) · [ToolRegistry](../core-data-structures/tools.md)
|
|
|
|
|
|
|
|
Source: [`packages/core/tools/src/index.ts:106`](../../packages/core/tools/src/index.ts)
|
|
Source: [`packages/core/tools/src/index.ts:106`](../../packages/core/tools/src/index.ts)
|
|
|
|
|
|
|
@@ -738,6 +754,8 @@ One `agent()` call settled (clean result, child failure, or run cancellation). P
|
|
|
'workflow/agent-end'(info: WorkflowRunInfo, agent: WorkflowAgentEndInfo): void
|
|
'workflow/agent-end'(info: WorkflowRunInfo, agent: WorkflowAgentEndInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:81`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:81`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
### `workflow/agent-start` — emit
|
|
### `workflow/agent-start` — emit
|
|
@@ -757,6 +775,8 @@ One `agent()` call established a ready child run. Paired with Events['workflow/a
|
|
|
'workflow/agent-start'(info: WorkflowRunInfo, agent: WorkflowAgentInfo): void
|
|
'workflow/agent-start'(info: WorkflowRunInfo, agent: WorkflowAgentInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:70`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:70`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
### `workflow/end` — emit
|
|
### `workflow/end` — emit
|
|
@@ -776,6 +796,8 @@ A workflow run settled (any stop reason). Fired when WorkflowRun.result resolves
|
|
|
'workflow/end'(info: WorkflowRunInfo, result: WorkflowResultInfo): void
|
|
'workflow/end'(info: WorkflowRunInfo, result: WorkflowResultInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:91`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:91`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
### `workflow/log` — emit
|
|
### `workflow/log` — emit
|
|
@@ -792,6 +814,8 @@ The script emitted a narration line (a `log(message)` call).
|
|
|
'workflow/log'(info: WorkflowRunInfo, message: string): void
|
|
'workflow/log'(info: WorkflowRunInfo, message: string): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:60`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:60`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
### `workflow/phase` — emit
|
|
### `workflow/phase` — emit
|
|
@@ -809,6 +833,8 @@ The script entered a phase (a `phase(title)` call) — progress grouping for obs
|
|
|
'workflow/phase'(info: WorkflowRunInfo, title: string): void
|
|
'workflow/phase'(info: WorkflowRunInfo, title: string): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:53`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:53`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
### `workflow/start` — emit
|
|
### `workflow/start` — emit
|
|
@@ -825,6 +851,8 @@ A workflow run started — the script's meta block validated, the body about to
|
|
|
'workflow/start'(info: WorkflowRunInfo): void
|
|
'workflow/start'(info: WorkflowRunInfo): void
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Types: [WorkflowRunInfo](../core-data-structures/workflow.md)
|
|
|
|
|
+
|
|
|
Source: [`packages/workflow/workflow/src/index.ts:45`](../../packages/workflow/workflow/src/index.ts)
|
|
Source: [`packages/workflow/workflow/src/index.ts:45`](../../packages/workflow/workflow/src/index.ts)
|
|
|
|
|
|
|
|
## Inherited events (cordis core + loader/hmr/timer)
|
|
## Inherited events (cordis core + loader/hmr/timer)
|