@raisindb/client 0.5.13 → 0.5.15
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/{conversation-list-store-BNYosL8k.d.mts → conversation-list-store-D-W6_nsv.d.mts} +32 -1
- package/dist/{conversation-list-store-BNYosL8k.d.ts → conversation-list-store-D-W6_nsv.d.ts} +32 -1
- package/dist/{index-GaJToZKx.d.ts → index-B4CqE3Cb.d.ts} +1 -1
- package/dist/{index-UlXuwMoL.d.mts → index-CeBRaSop.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{svelte-sql-yLeGoj89.d.mts → svelte-sql-CQoB4FEm.d.mts} +1 -1
- package/dist/{svelte-sql-bROcapdk.d.ts → svelte-sql-CTXjkz0R.d.ts} +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/{conversation-list-store-BNYosL8k.d.mts → conversation-list-store-D-W6_nsv.d.mts}
RENAMED
|
@@ -3009,6 +3009,12 @@ interface IdentityMe {
|
|
|
3009
3009
|
roles: string[];
|
|
3010
3010
|
anonymous: boolean;
|
|
3011
3011
|
home: string | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* Stable person key: the last segment of `home` when it is a minted user
|
|
3014
|
+
* key (`u_` + 22 base62, homes at `/users/internal/<user_key>`). Absent for
|
|
3015
|
+
* anonymous callers and for homes created before keys.
|
|
3016
|
+
*/
|
|
3017
|
+
user_key?: string;
|
|
3012
3018
|
}
|
|
3013
3019
|
/**
|
|
3014
3020
|
* Identity authentication scoped to one repository.
|
|
@@ -3039,7 +3045,14 @@ declare class IdentityAuthApi {
|
|
|
3039
3045
|
* only when handling the token yourself, and note it is single-use.
|
|
3040
3046
|
*/
|
|
3041
3047
|
verifyMagicLink(token: string): Promise<IdentityAuthResult>;
|
|
3042
|
-
/**
|
|
3048
|
+
/**
|
|
3049
|
+
* Sign in with email and password, where the repository enables it.
|
|
3050
|
+
*
|
|
3051
|
+
* `rememberMe` chooses the lifetime of the sign-in: the session AND its refresh
|
|
3052
|
+
* token last 30 days with it and 24 hours without (both configurable per tenant:
|
|
3053
|
+
* `refresh_token_duration_days`, `refresh_token_session_hours`). Refreshing never
|
|
3054
|
+
* extends a session past that.
|
|
3055
|
+
*/
|
|
3043
3056
|
login(email: string, password: string, options?: {
|
|
3044
3057
|
rememberMe?: boolean;
|
|
3045
3058
|
}): Promise<IdentityAuthResult>;
|
|
@@ -7345,6 +7358,21 @@ interface ClientOptions {
|
|
|
7345
7358
|
logLevel?: LogLevel;
|
|
7346
7359
|
/** HTTP base URL for identity auth (derived from WS URL if not provided) */
|
|
7347
7360
|
httpBaseUrl?: string;
|
|
7361
|
+
/**
|
|
7362
|
+
* Renew the access token somewhere other than the engine's refresh endpoint.
|
|
7363
|
+
*
|
|
7364
|
+
* For pages whose session lives in an HttpOnly cookie on the site's own server: the
|
|
7365
|
+
* page never sees a refresh token, so when it needs a new access token (the stored one
|
|
7366
|
+
* expired, the socket refused it, the auto-refresh timer fired) it asks the site, which
|
|
7367
|
+
* renews the session. Resolve to the new access token (and optionally its `expiresAt`,
|
|
7368
|
+
* seconds or milliseconds since the epoch), or null when the session is over. When set,
|
|
7369
|
+
* `refreshToken()` calls this instead of POSTing a refresh token, and works without any
|
|
7370
|
+
* refresh token in storage. Concurrent callers share one call.
|
|
7371
|
+
*/
|
|
7372
|
+
tokenRefresher?: () => Promise<{
|
|
7373
|
+
accessToken: string;
|
|
7374
|
+
expiresAt?: number;
|
|
7375
|
+
} | string | null>;
|
|
7348
7376
|
}
|
|
7349
7377
|
/**
|
|
7350
7378
|
* RaisinDB client
|
|
@@ -7388,6 +7416,7 @@ declare class RaisinClient extends EventEmitter {
|
|
|
7388
7416
|
private _currentUser;
|
|
7389
7417
|
private _httpBaseUrl;
|
|
7390
7418
|
private _repository;
|
|
7419
|
+
private _tokenRefresher;
|
|
7391
7420
|
private _authListeners;
|
|
7392
7421
|
private _userChangeListeners;
|
|
7393
7422
|
private _userHomeSubscription;
|
|
@@ -7599,6 +7628,8 @@ declare class RaisinClient extends EventEmitter {
|
|
|
7599
7628
|
/** In-flight refresh shared by concurrent refreshToken() callers. */
|
|
7600
7629
|
private _refreshInFlight;
|
|
7601
7630
|
private _refreshToken;
|
|
7631
|
+
/** `refreshToken()` through `ClientOptions.tokenRefresher` (the session is not the page's to renew). */
|
|
7632
|
+
private _refreshViaHook;
|
|
7602
7633
|
/**
|
|
7603
7634
|
* Fetch with a timeout derived from `requestTimeout`.
|
|
7604
7635
|
*
|
package/dist/{conversation-list-store-BNYosL8k.d.ts → conversation-list-store-D-W6_nsv.d.ts}
RENAMED
|
@@ -3009,6 +3009,12 @@ interface IdentityMe {
|
|
|
3009
3009
|
roles: string[];
|
|
3010
3010
|
anonymous: boolean;
|
|
3011
3011
|
home: string | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* Stable person key: the last segment of `home` when it is a minted user
|
|
3014
|
+
* key (`u_` + 22 base62, homes at `/users/internal/<user_key>`). Absent for
|
|
3015
|
+
* anonymous callers and for homes created before keys.
|
|
3016
|
+
*/
|
|
3017
|
+
user_key?: string;
|
|
3012
3018
|
}
|
|
3013
3019
|
/**
|
|
3014
3020
|
* Identity authentication scoped to one repository.
|
|
@@ -3039,7 +3045,14 @@ declare class IdentityAuthApi {
|
|
|
3039
3045
|
* only when handling the token yourself, and note it is single-use.
|
|
3040
3046
|
*/
|
|
3041
3047
|
verifyMagicLink(token: string): Promise<IdentityAuthResult>;
|
|
3042
|
-
/**
|
|
3048
|
+
/**
|
|
3049
|
+
* Sign in with email and password, where the repository enables it.
|
|
3050
|
+
*
|
|
3051
|
+
* `rememberMe` chooses the lifetime of the sign-in: the session AND its refresh
|
|
3052
|
+
* token last 30 days with it and 24 hours without (both configurable per tenant:
|
|
3053
|
+
* `refresh_token_duration_days`, `refresh_token_session_hours`). Refreshing never
|
|
3054
|
+
* extends a session past that.
|
|
3055
|
+
*/
|
|
3043
3056
|
login(email: string, password: string, options?: {
|
|
3044
3057
|
rememberMe?: boolean;
|
|
3045
3058
|
}): Promise<IdentityAuthResult>;
|
|
@@ -7345,6 +7358,21 @@ interface ClientOptions {
|
|
|
7345
7358
|
logLevel?: LogLevel;
|
|
7346
7359
|
/** HTTP base URL for identity auth (derived from WS URL if not provided) */
|
|
7347
7360
|
httpBaseUrl?: string;
|
|
7361
|
+
/**
|
|
7362
|
+
* Renew the access token somewhere other than the engine's refresh endpoint.
|
|
7363
|
+
*
|
|
7364
|
+
* For pages whose session lives in an HttpOnly cookie on the site's own server: the
|
|
7365
|
+
* page never sees a refresh token, so when it needs a new access token (the stored one
|
|
7366
|
+
* expired, the socket refused it, the auto-refresh timer fired) it asks the site, which
|
|
7367
|
+
* renews the session. Resolve to the new access token (and optionally its `expiresAt`,
|
|
7368
|
+
* seconds or milliseconds since the epoch), or null when the session is over. When set,
|
|
7369
|
+
* `refreshToken()` calls this instead of POSTing a refresh token, and works without any
|
|
7370
|
+
* refresh token in storage. Concurrent callers share one call.
|
|
7371
|
+
*/
|
|
7372
|
+
tokenRefresher?: () => Promise<{
|
|
7373
|
+
accessToken: string;
|
|
7374
|
+
expiresAt?: number;
|
|
7375
|
+
} | string | null>;
|
|
7348
7376
|
}
|
|
7349
7377
|
/**
|
|
7350
7378
|
* RaisinDB client
|
|
@@ -7388,6 +7416,7 @@ declare class RaisinClient extends EventEmitter {
|
|
|
7388
7416
|
private _currentUser;
|
|
7389
7417
|
private _httpBaseUrl;
|
|
7390
7418
|
private _repository;
|
|
7419
|
+
private _tokenRefresher;
|
|
7391
7420
|
private _authListeners;
|
|
7392
7421
|
private _userChangeListeners;
|
|
7393
7422
|
private _userHomeSubscription;
|
|
@@ -7599,6 +7628,8 @@ declare class RaisinClient extends EventEmitter {
|
|
|
7599
7628
|
/** In-flight refresh shared by concurrent refreshToken() callers. */
|
|
7600
7629
|
private _refreshInFlight;
|
|
7601
7630
|
private _refreshToken;
|
|
7631
|
+
/** `refreshToken()` through `ClientOptions.tokenRefresher` (the session is not the page's to renew). */
|
|
7632
|
+
private _refreshViaHook;
|
|
7602
7633
|
/**
|
|
7603
7634
|
* Fetch with a timeout derived from `requestTimeout`.
|
|
7604
7635
|
*
|
|
@@ -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-
|
|
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-D-W6_nsv.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-
|
|
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-D-W6_nsv.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-
|
|
2
|
-
export { au as AgentRunChildView, aR as AgentRunCommand, aS as AgentRunControlAck, aT as AgentRunEvent, aU as AgentRunFence, aV as AgentRunStatus, aW as AgentRunSubject, av as AgentRunSubscribeOptions, aw as AgentRunSubscription, aX as AgentRunView, aq as AgentRunsApi, aY as AgentRunsTransport, at as AgentRunsWsApi, dG as AiContainerConfig, dF as AiErrorBehavior, dE as AiToolMode, eq as AnonymousConversation, x as Answer, ag as Archetypes, y as AskOptions, bF as AuditLogEntry, bE as AuditQueryPayload, O as AuthEvent, A as AuthManager, cT as AuthProviders, Q as AuthStateChange, V as AuthStateChangeCallback, bU as AuthenticatePayload, bV as AuthenticateResponse, cp as BatchFileProgress, aZ as BeginOperationOptions, aj as BranchDiff, ak as BranchDivergence, ai as Branches, cy as BrowserFileSource, dy as CanonicalTaskType, aF as ChangeOp, aG as ChangesetOptions, e7 as ChatAssistantMessageEvent, e9 as ChatCompletedEvent, ei as ChatConversationCreatedEvent, eb as ChatDoneEvent, e1 as ChatEvent, ea as ChatFailedEvent, el as ChatLogEvent, b as ChatMessage, ek as ChatMessageDeliveredEvent, ej as ChatMessageSavedEvent, dD as ChatStepConfig, dC as ChatTerminationConfig, dB as ChatTerminationMode, e6 as ChatTextChunkEvent, ee as ChatThoughtChunkEvent, ed as ChatToolCallCompletedEvent, ec as ChatToolCallStartedEvent, e8 as ChatWaitingEvent, aA as CheckpointOptions, ax as ChildAction, ay as ChildContext, az as ChildObjective, cl as ChunkUploadResponse, z as Citation, K as ClientMode, cn as CompleteUploadRequest, co as CompleteUploadResponse, bg as Connection, bh as ConnectionOptions, C as ConnectionState, dK as ContainerRule, ds as ContainerType, e2 as Conversation, dm as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, em as ConversationManager, eA as ConversationManagerOptions, e4 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, ex as ConversationSubscription, e3 as ConversationType, a_ as CreateAgentRunOptions, a$ as CreateAgentRunResult, ev as CreateConvoOptions, cj as CreateUploadRequest, ck as CreateUploadResponse, al as CrossBranchCopySummary, am as CrossBranchNodeChange, L as CurrentUser, cx as DEFAULT_BATCH_CONCURRENCY, cw as DEFAULT_BRANCH, cr as DEFAULT_CHUNK_SIZE, cs as DEFAULT_MAX_RETRIES, cv as DEFAULT_NODE_TYPE, ct as DEFAULT_RETRY_BASE_DELAY, cu as DEFAULT_RETRY_MAX_DELAY, en as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, a3 as DatabaseHttpOptions, ah as ElementTypes, br as ErrorInfo, be as EventCallback, bc as EventHandler, E as EventMessage, bd as EventSubscriptions, dL as FanOutConfig, b0 as FinishOperationOptions, cG as FlowClient, F as FlowClientOptions, cI as FlowCollectResult, dg as FlowCompletedEvent, dQ as FlowDefinition, dN as FlowDefinitionContainer, dP as FlowDefinitionNode, dH as FlowDefinitionNodeBase, dJ as FlowDefinitionStep, du as FlowErrorStrategy, j as FlowExecutionEvent, dh as FlowFailedEvent, d7 as FlowInstanceStatus, d8 as FlowInstanceStatusResponse, d9 as FlowMetrics, df as FlowResumedEvent, d6 as FlowRunResponse, cH as FlowRunResult, dI as FlowStepProperties, de as FlowWaitingEvent, i as FlowsApi, cU as FunctionInvokeOptions, cV as FunctionInvokeResponse, cW as FunctionInvokeSyncResponse, cJ as FunctionsApi, dA as HandoffTarget, b7 as HttpArchetypes, $ as HttpCurrentUser, Z as HttpDatabase, b8 as HttpElementTypes, cK as HttpFunctionsApi, b6 as HttpNodeTypes, a0 as HttpUserNode, _ as HttpWorkspaceClient, dx as HumanTaskType, cL as IdentityAuthApi, bm as IdentityAuthError, bl as IdentityAuthResponse, cN as IdentityAuthResult, cO as IdentityAuthTransport, cP as IdentityInfo, cQ as IdentityMe, I as IdentityUser, dZ as InboxApi, d_ as InboxApiOptions, dR as InboxTask, dS as InboxTaskStatus, bt as IncomingRelation, eu as ListConversationsOptions, b1 as ListInvocationsFilter, d$ as ListTasksOptions, e0 as ListTasksResponse, bj as LocalStorageTokenStorage, bC as LocalizedNode, dp as LogEvent, c7 as LogLevel, cd as LoggerConfig, dO as LoopConfig, cS as MagicLinkOptions, cR as MagicLinkSent, aB as MailboxEntry, d1 as McpCallToolResult, cX as McpClient, d0 as McpContentBlock, cZ as McpFrameStream, c_ as McpJsonRpcFrame, d3 as McpReadResourceResult, d2 as McpResourceContents, d5 as McpResourceSubscription, d4 as McpResourceUpdate, c$ as McpToolDescriptor, cY as McpTransport, bi as MemoryTokenStorage, dM as MergeStrategy, e5 as MessageBody, eg as MessageChild, dn as MessageSavedEvent, aa as NodeCreateDeepOptions, bw as NodeCreateDeepPayload, a9 as NodeCreateOptions, bv as NodeCreatePayload, by as NodeDeletePayload, aE as NodeDevApi, aH as NodeDevCommitOutcome, aI as NodeDevCommon, aJ as NodeDevConflict, aP as NodeDevReceipt, aK as NodeDevTransport, an as NodeDiffInfo, bp as NodeEventPayload, cz as NodeFileSource, bB as NodeGetByLocalizedPathPayload, bz as NodeGetPayload, bA as NodeHistoryPayload, aL as NodeLocator, a8 as NodeOperations, ac as NodeQueryOptions, bG as NodeQueryPayload, bu as NodeRelationships, aM as NodeRevision, aN as NodeTarget, af as NodeTypes, ab as NodeUpdateOptions, bx as NodeUpdatePayload, aO as OpReceipt, ez as PlanActionOptions, ey as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, eh as PlanTask, dU as RETRY_STRATEGIES, dr as RaisinReference, c6 as ReconnectManager, bW as RefreshTokenPayload, bH as RelationAddPayload, bI as RelationRemovePayload, bJ as RelationsGetPayload, bq as RequestContext, bn as RequestEnvelope, c0 as RequestType, bo as ResponseEnvelope, bs as ResponseMetadata, c1 as ResponseStatus, dv as RetryConfig, dw as RetryStrategy, bD as RevisionEntry, b2 as ScheduleInvocationOptions, b3 as ScheduledInvocation, b4 as ScheduledInvocationRef, b5 as ScheduledInvocationTargetKind, ap as SchedulerApi, b9 as SchemaCommit, G as SearchOptions, J as SearchPassage, ew as SendMessageOptions, a1 as SignAssetOptions, a2 as SignedAssetUrl, aC as SpawnChildOptions, aD as SpawnChildResult, ba as SqlQuery, bK as SqlQueryPayload, bL as SqlResult, er as StartAnonymousOptions, db as StepCompletedEvent, dt as StepErrorBehavior, dd as StepFailedEvent, da as StepStartedEvent, dc as StepUsage, bR as SubscribePayload, bf as Subscription, S as SubscriptionFilters, bT as SubscriptionResponse, ao as Tags, dT as TaskCompletionResult, dz as TaskOption, di as TextChunkEvent, dl as ThoughtChunkEvent, bk as TokenStorage, dk as ToolCallCompletedEvent, T as ToolCallInfo, ef as ToolCallRecord, dj as ToolCallStartedEvent, ad as Transaction, bX as TransactionBeginPayload, bY as TransactionBeginResponse, bZ as TransactionCommitPayload, b_ as TransactionCommitResponse, ae as TransactionOptions, b$ as TransactionRollbackPayload, bS as UnsubscribePayload, ci as Upload, cq as UploadError, cF as UploadManager, cf as UploadOptions, cg as UploadProgress, ch as UploadResult, ce as UploadStatus, cm as UploadStatusResponse, cE as Uploader, Y as UserChangeCallback, X as UserChangeEvent, M as UserNode, eo as VisitorChatError, es as VisitorChatLimits, et as VisitorSessionStore, aQ as WorkRoot, bM as Workspace, a4 as WorkspaceClient, a6 as WorkspaceCreateOptions, bN as WorkspaceCreatePayload, bP as WorkspaceDeletePayload, bO as WorkspaceGetPayload, a5 as WorkspaceManager, W as WorkspaceScope, a7 as WorkspaceUpdateOptions, bQ as WorkspaceUpdatePayload, cC as calculateChunkCount, c9 as configureLogger, cA as createFileSource, bb as createSqlHandler, c3 as decodeMessage, ep as defaultVisitorSessionStore, c2 as encodeMessage, cD as getChunkRange, cB as getContentType, cb as getLogLevel, cc as getLoggerConfig, dV as getRefDisplayName, dW as getRefPath, c4 as isEventMessage, dY as isFlowDefinitionContainer, dX as isFlowDefinitionStep, c5 as isResponseEnvelope, dq as isTerminalEvent, c8 as logger, ar as newControlId, eB as projectPlansFromMessages, cM as readTokensFromFragment, ca as setLogLevel, as as subjectOf } from './conversation-list-store-
|
|
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-
|
|
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-D-W6_nsv.mjs';
|
|
2
|
+
export { au as AgentRunChildView, aR as AgentRunCommand, aS as AgentRunControlAck, aT as AgentRunEvent, aU as AgentRunFence, aV as AgentRunStatus, aW as AgentRunSubject, av as AgentRunSubscribeOptions, aw as AgentRunSubscription, aX as AgentRunView, aq as AgentRunsApi, aY as AgentRunsTransport, at as AgentRunsWsApi, dG as AiContainerConfig, dF as AiErrorBehavior, dE as AiToolMode, eq as AnonymousConversation, x as Answer, ag as Archetypes, y as AskOptions, bF as AuditLogEntry, bE as AuditQueryPayload, O as AuthEvent, A as AuthManager, cT as AuthProviders, Q as AuthStateChange, V as AuthStateChangeCallback, bU as AuthenticatePayload, bV as AuthenticateResponse, cp as BatchFileProgress, aZ as BeginOperationOptions, aj as BranchDiff, ak as BranchDivergence, ai as Branches, cy as BrowserFileSource, dy as CanonicalTaskType, aF as ChangeOp, aG as ChangesetOptions, e7 as ChatAssistantMessageEvent, e9 as ChatCompletedEvent, ei as ChatConversationCreatedEvent, eb as ChatDoneEvent, e1 as ChatEvent, ea as ChatFailedEvent, el as ChatLogEvent, b as ChatMessage, ek as ChatMessageDeliveredEvent, ej as ChatMessageSavedEvent, dD as ChatStepConfig, dC as ChatTerminationConfig, dB as ChatTerminationMode, e6 as ChatTextChunkEvent, ee as ChatThoughtChunkEvent, ed as ChatToolCallCompletedEvent, ec as ChatToolCallStartedEvent, e8 as ChatWaitingEvent, aA as CheckpointOptions, ax as ChildAction, ay as ChildContext, az as ChildObjective, cl as ChunkUploadResponse, z as Citation, K as ClientMode, cn as CompleteUploadRequest, co as CompleteUploadResponse, bg as Connection, bh as ConnectionOptions, C as ConnectionState, dK as ContainerRule, ds as ContainerType, e2 as Conversation, dm as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, em as ConversationManager, eA as ConversationManagerOptions, e4 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, ex as ConversationSubscription, e3 as ConversationType, a_ as CreateAgentRunOptions, a$ as CreateAgentRunResult, ev as CreateConvoOptions, cj as CreateUploadRequest, ck as CreateUploadResponse, al as CrossBranchCopySummary, am as CrossBranchNodeChange, L as CurrentUser, cx as DEFAULT_BATCH_CONCURRENCY, cw as DEFAULT_BRANCH, cr as DEFAULT_CHUNK_SIZE, cs as DEFAULT_MAX_RETRIES, cv as DEFAULT_NODE_TYPE, ct as DEFAULT_RETRY_BASE_DELAY, cu as DEFAULT_RETRY_MAX_DELAY, en as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, a3 as DatabaseHttpOptions, ah as ElementTypes, br as ErrorInfo, be as EventCallback, bc as EventHandler, E as EventMessage, bd as EventSubscriptions, dL as FanOutConfig, b0 as FinishOperationOptions, cG as FlowClient, F as FlowClientOptions, cI as FlowCollectResult, dg as FlowCompletedEvent, dQ as FlowDefinition, dN as FlowDefinitionContainer, dP as FlowDefinitionNode, dH as FlowDefinitionNodeBase, dJ as FlowDefinitionStep, du as FlowErrorStrategy, j as FlowExecutionEvent, dh as FlowFailedEvent, d7 as FlowInstanceStatus, d8 as FlowInstanceStatusResponse, d9 as FlowMetrics, df as FlowResumedEvent, d6 as FlowRunResponse, cH as FlowRunResult, dI as FlowStepProperties, de as FlowWaitingEvent, i as FlowsApi, cU as FunctionInvokeOptions, cV as FunctionInvokeResponse, cW as FunctionInvokeSyncResponse, cJ as FunctionsApi, dA as HandoffTarget, b7 as HttpArchetypes, $ as HttpCurrentUser, Z as HttpDatabase, b8 as HttpElementTypes, cK as HttpFunctionsApi, b6 as HttpNodeTypes, a0 as HttpUserNode, _ as HttpWorkspaceClient, dx as HumanTaskType, cL as IdentityAuthApi, bm as IdentityAuthError, bl as IdentityAuthResponse, cN as IdentityAuthResult, cO as IdentityAuthTransport, cP as IdentityInfo, cQ as IdentityMe, I as IdentityUser, dZ as InboxApi, d_ as InboxApiOptions, dR as InboxTask, dS as InboxTaskStatus, bt as IncomingRelation, eu as ListConversationsOptions, b1 as ListInvocationsFilter, d$ as ListTasksOptions, e0 as ListTasksResponse, bj as LocalStorageTokenStorage, bC as LocalizedNode, dp as LogEvent, c7 as LogLevel, cd as LoggerConfig, dO as LoopConfig, cS as MagicLinkOptions, cR as MagicLinkSent, aB as MailboxEntry, d1 as McpCallToolResult, cX as McpClient, d0 as McpContentBlock, cZ as McpFrameStream, c_ as McpJsonRpcFrame, d3 as McpReadResourceResult, d2 as McpResourceContents, d5 as McpResourceSubscription, d4 as McpResourceUpdate, c$ as McpToolDescriptor, cY as McpTransport, bi as MemoryTokenStorage, dM as MergeStrategy, e5 as MessageBody, eg as MessageChild, dn as MessageSavedEvent, aa as NodeCreateDeepOptions, bw as NodeCreateDeepPayload, a9 as NodeCreateOptions, bv as NodeCreatePayload, by as NodeDeletePayload, aE as NodeDevApi, aH as NodeDevCommitOutcome, aI as NodeDevCommon, aJ as NodeDevConflict, aP as NodeDevReceipt, aK as NodeDevTransport, an as NodeDiffInfo, bp as NodeEventPayload, cz as NodeFileSource, bB as NodeGetByLocalizedPathPayload, bz as NodeGetPayload, bA as NodeHistoryPayload, aL as NodeLocator, a8 as NodeOperations, ac as NodeQueryOptions, bG as NodeQueryPayload, bu as NodeRelationships, aM as NodeRevision, aN as NodeTarget, af as NodeTypes, ab as NodeUpdateOptions, bx as NodeUpdatePayload, aO as OpReceipt, ez as PlanActionOptions, ey as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, eh as PlanTask, dU as RETRY_STRATEGIES, dr as RaisinReference, c6 as ReconnectManager, bW as RefreshTokenPayload, bH as RelationAddPayload, bI as RelationRemovePayload, bJ as RelationsGetPayload, bq as RequestContext, bn as RequestEnvelope, c0 as RequestType, bo as ResponseEnvelope, bs as ResponseMetadata, c1 as ResponseStatus, dv as RetryConfig, dw as RetryStrategy, bD as RevisionEntry, b2 as ScheduleInvocationOptions, b3 as ScheduledInvocation, b4 as ScheduledInvocationRef, b5 as ScheduledInvocationTargetKind, ap as SchedulerApi, b9 as SchemaCommit, G as SearchOptions, J as SearchPassage, ew as SendMessageOptions, a1 as SignAssetOptions, a2 as SignedAssetUrl, aC as SpawnChildOptions, aD as SpawnChildResult, ba as SqlQuery, bK as SqlQueryPayload, bL as SqlResult, er as StartAnonymousOptions, db as StepCompletedEvent, dt as StepErrorBehavior, dd as StepFailedEvent, da as StepStartedEvent, dc as StepUsage, bR as SubscribePayload, bf as Subscription, S as SubscriptionFilters, bT as SubscriptionResponse, ao as Tags, dT as TaskCompletionResult, dz as TaskOption, di as TextChunkEvent, dl as ThoughtChunkEvent, bk as TokenStorage, dk as ToolCallCompletedEvent, T as ToolCallInfo, ef as ToolCallRecord, dj as ToolCallStartedEvent, ad as Transaction, bX as TransactionBeginPayload, bY as TransactionBeginResponse, bZ as TransactionCommitPayload, b_ as TransactionCommitResponse, ae as TransactionOptions, b$ as TransactionRollbackPayload, bS as UnsubscribePayload, ci as Upload, cq as UploadError, cF as UploadManager, cf as UploadOptions, cg as UploadProgress, ch as UploadResult, ce as UploadStatus, cm as UploadStatusResponse, cE as Uploader, Y as UserChangeCallback, X as UserChangeEvent, M as UserNode, eo as VisitorChatError, es as VisitorChatLimits, et as VisitorSessionStore, aQ as WorkRoot, bM as Workspace, a4 as WorkspaceClient, a6 as WorkspaceCreateOptions, bN as WorkspaceCreatePayload, bP as WorkspaceDeletePayload, bO as WorkspaceGetPayload, a5 as WorkspaceManager, W as WorkspaceScope, a7 as WorkspaceUpdateOptions, bQ as WorkspaceUpdatePayload, cC as calculateChunkCount, c9 as configureLogger, cA as createFileSource, bb as createSqlHandler, c3 as decodeMessage, ep as defaultVisitorSessionStore, c2 as encodeMessage, cD as getChunkRange, cB as getContentType, cb as getLogLevel, cc as getLoggerConfig, dV as getRefDisplayName, dW as getRefPath, c4 as isEventMessage, dY as isFlowDefinitionContainer, dX as isFlowDefinitionStep, c5 as isResponseEnvelope, dq as isTerminalEvent, c8 as logger, ar as newControlId, eB as projectPlansFromMessages, cM as readTokensFromFragment, ca as setLogLevel, as as subjectOf } from './conversation-list-store-D-W6_nsv.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-CeBRaSop.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-
|
|
5
|
+
export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-CQoB4FEm.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-
|
|
2
|
-
export { au as AgentRunChildView, aR as AgentRunCommand, aS as AgentRunControlAck, aT as AgentRunEvent, aU as AgentRunFence, aV as AgentRunStatus, aW as AgentRunSubject, av as AgentRunSubscribeOptions, aw as AgentRunSubscription, aX as AgentRunView, aq as AgentRunsApi, aY as AgentRunsTransport, at as AgentRunsWsApi, dG as AiContainerConfig, dF as AiErrorBehavior, dE as AiToolMode, eq as AnonymousConversation, x as Answer, ag as Archetypes, y as AskOptions, bF as AuditLogEntry, bE as AuditQueryPayload, O as AuthEvent, A as AuthManager, cT as AuthProviders, Q as AuthStateChange, V as AuthStateChangeCallback, bU as AuthenticatePayload, bV as AuthenticateResponse, cp as BatchFileProgress, aZ as BeginOperationOptions, aj as BranchDiff, ak as BranchDivergence, ai as Branches, cy as BrowserFileSource, dy as CanonicalTaskType, aF as ChangeOp, aG as ChangesetOptions, e7 as ChatAssistantMessageEvent, e9 as ChatCompletedEvent, ei as ChatConversationCreatedEvent, eb as ChatDoneEvent, e1 as ChatEvent, ea as ChatFailedEvent, el as ChatLogEvent, b as ChatMessage, ek as ChatMessageDeliveredEvent, ej as ChatMessageSavedEvent, dD as ChatStepConfig, dC as ChatTerminationConfig, dB as ChatTerminationMode, e6 as ChatTextChunkEvent, ee as ChatThoughtChunkEvent, ed as ChatToolCallCompletedEvent, ec as ChatToolCallStartedEvent, e8 as ChatWaitingEvent, aA as CheckpointOptions, ax as ChildAction, ay as ChildContext, az as ChildObjective, cl as ChunkUploadResponse, z as Citation, K as ClientMode, cn as CompleteUploadRequest, co as CompleteUploadResponse, bg as Connection, bh as ConnectionOptions, C as ConnectionState, dK as ContainerRule, ds as ContainerType, e2 as Conversation, dm as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, em as ConversationManager, eA as ConversationManagerOptions, e4 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, ex as ConversationSubscription, e3 as ConversationType, a_ as CreateAgentRunOptions, a$ as CreateAgentRunResult, ev as CreateConvoOptions, cj as CreateUploadRequest, ck as CreateUploadResponse, al as CrossBranchCopySummary, am as CrossBranchNodeChange, L as CurrentUser, cx as DEFAULT_BATCH_CONCURRENCY, cw as DEFAULT_BRANCH, cr as DEFAULT_CHUNK_SIZE, cs as DEFAULT_MAX_RETRIES, cv as DEFAULT_NODE_TYPE, ct as DEFAULT_RETRY_BASE_DELAY, cu as DEFAULT_RETRY_MAX_DELAY, en as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, a3 as DatabaseHttpOptions, ah as ElementTypes, br as ErrorInfo, be as EventCallback, bc as EventHandler, E as EventMessage, bd as EventSubscriptions, dL as FanOutConfig, b0 as FinishOperationOptions, cG as FlowClient, F as FlowClientOptions, cI as FlowCollectResult, dg as FlowCompletedEvent, dQ as FlowDefinition, dN as FlowDefinitionContainer, dP as FlowDefinitionNode, dH as FlowDefinitionNodeBase, dJ as FlowDefinitionStep, du as FlowErrorStrategy, j as FlowExecutionEvent, dh as FlowFailedEvent, d7 as FlowInstanceStatus, d8 as FlowInstanceStatusResponse, d9 as FlowMetrics, df as FlowResumedEvent, d6 as FlowRunResponse, cH as FlowRunResult, dI as FlowStepProperties, de as FlowWaitingEvent, i as FlowsApi, cU as FunctionInvokeOptions, cV as FunctionInvokeResponse, cW as FunctionInvokeSyncResponse, cJ as FunctionsApi, dA as HandoffTarget, b7 as HttpArchetypes, $ as HttpCurrentUser, Z as HttpDatabase, b8 as HttpElementTypes, cK as HttpFunctionsApi, b6 as HttpNodeTypes, a0 as HttpUserNode, _ as HttpWorkspaceClient, dx as HumanTaskType, cL as IdentityAuthApi, bm as IdentityAuthError, bl as IdentityAuthResponse, cN as IdentityAuthResult, cO as IdentityAuthTransport, cP as IdentityInfo, cQ as IdentityMe, I as IdentityUser, dZ as InboxApi, d_ as InboxApiOptions, dR as InboxTask, dS as InboxTaskStatus, bt as IncomingRelation, eu as ListConversationsOptions, b1 as ListInvocationsFilter, d$ as ListTasksOptions, e0 as ListTasksResponse, bj as LocalStorageTokenStorage, bC as LocalizedNode, dp as LogEvent, c7 as LogLevel, cd as LoggerConfig, dO as LoopConfig, cS as MagicLinkOptions, cR as MagicLinkSent, aB as MailboxEntry, d1 as McpCallToolResult, cX as McpClient, d0 as McpContentBlock, cZ as McpFrameStream, c_ as McpJsonRpcFrame, d3 as McpReadResourceResult, d2 as McpResourceContents, d5 as McpResourceSubscription, d4 as McpResourceUpdate, c$ as McpToolDescriptor, cY as McpTransport, bi as MemoryTokenStorage, dM as MergeStrategy, e5 as MessageBody, eg as MessageChild, dn as MessageSavedEvent, aa as NodeCreateDeepOptions, bw as NodeCreateDeepPayload, a9 as NodeCreateOptions, bv as NodeCreatePayload, by as NodeDeletePayload, aE as NodeDevApi, aH as NodeDevCommitOutcome, aI as NodeDevCommon, aJ as NodeDevConflict, aP as NodeDevReceipt, aK as NodeDevTransport, an as NodeDiffInfo, bp as NodeEventPayload, cz as NodeFileSource, bB as NodeGetByLocalizedPathPayload, bz as NodeGetPayload, bA as NodeHistoryPayload, aL as NodeLocator, a8 as NodeOperations, ac as NodeQueryOptions, bG as NodeQueryPayload, bu as NodeRelationships, aM as NodeRevision, aN as NodeTarget, af as NodeTypes, ab as NodeUpdateOptions, bx as NodeUpdatePayload, aO as OpReceipt, ez as PlanActionOptions, ey as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, eh as PlanTask, dU as RETRY_STRATEGIES, dr as RaisinReference, c6 as ReconnectManager, bW as RefreshTokenPayload, bH as RelationAddPayload, bI as RelationRemovePayload, bJ as RelationsGetPayload, bq as RequestContext, bn as RequestEnvelope, c0 as RequestType, bo as ResponseEnvelope, bs as ResponseMetadata, c1 as ResponseStatus, dv as RetryConfig, dw as RetryStrategy, bD as RevisionEntry, b2 as ScheduleInvocationOptions, b3 as ScheduledInvocation, b4 as ScheduledInvocationRef, b5 as ScheduledInvocationTargetKind, ap as SchedulerApi, b9 as SchemaCommit, G as SearchOptions, J as SearchPassage, ew as SendMessageOptions, a1 as SignAssetOptions, a2 as SignedAssetUrl, aC as SpawnChildOptions, aD as SpawnChildResult, ba as SqlQuery, bK as SqlQueryPayload, bL as SqlResult, er as StartAnonymousOptions, db as StepCompletedEvent, dt as StepErrorBehavior, dd as StepFailedEvent, da as StepStartedEvent, dc as StepUsage, bR as SubscribePayload, bf as Subscription, S as SubscriptionFilters, bT as SubscriptionResponse, ao as Tags, dT as TaskCompletionResult, dz as TaskOption, di as TextChunkEvent, dl as ThoughtChunkEvent, bk as TokenStorage, dk as ToolCallCompletedEvent, T as ToolCallInfo, ef as ToolCallRecord, dj as ToolCallStartedEvent, ad as Transaction, bX as TransactionBeginPayload, bY as TransactionBeginResponse, bZ as TransactionCommitPayload, b_ as TransactionCommitResponse, ae as TransactionOptions, b$ as TransactionRollbackPayload, bS as UnsubscribePayload, ci as Upload, cq as UploadError, cF as UploadManager, cf as UploadOptions, cg as UploadProgress, ch as UploadResult, ce as UploadStatus, cm as UploadStatusResponse, cE as Uploader, Y as UserChangeCallback, X as UserChangeEvent, M as UserNode, eo as VisitorChatError, es as VisitorChatLimits, et as VisitorSessionStore, aQ as WorkRoot, bM as Workspace, a4 as WorkspaceClient, a6 as WorkspaceCreateOptions, bN as WorkspaceCreatePayload, bP as WorkspaceDeletePayload, bO as WorkspaceGetPayload, a5 as WorkspaceManager, W as WorkspaceScope, a7 as WorkspaceUpdateOptions, bQ as WorkspaceUpdatePayload, cC as calculateChunkCount, c9 as configureLogger, cA as createFileSource, bb as createSqlHandler, c3 as decodeMessage, ep as defaultVisitorSessionStore, c2 as encodeMessage, cD as getChunkRange, cB as getContentType, cb as getLogLevel, cc as getLoggerConfig, dV as getRefDisplayName, dW as getRefPath, c4 as isEventMessage, dY as isFlowDefinitionContainer, dX as isFlowDefinitionStep, c5 as isResponseEnvelope, dq as isTerminalEvent, c8 as logger, ar as newControlId, eB as projectPlansFromMessages, cM as readTokensFromFragment, ca as setLogLevel, as as subjectOf } from './conversation-list-store-
|
|
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-
|
|
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-D-W6_nsv.js';
|
|
2
|
+
export { au as AgentRunChildView, aR as AgentRunCommand, aS as AgentRunControlAck, aT as AgentRunEvent, aU as AgentRunFence, aV as AgentRunStatus, aW as AgentRunSubject, av as AgentRunSubscribeOptions, aw as AgentRunSubscription, aX as AgentRunView, aq as AgentRunsApi, aY as AgentRunsTransport, at as AgentRunsWsApi, dG as AiContainerConfig, dF as AiErrorBehavior, dE as AiToolMode, eq as AnonymousConversation, x as Answer, ag as Archetypes, y as AskOptions, bF as AuditLogEntry, bE as AuditQueryPayload, O as AuthEvent, A as AuthManager, cT as AuthProviders, Q as AuthStateChange, V as AuthStateChangeCallback, bU as AuthenticatePayload, bV as AuthenticateResponse, cp as BatchFileProgress, aZ as BeginOperationOptions, aj as BranchDiff, ak as BranchDivergence, ai as Branches, cy as BrowserFileSource, dy as CanonicalTaskType, aF as ChangeOp, aG as ChangesetOptions, e7 as ChatAssistantMessageEvent, e9 as ChatCompletedEvent, ei as ChatConversationCreatedEvent, eb as ChatDoneEvent, e1 as ChatEvent, ea as ChatFailedEvent, el as ChatLogEvent, b as ChatMessage, ek as ChatMessageDeliveredEvent, ej as ChatMessageSavedEvent, dD as ChatStepConfig, dC as ChatTerminationConfig, dB as ChatTerminationMode, e6 as ChatTextChunkEvent, ee as ChatThoughtChunkEvent, ed as ChatToolCallCompletedEvent, ec as ChatToolCallStartedEvent, e8 as ChatWaitingEvent, aA as CheckpointOptions, ax as ChildAction, ay as ChildContext, az as ChildObjective, cl as ChunkUploadResponse, z as Citation, K as ClientMode, cn as CompleteUploadRequest, co as CompleteUploadResponse, bg as Connection, bh as ConnectionOptions, C as ConnectionState, dK as ContainerRule, ds as ContainerType, e2 as Conversation, dm as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, em as ConversationManager, eA as ConversationManagerOptions, e4 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, ex as ConversationSubscription, e3 as ConversationType, a_ as CreateAgentRunOptions, a$ as CreateAgentRunResult, ev as CreateConvoOptions, cj as CreateUploadRequest, ck as CreateUploadResponse, al as CrossBranchCopySummary, am as CrossBranchNodeChange, L as CurrentUser, cx as DEFAULT_BATCH_CONCURRENCY, cw as DEFAULT_BRANCH, cr as DEFAULT_CHUNK_SIZE, cs as DEFAULT_MAX_RETRIES, cv as DEFAULT_NODE_TYPE, ct as DEFAULT_RETRY_BASE_DELAY, cu as DEFAULT_RETRY_MAX_DELAY, en as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, a3 as DatabaseHttpOptions, ah as ElementTypes, br as ErrorInfo, be as EventCallback, bc as EventHandler, E as EventMessage, bd as EventSubscriptions, dL as FanOutConfig, b0 as FinishOperationOptions, cG as FlowClient, F as FlowClientOptions, cI as FlowCollectResult, dg as FlowCompletedEvent, dQ as FlowDefinition, dN as FlowDefinitionContainer, dP as FlowDefinitionNode, dH as FlowDefinitionNodeBase, dJ as FlowDefinitionStep, du as FlowErrorStrategy, j as FlowExecutionEvent, dh as FlowFailedEvent, d7 as FlowInstanceStatus, d8 as FlowInstanceStatusResponse, d9 as FlowMetrics, df as FlowResumedEvent, d6 as FlowRunResponse, cH as FlowRunResult, dI as FlowStepProperties, de as FlowWaitingEvent, i as FlowsApi, cU as FunctionInvokeOptions, cV as FunctionInvokeResponse, cW as FunctionInvokeSyncResponse, cJ as FunctionsApi, dA as HandoffTarget, b7 as HttpArchetypes, $ as HttpCurrentUser, Z as HttpDatabase, b8 as HttpElementTypes, cK as HttpFunctionsApi, b6 as HttpNodeTypes, a0 as HttpUserNode, _ as HttpWorkspaceClient, dx as HumanTaskType, cL as IdentityAuthApi, bm as IdentityAuthError, bl as IdentityAuthResponse, cN as IdentityAuthResult, cO as IdentityAuthTransport, cP as IdentityInfo, cQ as IdentityMe, I as IdentityUser, dZ as InboxApi, d_ as InboxApiOptions, dR as InboxTask, dS as InboxTaskStatus, bt as IncomingRelation, eu as ListConversationsOptions, b1 as ListInvocationsFilter, d$ as ListTasksOptions, e0 as ListTasksResponse, bj as LocalStorageTokenStorage, bC as LocalizedNode, dp as LogEvent, c7 as LogLevel, cd as LoggerConfig, dO as LoopConfig, cS as MagicLinkOptions, cR as MagicLinkSent, aB as MailboxEntry, d1 as McpCallToolResult, cX as McpClient, d0 as McpContentBlock, cZ as McpFrameStream, c_ as McpJsonRpcFrame, d3 as McpReadResourceResult, d2 as McpResourceContents, d5 as McpResourceSubscription, d4 as McpResourceUpdate, c$ as McpToolDescriptor, cY as McpTransport, bi as MemoryTokenStorage, dM as MergeStrategy, e5 as MessageBody, eg as MessageChild, dn as MessageSavedEvent, aa as NodeCreateDeepOptions, bw as NodeCreateDeepPayload, a9 as NodeCreateOptions, bv as NodeCreatePayload, by as NodeDeletePayload, aE as NodeDevApi, aH as NodeDevCommitOutcome, aI as NodeDevCommon, aJ as NodeDevConflict, aP as NodeDevReceipt, aK as NodeDevTransport, an as NodeDiffInfo, bp as NodeEventPayload, cz as NodeFileSource, bB as NodeGetByLocalizedPathPayload, bz as NodeGetPayload, bA as NodeHistoryPayload, aL as NodeLocator, a8 as NodeOperations, ac as NodeQueryOptions, bG as NodeQueryPayload, bu as NodeRelationships, aM as NodeRevision, aN as NodeTarget, af as NodeTypes, ab as NodeUpdateOptions, bx as NodeUpdatePayload, aO as OpReceipt, ez as PlanActionOptions, ey as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, eh as PlanTask, dU as RETRY_STRATEGIES, dr as RaisinReference, c6 as ReconnectManager, bW as RefreshTokenPayload, bH as RelationAddPayload, bI as RelationRemovePayload, bJ as RelationsGetPayload, bq as RequestContext, bn as RequestEnvelope, c0 as RequestType, bo as ResponseEnvelope, bs as ResponseMetadata, c1 as ResponseStatus, dv as RetryConfig, dw as RetryStrategy, bD as RevisionEntry, b2 as ScheduleInvocationOptions, b3 as ScheduledInvocation, b4 as ScheduledInvocationRef, b5 as ScheduledInvocationTargetKind, ap as SchedulerApi, b9 as SchemaCommit, G as SearchOptions, J as SearchPassage, ew as SendMessageOptions, a1 as SignAssetOptions, a2 as SignedAssetUrl, aC as SpawnChildOptions, aD as SpawnChildResult, ba as SqlQuery, bK as SqlQueryPayload, bL as SqlResult, er as StartAnonymousOptions, db as StepCompletedEvent, dt as StepErrorBehavior, dd as StepFailedEvent, da as StepStartedEvent, dc as StepUsage, bR as SubscribePayload, bf as Subscription, S as SubscriptionFilters, bT as SubscriptionResponse, ao as Tags, dT as TaskCompletionResult, dz as TaskOption, di as TextChunkEvent, dl as ThoughtChunkEvent, bk as TokenStorage, dk as ToolCallCompletedEvent, T as ToolCallInfo, ef as ToolCallRecord, dj as ToolCallStartedEvent, ad as Transaction, bX as TransactionBeginPayload, bY as TransactionBeginResponse, bZ as TransactionCommitPayload, b_ as TransactionCommitResponse, ae as TransactionOptions, b$ as TransactionRollbackPayload, bS as UnsubscribePayload, ci as Upload, cq as UploadError, cF as UploadManager, cf as UploadOptions, cg as UploadProgress, ch as UploadResult, ce as UploadStatus, cm as UploadStatusResponse, cE as Uploader, Y as UserChangeCallback, X as UserChangeEvent, M as UserNode, eo as VisitorChatError, es as VisitorChatLimits, et as VisitorSessionStore, aQ as WorkRoot, bM as Workspace, a4 as WorkspaceClient, a6 as WorkspaceCreateOptions, bN as WorkspaceCreatePayload, bP as WorkspaceDeletePayload, bO as WorkspaceGetPayload, a5 as WorkspaceManager, W as WorkspaceScope, a7 as WorkspaceUpdateOptions, bQ as WorkspaceUpdatePayload, cC as calculateChunkCount, c9 as configureLogger, cA as createFileSource, bb as createSqlHandler, c3 as decodeMessage, ep as defaultVisitorSessionStore, c2 as encodeMessage, cD as getChunkRange, cB as getContentType, cb as getLogLevel, cc as getLoggerConfig, dV as getRefDisplayName, dW as getRefPath, c4 as isEventMessage, dY as isFlowDefinitionContainer, dX as isFlowDefinitionStep, c5 as isResponseEnvelope, dq as isTerminalEvent, c8 as logger, ar as newControlId, eB as projectPlansFromMessages, cM as readTokensFromFragment, ca as setLogLevel, as as subjectOf } from './conversation-list-store-D-W6_nsv.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-B4CqE3Cb.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-
|
|
5
|
+
export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-CTXjkz0R.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
|
@@ -8096,7 +8096,14 @@ var IdentityAuthApi = class {
|
|
|
8096
8096
|
skipAuth: true
|
|
8097
8097
|
});
|
|
8098
8098
|
}
|
|
8099
|
-
/**
|
|
8099
|
+
/**
|
|
8100
|
+
* Sign in with email and password, where the repository enables it.
|
|
8101
|
+
*
|
|
8102
|
+
* `rememberMe` chooses the lifetime of the sign-in: the session AND its refresh
|
|
8103
|
+
* token last 30 days with it and 24 hours without (both configurable per tenant:
|
|
8104
|
+
* `refresh_token_duration_days`, `refresh_token_session_hours`). Refreshing never
|
|
8105
|
+
* extends a session past that.
|
|
8106
|
+
*/
|
|
8100
8107
|
async login(email, password, options) {
|
|
8101
8108
|
return this.transport({
|
|
8102
8109
|
method: "POST",
|
|
@@ -9479,6 +9486,7 @@ var _RaisinClient = class _RaisinClient extends import_events4.EventEmitter {
|
|
|
9479
9486
|
tenantId: options.tenantId ?? this.extractTenantFromUrl(connectionUrl),
|
|
9480
9487
|
defaultBranch: options.defaultBranch ?? "main"
|
|
9481
9488
|
};
|
|
9489
|
+
this._tokenRefresher = options.tokenRefresher;
|
|
9482
9490
|
this._httpBaseUrl = options.httpBaseUrl ?? this.deriveHttpUrl(connectionUrl);
|
|
9483
9491
|
this._repository = options.repository ?? this.extractRepositoryFromUrl(connectionUrl);
|
|
9484
9492
|
this._context = {
|
|
@@ -10246,6 +10254,7 @@ var _RaisinClient = class _RaisinClient extends import_events4.EventEmitter {
|
|
|
10246
10254
|
return this._refreshInFlight;
|
|
10247
10255
|
}
|
|
10248
10256
|
async _refreshToken() {
|
|
10257
|
+
if (this._tokenRefresher) return this._refreshViaHook(this._tokenRefresher);
|
|
10249
10258
|
const refreshToken = this.authManager.storage.getRefreshToken();
|
|
10250
10259
|
if (!refreshToken) {
|
|
10251
10260
|
logger.warn("[refreshToken] No refresh token available");
|
|
@@ -10302,6 +10311,31 @@ var _RaisinClient = class _RaisinClient extends import_events4.EventEmitter {
|
|
|
10302
10311
|
return null;
|
|
10303
10312
|
}
|
|
10304
10313
|
}
|
|
10314
|
+
/** `refreshToken()` through `ClientOptions.tokenRefresher` (the session is not the page's to renew). */
|
|
10315
|
+
async _refreshViaHook(hook) {
|
|
10316
|
+
try {
|
|
10317
|
+
const res = await hook();
|
|
10318
|
+
const accessToken = typeof res === "string" ? res : res?.accessToken;
|
|
10319
|
+
if (!accessToken) {
|
|
10320
|
+
this.authManager.clear();
|
|
10321
|
+
this._currentUser = null;
|
|
10322
|
+
this.emit("auth_error", new Error("Token refresh failed - session expired"));
|
|
10323
|
+
return null;
|
|
10324
|
+
}
|
|
10325
|
+
this.authManager.storage.setAccessToken(accessToken);
|
|
10326
|
+
this.authManager.adoptToken(accessToken);
|
|
10327
|
+
const exp = typeof res === "object" && res?.expiresAt ? _RaisinClient.expiresAtToMs(res.expiresAt) : (AuthManager.parseToken(accessToken)?.exp ?? 0) * 1e3;
|
|
10328
|
+
const inMs = exp - Date.now() - 6e4;
|
|
10329
|
+
if (exp && inMs > 0) this.scheduleAutoRefresh(inMs);
|
|
10330
|
+
const user = this._currentUser ? { id: this._currentUser.userId, email: "", displayName: null, avatarUrl: null, emailVerified: false, home: null } : { id: "", email: "", displayName: null, avatarUrl: null, emailVerified: false, home: null };
|
|
10331
|
+
this._emitAuthEvent("TOKEN_REFRESHED");
|
|
10332
|
+
this.emit("token_refreshed", user);
|
|
10333
|
+
return user;
|
|
10334
|
+
} catch (err) {
|
|
10335
|
+
logger.error("[refreshToken] tokenRefresher failed:", err);
|
|
10336
|
+
return null;
|
|
10337
|
+
}
|
|
10338
|
+
}
|
|
10305
10339
|
/**
|
|
10306
10340
|
* Fetch with a timeout derived from `requestTimeout`.
|
|
10307
10341
|
*
|