@rowan-agent/agent 0.9.8 → 0.9.10
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 +150 -6
- package/dist/index.js +906 -236
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,12 @@ type Skill = {
|
|
|
21
21
|
baseDir: string;
|
|
22
22
|
/** Full body content of the SKILL.md (after frontmatter) */
|
|
23
23
|
content: string;
|
|
24
|
-
|
|
24
|
+
/** Do not automatically inject this Skill into the model Context. */
|
|
25
|
+
disableAutoInvocation?: boolean;
|
|
26
|
+
/** Do not expose this Skill to direct user invocation. */
|
|
27
|
+
disableImplicitInvocation?: boolean;
|
|
28
|
+
/** @deprecated Use disableAutoInvocation; kept only for old in-memory callers during cutover. */
|
|
29
|
+
disableModelInvocation?: boolean;
|
|
25
30
|
};
|
|
26
31
|
type Outcome$1 = {
|
|
27
32
|
id: string;
|
|
@@ -354,6 +359,16 @@ type MessageDelta = Readonly<{
|
|
|
354
359
|
offset: number;
|
|
355
360
|
text: string;
|
|
356
361
|
}>;
|
|
362
|
+
type ThinkingDelta = Readonly<{
|
|
363
|
+
kind: "thinking_delta";
|
|
364
|
+
durability: "transient";
|
|
365
|
+
runId: RunId;
|
|
366
|
+
executionId: ExecutionId;
|
|
367
|
+
messageId: MessageId;
|
|
368
|
+
blockIndex: number;
|
|
369
|
+
offset: number;
|
|
370
|
+
text: string;
|
|
371
|
+
}>;
|
|
357
372
|
type ToolProgress = Readonly<{
|
|
358
373
|
kind: "tool_progress";
|
|
359
374
|
durability: "transient";
|
|
@@ -362,7 +377,15 @@ type ToolProgress = Readonly<{
|
|
|
362
377
|
toolCallId: ToolCallId;
|
|
363
378
|
progress: JsonValue;
|
|
364
379
|
}>;
|
|
365
|
-
type
|
|
380
|
+
type PhaseStatusEvent = Readonly<{
|
|
381
|
+
kind: "phase_status";
|
|
382
|
+
durability: "transient";
|
|
383
|
+
runId: RunId;
|
|
384
|
+
executionId: ExecutionId;
|
|
385
|
+
phaseId: string;
|
|
386
|
+
status: PhaseStatus;
|
|
387
|
+
}>;
|
|
388
|
+
type RunEvent = DurableRunEvent | MessageDelta | ThinkingDelta | ToolProgress | PhaseStatusEvent;
|
|
366
389
|
|
|
367
390
|
interface BeforePhaseEvent {
|
|
368
391
|
type: "before_phase";
|
|
@@ -536,7 +559,10 @@ type PhaseContextSnapshot = {
|
|
|
536
559
|
type PhaseExecution = {
|
|
537
560
|
snapshot(): PhaseContextSnapshot;
|
|
538
561
|
restore(snapshot: PhaseContextSnapshot): void;
|
|
539
|
-
invokeModel(context: PhaseContext
|
|
562
|
+
invokeModel(context: PhaseContext, options?: {
|
|
563
|
+
output?: "reply" | "internal";
|
|
564
|
+
}): Promise<ModelInvokeOutput>;
|
|
565
|
+
reportStatus(status: PhaseStatus): Promise<void>;
|
|
540
566
|
executeTool(context: AgentContext, toolCall: ToolCall): Promise<ToolResult>;
|
|
541
567
|
executeTools(context: AgentContext, toolCalls: readonly ToolCall[]): Promise<readonly ToolResult[]>;
|
|
542
568
|
interaction: PhaseInteractionDriver;
|
|
@@ -851,9 +877,23 @@ type ExtensionDisposer = () => void | Promise<void>;
|
|
|
851
877
|
type ExtensionFactoryResult = void | ExtensionDisposer;
|
|
852
878
|
type ExtensionFactory = (api: ExtensionAPI) => ExtensionFactoryResult | Promise<ExtensionFactoryResult>;
|
|
853
879
|
|
|
880
|
+
type PhaseStatusState = "running" | "completed";
|
|
881
|
+
/** Normalized status event exposed to Runtime consumers. */
|
|
882
|
+
type PhaseStatus = Readonly<{
|
|
883
|
+
state: PhaseStatusState;
|
|
884
|
+
/** Stable consumer-facing status identifier, e.g. `compacting`. */
|
|
885
|
+
kind: string;
|
|
886
|
+
/** Optional human-readable detail for UI/status consumers. */
|
|
887
|
+
message?: string;
|
|
888
|
+
/** Structured status payload. */
|
|
889
|
+
payload?: unknown;
|
|
890
|
+
}>;
|
|
854
891
|
/** Unified phase output — model-driven routing is optional; programmatic phases may normalize omission to stop. */
|
|
855
892
|
type PhaseOutput = {
|
|
856
|
-
message
|
|
893
|
+
/** User-visible assistant message. */
|
|
894
|
+
message?: string;
|
|
895
|
+
/** Final status update for non-conversational consumers. */
|
|
896
|
+
status?: PhaseStatus;
|
|
857
897
|
/** Route to next phase, or "continue" to re-execute current phase, or "stop" to end. Undefined means no model route. */
|
|
858
898
|
route?: string;
|
|
859
899
|
/** Phase name that produced this output */
|
|
@@ -921,6 +961,8 @@ interface PhaseContext {
|
|
|
921
961
|
interface Phase {
|
|
922
962
|
/** Unique phase identity and display name. */
|
|
923
963
|
name: string;
|
|
964
|
+
/** Rowan-owned built-in Phase; built-ins are never filtered or disabled. */
|
|
965
|
+
core?: boolean;
|
|
924
966
|
/** Description */
|
|
925
967
|
description: string;
|
|
926
968
|
/** Restricted tools (undefined = all tools available) */
|
|
@@ -941,6 +983,10 @@ interface Phase {
|
|
|
941
983
|
content: string;
|
|
942
984
|
/** Model override for this phase (resolved from frontmatter) */
|
|
943
985
|
model?: ModelRef;
|
|
986
|
+
/** Do not automatically inject this Phase into the model route catalog/context. */
|
|
987
|
+
disableAutoInvocation?: boolean;
|
|
988
|
+
/** Do not expose this Phase to direct user invocation. */
|
|
989
|
+
disableImplicitInvocation?: boolean;
|
|
944
990
|
/** ExtensionAPI factory function (default export pattern) */
|
|
945
991
|
factory?: (api: ExtensionAPI) => Promise<void>;
|
|
946
992
|
/** Direct run function */
|
|
@@ -962,6 +1008,8 @@ type ToolContext = Pick<AgentContext, "skills"> & {
|
|
|
962
1008
|
type ToolExecutionMode = "sequential" | "parallel";
|
|
963
1009
|
type Tool$1<TArgs = unknown> = {
|
|
964
1010
|
name: string;
|
|
1011
|
+
/** Rowan-owned Core Tool; Core Tools bypass Phase filtering. */
|
|
1012
|
+
core?: boolean;
|
|
965
1013
|
description: string;
|
|
966
1014
|
parameters: Type.TSchema;
|
|
967
1015
|
/** One-line snippet shown in the system prompt tool list. */
|
|
@@ -992,7 +1040,10 @@ type AgentContext = {
|
|
|
992
1040
|
*/
|
|
993
1041
|
type CoreToolContext = {
|
|
994
1042
|
root?: string;
|
|
1043
|
+
/** Directory for complete Tool Result spill files. */
|
|
1044
|
+
archiveDir?: string;
|
|
995
1045
|
maxReadBytes?: number;
|
|
1046
|
+
maxReadLines?: number;
|
|
996
1047
|
bashTimeoutMs?: number;
|
|
997
1048
|
maxBashOutputBytes?: number;
|
|
998
1049
|
};
|
|
@@ -1361,6 +1412,28 @@ type UserInput = string | Readonly<{
|
|
|
1361
1412
|
metadata?: Metadata;
|
|
1362
1413
|
}>;
|
|
1363
1414
|
type HistorySeed = readonly Message[];
|
|
1415
|
+
type ContextStatus = Readonly<{
|
|
1416
|
+
tokens: number;
|
|
1417
|
+
contextWindow: number;
|
|
1418
|
+
percent: number;
|
|
1419
|
+
thresholdTokens: number;
|
|
1420
|
+
estimated: boolean;
|
|
1421
|
+
coveredThrough?: Readonly<{
|
|
1422
|
+
messageId: MessageId;
|
|
1423
|
+
sequence: number;
|
|
1424
|
+
}>;
|
|
1425
|
+
}>;
|
|
1426
|
+
type ContextCompactionRecord = Readonly<{
|
|
1427
|
+
id: string;
|
|
1428
|
+
agentId: AgentId;
|
|
1429
|
+
summary: string;
|
|
1430
|
+
coveredThrough?: Readonly<{
|
|
1431
|
+
messageId: MessageId;
|
|
1432
|
+
sequence: number;
|
|
1433
|
+
}>;
|
|
1434
|
+
instructions?: string;
|
|
1435
|
+
createdAt: string;
|
|
1436
|
+
}>;
|
|
1364
1437
|
type ToolInvocationContext = Readonly<{
|
|
1365
1438
|
agentId: AgentId;
|
|
1366
1439
|
runId: RunId;
|
|
@@ -1373,6 +1446,8 @@ type ToolInvocationContext = Readonly<{
|
|
|
1373
1446
|
}>;
|
|
1374
1447
|
type Tool = Readonly<{
|
|
1375
1448
|
name: string;
|
|
1449
|
+
/** Rowan-owned Core Tool; Core Tools bypass Definition/Phase filtering. */
|
|
1450
|
+
core?: boolean;
|
|
1376
1451
|
description: string;
|
|
1377
1452
|
parameters: Type.TSchema;
|
|
1378
1453
|
execute(args: JsonValue, context: ToolInvocationContext, signal: AbortSignal): Promise<ToolExecutionResult$1>;
|
|
@@ -1413,6 +1488,16 @@ type AgentResources = Readonly<{
|
|
|
1413
1488
|
resourceRefs?: readonly ResourceRef[];
|
|
1414
1489
|
resourceRevisions?: Readonly<Record<ResourceKind, readonly string[]>>;
|
|
1415
1490
|
}>;
|
|
1491
|
+
type InvocationSource = "auto" | "implicit" | "external";
|
|
1492
|
+
type InvocationCatalogEntry = Readonly<{
|
|
1493
|
+
kind: "phase" | "skill";
|
|
1494
|
+
name: string;
|
|
1495
|
+
description: string;
|
|
1496
|
+
core?: boolean;
|
|
1497
|
+
disableAutoInvocation: boolean;
|
|
1498
|
+
disableImplicitInvocation: boolean;
|
|
1499
|
+
filePath: string;
|
|
1500
|
+
}>;
|
|
1416
1501
|
type AgentConfig = Readonly<{
|
|
1417
1502
|
identity: string;
|
|
1418
1503
|
definition: AgentDefinition;
|
|
@@ -1666,6 +1751,9 @@ interface OwnedStore {
|
|
|
1666
1751
|
now?: string;
|
|
1667
1752
|
retentionMs?: number;
|
|
1668
1753
|
}): Promise<RetentionResult>;
|
|
1754
|
+
contextStatus(agentId: AgentId, contextWindow: number): Promise<ContextStatus>;
|
|
1755
|
+
contextMessages(agentId: AgentId, recentTokenBudget?: number): Promise<readonly Message[]>;
|
|
1756
|
+
commitContextCompaction(record: ContextCompactionRecord): Promise<ContextCompactionRecord>;
|
|
1669
1757
|
createRun(input: {
|
|
1670
1758
|
agentId: AgentId;
|
|
1671
1759
|
input: UserInput;
|
|
@@ -1846,6 +1934,16 @@ interface AgentRuntime$1 {
|
|
|
1846
1934
|
metadata?: Metadata;
|
|
1847
1935
|
}): Promise<AgentRun>;
|
|
1848
1936
|
run(runId: RunId): AgentRun;
|
|
1937
|
+
contextStatus(agentId: AgentId, options?: {
|
|
1938
|
+
contextWindow?: number;
|
|
1939
|
+
}): Promise<ContextStatus>;
|
|
1940
|
+
compactContext(agentId: AgentId, options?: {
|
|
1941
|
+
instructions?: string;
|
|
1942
|
+
idempotencyKey?: string;
|
|
1943
|
+
}): Promise<AgentRun>;
|
|
1944
|
+
listInvocations(agentId: AgentId, options: {
|
|
1945
|
+
source: InvocationSource;
|
|
1946
|
+
}): Promise<readonly InvocationCatalogEntry[]>;
|
|
1849
1947
|
history(agentId: AgentId): Promise<readonly Message[]>;
|
|
1850
1948
|
listAgents(input?: {
|
|
1851
1949
|
after?: AgentListCursor;
|
|
@@ -1881,6 +1979,7 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
1881
1979
|
private readonly executionDone;
|
|
1882
1980
|
private readonly cancellationRequested;
|
|
1883
1981
|
private readonly cancellationReasons;
|
|
1982
|
+
private readonly autoCompactionRuns;
|
|
1884
1983
|
private readonly consumers;
|
|
1885
1984
|
private readonly transientEvents;
|
|
1886
1985
|
private readonly resources;
|
|
@@ -1926,6 +2025,13 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
1926
2025
|
retentionFloor: EventCursor;
|
|
1927
2026
|
skipped?: "active_consumers" | "no_eligible_events";
|
|
1928
2027
|
}>>;
|
|
2028
|
+
contextStatus(agentId: AgentId, options?: {
|
|
2029
|
+
contextWindow?: number;
|
|
2030
|
+
}): Promise<ContextStatus>;
|
|
2031
|
+
compactContext(agentId: AgentId, options?: {
|
|
2032
|
+
instructions?: string;
|
|
2033
|
+
idempotencyKey?: string;
|
|
2034
|
+
}): Promise<AgentRun>;
|
|
1929
2035
|
start(agentId: AgentId, input: UserInput, options: {
|
|
1930
2036
|
idempotencyKey: string;
|
|
1931
2037
|
metadata?: Metadata;
|
|
@@ -1941,6 +2047,9 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
1941
2047
|
after?: RunListCursor;
|
|
1942
2048
|
limit?: number;
|
|
1943
2049
|
}): Promise<Page<RunSummary, RunListCursor>>;
|
|
2050
|
+
listInvocations(agentId: AgentId, options: {
|
|
2051
|
+
source: InvocationSource;
|
|
2052
|
+
}): Promise<readonly InvocationCatalogEntry[]>;
|
|
1944
2053
|
consume(input: {
|
|
1945
2054
|
consumerId: string;
|
|
1946
2055
|
signal: AbortSignal;
|
|
@@ -1963,10 +2072,12 @@ declare class AgentRuntime implements AgentRuntime$1 {
|
|
|
1963
2072
|
private pump;
|
|
1964
2073
|
private execute;
|
|
1965
2074
|
private failQueued;
|
|
2075
|
+
private resolveContextWindow;
|
|
1966
2076
|
private executeTool;
|
|
1967
2077
|
private executeToolBatch;
|
|
1968
2078
|
private executeReservedTool;
|
|
1969
2079
|
private requireAgent;
|
|
2080
|
+
private archiveDirFor;
|
|
1970
2081
|
private runConsumer;
|
|
1971
2082
|
observe(runId: RunId, options?: {
|
|
1972
2083
|
after?: EventCursor;
|
|
@@ -1999,6 +2110,7 @@ type InMemoryStoreState = Readonly<{
|
|
|
1999
2110
|
nextAgentSequence: readonly (readonly [AgentId, number])[];
|
|
2000
2111
|
nextReadySequence: readonly (readonly [AgentId, number])[];
|
|
2001
2112
|
eventSequence: number;
|
|
2113
|
+
contextCompactions?: readonly (readonly [AgentId, ContextCompactionRecord])[];
|
|
2002
2114
|
}>;
|
|
2003
2115
|
declare class InMemoryStore implements DurableStore {
|
|
2004
2116
|
private readonly incarnation;
|
|
@@ -2017,6 +2129,7 @@ declare class InMemoryStore implements DurableStore {
|
|
|
2017
2129
|
private ownerEpoch;
|
|
2018
2130
|
private eventSequence;
|
|
2019
2131
|
private retentionFloor;
|
|
2132
|
+
private readonly contextCompactions;
|
|
2020
2133
|
constructor(options?: {
|
|
2021
2134
|
incarnation?: string;
|
|
2022
2135
|
});
|
|
@@ -2183,6 +2296,9 @@ declare class InMemoryStore implements DurableStore {
|
|
|
2183
2296
|
private nextMessageSequence;
|
|
2184
2297
|
private messagesForRun;
|
|
2185
2298
|
history(lease: OwnerLease, agentId: AgentId): readonly Message[];
|
|
2299
|
+
contextStatus(lease: OwnerLease, agentId: AgentId, contextWindow: number): ContextStatus;
|
|
2300
|
+
contextMessages(lease: OwnerLease, agentId: AgentId, recentTokenBudget?: number): readonly Message[];
|
|
2301
|
+
commitContextCompaction(lease: OwnerLease, record: ContextCompactionRecord): ContextCompactionRecord;
|
|
2186
2302
|
private activeHistory;
|
|
2187
2303
|
private appendMessage;
|
|
2188
2304
|
private appendTransition;
|
|
@@ -2194,6 +2310,10 @@ declare class InMemoryStore implements DurableStore {
|
|
|
2194
2310
|
|
|
2195
2311
|
declare class SqliteStore implements DurableStore {
|
|
2196
2312
|
private readonly database;
|
|
2313
|
+
private readonly archiveRoot;
|
|
2314
|
+
private readonly mirroredEventIds;
|
|
2315
|
+
private readonly mirroredCompactionIds;
|
|
2316
|
+
private mirroredAgents;
|
|
2197
2317
|
private closed;
|
|
2198
2318
|
private configured;
|
|
2199
2319
|
constructor(filename?: string);
|
|
@@ -2202,6 +2322,8 @@ declare class SqliteStore implements DurableStore {
|
|
|
2202
2322
|
leaseMs: number;
|
|
2203
2323
|
}): Promise<OwnedStore>;
|
|
2204
2324
|
close(): void;
|
|
2325
|
+
/** Filesystem location owned by this Store for one Agent's readable archive. */
|
|
2326
|
+
contextArchiveDir(agentId: AgentId): string;
|
|
2205
2327
|
reserveAgent(lease: OwnerLease, input: {
|
|
2206
2328
|
idempotencyKey: string;
|
|
2207
2329
|
metadata?: Metadata;
|
|
@@ -2224,6 +2346,9 @@ declare class SqliteStore implements DurableStore {
|
|
|
2224
2346
|
operationId: string;
|
|
2225
2347
|
effectDigestConfirmation?: string;
|
|
2226
2348
|
}): Promise<MessageRevisionResult>;
|
|
2349
|
+
contextStatus(lease: OwnerLease, agentId: AgentId, contextWindow: number): Promise<ContextStatus>;
|
|
2350
|
+
contextMessages(lease: OwnerLease, agentId: AgentId, recentTokenBudget?: number): Promise<readonly Message[]>;
|
|
2351
|
+
commitContextCompaction(lease: OwnerLease, record: ContextCompactionRecord): Promise<ContextCompactionRecord>;
|
|
2227
2352
|
createRun(lease: OwnerLease, input: {
|
|
2228
2353
|
agentId: AgentId;
|
|
2229
2354
|
input: UserInput;
|
|
@@ -2350,6 +2475,8 @@ declare class SqliteStore implements DurableStore {
|
|
|
2350
2475
|
private readState;
|
|
2351
2476
|
private writeState;
|
|
2352
2477
|
private persistState;
|
|
2478
|
+
/** Append the semantic durable event mirror and remove deleted Agent sidecars. */
|
|
2479
|
+
private mirrorState;
|
|
2353
2480
|
private requireMatchingOwner;
|
|
2354
2481
|
private immediateTransaction;
|
|
2355
2482
|
private readTransaction;
|
|
@@ -2376,7 +2503,7 @@ declare class InMemoryConfigProvider implements ConfigProvider {
|
|
|
2376
2503
|
}
|
|
2377
2504
|
declare function brandConfigToken(raw: unknown): ConfigToken;
|
|
2378
2505
|
|
|
2379
|
-
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";
|
|
2506
|
+
type RuntimeErrorCode = "invalid_argument" | "runtime_closed" | "runtime_already_owned" | "runtime_ownership_lost" | "agent_not_found" | "run_not_found" | "run_state_conflict" | "context_busy" | "message_history_compacted" | "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";
|
|
2380
2507
|
type RuntimeErrorDetails = {
|
|
2381
2508
|
invalid_argument: Readonly<{
|
|
2382
2509
|
argument: string;
|
|
@@ -2404,6 +2531,15 @@ type RuntimeErrorDetails = {
|
|
|
2404
2531
|
expected: readonly RunState[];
|
|
2405
2532
|
actual: RunState;
|
|
2406
2533
|
}>;
|
|
2534
|
+
context_busy: Readonly<{
|
|
2535
|
+
agentId: AgentId;
|
|
2536
|
+
runId?: RunId;
|
|
2537
|
+
actual: RunState;
|
|
2538
|
+
}>;
|
|
2539
|
+
message_history_compacted: Readonly<{
|
|
2540
|
+
agentId: AgentId;
|
|
2541
|
+
messageId: MessageId;
|
|
2542
|
+
}>;
|
|
2407
2543
|
message_revision_conflict: Readonly<{
|
|
2408
2544
|
agentId: AgentId;
|
|
2409
2545
|
messageId: MessageId;
|
|
@@ -2490,6 +2626,14 @@ declare function loadPhase(targetPath: string): Promise<Phase>;
|
|
|
2490
2626
|
*/
|
|
2491
2627
|
declare function loadPhases(targetPath: string): Promise<PhaseRegistry>;
|
|
2492
2628
|
|
|
2629
|
+
declare const DEFAULT_PHASE_ID = "default";
|
|
2630
|
+
declare const STOP_PHASE_ID = "stop";
|
|
2631
|
+
declare const COMPACT_PHASE_ID = "compact";
|
|
2632
|
+
declare function createDefaultPhase(): Phase;
|
|
2633
|
+
declare function createStopPhase(): Phase;
|
|
2634
|
+
declare function createCompactPhase(): Phase;
|
|
2635
|
+
declare function createCorePhases(): Phase[];
|
|
2636
|
+
|
|
2493
2637
|
/**
|
|
2494
2638
|
* Extension loader — discovers and loads extensions from the filesystem.
|
|
2495
2639
|
*
|
|
@@ -2523,4 +2667,4 @@ declare function parseFrontmatter<T = Record<string, unknown>>(raw: string): Fro
|
|
|
2523
2667
|
|
|
2524
2668
|
declare function createCoreTools(input?: CoreToolContext): Tool[];
|
|
2525
2669
|
|
|
2526
|
-
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 PhaseExecution, type PhaseExecutionIdentity, type PhaseInteraction, PhaseInteractionBoundary, PhaseInteractionCancelledError, type PhaseInteractionDriver, type PhaseInteractionKind, type PhaseInteractionState, type PhaseInteractionStatus, 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$1 as 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 };
|
|
2670
|
+
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, COMPACT_PHASE_ID, type ConfigProvider, type ConfigPutResult, type ConfigResolution, type ConfigToken, type ConfigurationSnapshot, type ContextCandidate, type ContextCompactionRecord, type ContextStatus, type CoreToolContext, DEFAULT_PHASE_ID, 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 InvocationCatalogEntry, type InvocationSource, 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 PhaseExecution, type PhaseExecutionIdentity, type PhaseInteraction, PhaseInteractionBoundary, PhaseInteractionCancelledError, type PhaseInteractionDriver, type PhaseInteractionKind, type PhaseInteractionState, type PhaseInteractionStatus, type PhaseInvocation, type PhaseOutput, type PhaseRegistry, type PhaseRegistrySelection, type PhaseState, type PhaseStatus, type PhaseStatusState, 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, STOP_PHASE_ID, type Skill, SqliteStore, type TextContent, type ThinkingContent, type ThinkingDelta, type Tool, type ToolCallId, type ToolCallSnapshot, type ToolCallState, type ToolContribution, type ToolDefinition, type ToolExecutionResult$1 as ToolExecutionResult, type ToolInvocationContext, type ToolMessage, type ToolMessageContent, type ToolProgress, type ToolResultContent, type ToolStateChanged, type ToolUseContent, type UserContent, type UserInput, type UserMessage, brandConfigToken, createCompactPhase, createCorePhases, createCoreTools, createDefaultPhase, createStopPhase, isRuntimeError, loadExtensionsFromPath as loadExtensions, loadPhase, loadPhases, loadSkill, loadSkills, materializeConfigurationSnapshot, parseAgentDefinition, parseFrontmatter, resolveConfigurationSnapshot };
|