@arbidocs/sdk 0.4.53 → 0.4.55
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-ottmzMPY.d.cts → browser-BpU45eZn.d.cts} +9 -120
- package/dist/{browser-ottmzMPY.d.ts → browser-BpU45eZn.d.ts} +9 -120
- package/dist/browser.cjs +4 -28
- 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 +4 -28
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +4 -28
- 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 +4 -28
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession,
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-BpU45eZn.cjs';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, 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, b1 as createDocumentWaiter, 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, bb as formatStreamSummary, bc as formatUserName, bd as formatWorkspaceChoices, be as formatWsMessage, bf as generateEncryptedWorkspaceKey, bg as generateNewWorkspaceKey, bh as getErrorCode, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bq as performSigningKeyLogin, br as performSsoDeviceFlowLogin, 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';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession,
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, ap as SkippedFile, aA as UploadResult, m as AuthHeaders, aw as UploadBatchResult, az as UploadOptions, ax as UploadDirectOptions, ay as UploadDirectResult, an as SUPPORTED_EXTENSIONS, W as MailAttachment, H as DmCryptoContext } from './browser-BpU45eZn.js';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, y as CreateWorkRequest, z as CreateWorkflowRequest, D as DOC_TERMINAL_STATUSES, B as DecryptedDmNotification, F as DmAttachmentFile, G as DmAttachmentInput, I as DocNameMap, J as DocumentAutomationAction, K as DocumentListFields, L as DocumentListOrder, M as DocumentSelector, N as DocumentWaiter, O as DocumentWaiterOptions, S as FormattedWsMessage, T as ListAllOptions, V as ListPaginatedOptions, X as MessageLevel, Y as MessageMetadataPayload, Z as MessageQueuedEvent, _ as OutputTokensDetails, $ as ParsedSlashCommand, a0 as PendingAuthResponse, a1 as PlanWorkRequest, a3 as ProjectInvoicesResponse, a4 as ProjectUsageResponse, a5 as QueryOptions, a6 as ReconnectOptions, a7 as ReconnectableWsConnection, a8 as ResolvedCitation, a9 as ResolvedRecipient, 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, 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, aP as agents, aQ as assistant, aR as authenticatedFetch, aS as buildDocNameMap, 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, b1 as createDocumentWaiter, 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, bb as formatStreamSummary, bc as formatUserName, bd as formatWorkspaceChoices, be as formatWsMessage, bf as generateEncryptedWorkspaceKey, bg as generateNewWorkspaceKey, bh as getErrorCode, bi as getErrorMessage, bj as getRawWorkspaceKey, bk as health, bl as mail, bm as parseSSEEvents, bn as parseSlashCommand, bo as parseSlashTokenInProgress, bp as performPasswordLogin, bq as performSigningKeyLogin, br as performSsoDeviceFlowLogin, 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';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -6525,8 +6525,6 @@ __export(work_exports, {
|
|
|
6525
6525
|
getActivity: () => getActivity,
|
|
6526
6526
|
getPendingAuth: () => getPendingAuth,
|
|
6527
6527
|
planWork: () => planWork,
|
|
6528
|
-
requestApproval: () => requestApproval,
|
|
6529
|
-
reviewConversation: () => reviewConversation,
|
|
6530
6528
|
runConversation: () => runConversation,
|
|
6531
6529
|
updateConversation: () => updateConversation
|
|
6532
6530
|
});
|
|
@@ -6554,24 +6552,6 @@ async function runConversation(arbi, conversationId) {
|
|
|
6554
6552
|
"Failed to run task"
|
|
6555
6553
|
);
|
|
6556
6554
|
}
|
|
6557
|
-
async function reviewConversation(arbi, conversationId, body) {
|
|
6558
|
-
return requireData(
|
|
6559
|
-
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/review", {
|
|
6560
|
-
...byId(conversationId),
|
|
6561
|
-
body
|
|
6562
|
-
}),
|
|
6563
|
-
"Failed to review task"
|
|
6564
|
-
);
|
|
6565
|
-
}
|
|
6566
|
-
async function requestApproval(arbi, conversationId, body) {
|
|
6567
|
-
return requireData(
|
|
6568
|
-
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/request-approval", {
|
|
6569
|
-
...byId(conversationId),
|
|
6570
|
-
body
|
|
6571
|
-
}),
|
|
6572
|
-
"Failed to request approval"
|
|
6573
|
-
);
|
|
6574
|
-
}
|
|
6575
6555
|
async function getPendingAuth(arbi, conversationId) {
|
|
6576
6556
|
return requireData(
|
|
6577
6557
|
await arbi.fetch.GET(
|
|
@@ -7165,7 +7145,7 @@ var Arbi = class {
|
|
|
7165
7145
|
delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
|
|
7166
7146
|
/**
|
|
7167
7147
|
* Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
|
|
7168
|
-
* `due_at`, `
|
|
7148
|
+
* `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
|
|
7169
7149
|
* behind rename, share and unshare.
|
|
7170
7150
|
*/
|
|
7171
7151
|
update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
|
|
@@ -7173,19 +7153,15 @@ var Arbi = class {
|
|
|
7173
7153
|
createWork: (body) => createWork(this.requireClient(), body),
|
|
7174
7154
|
/** Run a work item now, or retry it. */
|
|
7175
7155
|
run: (conversationId) => runConversation(this.requireClient(), conversationId),
|
|
7176
|
-
/** The sign-off person approves, or sends feedback back to the agent in the same thread. */
|
|
7177
|
-
review: (conversationId, body) => reviewConversation(this.requireClient(), conversationId, body),
|
|
7178
|
-
/** Hand sign-off to another workspace member. */
|
|
7179
|
-
requestApproval: (conversationId, body) => requestApproval(this.requireClient(), conversationId, body),
|
|
7180
7156
|
/** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
|
|
7181
7157
|
pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
|
|
7182
7158
|
/** The task's history, oldest first. */
|
|
7183
7159
|
activity: (conversationId) => getActivity(this.requireClient(), conversationId),
|
|
7184
|
-
/** Draft
|
|
7160
|
+
/** Draft an editable plan from an objective. */
|
|
7185
7161
|
plan: (body) => planWork(this.requireClient(), body),
|
|
7186
7162
|
/**
|
|
7187
7163
|
* Run a work item and, when the run is parked waiting for workspace access, grant the agent's
|
|
7188
|
-
* run session a temporary key and run it again. Work that needs no
|
|
7164
|
+
* run session a temporary key and run it again. Work that needs no access grant returns from the
|
|
7189
7165
|
* first call already running.
|
|
7190
7166
|
*/
|
|
7191
7167
|
runWithAuth: async (conversationId) => {
|
|
@@ -7247,7 +7223,7 @@ var Arbi = class {
|
|
|
7247
7223
|
// ── Assistant ─────────────────────────────────────────────────────────
|
|
7248
7224
|
assistant = {
|
|
7249
7225
|
cancelRun: (responseId) => this.recovering(() => cancelAssistantRun(this.getAuthHeaders(), responseId)),
|
|
7250
|
-
/** Start a durable background turn; task options make its thread a
|
|
7226
|
+
/** Start a durable background turn; task options make its thread a work item. */
|
|
7251
7227
|
submit: (question, options) => {
|
|
7252
7228
|
const workspaceId = this.requireWorkspace();
|
|
7253
7229
|
return this.recovering(
|