@aaac/runtime 0.1.5 → 0.1.6

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.
@@ -124,6 +124,7 @@ declare function buildCandidateAgents(agentRegistry: Record<string, AgentContrac
124
124
  * - Generate ExecutionEnvelope (run_id = UUIDv7) for every task/workflow execution
125
125
  * - Emit agent.session (open/close) for runWorkflow() — root run span
126
126
  * - Emit agent.subagent (open/close) for runTask() — handoff/task span
127
+ * - Emit toolchain.execution (open/close) for toolchain tool invocations
127
128
  * - Observer is OPTIONAL — all emit* functions are no-ops when observer is undefined
128
129
  *
129
130
  * No circular dependency: @aaac/observability does NOT import @aaac/runtime.
@@ -197,6 +198,17 @@ declare function emitSubagentOpen(observer: ObserverEmitFn | undefined, envelope
197
198
  * event-catalog.md §2.2 — optional: agent.duration_ms, agent.status, token_usage, cost_usd
198
199
  */
199
200
  declare function emitSubagentClose(observer: ObserverEmitFn | undefined, spanId: string, envelope: ExecutionEnvelope, durationMs: number, status: string, agentRole: string): void;
201
+ /**
202
+ * Emit a toolchain.execution open span when a toolchain tool is invoked.
203
+ *
204
+ * Returns the spanId emitted (= generated UUIDv7).
205
+ * Returns undefined when observer is undefined (no-op).
206
+ */
207
+ declare function emitToolchainOpen(observer: ObserverEmitFn | undefined, parentSpanId: string | undefined, toolchainId: string, operation: string, artifactIds: string[], componentId?: string): string | undefined;
208
+ /**
209
+ * Emit a toolchain.execution close span.
210
+ */
211
+ declare function emitToolchainClose(observer: ObserverEmitFn | undefined, spanId: string, toolchainId: string, operation: string, durationMs: number, status: "success" | "failure", errorMessage?: string): void;
200
212
 
201
213
  /**
202
214
  * Task Runner — runs a single DSL task via an SDK agent
@@ -512,4 +524,4 @@ declare function runTask(adapter: SdkAdapter, taskId: string, context: TaskConte
512
524
  libraryTools?: LibraryToolRegistry;
513
525
  }): Promise<TaskRunResult>;
514
526
 
515
- export { type AdapterSendOptions as A, type CacheConfig as C, type EnvelopeParams as E, InMemoryStore as I, type LibraryToolRegistry as L, type MemoryRef as M, type ObserverEmitFn as O, type PromptBuilderOptions as P, type RetryDecision as R, type SdkAdapter as S, type TaskOutcome as T, type AgentExecutionRequest as a, type TaskContractLike as b, type AgentContractLike as c, type TaskContext as d, type MemoryStore as e, type TaskRunResult as f, type LibraryToolDefinition as g, type AgentProgressEvent as h, type CandidateAgent as i, type SplitPrompt as j, type TaskRunOptions as k, buildCandidateAgents as l, buildRetryFollowUp as m, buildSplitTaskPrompt as n, buildTaskPrompt as o, createExecutionEnvelope as p, createLibraryToolRegistry as q, emitSessionClose as r, emitSessionOpen as s, emitSubagentClose as t, emitSubagentOpen as u, extractStructuredResult as v, renderAgentSystemPrompt as w, runTask as x, zodSchemaToYamlExample as y, zodSchemaToPromptDescription as z };
527
+ export { type AdapterSendOptions as A, zodSchemaToPromptDescription as B, type CacheConfig as C, zodSchemaToYamlExample as D, type EnvelopeParams as E, InMemoryStore as I, type LibraryToolRegistry as L, type MemoryRef as M, type ObserverEmitFn as O, type PromptBuilderOptions as P, type RetryDecision as R, type SdkAdapter as S, type TaskOutcome as T, type AgentExecutionRequest as a, type TaskContractLike as b, type AgentContractLike as c, type TaskContext as d, type MemoryStore as e, type TaskRunResult as f, type LibraryToolDefinition as g, type AgentProgressEvent as h, type CandidateAgent as i, type SplitPrompt as j, type TaskRunOptions as k, buildCandidateAgents as l, buildRetryFollowUp as m, buildSplitTaskPrompt as n, buildTaskPrompt as o, createExecutionEnvelope as p, createLibraryToolRegistry as q, emitSessionClose as r, emitSessionOpen as s, emitSubagentClose as t, emitSubagentOpen as u, emitToolchainClose as v, emitToolchainOpen as w, extractStructuredResult as x, renderAgentSystemPrompt as y, runTask as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaac/runtime",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Runtime SDK for the AAAC toolchain",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@aaac/contracts": "*",
59
+ "@aaac/toolchain": "*",
59
60
  "@aaac/observability": "*",
60
61
  "agent-contracts": "^0.35.0",
61
62
  "commander": "^12.1.0",