@arbidocs/sdk 0.4.72 → 0.4.74

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, T as IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, Y as ListFactsOptions, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a6 as ProbeAnswerEvent, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as SubmitBackgroundQueryOptions, av as TaskPlan, aw as TokenBudgetContext, ax as UpdateConversationRequest, ay as UpdateFactRequest, az as UpdateWorkflowRequest, aF as UserDailyUsageResponse, aG as UserInfo, aH as UserInputRequestEvent, aI as UserMessageEvent, aJ as WebSocketAuthError, aK as WorkStatus, aL as WorkflowAuthMode, aM as WorkflowResponse, aN as WorkflowRunHistoryResponse, aO as WorkflowRunResponse, aP as WorkspaceContext, aQ as WsConnection, aR as account, aS as agentconfig, aU as assistant, aV as authenticatedFetch, aX as buildFactsContextTool, aY as buildRetrievalChunkTool, aZ as buildRetrievalFullContextTool, a_ as buildRetrievalTocTool, a$ as connectWebSocket, b0 as connectWithReconnect, b1 as consumeSSEStream, b2 as contacts, b3 as conversations, b4 as countCitations, b5 as createAuthenticatedClient, b7 as dm, b8 as doctags, b9 as documents, ba as facts, bb as files, bc as filterSkills, bd as formatAgentStepLabel, be as formatFileSize, bf as formatItemLabel, bh as formatUserName, bi as formatWorkspaceChoices, bn as getErrorMessage, bo as getRawWorkspaceKey, bp as health, br as identityErrorCode, bq as identityVerification, bs as mail, bt as parseSSEEvents, bu as parseSlashCommand, bv as parseSlashTokenInProgress, bw as performPasswordLogin, bz as profile, bA as projects, bB as requireData, bC as requireOk, bD as resolveAuth, bE as resolveCitations, bF as resolveWorkspace, bG as responses, bH as selectWorkspace, bI as selectWorkspaceById, bJ as sessions, bK as settings, bL as streamSSE, bM as stripCitationMarkdown, bN as summarizeCitations, bO as tags, bP as work, bQ as workflows, bR as workspaces } from './browser-BWUCi_v2.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, T as IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, Y as ListFactsOptions, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a6 as ProbeAnswerEvent, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as StepActionRequest, av as SubmitBackgroundQueryOptions, aw as TaskPlan, ax as TokenBudgetContext, ay as UpdateConversationRequest, az as UpdateFactRequest, aA as UpdateWorkflowRequest, aG as UserDailyUsageResponse, aH as UserInfo, aI as UserInputRequestEvent, aJ as UserMessageEvent, aK as WebSocketAuthError, aL as WorkStatus, aM as WorkflowAuthMode, aN as WorkflowResponse, aO as WorkflowRunHistoryResponse, aP as WorkflowRunResponse, aQ as WorkspaceContext, aR as WsConnection, aS as account, aT as agentconfig, aV as assistant, aW as authenticatedFetch, aY as buildFactsContextTool, aZ as buildRetrievalChunkTool, a_ as buildRetrievalFullContextTool, a$ as buildRetrievalTocTool, b0 as connectWebSocket, b1 as connectWithReconnect, b2 as consumeSSEStream, b3 as contacts, b4 as conversations, b5 as countCitations, b6 as createAuthenticatedClient, b8 as dm, b9 as doctags, ba as documents, bb as facts, bc as files, bd as filterSkills, be as formatAgentStepLabel, bf as formatFileSize, bg as formatItemLabel, bi as formatUserName, bj as formatWorkspaceChoices, bo as getErrorMessage, bp as getRawWorkspaceKey, bq as health, bs as identityErrorCode, br as identityVerification, bt as mail, bu as parseSSEEvents, bv as parseSlashCommand, bw as parseSlashTokenInProgress, bx as performPasswordLogin, bA as profile, bB as projects, bC as requireData, bD as requireOk, bE as resolveAuth, bF as resolveCitations, bG as resolveWorkspace, bH as responses, bI as selectWorkspace, bJ as selectWorkspaceById, bK as sessions, bL as settings, bM as streamSSE, bN as stripCitationMarkdown, bO as summarizeCitations, bP as tags, bQ as work, bR as workflows, bS as workspaces } from './browser-BBYaJCyB.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, T as IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, Y as ListFactsOptions, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a6 as ProbeAnswerEvent, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as SubmitBackgroundQueryOptions, av as TaskPlan, aw as TokenBudgetContext, ax as UpdateConversationRequest, ay as UpdateFactRequest, az as UpdateWorkflowRequest, aF as UserDailyUsageResponse, aG as UserInfo, aH as UserInputRequestEvent, aI as UserMessageEvent, aJ as WebSocketAuthError, aK as WorkStatus, aL as WorkflowAuthMode, aM as WorkflowResponse, aN as WorkflowRunHistoryResponse, aO as WorkflowRunResponse, aP as WorkspaceContext, aQ as WsConnection, aR as account, aS as agentconfig, aU as assistant, aV as authenticatedFetch, aX as buildFactsContextTool, aY as buildRetrievalChunkTool, aZ as buildRetrievalFullContextTool, a_ as buildRetrievalTocTool, a$ as connectWebSocket, b0 as connectWithReconnect, b1 as consumeSSEStream, b2 as contacts, b3 as conversations, b4 as countCitations, b5 as createAuthenticatedClient, b7 as dm, b8 as doctags, b9 as documents, ba as facts, bb as files, bc as filterSkills, bd as formatAgentStepLabel, be as formatFileSize, bf as formatItemLabel, bh as formatUserName, bi as formatWorkspaceChoices, bn as getErrorMessage, bo as getRawWorkspaceKey, bp as health, br as identityErrorCode, bq as identityVerification, bs as mail, bt as parseSSEEvents, bu as parseSlashCommand, bv as parseSlashTokenInProgress, bw as performPasswordLogin, bz as profile, bA as projects, bB as requireData, bC as requireOk, bD as resolveAuth, bE as resolveCitations, bF as resolveWorkspace, bG as responses, bH as selectWorkspace, bI as selectWorkspaceById, bJ as sessions, bK as settings, bL as streamSSE, bM as stripCitationMarkdown, bN as summarizeCitations, bO as tags, bP as work, bQ as workflows, bR as workspaces } from './browser-BWUCi_v2.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, T as IdentityErrorCode, U as IdentityPurchase, V as IdentityState, W as IdentityStatus, Y as ListFactsOptions, a0 as MessageMetadataPayload, a1 as MessageQueuedEvent, a2 as OutputTokensDetails, a3 as ParsedSlashCommand, a4 as PendingAuthResponse, a5 as PlanWorkRequest, a6 as ProbeAnswerEvent, a7 as ProjectInvoicesResponse, a8 as ProjectUsageResponse, a9 as QueryOptions, aa as ReconnectOptions, ab as ReconnectableWsConnection, ac as ResolvedCitation, ae as ResponseCompletedEvent, af as ResponseContentPartAddedEvent, ag as ResponseCreatedEvent, ah as ResponseFailedEvent, ai as ResponseOutputItemAddedEvent, aj as ResponseOutputItemDoneEvent, ak as ResponseOutputTextDeltaEvent, al as ResponseOutputTextDoneEvent, am as ResponseUsage, an as SSEEvent, ao as SSEStreamCallbacks, ap as SSEStreamResult, aq as SSEStreamStartData, as as SkillSummary, au as StepActionRequest, av as SubmitBackgroundQueryOptions, aw as TaskPlan, ax as TokenBudgetContext, ay as UpdateConversationRequest, az as UpdateFactRequest, aA as UpdateWorkflowRequest, aG as UserDailyUsageResponse, aH as UserInfo, aI as UserInputRequestEvent, aJ as UserMessageEvent, aK as WebSocketAuthError, aL as WorkStatus, aM as WorkflowAuthMode, aN as WorkflowResponse, aO as WorkflowRunHistoryResponse, aP as WorkflowRunResponse, aQ as WorkspaceContext, aR as WsConnection, aS as account, aT as agentconfig, aV as assistant, aW as authenticatedFetch, aY as buildFactsContextTool, aZ as buildRetrievalChunkTool, a_ as buildRetrievalFullContextTool, a$ as buildRetrievalTocTool, b0 as connectWebSocket, b1 as connectWithReconnect, b2 as consumeSSEStream, b3 as contacts, b4 as conversations, b5 as countCitations, b6 as createAuthenticatedClient, b8 as dm, b9 as doctags, ba as documents, bb as facts, bc as files, bd as filterSkills, be as formatAgentStepLabel, bf as formatFileSize, bg as formatItemLabel, bi as formatUserName, bj as formatWorkspaceChoices, bo as getErrorMessage, bp as getRawWorkspaceKey, bq as health, bs as identityErrorCode, br as identityVerification, bt as mail, bu as parseSSEEvents, bv as parseSlashCommand, bw as parseSlashTokenInProgress, bx as performPasswordLogin, bA as profile, bB as projects, bC as requireData, bD as requireOk, bE as resolveAuth, bF as resolveCitations, bG as resolveWorkspace, bH as responses, bI as selectWorkspace, bJ as selectWorkspaceById, bK as sessions, bL as settings, bM as streamSSE, bN as stripCitationMarkdown, bO as summarizeCitations, bP as tags, bQ as work, bR as workflows, bS as workspaces } from './browser-BBYaJCyB.js';
2
2
  export { LoginProfile } from '@arbidocs/client';
package/dist/browser.js CHANGED
@@ -6060,9 +6060,11 @@ async function getUserUsageToday(arbi) {
6060
6060
  // src/operations/work.ts
6061
6061
  var work_exports = {};
6062
6062
  __export(work_exports, {
6063
+ actOnStep: () => actOnStep,
6063
6064
  createWork: () => createWork,
6064
6065
  getActivity: () => getActivity,
6065
6066
  getPendingAuth: () => getPendingAuth,
6067
+ notifyConversation: () => notifyConversation,
6066
6068
  planWork: () => planWork,
6067
6069
  runConversation: () => runConversation,
6068
6070
  updateConversation: () => updateConversation
@@ -6100,6 +6102,24 @@ async function getPendingAuth(arbi, conversationId) {
6100
6102
  "Failed to read the pending access request"
6101
6103
  );
6102
6104
  }
6105
+ async function actOnStep(arbi, conversationId, body) {
6106
+ return requireData(
6107
+ await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/step", {
6108
+ ...byId(conversationId),
6109
+ body
6110
+ }),
6111
+ "Failed to update the workflow step"
6112
+ );
6113
+ }
6114
+ async function notifyConversation(arbi, conversationId, userIds) {
6115
+ return requireData(
6116
+ await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/notify", {
6117
+ ...byId(conversationId),
6118
+ body: { user_ext_ids: userIds }
6119
+ }),
6120
+ "Failed to notify people about the conversation"
6121
+ );
6122
+ }
6103
6123
  async function getActivity(arbi, conversationId) {
6104
6124
  return requireData(
6105
6125
  await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/activity", byId(conversationId)),
@@ -6752,6 +6772,10 @@ var Arbi = class {
6752
6772
  pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
6753
6773
  /** The task's history, oldest first. */
6754
6774
  activity: (conversationId) => getActivity(this.requireClient(), conversationId),
6775
+ /** Complete or skip a step of a workflow run; the run goes on to its next agent step. */
6776
+ actOnStep: (conversationId, body) => actOnStep(this.requireClient(), conversationId, body),
6777
+ /** Notify people about a conversation (each gets a notification); resolves with who was. */
6778
+ notify: (conversationId, userIds) => notifyConversation(this.requireClient(), conversationId, userIds),
6755
6779
  /** Draft an editable plan from an objective. */
6756
6780
  plan: (body) => planWork(this.requireClient(), body),
6757
6781
  /**