@aaac/runtime 0.1.4 → 0.1.5

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ jsonSchemaToZod
3
+ } from "./chunk-ET6TGQRT.js";
4
+ export {
5
+ jsonSchemaToZod
6
+ };
7
+ //# sourceMappingURL=schema-converter-LACA7P4O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -42,6 +42,22 @@ declare class InMemoryStore implements MemoryStore {
42
42
  delete(ref: MemoryRef): Promise<void>;
43
43
  }
44
44
 
45
+ interface LibraryToolDefinition {
46
+ toolId: string;
47
+ description: string;
48
+ module: string;
49
+ exportName: string;
50
+ inputSchema?: Record<string, unknown>;
51
+ outputSchema?: Record<string, unknown>;
52
+ }
53
+ interface LibraryToolRegistry {
54
+ register(def: LibraryToolDefinition): void;
55
+ get(toolId: string): LibraryToolDefinition | undefined;
56
+ getAll(): LibraryToolDefinition[];
57
+ execute(toolId: string, input: unknown): Promise<unknown>;
58
+ }
59
+ declare function createLibraryToolRegistry(): LibraryToolRegistry;
60
+
45
61
  /**
46
62
  * Candidate Agents — backend-neutral bridge for LLM-internal routing (model B)
47
63
  *
@@ -309,6 +325,12 @@ interface AdapterSendOptions {
309
325
  * The task's final output is still validated against the handoff schema.
310
326
  */
311
327
  allowDynamicWorkflow?: boolean;
328
+ /**
329
+ * In-process library tools to register with the SDK as function tools.
330
+ * Adapters convert these to their native tool format (Claude MCP, OpenAI
331
+ * function tools, ADK tools). I/O is validated against the tool's schemas.
332
+ */
333
+ libraryTools?: LibraryToolRegistry;
312
334
  }
313
335
  /**
314
336
  * Rich execution request for adapters that need more than a prompt string.
@@ -487,6 +509,7 @@ declare function runTask(adapter: SdkAdapter, taskId: string, context: TaskConte
487
509
  fix_task: string;
488
510
  revalidate_task?: string;
489
511
  };
512
+ libraryTools?: LibraryToolRegistry;
490
513
  }): Promise<TaskRunResult>;
491
514
 
492
- export { type AdapterSendOptions as A, type CacheConfig as C, type EnvelopeParams as E, InMemoryStore as I, 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 AgentProgressEvent as g, type CandidateAgent as h, type SplitPrompt as i, type TaskRunOptions as j, buildCandidateAgents as k, buildRetryFollowUp as l, buildSplitTaskPrompt as m, buildTaskPrompt as n, createExecutionEnvelope as o, emitSessionClose as p, emitSessionOpen as q, emitSubagentClose as r, emitSubagentOpen as s, extractStructuredResult as t, renderAgentSystemPrompt as u, runTask as v, zodSchemaToYamlExample as w, zodSchemaToPromptDescription as z };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaac/runtime",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Runtime SDK for the AAAC toolchain",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",