@rowan-agent/agent 0.9.3 → 0.9.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.
package/dist/index.d.ts CHANGED
@@ -455,11 +455,11 @@ type ExtensionDisposer = () => void | Promise<void>;
455
455
  type ExtensionFactoryResult = void | ExtensionDisposer;
456
456
  type ExtensionFactory = (api: ExtensionAPI) => ExtensionFactoryResult | Promise<ExtensionFactoryResult>;
457
457
 
458
- /** Unified phase output — model decides routing via route. */
458
+ /** Unified phase output — model-driven routing is optional; programmatic phases may normalize omission to stop. */
459
459
  type PhaseOutput = {
460
460
  message: string;
461
- /** Route to next phase, or "continue" to re-execute current phase, or "stop" to end */
462
- route: string;
461
+ /** Route to next phase, or "continue" to re-execute current phase, or "stop" to end. Undefined means no model route. */
462
+ route?: string;
463
463
  /** Phase name that produced this output */
464
464
  phase?: string;
465
465
  /** Tool calls from the model invocation (used by framework for route extraction) */
@@ -778,6 +778,8 @@ type MessageBase = Readonly<{
778
778
  id: MessageId;
779
779
  agentId: AgentId;
780
780
  runId: RunId;
781
+ /** Monotonic active revision. Omitted on legacy/initial messages and read as 0. */
782
+ messageRevision?: number;
781
783
  metadata?: Metadata;
782
784
  sequenceWithinRun: number;
783
785
  createdAt: string;
@@ -888,6 +890,14 @@ type MessageCommitted = DurableEventBase & Readonly<{
888
890
  kind: "message_committed";
889
891
  message: Message;
890
892
  }>;
893
+ type MessageRevised = DurableEventBase & Readonly<{
894
+ kind: "message_revised";
895
+ message: UserMessage;
896
+ previousRevision: number;
897
+ invalidatedRunIds: readonly RunId[];
898
+ targetRunId: RunId;
899
+ cutoffSequenceWithinRun: number;
900
+ }>;
891
901
  type RunStateChanged = DurableEventBase & (Readonly<{
892
902
  kind: "run_state_changed";
893
903
  from: null;
@@ -986,7 +996,7 @@ type ToolStateChanged = DurableEventBase & (Readonly<{
986
996
  state: "indeterminate";
987
997
  }>;
988
998
  }>);
989
- type DurableRunEvent = MessageCommitted | RunStateChanged | ToolStateChanged;
999
+ type DurableRunEvent = MessageCommitted | MessageRevised | RunStateChanged | ToolStateChanged;
990
1000
  type MessageDelta = Readonly<{
991
1001
  kind: "message_delta";
992
1002
  durability: "transient";
@@ -1265,6 +1275,7 @@ type UserInput = string | Readonly<{
1265
1275
  content: UserContent;
1266
1276
  metadata?: Metadata;
1267
1277
  }>;
1278
+ type HistorySeed = readonly Message[];
1268
1279
  type ToolInvocationContext = Readonly<{
1269
1280
  agentId: AgentId;
1270
1281
  runId: RunId;
@@ -1402,6 +1413,11 @@ type RunRecord = Readonly<{
1402
1413
  revision: number;
1403
1414
  state: RunState;
1404
1415
  input: UserInput;
1416
+ initialMessageId?: MessageId;
1417
+ invalidatedBy?: Readonly<{
1418
+ messageId: MessageId;
1419
+ messageRevision: number;
1420
+ }>;
1405
1421
  metadata?: Metadata;
1406
1422
  pinnedConfigToken?: ConfigToken;
1407
1423
  checkpoint?: ExecutionCheckpoint;
@@ -1413,6 +1429,22 @@ type RunRecord = Readonly<{
1413
1429
  createdAt: string;
1414
1430
  updatedAt: string;
1415
1431
  }>;
1432
+ type MessageRevisionResult = Readonly<{
1433
+ message: UserMessage & Readonly<{
1434
+ messageRevision: number;
1435
+ }>;
1436
+ replacementRun: RunRecord;
1437
+ invalidatedRunIds: readonly RunId[];
1438
+ affectedToolCallIds: readonly ToolCallId[];
1439
+ effectDigest?: string;
1440
+ }>;
1441
+ type RetentionResult = Readonly<{
1442
+ deletedRunIds: readonly RunId[];
1443
+ deletedToolCallIds: readonly ToolCallId[];
1444
+ deletedEventCount: number;
1445
+ retentionFloor: EventCursor;
1446
+ skipped?: "active_consumers" | "no_eligible_events";
1447
+ }>;
1416
1448
  type AgentSummary = Readonly<{
1417
1449
  id: AgentId;
1418
1450
  metadata?: Metadata;
@@ -1520,6 +1552,7 @@ interface OwnedStore {
1520
1552
  idempotencyKey: string;
1521
1553
  metadata?: Metadata;
1522
1554
  configIdentity?: string;
1555
+ historySeed?: HistorySeed;
1523
1556
  }): Promise<AgentRecord>;
1524
1557
  activateAgent(agentId: AgentId, configToken?: ConfigToken, configIdentity?: string): Promise<AgentRecord>;
1525
1558
  updateAgentConfigToken(input: {
@@ -1529,6 +1562,18 @@ interface OwnedStore {
1529
1562
  idempotencyKey: string;
1530
1563
  }): Promise<AgentRecord>;
1531
1564
  deleteAgent(input: AgentDeletionRequest): Promise<void>;
1565
+ reviseMessage(input: {
1566
+ agentId: AgentId;
1567
+ messageId: MessageId;
1568
+ expectedMessageRevision: number;
1569
+ content: UserContent;
1570
+ operationId: string;
1571
+ effectDigestConfirmation?: string;
1572
+ }): Promise<MessageRevisionResult>;
1573
+ compact(input?: {
1574
+ now?: string;
1575
+ retentionMs?: number;
1576
+ }): Promise<RetentionResult>;
1532
1577
  createRun(input: {
1533
1578
  agentId: AgentId;
1534
1579
  input: UserInput;
@@ -1610,6 +1655,7 @@ interface OwnedStore {
1610
1655
  output?: AssistantMessage;
1611
1656
  }): Promise<RunRecord>;
1612
1657
  snapshotRun(runId: RunId): Promise<RunSnapshot>;
1658
+ history(agentId: AgentId): Promise<readonly Message[]>;
1613
1659
  listAgents(): Promise<readonly AgentRecord[]>;
1614
1660
  listRuns(input?: {
1615
1661
  agentId?: AgentId;
@@ -1674,16 +1720,29 @@ interface AgentRuntime$1 {
1674
1720
  createAgent(config: AgentConfigRequest, options?: {
1675
1721
  idempotencyKey?: string;
1676
1722
  metadata?: Metadata;
1723
+ historySeed?: HistorySeed;
1677
1724
  }): Promise<AgentId>;
1678
1725
  updateAgentConfig(agentId: AgentId, config: AgentConfigRequest, options: {
1679
1726
  idempotencyKey: string;
1680
1727
  }): Promise<void>;
1681
1728
  deleteAgent(input: AgentDeletionRequest): Promise<void>;
1729
+ revise(agentId: AgentId, input: {
1730
+ messageId: MessageId;
1731
+ expectedMessageRevision: number;
1732
+ content: UserContent;
1733
+ operationId: string;
1734
+ effectDigestConfirmation?: string;
1735
+ }): Promise<MessageRevisionResult>;
1736
+ compact(input?: {
1737
+ now?: string;
1738
+ retentionMs?: number;
1739
+ }): Promise<RetentionResult>;
1682
1740
  start(agentId: AgentId, input: UserInput, options: {
1683
1741
  idempotencyKey: string;
1684
1742
  metadata?: Metadata;
1685
1743
  }): Promise<AgentRun>;
1686
1744
  run(runId: RunId): AgentRun;
1745
+ history(agentId: AgentId): Promise<readonly Message[]>;
1687
1746
  listAgents(input?: {
1688
1747
  after?: AgentListCursor;
1689
1748
  limit?: number;
@@ -1740,11 +1799,29 @@ declare class AgentRuntime implements AgentRuntime$1 {
1740
1799
  createAgent(config: AgentConfigRequest, options?: {
1741
1800
  idempotencyKey?: string;
1742
1801
  metadata?: Metadata;
1802
+ historySeed?: HistorySeed;
1743
1803
  }): Promise<AgentId>;
1744
1804
  updateAgentConfig(agentId: AgentId, config: AgentConfigRequest, options: {
1745
1805
  idempotencyKey: string;
1746
1806
  }): Promise<void>;
1747
1807
  deleteAgent(input: AgentDeletionRequest): Promise<void>;
1808
+ revise(agentId: AgentId, input: {
1809
+ messageId: MessageId;
1810
+ expectedMessageRevision: number;
1811
+ content: UserContent;
1812
+ operationId: string;
1813
+ effectDigestConfirmation?: string;
1814
+ }): Promise<MessageRevisionResult>;
1815
+ compact(input?: {
1816
+ now?: string;
1817
+ retentionMs?: number;
1818
+ }): Promise<Readonly<{
1819
+ deletedRunIds: readonly RunId[];
1820
+ deletedToolCallIds: readonly ToolCallId[];
1821
+ deletedEventCount: number;
1822
+ retentionFloor: EventCursor;
1823
+ skipped?: "active_consumers" | "no_eligible_events";
1824
+ }>>;
1748
1825
  start(agentId: AgentId, input: UserInput, options: {
1749
1826
  idempotencyKey: string;
1750
1827
  metadata?: Metadata;
@@ -1769,6 +1846,7 @@ declare class AgentRuntime implements AgentRuntime$1 {
1769
1846
  }): Promise<DurableConsumer>;
1770
1847
  close(): Promise<void>;
1771
1848
  snapshot(runId: RunId): Promise<RunSnapshot>;
1849
+ history(agentId: AgentId): Promise<readonly Message[]>;
1772
1850
  respond(runId: RunId, input: {
1773
1851
  requestId: InputRequestId;
1774
1852
  input: UserInput;
@@ -1807,7 +1885,9 @@ type InMemoryStoreState = Readonly<{
1807
1885
  events: readonly DurableRunEvent[];
1808
1886
  idempotency: readonly (readonly [string, IdempotencyReceipt])[];
1809
1887
  operationReceipts: readonly (readonly [string, IdempotencyReceipt])[];
1888
+ historySeeds?: readonly (readonly [AgentId, readonly Message[]])[];
1810
1889
  consumerCheckpoints: readonly (readonly [string, EventCursor])[];
1890
+ retentionFloor?: number;
1811
1891
  nextAgentSequence: readonly (readonly [AgentId, number])[];
1812
1892
  nextReadySequence: readonly (readonly [AgentId, number])[];
1813
1893
  eventSequence: number;
@@ -1821,12 +1901,14 @@ declare class InMemoryStore implements DurableStore {
1821
1901
  private readonly events;
1822
1902
  private readonly idempotency;
1823
1903
  private readonly operationReceipts;
1904
+ private readonly historySeeds;
1824
1905
  private readonly consumerCheckpoints;
1825
1906
  private readonly nextAgentSequence;
1826
1907
  private readonly nextReadySequence;
1827
1908
  private owner?;
1828
1909
  private ownerEpoch;
1829
1910
  private eventSequence;
1911
+ private retentionFloor;
1830
1912
  constructor(options?: {
1831
1913
  incarnation?: string;
1832
1914
  });
@@ -1845,6 +1927,7 @@ declare class InMemoryStore implements DurableStore {
1845
1927
  idempotencyKey: string;
1846
1928
  metadata?: Metadata;
1847
1929
  configIdentity?: string;
1930
+ historySeed?: HistorySeed;
1848
1931
  }): AgentRecord;
1849
1932
  activateAgent(lease: OwnerLease, agentId: AgentId, configToken?: ConfigToken, configIdentity?: string): AgentRecord;
1850
1933
  updateAgentConfigToken(lease: OwnerLease, input: {
@@ -1854,6 +1937,14 @@ declare class InMemoryStore implements DurableStore {
1854
1937
  idempotencyKey: string;
1855
1938
  }): AgentRecord;
1856
1939
  deleteAgent(lease: OwnerLease, input: AgentDeletionRequest): void;
1940
+ reviseMessage(lease: OwnerLease, input: {
1941
+ agentId: AgentId;
1942
+ messageId: MessageId;
1943
+ expectedMessageRevision: number;
1944
+ content: UserContent;
1945
+ operationId: string;
1946
+ effectDigestConfirmation?: string;
1947
+ }): MessageRevisionResult;
1857
1948
  createRun(lease: OwnerLease, input: {
1858
1949
  agentId: AgentId;
1859
1950
  input: UserInput;
@@ -1955,6 +2046,10 @@ declare class InMemoryStore implements DurableStore {
1955
2046
  consumerId: string;
1956
2047
  cursor: EventCursor;
1957
2048
  }): void;
2049
+ compact(lease: OwnerLease, input?: {
2050
+ now?: string;
2051
+ retentionMs?: number;
2052
+ }): RetentionResult;
1958
2053
  private replay;
1959
2054
  private writeReceipt;
1960
2055
  private replayOperation;
@@ -1971,7 +2066,8 @@ declare class InMemoryStore implements DurableStore {
1971
2066
  private nextReady;
1972
2067
  private nextMessageSequence;
1973
2068
  private messagesForRun;
1974
- private history;
2069
+ history(lease: OwnerLease, agentId: AgentId): readonly Message[];
2070
+ private activeHistory;
1975
2071
  private appendMessage;
1976
2072
  private appendTransition;
1977
2073
  private appendToolTransition;
@@ -1994,6 +2090,7 @@ declare class SqliteStore implements DurableStore {
1994
2090
  idempotencyKey: string;
1995
2091
  metadata?: Metadata;
1996
2092
  configIdentity?: string;
2093
+ historySeed?: HistorySeed;
1997
2094
  }): Promise<AgentRecord>;
1998
2095
  activateAgent(lease: OwnerLease, agentId: AgentId, configToken?: ConfigToken, configIdentity?: string): Promise<AgentRecord>;
1999
2096
  updateAgentConfigToken(lease: OwnerLease, input: {
@@ -2003,6 +2100,14 @@ declare class SqliteStore implements DurableStore {
2003
2100
  idempotencyKey: string;
2004
2101
  }): Promise<AgentRecord>;
2005
2102
  deleteAgent(lease: OwnerLease, input: AgentDeletionRequest): Promise<void>;
2103
+ reviseMessage(lease: OwnerLease, input: {
2104
+ agentId: AgentId;
2105
+ messageId: MessageId;
2106
+ expectedMessageRevision: number;
2107
+ content: UserContent;
2108
+ operationId: string;
2109
+ effectDigestConfirmation?: string;
2110
+ }): Promise<MessageRevisionResult>;
2006
2111
  createRun(lease: OwnerLease, input: {
2007
2112
  agentId: AgentId;
2008
2113
  input: UserInput;
@@ -2091,6 +2196,7 @@ declare class SqliteStore implements DurableStore {
2091
2196
  output?: AssistantMessage;
2092
2197
  }): Promise<RunRecord>;
2093
2198
  snapshotRun(lease: OwnerLease, runId: RunId): Promise<RunSnapshot>;
2199
+ history(lease: OwnerLease, agentId: AgentId): Promise<readonly Message[]>;
2094
2200
  listAgents(lease: OwnerLease): Promise<readonly AgentRecord[]>;
2095
2201
  listRuns(lease: OwnerLease, input?: {
2096
2202
  agentId?: AgentId;
@@ -2104,6 +2210,10 @@ declare class SqliteStore implements DurableStore {
2104
2210
  consumerId: string;
2105
2211
  cursor: EventCursor;
2106
2212
  }): Promise<void>;
2213
+ compact(lease: OwnerLease, input?: {
2214
+ now?: string;
2215
+ retentionMs?: number;
2216
+ }): Promise<RetentionResult>;
2107
2217
  renewOwner(lease: OwnerLease, leaseMs: number): Promise<OwnerLease>;
2108
2218
  sealAndReleaseOwner(lease: OwnerLease): Promise<void>;
2109
2219
  private invoke;
@@ -2142,7 +2252,7 @@ declare class InMemoryConfigProvider implements ConfigProvider {
2142
2252
  }
2143
2253
  declare function brandConfigToken(raw: unknown): ConfigToken;
2144
2254
 
2145
- type RuntimeErrorCode = "invalid_argument" | "runtime_closed" | "runtime_already_owned" | "runtime_ownership_lost" | "agent_not_found" | "run_not_found" | "run_state_conflict" | "input_request_conflict" | "idempotency_conflict" | "configuration_unavailable" | "checkpoint_incompatible" | "consumer_already_active" | "invalid_cursor" | "store_unavailable" | "unsupported_store_version";
2255
+ type RuntimeErrorCode = "invalid_argument" | "runtime_closed" | "runtime_already_owned" | "runtime_ownership_lost" | "agent_not_found" | "run_not_found" | "run_state_conflict" | "message_revision_conflict" | "tool_effect_confirmation_required" | "input_request_conflict" | "idempotency_conflict" | "configuration_unavailable" | "checkpoint_incompatible" | "consumer_already_active" | "invalid_cursor" | "store_unavailable" | "unsupported_store_version";
2146
2256
  type RuntimeErrorDetails = {
2147
2257
  invalid_argument: Readonly<{
2148
2258
  argument: string;
@@ -2170,6 +2280,18 @@ type RuntimeErrorDetails = {
2170
2280
  expected: readonly RunState[];
2171
2281
  actual: RunState;
2172
2282
  }>;
2283
+ message_revision_conflict: Readonly<{
2284
+ agentId: AgentId;
2285
+ messageId: MessageId;
2286
+ expected: number;
2287
+ actual: number;
2288
+ }>;
2289
+ tool_effect_confirmation_required: Readonly<{
2290
+ agentId: AgentId;
2291
+ messageId: MessageId;
2292
+ effectDigest: string;
2293
+ toolCallIds: readonly ToolCallId[];
2294
+ }>;
2173
2295
  input_request_conflict: Readonly<{
2174
2296
  runId: RunId;
2175
2297
  requestId: InputRequestId;
@@ -2201,7 +2323,7 @@ type RuntimeErrorDetails = {
2201
2323
  }>;
2202
2324
  invalid_cursor: Readonly<{
2203
2325
  cursorType: "agent_list" | "run_list" | "event";
2204
- reason: "malformed" | "wrong_store" | "wrong_collection" | "filter_mismatch" | "beyond_waterline";
2326
+ reason: "malformed" | "wrong_store" | "wrong_collection" | "filter_mismatch" | "beyond_waterline" | "expired";
2205
2327
  }>;
2206
2328
  store_unavailable: Readonly<{
2207
2329
  operation: string;
@@ -2277,4 +2399,4 @@ declare function parseFrontmatter<T = Record<string, unknown>>(raw: string): Fro
2277
2399
 
2278
2400
  declare function createCoreTools(input?: CoreToolContext): Tool[];
2279
2401
 
2280
- export { type AfterToolCall, type AgentConfig, type AgentConfigRequest, type AgentConfiguration, type AgentDefinition, type AgentId, type AgentListCursor, type AgentRecord, type AgentResources, type AgentRun, AgentRuntime, type AgentRuntimeOptions, type AgentSummary, type AnyRuntimeError, type AssistantContent, type AssistantMessage, type BeforeToolCall, type ConfigProvider, type ConfigPutResult, type ConfigResolution, type ConfigToken, type ConfigurationSnapshot, type ContextCandidate, type CoreToolContext, type DefinitionLayer, type DurableConsumer, type DurableRunEvent, type DurableStore, type DurableToolResult, type EventCursor, type EventId, type ExecutionCheckpoint, type ExecutionId, type ExecutionToken, type ExtensionAPI, type ExtensionActivationError, type ExtensionActivationResult, type ExtensionContribution, type ExtensionDisposer, type ExtensionFactory, type ExtensionFactoryResult, ExtensionLifetimeError, type ExtensionLifetimeErrorCode, type ExtensionLoadInput, type FrontmatterResult, type HookEvent, type HookEventType, type HookHandler, InMemoryConfigProvider, InMemoryStore, type InputRequest, type InputRequestId, type InputRequiredCommit, type JsonObject, type JsonPrimitive, type JsonValue, type LoadExtensionsResult, type LoadInput, type LoadResult, type LoadedExtension, type Message, type MessageBase, type MessageCommitted, type MessageContent, type MessageDelta, type MessageId, type Metadata, type OpaqueId, type Outcome, type OwnerLease, type OwnerToken, type Page, type Phase, type PhaseContext, type PhaseContribution, type PhaseExecutionIdentity, type PhaseInvocation, type PhaseOutput, type PhaseRegistry, type PhaseRegistrySelection, type PhaseState, type ResolvedResourceView, type ResourceDiagnostic, type ResourceKind, type ResourceRef, ResourceRegistry, ResourceRegistryError, type ResourceRegistryErrorCode, type ResourceSourceId, type ResourceView, type RunBoundary, type RunClaim, type RunEvent, type RunFailure, type RunId, type RunListCursor, type RunRecord, type RunSnapshot, type RunState, type RunStateChanged, type RunSummary, RuntimeBootstrapRegistry, RuntimeError, type RuntimeErrorCode, type RuntimeErrorDetails, RuntimeExtensionLifetime, type Skill, SqliteStore, type TextContent, type ThinkingContent, type Tool, type ToolCallId, type ToolCallSnapshot, type ToolCallState, type ToolContribution, type ToolDefinition, type ToolExecutionResult, type ToolInvocationContext, type ToolMessage, type ToolMessageContent, type ToolProgress, type ToolResultContent, type ToolStateChanged, type ToolUseContent, type UserContent, type UserInput, type UserMessage, brandConfigToken, createCoreTools, isRuntimeError, loadExtensionsFromPath as loadExtensions, loadPhase, loadPhases, loadSkill, loadSkills, materializeConfigurationSnapshot, parseAgentDefinition, parseFrontmatter, resolveConfigurationSnapshot };
2402
+ export { type AfterToolCall, type AgentConfig, type AgentConfigRequest, type AgentConfiguration, type AgentDefinition, type AgentId, type AgentListCursor, type AgentRecord, type AgentResources, type AgentRun, AgentRuntime, type AgentRuntimeOptions, type AgentSummary, type AnyRuntimeError, type AssistantContent, type AssistantMessage, type BeforeToolCall, type ConfigProvider, type ConfigPutResult, type ConfigResolution, type ConfigToken, type ConfigurationSnapshot, type ContextCandidate, type CoreToolContext, type DefinitionLayer, type DurableConsumer, type DurableRunEvent, type DurableStore, type DurableToolResult, type EventCursor, type EventId, type ExecutionCheckpoint, type ExecutionId, type ExecutionToken, type ExtensionAPI, type ExtensionActivationError, type ExtensionActivationResult, type ExtensionContribution, type ExtensionDisposer, type ExtensionFactory, type ExtensionFactoryResult, ExtensionLifetimeError, type ExtensionLifetimeErrorCode, type ExtensionLoadInput, type FrontmatterResult, type HistorySeed, type HookEvent, type HookEventType, type HookHandler, InMemoryConfigProvider, InMemoryStore, type InputRequest, type InputRequestId, type InputRequiredCommit, type JsonObject, type JsonPrimitive, type JsonValue, type LoadExtensionsResult, type LoadInput, type LoadResult, type LoadedExtension, type Message, type MessageBase, type MessageCommitted, type MessageContent, type MessageDelta, type MessageId, type MessageRevised, type MessageRevisionResult, type Metadata, type OpaqueId, type Outcome, type OwnerLease, type OwnerToken, type Page, type Phase, type PhaseContext, type PhaseContribution, type PhaseExecutionIdentity, type PhaseInvocation, type PhaseOutput, type PhaseRegistry, type PhaseRegistrySelection, type PhaseState, type ResolvedResourceView, type ResourceDiagnostic, type ResourceKind, type ResourceRef, ResourceRegistry, ResourceRegistryError, type ResourceRegistryErrorCode, type ResourceSourceId, type ResourceView, type RetentionResult, type RunBoundary, type RunClaim, type RunEvent, type RunFailure, type RunId, type RunListCursor, type RunRecord, type RunSnapshot, type RunState, type RunStateChanged, type RunSummary, RuntimeBootstrapRegistry, RuntimeError, type RuntimeErrorCode, type RuntimeErrorDetails, RuntimeExtensionLifetime, type Skill, SqliteStore, type TextContent, type ThinkingContent, type Tool, type ToolCallId, type ToolCallSnapshot, type ToolCallState, type ToolContribution, type ToolDefinition, type ToolExecutionResult, type ToolInvocationContext, type ToolMessage, type ToolMessageContent, type ToolProgress, type ToolResultContent, type ToolStateChanged, type ToolUseContent, type UserContent, type UserInput, type UserMessage, brandConfigToken, createCoreTools, isRuntimeError, loadExtensionsFromPath as loadExtensions, loadPhase, loadPhases, loadSkill, loadSkills, materializeConfigurationSnapshot, parseAgentDefinition, parseFrontmatter, resolveConfigurationSnapshot };