@arbidocs/sdk 0.3.124 → 0.3.125

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.
@@ -311,6 +311,7 @@ type AgentStepEvent = components['schemas']['AgentStepEvent'];
311
311
  type AgentStepDeltaEvent = components['schemas']['AgentStepDeltaEvent'];
312
312
  type UserInputRequestEvent = components['schemas']['UserInputRequestEvent'];
313
313
  type ProbeAnswerEvent = components['schemas']['ProbeAnswerEvent'];
314
+ type DeferredInterjectionEvent = components['schemas']['DeferredInterjectionEvent'];
314
315
  type AgentControlStateEvent = components['schemas']['AgentControlStateEvent'];
315
316
  type ArtifactEvent = components['schemas']['ArtifactEvent'];
316
317
  type UserMessageEvent = components['schemas']['UserMessageEvent'];
@@ -416,6 +417,11 @@ interface SSEStreamCallbacks {
416
417
  onUserInputRequest?: (data: UserInputRequestEvent) => void;
417
418
  /** Out-of-band status probe answer ("how's it going?") — transient, never persisted. */
418
419
  onProbeAnswer?: (data: ProbeAnswerEvent) => void;
420
+ /**
421
+ * Steering that arrived after the agent had committed to its answer — too late
422
+ * to steer this turn. The consumer submits `message` as a NEW turn.
423
+ */
424
+ onDeferredInterjection?: (data: DeferredInterjectionEvent) => void;
419
425
  /** Server-confirmed run-control state (paused / running). */
420
426
  onAgentControlState?: (data: AgentControlStateEvent) => void;
421
427
  onArtifact?: (data: ArtifactEvent) => void;
@@ -3307,6 +3313,7 @@ declare class Arbi {
3307
3313
  show_connector_microsoft: boolean;
3308
3314
  show_connector_google: boolean;
3309
3315
  show_connector_imanage: boolean;
3316
+ show_appearance: boolean;
3310
3317
  show_file_explorer: boolean;
3311
3318
  show_hints: boolean;
3312
3319
  show_tasks: boolean;
@@ -5073,6 +5080,7 @@ declare function getSettings(arbi: ArbiClient): Promise<{
5073
5080
  show_connector_microsoft: boolean;
5074
5081
  show_connector_google: boolean;
5075
5082
  show_connector_imanage: boolean;
5083
+ show_appearance: boolean;
5076
5084
  show_file_explorer: boolean;
5077
5085
  show_hints: boolean;
5078
5086
  show_tasks: boolean;
@@ -5735,4 +5743,4 @@ declare namespace projects {
5735
5743
  export { type projects_ProjectInvoicesResponse as ProjectInvoicesResponse, type projects_ProjectUpdateRequest as ProjectUpdateRequest, type projects_ProjectUsageResponse as ProjectUsageResponse, type projects_UserDailyUsageResponse as UserDailyUsageResponse, projects_createProject as createProject, projects_deleteProject as deleteProject, projects_getProjectInvoices as getProjectInvoices, projects_getProjectUsage as getProjectUsage, projects_getUserUsageToday as getUserUsageToday, projects_listProjects as listProjects, projects_refreshProject as refreshProject, projects_renameProject as renameProject, projects_updateProject as updateProject };
5736
5744
  }
5737
5745
 
5738
- export { type ResponseOutputTextDeltaEvent as $, type AgentControlStateEvent as A, type MemorySearchRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MemorySearchResponse as E, type FormattedWsMessage as F, type MessageLevel as G, type MessageMetadataPayload$1 as H, type MessageQueuedEvent as I, type ProbeAnswerEvent as J, type ProjectInvoicesResponse as K, type ListAllOptions as L, type MemoryResponse as M, type ProjectUsageResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ReconnectableWsConnection as S, type ResolvedCitation as T, type ResolvedRecipient as U, type ResponseCompletedEvent as V, type ResponseContentPartAddedEvent as W, type ResponseCreatedEvent as X, type ResponseFailedEvent as Y, type ResponseOutputItemAddedEvent as Z, type ResponseOutputItemDoneEvent as _, type AgentStepDeltaEvent as a, performSsoDeviceFlowLogin as a$, type ResponseOutputTextDoneEvent as a0, type ResponseUsage as a1, type SSEEvent as a2, type SSEStreamCallbacks as a3, type SSEStreamResult as a4, type SSEStreamStartData as a5, SUPPORTED_EXTENSIONS as a6, type SkillSummary as a7, type SkippedFile as a8, type TaskResponse as a9, conversations as aA, countCitations as aB, createAuthenticatedClient as aC, createDocumentWaiter as aD, dm as aE, doctags as aF, documents as aG, files as aH, filterSkills as aI, formatAgentStepLabel as aJ, formatFileSize as aK, formatStreamSummary as aL, formatUserName as aM, formatWorkspaceChoices as aN, formatWsMessage as aO, generateEncryptedWorkspaceKey as aP, generateNewWorkspaceKey as aQ, getErrorCode as aR, getErrorMessage as aS, getRawWorkspaceKey as aT, health as aU, memory as aV, parseSSEEvents as aW, parseSlashCommand as aX, parseSlashTokenInProgress as aY, performPasswordLogin as aZ, performSigningKeyLogin as a_, type UpdateMemoryRequest as aa, type UpdateTaskRequest as ab, type UploadBatchResult as ac, type UploadDirectOptions as ad, type UploadDirectResult as ae, type UploadOptions as af, type UploadResult as ag, type UserDailyUsageResponse as ah, type UserInfo as ai, type UserInputRequestEvent as aj, type UserMessageEvent as ak, WebSocketAuthError as al, type WorkspaceChronologyOut as am, type WorkspaceContext as an, type WsConnection as ao, agentconfig as ap, assistant as aq, authenticatedFetch as ar, buildDocNameMap as as, buildRetrievalChunkTool as at, buildRetrievalFullContextTool as au, buildRetrievalTocTool as av, connectWebSocket as aw, connectWithReconnect as ax, consumeSSEStream as ay, contacts as az, type AgentStepEvent as b, projects as b0, requireData as b1, requireOk as b2, resolveAuth as b3, resolveCitations as b4, resolveWorkspace as b5, responses as b6, selectWorkspace as b7, selectWorkspaceById as b8, settings as b9, streamSSE as ba, stripCitationMarkdown as bb, summarizeCitations as bc, tags as bd, tasks as be, workspaces as bf, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateMemoryRequest as r, type CreateTaskRequest as s, type DmCryptoContext as t, type DocNameMap as u, type DocumentListFields as v, type DocumentListOrder as w, type DocumentWaiter as x, type DocumentWaiterOptions as y, type ListPaginatedOptions as z };
5746
+ export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type ListPaginatedOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MemorySearchRequest as E, type FormattedWsMessage as F, type MemorySearchResponse as G, type MessageLevel as H, type MessageMetadataPayload$1 as I, type MessageQueuedEvent as J, type ProbeAnswerEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ProjectInvoicesResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProjectUsageResponse as Q, type QueryOptions as R, type ReconnectOptions as S, type ReconnectableWsConnection as T, type ResolvedCitation as U, type ResolvedRecipient as V, type ResponseCompletedEvent as W, type ResponseContentPartAddedEvent as X, type ResponseCreatedEvent as Y, type ResponseFailedEvent as Z, type ResponseOutputItemAddedEvent as _, type AgentStepDeltaEvent as a, performSigningKeyLogin as a$, type ResponseOutputTextDeltaEvent as a0, type ResponseOutputTextDoneEvent as a1, type ResponseUsage as a2, type SSEEvent as a3, type SSEStreamCallbacks as a4, type SSEStreamResult as a5, type SSEStreamStartData as a6, SUPPORTED_EXTENSIONS as a7, type SkillSummary as a8, type SkippedFile as a9, contacts as aA, conversations as aB, countCitations as aC, createAuthenticatedClient as aD, createDocumentWaiter as aE, dm as aF, doctags as aG, documents as aH, files as aI, filterSkills as aJ, formatAgentStepLabel as aK, formatFileSize as aL, formatStreamSummary as aM, formatUserName as aN, formatWorkspaceChoices as aO, formatWsMessage as aP, generateEncryptedWorkspaceKey as aQ, generateNewWorkspaceKey as aR, getErrorCode as aS, getErrorMessage as aT, getRawWorkspaceKey as aU, health as aV, memory as aW, parseSSEEvents as aX, parseSlashCommand as aY, parseSlashTokenInProgress as aZ, performPasswordLogin as a_, type TaskResponse as aa, type UpdateMemoryRequest as ab, type UpdateTaskRequest as ac, type UploadBatchResult as ad, type UploadDirectOptions as ae, type UploadDirectResult as af, type UploadOptions as ag, type UploadResult as ah, type UserDailyUsageResponse as ai, type UserInfo as aj, type UserInputRequestEvent as ak, type UserMessageEvent as al, WebSocketAuthError as am, type WorkspaceChronologyOut as an, type WorkspaceContext as ao, type WsConnection as ap, agentconfig as aq, assistant as ar, authenticatedFetch as as, buildDocNameMap as at, buildRetrievalChunkTool as au, buildRetrievalFullContextTool as av, buildRetrievalTocTool as aw, connectWebSocket as ax, connectWithReconnect as ay, consumeSSEStream as az, type AgentStepEvent as b, performSsoDeviceFlowLogin as b0, projects as b1, requireData as b2, requireOk as b3, resolveAuth as b4, resolveCitations as b5, resolveWorkspace as b6, responses as b7, selectWorkspace as b8, selectWorkspaceById as b9, settings as ba, streamSSE as bb, stripCitationMarkdown as bc, summarizeCitations as bd, tags as be, tasks as bf, workspaces as bg, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateMemoryRequest as r, type CreateTaskRequest as s, type DeferredInterjectionEvent as t, type DmCryptoContext as u, type DocNameMap as v, type DocumentListFields as w, type DocumentListOrder as x, type DocumentWaiter as y, type DocumentWaiterOptions as z };
@@ -311,6 +311,7 @@ type AgentStepEvent = components['schemas']['AgentStepEvent'];
311
311
  type AgentStepDeltaEvent = components['schemas']['AgentStepDeltaEvent'];
312
312
  type UserInputRequestEvent = components['schemas']['UserInputRequestEvent'];
313
313
  type ProbeAnswerEvent = components['schemas']['ProbeAnswerEvent'];
314
+ type DeferredInterjectionEvent = components['schemas']['DeferredInterjectionEvent'];
314
315
  type AgentControlStateEvent = components['schemas']['AgentControlStateEvent'];
315
316
  type ArtifactEvent = components['schemas']['ArtifactEvent'];
316
317
  type UserMessageEvent = components['schemas']['UserMessageEvent'];
@@ -416,6 +417,11 @@ interface SSEStreamCallbacks {
416
417
  onUserInputRequest?: (data: UserInputRequestEvent) => void;
417
418
  /** Out-of-band status probe answer ("how's it going?") — transient, never persisted. */
418
419
  onProbeAnswer?: (data: ProbeAnswerEvent) => void;
420
+ /**
421
+ * Steering that arrived after the agent had committed to its answer — too late
422
+ * to steer this turn. The consumer submits `message` as a NEW turn.
423
+ */
424
+ onDeferredInterjection?: (data: DeferredInterjectionEvent) => void;
419
425
  /** Server-confirmed run-control state (paused / running). */
420
426
  onAgentControlState?: (data: AgentControlStateEvent) => void;
421
427
  onArtifact?: (data: ArtifactEvent) => void;
@@ -3307,6 +3313,7 @@ declare class Arbi {
3307
3313
  show_connector_microsoft: boolean;
3308
3314
  show_connector_google: boolean;
3309
3315
  show_connector_imanage: boolean;
3316
+ show_appearance: boolean;
3310
3317
  show_file_explorer: boolean;
3311
3318
  show_hints: boolean;
3312
3319
  show_tasks: boolean;
@@ -5073,6 +5080,7 @@ declare function getSettings(arbi: ArbiClient): Promise<{
5073
5080
  show_connector_microsoft: boolean;
5074
5081
  show_connector_google: boolean;
5075
5082
  show_connector_imanage: boolean;
5083
+ show_appearance: boolean;
5076
5084
  show_file_explorer: boolean;
5077
5085
  show_hints: boolean;
5078
5086
  show_tasks: boolean;
@@ -5735,4 +5743,4 @@ declare namespace projects {
5735
5743
  export { type projects_ProjectInvoicesResponse as ProjectInvoicesResponse, type projects_ProjectUpdateRequest as ProjectUpdateRequest, type projects_ProjectUsageResponse as ProjectUsageResponse, type projects_UserDailyUsageResponse as UserDailyUsageResponse, projects_createProject as createProject, projects_deleteProject as deleteProject, projects_getProjectInvoices as getProjectInvoices, projects_getProjectUsage as getProjectUsage, projects_getUserUsageToday as getUserUsageToday, projects_listProjects as listProjects, projects_refreshProject as refreshProject, projects_renameProject as renameProject, projects_updateProject as updateProject };
5736
5744
  }
5737
5745
 
5738
- export { type ResponseOutputTextDeltaEvent as $, type AgentControlStateEvent as A, type MemorySearchRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MemorySearchResponse as E, type FormattedWsMessage as F, type MessageLevel as G, type MessageMetadataPayload$1 as H, type MessageQueuedEvent as I, type ProbeAnswerEvent as J, type ProjectInvoicesResponse as K, type ListAllOptions as L, type MemoryResponse as M, type ProjectUsageResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ReconnectableWsConnection as S, type ResolvedCitation as T, type ResolvedRecipient as U, type ResponseCompletedEvent as V, type ResponseContentPartAddedEvent as W, type ResponseCreatedEvent as X, type ResponseFailedEvent as Y, type ResponseOutputItemAddedEvent as Z, type ResponseOutputItemDoneEvent as _, type AgentStepDeltaEvent as a, performSsoDeviceFlowLogin as a$, type ResponseOutputTextDoneEvent as a0, type ResponseUsage as a1, type SSEEvent as a2, type SSEStreamCallbacks as a3, type SSEStreamResult as a4, type SSEStreamStartData as a5, SUPPORTED_EXTENSIONS as a6, type SkillSummary as a7, type SkippedFile as a8, type TaskResponse as a9, conversations as aA, countCitations as aB, createAuthenticatedClient as aC, createDocumentWaiter as aD, dm as aE, doctags as aF, documents as aG, files as aH, filterSkills as aI, formatAgentStepLabel as aJ, formatFileSize as aK, formatStreamSummary as aL, formatUserName as aM, formatWorkspaceChoices as aN, formatWsMessage as aO, generateEncryptedWorkspaceKey as aP, generateNewWorkspaceKey as aQ, getErrorCode as aR, getErrorMessage as aS, getRawWorkspaceKey as aT, health as aU, memory as aV, parseSSEEvents as aW, parseSlashCommand as aX, parseSlashTokenInProgress as aY, performPasswordLogin as aZ, performSigningKeyLogin as a_, type UpdateMemoryRequest as aa, type UpdateTaskRequest as ab, type UploadBatchResult as ac, type UploadDirectOptions as ad, type UploadDirectResult as ae, type UploadOptions as af, type UploadResult as ag, type UserDailyUsageResponse as ah, type UserInfo as ai, type UserInputRequestEvent as aj, type UserMessageEvent as ak, WebSocketAuthError as al, type WorkspaceChronologyOut as am, type WorkspaceContext as an, type WsConnection as ao, agentconfig as ap, assistant as aq, authenticatedFetch as ar, buildDocNameMap as as, buildRetrievalChunkTool as at, buildRetrievalFullContextTool as au, buildRetrievalTocTool as av, connectWebSocket as aw, connectWithReconnect as ax, consumeSSEStream as ay, contacts as az, type AgentStepEvent as b, projects as b0, requireData as b1, requireOk as b2, resolveAuth as b3, resolveCitations as b4, resolveWorkspace as b5, responses as b6, selectWorkspace as b7, selectWorkspaceById as b8, settings as b9, streamSSE as ba, stripCitationMarkdown as bb, summarizeCitations as bc, tags as bd, tasks as be, workspaces as bf, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateMemoryRequest as r, type CreateTaskRequest as s, type DmCryptoContext as t, type DocNameMap as u, type DocumentListFields as v, type DocumentListOrder as w, type DocumentWaiter as x, type DocumentWaiterOptions as y, type ListPaginatedOptions as z };
5746
+ export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type ListPaginatedOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MemorySearchRequest as E, type FormattedWsMessage as F, type MemorySearchResponse as G, type MessageLevel as H, type MessageMetadataPayload$1 as I, type MessageQueuedEvent as J, type ProbeAnswerEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ProjectInvoicesResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProjectUsageResponse as Q, type QueryOptions as R, type ReconnectOptions as S, type ReconnectableWsConnection as T, type ResolvedCitation as U, type ResolvedRecipient as V, type ResponseCompletedEvent as W, type ResponseContentPartAddedEvent as X, type ResponseCreatedEvent as Y, type ResponseFailedEvent as Z, type ResponseOutputItemAddedEvent as _, type AgentStepDeltaEvent as a, performSigningKeyLogin as a$, type ResponseOutputTextDeltaEvent as a0, type ResponseOutputTextDoneEvent as a1, type ResponseUsage as a2, type SSEEvent as a3, type SSEStreamCallbacks as a4, type SSEStreamResult as a5, type SSEStreamStartData as a6, SUPPORTED_EXTENSIONS as a7, type SkillSummary as a8, type SkippedFile as a9, contacts as aA, conversations as aB, countCitations as aC, createAuthenticatedClient as aD, createDocumentWaiter as aE, dm as aF, doctags as aG, documents as aH, files as aI, filterSkills as aJ, formatAgentStepLabel as aK, formatFileSize as aL, formatStreamSummary as aM, formatUserName as aN, formatWorkspaceChoices as aO, formatWsMessage as aP, generateEncryptedWorkspaceKey as aQ, generateNewWorkspaceKey as aR, getErrorCode as aS, getErrorMessage as aT, getRawWorkspaceKey as aU, health as aV, memory as aW, parseSSEEvents as aX, parseSlashCommand as aY, parseSlashTokenInProgress as aZ, performPasswordLogin as a_, type TaskResponse as aa, type UpdateMemoryRequest as ab, type UpdateTaskRequest as ac, type UploadBatchResult as ad, type UploadDirectOptions as ae, type UploadDirectResult as af, type UploadOptions as ag, type UploadResult as ah, type UserDailyUsageResponse as ai, type UserInfo as aj, type UserInputRequestEvent as ak, type UserMessageEvent as al, WebSocketAuthError as am, type WorkspaceChronologyOut as an, type WorkspaceContext as ao, type WsConnection as ap, agentconfig as aq, assistant as ar, authenticatedFetch as as, buildDocNameMap as at, buildRetrievalChunkTool as au, buildRetrievalFullContextTool as av, buildRetrievalTocTool as aw, connectWebSocket as ax, connectWithReconnect as ay, consumeSSEStream as az, type AgentStepEvent as b, performSsoDeviceFlowLogin as b0, projects as b1, requireData as b2, requireOk as b3, resolveAuth as b4, resolveCitations as b5, resolveWorkspace as b6, responses as b7, selectWorkspace as b8, selectWorkspaceById as b9, settings as ba, streamSSE as bb, stripCitationMarkdown as bc, summarizeCitations as bd, tags as be, tasks as bf, workspaces as bg, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateMemoryRequest as r, type CreateTaskRequest as s, type DeferredInterjectionEvent as t, type DmCryptoContext as u, type DocNameMap as v, type DocumentListFields as w, type DocumentListOrder as x, type DocumentWaiter as y, type DocumentWaiterOptions as z };
package/dist/browser.cjs CHANGED
@@ -3983,6 +3983,10 @@ async function streamSSE(response, callbacks = {}) {
3983
3983
  const data = JSON.parse(raw);
3984
3984
  callbacks.onProbeAnswer?.(data);
3985
3985
  },
3986
+ "arbi.deferred_interjection": (raw) => {
3987
+ const data = JSON.parse(raw);
3988
+ callbacks.onDeferredInterjection?.(data);
3989
+ },
3986
3990
  "arbi.agent_control_state": (raw) => {
3987
3991
  const data = JSON.parse(raw);
3988
3992
  callbacks.onAgentControlState?.(data);