@raisindb/client 0.4.3 → 0.4.5
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-C135ghpi.d.mts → conversation-list-store-CfK-DEYd.d.mts} +81 -4
- package/dist/{conversation-list-store-C135ghpi.d.ts → conversation-list-store-CfK-DEYd.d.ts} +81 -4
- package/dist/{index-tIhGW3eq.d.ts → index-BfP-1PoU.d.ts} +1 -1
- package/dist/{index-CsiWJ0cN.d.mts → index-D2Vw7FpW.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- 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-BAURd7Ha.d.mts → svelte-sql-B_YbYl-Q.d.mts} +1 -1
- package/dist/{svelte-sql-DpAhe9g7.d.ts → svelte-sql-Cg1Jo0Fs.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-C135ghpi.d.mts → conversation-list-store-CfK-DEYd.d.mts}
RENAMED
|
@@ -4259,6 +4259,25 @@ interface FlowInstanceStatusResponse {
|
|
|
4259
4259
|
started_at: string;
|
|
4260
4260
|
/** Error message (if status is failed) */
|
|
4261
4261
|
error?: string;
|
|
4262
|
+
/** Execution metrics, when the server includes them. */
|
|
4263
|
+
metrics?: FlowMetrics;
|
|
4264
|
+
}
|
|
4265
|
+
/** Execution metrics for a flow run. */
|
|
4266
|
+
interface FlowMetrics {
|
|
4267
|
+
total_duration_ms: number;
|
|
4268
|
+
step_count: number;
|
|
4269
|
+
retry_count: number;
|
|
4270
|
+
compensation_count: number;
|
|
4271
|
+
ai_iteration_count: number;
|
|
4272
|
+
/**
|
|
4273
|
+
* Model calls whose usage was reported.
|
|
4274
|
+
*
|
|
4275
|
+
* Counted separately from the token totals: a call that reported no usage is
|
|
4276
|
+
* a different fact from no call at all.
|
|
4277
|
+
*/
|
|
4278
|
+
ai_call_count: number;
|
|
4279
|
+
total_input_tokens: number;
|
|
4280
|
+
total_output_tokens: number;
|
|
4262
4281
|
}
|
|
4263
4282
|
/** Base properties shared by all events */
|
|
4264
4283
|
interface BaseFlowEvent {
|
|
@@ -4271,12 +4290,33 @@ interface StepStartedEvent extends BaseFlowEvent {
|
|
|
4271
4290
|
step_name?: string;
|
|
4272
4291
|
step_type: string;
|
|
4273
4292
|
}
|
|
4293
|
+
/**
|
|
4294
|
+
* Model usage attributable to ONE step.
|
|
4295
|
+
*
|
|
4296
|
+
* Mirrors the engine's `StepUsage`. Providers disagree on the wire spelling
|
|
4297
|
+
* (`input_tokens`/`output_tokens` vs OpenAI's `prompt_tokens`/
|
|
4298
|
+
* `completion_tokens`); the server normalises them, so these two names are what
|
|
4299
|
+
* ever reaches a client.
|
|
4300
|
+
*/
|
|
4301
|
+
interface StepUsage {
|
|
4302
|
+
input_tokens: number;
|
|
4303
|
+
output_tokens: number;
|
|
4304
|
+
}
|
|
4274
4305
|
/** A step has completed successfully */
|
|
4275
4306
|
interface StepCompletedEvent extends BaseFlowEvent {
|
|
4276
4307
|
type: 'step_completed';
|
|
4277
4308
|
node_id: string;
|
|
4278
4309
|
output: unknown;
|
|
4279
4310
|
duration_ms: number;
|
|
4311
|
+
/**
|
|
4312
|
+
* Model usage for THIS step, when it made a model call.
|
|
4313
|
+
*
|
|
4314
|
+
* Absent means no call was made (a function step, a decision) — as distinct
|
|
4315
|
+
* from a call that reported nothing, which arrives as zeros. Flow-level totals
|
|
4316
|
+
* live on the instance's metrics; this is what attributes cost to a node,
|
|
4317
|
+
* which is the question anyone tuning an agent graph has.
|
|
4318
|
+
*/
|
|
4319
|
+
usage?: StepUsage;
|
|
4280
4320
|
}
|
|
4281
4321
|
/** A step has failed */
|
|
4282
4322
|
interface StepFailedEvent extends BaseFlowEvent {
|
|
@@ -5239,7 +5279,7 @@ declare function getRefDisplayName(ref: RaisinReference): string;
|
|
|
5239
5279
|
/** Get the full path from a reference. */
|
|
5240
5280
|
declare function getRefPath(ref: RaisinReference): string;
|
|
5241
5281
|
/** Container types */
|
|
5242
|
-
type ContainerType = 'and' | 'or' | 'parallel' | 'ai_sequence';
|
|
5282
|
+
type ContainerType = 'and' | 'or' | 'parallel' | 'loop' | 'ai_sequence' | 'competition';
|
|
5243
5283
|
/** Step error behavior */
|
|
5244
5284
|
type StepErrorBehavior = 'stop' | 'skip' | 'continue';
|
|
5245
5285
|
/** Flow-level error strategy */
|
|
@@ -5390,7 +5430,9 @@ interface FlowStepProperties {
|
|
|
5390
5430
|
/** Lua script for evaluation */
|
|
5391
5431
|
lua_script?: string;
|
|
5392
5432
|
/** Condition expression (REL) - same namespaces as templates:
|
|
5393
|
-
* `input.*`, `steps.<id>.*`, `trigger.*`,
|
|
5433
|
+
* `input.*`, `steps.<id>.*`, `trigger.*`, `visits.<step_id>` (how many times a
|
|
5434
|
+
* node has been entered — what bounds a cyclic graph), `history.<step_id>`
|
|
5435
|
+
* (that node's output per visit, oldest first), flow variables */
|
|
5394
5436
|
condition?: string;
|
|
5395
5437
|
/** Key for payload data */
|
|
5396
5438
|
payload_key?: string;
|
|
@@ -5503,12 +5545,47 @@ interface FanOutConfig {
|
|
|
5503
5545
|
}
|
|
5504
5546
|
/** How a parallel container joins its branches */
|
|
5505
5547
|
type MergeStrategy = 'merge_all' | 'first_success' | 'all_success';
|
|
5506
|
-
/**
|
|
5548
|
+
/**
|
|
5549
|
+
* How a loop container iterates.
|
|
5550
|
+
*
|
|
5551
|
+
* EXACTLY ONE of `over`, `while` or `times` decides the shape. `over` was once
|
|
5552
|
+
* required — correct while the engine hardcoded `for_each` and its while/times
|
|
5553
|
+
* arms were unreachable from the designer format — so it is optional here, and
|
|
5554
|
+
* naming none or several is refused by the engine rather than resolved by
|
|
5555
|
+
* precedence.
|
|
5556
|
+
*/
|
|
5557
|
+
interface LoopConfig {
|
|
5558
|
+
/** for_each: expression resolving to the collection to iterate. */
|
|
5559
|
+
over?: string;
|
|
5560
|
+
/** while: a REL condition re-tested BEFORE each iteration. */
|
|
5561
|
+
while?: string;
|
|
5562
|
+
/** times: a fixed repeat count. */
|
|
5563
|
+
times?: number;
|
|
5564
|
+
/** Variable name for the current item (default `item`). */
|
|
5565
|
+
item?: string;
|
|
5566
|
+
/** Variable name for the current 0-based index. */
|
|
5567
|
+
index?: string;
|
|
5568
|
+
/** Safety cap on iterations. */
|
|
5569
|
+
max_iterations?: number;
|
|
5570
|
+
/**
|
|
5571
|
+
* `while` only: drop the iteration ceiling and run purely on the condition.
|
|
5572
|
+
*
|
|
5573
|
+
* Opt-in rather than the meaning of an absent `max_iterations`. Safe because
|
|
5574
|
+
* the executor bounds a runaway itself, so a condition that never goes false
|
|
5575
|
+
* costs a failed flow rather than a wedged worker.
|
|
5576
|
+
*/
|
|
5577
|
+
unbounded?: boolean;
|
|
5578
|
+
/** Early-exit REL condition, evaluated after each completed iteration. */
|
|
5579
|
+
until?: string;
|
|
5580
|
+
}
|
|
5581
|
+
/** Container node with children (AND/OR/Parallel/Loop/AI/Competition) */
|
|
5507
5582
|
interface FlowDefinitionContainer extends FlowDefinitionNodeBase {
|
|
5508
5583
|
node_type: 'raisin:FlowContainer';
|
|
5509
5584
|
container_type: ContainerType;
|
|
5510
5585
|
rules?: ContainerRule[];
|
|
5511
5586
|
children: FlowDefinitionNode[];
|
|
5587
|
+
/** Iteration configuration (only for loop type) */
|
|
5588
|
+
loop?: LoopConfig;
|
|
5512
5589
|
/** AI container configuration (only for ai_sequence type) */
|
|
5513
5590
|
ai_config?: AiContainerConfig;
|
|
5514
5591
|
/** Fan-out configuration (only for parallel type): one branch per collection item */
|
|
@@ -7082,4 +7159,4 @@ declare class ConversationListStore {
|
|
|
7082
7159
|
private notify;
|
|
7083
7160
|
}
|
|
7084
7161
|
|
|
7085
|
-
export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type
|
|
7162
|
+
export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type FanOutConfig as c$, IdentityAuthApi as c0, readTokensFromFragment as c1, type IdentityAuthResult as c2, type IdentityAuthTransport as c3, type IdentityInfo as c4, type IdentityMe as c5, type MagicLinkSent as c6, type MagicLinkOptions as c7, type AuthProviders as c8, type FunctionInvokeOptions as c9, type ToolCallStartedEvent as cA, type ToolCallCompletedEvent as cB, type ThoughtChunkEvent as cC, type ConversationCreatedEvent as cD, type MessageSavedEvent as cE, type LogEvent as cF, isTerminalEvent as cG, type RaisinReference as cH, type ContainerType as cI, type StepErrorBehavior as cJ, type FlowErrorStrategy as cK, type RetryConfig as cL, type RetryStrategy as cM, type HumanTaskType as cN, type CanonicalTaskType as cO, type TaskOption as cP, type HandoffTarget as cQ, type ChatTerminationMode as cR, type ChatTerminationConfig as cS, type ChatStepConfig as cT, type AiToolMode as cU, type AiErrorBehavior as cV, type AiContainerConfig as cW, type FlowDefinitionNodeBase as cX, type FlowStepProperties as cY, type FlowDefinitionStep as cZ, type ContainerRule as c_, type FunctionInvokeResponse as ca, type FunctionInvokeSyncResponse as cb, McpClient as cc, type McpTransport as cd, type McpFrameStream as ce, type McpJsonRpcFrame as cf, type McpToolDescriptor as cg, type McpContentBlock as ch, type McpCallToolResult as ci, type McpResourceContents as cj, type McpReadResourceResult as ck, type McpResourceUpdate as cl, type McpResourceSubscription as cm, type FlowRunResponse as cn, type FlowInstanceStatus as co, type FlowInstanceStatusResponse as cp, type FlowMetrics as cq, type StepStartedEvent as cr, type StepCompletedEvent as cs, type StepUsage as ct, type StepFailedEvent as cu, type FlowWaitingEvent as cv, type FlowResumedEvent as cw, type FlowCompletedEvent as cx, type FlowFailedEvent as cy, type TextChunkEvent as cz, type ConversationListItem as d, type MergeStrategy as d0, type FlowDefinitionContainer as d1, type LoopConfig as d2, type FlowDefinitionNode as d3, type FlowDefinition as d4, type InboxTask as d5, type InboxTaskStatus as d6, type TaskCompletionResult as d7, RETRY_STRATEGIES as d8, getRefDisplayName as d9, type ChatMessageSavedEvent as dA, type ChatMessageDeliveredEvent as dB, type ChatLogEvent as dC, ConversationManager as dD, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as dE, type ListConversationsOptions as dF, type CreateConversationOptions as dG, type SendMessageOptions as dH, type ConversationSubscription as dI, type PlanActionReceipt as dJ, type PlanActionOptions as dK, type ConversationManagerOptions as dL, projectPlansFromMessages as dM, getRefPath as da, isFlowDefinitionStep as db, isFlowDefinitionContainer as dc, InboxApi as dd, type InboxApiOptions as de, type ListTasksOptions as df, type ListTasksResponse as dg, type ChatEvent as dh, type Conversation as di, type ConversationType as dj, type ConversationStatus as dk, type MessageBody as dl, type ChatTextChunkEvent as dm, type ChatAssistantMessageEvent as dn, type ChatWaitingEvent as dp, type ChatCompletedEvent as dq, type ChatFailedEvent as dr, type ChatDoneEvent as ds, type ChatToolCallStartedEvent as dt, type ChatToolCallCompletedEvent as du, type ChatThoughtChunkEvent as dv, type ToolCallRecord as dw, type MessageChild as dx, type PlanTask as dy, type ChatConversationCreatedEvent as dz, ConversationListStore as e, 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 ClientMode as x, type CurrentUser as y, type UserNode as z };
|
package/dist/{conversation-list-store-C135ghpi.d.ts → conversation-list-store-CfK-DEYd.d.ts}
RENAMED
|
@@ -4259,6 +4259,25 @@ interface FlowInstanceStatusResponse {
|
|
|
4259
4259
|
started_at: string;
|
|
4260
4260
|
/** Error message (if status is failed) */
|
|
4261
4261
|
error?: string;
|
|
4262
|
+
/** Execution metrics, when the server includes them. */
|
|
4263
|
+
metrics?: FlowMetrics;
|
|
4264
|
+
}
|
|
4265
|
+
/** Execution metrics for a flow run. */
|
|
4266
|
+
interface FlowMetrics {
|
|
4267
|
+
total_duration_ms: number;
|
|
4268
|
+
step_count: number;
|
|
4269
|
+
retry_count: number;
|
|
4270
|
+
compensation_count: number;
|
|
4271
|
+
ai_iteration_count: number;
|
|
4272
|
+
/**
|
|
4273
|
+
* Model calls whose usage was reported.
|
|
4274
|
+
*
|
|
4275
|
+
* Counted separately from the token totals: a call that reported no usage is
|
|
4276
|
+
* a different fact from no call at all.
|
|
4277
|
+
*/
|
|
4278
|
+
ai_call_count: number;
|
|
4279
|
+
total_input_tokens: number;
|
|
4280
|
+
total_output_tokens: number;
|
|
4262
4281
|
}
|
|
4263
4282
|
/** Base properties shared by all events */
|
|
4264
4283
|
interface BaseFlowEvent {
|
|
@@ -4271,12 +4290,33 @@ interface StepStartedEvent extends BaseFlowEvent {
|
|
|
4271
4290
|
step_name?: string;
|
|
4272
4291
|
step_type: string;
|
|
4273
4292
|
}
|
|
4293
|
+
/**
|
|
4294
|
+
* Model usage attributable to ONE step.
|
|
4295
|
+
*
|
|
4296
|
+
* Mirrors the engine's `StepUsage`. Providers disagree on the wire spelling
|
|
4297
|
+
* (`input_tokens`/`output_tokens` vs OpenAI's `prompt_tokens`/
|
|
4298
|
+
* `completion_tokens`); the server normalises them, so these two names are what
|
|
4299
|
+
* ever reaches a client.
|
|
4300
|
+
*/
|
|
4301
|
+
interface StepUsage {
|
|
4302
|
+
input_tokens: number;
|
|
4303
|
+
output_tokens: number;
|
|
4304
|
+
}
|
|
4274
4305
|
/** A step has completed successfully */
|
|
4275
4306
|
interface StepCompletedEvent extends BaseFlowEvent {
|
|
4276
4307
|
type: 'step_completed';
|
|
4277
4308
|
node_id: string;
|
|
4278
4309
|
output: unknown;
|
|
4279
4310
|
duration_ms: number;
|
|
4311
|
+
/**
|
|
4312
|
+
* Model usage for THIS step, when it made a model call.
|
|
4313
|
+
*
|
|
4314
|
+
* Absent means no call was made (a function step, a decision) — as distinct
|
|
4315
|
+
* from a call that reported nothing, which arrives as zeros. Flow-level totals
|
|
4316
|
+
* live on the instance's metrics; this is what attributes cost to a node,
|
|
4317
|
+
* which is the question anyone tuning an agent graph has.
|
|
4318
|
+
*/
|
|
4319
|
+
usage?: StepUsage;
|
|
4280
4320
|
}
|
|
4281
4321
|
/** A step has failed */
|
|
4282
4322
|
interface StepFailedEvent extends BaseFlowEvent {
|
|
@@ -5239,7 +5279,7 @@ declare function getRefDisplayName(ref: RaisinReference): string;
|
|
|
5239
5279
|
/** Get the full path from a reference. */
|
|
5240
5280
|
declare function getRefPath(ref: RaisinReference): string;
|
|
5241
5281
|
/** Container types */
|
|
5242
|
-
type ContainerType = 'and' | 'or' | 'parallel' | 'ai_sequence';
|
|
5282
|
+
type ContainerType = 'and' | 'or' | 'parallel' | 'loop' | 'ai_sequence' | 'competition';
|
|
5243
5283
|
/** Step error behavior */
|
|
5244
5284
|
type StepErrorBehavior = 'stop' | 'skip' | 'continue';
|
|
5245
5285
|
/** Flow-level error strategy */
|
|
@@ -5390,7 +5430,9 @@ interface FlowStepProperties {
|
|
|
5390
5430
|
/** Lua script for evaluation */
|
|
5391
5431
|
lua_script?: string;
|
|
5392
5432
|
/** Condition expression (REL) - same namespaces as templates:
|
|
5393
|
-
* `input.*`, `steps.<id>.*`, `trigger.*`,
|
|
5433
|
+
* `input.*`, `steps.<id>.*`, `trigger.*`, `visits.<step_id>` (how many times a
|
|
5434
|
+
* node has been entered — what bounds a cyclic graph), `history.<step_id>`
|
|
5435
|
+
* (that node's output per visit, oldest first), flow variables */
|
|
5394
5436
|
condition?: string;
|
|
5395
5437
|
/** Key for payload data */
|
|
5396
5438
|
payload_key?: string;
|
|
@@ -5503,12 +5545,47 @@ interface FanOutConfig {
|
|
|
5503
5545
|
}
|
|
5504
5546
|
/** How a parallel container joins its branches */
|
|
5505
5547
|
type MergeStrategy = 'merge_all' | 'first_success' | 'all_success';
|
|
5506
|
-
/**
|
|
5548
|
+
/**
|
|
5549
|
+
* How a loop container iterates.
|
|
5550
|
+
*
|
|
5551
|
+
* EXACTLY ONE of `over`, `while` or `times` decides the shape. `over` was once
|
|
5552
|
+
* required — correct while the engine hardcoded `for_each` and its while/times
|
|
5553
|
+
* arms were unreachable from the designer format — so it is optional here, and
|
|
5554
|
+
* naming none or several is refused by the engine rather than resolved by
|
|
5555
|
+
* precedence.
|
|
5556
|
+
*/
|
|
5557
|
+
interface LoopConfig {
|
|
5558
|
+
/** for_each: expression resolving to the collection to iterate. */
|
|
5559
|
+
over?: string;
|
|
5560
|
+
/** while: a REL condition re-tested BEFORE each iteration. */
|
|
5561
|
+
while?: string;
|
|
5562
|
+
/** times: a fixed repeat count. */
|
|
5563
|
+
times?: number;
|
|
5564
|
+
/** Variable name for the current item (default `item`). */
|
|
5565
|
+
item?: string;
|
|
5566
|
+
/** Variable name for the current 0-based index. */
|
|
5567
|
+
index?: string;
|
|
5568
|
+
/** Safety cap on iterations. */
|
|
5569
|
+
max_iterations?: number;
|
|
5570
|
+
/**
|
|
5571
|
+
* `while` only: drop the iteration ceiling and run purely on the condition.
|
|
5572
|
+
*
|
|
5573
|
+
* Opt-in rather than the meaning of an absent `max_iterations`. Safe because
|
|
5574
|
+
* the executor bounds a runaway itself, so a condition that never goes false
|
|
5575
|
+
* costs a failed flow rather than a wedged worker.
|
|
5576
|
+
*/
|
|
5577
|
+
unbounded?: boolean;
|
|
5578
|
+
/** Early-exit REL condition, evaluated after each completed iteration. */
|
|
5579
|
+
until?: string;
|
|
5580
|
+
}
|
|
5581
|
+
/** Container node with children (AND/OR/Parallel/Loop/AI/Competition) */
|
|
5507
5582
|
interface FlowDefinitionContainer extends FlowDefinitionNodeBase {
|
|
5508
5583
|
node_type: 'raisin:FlowContainer';
|
|
5509
5584
|
container_type: ContainerType;
|
|
5510
5585
|
rules?: ContainerRule[];
|
|
5511
5586
|
children: FlowDefinitionNode[];
|
|
5587
|
+
/** Iteration configuration (only for loop type) */
|
|
5588
|
+
loop?: LoopConfig;
|
|
5512
5589
|
/** AI container configuration (only for ai_sequence type) */
|
|
5513
5590
|
ai_config?: AiContainerConfig;
|
|
5514
5591
|
/** Fan-out configuration (only for parallel type): one branch per collection item */
|
|
@@ -7082,4 +7159,4 @@ declare class ConversationListStore {
|
|
|
7082
7159
|
private notify;
|
|
7083
7160
|
}
|
|
7084
7161
|
|
|
7085
|
-
export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type
|
|
7162
|
+
export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type FanOutConfig as c$, IdentityAuthApi as c0, readTokensFromFragment as c1, type IdentityAuthResult as c2, type IdentityAuthTransport as c3, type IdentityInfo as c4, type IdentityMe as c5, type MagicLinkSent as c6, type MagicLinkOptions as c7, type AuthProviders as c8, type FunctionInvokeOptions as c9, type ToolCallStartedEvent as cA, type ToolCallCompletedEvent as cB, type ThoughtChunkEvent as cC, type ConversationCreatedEvent as cD, type MessageSavedEvent as cE, type LogEvent as cF, isTerminalEvent as cG, type RaisinReference as cH, type ContainerType as cI, type StepErrorBehavior as cJ, type FlowErrorStrategy as cK, type RetryConfig as cL, type RetryStrategy as cM, type HumanTaskType as cN, type CanonicalTaskType as cO, type TaskOption as cP, type HandoffTarget as cQ, type ChatTerminationMode as cR, type ChatTerminationConfig as cS, type ChatStepConfig as cT, type AiToolMode as cU, type AiErrorBehavior as cV, type AiContainerConfig as cW, type FlowDefinitionNodeBase as cX, type FlowStepProperties as cY, type FlowDefinitionStep as cZ, type ContainerRule as c_, type FunctionInvokeResponse as ca, type FunctionInvokeSyncResponse as cb, McpClient as cc, type McpTransport as cd, type McpFrameStream as ce, type McpJsonRpcFrame as cf, type McpToolDescriptor as cg, type McpContentBlock as ch, type McpCallToolResult as ci, type McpResourceContents as cj, type McpReadResourceResult as ck, type McpResourceUpdate as cl, type McpResourceSubscription as cm, type FlowRunResponse as cn, type FlowInstanceStatus as co, type FlowInstanceStatusResponse as cp, type FlowMetrics as cq, type StepStartedEvent as cr, type StepCompletedEvent as cs, type StepUsage as ct, type StepFailedEvent as cu, type FlowWaitingEvent as cv, type FlowResumedEvent as cw, type FlowCompletedEvent as cx, type FlowFailedEvent as cy, type TextChunkEvent as cz, type ConversationListItem as d, type MergeStrategy as d0, type FlowDefinitionContainer as d1, type LoopConfig as d2, type FlowDefinitionNode as d3, type FlowDefinition as d4, type InboxTask as d5, type InboxTaskStatus as d6, type TaskCompletionResult as d7, RETRY_STRATEGIES as d8, getRefDisplayName as d9, type ChatMessageSavedEvent as dA, type ChatMessageDeliveredEvent as dB, type ChatLogEvent as dC, ConversationManager as dD, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as dE, type ListConversationsOptions as dF, type CreateConversationOptions as dG, type SendMessageOptions as dH, type ConversationSubscription as dI, type PlanActionReceipt as dJ, type PlanActionOptions as dK, type ConversationManagerOptions as dL, projectPlansFromMessages as dM, getRefPath as da, isFlowDefinitionStep as db, isFlowDefinitionContainer as dc, InboxApi as dd, type InboxApiOptions as de, type ListTasksOptions as df, type ListTasksResponse as dg, type ChatEvent as dh, type Conversation as di, type ConversationType as dj, type ConversationStatus as dk, type MessageBody as dl, type ChatTextChunkEvent as dm, type ChatAssistantMessageEvent as dn, type ChatWaitingEvent as dp, type ChatCompletedEvent as dq, type ChatFailedEvent as dr, type ChatDoneEvent as ds, type ChatToolCallStartedEvent as dt, type ChatToolCallCompletedEvent as du, type ChatThoughtChunkEvent as dv, type ToolCallRecord as dw, type MessageChild as dx, type PlanTask as dy, type ChatConversationCreatedEvent as dz, ConversationListStore as e, 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 ClientMode as x, type CurrentUser as y, type UserNode 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-CfK-DEYd.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-CfK-DEYd.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 {
|
|
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-CfK-DEYd.mjs';
|
|
2
|
+
export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-CfK-DEYd.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-D2Vw7FpW.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-B_YbYl-Q.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 {
|
|
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-CfK-DEYd.js';
|
|
2
|
+
export { cW as AiContainerConfig, cV as AiErrorBehavior, cU as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cO as CanonicalTaskType, dn as ChatAssistantMessageEvent, dq as ChatCompletedEvent, dz as ChatConversationCreatedEvent, ds as ChatDoneEvent, dh as ChatEvent, dr as ChatFailedEvent, dC as ChatLogEvent, b as ChatMessage, dB as ChatMessageDeliveredEvent, dA as ChatMessageSavedEvent, cT as ChatStepConfig, cS as ChatTerminationConfig, cR as ChatTerminationMode, dm as ChatTextChunkEvent, dv as ChatThoughtChunkEvent, du as ChatToolCallCompletedEvent, dt as ChatToolCallStartedEvent, dp as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, c_ as ContainerRule, cI as ContainerType, di as Conversation, cD as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dD as ConversationManager, dL as ConversationManagerOptions, dk as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dI as ConversationSubscription, dj as ConversationType, dG as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dE as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, c$ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cx as FlowCompletedEvent, d4 as FlowDefinition, d1 as FlowDefinitionContainer, d3 as FlowDefinitionNode, cX as FlowDefinitionNodeBase, cZ as FlowDefinitionStep, cK as FlowErrorStrategy, j as FlowExecutionEvent, cy as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cq as FlowMetrics, cw as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cY as FlowStepProperties, cv as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cQ as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cN as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, dd as InboxApi, de as InboxApiOptions, d5 as InboxTask, d6 as InboxTaskStatus, aM as IncomingRelation, dF as ListConversationsOptions, ak as ListInvocationsFilter, df as ListTasksOptions, dg as ListTasksResponse, aC as LocalStorageTokenStorage, cF as LogEvent, bo as LogLevel, bu as LoggerConfig, d2 as LoopConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, d0 as MergeStrategy, dl as MessageBody, dx as MessageChild, cE as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dK as PlanActionOptions, dJ as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dy as PlanTask, d8 as RETRY_STRATEGIES, cH as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cL as RetryConfig, cM as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dH as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cs as StepCompletedEvent, cJ as StepErrorBehavior, cu as StepFailedEvent, cr as StepStartedEvent, ct as StepUsage, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d7 as TaskCompletionResult, cP as TaskOption, cz as TextChunkEvent, cC as ThoughtChunkEvent, aD as TokenStorage, cB as ToolCallCompletedEvent, T as ToolCallInfo, dw as ToolCallRecord, cA as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d9 as getRefDisplayName, da as getRefPath, bl as isEventMessage, dc as isFlowDefinitionContainer, db as isFlowDefinitionStep, bm as isResponseEnvelope, cG as isTerminalEvent, bp as logger, dM as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-CfK-DEYd.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-BfP-1PoU.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-Cg1Jo0Fs.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
|
@@ -7794,7 +7794,7 @@ var RaisinHttpClient = class extends import_events3.EventEmitter {
|
|
|
7794
7794
|
"Content-Type": "application/json",
|
|
7795
7795
|
...options.headers
|
|
7796
7796
|
};
|
|
7797
|
-
if (!options.skipAuth
|
|
7797
|
+
if (!options.skipAuth) {
|
|
7798
7798
|
const token = this.authManager.getAccessToken();
|
|
7799
7799
|
if (token) {
|
|
7800
7800
|
headers["Authorization"] = `Bearer ${token}`;
|
|
@@ -7938,11 +7938,9 @@ var RaisinHttpClient = class extends import_events3.EventEmitter {
|
|
|
7938
7938
|
*/
|
|
7939
7939
|
mcpSubscribe(repository, branch, slug, method, params) {
|
|
7940
7940
|
const headers = {};
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
7945
|
-
}
|
|
7941
|
+
const token = this.authManager.getAccessToken();
|
|
7942
|
+
if (token) {
|
|
7943
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
7946
7944
|
}
|
|
7947
7945
|
const sse = new SSEClient(
|
|
7948
7946
|
`${this.baseUrl}/mcp/${repository}/${branch}/${slug}`,
|