@ash-cloud/ash-ai 0.1.16 → 0.1.17
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.cjs +644 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +211 -6
- package/dist/index.d.ts +211 -6
- package/dist/index.js +644 -23
- package/dist/index.js.map +1 -1
- package/dist/playground.js +689 -684
- package/dist/{schema-DSLyNeoS.d.cts → schema-dr_7pxIB.d.cts} +140 -2
- package/dist/{schema-DSLyNeoS.d.ts → schema-dr_7pxIB.d.ts} +140 -2
- package/dist/schema.cjs +25 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +24 -2
- package/dist/schema.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
2
3
|
import * as fs from 'fs/promises';
|
|
3
4
|
import * as hono_types from 'hono/types';
|
|
4
5
|
import * as hono from 'hono';
|
|
@@ -9,7 +10,7 @@ import * as _hono_node_server from '@hono/node-server';
|
|
|
9
10
|
export { serve } from '@hono/node-server';
|
|
10
11
|
import * as drizzle_orm_postgres_js from 'drizzle-orm/postgres-js';
|
|
11
12
|
import postgres from 'postgres';
|
|
12
|
-
export { A as AttachmentRow, M as MessageRow, b as NewAttachmentRow, a as NewMessageRow, c as NewQueueItemRow, e as NewSessionEventRow, N as NewSessionRow, Q as QueueItemRow, d as SessionEventRow, S as SessionRow, s as schema } from './schema-
|
|
13
|
+
export { A as AttachmentRow, M as MessageRow, b as NewAttachmentRow, a as NewMessageRow, c as NewQueueItemRow, e as NewSessionEventRow, N as NewSessionRow, g as NewStreamEventRow, Q as QueueItemRow, d as SessionEventRow, S as SessionRow, f as StreamEventRow, s as schema } from './schema-dr_7pxIB.js';
|
|
13
14
|
import { Writable } from 'stream';
|
|
14
15
|
import 'drizzle-orm';
|
|
15
16
|
import 'drizzle-orm/pg-core';
|
|
@@ -1426,6 +1427,36 @@ interface ListSessionEventsOptions extends PaginationOptions {
|
|
|
1426
1427
|
/** Filter events involving this file path (matches file events and Read/Write/Edit tool calls) */
|
|
1427
1428
|
filePath?: string;
|
|
1428
1429
|
}
|
|
1430
|
+
/**
|
|
1431
|
+
* A stream event persisted to storage for SSE relay.
|
|
1432
|
+
* Events are written during agent execution and read by the relay
|
|
1433
|
+
* to deliver SSE to clients, enabling reliable reconnection.
|
|
1434
|
+
*/
|
|
1435
|
+
interface StoredStreamEvent {
|
|
1436
|
+
/** Unique identifier */
|
|
1437
|
+
id: string;
|
|
1438
|
+
/** Session this event belongs to */
|
|
1439
|
+
sessionId: SessionId;
|
|
1440
|
+
/** Monotonically increasing sequence number per session, used as cursor for reconnection */
|
|
1441
|
+
sequence: number;
|
|
1442
|
+
/** The StreamEvent.type (e.g., 'text_delta', 'tool_use', 'session_end') */
|
|
1443
|
+
eventType: string;
|
|
1444
|
+
/** Full serialized StreamEvent payload */
|
|
1445
|
+
payload: StreamEvent;
|
|
1446
|
+
/** Number of events batched (1 for non-batched, N for aggregated text deltas) */
|
|
1447
|
+
batchCount: number;
|
|
1448
|
+
/** When this event was stored */
|
|
1449
|
+
createdAt: Date;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Options for reading stream events from storage
|
|
1453
|
+
*/
|
|
1454
|
+
interface ReadStreamEventsOptions {
|
|
1455
|
+
/** Cursor: return events with sequence > afterSequence */
|
|
1456
|
+
afterSequence?: number;
|
|
1457
|
+
/** Maximum number of events to return */
|
|
1458
|
+
limit?: number;
|
|
1459
|
+
}
|
|
1429
1460
|
|
|
1430
1461
|
/**
|
|
1431
1462
|
* Base Error Types for Agent SDK Harness
|
|
@@ -1712,6 +1743,43 @@ interface EventStorage {
|
|
|
1712
1743
|
*/
|
|
1713
1744
|
getNextEventSequence(sessionId: SessionId): Promise<number>;
|
|
1714
1745
|
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Storage interface for stream events used by the SSE relay system.
|
|
1748
|
+
* Events are written during agent execution and read by the relay
|
|
1749
|
+
* to deliver SSE to clients, enabling reliable reconnection.
|
|
1750
|
+
*/
|
|
1751
|
+
interface StreamEventStorage {
|
|
1752
|
+
initialize(): Promise<void>;
|
|
1753
|
+
close(): Promise<void>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Append one or more events to a session's stream.
|
|
1756
|
+
* Events are assigned monotonically increasing sequence numbers.
|
|
1757
|
+
*/
|
|
1758
|
+
appendEvents(sessionId: SessionId, events: Array<{
|
|
1759
|
+
eventType: string;
|
|
1760
|
+
payload: StreamEvent;
|
|
1761
|
+
batchCount?: number;
|
|
1762
|
+
}>): Promise<StoredStreamEvent[]>;
|
|
1763
|
+
/**
|
|
1764
|
+
* Read events from a session's stream, optionally starting after a given sequence.
|
|
1765
|
+
* Results are ordered by sequence number ascending.
|
|
1766
|
+
*/
|
|
1767
|
+
readEvents(sessionId: SessionId, options?: ReadStreamEventsOptions): Promise<StoredStreamEvent[]>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Get the latest sequence number for a session (0 if no events).
|
|
1770
|
+
*/
|
|
1771
|
+
getLatestSequence(sessionId: SessionId): Promise<number>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Delete all stream events for a session (cleanup on session deletion).
|
|
1774
|
+
*/
|
|
1775
|
+
deleteSessionEvents(sessionId: SessionId): Promise<void>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Clean up old stream events across all sessions.
|
|
1778
|
+
* @param maxAgeMs - Delete events older than this many milliseconds
|
|
1779
|
+
* @returns Number of events deleted
|
|
1780
|
+
*/
|
|
1781
|
+
cleanupOldEvents(maxAgeMs: number): Promise<number>;
|
|
1782
|
+
}
|
|
1715
1783
|
|
|
1716
1784
|
/**
|
|
1717
1785
|
* Credential Management
|
|
@@ -2481,6 +2549,13 @@ interface AgentHarnessConfig extends AgentConfig$1 {
|
|
|
2481
2549
|
* Only used if customExecutor is not provided.
|
|
2482
2550
|
*/
|
|
2483
2551
|
backend?: AgentBackend;
|
|
2552
|
+
/**
|
|
2553
|
+
* Optional stream event storage for SSE relay.
|
|
2554
|
+
* When configured, events from send() are written to storage AND yielded to the consumer.
|
|
2555
|
+
* This enables the relay pattern: agent writes to storage, relay reads from storage,
|
|
2556
|
+
* allowing reliable client reconnection via GET /sessions/:id/stream?after=N.
|
|
2557
|
+
*/
|
|
2558
|
+
streamEventStorage?: StreamEventStorage;
|
|
2484
2559
|
}
|
|
2485
2560
|
/**
|
|
2486
2561
|
* Result of stopping a session execution
|
|
@@ -2557,6 +2632,8 @@ declare class AgentHarness {
|
|
|
2557
2632
|
private sessionSkillDirs;
|
|
2558
2633
|
/** Tracks active executions by session ID for stop/interrupt capability */
|
|
2559
2634
|
private activeExecutions;
|
|
2635
|
+
/** EventEmitters for same-process SSE relay fast-path, keyed by session ID */
|
|
2636
|
+
private sessionEmitters;
|
|
2560
2637
|
constructor(config: AgentHarnessConfig);
|
|
2561
2638
|
/**
|
|
2562
2639
|
* Initialize the agent harness and storage
|
|
@@ -2610,6 +2687,16 @@ declare class AgentHarness {
|
|
|
2610
2687
|
* Get the session manager for advanced operations
|
|
2611
2688
|
*/
|
|
2612
2689
|
getSessionManager(): SessionManager;
|
|
2690
|
+
/**
|
|
2691
|
+
* Get the stream event storage (if configured)
|
|
2692
|
+
*/
|
|
2693
|
+
getStreamEventStorage(): StreamEventStorage | undefined;
|
|
2694
|
+
/**
|
|
2695
|
+
* Get the EventEmitter for a session's stream events.
|
|
2696
|
+
* Used by the relay endpoint for same-process fast-path.
|
|
2697
|
+
* Returns undefined if no active execution or no streamEventStorage configured.
|
|
2698
|
+
*/
|
|
2699
|
+
getSessionEmitter(sessionId: SessionId): EventEmitter | undefined;
|
|
2613
2700
|
private ensureInitialized;
|
|
2614
2701
|
private createActiveSession;
|
|
2615
2702
|
/**
|
|
@@ -2777,6 +2864,26 @@ declare class MemoryQueueStorage implements QueueStorage {
|
|
|
2777
2864
|
clear(): void;
|
|
2778
2865
|
}
|
|
2779
2866
|
|
|
2867
|
+
/**
|
|
2868
|
+
* In-memory implementation of StreamEventStorage for development and testing.
|
|
2869
|
+
* Data is lost when the process exits.
|
|
2870
|
+
*/
|
|
2871
|
+
declare class MemoryStreamEventStorage implements StreamEventStorage {
|
|
2872
|
+
private events;
|
|
2873
|
+
private nextSequence;
|
|
2874
|
+
initialize(): Promise<void>;
|
|
2875
|
+
close(): Promise<void>;
|
|
2876
|
+
appendEvents(sessionId: SessionId, events: Array<{
|
|
2877
|
+
eventType: string;
|
|
2878
|
+
payload: StreamEvent;
|
|
2879
|
+
batchCount?: number;
|
|
2880
|
+
}>): Promise<StoredStreamEvent[]>;
|
|
2881
|
+
readEvents(sessionId: SessionId, options?: ReadStreamEventsOptions): Promise<StoredStreamEvent[]>;
|
|
2882
|
+
getLatestSequence(sessionId: SessionId): Promise<number>;
|
|
2883
|
+
deleteSessionEvents(sessionId: SessionId): Promise<void>;
|
|
2884
|
+
cleanupOldEvents(maxAgeMs: number): Promise<number>;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2780
2887
|
/**
|
|
2781
2888
|
* Queue Processor
|
|
2782
2889
|
*
|
|
@@ -4811,6 +4918,22 @@ interface WebhookConfig {
|
|
|
4811
4918
|
*/
|
|
4812
4919
|
metadata?: Record<string, unknown>;
|
|
4813
4920
|
}
|
|
4921
|
+
/**
|
|
4922
|
+
* File sync event shape sent in webhook payloads.
|
|
4923
|
+
* Mirrors FileSyncEvent but replaces raw Buffer content with a pre-signed S3 download URL.
|
|
4924
|
+
*/
|
|
4925
|
+
interface WebhookFileSyncEvent {
|
|
4926
|
+
operation: FileSyncEvent['operation'];
|
|
4927
|
+
source: FileSyncEvent['source'];
|
|
4928
|
+
canonicalPath: string;
|
|
4929
|
+
basePath: string;
|
|
4930
|
+
sandboxPath: string;
|
|
4931
|
+
fileSize?: number;
|
|
4932
|
+
success: boolean;
|
|
4933
|
+
error?: string;
|
|
4934
|
+
/** Pre-signed S3 download URL (replaces raw previousContent/newContent) */
|
|
4935
|
+
downloadUrl?: string;
|
|
4936
|
+
}
|
|
4814
4937
|
/**
|
|
4815
4938
|
* Payload sent to webhook endpoints
|
|
4816
4939
|
*/
|
|
@@ -4824,7 +4947,7 @@ interface WebhookPayload {
|
|
|
4824
4947
|
/** Custom metadata from webhook config */
|
|
4825
4948
|
metadata?: Record<string, unknown>;
|
|
4826
4949
|
/** File sync event data (for file_sync events) */
|
|
4827
|
-
fileSyncEvent?:
|
|
4950
|
+
fileSyncEvent?: WebhookFileSyncEvent;
|
|
4828
4951
|
/** File change event data (for file_change events from watchers) */
|
|
4829
4952
|
fileChangeEvent?: FileChangeEvent;
|
|
4830
4953
|
}
|
|
@@ -5092,7 +5215,9 @@ declare class SandboxFileSync {
|
|
|
5092
5215
|
*/
|
|
5093
5216
|
private sendWebhook;
|
|
5094
5217
|
/**
|
|
5095
|
-
* Send a file sync event webhook
|
|
5218
|
+
* Send a file sync event webhook.
|
|
5219
|
+
* Strips raw Buffer content (previousContent/newContent) and replaces with a
|
|
5220
|
+
* pre-signed S3 download URL when the file exists in storage.
|
|
5096
5221
|
*/
|
|
5097
5222
|
private sendFileSyncWebhook;
|
|
5098
5223
|
/**
|
|
@@ -6356,6 +6481,66 @@ declare function createSandboxLogger(options?: {
|
|
|
6356
6481
|
consoleEnabled?: boolean;
|
|
6357
6482
|
}): SandboxLogger;
|
|
6358
6483
|
|
|
6484
|
+
interface StreamEventWriterOptions {
|
|
6485
|
+
storage: StreamEventStorage;
|
|
6486
|
+
sessionId: SessionId;
|
|
6487
|
+
/** Optional EventEmitter for same-process fast-path (EC2 optimization) */
|
|
6488
|
+
emitter?: EventEmitter;
|
|
6489
|
+
/** Flush interval for text_delta batching in ms (default: 100) */
|
|
6490
|
+
flushIntervalMs?: number;
|
|
6491
|
+
/** Max chars before flushing text_delta batch (default: 500) */
|
|
6492
|
+
maxBatchChars?: number;
|
|
6493
|
+
}
|
|
6494
|
+
declare class StreamEventWriter {
|
|
6495
|
+
private storage;
|
|
6496
|
+
private sessionId;
|
|
6497
|
+
private emitter?;
|
|
6498
|
+
private flushIntervalMs;
|
|
6499
|
+
private maxBatchChars;
|
|
6500
|
+
private pendingDelta;
|
|
6501
|
+
private pendingDeltaCount;
|
|
6502
|
+
private flushTimer;
|
|
6503
|
+
private closed;
|
|
6504
|
+
constructor(options: StreamEventWriterOptions);
|
|
6505
|
+
/**
|
|
6506
|
+
* Write a stream event. Text deltas are batched; all other events are written immediately.
|
|
6507
|
+
*/
|
|
6508
|
+
write(event: StreamEvent): Promise<void>;
|
|
6509
|
+
/**
|
|
6510
|
+
* Flush any pending text_delta events to storage as a single batched event.
|
|
6511
|
+
*/
|
|
6512
|
+
flush(): Promise<void>;
|
|
6513
|
+
/**
|
|
6514
|
+
* Close the writer, flushing any remaining events.
|
|
6515
|
+
*/
|
|
6516
|
+
close(): Promise<void>;
|
|
6517
|
+
private writeToStorage;
|
|
6518
|
+
}
|
|
6519
|
+
|
|
6520
|
+
interface StreamEventRelayOptions {
|
|
6521
|
+
storage: StreamEventStorage;
|
|
6522
|
+
sessionId: SessionId;
|
|
6523
|
+
/** Start replaying after this sequence number (default: 0, meaning from beginning) */
|
|
6524
|
+
afterSequence?: number;
|
|
6525
|
+
/** Optional EventEmitter for same-process fast-path */
|
|
6526
|
+
emitter?: EventEmitter;
|
|
6527
|
+
/** Polling interval when no emitter is available (default: 100ms) */
|
|
6528
|
+
pollIntervalMs?: number;
|
|
6529
|
+
/** Heartbeat interval in ms (default: 15000) */
|
|
6530
|
+
heartbeatIntervalMs?: number;
|
|
6531
|
+
/** AbortSignal for cancellation */
|
|
6532
|
+
signal?: AbortSignal;
|
|
6533
|
+
}
|
|
6534
|
+
/**
|
|
6535
|
+
* Subscribe to a session's stream events.
|
|
6536
|
+
* Returns an AsyncGenerator that yields StreamEvents in order.
|
|
6537
|
+
*
|
|
6538
|
+
* Phase 1 (catch-up): Reads all events from storage after `afterSequence`.
|
|
6539
|
+
* Phase 2 (real-time): Listens to EventEmitter if available, else polls storage.
|
|
6540
|
+
* Terminates on terminal events or abort signal.
|
|
6541
|
+
*/
|
|
6542
|
+
declare function streamEventRelay(options: StreamEventRelayOptions): AsyncGenerator<StreamEvent, void, unknown>;
|
|
6543
|
+
|
|
6359
6544
|
/**
|
|
6360
6545
|
* Lifecycle hooks for session events
|
|
6361
6546
|
*/
|
|
@@ -9923,7 +10108,7 @@ interface PostgresStorageConfig {
|
|
|
9923
10108
|
/**
|
|
9924
10109
|
* PostgreSQL storage implementation using Drizzle ORM
|
|
9925
10110
|
*/
|
|
9926
|
-
declare class PostgresStorage implements SessionStorage, TransactionalStorage, AgentStorage {
|
|
10111
|
+
declare class PostgresStorage implements SessionStorage, TransactionalStorage, AgentStorage, StreamEventStorage {
|
|
9927
10112
|
private client;
|
|
9928
10113
|
private db;
|
|
9929
10114
|
private initialized;
|
|
@@ -9979,6 +10164,16 @@ declare class PostgresStorage implements SessionStorage, TransactionalStorage, A
|
|
|
9979
10164
|
deleteAgent(agentId: AgentId): Promise<boolean>;
|
|
9980
10165
|
listAgents(options?: ListAgentsOptions): Promise<PaginatedResult<StoredAgent>>;
|
|
9981
10166
|
getActiveAgents(): Promise<StoredAgent[]>;
|
|
10167
|
+
appendEvents(sessionId: SessionId, events: Array<{
|
|
10168
|
+
eventType: string;
|
|
10169
|
+
payload: StreamEvent;
|
|
10170
|
+
batchCount?: number;
|
|
10171
|
+
}>): Promise<StoredStreamEvent[]>;
|
|
10172
|
+
readEvents(sessionId: SessionId, options?: ReadStreamEventsOptions): Promise<StoredStreamEvent[]>;
|
|
10173
|
+
getLatestSequence(sessionId: SessionId): Promise<number>;
|
|
10174
|
+
deleteSessionEvents(sessionId: SessionId): Promise<void>;
|
|
10175
|
+
cleanupOldEvents(maxAgeMs: number): Promise<number>;
|
|
10176
|
+
private rowToStoredStreamEvent;
|
|
9982
10177
|
/**
|
|
9983
10178
|
* Get the underlying Drizzle database instance
|
|
9984
10179
|
* Useful for extensions that need direct database access
|
|
@@ -10065,7 +10260,7 @@ interface SupabaseStorageConfig {
|
|
|
10065
10260
|
* Supabase storage implementation using Supabase JS client.
|
|
10066
10261
|
* Uses PostgREST API which avoids direct database connection issues.
|
|
10067
10262
|
*/
|
|
10068
|
-
declare class SupabaseStorage implements SessionStorage, TransactionalStorage, AgentStorage, EventStorage {
|
|
10263
|
+
declare class SupabaseStorage implements SessionStorage, TransactionalStorage, AgentStorage, EventStorage, StreamEventStorage {
|
|
10069
10264
|
private client;
|
|
10070
10265
|
private initialized;
|
|
10071
10266
|
private tenantId;
|
|
@@ -10109,6 +10304,16 @@ declare class SupabaseStorage implements SessionStorage, TransactionalStorage, A
|
|
|
10109
10304
|
getSessionEvents(sessionId: SessionId, options?: ListSessionEventsOptions): Promise<PaginatedResult<SessionEvent>>;
|
|
10110
10305
|
deleteSessionEvents(sessionId: SessionId): Promise<void>;
|
|
10111
10306
|
getNextEventSequence(sessionId: SessionId): Promise<number>;
|
|
10307
|
+
appendEvents(sessionId: SessionId, events: Array<{
|
|
10308
|
+
eventType: string;
|
|
10309
|
+
payload: StreamEvent;
|
|
10310
|
+
batchCount?: number;
|
|
10311
|
+
}>): Promise<StoredStreamEvent[]>;
|
|
10312
|
+
readEvents(sessionId: SessionId, options?: ReadStreamEventsOptions): Promise<StoredStreamEvent[]>;
|
|
10313
|
+
getLatestSequence(sessionId: SessionId): Promise<number>;
|
|
10314
|
+
deleteStreamEvents(sessionId: SessionId): Promise<void>;
|
|
10315
|
+
cleanupOldEvents(maxAgeMs: number): Promise<number>;
|
|
10316
|
+
private rowToStoredStreamEvent;
|
|
10112
10317
|
}
|
|
10113
10318
|
|
|
10114
10319
|
/**
|
|
@@ -10449,4 +10654,4 @@ declare class AshCloud {
|
|
|
10449
10654
|
*/
|
|
10450
10655
|
declare function createAshCloud(options?: Partial<AshCloudOptions>): AshCloud;
|
|
10451
10656
|
|
|
10452
|
-
export { AVAILABLE_MODELS, type ActionType, type ActiveSession, type AgentBackend, type AgentConfig$1 as AgentConfig, AgentConfigSchema, AgentError, AgentHarness, type AgentHarnessConfig, type AgentHooks, type AgentId, AgentStatus, type AgentStorage, type AgentsRouterOptions$1 as AgentsRouterOptions, AshCloud, AshCloudApiError, AshCloudClient, type AshCloudConfig, type AshCloudError, type AshCloudOptions, type AssistantMessageEntry, type Attachment, type AttachmentConfig, AttachmentConfigSchema, type AttachmentId, AttachmentStorage, type AttachmentStorageConfig, type BackendConfig, type BulkStorage, type BundleStore, type ClaudeAgentOptions, type ClaudeContentBlock, type ClaudeMessage, ClaudeSdkClient, type ClaudeStreamEvent, type ClaudeV2Session, CloudSandbox, type CloudSandboxConfig, CloudStorage, type CloudStorageConfig, type CommandRunAction, type CommandRunResult, ConfigBuilder, ConfigError, type CreateAgentOptions, type CreateQueueItemOptions, type CreateSessionEventOptions, type CreateSessionOptions, CredentialManager, type CredentialManagerConfig, type CredentialStorage, type CustomExecutor, DEFAULT_MODELS, DEFAULT_SANDBOX_PROVIDER_CONFIG, type DiscoveredSkill, type DockerConfig, type EncryptedCredential, type EntryListener, type ErrorEntry, type ErrorEvent, EventCategory, type EventMiddleware, type EventStorage, type FileChangeCallback, type FileChangeEvent, type FileChangeType, type FileContent$1 as FileContent, type FileEditAction, type FileEntry, type FileMetadata, type FileProvider, type FileProviderOptions, type FilePullResult, type FilePushResult, type FileReadAction, type FileStore, type FileSyncEvent, type FileSyncEventData, type FileSyncOperation, type FileSyncSource, type FileWatchOptions, FileWatcherManager, type FileWatcherOptions, type FileWatcherStatus, type FileWriteAction, GCSBundleStore, type GCSBundleStoreConfig, GeminiCliClient, type GeminiCliOptions, type GenericToolAction, type GetOrCreateSandboxOptions, GitHubFileProvider, type GitHubSkillConfig, type GitHubSkillResult, type GitHubSkillSource, type GitRepo, type GlobAction, type AgentConfig as HarnessAgentConfig, type HarnessConfig, HarnessConfigSchema, HarnessError, HarnessErrorCode, type HarnessErrorOptions, HarnessEventEmitter, type HarnessEventHandler, type HarnessEventPayloads, type HarnessEventType, type HarnessServer, type HarnessServerConfig, type HarnessServerHooks, type ImageContent, InSandboxWatcher, InSandboxWatcherManager, type InSandboxWatcherOptions, type ListAgentsOptions, type ListMessagesOptions, type ListQueueItemsOptions, type ListSessionEventsOptions, type ListSessionsOptions, type LoadStateResult, LocalBundleStore, LocalFileProvider, LocalSandbox, type LocalSandboxConfig, type LocalSkillSource, type LogContext, type LogEntry, type LogLevel, type Logger, type LoggerConfig, type ManagedWorkspace, type McpAuth, McpConfigBuilder, type McpGenerationResult, type McpHttpServerConfig, McpPresets, type McpServerConfig, type McpServerInfo, type McpServerStatus, McpServers, type McpStatusEvent, type McpStdioServerConfig, type McpTool, type McpToolAction, type McpTransportType, MemoryBundleStore, MemoryCredentialStorage, MemoryQueueStorage, MemoryRateLimitStore, MemoryStorage, type Message, type MessageContent, type MessageEvent, type MessageId, MessageRole, type NormalizedEntry, type NormalizedEntryType, type NormalizedToolCall, NotFoundError, type OpenAPIServer, type OpenAPIServerConfig, type PaginatedResult, type PaginationOptions, type PooledSandbox, PostgresQueueStorage, type PostgresQueueStorageConfig, PostgresStorage, type PostgresStorageConfig, ProviderSandbox, type ProviderSandboxConfig, type ProxyConfig, type PullOptions, type PushOptions, type QueueItem, QueueItemStatus, QueueProcessor, type QueueProcessorCallbacks, type QueueProcessorConfig, type QueueRouterOptions, type QueueStats, type QueueStorage, type RateLimitConfig, type RateLimitResult, type RateLimitStore, type RequestLoggerOptions, type ResumeSessionOptions, type RuntimeConfig, RuntimeConfigBuilder, RuntimePresets, S3BundleStore, type S3BundleStoreConfig, S3FileStore, type S3FileStoreConfig, SENSITIVE_PATHS, type SandboxCommandResult, type SandboxConfig, type SandboxConnection, type SandboxFileOperations, SandboxFileSync, type SandboxFileSyncOptions, SandboxFileWatcher, SandboxGitRepo, type SandboxHeartbeatStatus, type SandboxLogCallback, type SandboxLogCategory$1 as SandboxLogCategory, type SandboxLogEntry$1 as SandboxLogEntry, type SandboxLogEvent, type SandboxLogLevel$1 as SandboxLogLevel, SandboxLogger, SandboxPool, type SandboxPoolConfig, type SandboxPoolMetricsCallback, type SandboxPoolStatus, type SandboxProviderConfig, type SandboxProviderType, type SandboxReadResult, type SandboxWithState, type SandboxWriteResult, type SaveStateResult, type SearchAction, type SendMessageOptions, type SendMessageRequest, type SendMessageResult, type ServerConfig, ServerConfigSchema, type Session, type SessionEndEvent, SessionError, type SessionEvent, type SessionId, SessionManager, type SessionQueueStatus, type SessionStartEvent, SessionStatus, type SessionStoppedEvent, type SessionStorage, type SessionsRouterOptions$1 as SessionsRouterOptions, SkillCatalog, type SkillConfig, SkillManager, type SkillManagerOptions, type SkillSource, type SkillsConfig, type StartServerOptions, type StopSessionResult, type StorageConfig$1 as StorageConfig, StorageConfigSchema, StorageError, type StoredAgent, type StreamEvent, StreamEventType, SupabaseBundleStore, type SupabaseBundleStoreConfig, SupabaseStorage, type SupabaseStorageConfig, type SyncResult, type TextContent, type TextDeltaEvent, type ThinkingDeltaEvent, type ThinkingEntry, type TodoItem, type TodoStatus, type TodoWriteAction, type ToolCallEntry, ToolCallProcessor, ToolError, type ToolResult, type ToolResultContent, type ToolResultEvent, type ToolStatus, type ToolUseContent, type ToolUseEvent, type TransactionalStorage, type TurnCompleteEvent, type UpdateAgentOptions, type UserMessageEntry, ValidationError, type WebFetchAction, type WebSearchAction, type WebhookConfig, type WebhookDeliveryEventData, type WebhookPayload, Workspace, type CommandResult as WorkspaceCommandResult, type WorkspaceConfig, type WorkspaceHook, type WorkspaceLoadResult, WorkspaceManager, type WorkspaceSaveResult, type WorkspaceSessionConfig, attachmentSchema, attachmentToDataUrl, checkSecurityConfig, claudeClient, cleanupAllSandboxes, configureMcp, configureRuntime, convertClaudeMessage, createAgentsRouter$1 as createAgentsRouter, createAshCloud, createBackendExecutor, createCloudSandbox, createConfig, createCredentialManager, createOpenAPIServer as createDocumentedServer, createE2BSandbox, createEventHandler, createEventMiddlewareChain, createFileWatcher, createFileWatcherManager, createGCSBundleStore, createGeminiExecutor, createGitHubFileProvider, createGitRepo, createHarnessServer, createInSandboxWatcher, createInSandboxWatcherManager, createLocalBundleStore, createLocalFileProvider, createLocalSandbox, createLogger, createMemoryBundleStore, createMinioBundleStore, createMinioFileStore, createModalSandbox, createAgentsRouter as createOpenAPIAgentsRouter, createOpenAPIServer, createSessionsRouter as createOpenAPISessionsRouter, createSkillsRouter as createOpenAPISkillsRouter, createProviderSandbox, createQueueProcessor, createQueueRouter, createR2BundleStore, createR2FileStore, createS3BundleStore, createS3FileStore, createSandboxFileOperations, createSandboxFileSync, createSandboxLogger, createSandboxOptions, createSessionWorkspace, createSessionsRouter$1 as createSessionsRouter, createSkillCatalog, createSkillManager, createSupabaseBundleStore, createSupabaseBundleStoreFromEnv, createToolCall, createToolCallProcessor, createVercelSandbox, createVercelSandboxExecutor, createWorkspace, createWorkspaceHooks, createWorkspaceManager, dataUrlToBuffer, defineAgent, defineConfig, ensureSandboxPoolInitialized, env, envOptional, executeCommandInSandbox, extractTextContent, extractTextFromMessage, fileEntrySchema, formatToolName, generateDockerCommand, generateMcpServerPackage, generateMcpServers, generateProxyEnv, generateToolSummary, getActionIcon, getActionLabel, getAllHeartbeatStatuses, getApiKeyEnvVar, getCachedSandbox, getDefaultModel, getFileWatcherManager, getHeartbeatStatus, getInSandboxWatcherManager, getOrCreateSandbox, getSandboxCacheStats, getSandboxPool, getWorkspaceManager, gitHubSkillSourceSchema, globalEventEmitter, hasErrorCode, hashStartupScript, httpMcpWithAuth, initializeSandboxPool, introspectMcpServer, invalidateSandbox, isCommandRunAction, isDocumentMimeType, isErrorEntry, isFileEditAction, isFileReadAction, isFileWriteAction, isGenericToolAction, isGlobAction, isHarnessError, isHttpMcpConfig, isImageMimeType, isMcpToolAction, isSandboxExpiredError, isSandboxRunning, isSearchAction, isSensitivePath, isStdioMcpConfig, isTodoWriteAction, isToolCallEntry, isValidModel, isWebFetchAction, isWebSearchAction, listFilesInSandbox, loadConfig, loadGitHubSkill, loadGitHubSkills, loadWorkspaceState, localSkillSourceSchema, log, mapClaudeOptionsToGemini, mapToolToActionType, markConfigInstalled, markSdkInstalled, markStartupScriptRan, mcpAuthToHeaders, messageContentSchema, messageSchema, needsStartupScriptRerun, normalizeGitHubConfigs, normalizeMcpServers, normalizeMessages, normalizeToolResult, onHeartbeat, schemas as openApiSchemas, parseCommandResult, parseGitHubUrl, parseMcpToolName, processStreamEvents, rateLimit, rateLimiters, readFileFromSandbox, rekeySessionId, releaseSandbox, requestLogger, saveWorkspaceState, sessionSchema, shouldUseSandbox, shutdownSandboxPool, skillConfigSchema, skillSourceSchema, sseMcpWithAuth, startServer, updateToolCallWithResult, writeFileToSandbox };
|
|
10657
|
+
export { AVAILABLE_MODELS, type ActionType, type ActiveSession, type AgentBackend, type AgentConfig$1 as AgentConfig, AgentConfigSchema, AgentError, AgentHarness, type AgentHarnessConfig, type AgentHooks, type AgentId, AgentStatus, type AgentStorage, type AgentsRouterOptions$1 as AgentsRouterOptions, AshCloud, AshCloudApiError, AshCloudClient, type AshCloudConfig, type AshCloudError, type AshCloudOptions, type AssistantMessageEntry, type Attachment, type AttachmentConfig, AttachmentConfigSchema, type AttachmentId, AttachmentStorage, type AttachmentStorageConfig, type BackendConfig, type BulkStorage, type BundleStore, type ClaudeAgentOptions, type ClaudeContentBlock, type ClaudeMessage, ClaudeSdkClient, type ClaudeStreamEvent, type ClaudeV2Session, CloudSandbox, type CloudSandboxConfig, CloudStorage, type CloudStorageConfig, type CommandRunAction, type CommandRunResult, ConfigBuilder, ConfigError, type CreateAgentOptions, type CreateQueueItemOptions, type CreateSessionEventOptions, type CreateSessionOptions, CredentialManager, type CredentialManagerConfig, type CredentialStorage, type CustomExecutor, DEFAULT_MODELS, DEFAULT_SANDBOX_PROVIDER_CONFIG, type DiscoveredSkill, type DockerConfig, type EncryptedCredential, type EntryListener, type ErrorEntry, type ErrorEvent, EventCategory, type EventMiddleware, type EventStorage, type FileChangeCallback, type FileChangeEvent, type FileChangeType, type FileContent$1 as FileContent, type FileEditAction, type FileEntry, type FileMetadata, type FileProvider, type FileProviderOptions, type FilePullResult, type FilePushResult, type FileReadAction, type FileStore, type FileSyncEvent, type FileSyncEventData, type FileSyncOperation, type FileSyncSource, type FileWatchOptions, FileWatcherManager, type FileWatcherOptions, type FileWatcherStatus, type FileWriteAction, GCSBundleStore, type GCSBundleStoreConfig, GeminiCliClient, type GeminiCliOptions, type GenericToolAction, type GetOrCreateSandboxOptions, GitHubFileProvider, type GitHubSkillConfig, type GitHubSkillResult, type GitHubSkillSource, type GitRepo, type GlobAction, type AgentConfig as HarnessAgentConfig, type HarnessConfig, HarnessConfigSchema, HarnessError, HarnessErrorCode, type HarnessErrorOptions, HarnessEventEmitter, type HarnessEventHandler, type HarnessEventPayloads, type HarnessEventType, type HarnessServer, type HarnessServerConfig, type HarnessServerHooks, type ImageContent, InSandboxWatcher, InSandboxWatcherManager, type InSandboxWatcherOptions, type ListAgentsOptions, type ListMessagesOptions, type ListQueueItemsOptions, type ListSessionEventsOptions, type ListSessionsOptions, type LoadStateResult, LocalBundleStore, LocalFileProvider, LocalSandbox, type LocalSandboxConfig, type LocalSkillSource, type LogContext, type LogEntry, type LogLevel, type Logger, type LoggerConfig, type ManagedWorkspace, type McpAuth, McpConfigBuilder, type McpGenerationResult, type McpHttpServerConfig, McpPresets, type McpServerConfig, type McpServerInfo, type McpServerStatus, McpServers, type McpStatusEvent, type McpStdioServerConfig, type McpTool, type McpToolAction, type McpTransportType, MemoryBundleStore, MemoryCredentialStorage, MemoryQueueStorage, MemoryRateLimitStore, MemoryStorage, MemoryStreamEventStorage, type Message, type MessageContent, type MessageEvent, type MessageId, MessageRole, type NormalizedEntry, type NormalizedEntryType, type NormalizedToolCall, NotFoundError, type OpenAPIServer, type OpenAPIServerConfig, type PaginatedResult, type PaginationOptions, type PooledSandbox, PostgresQueueStorage, type PostgresQueueStorageConfig, PostgresStorage, type PostgresStorageConfig, ProviderSandbox, type ProviderSandboxConfig, type ProxyConfig, type PullOptions, type PushOptions, type QueueItem, QueueItemStatus, QueueProcessor, type QueueProcessorCallbacks, type QueueProcessorConfig, type QueueRouterOptions, type QueueStats, type QueueStorage, type RateLimitConfig, type RateLimitResult, type RateLimitStore, type ReadStreamEventsOptions, type RequestLoggerOptions, type ResumeSessionOptions, type RuntimeConfig, RuntimeConfigBuilder, RuntimePresets, S3BundleStore, type S3BundleStoreConfig, S3FileStore, type S3FileStoreConfig, SENSITIVE_PATHS, type SandboxCommandResult, type SandboxConfig, type SandboxConnection, type SandboxFileOperations, SandboxFileSync, type SandboxFileSyncOptions, SandboxFileWatcher, SandboxGitRepo, type SandboxHeartbeatStatus, type SandboxLogCallback, type SandboxLogCategory$1 as SandboxLogCategory, type SandboxLogEntry$1 as SandboxLogEntry, type SandboxLogEvent, type SandboxLogLevel$1 as SandboxLogLevel, SandboxLogger, SandboxPool, type SandboxPoolConfig, type SandboxPoolMetricsCallback, type SandboxPoolStatus, type SandboxProviderConfig, type SandboxProviderType, type SandboxReadResult, type SandboxWithState, type SandboxWriteResult, type SaveStateResult, type SearchAction, type SendMessageOptions, type SendMessageRequest, type SendMessageResult, type ServerConfig, ServerConfigSchema, type Session, type SessionEndEvent, SessionError, type SessionEvent, type SessionId, SessionManager, type SessionQueueStatus, type SessionStartEvent, SessionStatus, type SessionStoppedEvent, type SessionStorage, type SessionsRouterOptions$1 as SessionsRouterOptions, SkillCatalog, type SkillConfig, SkillManager, type SkillManagerOptions, type SkillSource, type SkillsConfig, type StartServerOptions, type StopSessionResult, type StorageConfig$1 as StorageConfig, StorageConfigSchema, StorageError, type StoredAgent, type StoredStreamEvent, type StreamEvent, type StreamEventRelayOptions, type StreamEventStorage, StreamEventType, StreamEventWriter, type StreamEventWriterOptions, SupabaseBundleStore, type SupabaseBundleStoreConfig, SupabaseStorage, type SupabaseStorageConfig, type SyncResult, type TextContent, type TextDeltaEvent, type ThinkingDeltaEvent, type ThinkingEntry, type TodoItem, type TodoStatus, type TodoWriteAction, type ToolCallEntry, ToolCallProcessor, ToolError, type ToolResult, type ToolResultContent, type ToolResultEvent, type ToolStatus, type ToolUseContent, type ToolUseEvent, type TransactionalStorage, type TurnCompleteEvent, type UpdateAgentOptions, type UserMessageEntry, ValidationError, type WebFetchAction, type WebSearchAction, type WebhookConfig, type WebhookDeliveryEventData, type WebhookFileSyncEvent, type WebhookPayload, Workspace, type CommandResult as WorkspaceCommandResult, type WorkspaceConfig, type WorkspaceHook, type WorkspaceLoadResult, WorkspaceManager, type WorkspaceSaveResult, type WorkspaceSessionConfig, attachmentSchema, attachmentToDataUrl, checkSecurityConfig, claudeClient, cleanupAllSandboxes, configureMcp, configureRuntime, convertClaudeMessage, createAgentsRouter$1 as createAgentsRouter, createAshCloud, createBackendExecutor, createCloudSandbox, createConfig, createCredentialManager, createOpenAPIServer as createDocumentedServer, createE2BSandbox, createEventHandler, createEventMiddlewareChain, createFileWatcher, createFileWatcherManager, createGCSBundleStore, createGeminiExecutor, createGitHubFileProvider, createGitRepo, createHarnessServer, createInSandboxWatcher, createInSandboxWatcherManager, createLocalBundleStore, createLocalFileProvider, createLocalSandbox, createLogger, createMemoryBundleStore, createMinioBundleStore, createMinioFileStore, createModalSandbox, createAgentsRouter as createOpenAPIAgentsRouter, createOpenAPIServer, createSessionsRouter as createOpenAPISessionsRouter, createSkillsRouter as createOpenAPISkillsRouter, createProviderSandbox, createQueueProcessor, createQueueRouter, createR2BundleStore, createR2FileStore, createS3BundleStore, createS3FileStore, createSandboxFileOperations, createSandboxFileSync, createSandboxLogger, createSandboxOptions, createSessionWorkspace, createSessionsRouter$1 as createSessionsRouter, createSkillCatalog, createSkillManager, createSupabaseBundleStore, createSupabaseBundleStoreFromEnv, createToolCall, createToolCallProcessor, createVercelSandbox, createVercelSandboxExecutor, createWorkspace, createWorkspaceHooks, createWorkspaceManager, dataUrlToBuffer, defineAgent, defineConfig, ensureSandboxPoolInitialized, env, envOptional, executeCommandInSandbox, extractTextContent, extractTextFromMessage, fileEntrySchema, formatToolName, generateDockerCommand, generateMcpServerPackage, generateMcpServers, generateProxyEnv, generateToolSummary, getActionIcon, getActionLabel, getAllHeartbeatStatuses, getApiKeyEnvVar, getCachedSandbox, getDefaultModel, getFileWatcherManager, getHeartbeatStatus, getInSandboxWatcherManager, getOrCreateSandbox, getSandboxCacheStats, getSandboxPool, getWorkspaceManager, gitHubSkillSourceSchema, globalEventEmitter, hasErrorCode, hashStartupScript, httpMcpWithAuth, initializeSandboxPool, introspectMcpServer, invalidateSandbox, isCommandRunAction, isDocumentMimeType, isErrorEntry, isFileEditAction, isFileReadAction, isFileWriteAction, isGenericToolAction, isGlobAction, isHarnessError, isHttpMcpConfig, isImageMimeType, isMcpToolAction, isSandboxExpiredError, isSandboxRunning, isSearchAction, isSensitivePath, isStdioMcpConfig, isTodoWriteAction, isToolCallEntry, isValidModel, isWebFetchAction, isWebSearchAction, listFilesInSandbox, loadConfig, loadGitHubSkill, loadGitHubSkills, loadWorkspaceState, localSkillSourceSchema, log, mapClaudeOptionsToGemini, mapToolToActionType, markConfigInstalled, markSdkInstalled, markStartupScriptRan, mcpAuthToHeaders, messageContentSchema, messageSchema, needsStartupScriptRerun, normalizeGitHubConfigs, normalizeMcpServers, normalizeMessages, normalizeToolResult, onHeartbeat, schemas as openApiSchemas, parseCommandResult, parseGitHubUrl, parseMcpToolName, processStreamEvents, rateLimit, rateLimiters, readFileFromSandbox, rekeySessionId, releaseSandbox, requestLogger, saveWorkspaceState, sessionSchema, shouldUseSandbox, shutdownSandboxPool, skillConfigSchema, skillSourceSchema, sseMcpWithAuth, startServer, streamEventRelay, updateToolCallWithResult, writeFileToSandbox };
|