@arbidocs/sdk 0.4.70 → 0.4.71
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/README.md +1 -0
- package/dist/{browser-Dhk899kq.d.cts → browser-Bf2QdtQY.d.cts} +6 -0
- package/dist/{browser-Dhk899kq.d.ts → browser-Bf2QdtQY.d.ts} +6 -0
- package/dist/browser.cjs +10 -2
- 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 +10 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +10 -2
- 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 +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
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 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 buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bd as formatUserName, be as formatWorkspaceChoices, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-
|
|
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 buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bd as formatUserName, be as formatWorkspaceChoices, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-Bf2QdtQY.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 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 buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bd as formatUserName, be as formatWorkspaceChoices, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-
|
|
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 buildFactsContextTool, aU as buildRetrievalChunkTool, aV as buildRetrievalFullContextTool, aW as buildRetrievalTocTool, aX as connectWebSocket, aY as connectWithReconnect, aZ as consumeSSEStream, a_ as contacts, a$ as conversations, b0 as countCitations, b1 as createAuthenticatedClient, b3 as dm, b4 as doctags, b5 as documents, b6 as facts, b7 as files, b8 as filterSkills, b9 as formatAgentStepLabel, ba as formatFileSize, bb as formatItemLabel, bd as formatUserName, be as formatWorkspaceChoices, bj as getErrorMessage, bk as getRawWorkspaceKey, bl as health, bm as mail, bn as parseSSEEvents, bo as parseSlashCommand, bp as parseSlashTokenInProgress, bq as performPasswordLogin, bt as profile, bu as projects, bv as requireData, bw as requireOk, bx as resolveAuth, by as resolveCitations, bz as resolveWorkspace, bA as responses, bB as selectWorkspace, bC as selectWorkspaceById, bD as sessions, bE as settings, bF as streamSSE, bG as stripCitationMarkdown, bH as summarizeCitations, bI as tags, bJ as work, bK as workflows, bL as workspaces } from './browser-Bf2QdtQY.js';
|
|
2
2
|
export { LoginProfile } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -6183,10 +6183,18 @@ var Arbi = class {
|
|
|
6183
6183
|
this.options = options;
|
|
6184
6184
|
}
|
|
6185
6185
|
// ── Lifecycle ───────────────────────────────────────────────────────────
|
|
6186
|
+
/**
|
|
6187
|
+
* The deployment domain the user's keys are derived for: `deploymentDomain` when given,
|
|
6188
|
+
* otherwise the hostname of `url`. Signing and password changes re-derive keys with it, so a
|
|
6189
|
+
* host that needs it (the document tools' e-signing) reads it here rather than recomputing it.
|
|
6190
|
+
*/
|
|
6191
|
+
getDeploymentDomain() {
|
|
6192
|
+
return this.options.deploymentDomain ?? new URL(this.options.url).hostname;
|
|
6193
|
+
}
|
|
6186
6194
|
/** Initialize the SDK client and sodium crypto. Called automatically by login(). */
|
|
6187
6195
|
async init() {
|
|
6188
6196
|
if (this.client) return this.client;
|
|
6189
|
-
const domain = this.
|
|
6197
|
+
const domain = this.getDeploymentDomain();
|
|
6190
6198
|
this.client = createArbiClient({
|
|
6191
6199
|
baseUrl: this.options.url,
|
|
6192
6200
|
deploymentDomain: domain,
|
|
@@ -6481,7 +6489,7 @@ var Arbi = class {
|
|
|
6481
6489
|
{ ...params, email, userExtId: lr2.userExtId },
|
|
6482
6490
|
{
|
|
6483
6491
|
fetchClient: client.fetch,
|
|
6484
|
-
deploymentDomain: this.
|
|
6492
|
+
deploymentDomain: this.getDeploymentDomain()
|
|
6485
6493
|
}
|
|
6486
6494
|
);
|
|
6487
6495
|
this.loginResult = { ...lr2, signingPrivateKey: result.newSigningPrivateKey };
|