@raisindb/client 0.5.9 → 0.5.11
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/README.md +32 -0
- package/dist/{chunk-IFV4ECHC.mjs → chunk-ASOWGNQZ.mjs} +3 -3
- package/dist/{chunk-ZUUSBLVP.mjs → chunk-FYWYSNQG.mjs} +3 -3
- package/dist/{chunk-765DLJMZ.mjs → chunk-NOPZAMIV.mjs} +31 -2
- package/dist/chunk-NOPZAMIV.mjs.map +1 -0
- package/dist/{chunk-AULHRX5C.mjs → chunk-TPZNJNZR.mjs} +2 -2
- package/dist/{chunk-VMUT6PIO.mjs → chunk-ZCRYQCXS.mjs} +2 -2
- package/dist/{conversation-list-store-CHaqGtSi.d.mts → conversation-list-store-BNYosL8k.d.mts} +221 -3
- package/dist/{conversation-list-store-CHaqGtSi.d.ts → conversation-list-store-BNYosL8k.d.ts} +221 -3
- package/dist/{index-DiL2gplR.d.ts → index-GaJToZKx.d.ts} +1 -1
- package/dist/{index-AobOnS4A.d.mts → index-UlXuwMoL.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +405 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +378 -10
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +30 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +3 -3
- package/dist/{svelte-sql-FQqis53r.d.ts → svelte-sql-bROcapdk.d.ts} +1 -1
- package/dist/{svelte-sql-BUrNcoHR.d.mts → svelte-sql-yLeGoj89.d.mts} +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js +30 -1
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +3 -3
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +30 -1
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-765DLJMZ.mjs.map +0 -1
- /package/dist/{chunk-IFV4ECHC.mjs.map → chunk-ASOWGNQZ.mjs.map} +0 -0
- /package/dist/{chunk-ZUUSBLVP.mjs.map → chunk-FYWYSNQG.mjs.map} +0 -0
- /package/dist/{chunk-AULHRX5C.mjs.map → chunk-TPZNJNZR.mjs.map} +0 -0
- /package/dist/{chunk-VMUT6PIO.mjs.map → chunk-ZCRYQCXS.mjs.map} +0 -0
package/dist/{conversation-list-store-CHaqGtSi.d.ts → conversation-list-store-BNYosL8k.d.ts}
RENAMED
|
@@ -129,6 +129,7 @@ declare enum RequestType {
|
|
|
129
129
|
NodeUpdate = "node_update",
|
|
130
130
|
NodeDelete = "node_delete",
|
|
131
131
|
NodeGet = "node_get",
|
|
132
|
+
NodeGetByLocalizedPath = "node_get_by_localized_path",
|
|
132
133
|
NodeQuery = "node_query",
|
|
133
134
|
NodeQueryByPath = "node_query_by_path",
|
|
134
135
|
NodeQueryByProperty = "node_query_by_property",
|
|
@@ -229,7 +230,9 @@ declare enum RequestType {
|
|
|
229
230
|
ScheduledInvocationCreate = "scheduled_invocation_create",
|
|
230
231
|
ScheduledInvocationCancel = "scheduled_invocation_cancel",
|
|
231
232
|
ScheduledInvocationList = "scheduled_invocation_list",
|
|
232
|
-
ScheduledInvocationGet = "scheduled_invocation_get"
|
|
233
|
+
ScheduledInvocationGet = "scheduled_invocation_get",
|
|
234
|
+
VisitorChatStart = "visitor_chat_start",
|
|
235
|
+
VisitorChatSend = "visitor_chat_send"
|
|
233
236
|
}
|
|
234
237
|
/**
|
|
235
238
|
* Response status
|
|
@@ -412,6 +415,28 @@ interface NodeGetPayload {
|
|
|
412
415
|
* Node history payload (git-style "file history").
|
|
413
416
|
* Identify the node by either `node_id` or `path`.
|
|
414
417
|
*/
|
|
418
|
+
/**
|
|
419
|
+
* Payload of `node_get_by_localized_path`: a node by its localized URL path
|
|
420
|
+
* (`/produits/chaise` in `fr`).
|
|
421
|
+
*/
|
|
422
|
+
interface NodeGetByLocalizedPathPayload {
|
|
423
|
+
locale: string;
|
|
424
|
+
path: string;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* A node found by its localized path: the node translated into the locale,
|
|
428
|
+
* its canonical and canonical localized paths, hreflang alternates (hidden
|
|
429
|
+
* and unreadable locales omitted) and whether the request should be
|
|
430
|
+
* redirected (301) to `canonical_localized_path`.
|
|
431
|
+
*/
|
|
432
|
+
interface LocalizedNode {
|
|
433
|
+
node: Node;
|
|
434
|
+
canonical_path: string;
|
|
435
|
+
canonical_localized_path: string;
|
|
436
|
+
redirect: boolean;
|
|
437
|
+
alternates: Record<string, string>;
|
|
438
|
+
served_by: 'default_language' | 'index' | 'fallback';
|
|
439
|
+
}
|
|
415
440
|
interface NodeHistoryPayload {
|
|
416
441
|
node_id?: string;
|
|
417
442
|
path?: string;
|
|
@@ -1310,6 +1335,23 @@ declare class NodeOperations {
|
|
|
1310
1335
|
history(id: string, options?: {
|
|
1311
1336
|
limit?: number;
|
|
1312
1337
|
}): Promise<RevisionEntry[]>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Get a node by its localized URL path (plan Phase 12).
|
|
1340
|
+
*
|
|
1341
|
+
* @param locale - Locale code (`fr`, `fr-CA`)
|
|
1342
|
+
* @param path - The node's path in that locale (`/produits/chaise`)
|
|
1343
|
+
* @returns The translated node with `canonical_path`,
|
|
1344
|
+
* `canonical_localized_path`, hreflang `alternates` and a `redirect`
|
|
1345
|
+
* hint, or `null` when nothing resolves (missing, hidden in the locale
|
|
1346
|
+
* or not readable — the same answer)
|
|
1347
|
+
*
|
|
1348
|
+
* @example
|
|
1349
|
+
* ```typescript
|
|
1350
|
+
* const hit = await ws.nodes().getByLocalizedPath('fr', '/produits/chaise');
|
|
1351
|
+
* if (hit?.redirect) redirect301(`/fr${hit.canonical_localized_path}`);
|
|
1352
|
+
* ```
|
|
1353
|
+
*/
|
|
1354
|
+
getByLocalizedPath(locale: string, path: string): Promise<LocalizedNode | null>;
|
|
1313
1355
|
/**
|
|
1314
1356
|
* List a node's revision history by path (newest first).
|
|
1315
1357
|
*
|
|
@@ -5626,6 +5668,8 @@ interface ChatFailedEvent {
|
|
|
5626
5668
|
type: 'failed';
|
|
5627
5669
|
/** Error description */
|
|
5628
5670
|
error: string;
|
|
5671
|
+
/** Machine-readable reason, when the server gave one (visitor chat refusals) */
|
|
5672
|
+
code?: string;
|
|
5629
5673
|
timestamp: string;
|
|
5630
5674
|
}
|
|
5631
5675
|
/** Conversation turn is complete — server closes the SSE stream */
|
|
@@ -5661,6 +5705,9 @@ interface ChatToolCallStartedEvent {
|
|
|
5661
5705
|
interface ChatToolCallCompletedEvent {
|
|
5662
5706
|
type: 'tool_call_completed';
|
|
5663
5707
|
toolCallId: string;
|
|
5708
|
+
/** The tool's name, when the server knows it */
|
|
5709
|
+
functionName?: string;
|
|
5710
|
+
/** The tool's result — null unless the agent streams tool results (`stream_tool_results`) */
|
|
5664
5711
|
result: unknown;
|
|
5665
5712
|
/** Error message if the tool call failed */
|
|
5666
5713
|
error?: string;
|
|
@@ -5708,6 +5755,133 @@ interface ChatLogEvent {
|
|
|
5708
5755
|
timestamp: string;
|
|
5709
5756
|
}
|
|
5710
5757
|
|
|
5758
|
+
/**
|
|
5759
|
+
* Anonymous visitor chat — an agent chat on a public website, straight from
|
|
5760
|
+
* the browser over the WebSocket. No login, no site server endpoint, no
|
|
5761
|
+
* service identity.
|
|
5762
|
+
*
|
|
5763
|
+
* The server keeps a visitor session per browser tab: an ephemeral home
|
|
5764
|
+
* (`/visitors/<key>` in `raisin:access_control`) that only this session can
|
|
5765
|
+
* read, and that nobody but the server writes. The browser holds the
|
|
5766
|
+
* session's secret (in sessionStorage by default) so a reload or a reconnect
|
|
5767
|
+
* continues the same conversation.
|
|
5768
|
+
*
|
|
5769
|
+
* Use it through `db.conversations`:
|
|
5770
|
+
*
|
|
5771
|
+
* ```typescript
|
|
5772
|
+
* const client = new RaisinClient('wss://db.example.com/ws/website');
|
|
5773
|
+
* await client.connect(); // anonymous
|
|
5774
|
+
* const db = client.database('website');
|
|
5775
|
+
*
|
|
5776
|
+
* const convo = await db.conversations.startAnonymous('/agents/website-assistant');
|
|
5777
|
+
* for await (const ev of db.conversations.sendMessage(convo.conversationPath, 'Hi!')) {
|
|
5778
|
+
* if (ev.type === 'text_chunk') render(ev.text);
|
|
5779
|
+
* }
|
|
5780
|
+
* const history = await db.conversations.getMessages(convo.conversationPath);
|
|
5781
|
+
* ```
|
|
5782
|
+
*
|
|
5783
|
+
* The agent must allow anonymous visitors (`anonymous.enabled: true` on its
|
|
5784
|
+
* raisin:AIAgent node); its limits (message size and count, token budget,
|
|
5785
|
+
* rate, one turn at a time) are enforced by the server and surface here as
|
|
5786
|
+
* {@link VisitorChatError} codes.
|
|
5787
|
+
*/
|
|
5788
|
+
|
|
5789
|
+
/** Where the session secret is kept between page loads. */
|
|
5790
|
+
interface VisitorSessionStore {
|
|
5791
|
+
get(key: string): string | null;
|
|
5792
|
+
set(key: string, value: string): void;
|
|
5793
|
+
remove(key: string): void;
|
|
5794
|
+
}
|
|
5795
|
+
/** sessionStorage when the page has one, memory otherwise (one tab = one session). */
|
|
5796
|
+
declare function defaultVisitorSessionStore(): VisitorSessionStore;
|
|
5797
|
+
/** Options for {@link VisitorChat.start}. */
|
|
5798
|
+
interface StartAnonymousOptions {
|
|
5799
|
+
/** Continue this conversation of the session (from `conversationId` of an earlier start). */
|
|
5800
|
+
conversationId?: string;
|
|
5801
|
+
/** Force a fresh conversation even when the store remembers one. */
|
|
5802
|
+
newConversation?: boolean;
|
|
5803
|
+
/** A session secret to resume; defaults to the one in `store`. */
|
|
5804
|
+
sessionToken?: string;
|
|
5805
|
+
/** Where to keep the secret and the last conversation; `false` keeps nothing. */
|
|
5806
|
+
store?: VisitorSessionStore | false;
|
|
5807
|
+
/** Store key prefix (default `raisindb:visitor:<repo>:<agent>`). */
|
|
5808
|
+
storageKey?: string;
|
|
5809
|
+
}
|
|
5810
|
+
/** The limits the agent applies, as the server reported them. */
|
|
5811
|
+
interface VisitorChatLimits {
|
|
5812
|
+
max_messages: number;
|
|
5813
|
+
max_message_chars: number;
|
|
5814
|
+
}
|
|
5815
|
+
/** A conversation started with {@link VisitorChat.start}. */
|
|
5816
|
+
interface AnonymousConversation extends Conversation {
|
|
5817
|
+
anonymous: true;
|
|
5818
|
+
/** The conversation id (also its event channel `chat:<id>`). */
|
|
5819
|
+
conversationId: string;
|
|
5820
|
+
/** The session secret. Keep it private: it is the visitor's credential. */
|
|
5821
|
+
sessionToken: string;
|
|
5822
|
+
limits: VisitorChatLimits;
|
|
5823
|
+
}
|
|
5824
|
+
/**
|
|
5825
|
+
* A refusal from the server. `code` is one of:
|
|
5826
|
+
* `ANONYMOUS_NOT_ALLOWED`, `ORIGIN_NOT_ALLOWED`, `RATE_LIMITED`, `BUSY`,
|
|
5827
|
+
* `TOO_LONG`, `EMPTY_MESSAGE`, `TOO_MANY_MESSAGES`, `LIMIT_REACHED`,
|
|
5828
|
+
* `DAILY_LIMIT_REACHED` (the agent's daily token budget, or the per-IP daily
|
|
5829
|
+
* message cap),
|
|
5830
|
+
* `CONVERSATION_LIMIT`, `SESSION_EXPIRED`, `SESSION_MISMATCH`,
|
|
5831
|
+
* `UNKNOWN_CONVERSATION`, `NO_SESSION`, `NOT_ANONYMOUS`, `UNAVAILABLE`.
|
|
5832
|
+
*/
|
|
5833
|
+
declare class VisitorChatError extends Error {
|
|
5834
|
+
readonly code: string;
|
|
5835
|
+
constructor(message: string, code: string);
|
|
5836
|
+
}
|
|
5837
|
+
type Send = (payload: unknown, requestType: string) => Promise<unknown>;
|
|
5838
|
+
/**
|
|
5839
|
+
* The anonymous half of `db.conversations`. Not used directly: call
|
|
5840
|
+
* `db.conversations.startAnonymous(...)`.
|
|
5841
|
+
*/
|
|
5842
|
+
declare class VisitorChat {
|
|
5843
|
+
private readonly repository;
|
|
5844
|
+
private readonly send;
|
|
5845
|
+
private readonly events;
|
|
5846
|
+
private byPath;
|
|
5847
|
+
private token;
|
|
5848
|
+
constructor(repository: string, send: Send, events: EventHandler, onReconnected?: (callback: () => void) => () => void);
|
|
5849
|
+
/** Whether `conversationPath` is a visitor conversation started here. */
|
|
5850
|
+
isAnonymous(conversationPath: string): boolean;
|
|
5851
|
+
private storeOf;
|
|
5852
|
+
private keyOf;
|
|
5853
|
+
/** Start (or resume) a visitor conversation with `agent` (`/agents/<name>`). */
|
|
5854
|
+
start(agent: string, options?: StartAnonymousOptions): Promise<AnonymousConversation>;
|
|
5855
|
+
/** Route the server's forwarded events for this conversation to its listeners. */
|
|
5856
|
+
private route;
|
|
5857
|
+
/** Re-prove the session on a new connection, for every conversation started here. */
|
|
5858
|
+
private rebindAll;
|
|
5859
|
+
/** Listen to a visitor conversation's events. Returns an unsubscribe function. */
|
|
5860
|
+
listen(conversationPath: string, listener: (event: ChatEvent) => void): () => void;
|
|
5861
|
+
private require;
|
|
5862
|
+
/** Make sure this connection is bound (after a reconnect nothing else may read the home). */
|
|
5863
|
+
ensureBound(conversationPath: string): Promise<void>;
|
|
5864
|
+
/** Send one visitor message. Events arrive through {@link listen}. */
|
|
5865
|
+
post(conversationPath: string, text: string): Promise<{
|
|
5866
|
+
messageId: string;
|
|
5867
|
+
messagesLeft?: number;
|
|
5868
|
+
}>;
|
|
5869
|
+
/**
|
|
5870
|
+
* Send one visitor message and stream the turn: `text_chunk`,
|
|
5871
|
+
* `tool_call_started`, `tool_call_completed`, … until `done`. A refusal
|
|
5872
|
+
* ends the stream with `failed` (its `code` says why). No event for
|
|
5873
|
+
* `inactivityTimeoutMs` ends it with a synthetic `waiting`.
|
|
5874
|
+
*/
|
|
5875
|
+
stream(conversationPath: string, text: string, options?: {
|
|
5876
|
+
signal?: AbortSignal;
|
|
5877
|
+
inactivityTimeoutMs?: number;
|
|
5878
|
+
}): AsyncIterable<ChatEvent>;
|
|
5879
|
+
/** Whether the store remembers a conversation with `agent`. */
|
|
5880
|
+
remembers(agent: string, options?: StartAnonymousOptions): boolean;
|
|
5881
|
+
/** Forget the stored session (e.g. a "new chat" button that should start a new session). */
|
|
5882
|
+
forget(agent: string, options?: StartAnonymousOptions): void;
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5711
5885
|
/**
|
|
5712
5886
|
* Unified ConversationManager for RaisinDB.
|
|
5713
5887
|
*
|
|
@@ -5818,9 +5992,10 @@ declare class ConversationManager {
|
|
|
5818
5992
|
private fetchImpl;
|
|
5819
5993
|
private requestTimeout;
|
|
5820
5994
|
private executeSql?;
|
|
5995
|
+
private visitor?;
|
|
5821
5996
|
private cachedUserId?;
|
|
5822
5997
|
private cachedUserHome?;
|
|
5823
|
-
constructor(baseUrl: string, repository: string, authManager: AuthManager, options?: ConversationManagerOptions, executeSql?: (query: string, params?: unknown[]) => Promise<SqlResult
|
|
5998
|
+
constructor(baseUrl: string, repository: string, authManager: AuthManager, options?: ConversationManagerOptions, executeSql?: (query: string, params?: unknown[]) => Promise<SqlResult>, visitor?: VisitorChat);
|
|
5824
5999
|
private ensureCurrentUser;
|
|
5825
6000
|
/**
|
|
5826
6001
|
* List conversations for the current user.
|
|
@@ -5834,6 +6009,34 @@ declare class ConversationManager {
|
|
|
5834
6009
|
* - Everything else creates a `direct_message`
|
|
5835
6010
|
*/
|
|
5836
6011
|
create(options: CreateConversationOptions): Promise<Conversation>;
|
|
6012
|
+
/**
|
|
6013
|
+
* Start (or resume) an ANONYMOUS conversation with an agent — a public
|
|
6014
|
+
* website's chat, without login.
|
|
6015
|
+
*
|
|
6016
|
+
* Works on an anonymous connection only, and only with an agent that allows
|
|
6017
|
+
* anonymous visitors (`anonymous.enabled: true` on its raisin:AIAgent). The
|
|
6018
|
+
* server keeps the conversation in an ephemeral visitor session that only
|
|
6019
|
+
* this browser session can read; the session secret is kept in
|
|
6020
|
+
* sessionStorage (override with `options.store`), so a reload continues the
|
|
6021
|
+
* same conversation. Then use `sendMessage`, `getMessages`, `subscribe` and
|
|
6022
|
+
* `ConversationStore` / `useConversation` exactly as for a signed-in user.
|
|
6023
|
+
*
|
|
6024
|
+
* @example
|
|
6025
|
+
* ```typescript
|
|
6026
|
+
* const convo = await db.conversations.startAnonymous('/agents/website-assistant');
|
|
6027
|
+
* for await (const ev of db.conversations.sendMessage(convo.conversationPath, 'Hello')) {
|
|
6028
|
+
* if (ev.type === 'text_chunk') append(ev.text);
|
|
6029
|
+
* if (ev.type === 'failed') showLimit(ev.code); // e.g. RATE_LIMITED, LIMIT_REACHED
|
|
6030
|
+
* }
|
|
6031
|
+
* ```
|
|
6032
|
+
*/
|
|
6033
|
+
startAnonymous(agent: string, options?: StartAnonymousOptions): Promise<AnonymousConversation>;
|
|
6034
|
+
/** Forget the stored anonymous session for `agent` (the next start begins a new one). */
|
|
6035
|
+
forgetAnonymous(agent: string, options?: StartAnonymousOptions): void;
|
|
6036
|
+
/** Whether this tab remembers an anonymous conversation with `agent`. */
|
|
6037
|
+
hasStoredAnonymous(agent: string, options?: StartAnonymousOptions): boolean;
|
|
6038
|
+
/** Whether `conversationPath` is an anonymous conversation of this client. */
|
|
6039
|
+
isAnonymous(conversationPath: string): boolean;
|
|
5837
6040
|
/**
|
|
5838
6041
|
* Open an existing conversation by path.
|
|
5839
6042
|
* Returns null if not found.
|
|
@@ -6748,6 +6951,8 @@ interface DatabaseHttpOptions {
|
|
|
6748
6951
|
httpBaseUrl?: string;
|
|
6749
6952
|
/** Auth manager for token access */
|
|
6750
6953
|
authManager?: AuthManager;
|
|
6954
|
+
/** Called after every successful reconnect (visitor chats re-prove their session). */
|
|
6955
|
+
onReconnected?: (callback: () => void) => () => void;
|
|
6751
6956
|
}
|
|
6752
6957
|
/**
|
|
6753
6958
|
* Database interface for repository operations
|
|
@@ -7993,6 +8198,12 @@ interface ConversationStoreOptions {
|
|
|
7993
8198
|
createOptions?: {
|
|
7994
8199
|
participant: string;
|
|
7995
8200
|
input?: Record<string, unknown>;
|
|
8201
|
+
/**
|
|
8202
|
+
* Chat WITHOUT login (a public website): starts or resumes an anonymous
|
|
8203
|
+
* visitor conversation (`db.conversations.startAnonymous`). `true`, or the
|
|
8204
|
+
* start options. The agent must allow anonymous visitors.
|
|
8205
|
+
*/
|
|
8206
|
+
anonymous?: boolean | StartAnonymousOptions;
|
|
7996
8207
|
};
|
|
7997
8208
|
/** Callback for individual chat events */
|
|
7998
8209
|
onEvent?: (event: ChatEvent) => void;
|
|
@@ -8029,6 +8240,13 @@ declare class ConversationStore {
|
|
|
8029
8240
|
private _watchdogIntervalMs;
|
|
8030
8241
|
private _watchdogTimer;
|
|
8031
8242
|
constructor(options: ConversationStoreOptions);
|
|
8243
|
+
private anonymousOptions;
|
|
8244
|
+
/**
|
|
8245
|
+
* Resume the visitor conversation this tab already has (the session secret
|
|
8246
|
+
* and conversation id live in sessionStorage), and load its history. A tab
|
|
8247
|
+
* without one starts nothing until the first message.
|
|
8248
|
+
*/
|
|
8249
|
+
private resumeAnonymous;
|
|
8032
8250
|
/**
|
|
8033
8251
|
* Subscribe to state changes.
|
|
8034
8252
|
* Returns an unsubscribe function.
|
|
@@ -8195,4 +8413,4 @@ declare class ConversationListStore {
|
|
|
8195
8413
|
private notify;
|
|
8196
8414
|
}
|
|
8197
8415
|
|
|
8198
|
-
export { type CurrentUser$1 as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type SearchOptions as G, type HttpClientOptions as H, type IdentityUser as I, type SearchPassage as J, type ClientMode as K, type CurrentUser as L, type UserNode as M, type Node as N, type AuthEvent as O, type PlanProjection as P, type AuthStateChange as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type AuthStateChangeCallback as V, type WorkspaceScope as W, type UserChangeEvent as X, type UserChangeCallback as Y, HttpDatabase as Z, HttpWorkspaceClient as _, type ConversationStoreSnapshot as a, type CreateAgentRunResult as a$, type UserNode$1 as a0, type SignAssetOptions as a1, type SignedAssetUrl as a2, type DatabaseHttpOptions as a3, WorkspaceClient as a4, WorkspaceManager as a5, type WorkspaceCreateOptions as a6, type WorkspaceUpdateOptions as a7, NodeOperations as a8, type NodeCreateOptions as a9, type CheckpointOptions as aA, type MailboxEntry as aB, type SpawnChildOptions as aC, type SpawnChildResult as aD, NodeDevApi as aE, type ChangeOp as aF, type ChangesetOptions as aG, type CommitOutcome as aH, type NodeDevCommon as aI, type NodeDevConflict as aJ, type NodeDevTransport as aK, type NodeLocator as aL, type NodeRevision as aM, type NodeTarget as aN, type OpReceipt as aO, type Receipt as aP, type WorkRoot as aQ, type AgentRunCommand as aR, type AgentRunControlAck as aS, type AgentRunEvent as aT, type AgentRunFence as aU, type AgentRunStatus as aV, type AgentRunSubject as aW, type AgentRunView as aX, type AgentRunsTransport as aY, type BeginOperationOptions as aZ, type CreateAgentRunOptions as a_, type NodeCreateDeepOptions as aa, type NodeUpdateOptions as ab, type NodeQueryOptions as ac, Transaction as ad, type TransactionOptions as ae, NodeTypes as af, Archetypes as ag, ElementTypes as ah, Branches as ai, type BranchDiff as aj, type BranchDivergence as ak, type CrossBranchCopySummary as al, type CrossBranchNodeChange as am, type NodeDiffInfo as an, Tags as ao, SchedulerApi as ap, AgentRunsApi as aq, newControlId as ar, subjectOf as as, AgentRunsWsApi as at, type AgentRunChildView as au, type AgentRunSubscribeOptions as av, type AgentRunSubscription as aw, type ChildAction as ax, type ChildContext as ay, type ChildObjective as az, type ChatMessage as b,
|
|
8416
|
+
export { type CurrentUser$1 as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type SearchOptions as G, type HttpClientOptions as H, type IdentityUser as I, type SearchPassage as J, type ClientMode as K, type CurrentUser as L, type UserNode as M, type Node as N, type AuthEvent as O, type PlanProjection as P, type AuthStateChange as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type AuthStateChangeCallback as V, type WorkspaceScope as W, type UserChangeEvent as X, type UserChangeCallback as Y, HttpDatabase as Z, HttpWorkspaceClient as _, type ConversationStoreSnapshot as a, type CreateAgentRunResult as a$, type UserNode$1 as a0, type SignAssetOptions as a1, type SignedAssetUrl as a2, type DatabaseHttpOptions as a3, WorkspaceClient as a4, WorkspaceManager as a5, type WorkspaceCreateOptions as a6, type WorkspaceUpdateOptions as a7, NodeOperations as a8, type NodeCreateOptions as a9, type CheckpointOptions as aA, type MailboxEntry as aB, type SpawnChildOptions as aC, type SpawnChildResult as aD, NodeDevApi as aE, type ChangeOp as aF, type ChangesetOptions as aG, type CommitOutcome as aH, type NodeDevCommon as aI, type NodeDevConflict as aJ, type NodeDevTransport as aK, type NodeLocator as aL, type NodeRevision as aM, type NodeTarget as aN, type OpReceipt as aO, type Receipt as aP, type WorkRoot as aQ, type AgentRunCommand as aR, type AgentRunControlAck as aS, type AgentRunEvent as aT, type AgentRunFence as aU, type AgentRunStatus as aV, type AgentRunSubject as aW, type AgentRunView as aX, type AgentRunsTransport as aY, type BeginOperationOptions as aZ, type CreateAgentRunOptions as a_, type NodeCreateDeepOptions as aa, type NodeUpdateOptions as ab, type NodeQueryOptions as ac, Transaction as ad, type TransactionOptions as ae, NodeTypes as af, Archetypes as ag, ElementTypes as ah, Branches as ai, type BranchDiff as aj, type BranchDivergence as ak, type CrossBranchCopySummary as al, type CrossBranchNodeChange as am, type NodeDiffInfo as an, Tags as ao, SchedulerApi as ap, AgentRunsApi as aq, newControlId as ar, subjectOf as as, AgentRunsWsApi as at, type AgentRunChildView as au, type AgentRunSubscribeOptions as av, type AgentRunSubscription as aw, type ChildAction as ax, type ChildContext as ay, type ChildObjective as az, type ChatMessage as b, type TransactionRollbackPayload as b$, type FinishOperationOptions as b0, type ListInvocationsFilter as b1, type ScheduleInvocationOptions as b2, type ScheduledInvocation as b3, type ScheduledInvocationRef as b4, type ScheduledInvocationTargetKind as b5, HttpNodeTypes as b6, HttpArchetypes as b7, HttpElementTypes as b8, type SchemaCommit as b9, type NodeHistoryPayload as bA, type NodeGetByLocalizedPathPayload as bB, type LocalizedNode as bC, type RevisionEntry as bD, type AuditQueryPayload as bE, type AuditLogEntry as bF, type NodeQueryPayload as bG, type RelationAddPayload as bH, type RelationRemovePayload as bI, type RelationsGetPayload as bJ, type SqlQueryPayload as bK, type SqlResult as bL, type Workspace as bM, type WorkspaceCreatePayload as bN, type WorkspaceGetPayload as bO, type WorkspaceDeletePayload as bP, type WorkspaceUpdatePayload as bQ, type SubscribePayload as bR, type UnsubscribePayload as bS, type SubscriptionResponse as bT, type AuthenticatePayload as bU, type AuthenticateResponse as bV, type RefreshTokenPayload as bW, type TransactionBeginPayload as bX, type TransactionBeginResponse as bY, type TransactionCommitPayload as bZ, type TransactionCommitResponse as b_, SqlQuery as ba, createSqlHandler as bb, EventHandler as bc, EventSubscriptions as bd, type EventCallback as be, type Subscription as bf, Connection as bg, type ConnectionOptions as bh, MemoryTokenStorage as bi, LocalStorageTokenStorage as bj, type TokenStorage as bk, type IdentityAuthResponse as bl, type IdentityAuthError as bm, type RequestEnvelope as bn, type ResponseEnvelope as bo, type NodeEventPayload as bp, type RequestContext as bq, type ErrorInfo as br, type ResponseMetadata as bs, type IncomingRelation as bt, type NodeRelationships as bu, type NodeCreatePayload as bv, type NodeCreateDeepPayload as bw, type NodeUpdatePayload as bx, type NodeDeletePayload as by, type NodeGetPayload as bz, ConversationStore as c, type McpToolDescriptor as c$, RequestType as c0, ResponseStatus as c1, encodeMessage as c2, decodeMessage as c3, isEventMessage as c4, isResponseEnvelope as c5, ReconnectManager as c6, LogLevel as c7, logger as c8, configureLogger as c9, createFileSource as cA, getContentType as cB, calculateChunkCount as cC, getChunkRange as cD, Uploader as cE, UploadManager as cF, FlowClient as cG, type FlowRunResult as cH, type FlowCollectResult as cI, FunctionsApi as cJ, HttpFunctionsApi as cK, IdentityAuthApi as cL, readTokensFromFragment as cM, type IdentityAuthResult as cN, type IdentityAuthTransport as cO, type IdentityInfo as cP, type IdentityMe as cQ, type MagicLinkSent as cR, type MagicLinkOptions as cS, type AuthProviders as cT, type FunctionInvokeOptions as cU, type FunctionInvokeResponse as cV, type FunctionInvokeSyncResponse as cW, McpClient as cX, type McpTransport as cY, type McpFrameStream as cZ, type McpJsonRpcFrame as c_, setLogLevel as ca, getLogLevel as cb, getLoggerConfig as cc, type LoggerConfig as cd, type UploadStatus as ce, type UploadOptions as cf, type UploadProgress as cg, type UploadResult as ch, type Upload as ci, type CreateUploadRequest as cj, type CreateUploadResponse as ck, type ChunkUploadResponse as cl, type UploadStatusResponse as cm, type CompleteUploadRequest as cn, type CompleteUploadResponse as co, type BatchFileProgress as cp, UploadError as cq, DEFAULT_CHUNK_SIZE as cr, DEFAULT_MAX_RETRIES as cs, DEFAULT_RETRY_BASE_DELAY as ct, DEFAULT_RETRY_MAX_DELAY as cu, DEFAULT_NODE_TYPE as cv, DEFAULT_BRANCH as cw, DEFAULT_BATCH_CONCURRENCY as cx, BrowserFileSource as cy, NodeFileSource as cz, type ConversationListItem as d, type ListTasksOptions as d$, type McpContentBlock as d0, type McpCallToolResult as d1, type McpResourceContents as d2, type McpReadResourceResult as d3, type McpResourceUpdate as d4, type McpResourceSubscription as d5, type FlowRunResponse as d6, type FlowInstanceStatus as d7, type FlowInstanceStatusResponse as d8, type FlowMetrics as d9, type HandoffTarget as dA, type ChatTerminationMode as dB, type ChatTerminationConfig as dC, type ChatStepConfig as dD, type AiToolMode as dE, type AiErrorBehavior as dF, type AiContainerConfig as dG, type FlowDefinitionNodeBase as dH, type FlowStepProperties as dI, type FlowDefinitionStep as dJ, type ContainerRule as dK, type FanOutConfig as dL, type MergeStrategy as dM, type FlowDefinitionContainer as dN, type LoopConfig as dO, type FlowDefinitionNode as dP, type FlowDefinition as dQ, type InboxTask as dR, type InboxTaskStatus as dS, type TaskCompletionResult as dT, RETRY_STRATEGIES as dU, getRefDisplayName as dV, getRefPath as dW, isFlowDefinitionStep as dX, isFlowDefinitionContainer as dY, InboxApi as dZ, type InboxApiOptions as d_, type StepStartedEvent as da, type StepCompletedEvent as db, type StepUsage as dc, type StepFailedEvent as dd, type FlowWaitingEvent as de, type FlowResumedEvent as df, type FlowCompletedEvent as dg, type FlowFailedEvent as dh, type TextChunkEvent as di, type ToolCallStartedEvent as dj, type ToolCallCompletedEvent as dk, type ThoughtChunkEvent as dl, type ConversationCreatedEvent as dm, type MessageSavedEvent as dn, type LogEvent as dp, isTerminalEvent as dq, type RaisinReference as dr, type ContainerType as ds, type StepErrorBehavior as dt, type FlowErrorStrategy as du, type RetryConfig as dv, type RetryStrategy as dw, type HumanTaskType as dx, type CanonicalTaskType as dy, type TaskOption as dz, ConversationListStore as e, type ListTasksResponse as e0, type ChatEvent as e1, type Conversation as e2, type ConversationType as e3, type ConversationStatus as e4, type MessageBody as e5, type ChatTextChunkEvent as e6, type ChatAssistantMessageEvent as e7, type ChatWaitingEvent as e8, type ChatCompletedEvent as e9, type ConversationManagerOptions as eA, projectPlansFromMessages as eB, type ChatFailedEvent as ea, type ChatDoneEvent as eb, type ChatToolCallStartedEvent as ec, type ChatToolCallCompletedEvent as ed, type ChatThoughtChunkEvent as ee, type ToolCallRecord as ef, type MessageChild as eg, type PlanTask as eh, type ChatConversationCreatedEvent as ei, type ChatMessageSavedEvent as ej, type ChatMessageDeliveredEvent as ek, type ChatLogEvent as el, ConversationManager as em, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as en, VisitorChatError as eo, defaultVisitorSessionStore as ep, type AnonymousConversation as eq, type StartAnonymousOptions as er, type VisitorChatLimits as es, type VisitorSessionStore as et, type ListConversationsOptions as eu, type CreateConversationOptions as ev, type SendMessageOptions as ew, type ConversationSubscription as ex, type PlanActionReceipt as ey, type PlanActionOptions as ez, type ConversationStoreOptions as f, type ConversationListStoreOptions as g, type ConversationListSnapshot as h, FlowsApi as i, type FlowExecutionEvent as j, type PlanProjectionTask as k, type PropertyValue as l, type RelationRef as m, type ClientOptions as n, type Credentials as o, RaisinHttpClient as p, type RetryOptions as q, type UploaderConfig as r, type FileSource as s, type BatchUploadOptions as t, type BatchUploadResult as u, type BatchProgress as v, type ReconnectOptions as w, type Answer as x, type AskOptions as y, type Citation as z };
|
|
@@ -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-BNYosL8k.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-BNYosL8k.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,
|
|
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-BNYosL8k.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-BNYosL8k.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-UlXuwMoL.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-yLeGoj89.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,
|
|
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-BNYosL8k.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-BNYosL8k.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-GaJToZKx.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-bROcapdk.js';
|
|
6
6
|
export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.js';
|
|
7
7
|
import 'events';
|
|
8
8
|
import 'fs/promises';
|