@rowan-agent/agent 0.30.0 → 0.32.0
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-CMFf6UJI.d.ts → index-BNGbx6JB.d.ts} +142 -305
- package/dist/index.d.ts +2 -2
- package/dist/runtime.d.ts +17 -43
- package/dist/runtime.js +140 -235
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _rowan_agent_models from '@rowan-agent/models';
|
|
2
2
|
export { _rowan_agent_models as models };
|
|
3
|
-
export { ScopeRef } from '@rowan-agent/models';
|
|
4
|
-
export {
|
|
3
|
+
export { AudioBlock, ContentBlock, ImageBlock, JsonObject, JsonPrimitive, JsonValue, ResourceBlock, ResourceLinkBlock, RunInteractionKind, RunInteractionRequest, ScopeRef, StreamBlock, TextBlock, ThinkingBlock, ToolResult } from '@rowan-agent/models';
|
|
4
|
+
export { aF as AfterToolCall, f as AgentId, o as AgentListCursor, m as AgentRun, q as AgentSummary, aG as AssistantContent, $ as AssistantMessage, aH as BeforeToolCall, X as ContextCandidate, N as ContextCompactionRecord, C as ContextStatus, v as DurableConsumer, D as DurableRunEvent, aI as EventBus, k as EventCursor, aJ as EventId, aK as ExecOptions, aL as ExecResult, aM as ExtensionAPI, aN as ExtensionAgentConsumerDisposer, aO as ExtensionAgentsAPI, w as ExtensionCapability, aP as ExtensionCapabilityContribution, aQ as ExtensionContext, aR as ExtensionDisposer, aS as ExtensionFactory, aT as ExtensionFactoryResult, aU as ExtensionStateStore, aV as ExtensionToolContribution, aW as HookEvent, aX as HookEventType, aY as HookHandler, aZ as InteractionRecord, a_ as InternalModelLoopOptions, a$ as LiveInteractionEvent, y as Message, b0 as MessageBase, b1 as MessageCommitted, b2 as MessageContent, b3 as MessageDelta, M as MessageId, b4 as MessageRevised, h as MessageRevisionResult, b5 as ModelInvokeOutput, p as Page, P as Phase, b6 as PhaseContext, b7 as PhaseExecution, b8 as PhaseExecutionIdentity, b9 as PhaseInput, ba as PhaseInvocation, bb as PhaseMessageManager, bc as PhaseOutput, bd as PhaseRegistration, be as PhaseRunHandler, bf as PhaseState, bg as PhaseStatus, bh as PhaseStatusState, z as RunBoundary, bi as RunEndEvent, B as RunEvent, Z as RunFailure, i as RunId, a1 as RunInteraction, bj as RunInteractionBoundary, bk as RunInteractionCancelledError, bl as RunInteractionDriver, bm as RunInteractionState, bn as RunInteractionStatus, s as RunListCursor, x as RunSnapshot, bo as RunStartEvent, r as RunState, bp as RunStateChanged, t as RunSummary, bq as SettingsBadge, br as SettingsControl, bs as SettingsDefinition, bt as SettingsItem, bu as SettingsOption, bv as SettingsSection, bw as SkillRegistration, bx as ThinkingDelta, T as Tool, by as ToolCallContext, bz as ToolCallDelta, j as ToolCallId, bA as ToolCallPhase, bB as ToolCallPresentationInput, bC as ToolCallPresentationOutput, K as ToolCallSnapshot, bD as ToolInvocationContext, bE as ToolMessage, bF as ToolMessageContent, bG as ToolResultBlock, bH as ToolResultRecord, bI as ToolStateChanged, bJ as ToolUseBlock, U as UserContent, l as UserInput, bK as UserMessage, bL as WithdrawnUserInput } from './index-BNGbx6JB.js';
|
|
5
5
|
import 'typebox';
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as ExtensionHost, H as HostApiExtension,
|
|
2
|
-
export {
|
|
1
|
+
import { E as ExtensionHost, H as HostApiExtension, A as AgentRuntime$1, a as AgentRuntimeOptions, L as LoadInput, b as AgentDefinition, c as LoadResult, S as Skill, P as Phase, T as Tool, R as ResourceKind, d as AgentConfiguration, e as HistorySeed, f as AgentId, g as AgentDeletionRequest, M as MessageId, U as UserContent, h as MessageRevisionResult, i as RunId, j as ToolCallId, k as EventCursor, C as ContextStatus, l as UserInput, m as AgentRun, n as EntryPhaseSpec, o as AgentListCursor, p as Page, q as AgentSummary, r as RunState, s as RunListCursor, t as RunSummary, I as InvocationSource, u as InvocationCatalogEntry, D as DurableRunEvent, v as DurableConsumer, w as ExtensionCapability, x as RunSnapshot, y as Message, z as RunBoundary, B as RunEvent, F as DurableStore, G as AgentRecord, J as RunRecord, K as ToolCallSnapshot, N as ContextCompactionRecord, O as OwnerLease, Q as OwnedStore, V as ConfigToken, W as ExecutionId, X as ContextCandidate, Y as RunClaim, Z as RunFailure, _ as ExecutionToken, $ as AssistantMessage, a0 as ExecutionCheckpoint, a1 as RunInteraction, a2 as ToolCommit, a3 as ToolCallReservation, a4 as ToolBatchCommit, a5 as Outcome, a6 as ConsumerRegistration, a7 as RetentionResult, a8 as ConfigProvider, a9 as ConfigurationSnapshot, aa as ConfigPutResult, ab as ConfigResolution, ac as PhaseRegistry, ad as LoadedExtension } from './index-BNGbx6JB.js';
|
|
2
|
+
export { ae as DefinitionLayer, af as ExtensionActivationError, ag as ExtensionActivationResult, ah as ExtensionContribution, ai as ExtensionLifetimeError, aj as ExtensionLifetimeErrorCode, ak as ExtensionLoadInput, al as LoadExtensionsResult, am as ModelRetry, an as OpaqueId, ao as OwnerToken, ap as PhaseRegistrySelection, aq as ResolvedResourceView, ar as ResourceDiagnostic, as as ResourceRef, at as ResourceRegistry, au as ResourceRegistryError, av as ResourceRegistryErrorCode, aw as ResourceSourceId, ax as ResourceView, ay as RuntimeBootstrapRegistry, az as RuntimeExtensionLifetime, aA as extensionSourceId, aB as isConfigurationSnapshot, aC as mergeToolCall, aD as parseAgentDefinition, aE as resolveConfigurationSnapshot } from './index-BNGbx6JB.js';
|
|
3
3
|
import * as _rowan_agent_models from '@rowan-agent/models';
|
|
4
|
-
import { ScopeRef,
|
|
4
|
+
import { JsonObject, JsonValue, ScopeRef, ModelRef, LlmTokenUsage, StreamBlock, ToolKind, ToolCallLocation, ToolCallContent, ToolResult, ToolCall, ToolCallUpdate } from '@rowan-agent/models';
|
|
5
5
|
import 'typebox';
|
|
6
6
|
|
|
7
7
|
declare class InMemoryExtensionHost implements ExtensionHost {
|
|
@@ -67,7 +67,7 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
67
67
|
}>): Promise<LoadResult>;
|
|
68
68
|
createAgent(config: AgentConfiguration, options?: {
|
|
69
69
|
idempotencyKey?: string;
|
|
70
|
-
metadata?:
|
|
70
|
+
metadata?: JsonObject;
|
|
71
71
|
historySeed?: HistorySeed;
|
|
72
72
|
}): Promise<AgentId>;
|
|
73
73
|
updateAgentConfig(agentId: AgentId, config: AgentConfiguration, options: {
|
|
@@ -108,7 +108,7 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
108
108
|
}): Promise<AgentRun>;
|
|
109
109
|
start(agentId: AgentId, input: UserInput, options: {
|
|
110
110
|
idempotencyKey: string;
|
|
111
|
-
metadata?:
|
|
111
|
+
metadata?: JsonObject;
|
|
112
112
|
scope?: ScopeRef;
|
|
113
113
|
cwd?: string;
|
|
114
114
|
phasePayload?: JsonValue;
|
|
@@ -182,33 +182,7 @@ type Mutable<T> = {
|
|
|
182
182
|
};
|
|
183
183
|
type StoredAgent = Mutable<AgentRecord>;
|
|
184
184
|
type StoredRun = Mutable<RunRecord>;
|
|
185
|
-
type StoredToolCall =
|
|
186
|
-
id: ToolCallId;
|
|
187
|
-
providerToolCallId?: string;
|
|
188
|
-
agentId: AgentId;
|
|
189
|
-
runId: RunId;
|
|
190
|
-
executionId?: ExecutionId;
|
|
191
|
-
requestMessageId?: MessageId;
|
|
192
|
-
name?: string;
|
|
193
|
-
args?: JsonValue;
|
|
194
|
-
state?: ToolCallState;
|
|
195
|
-
toolCallId: string;
|
|
196
|
-
title: string;
|
|
197
|
-
kind: ToolKind;
|
|
198
|
-
status: ToolCallStatus;
|
|
199
|
-
content?: ToolCallContent[];
|
|
200
|
-
locations?: ToolCallLocation[];
|
|
201
|
-
rawInput?: JsonValue;
|
|
202
|
-
rawOutput?: JsonValue;
|
|
203
|
-
_meta?: JsonObject;
|
|
204
|
-
external?: boolean;
|
|
205
|
-
contentIndex?: number;
|
|
206
|
-
result?: DurableToolResult;
|
|
207
|
-
resultMessageId?: MessageId;
|
|
208
|
-
reason?: string;
|
|
209
|
-
createdAt: string;
|
|
210
|
-
updatedAt: string;
|
|
211
|
-
};
|
|
185
|
+
type StoredToolCall = Mutable<ToolCallSnapshot>;
|
|
212
186
|
type IdempotencyReceipt = {
|
|
213
187
|
payload: string;
|
|
214
188
|
result: unknown;
|
|
@@ -296,7 +270,7 @@ declare class InMemoryStore implements DurableStore {
|
|
|
296
270
|
releaseOwner(lease: OwnerLease): void;
|
|
297
271
|
reserveAgent(lease: OwnerLease, input: {
|
|
298
272
|
idempotencyKey: string;
|
|
299
|
-
metadata?:
|
|
273
|
+
metadata?: JsonObject;
|
|
300
274
|
configIdentity?: string;
|
|
301
275
|
historySeed?: HistorySeed;
|
|
302
276
|
}): AgentRecord;
|
|
@@ -320,7 +294,7 @@ declare class InMemoryStore implements DurableStore {
|
|
|
320
294
|
createRun(lease: OwnerLease, input: {
|
|
321
295
|
agentId: AgentId;
|
|
322
296
|
input: UserInput;
|
|
323
|
-
metadata?:
|
|
297
|
+
metadata?: JsonObject;
|
|
324
298
|
scope?: ScopeRef;
|
|
325
299
|
cwd?: string;
|
|
326
300
|
phasePayload?: JsonValue;
|
|
@@ -394,7 +368,7 @@ declare class InMemoryStore implements DurableStore {
|
|
|
394
368
|
requestMessageId: MessageId;
|
|
395
369
|
calls: readonly ToolCallReservation[];
|
|
396
370
|
/** The model response's blocks, so the request message keeps what preceded the Tool Calls. */
|
|
397
|
-
contentBlocks?: readonly
|
|
371
|
+
contentBlocks?: readonly StreamBlock[];
|
|
398
372
|
model?: ModelRef;
|
|
399
373
|
usage?: LlmTokenUsage;
|
|
400
374
|
}): ToolBatchCommit;
|
|
@@ -420,7 +394,7 @@ declare class InMemoryStore implements DurableStore {
|
|
|
420
394
|
execution: ExecutionToken;
|
|
421
395
|
expectedRevision: number;
|
|
422
396
|
toolCallId: ToolCallId;
|
|
423
|
-
result:
|
|
397
|
+
result: ToolResult;
|
|
424
398
|
state: "completed" | "failed" | "indeterminate";
|
|
425
399
|
reason?: string;
|
|
426
400
|
title?: string;
|
|
@@ -550,7 +524,7 @@ declare class SqliteStore implements DurableStore {
|
|
|
550
524
|
contextArchiveDir(agentId: AgentId): string;
|
|
551
525
|
reserveAgent(lease: OwnerLease, input: {
|
|
552
526
|
idempotencyKey: string;
|
|
553
|
-
metadata?:
|
|
527
|
+
metadata?: JsonObject;
|
|
554
528
|
configIdentity?: string;
|
|
555
529
|
historySeed?: HistorySeed;
|
|
556
530
|
}): Promise<AgentRecord>;
|
|
@@ -576,7 +550,7 @@ declare class SqliteStore implements DurableStore {
|
|
|
576
550
|
createRun(lease: OwnerLease, input: {
|
|
577
551
|
agentId: AgentId;
|
|
578
552
|
input: UserInput;
|
|
579
|
-
metadata?:
|
|
553
|
+
metadata?: JsonObject;
|
|
580
554
|
scope?: ScopeRef;
|
|
581
555
|
cwd?: string;
|
|
582
556
|
phasePayload?: JsonValue;
|
|
@@ -661,7 +635,7 @@ declare class SqliteStore implements DurableStore {
|
|
|
661
635
|
expectedRevision: number;
|
|
662
636
|
requestMessageId: MessageId;
|
|
663
637
|
calls: readonly ToolCallReservation[];
|
|
664
|
-
contentBlocks?: readonly
|
|
638
|
+
contentBlocks?: readonly StreamBlock[];
|
|
665
639
|
model?: _rowan_agent_models.ModelRef;
|
|
666
640
|
usage?: _rowan_agent_models.LlmTokenUsage;
|
|
667
641
|
}): Promise<ToolBatchCommit>;
|
|
@@ -687,7 +661,7 @@ declare class SqliteStore implements DurableStore {
|
|
|
687
661
|
execution: ExecutionToken;
|
|
688
662
|
expectedRevision: number;
|
|
689
663
|
toolCallId: ToolCallId;
|
|
690
|
-
result:
|
|
664
|
+
result: ToolResult;
|
|
691
665
|
state: "completed" | "failed" | "indeterminate";
|
|
692
666
|
reason?: string;
|
|
693
667
|
title?: string;
|
|
@@ -776,14 +750,14 @@ declare class InMemoryConfigProvider implements ConfigProvider {
|
|
|
776
750
|
private readonly operations;
|
|
777
751
|
put(input: {
|
|
778
752
|
agentId: AgentId;
|
|
779
|
-
agentMetadata?:
|
|
753
|
+
agentMetadata?: JsonObject;
|
|
780
754
|
config: AgentConfiguration | ConfigurationSnapshot;
|
|
781
755
|
operationId: string;
|
|
782
756
|
signal: AbortSignal;
|
|
783
757
|
}): Promise<ConfigPutResult>;
|
|
784
758
|
resolve(input: {
|
|
785
759
|
agentId: AgentId;
|
|
786
|
-
agentMetadata?:
|
|
760
|
+
agentMetadata?: JsonObject;
|
|
787
761
|
token: ConfigToken;
|
|
788
762
|
signal: AbortSignal;
|
|
789
763
|
}): Promise<ConfigResolution>;
|
|
@@ -970,4 +944,4 @@ type CoreToolContext = {
|
|
|
970
944
|
/** Adapt the established host-filesystem Core Tools to the durable Runtime Tool contract. */
|
|
971
945
|
declare function createRuntimeCoreTools(input?: CoreToolContext): Tool[];
|
|
972
946
|
|
|
973
|
-
export { AgentConfiguration, AgentDefinition, AgentRecord, AgentRuntime, AgentRuntimeOptions, type AnyRuntimeError, COMPACT_PHASE_ID, ConfigProvider, ConfigPutResult, ConfigResolution, ConfigToken, ConfigurationSnapshot, type CoreToolContext, DEFAULT_PHASE_ID, DurableStore,
|
|
947
|
+
export { AgentConfiguration, AgentDefinition, AgentRecord, AgentRuntime, AgentRuntimeOptions, type AnyRuntimeError, COMPACT_PHASE_ID, ConfigProvider, ConfigPutResult, ConfigResolution, ConfigToken, ConfigurationSnapshot, type CoreToolContext, DEFAULT_PHASE_ID, DurableStore, EntryPhaseSpec, ExecutionCheckpoint, ExecutionId, ExecutionToken, ExtensionHost, type FrontmatterResult, HistorySeed, HostApiExtension, InMemoryConfigProvider, InMemoryExtensionHost, InMemoryStore, InvocationCatalogEntry, InvocationSource, LoadInput, LoadResult, LoadedExtension, Outcome, OwnerLease, PhaseRegistry, ResourceKind, RetentionResult, RunClaim, RunRecord, RuntimeError, type RuntimeErrorCode, type RuntimeErrorDetails, STOP_PHASE_ID, Skill, SqliteStore, brandConfigToken, createCompactPhase, createCorePhases, createRuntimeCoreTools as createCoreTools, createDefaultPhase, createStopPhase, isRuntimeError, loadExtensionsFromPath as loadExtensions, loadPhase, loadPhases, loadSkill, loadSkills, parseFrontmatter };
|