@arbidocs/sdk 0.3.14 → 0.3.16
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/{browser-DtwXhEkG.d.cts → browser-DFRwcoc1.d.cts} +7 -1
- package/dist/{browser-DtwXhEkG.d.ts → browser-DFRwcoc1.d.ts} +7 -1
- package/dist/browser.cjs +8 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -218,6 +218,7 @@ type AgentStepEvent = components['schemas']['AgentStepEvent'];
|
|
|
218
218
|
type UserInputRequestEvent = components['schemas']['UserInputRequestEvent'];
|
|
219
219
|
type ArtifactEvent = components['schemas']['ArtifactEvent'];
|
|
220
220
|
type UserMessageEvent = components['schemas']['UserMessageEvent'];
|
|
221
|
+
type MessageQueuedEvent = components['schemas']['MessageQueuedEvent'];
|
|
221
222
|
type MessageMetadataPayload = components['schemas']['MessageMetadataPayload'];
|
|
222
223
|
type ResponseUsage = components['schemas']['ResponseUsage'];
|
|
223
224
|
type OutputTokensDetails = components['schemas']['OutputTokensDetails'];
|
|
@@ -273,6 +274,7 @@ interface SSEStreamCallbacks {
|
|
|
273
274
|
onContentPartAdded?: (data: ResponseContentPartAddedEvent) => void;
|
|
274
275
|
onAgentStep?: (data: AgentStepEvent) => void;
|
|
275
276
|
onError?: (message: string) => void;
|
|
277
|
+
onMessageQueued?: (data: MessageQueuedEvent) => void;
|
|
276
278
|
onUserMessage?: (data: UserMessageEvent) => void;
|
|
277
279
|
onMetadata?: (data: MessageMetadataPayload) => void;
|
|
278
280
|
onUserInputRequest?: (data: UserInputRequestEvent) => void;
|
|
@@ -1413,6 +1415,7 @@ declare class Arbi {
|
|
|
1413
1415
|
config_ext_id?: string | null | undefined;
|
|
1414
1416
|
shared: boolean;
|
|
1415
1417
|
tokens: number;
|
|
1418
|
+
status: string;
|
|
1416
1419
|
external_id: string;
|
|
1417
1420
|
created_at: string;
|
|
1418
1421
|
created_by_ext_id: string;
|
|
@@ -1557,6 +1560,7 @@ declare class Arbi {
|
|
|
1557
1560
|
config_ext_id?: string | null | undefined;
|
|
1558
1561
|
shared: boolean;
|
|
1559
1562
|
tokens: number;
|
|
1563
|
+
status: string;
|
|
1560
1564
|
external_id: string;
|
|
1561
1565
|
created_at: string;
|
|
1562
1566
|
created_by_ext_id: string;
|
|
@@ -2541,6 +2545,7 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
|
|
|
2541
2545
|
config_ext_id?: string | null | undefined;
|
|
2542
2546
|
shared: boolean;
|
|
2543
2547
|
tokens: number;
|
|
2548
|
+
status: string;
|
|
2544
2549
|
external_id: string;
|
|
2545
2550
|
created_at: string;
|
|
2546
2551
|
created_by_ext_id: string;
|
|
@@ -2685,6 +2690,7 @@ declare function getMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
2685
2690
|
config_ext_id?: string | null | undefined;
|
|
2686
2691
|
shared: boolean;
|
|
2687
2692
|
tokens: number;
|
|
2693
|
+
status: string;
|
|
2688
2694
|
external_id: string;
|
|
2689
2695
|
created_at: string;
|
|
2690
2696
|
created_by_ext_id: string;
|
|
@@ -3227,4 +3233,4 @@ declare namespace responses {
|
|
|
3227
3233
|
export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
|
|
3228
3234
|
}
|
|
3229
3235
|
|
|
3230
|
-
export {
|
|
3236
|
+
export { connectWebSocket as $, type AuthHeaders as A, type ResponseUsage as B, type ConfigStore as C, type DocumentWaiter as D, type SSEStreamCallbacks as E, type FormattedWsMessage as F, type SSEStreamResult as G, type SSEStreamStartData as H, type UserInfo as I, type UserInputRequestEvent as J, type UserMessageEvent as K, LIFECYCLE_LABELS as L, type MessageLevel as M, type WsConnection as N, type OutputTokensDetails as O, agentconfig as P, type QueryOptions as Q, type ReconnectOptions as R, type SSEEvent as S, TOOL_LABELS as T, type UploadBatchResult as U, assistant as V, type WorkspaceContext as W, authenticatedFetch as X, buildRetrievalChunkTool as Y, buildRetrievalFullContextTool as Z, buildRetrievalTocTool as _, type CliConfig as a, connectWithReconnect as a0, consumeSSEStream as a1, contacts as a2, conversations as a3, createAuthenticatedClient as a4, createDocumentWaiter as a5, dm as a6, doctags as a7, documents as a8, files as a9, formatAgentStepLabel as aa, formatFileSize as ab, formatUserName as ac, formatWorkspaceChoices as ad, formatWsMessage as ae, generateEncryptedWorkspaceKey as af, getErrorCode as ag, getErrorMessage as ah, health as ai, parseSSEEvents as aj, performPasswordLogin as ak, requireData as al, requireOk as am, resolveAuth as an, resolveWorkspace as ao, responses as ap, selectWorkspace as aq, selectWorkspaceById as ar, settings as as, streamSSE as at, tags as au, workspaces as av, type CliCredentials as b, type ChatSession as c, type UploadOptions as d, type UploadResult as e, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiOptions as j, type ArtifactEvent as k, type AuthContext as l, type AuthenticatedClient as m, type ConnectOptions as n, type DocumentWaiterOptions as o, type MessageMetadataPayload as p, type MessageQueuedEvent as q, type ReconnectableWsConnection as r, type ResponseCompletedEvent as s, type ResponseContentPartAddedEvent as t, type ResponseCreatedEvent as u, type ResponseFailedEvent as v, type ResponseOutputItemAddedEvent as w, type ResponseOutputItemDoneEvent as x, type ResponseOutputTextDeltaEvent as y, type ResponseOutputTextDoneEvent as z };
|
|
@@ -218,6 +218,7 @@ type AgentStepEvent = components['schemas']['AgentStepEvent'];
|
|
|
218
218
|
type UserInputRequestEvent = components['schemas']['UserInputRequestEvent'];
|
|
219
219
|
type ArtifactEvent = components['schemas']['ArtifactEvent'];
|
|
220
220
|
type UserMessageEvent = components['schemas']['UserMessageEvent'];
|
|
221
|
+
type MessageQueuedEvent = components['schemas']['MessageQueuedEvent'];
|
|
221
222
|
type MessageMetadataPayload = components['schemas']['MessageMetadataPayload'];
|
|
222
223
|
type ResponseUsage = components['schemas']['ResponseUsage'];
|
|
223
224
|
type OutputTokensDetails = components['schemas']['OutputTokensDetails'];
|
|
@@ -273,6 +274,7 @@ interface SSEStreamCallbacks {
|
|
|
273
274
|
onContentPartAdded?: (data: ResponseContentPartAddedEvent) => void;
|
|
274
275
|
onAgentStep?: (data: AgentStepEvent) => void;
|
|
275
276
|
onError?: (message: string) => void;
|
|
277
|
+
onMessageQueued?: (data: MessageQueuedEvent) => void;
|
|
276
278
|
onUserMessage?: (data: UserMessageEvent) => void;
|
|
277
279
|
onMetadata?: (data: MessageMetadataPayload) => void;
|
|
278
280
|
onUserInputRequest?: (data: UserInputRequestEvent) => void;
|
|
@@ -1413,6 +1415,7 @@ declare class Arbi {
|
|
|
1413
1415
|
config_ext_id?: string | null | undefined;
|
|
1414
1416
|
shared: boolean;
|
|
1415
1417
|
tokens: number;
|
|
1418
|
+
status: string;
|
|
1416
1419
|
external_id: string;
|
|
1417
1420
|
created_at: string;
|
|
1418
1421
|
created_by_ext_id: string;
|
|
@@ -1557,6 +1560,7 @@ declare class Arbi {
|
|
|
1557
1560
|
config_ext_id?: string | null | undefined;
|
|
1558
1561
|
shared: boolean;
|
|
1559
1562
|
tokens: number;
|
|
1563
|
+
status: string;
|
|
1560
1564
|
external_id: string;
|
|
1561
1565
|
created_at: string;
|
|
1562
1566
|
created_by_ext_id: string;
|
|
@@ -2541,6 +2545,7 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
|
|
|
2541
2545
|
config_ext_id?: string | null | undefined;
|
|
2542
2546
|
shared: boolean;
|
|
2543
2547
|
tokens: number;
|
|
2548
|
+
status: string;
|
|
2544
2549
|
external_id: string;
|
|
2545
2550
|
created_at: string;
|
|
2546
2551
|
created_by_ext_id: string;
|
|
@@ -2685,6 +2690,7 @@ declare function getMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
2685
2690
|
config_ext_id?: string | null | undefined;
|
|
2686
2691
|
shared: boolean;
|
|
2687
2692
|
tokens: number;
|
|
2693
|
+
status: string;
|
|
2688
2694
|
external_id: string;
|
|
2689
2695
|
created_at: string;
|
|
2690
2696
|
created_by_ext_id: string;
|
|
@@ -3227,4 +3233,4 @@ declare namespace responses {
|
|
|
3227
3233
|
export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
|
|
3228
3234
|
}
|
|
3229
3235
|
|
|
3230
|
-
export {
|
|
3236
|
+
export { connectWebSocket as $, type AuthHeaders as A, type ResponseUsage as B, type ConfigStore as C, type DocumentWaiter as D, type SSEStreamCallbacks as E, type FormattedWsMessage as F, type SSEStreamResult as G, type SSEStreamStartData as H, type UserInfo as I, type UserInputRequestEvent as J, type UserMessageEvent as K, LIFECYCLE_LABELS as L, type MessageLevel as M, type WsConnection as N, type OutputTokensDetails as O, agentconfig as P, type QueryOptions as Q, type ReconnectOptions as R, type SSEEvent as S, TOOL_LABELS as T, type UploadBatchResult as U, assistant as V, type WorkspaceContext as W, authenticatedFetch as X, buildRetrievalChunkTool as Y, buildRetrievalFullContextTool as Z, buildRetrievalTocTool as _, type CliConfig as a, connectWithReconnect as a0, consumeSSEStream as a1, contacts as a2, conversations as a3, createAuthenticatedClient as a4, createDocumentWaiter as a5, dm as a6, doctags as a7, documents as a8, files as a9, formatAgentStepLabel as aa, formatFileSize as ab, formatUserName as ac, formatWorkspaceChoices as ad, formatWsMessage as ae, generateEncryptedWorkspaceKey as af, getErrorCode as ag, getErrorMessage as ah, health as ai, parseSSEEvents as aj, performPasswordLogin as ak, requireData as al, requireOk as am, resolveAuth as an, resolveWorkspace as ao, responses as ap, selectWorkspace as aq, selectWorkspaceById as ar, settings as as, streamSSE as at, tags as au, workspaces as av, type CliCredentials as b, type ChatSession as c, type UploadOptions as d, type UploadResult as e, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiOptions as j, type ArtifactEvent as k, type AuthContext as l, type AuthenticatedClient as m, type ConnectOptions as n, type DocumentWaiterOptions as o, type MessageMetadataPayload as p, type MessageQueuedEvent as q, type ReconnectableWsConnection as r, type ResponseCompletedEvent as s, type ResponseContentPartAddedEvent as t, type ResponseCreatedEvent as u, type ResponseFailedEvent as v, type ResponseOutputItemAddedEvent as w, type ResponseOutputItemDoneEvent as x, type ResponseOutputTextDeltaEvent as y, type ResponseOutputTextDoneEvent as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -389,6 +389,14 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
389
389
|
callbacks.onError?.(message);
|
|
390
390
|
},
|
|
391
391
|
// ARBI-specific events (dot-prefixed from server)
|
|
392
|
+
"arbi.message_queued": (raw) => {
|
|
393
|
+
const data = JSON.parse(raw);
|
|
394
|
+
if (data.user_message) {
|
|
395
|
+
userMessage = data.user_message;
|
|
396
|
+
callbacks.onUserMessage?.(data.user_message);
|
|
397
|
+
}
|
|
398
|
+
callbacks.onMessageQueued?.(data);
|
|
399
|
+
},
|
|
392
400
|
"arbi.agent_step": (raw) => {
|
|
393
401
|
const data = JSON.parse(raw);
|
|
394
402
|
const label = formatAgentStepLabel(data);
|