@arbidocs/sdk 0.5.68 → 0.5.70
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-D0iEy5W9.d.ts → browser-Bf6pRBuP.d.ts} +294 -195
- package/dist/{browser-BsuUurv5.d.cts → browser-CA2ecqVP.d.cts} +294 -195
- package/dist/browser.cjs +240 -65
- 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 +241 -67
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +242 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +243 -68
- package/dist/index.js.map +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as
|
|
1
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cz as SkippedFile, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, dd as UpdateFactRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dj as UploadOptions, dk as UploadProgressListener, dl as UploadResult, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, dC as WsConnection, dD as account, dE as agentconfig, dG as appendTranscriptionHints, dH as assistant, dI as authenticatedFetch, dJ as bookPublicSlot, dK as buildCitationChunkData, dM as buildDocumentTools, dN as buildFactsContextTool, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-CA2ecqVP.cjs';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.cjs';
|
|
3
3
|
export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as
|
|
1
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AttendeeRead, s as AuthContext, t as AuthHeaders, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, S as ChatCryptoContext, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, _ as ChatSession, $ as CitationSummary, a0 as CitationToolSources, a1 as CliConfig, a2 as CliCredentials, a3 as CommandDescriptor, a4 as ConfigStore, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ai as CreateFactRequest, aj as CreateFactsRequest, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DirectModelUsage, aD as DocInfo, aE as DocInfoMap, aG as DocumentAutomationAction, aJ as DocumentSelector, aM as DriveSyncProgress, aN as DriveSyncSummary, aO as DuplicateContactError, aP as ENTITY_KINDS, aQ as EditScope, aR as EntityKind, aS as EventCreateBody, aT as EventPatchBody, aU as FLAT_TAG_KINDS, aV as FactResponse, aW as FactSearchRequest, aX as FactSearchResponse, aY as FindTimeParams, a_ as FreeBusyEntry, a$ as FullContextSelection, b0 as GOOGLE_VENDORS, b1 as HolidayCountry, b2 as HouseTemplateCandidate, b3 as IMANAGE_VENDORS, b4 as IdentityErrorCode, b5 as IdentityPurchase, b6 as IdentityState, b7 as IdentityStatus, b8 as ImportResult, b9 as InvitationRead, ba as JsonSchemaOutputFormat, bb as LinkedRun, bd as ListEventsParams, be as ListFactsOptions, bg as MAILBOX_SYNC_VENDORS, bh as MAX_RETRIEVE_DOC_IDS, bi as MICROSOFT_VENDORS, bl as ModelConnection, bm as OAuthAccountKind, bn as OutputItemDone, bo as OverlayItem, bp as OverlayLayerName, bq as PRESENCE_KINDS, br as PROMPT_CONTEXT_CHARS, bs as ParsedResponse, bt as ParsedSlashCommand, bu as ParsedStructuredResponse, bv as PendingAuthResponse, bw as PersonKey, bx as PersonalConnectionInput, by as PlanStepsError, bz as PlanWorkRequest, bA as ProductResponse, bB as ProjectAddonKind, bC as ProjectAddonSettingsRequest, bD as ProjectBudget, bE as ProjectCheckoutRequest, bF as ProjectConversationUsageResponse, bG as ProjectCreateOptions, bH as ProjectDetails, bI as ProjectEventKind, bJ as ProjectEventResponse, bK as ProjectInvoicesResponse, bL as ProjectNextPeriodAddonsRequest, bM as ProjectPlanChangeRequest, bN as ProjectQuoteRequest, bO as ProjectResponse, bP as ProjectUpdateRequest, bQ as ProjectUsageResponse, bR as PublicBookingError, bS as PublicBookingPage, bT as QuotaExceeded, bU as RaisedSignal, bV as RawResponseEvent, bW as ReconnectOptions, bX as ReconnectableWsConnection, bY as ResolvedCitation, b_ as RespondParams, b$ as RespondPartstat, c0 as Response, c1 as ResponseCreateRequest, c2 as ResponseCreateResult, c3 as ResponseHandle, c4 as ResponseSnapshot, c5 as ResponseStart, c6 as ResponseStartOptions, c7 as ResponseStream, c8 as ResponseStreamEvent, c9 as ResponseTools, ca as RoomCreateBody, cb as RoomQuery, cc as RoomRead, cd as RunProgress, ce as RunStats, cf as RunStep, cg as RunWaitingOn, ch as SHAREPOINT_VENDORS, ci as SSEEvent, cj as SSEStreamCallbacks, ck as SSEStreamOutcome, cl as SSEStreamResult, cn as STOP_ID_WAIT_MS, co as STOP_REPEAT_WINDOW_MS, cq as ScopedTarget, cr as SearchChunk, cs as SecureMailCompose, ct as SecureMailSend, cu as SecureMailSender, cv as SendBack, cw as ShareRead, cx as ShareRole, cy as SkillSummary, cz as SkippedFile, cA as SlackConnectionStatus, cB as StepActionRequest, cC as StepActivityEvent, cD as StepAssignee, cE as StepDisplay, cF as StepField, cI as StepKind, cJ as StepPhase, cK as StepSignal, cL as StepSignalWhen, cM as StepState, cN as StepStatus, cO as SubagentBranchRecord, cP as SubagentLaneInfo, cQ as SubmitBackgroundQueryOptions, cR as SubscribeParams, cS as SyncTriggerResult, cT as TAG_KINDS, cU as TAG_NESTING_MAX_DEPTH, cV as TagChange, cW as TagFieldDefinition, cX as TagGroup, cY as TagKind, cZ as TagKindField, c_ as TagKindSchema, c$ as TagLinks, d0 as TagListQuery, d1 as TagNode, d2 as TagResponse, d3 as TagScope, d4 as TagTreeRow, d5 as TaskPlan, d6 as TaskPlanStep, d7 as TaxQuoteResponse, d8 as Thread, d9 as ThreadsResponse, da as TimeSuggestion, db as TurnRequest, dc as UpdateConversationRequest, dd as UpdateFactRequest, de as UpdateWorkflowRequest, di as UploadDocumentsOptions, dj as UploadOptions, dk as UploadProgressListener, dl as UploadResult, dm as UsageBreakdown, dn as UserConnectorEntry, dp as UserDailyUsageResponse, dq as UserInfo, dr as WebSocketAuthError, ds as WeeklyHoursSpec, dt as WorkStatus, du as WorkflowAuthMode, dv as WorkflowResponse, dw as WorkflowRunHistoryResponse, dx as WorkflowRunResponse, dy as WorkspaceConflict, dz as WorkspaceContext, dA as WorkspaceOpenResponse, dB as WorkspaceResponse, dC as WsConnection, dD as account, dE as agentconfig, dG as appendTranscriptionHints, dH as assistant, dI as authenticatedFetch, dJ as bookPublicSlot, dK as buildCitationChunkData, dM as buildDocumentTools, dN as buildFactsContextTool, dO as buildRetrievalChunkTool, dP as buildRetrievalFullContextTool, dQ as buildRetrievalTocTool, dR as buildTurnRequest, dS as calendar, dT as calls, dU as canTagHaveParent, dV as cancelPublicBooking, dW as capabilities, dX as chats, dY as composeConfiguration, dZ as composeTools, d_ as computeRunStats, d$ as connectErrorMessage, e0 as connectWebSocket, e1 as connectWithReconnect, e2 as connectors, e3 as contacts, e4 as continuityPrompt, e5 as conversations, e6 as countCitations, e7 as createAuthenticatedClient, e9 as createIndexAssigner, ea as databases, eb as defaultKindForFormat, ec as doctags, ed as documentTools, ee as documents, ef as estimateDraftTokens, eg as extractDocumentIdsFromMessages, eh as extractFactIdsFromMessages, ei as extractSubagentLanes, ej as facts, ek as files, el as filterDocumentTags, em as filterSkills, en as findLeafForTaskMessage, eo as findMainSiblingLeaf, ep as findReplyTarget, eq as findSubagentRunId, er as flattenTagTree, es as formatAgentStepLabel, et as formatFileSize, eu as formatGbp, ev as formatGbpPerMillionTokens, ew as formatItemLabel, ey as formatTokens, ez as formatUserName, eA as formatWorkspaceChoices, eE as getAgentStepLabel, eF as getAttachableRunId, eG as getChildTags, eH as getContextRemainingPercent, eI as getContextUsedPercent, eJ as getContextUsedTokens, eK as getCurrentStep, eL as getEligibleParentTags, eM as getErrorCode, eN as getErrorMessage, eO as getPublicBookingPage, eP as getRawWorkspaceKey, eQ as getRunToAttach, eR as getRunToCancel, eS as getStepDisplay, eT as getStepTool, eU as getSubagentBranchRecord, eV as getTagDescendantIds, eW as health, eX as houseTemplates, eY as hydrateAgentSteps, e_ as identityErrorCode, eZ as identityVerification, e$ as instructions, f0 as isAnnotationTag, f1 as isConnectorVendorVisible, f2 as isDriveSyncVendor, f3 as isEntityTag, f4 as isFlatKind, f5 as isLabelTag, f6 as isMailboxSyncVendor, f7 as isNearAiUsageBudget, f8 as isPresenceTag, f9 as isSharePointVendor, fa as isSharedSkill, fb as isTraceItem, fc as mail, fd as mcpTools, fe as mergeAgentSteps, ff as modelConnections, fg as notifications, fh as parseSSEEvents, fi as parseSlashCommand, fj as parseSlashTokenInProgress, fk as parseStructuredResponse, fl as performPasswordLogin, fo as pickMainThread, fp as profile, fq as progressFetch, fr as projects, fs as quotaExceededFrom, ft as quotaFromStreamError, fu as reduceOutputItem, fv as refusalReason, fw as requireData, fx as requireOk, fy as resolveAuth, fz as resolveCitations, fA as resolveSummary, fB as resolveWorkspace, fC as responses, fD as searchChunks, fE as secureMail, fF as selectFullContextDocument, fG as selectWorkspace, fH as selectWorkspaceById, fI as sessions, fJ as settings, fL as sliceToSubagentThread, fM as streamSSE, fN as stripCitationMarkdown, fO as subagentJobLabel, fP as summarizeCitations, fQ as tagUseCount, fR as tags, fS as tagsForScope, fT as tagsOfGroup, fU as topLevelAgentSteps, fW as usdToGbp, fX as work, fY as workflowSteps, fZ as workflows, f_ as workspaceConflictOf, f$ as workspaces, g0 as wouldCreateTagCycle } from './browser-Bf6pRBuP.js';
|
|
2
2
|
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as ArbiErrorEvent, d as ArtifactEvent, D as DeferredInterjectionEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, P as ProbeAnswerEvent, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-BbR7JG5o.js';
|
|
3
3
|
export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxEncrypt, sealedBoxDecrypt, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage,
|
|
1
|
+
import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, encryptionKeypairFromSigningKey, sealedBoxEncrypt, sealedBoxDecrypt, bytesToBase64, sealSecureMail, decodeSecureMailKey, openSecureMail, secureMailClaim, encryptWithChatKey, decryptWithChatKey, decryptFile, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, sealCallKey, encryptMessage, createSessionManager, authRequestError, isAbortError, changePassword, openCallKeyOf, decryptCallTitle, generateCallKey, encryptCallTitle, sealCallKeyForPeers, openSealedCallKey, readSessionClaims } from '@arbidocs/client';
|
|
2
2
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -5477,16 +5477,40 @@ async function updateDocuments(arbi, documents) {
|
|
|
5477
5477
|
"Failed to update documents"
|
|
5478
5478
|
);
|
|
5479
5479
|
}
|
|
5480
|
-
async function uploadUrl(arbi, urls,
|
|
5481
|
-
return
|
|
5480
|
+
async function uploadUrl(arbi, urls, options) {
|
|
5481
|
+
return requireUploadData(
|
|
5482
5482
|
await arbi.fetch.POST("/v1/document/upload-url", {
|
|
5483
5483
|
params: {
|
|
5484
|
-
query: {
|
|
5484
|
+
query: {
|
|
5485
|
+
urls,
|
|
5486
|
+
shared: options.shared ?? false,
|
|
5487
|
+
workspace_ext_id: options.workspaceExtId,
|
|
5488
|
+
...options.configExtId ? { config_ext_id: options.configExtId } : {}
|
|
5489
|
+
}
|
|
5485
5490
|
}
|
|
5486
5491
|
}),
|
|
5487
5492
|
"Failed to upload from URLs"
|
|
5488
5493
|
);
|
|
5489
5494
|
}
|
|
5495
|
+
var UPLOAD_WORKSPACE_CONFLICT_MESSAGES = {
|
|
5496
|
+
workspace_mismatch: "These files were prepared for another workspace, so they were not saved. Upload them again.",
|
|
5497
|
+
workspace_key_required: "The workspace couldn't be unlocked for this upload, so the files were not saved."
|
|
5498
|
+
};
|
|
5499
|
+
function requireUploadData(result, message) {
|
|
5500
|
+
const status = result.response?.status;
|
|
5501
|
+
const conflict = result.error && status === 409 ? workspaceConflictOf(result.error) : null;
|
|
5502
|
+
if (conflict) {
|
|
5503
|
+
throw new ArbiApiError(
|
|
5504
|
+
UPLOAD_WORKSPACE_CONFLICT_MESSAGES[conflict.code],
|
|
5505
|
+
result.error,
|
|
5506
|
+
status,
|
|
5507
|
+
{
|
|
5508
|
+
code: conflict.code
|
|
5509
|
+
}
|
|
5510
|
+
);
|
|
5511
|
+
}
|
|
5512
|
+
return requireData(result, message);
|
|
5513
|
+
}
|
|
5490
5514
|
async function uploadDocuments(arbi, files, options = {}) {
|
|
5491
5515
|
const query2 = {};
|
|
5492
5516
|
if (options.shared !== void 0) query2.shared = options.shared;
|
|
@@ -5511,7 +5535,7 @@ async function uploadDocuments(arbi, files, options = {}) {
|
|
|
5511
5535
|
return form;
|
|
5512
5536
|
}
|
|
5513
5537
|
});
|
|
5514
|
-
return
|
|
5538
|
+
return requireUploadData(result, "Failed to upload documents");
|
|
5515
5539
|
}
|
|
5516
5540
|
async function similarDocuments(arbi, options = {}) {
|
|
5517
5541
|
return requireData(
|
|
@@ -5668,6 +5692,9 @@ async function presignedPut(url, body, onProgress, headers) {
|
|
|
5668
5692
|
}
|
|
5669
5693
|
}
|
|
5670
5694
|
async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
5695
|
+
if (!options?.workspaceExtId) {
|
|
5696
|
+
throw new ArbiError("uploadDocumentsDirect needs options.workspaceExtId (the key's workspace)");
|
|
5697
|
+
}
|
|
5671
5698
|
if (files.length === 0) return { doc_ext_ids: [], skipped: [] };
|
|
5672
5699
|
const SECRETBOX_ENVELOPE_OVERHEAD = 40;
|
|
5673
5700
|
const declared = files.map((f2) => ({
|
|
@@ -5679,21 +5706,19 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
5679
5706
|
}));
|
|
5680
5707
|
const initBody = {
|
|
5681
5708
|
files: declared,
|
|
5682
|
-
shared: options
|
|
5683
|
-
config_ext_id: options
|
|
5709
|
+
shared: options.shared !== false,
|
|
5710
|
+
config_ext_id: options.configExtId ?? null,
|
|
5684
5711
|
// Only sent when set, so a plain upload is accepted by any server version.
|
|
5685
|
-
...options
|
|
5686
|
-
wp_type: options
|
|
5687
|
-
tag_ext_id: options
|
|
5688
|
-
folder: options
|
|
5689
|
-
presign_expires_in: options
|
|
5712
|
+
...options.versionOf ? { version_of: options.versionOf } : {},
|
|
5713
|
+
wp_type: options.wpType ?? null,
|
|
5714
|
+
tag_ext_id: options.tagExtId ?? null,
|
|
5715
|
+
folder: options.folder ? sanitizeFolderPath(options.folder) : null,
|
|
5716
|
+
presign_expires_in: options.presignExpiresIn ?? 3600
|
|
5690
5717
|
};
|
|
5691
|
-
const
|
|
5692
|
-
const initResult =
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
"Failed to initialize direct upload"
|
|
5696
|
-
)
|
|
5718
|
+
const query2 = { workspace_ext_id: options.workspaceExtId };
|
|
5719
|
+
const initResult = requireUploadData(
|
|
5720
|
+
await arbi.fetch.POST("/v1/document/upload-init", { params: { query: query2 }, body: initBody }),
|
|
5721
|
+
"Failed to initialize direct upload"
|
|
5697
5722
|
);
|
|
5698
5723
|
const items = initResult.items ?? [];
|
|
5699
5724
|
const bytesByName = /* @__PURE__ */ new Map();
|
|
@@ -5727,7 +5752,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
5727
5752
|
const total = ciphertext.length;
|
|
5728
5753
|
try {
|
|
5729
5754
|
await presignedPut(item.upload_url, ciphertext, (loaded, putTotal) => {
|
|
5730
|
-
options
|
|
5755
|
+
options.onBytesProgress?.({
|
|
5731
5756
|
fileIndex,
|
|
5732
5757
|
fileName: item.file_name,
|
|
5733
5758
|
loaded,
|
|
@@ -5739,7 +5764,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
5739
5764
|
`Presigned PUT for ${item.doc_ext_id} failed: ${err instanceof Error ? err.message : String(err)}`
|
|
5740
5765
|
);
|
|
5741
5766
|
}
|
|
5742
|
-
options
|
|
5767
|
+
options.onBytesProgress?.({
|
|
5743
5768
|
fileIndex,
|
|
5744
5769
|
fileName: item.file_name,
|
|
5745
5770
|
loaded: total,
|
|
@@ -5750,16 +5775,15 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
5750
5775
|
if (toCommit.length === 0) {
|
|
5751
5776
|
return { doc_ext_ids: [], skipped };
|
|
5752
5777
|
}
|
|
5753
|
-
const commitResult =
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
)
|
|
5778
|
+
const commitResult = requireUploadData(
|
|
5779
|
+
await arbi.fetch.POST("/v1/document/upload-commit", {
|
|
5780
|
+
params: { query: query2 },
|
|
5781
|
+
body: {
|
|
5782
|
+
doc_ext_ids: toCommit,
|
|
5783
|
+
tag_ext_id: options.tagExtId ?? null
|
|
5784
|
+
}
|
|
5785
|
+
}),
|
|
5786
|
+
"Failed to commit direct upload"
|
|
5763
5787
|
);
|
|
5764
5788
|
return {
|
|
5765
5789
|
doc_ext_ids: commitResult.doc_ext_ids ?? [],
|
|
@@ -5984,6 +6008,130 @@ async function unlockModelConnections(arbi, keys, onlyId) {
|
|
|
5984
6008
|
}
|
|
5985
6009
|
}
|
|
5986
6010
|
|
|
6011
|
+
// src/operations/secure-mail.ts
|
|
6012
|
+
var secure_mail_exports = {};
|
|
6013
|
+
__export(secure_mail_exports, {
|
|
6014
|
+
claimSecureMail: () => claimSecureMail,
|
|
6015
|
+
prepareSecureMail: () => prepareSecureMail,
|
|
6016
|
+
secureMime: () => secureMime
|
|
6017
|
+
});
|
|
6018
|
+
var MAX_MESSAGE_BYTES = 25 * 1024 * 1024;
|
|
6019
|
+
var utf8 = new TextEncoder();
|
|
6020
|
+
var encodedWord = (value) => `=?UTF-8?B?${bytesToBase64(utf8.encode(value))}?=`;
|
|
6021
|
+
var folded = (value) => value.match(/.{1,76}/g)?.join("\r\n") ?? "";
|
|
6022
|
+
var safeHeader = (value) => {
|
|
6023
|
+
if (/[\r\n\0]/.test(value)) throw new Error("Email headers cannot contain newlines");
|
|
6024
|
+
return value;
|
|
6025
|
+
};
|
|
6026
|
+
function secureMime(compose, sender) {
|
|
6027
|
+
const address = (r2) => `${r2.name ? encodedWord(safeHeader(r2.name)) + " " : ""}<${safeHeader(r2.email)}>`;
|
|
6028
|
+
const boundary = "arbi-" + crypto.randomUUID();
|
|
6029
|
+
const headers = [
|
|
6030
|
+
`From: ${address({ email: sender.email, name: sender.display_name })}`,
|
|
6031
|
+
...compose.to.length ? [`To: ${compose.to.map(address).join(", ")}`] : [],
|
|
6032
|
+
...compose.cc.length ? [`Cc: ${compose.cc.map(address).join(", ")}`] : [],
|
|
6033
|
+
`Subject: ${encodedWord(safeHeader(compose.subject))}`,
|
|
6034
|
+
`Date: ${(/* @__PURE__ */ new Date()).toUTCString()}`,
|
|
6035
|
+
`Message-ID: <${crypto.randomUUID()}@${sender.email.split("@")[1]}>`,
|
|
6036
|
+
...compose.in_reply_to ? [`In-Reply-To: ${safeHeader(compose.in_reply_to)}`] : [],
|
|
6037
|
+
...compose.references?.length ? [`References: ${compose.references.map(safeHeader).join(" ")}`] : [],
|
|
6038
|
+
"MIME-Version: 1.0",
|
|
6039
|
+
"X-ARBI-Secure-Delivery: 1",
|
|
6040
|
+
`Content-Type: multipart/mixed; boundary="${boundary}"`
|
|
6041
|
+
];
|
|
6042
|
+
const alternative = "alternative-" + crypto.randomUUID();
|
|
6043
|
+
const plainPart = `Content-Type: text/plain; charset="utf-8"\r
|
|
6044
|
+
Content-Transfer-Encoding: base64\r
|
|
6045
|
+
\r
|
|
6046
|
+
${folded(bytesToBase64(utf8.encode(compose.text)))}`;
|
|
6047
|
+
const bodyPart = compose.html ? `Content-Type: multipart/alternative; boundary="${alternative}"\r
|
|
6048
|
+
\r
|
|
6049
|
+
--${alternative}\r
|
|
6050
|
+
${plainPart}\r
|
|
6051
|
+
--${alternative}\r
|
|
6052
|
+
Content-Type: text/html; charset="utf-8"\r
|
|
6053
|
+
Content-Transfer-Encoding: base64\r
|
|
6054
|
+
\r
|
|
6055
|
+
${folded(bytesToBase64(utf8.encode(compose.html)))}\r
|
|
6056
|
+
--${alternative}--\r
|
|
6057
|
+
` : plainPart;
|
|
6058
|
+
const parts = [
|
|
6059
|
+
`--${boundary}\r
|
|
6060
|
+
${bodyPart}`,
|
|
6061
|
+
...compose.attachments.map((a2) => {
|
|
6062
|
+
if (!a2.content_base64) throw new Error("Attachment content is missing");
|
|
6063
|
+
const name = encodeURIComponent(safeHeader(a2.name)).replace(/'/g, "%27");
|
|
6064
|
+
return `--${boundary}\r
|
|
6065
|
+
Content-Type: ${safeHeader(a2.content_type || "application/octet-stream")}\r
|
|
6066
|
+
Content-Disposition: attachment; filename*=UTF-8''${name}\r
|
|
6067
|
+
Content-Transfer-Encoding: base64\r
|
|
6068
|
+
\r
|
|
6069
|
+
${folded(a2.content_base64)}`;
|
|
6070
|
+
}),
|
|
6071
|
+
`--${boundary}--\r
|
|
6072
|
+
`
|
|
6073
|
+
];
|
|
6074
|
+
return utf8.encode(headers.join("\r\n") + "\r\n\r\n" + parts.join("\r\n"));
|
|
6075
|
+
}
|
|
6076
|
+
async function prepareSecureMail(compose, sender, { requestId, senderPublicKey, frontendOrigin }) {
|
|
6077
|
+
const raw = secureMime(compose, sender);
|
|
6078
|
+
try {
|
|
6079
|
+
if (raw.length > MAX_MESSAGE_BYTES) throw new Error("Email exceeds the message size limit");
|
|
6080
|
+
const metadata = {
|
|
6081
|
+
secure_delivery: true,
|
|
6082
|
+
id: "",
|
|
6083
|
+
subject: compose.subject,
|
|
6084
|
+
sender: [{ email: sender.email, name: sender.display_name }],
|
|
6085
|
+
to: compose.to,
|
|
6086
|
+
cc: compose.cc,
|
|
6087
|
+
bcc: [],
|
|
6088
|
+
received_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6089
|
+
preview: compose.text.slice(0, 220),
|
|
6090
|
+
unread: false,
|
|
6091
|
+
text: "",
|
|
6092
|
+
references: compose.references ?? [],
|
|
6093
|
+
attachments: compose.attachments.map((a2, i2) => ({
|
|
6094
|
+
...a2,
|
|
6095
|
+
id: String(i2),
|
|
6096
|
+
content_base64: null
|
|
6097
|
+
}))
|
|
6098
|
+
};
|
|
6099
|
+
const recipients = [
|
|
6100
|
+
...new Set([...compose.to, ...compose.cc, ...compose.bcc].map((r2) => r2.email.toLowerCase()))
|
|
6101
|
+
];
|
|
6102
|
+
const sealed = await sealSecureMail(raw, metadata, senderPublicKey);
|
|
6103
|
+
return {
|
|
6104
|
+
request_id: requestId,
|
|
6105
|
+
draft_id: compose.draft_id,
|
|
6106
|
+
recipients: recipients.map((email) => ({
|
|
6107
|
+
id: crypto.randomUUID(),
|
|
6108
|
+
email,
|
|
6109
|
+
fragment_key: sealed.fragment_key
|
|
6110
|
+
})),
|
|
6111
|
+
ciphertext: sealed.ciphertext,
|
|
6112
|
+
metadata_ciphertext: sealed.metadata_ciphertext,
|
|
6113
|
+
sender_wrapped_key: sealed.sender_wrapped_key,
|
|
6114
|
+
frontend_origin: frontendOrigin
|
|
6115
|
+
};
|
|
6116
|
+
} finally {
|
|
6117
|
+
raw.fill(0);
|
|
6118
|
+
}
|
|
6119
|
+
}
|
|
6120
|
+
async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
|
|
6121
|
+
const key = decodeSecureMailKey(fragmentKey);
|
|
6122
|
+
try {
|
|
6123
|
+
const path2 = `/secure/${encodeURIComponent(id)}`;
|
|
6124
|
+
const response = await mail(path2);
|
|
6125
|
+
const { raw } = await openSecureMail(await response.json(), key);
|
|
6126
|
+
raw.fill(0);
|
|
6127
|
+
const claim = await secureMailClaim(key, recipientPublicKey);
|
|
6128
|
+
const claimed = await mail(`${path2}/claim`, { method: "POST", body: JSON.stringify(claim) });
|
|
6129
|
+
return await claimed.json();
|
|
6130
|
+
} finally {
|
|
6131
|
+
key.fill(0);
|
|
6132
|
+
}
|
|
6133
|
+
}
|
|
6134
|
+
|
|
5987
6135
|
// src/operations/workspaces.ts
|
|
5988
6136
|
var workspaces_exports = {};
|
|
5989
6137
|
__export(workspaces_exports, {
|
|
@@ -9621,7 +9769,6 @@ __export(mail_exports, {
|
|
|
9621
9769
|
NATIVE_ACCOUNT: () => NATIVE_ACCOUNT,
|
|
9622
9770
|
attachmentFromBytes: () => attachmentFromBytes,
|
|
9623
9771
|
claimNativeAlias: () => claimNativeAlias,
|
|
9624
|
-
claimSecureMail: () => claimSecureMail,
|
|
9625
9772
|
createMailFetch: () => createMailFetch,
|
|
9626
9773
|
downloadAttachment: () => downloadAttachment,
|
|
9627
9774
|
getMailPolicy: () => getMailPolicy,
|
|
@@ -9727,28 +9874,16 @@ async function unlockNativeMail(mail, keys) {
|
|
|
9727
9874
|
secretKey.fill(0);
|
|
9728
9875
|
}
|
|
9729
9876
|
}
|
|
9730
|
-
async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
|
|
9731
|
-
const key = decodeSecureMailKey(fragmentKey);
|
|
9732
|
-
try {
|
|
9733
|
-
const path2 = `/secure/${encodeURIComponent(id)}`;
|
|
9734
|
-
const { raw } = await openSecureMail(await json(mail(path2)), key);
|
|
9735
|
-
raw.fill(0);
|
|
9736
|
-
const claim = await secureMailClaim(key, recipientPublicKey);
|
|
9737
|
-
return await json(mail(`${path2}/claim`, { method: "POST", body: JSON.stringify(claim) }));
|
|
9738
|
-
} finally {
|
|
9739
|
-
key.fill(0);
|
|
9740
|
-
}
|
|
9741
|
-
}
|
|
9742
9877
|
function attachmentFromBytes(name, contentType, bytes) {
|
|
9743
9878
|
return {
|
|
9744
9879
|
id: "",
|
|
9745
9880
|
name,
|
|
9746
9881
|
content_type: contentType,
|
|
9747
9882
|
size: bytes.length,
|
|
9748
|
-
content_base64:
|
|
9883
|
+
content_base64: bytesToBase644(bytes)
|
|
9749
9884
|
};
|
|
9750
9885
|
}
|
|
9751
|
-
function
|
|
9886
|
+
function bytesToBase644(bytes) {
|
|
9752
9887
|
let binary = "";
|
|
9753
9888
|
for (let i2 = 0; i2 < bytes.length; i2 += 32768) {
|
|
9754
9889
|
binary += String.fromCharCode(...bytes.subarray(i2, i2 + 32768));
|
|
@@ -11210,6 +11345,10 @@ var Arbi = class {
|
|
|
11210
11345
|
if (target) await this.openWorkspace(target);
|
|
11211
11346
|
return target;
|
|
11212
11347
|
}
|
|
11348
|
+
/** {@link targetWorkspace} for a call that cannot go without one: throws when none is known. */
|
|
11349
|
+
async requireTargetWorkspace(workspaceId) {
|
|
11350
|
+
return await this.targetWorkspace(workspaceId) ?? this.requireWorkspace();
|
|
11351
|
+
}
|
|
11213
11352
|
/**
|
|
11214
11353
|
* Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
|
|
11215
11354
|
* session's active workspace) and record it in the session. This is navigation: only the host's
|
|
@@ -11823,20 +11962,23 @@ var Arbi = class {
|
|
|
11823
11962
|
finaliseTranslation: (docId) => finaliseTranslation(this.requireClient(), docId),
|
|
11824
11963
|
delete: (externalIds) => deleteDocuments(this.requireClient(), externalIds),
|
|
11825
11964
|
update: (documents) => updateDocuments(this.requireClient(), documents),
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
);
|
|
11965
|
+
/** Make documents from web addresses in the current workspace, or `options.workspaceId`. */
|
|
11966
|
+
uploadUrl: async (urls, options) => {
|
|
11967
|
+
const { workspaceId, ...rest } = options ?? {};
|
|
11968
|
+
return uploadUrl(this.requireClient(), urls, {
|
|
11969
|
+
workspaceExtId: await this.requireTargetWorkspace(workspaceId),
|
|
11970
|
+
...rest
|
|
11971
|
+
});
|
|
11834
11972
|
},
|
|
11835
11973
|
/**
|
|
11836
|
-
* Upload files in one request
|
|
11837
|
-
* sharing, config, a new version of a document.
|
|
11974
|
+
* Upload files in one request into the current workspace, or `options.workspaceExtId`: folder,
|
|
11975
|
+
* tag, sharing, config, a new version of a document. The request names the workspace either
|
|
11976
|
+
* way, so a switch while it is in flight cannot move it.
|
|
11838
11977
|
*/
|
|
11839
|
-
upload: (files, options) => uploadDocuments(this.requireClient(), files,
|
|
11978
|
+
upload: async (files, options) => uploadDocuments(this.requireClient(), files, {
|
|
11979
|
+
...options,
|
|
11980
|
+
workspaceExtId: await this.requireTargetWorkspace(options?.workspaceExtId ?? void 0)
|
|
11981
|
+
}),
|
|
11840
11982
|
/** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
|
|
11841
11983
|
similar: (options) => similarDocuments(this.requireClient(), options),
|
|
11842
11984
|
/**
|
|
@@ -11861,19 +12003,15 @@ var Arbi = class {
|
|
|
11861
12003
|
},
|
|
11862
12004
|
/**
|
|
11863
12005
|
* Upload files straight to storage, encrypted here with `workspaceKey` (`uploadDocumentsDirect`),
|
|
11864
|
-
* into `workspaceId`,
|
|
11865
|
-
*
|
|
11866
|
-
*
|
|
11867
|
-
* it is sent and still when it returns. A switch refuses the upload
|
|
11868
|
-
* (`ArbiWorkspaceChangedError`) instead of storing files encrypted with one workspace's key in
|
|
11869
|
-
* another. For any other workspace use `upload` with `workspaceExtId`, which names it.
|
|
12006
|
+
* into `workspaceId`, whose key it must be. `upload-init` and `upload-commit` name that
|
|
12007
|
+
* workspace (made usable for this session first, not switched to), so a switch while the
|
|
12008
|
+
* upload runs cannot move the files into another workspace.
|
|
11870
12009
|
*/
|
|
11871
|
-
uploadDirect: (workspaceId, workspaceKey, files, options) => {
|
|
11872
|
-
|
|
11873
|
-
return Promise.reject(new ArbiWorkspaceChangedError(workspaceId, "uploading to"));
|
|
12010
|
+
uploadDirect: async (workspaceId, workspaceKey, files, options) => {
|
|
12011
|
+
const workspaceExtId = await this.requireTargetWorkspace(workspaceId);
|
|
11874
12012
|
return uploadDocumentsDirect(this.requireClient(), workspaceKey, files, {
|
|
11875
12013
|
...options,
|
|
11876
|
-
|
|
12014
|
+
workspaceExtId
|
|
11877
12015
|
});
|
|
11878
12016
|
},
|
|
11879
12017
|
/** Download a document's original file — its current version, or `version`. */
|
|
@@ -12030,6 +12168,42 @@ var Arbi = class {
|
|
|
12030
12168
|
});
|
|
12031
12169
|
}
|
|
12032
12170
|
};
|
|
12171
|
+
// ── Secure mail ─────────────────────────────────────────────────────
|
|
12172
|
+
/**
|
|
12173
|
+
* Mail to anyone, sealed in this browser under a key that travels only in the link's fragment
|
|
12174
|
+
* (see `operations/secure-mail`). Both sides use the signed-in user's encryption key: the
|
|
12175
|
+
* login's, or (a new tab not signed in to the server yet) the one kept on this device.
|
|
12176
|
+
*/
|
|
12177
|
+
secureMail = {
|
|
12178
|
+
/**
|
|
12179
|
+
* The `/secure/send` payload for `compose` from `account`, shown with the user's own name.
|
|
12180
|
+
* Links open on `frontendOrigin` (default: this page's origin).
|
|
12181
|
+
*/
|
|
12182
|
+
prepare: async (compose, account, requestId, frontendOrigin = globalThis.location?.origin ?? "") => {
|
|
12183
|
+
const user = this.client?.session.getState().user;
|
|
12184
|
+
const name = user ? [user.given_name, user.family_name] : [this.userProfile?.givenName, this.userProfile?.familyName];
|
|
12185
|
+
const senderName = name.filter(Boolean).join(" ");
|
|
12186
|
+
return prepareSecureMail(
|
|
12187
|
+
compose,
|
|
12188
|
+
{ ...account, display_name: senderName || account.display_name },
|
|
12189
|
+
{ requestId, senderPublicKey: await this.encryptionPublicKey(), frontendOrigin }
|
|
12190
|
+
);
|
|
12191
|
+
},
|
|
12192
|
+
/**
|
|
12193
|
+
* Claim the secure message `id` with the key from its link into the user's native inbox, over
|
|
12194
|
+
* `mail` (default: this session's mail transport). Resolves to the message's id there.
|
|
12195
|
+
*/
|
|
12196
|
+
claim: async (id, fragmentKey, mail = this.mail.fetch) => claimSecureMail(mail, id, fragmentKey, await this.encryptionPublicKey())
|
|
12197
|
+
};
|
|
12198
|
+
/** The signed-in user's X25519 public key (from the identity key; its secret half is wiped). */
|
|
12199
|
+
async encryptionPublicKey() {
|
|
12200
|
+
const signingKey = this.loginResult?.signingPrivateKey ?? (await this.client?.storage.getSession().catch(() => null))?.signingPrivateKey;
|
|
12201
|
+
if (!signingKey) throw new ArbiError("Sign in again to unlock your encryption key");
|
|
12202
|
+
await initSodium();
|
|
12203
|
+
const pair = encryptionKeypairFromSigningKey(signingKey);
|
|
12204
|
+
pair.secretKey.fill(0);
|
|
12205
|
+
return pair.publicKey;
|
|
12206
|
+
}
|
|
12033
12207
|
async openResponseHandle(open, options, id, bufferEvents = false) {
|
|
12034
12208
|
const controller = new AbortController();
|
|
12035
12209
|
const abort = () => controller.abort();
|
|
@@ -13852,6 +14026,6 @@ function composeTools(base, next, mode) {
|
|
|
13852
14026
|
return structuredClone(mode === "add" ? { ...base, ...next } : next);
|
|
13853
14027
|
}
|
|
13854
14028
|
|
|
13855
|
-
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createIndexAssigner, databases_exports as databases, defaultKindForFormat, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
14029
|
+
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ArbiStructuredOutputError, ArbiTransportError, ArbiWorkspaceChangedError, ArbiWorkspaceSupersededError, ArbiWorkspaceUnavailableError, CallApiError, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DuplicateContactError, ENTITY_KINDS, FLAT_TAG_KINDS, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, PRESENCE_KINDS, PROMPT_CONTEXT_CHARS, PlanStepsError, PublicBookingError, ResponseStream, SHAREPOINT_VENDORS, STOP_ID_WAIT_MS, STOP_REPEAT_WINDOW_MS, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, appendTranscriptionHints, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocumentTools, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, buildTurnRequest, calendar_exports as calendar, calls_exports as calls, canTagHaveParent, cancelPublicBooking, capabilities, chats_exports as chats, composeConfiguration, composeTools, computeRunStats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, contacts_exports as contacts, continuityPrompt, conversations_exports as conversations, countCitations, createAuthenticatedClient, createIndexAssigner, databases_exports as databases, defaultKindForFormat, doctags_exports as doctags, documentTools, documents_exports as documents, estimateDraftTokens, extractDocumentIdsFromMessages, extractFactIdsFromMessages, extractSubagentLanes, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, findLeafForTaskMessage, findMainSiblingLeaf, findReplyTarget, findSubagentRunId, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatTokens, formatUserName, formatWorkspaceChoices, getAgentStepLabel, getAttachableRunId, getChildTags, getContextRemainingPercent, getContextUsedPercent, getContextUsedTokens, getCurrentStep, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getRunToAttach, getRunToCancel, getStepDisplay, getStepTool, getSubagentBranchRecord, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, hydrateAgentSteps, identityErrorCode, identity_exports as identityVerification, instructions, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isNearAiUsageBudget, isPresenceTag, isSharePointVendor, isSharedSkill, isTraceItem, mail_exports as mail, mcpTools, mergeAgentSteps, model_connections_exports as modelConnections, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, parseStructuredResponse, performPasswordLogin, pickMainThread, profile_exports as profile, progressFetch, projects_exports as projects, quotaExceededFrom, quotaFromStreamError, reduceOutputItem, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveSummary, resolveWorkspace, responses_exports as responses, searchChunks, secure_mail_exports as secureMail, selectFullContextDocument, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, sliceToSubagentThread, streamSSE, stripCitationMarkdown, subagentJobLabel, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, topLevelAgentSteps, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaceConflictOf, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
13856
14030
|
//# sourceMappingURL=browser.js.map
|
|
13857
14031
|
//# sourceMappingURL=browser.js.map
|