@raisindb/client 0.5.1 → 0.5.3

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.
@@ -2526,7 +2526,7 @@ declare class HttpElementTypes extends HttpSchemaBase {
2526
2526
  * transport-injected wrapper so any JS/TS backend (not just AI agents) can talk
2527
2527
  * to a RaisinDB MCP server programmatically, using the exact JSON-RPC method
2528
2528
  * names the engine implements (`tools/list`, `tools/call`, `resources/read`,
2529
- * `resources/subscribe`).
2529
+ * `subscriptions/listen`).
2530
2530
  *
2531
2531
  * The transport is injected (see {@link McpTransport}) so the client stays
2532
2532
  * unit-testable and independent of the concrete HTTP layer — the HTTP client
@@ -2615,7 +2615,7 @@ interface McpResourceSubscription extends AsyncIterable<McpResourceUpdate> {
2615
2615
  *
2616
2616
  * `rpc` performs one request/response JSON-RPC round trip and returns the
2617
2617
  * already-unwrapped `result` (throwing on a JSON-RPC `error`). `subscribe`
2618
- * opens the `resources/subscribe` SSE stream and yields each raw JSON-RPC frame
2618
+ * opens the `subscriptions/listen` SSE stream and yields each raw JSON-RPC frame
2619
2619
  * forwarded by the server.
2620
2620
  */
2621
2621
  interface McpTransport {
@@ -2630,8 +2630,8 @@ interface McpTransport {
2630
2630
  * Open an SSE stream for a subscribing method and yield each JSON-RPC frame
2631
2631
  * the server pushes (the initial ack plus subsequent notifications).
2632
2632
  *
2633
- * @param method - Subscribing JSON-RPC method (`"resources/subscribe"`).
2634
- * @param params - Method parameters (`{ uri }`).
2633
+ * @param method - Subscribing JSON-RPC method (`"subscriptions/listen"`).
2634
+ * @param params - Method parameters (`{ notifications: { … } }`).
2635
2635
  */
2636
2636
  subscribe(method: string, params: unknown): McpFrameStream;
2637
2637
  }
@@ -2711,10 +2711,11 @@ declare class McpClient {
2711
2711
  /**
2712
2712
  * Subscribe to change notifications for a resource URI (or URI prefix).
2713
2713
  *
2714
- * Wraps the `resources/subscribe` JSON-RPC method, which upgrades to an SSE
2715
- * stream. The returned {@link McpResourceSubscription} is an async iterable of
2716
- * {@link McpResourceUpdate}; the server's initial subscription ack is consumed
2717
- * internally and not yielded. Call `close()` to end the stream.
2714
+ * Opens a `subscriptions/listen` stream (SSE) with a `resourceSubscriptions`
2715
+ * filter naming the URI. The returned {@link McpResourceSubscription} is an
2716
+ * async iterable of {@link McpResourceUpdate}; the server's acknowledgement
2717
+ * frame and the closing response are consumed internally and not yielded.
2718
+ * Call `close()` to end the stream.
2718
2719
  *
2719
2720
  * @param uri - `raisin://` URI (or prefix) to watch.
2720
2721
  * @returns A live, closeable subscription.
@@ -3356,7 +3357,7 @@ declare class RaisinHttpClient extends EventEmitter {
3356
3357
  */
3357
3358
  mcpRpc(repository: string, branch: string, slug: string, method: string, params?: unknown): Promise<unknown>;
3358
3359
  /**
3359
- * Open the `resources/subscribe` SSE stream for an MCP server endpoint.
3360
+ * Open the `subscriptions/listen` SSE stream for an MCP server endpoint.
3360
3361
  *
3361
3362
  * Streams JSON-RPC frames (the subscription ack followed by
3362
3363
  * `notifications/resources/updated` frames) from
@@ -3870,8 +3871,9 @@ declare function createSqlHandler(sendRequest: (payload: SqlQueryPayload) => Pro
3870
3871
  */
3871
3872
 
3872
3873
  declare class NodeTypes {
3874
+ private context;
3873
3875
  private sendRequest;
3874
- constructor(_context: RequestContext, sendRequest: (payload: unknown, requestType: string) => Promise<unknown>);
3876
+ constructor(context: RequestContext, sendRequest: (payload: unknown, requestType: string, contextOverride?: RequestContext) => Promise<unknown>);
3875
3877
  /**
3876
3878
  * Create a new NodeType
3877
3879
  */
@@ -3901,9 +3903,13 @@ declare class NodeTypes {
3901
3903
  */
3902
3904
  unpublish(name: string): Promise<unknown>;
3903
3905
  /**
3904
- * Validate a node against its NodeType
3906
+ * Validate a node against its NodeType.
3907
+ *
3908
+ * The server validates in the context of a workspace (workspace-level
3909
+ * allow-lists and unique checks), so one is required. Pass it here, or
3910
+ * create the database with a workspace already in its context.
3905
3911
  */
3906
- validate(node: Record<string, unknown>): Promise<unknown>;
3912
+ validate(node: Record<string, unknown>, workspace?: string): Promise<unknown>;
3907
3913
  /**
3908
3914
  * Get resolved NodeType with full inheritance applied
3909
3915
  */
@@ -4266,7 +4272,7 @@ interface FlowRunResponse {
4266
4272
  status: string;
4267
4273
  }
4268
4274
  /** Flow instance status values */
4269
- type FlowInstanceStatus = 'queued' | 'pending' | 'running' | 'completed' | 'failed' | 'waiting' | 'cancelled';
4275
+ type FlowInstanceStatus = 'pending' | 'running' | 'waiting' | 'completed' | 'failed' | 'cancelled' | 'rolled_back';
4270
4276
  /** Response from GET flow instance status endpoint. */
4271
4277
  interface FlowInstanceStatusResponse {
4272
4278
  /** Flow instance ID */
@@ -5510,6 +5516,12 @@ interface FlowStepProperties {
5510
5516
  /** Human assignee to escalate to when an agent assignee fails or is
5511
5517
  * not confident enough */
5512
5518
  escalation_assignee?: string;
5519
+ /** How many member responses complete the wait: 'any' (default), 'all' or 'quorum' */
5520
+ group_completion?: 'any' | 'all' | 'quorum';
5521
+ /** Qualifying responses required when group_completion is 'quorum' */
5522
+ group_quorum?: number;
5523
+ /** REL over `response` / `responses` deciding whether a member's response counts */
5524
+ response_condition?: string;
5513
5525
  /** What to wait for (defaults to 'delay') */
5514
5526
  wait_type?: 'delay' | 'until' | 'event' | 'cron';
5515
5527
  /** Duration for a 'delay' wait, e.g. "30m" (templates allowed) */
@@ -2526,7 +2526,7 @@ declare class HttpElementTypes extends HttpSchemaBase {
2526
2526
  * transport-injected wrapper so any JS/TS backend (not just AI agents) can talk
2527
2527
  * to a RaisinDB MCP server programmatically, using the exact JSON-RPC method
2528
2528
  * names the engine implements (`tools/list`, `tools/call`, `resources/read`,
2529
- * `resources/subscribe`).
2529
+ * `subscriptions/listen`).
2530
2530
  *
2531
2531
  * The transport is injected (see {@link McpTransport}) so the client stays
2532
2532
  * unit-testable and independent of the concrete HTTP layer — the HTTP client
@@ -2615,7 +2615,7 @@ interface McpResourceSubscription extends AsyncIterable<McpResourceUpdate> {
2615
2615
  *
2616
2616
  * `rpc` performs one request/response JSON-RPC round trip and returns the
2617
2617
  * already-unwrapped `result` (throwing on a JSON-RPC `error`). `subscribe`
2618
- * opens the `resources/subscribe` SSE stream and yields each raw JSON-RPC frame
2618
+ * opens the `subscriptions/listen` SSE stream and yields each raw JSON-RPC frame
2619
2619
  * forwarded by the server.
2620
2620
  */
2621
2621
  interface McpTransport {
@@ -2630,8 +2630,8 @@ interface McpTransport {
2630
2630
  * Open an SSE stream for a subscribing method and yield each JSON-RPC frame
2631
2631
  * the server pushes (the initial ack plus subsequent notifications).
2632
2632
  *
2633
- * @param method - Subscribing JSON-RPC method (`"resources/subscribe"`).
2634
- * @param params - Method parameters (`{ uri }`).
2633
+ * @param method - Subscribing JSON-RPC method (`"subscriptions/listen"`).
2634
+ * @param params - Method parameters (`{ notifications: { … } }`).
2635
2635
  */
2636
2636
  subscribe(method: string, params: unknown): McpFrameStream;
2637
2637
  }
@@ -2711,10 +2711,11 @@ declare class McpClient {
2711
2711
  /**
2712
2712
  * Subscribe to change notifications for a resource URI (or URI prefix).
2713
2713
  *
2714
- * Wraps the `resources/subscribe` JSON-RPC method, which upgrades to an SSE
2715
- * stream. The returned {@link McpResourceSubscription} is an async iterable of
2716
- * {@link McpResourceUpdate}; the server's initial subscription ack is consumed
2717
- * internally and not yielded. Call `close()` to end the stream.
2714
+ * Opens a `subscriptions/listen` stream (SSE) with a `resourceSubscriptions`
2715
+ * filter naming the URI. The returned {@link McpResourceSubscription} is an
2716
+ * async iterable of {@link McpResourceUpdate}; the server's acknowledgement
2717
+ * frame and the closing response are consumed internally and not yielded.
2718
+ * Call `close()` to end the stream.
2718
2719
  *
2719
2720
  * @param uri - `raisin://` URI (or prefix) to watch.
2720
2721
  * @returns A live, closeable subscription.
@@ -3356,7 +3357,7 @@ declare class RaisinHttpClient extends EventEmitter {
3356
3357
  */
3357
3358
  mcpRpc(repository: string, branch: string, slug: string, method: string, params?: unknown): Promise<unknown>;
3358
3359
  /**
3359
- * Open the `resources/subscribe` SSE stream for an MCP server endpoint.
3360
+ * Open the `subscriptions/listen` SSE stream for an MCP server endpoint.
3360
3361
  *
3361
3362
  * Streams JSON-RPC frames (the subscription ack followed by
3362
3363
  * `notifications/resources/updated` frames) from
@@ -3870,8 +3871,9 @@ declare function createSqlHandler(sendRequest: (payload: SqlQueryPayload) => Pro
3870
3871
  */
3871
3872
 
3872
3873
  declare class NodeTypes {
3874
+ private context;
3873
3875
  private sendRequest;
3874
- constructor(_context: RequestContext, sendRequest: (payload: unknown, requestType: string) => Promise<unknown>);
3876
+ constructor(context: RequestContext, sendRequest: (payload: unknown, requestType: string, contextOverride?: RequestContext) => Promise<unknown>);
3875
3877
  /**
3876
3878
  * Create a new NodeType
3877
3879
  */
@@ -3901,9 +3903,13 @@ declare class NodeTypes {
3901
3903
  */
3902
3904
  unpublish(name: string): Promise<unknown>;
3903
3905
  /**
3904
- * Validate a node against its NodeType
3906
+ * Validate a node against its NodeType.
3907
+ *
3908
+ * The server validates in the context of a workspace (workspace-level
3909
+ * allow-lists and unique checks), so one is required. Pass it here, or
3910
+ * create the database with a workspace already in its context.
3905
3911
  */
3906
- validate(node: Record<string, unknown>): Promise<unknown>;
3912
+ validate(node: Record<string, unknown>, workspace?: string): Promise<unknown>;
3907
3913
  /**
3908
3914
  * Get resolved NodeType with full inheritance applied
3909
3915
  */
@@ -4266,7 +4272,7 @@ interface FlowRunResponse {
4266
4272
  status: string;
4267
4273
  }
4268
4274
  /** Flow instance status values */
4269
- type FlowInstanceStatus = 'queued' | 'pending' | 'running' | 'completed' | 'failed' | 'waiting' | 'cancelled';
4275
+ type FlowInstanceStatus = 'pending' | 'running' | 'waiting' | 'completed' | 'failed' | 'cancelled' | 'rolled_back';
4270
4276
  /** Response from GET flow instance status endpoint. */
4271
4277
  interface FlowInstanceStatusResponse {
4272
4278
  /** Flow instance ID */
@@ -5510,6 +5516,12 @@ interface FlowStepProperties {
5510
5516
  /** Human assignee to escalate to when an agent assignee fails or is
5511
5517
  * not confident enough */
5512
5518
  escalation_assignee?: string;
5519
+ /** How many member responses complete the wait: 'any' (default), 'all' or 'quorum' */
5520
+ group_completion?: 'any' | 'all' | 'quorum';
5521
+ /** Qualifying responses required when group_completion is 'quorum' */
5522
+ group_quorum?: number;
5523
+ /** REL over `response` / `responses` deciding whether a member's response counts */
5524
+ response_condition?: string;
5513
5525
  /** What to wait for (defaults to 'delay') */
5514
5526
  wait_type?: 'delay' | 'until' | 'event' | 'cron';
5515
5527
  /** Duration for a 'delay' wait, e.g. "30m" (templates allowed) */
@@ -1,4 +1,4 @@
1
- import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-CcsnbqWp.js';
1
+ import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-DVYgTaaA.js';
2
2
 
3
3
  /**
4
4
  * React adapters for the RaisinDB conversation stores.
@@ -1,4 +1,4 @@
1
- import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-CcsnbqWp.mjs';
1
+ import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-DVYgTaaA.mjs';
2
2
 
3
3
  /**
4
4
  * React adapters for the RaisinDB conversation stores.
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-CcsnbqWp.mjs';
2
- export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-CcsnbqWp.mjs';
3
- export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-CafciIjp.mjs';
1
+ import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-DVYgTaaA.mjs';
2
+ export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-DVYgTaaA.mjs';
3
+ export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-BOO1gV6F.mjs';
4
4
  export { AuthAdapter, AuthSnapshot, ConnectionAdapter, ConnectionSnapshot, FlowAdapter, FlowAdapterOptions, FlowSnapshot, RAISIN_CONTEXT_KEY, RaisinContext, SubscriptionAdapter, FlowStatus as SvelteFlowStatus, createAuthAdapter, createConnectionAdapter, createConversationAdapter, createConversationListAdapter, createFlowAdapter, createSubscriptionAdapter } from './svelte.mjs';
5
- export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-Car7CGb8.mjs';
5
+ export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-B1nLVQuc.mjs';
6
6
  export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.mjs';
7
7
  import 'events';
8
8
  import 'fs/promises';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-CcsnbqWp.js';
2
- export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-CcsnbqWp.js';
3
- export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-CrfRIFc7.js';
1
+ import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-DVYgTaaA.js';
2
+ export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-DVYgTaaA.js';
3
+ export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-AKUurvWQ.js';
4
4
  export { AuthAdapter, AuthSnapshot, ConnectionAdapter, ConnectionSnapshot, FlowAdapter, FlowAdapterOptions, FlowSnapshot, RAISIN_CONTEXT_KEY, RaisinContext, SubscriptionAdapter, FlowStatus as SvelteFlowStatus, createAuthAdapter, createConnectionAdapter, createConversationAdapter, createConversationListAdapter, createFlowAdapter, createSubscriptionAdapter } from './svelte.js';
5
- export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-BI1jVnoo.js';
5
+ export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-ABIom_Bb.js';
6
6
  export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.js';
7
7
  import 'events';
8
8
  import 'fs/promises';
package/dist/index.js CHANGED
@@ -1577,15 +1577,8 @@ var NodeOperations = class {
1577
1577
  * @returns Node or null if not found
1578
1578
  */
1579
1579
  async getByPath(path) {
1580
- try {
1581
- const result = await this.query({
1582
- query: { path },
1583
- limit: 1
1584
- });
1585
- return result.length > 0 ? result[0] : null;
1586
- } catch (error) {
1587
- return null;
1588
- }
1580
+ const result = await this.sendRequest({ path }, "node_query_by_path");
1581
+ return result ?? null;
1589
1582
  }
1590
1583
  /**
1591
1584
  * Query nodes by property
@@ -1596,14 +1589,12 @@ var NodeOperations = class {
1596
1589
  * @returns Array of nodes
1597
1590
  */
1598
1591
  async queryByProperty(propertyName, propertyValue, limit) {
1599
- return this.query({
1600
- query: {
1601
- properties: {
1602
- [propertyName]: propertyValue
1603
- }
1604
- },
1592
+ const payload = {
1593
+ query: { [propertyName]: propertyValue },
1605
1594
  limit
1606
- });
1595
+ };
1596
+ const result = await this.sendRequest(payload, "node_query_by_property");
1597
+ return result;
1607
1598
  }
1608
1599
  /**
1609
1600
  * Query nodes by type
@@ -1614,7 +1605,7 @@ var NodeOperations = class {
1614
1605
  */
1615
1606
  async queryByType(nodeType, limit) {
1616
1607
  return this.query({
1617
- query: { node_type: nodeType },
1608
+ query: { type: nodeType },
1618
1609
  limit
1619
1610
  });
1620
1611
  }
@@ -1693,7 +1684,7 @@ var NodeOperations = class {
1693
1684
  */
1694
1685
  async getTree(rootPath, maxDepth) {
1695
1686
  const payload = {
1696
- root_path: rootPath
1687
+ parent_path: rootPath
1697
1688
  };
1698
1689
  if (maxDepth !== void 0) {
1699
1690
  payload.max_depth = maxDepth;
@@ -1710,7 +1701,7 @@ var NodeOperations = class {
1710
1701
  */
1711
1702
  async getTreeFlat(rootPath, maxDepth) {
1712
1703
  const payload = {
1713
- root_path: rootPath
1704
+ parent_path: rootPath
1714
1705
  };
1715
1706
  if (maxDepth !== void 0) {
1716
1707
  payload.max_depth = maxDepth;
@@ -2750,7 +2741,8 @@ function createSqlHandler(sendRequest) {
2750
2741
 
2751
2742
  // src/node-types.ts
2752
2743
  var NodeTypes = class {
2753
- constructor(_context, sendRequest) {
2744
+ constructor(context, sendRequest) {
2745
+ this.context = context;
2754
2746
  this.sendRequest = sendRequest;
2755
2747
  }
2756
2748
  /**
@@ -2834,14 +2826,25 @@ var NodeTypes = class {
2834
2826
  );
2835
2827
  }
2836
2828
  /**
2837
- * Validate a node against its NodeType
2829
+ * Validate a node against its NodeType.
2830
+ *
2831
+ * The server validates in the context of a workspace (workspace-level
2832
+ * allow-lists and unique checks), so one is required. Pass it here, or
2833
+ * create the database with a workspace already in its context.
2838
2834
  */
2839
- async validate(node) {
2835
+ async validate(node, workspace) {
2836
+ const ws = workspace ?? this.context.workspace;
2837
+ if (!ws) {
2838
+ throw new Error(
2839
+ "nodeTypes().validate() requires a workspace: pass it as the second argument"
2840
+ );
2841
+ }
2840
2842
  return this.sendRequest(
2841
2843
  {
2842
2844
  node
2843
2845
  },
2844
- "node_type_validate" /* NodeTypeValidate */
2846
+ "node_type_validate" /* NodeTypeValidate */,
2847
+ { ...this.context, workspace: ws }
2845
2848
  );
2846
2849
  }
2847
2850
  /**
@@ -4722,7 +4725,7 @@ var ConversationManager = class {
4722
4725
  }
4723
4726
  async ensureFolderNode(workspace, path, title) {
4724
4727
  await this.sqlQuery(
4725
- `UPSERT INTO '${workspace}' (path, node_type, properties) VALUES ($1, 'raisin:Folder', $2::jsonb)`,
4728
+ `UPSERT INTO '${workspace}' (path, node_type, properties) VALUES ($1, 'raisin:AclFolder', $2::jsonb)`,
4726
4729
  [path, JSON.stringify({ title })]
4727
4730
  );
4728
4731
  }
@@ -7049,16 +7052,19 @@ var McpClient = class {
7049
7052
  /**
7050
7053
  * Subscribe to change notifications for a resource URI (or URI prefix).
7051
7054
  *
7052
- * Wraps the `resources/subscribe` JSON-RPC method, which upgrades to an SSE
7053
- * stream. The returned {@link McpResourceSubscription} is an async iterable of
7054
- * {@link McpResourceUpdate}; the server's initial subscription ack is consumed
7055
- * internally and not yielded. Call `close()` to end the stream.
7055
+ * Opens a `subscriptions/listen` stream (SSE) with a `resourceSubscriptions`
7056
+ * filter naming the URI. The returned {@link McpResourceSubscription} is an
7057
+ * async iterable of {@link McpResourceUpdate}; the server's acknowledgement
7058
+ * frame and the closing response are consumed internally and not yielded.
7059
+ * Call `close()` to end the stream.
7056
7060
  *
7057
7061
  * @param uri - `raisin://` URI (or prefix) to watch.
7058
7062
  * @returns A live, closeable subscription.
7059
7063
  */
7060
7064
  subscribeResource(uri) {
7061
- const stream = this.transport.subscribe("resources/subscribe", { uri });
7065
+ const stream = this.transport.subscribe("subscriptions/listen", {
7066
+ notifications: { resourceSubscriptions: [uri] }
7067
+ });
7062
7068
  return {
7063
7069
  close: () => stream.close(),
7064
7070
  async *[Symbol.asyncIterator]() {
@@ -7964,7 +7970,7 @@ var RaisinHttpClient = class extends import_events3.EventEmitter {
7964
7970
  return frame?.result;
7965
7971
  }
7966
7972
  /**
7967
- * Open the `resources/subscribe` SSE stream for an MCP server endpoint.
7973
+ * Open the `subscriptions/listen` SSE stream for an MCP server endpoint.
7968
7974
  *
7969
7975
  * Streams JSON-RPC frames (the subscription ack followed by
7970
7976
  * `notifications/resources/updated` frames) from