@arbidocs/sdk 0.4.54 → 0.4.56

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.
@@ -1,2 +1,2 @@
1
- export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as RequestApprovalRequest, a9 as ResolvedCitation, ab as ResponseCompletedEvent, ac as ResponseContentPartAddedEvent, ad as ResponseCreatedEvent, ae as ResponseFailedEvent, af as ResponseOutputItemAddedEvent, ag as ResponseOutputItemDoneEvent, ah as ResponseOutputTextDeltaEvent, ai as ResponseOutputTextDoneEvent, aj as ResponseUsage, ak as ReviewWorkRequest, al as SSEEvent, am as SSEStreamCallbacks, an as SSEStreamResult, ao as SSEStreamStartData, aq as SkillSummary, as as SubmitBackgroundQueryOptions, at as TaskPlan, au as TokenBudgetContext, av as UpdateConversationRequest, aw as UpdateFactRequest, ax as UpdateWorkflowRequest, aD as UserDailyUsageResponse, aE as UserInfo, aF as UserInputRequestEvent, aG as UserMessageEvent, aH as WebSocketAuthError, aI as WorkStatus, aJ as WorkflowAuthMode, aK as WorkflowResponse, aL as WorkflowRunHistoryResponse, aM as WorkflowRunResponse, aN as WorkspaceContext, aO as WsConnection, aP as account, aQ as agentconfig, aS as assistant, aT as authenticatedFetch, aV as buildRetrievalChunkTool, aW as buildRetrievalFullContextTool, aX as buildRetrievalTocTool, aY as connectWebSocket, aZ as connectWithReconnect, a_ as consumeSSEStream, a$ as contacts, b0 as conversations, b1 as countCitations, b2 as createAuthenticatedClient, b4 as dm, b5 as doctags, b6 as documents, b7 as facts, b8 as files, b9 as filterSkills, ba as formatAgentStepLabel, bb as formatFileSize, bc as formatItemLabel, be as formatUserName, bf as formatWorkspaceChoices, bk as getErrorMessage, bl as getRawWorkspaceKey, bm as health, bn as mail, bo as parseSSEEvents, bp as parseSlashCommand, bq as parseSlashTokenInProgress, br as performPasswordLogin, bu as profile, bv as projects, bw as requireData, bx as requireOk, by as resolveAuth, bz as resolveCitations, bA as resolveWorkspace, bB as responses, bC as selectWorkspace, bD as selectWorkspaceById, bE as sessions, bF as settings, bG as streamSSE, bH as stripCitationMarkdown, bI as summarizeCitations, bJ as tags, bK as work, bL as workflows, bM as workspaces } from './browser-ottmzMPY.cjs';
1
+ export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-BpU45eZn.cjs';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as RequestApprovalRequest, a9 as ResolvedCitation, ab as ResponseCompletedEvent, ac as ResponseContentPartAddedEvent, ad as ResponseCreatedEvent, ae as ResponseFailedEvent, af as ResponseOutputItemAddedEvent, ag as ResponseOutputItemDoneEvent, ah as ResponseOutputTextDeltaEvent, ai as ResponseOutputTextDoneEvent, aj as ResponseUsage, ak as ReviewWorkRequest, al as SSEEvent, am as SSEStreamCallbacks, an as SSEStreamResult, ao as SSEStreamStartData, aq as SkillSummary, as as SubmitBackgroundQueryOptions, at as TaskPlan, au as TokenBudgetContext, av as UpdateConversationRequest, aw as UpdateFactRequest, ax as UpdateWorkflowRequest, aD as UserDailyUsageResponse, aE as UserInfo, aF as UserInputRequestEvent, aG as UserMessageEvent, aH as WebSocketAuthError, aI as WorkStatus, aJ as WorkflowAuthMode, aK as WorkflowResponse, aL as WorkflowRunHistoryResponse, aM as WorkflowRunResponse, aN as WorkspaceContext, aO as WsConnection, aP as account, aQ as agentconfig, aS as assistant, aT as authenticatedFetch, aV as buildRetrievalChunkTool, aW as buildRetrievalFullContextTool, aX as buildRetrievalTocTool, aY as connectWebSocket, aZ as connectWithReconnect, a_ as consumeSSEStream, a$ as contacts, b0 as conversations, b1 as countCitations, b2 as createAuthenticatedClient, b4 as dm, b5 as doctags, b6 as documents, b7 as facts, b8 as files, b9 as filterSkills, ba as formatAgentStepLabel, bb as formatFileSize, bc as formatItemLabel, be as formatUserName, bf as formatWorkspaceChoices, bk as getErrorMessage, bl as getRawWorkspaceKey, bm as health, bn as mail, bo as parseSSEEvents, bp as parseSlashCommand, bq as parseSlashTokenInProgress, br as performPasswordLogin, bu as profile, bv as projects, bw as requireData, bx as requireOk, by as resolveAuth, bz as resolveCitations, bA as resolveWorkspace, bB as responses, bC as selectWorkspace, bD as selectWorkspaceById, bE as sessions, bF as settings, bG as streamSSE, bH as stripCitationMarkdown, bI as summarizeCitations, bJ as tags, bK as work, bL as workflows, bM as workspaces } from './browser-ottmzMPY.js';
1
+ export { A as ActivityKind, a as ActivityResponse, b as AgentControlStateEvent, c as AgentStepDeltaEvent, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, h as ArbiErrorEvent, i as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthHeaders, n as AuthMode, o as AuthenticatedClient, C as ChatSession, p as CitationSummary, q as CliConfig, r as CliCredentials, s as CommandDescriptor, t as ConfigStore, u as ConnectOptions, v as ConversationResponse, w as CreateFactRequest, x as CreateFactsRequest, y as CreateWorkRequest, z as CreateWorkflowRequest, B as DecryptedDmNotification, E as DeferredInterjectionEvent, F as DmAttachmentFile, G as DmAttachmentInput, J as DocumentAutomationAction, M as DocumentSelector, P as FactResponse, Q as FactSearchRequest, R as FactSearchResponse, U as ListFactsOptions, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a2 as ProbeAnswerEvent, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, aa as ResponseCompletedEvent, ab as ResponseContentPartAddedEvent, ac as ResponseCreatedEvent, ad as ResponseFailedEvent, ae as ResponseOutputItemAddedEvent, af as ResponseOutputItemDoneEvent, ag as ResponseOutputTextDeltaEvent, ah as ResponseOutputTextDoneEvent, ai as ResponseUsage, aj as SSEEvent, ak as SSEStreamCallbacks, al as SSEStreamResult, am as SSEStreamStartData, ao as SkillSummary, aq as SubmitBackgroundQueryOptions, ar as TaskPlan, as as TokenBudgetContext, at as UpdateConversationRequest, au as UpdateFactRequest, av as UpdateWorkflowRequest, aB as UserDailyUsageResponse, aC as UserInfo, aD as UserInputRequestEvent, aE as UserMessageEvent, aF as WebSocketAuthError, aG as WorkStatus, aH as WorkflowAuthMode, aI as WorkflowResponse, aJ as WorkflowRunHistoryResponse, aK as WorkflowRunResponse, aL as WorkspaceContext, aM as WsConnection, aN as account, aO as agentconfig, aQ as assistant, aR as authenticatedFetch, aT as buildRetrievalChunkTool, aU as buildRetrievalFullContextTool, aV as buildRetrievalTocTool, aW as connectWebSocket, aX as connectWithReconnect, aY as consumeSSEStream, aZ as contacts, a_ as conversations, a$ as countCitations, b0 as createAuthenticatedClient, b2 as dm, b3 as doctags, b4 as documents, b5 as facts, b6 as files, b7 as filterSkills, b8 as formatAgentStepLabel, b9 as formatFileSize, ba as formatItemLabel, bc as formatUserName, bd as formatWorkspaceChoices, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bs as profile, bt as projects, bu as requireData, bv as requireOk, bw as resolveAuth, bx as resolveCitations, by as resolveWorkspace, bz as responses, bA as selectWorkspace, bB as selectWorkspaceById, bC as sessions, bD as settings, bE as streamSSE, bF as stripCitationMarkdown, bG as summarizeCitations, bH as tags, bI as work, bJ as workflows, bK as workspaces } from './browser-BpU45eZn.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -5967,8 +5967,6 @@ __export(work_exports, {
5967
5967
  getActivity: () => getActivity,
5968
5968
  getPendingAuth: () => getPendingAuth,
5969
5969
  planWork: () => planWork,
5970
- requestApproval: () => requestApproval,
5971
- reviewConversation: () => reviewConversation,
5972
5970
  runConversation: () => runConversation,
5973
5971
  updateConversation: () => updateConversation
5974
5972
  });
@@ -5996,24 +5994,6 @@ async function runConversation(arbi, conversationId) {
5996
5994
  "Failed to run task"
5997
5995
  );
5998
5996
  }
5999
- async function reviewConversation(arbi, conversationId, body) {
6000
- return requireData(
6001
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/review", {
6002
- ...byId(conversationId),
6003
- body
6004
- }),
6005
- "Failed to review task"
6006
- );
6007
- }
6008
- async function requestApproval(arbi, conversationId, body) {
6009
- return requireData(
6010
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/request-approval", {
6011
- ...byId(conversationId),
6012
- body
6013
- }),
6014
- "Failed to request approval"
6015
- );
6016
- }
6017
5997
  async function getPendingAuth(arbi, conversationId) {
6018
5998
  return requireData(
6019
5999
  await arbi.fetch.GET(
@@ -6607,7 +6587,7 @@ var Arbi = class {
6607
6587
  delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
6608
6588
  /**
6609
6589
  * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
6610
- * `due_at`, `signoff_user_ext_id`, `parent_conversation_ext_id`, `status`, `plan`). The one call
6590
+ * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
6611
6591
  * behind rename, share and unshare.
6612
6592
  */
6613
6593
  update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
@@ -6615,19 +6595,15 @@ var Arbi = class {
6615
6595
  createWork: (body) => createWork(this.requireClient(), body),
6616
6596
  /** Run a work item now, or retry it. */
6617
6597
  run: (conversationId) => runConversation(this.requireClient(), conversationId),
6618
- /** The sign-off person approves, or sends feedback back to the agent in the same thread. */
6619
- review: (conversationId, body) => reviewConversation(this.requireClient(), conversationId, body),
6620
- /** Hand sign-off to another workspace member. */
6621
- requestApproval: (conversationId, body) => requestApproval(this.requireClient(), conversationId, body),
6622
6598
  /** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
6623
6599
  pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
6624
6600
  /** The task's history, oldest first. */
6625
6601
  activity: (conversationId) => getActivity(this.requireClient(), conversationId),
6626
- /** Draft a reviewable plan from an objective. */
6602
+ /** Draft an editable plan from an objective. */
6627
6603
  plan: (body) => planWork(this.requireClient(), body),
6628
6604
  /**
6629
6605
  * Run a work item and, when the run is parked waiting for workspace access, grant the agent's
6630
- * run session a temporary key and run it again. Work that needs no approval returns from the
6606
+ * run session a temporary key and run it again. Work that needs no access grant returns from the
6631
6607
  * first call already running.
6632
6608
  */
6633
6609
  runWithAuth: async (conversationId) => {
@@ -6689,7 +6665,7 @@ var Arbi = class {
6689
6665
  // ── Assistant ─────────────────────────────────────────────────────────
6690
6666
  assistant = {
6691
6667
  cancelRun: (responseId) => this.recovering(() => cancelAssistantRun(this.getAuthHeaders(), responseId)),
6692
- /** Start a durable background turn; task options make its thread a reviewable work item. */
6668
+ /** Start a durable background turn; task options make its thread a work item. */
6693
6669
  submit: (question, options) => {
6694
6670
  const workspaceId = this.requireWorkspace();
6695
6671
  return this.recovering(