@arbidocs/sdk 0.4.128 → 0.4.129
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-Ds-drrLp.d.cts → browser-BRF6pkOB.d.cts} +29 -3
- package/dist/{browser-Ds-drrLp.d.ts → browser-BRF6pkOB.d.ts} +29 -3
- package/dist/browser.cjs +40 -26
- 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 +39 -28
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +40 -26
- 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 +39 -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 {
|
|
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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary,
|
|
1
|
+
import { F as ConfigStore, B as CliConfig, D as CliCredentials, x as ChatSession, aU as SkippedFile, bp as UploadResult, m as AuthHeaders, bl as UploadBatchResult, bo as UploadOptions, bm as UploadDirectOptions, bn as UploadDirectResult, aR as SUPPORTED_EXTENSIONS, aa as MailAttachment, q as ChatCryptoContext } from './browser-BRF6pkOB.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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, z as CitationToolSources, E as CommandDescriptor, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, O as DOC_TERMINAL_STATUSES, P as DecryptedChat, Q as DecryptedChatMessage, S as DocNameMap, T as DocumentAutomationAction, U as DocumentListFields, V as DocumentListOrder, W as DocumentSelector, X as DocumentWaiter, Y as DocumentWaiterOptions, Z as FLAT_TAG_KINDS, a1 as FormattedWsMessage, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a7 as ListAllOptions, a9 as ListPaginatedOptions, ab as MailDraftSSEEvent, ac as MessageLevel, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, al as ProjectBudget, am as ProjectConversationUsageResponse, an as ProjectDetails, ao as ProjectEventKind, ap as ProjectEventResponse, aq as ProjectInvoicesResponse, ar as ProjectResponse, as as ProjectUpdateRequest, at as ProjectUsageResponse, au as QueryOptions, av as RaisedSignal, aw as ReconnectOptions, ax as ReconnectableWsConnection, ay as ResolvedCitation, az 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aQ as STEP_FIELD_OPTION_TONES, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, aZ as StepFieldOption, a_ as StepFieldOptionTone, a$ as StepKind, b0 as StepPhase, b1 as StepSignal, b2 as StepSignalWhen, b3 as StepState, b4 as StepStatus, b5 as SubmitBackgroundQueryOptions, b6 as TAG_KINDS, b7 as TagChange, b8 as TagFieldDefinition, b9 as TagKind, ba as TagKindField, bb as TagKindSchema, bc as TagLinks, bd as TagListQuery, be as TagResponse, bf as TaskPlan, bg as TaskPlanStep, bh as TokenBudgetContext, bi as UpdateConversationRequest, bk as UpdateWorkflowRequest, bq as UsageBreakdown, br as UserDailyUsageResponse, bs as UserInfo, bt as UserInputRequestEvent, bu as UserMessageEvent, bv as WebSocketAuthError, bw as WorkStatus, bx as WorkflowAuthMode, by as WorkflowResponse, bz as WorkflowRunHistoryResponse, bA as WorkflowRunResponse, bB as WorkspaceContext, bC as WsConnection, bD as account, bE as agentconfig, bF as agents, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bJ as buildDocNameMap, bK as buildFactsContextTool, bL as buildRetrievalChunkTool, bM as buildRetrievalFullContextTool, bN as buildRetrievalTocTool, bO as chats, bP as connectWebSocket, bQ as connectWithReconnect, bR as consumeSSEStream, bS as contacts, bT as conversations, bU as countCitations, bV as createAuthenticatedClient, bW as createDocumentWaiter, bX as doctags, bY as documents, bZ as facts, b_ as files, b$ as filterSkills, c0 as formatAgentStepLabel, c1 as formatFileSize, c2 as formatGbp, c3 as formatGbpPerMillionTokens, c4 as formatItemLabel, c5 as formatStreamSummary, c6 as formatUserName, c7 as formatWorkspaceChoices, c8 as formatWsMessage, c9 as generateEncryptedWorkspaceKey, ca as generateNewWorkspaceKey, cb as getErrorCode, cc as getErrorMessage, cd as getRawWorkspaceKey, ce as health, cg as identityErrorCode, cf as identityVerification, ch as mail, ci as notifications, cj as parseSSEEvents, ck as parseSlashCommand, cl as parseSlashTokenInProgress, cm as performPasswordLogin, cn as performSigningKeyLogin, co as performSsoDeviceFlowLogin, cp as profile, cq as projects, cr as requireData, cs as requireOk, ct as resolveAuth, cu as resolveCitations, cv as resolveWorkspace, cw as responses, cx as selectWorkspace, cy as selectWorkspaceById, cz as sessions, cA as settings, cB as signatureRequests, cC as streamSSE, cD as stripCitationMarkdown, cE as summarizeCitations, cF as tags, cG as usdToGbp, cH as work, cI as workflowSteps, cJ as workflows, cK as workspaces } from './browser-BRF6pkOB.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary,
|
|
1
|
+
import { F as ConfigStore, B as CliConfig, D as CliCredentials, x as ChatSession, aU as SkippedFile, bp as UploadResult, m as AuthHeaders, bl as UploadBatchResult, bo as UploadOptions, bm as UploadDirectOptions, bn as UploadDirectResult, aR as SUPPORTED_EXTENSIONS, aa as MailAttachment, q as ChatCryptoContext } from './browser-BRF6pkOB.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, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, z as CitationToolSources, E as CommandDescriptor, G as ConnectOptions, H as ConversationResponse, I as ConversationUsageResponse, L as CreateWorkRequest, M as CreateWorkflowRequest, N as DEFAULT_AI_USD_PER_GBP, O as DOC_TERMINAL_STATUSES, P as DecryptedChat, Q as DecryptedChatMessage, S as DocNameMap, T as DocumentAutomationAction, U as DocumentListFields, V as DocumentListOrder, W as DocumentSelector, X as DocumentWaiter, Y as DocumentWaiterOptions, Z as FLAT_TAG_KINDS, a1 as FormattedWsMessage, a2 as IdentityErrorCode, a3 as IdentityPurchase, a4 as IdentityState, a5 as IdentityStatus, a6 as LinkedRun, a7 as ListAllOptions, a9 as ListPaginatedOptions, ab as MailDraftSSEEvent, ac as MessageLevel, ad as MessageMetadataPayload, ae as MessageQueuedEvent, af as OutputTokensDetails, ag as ParsedSlashCommand, ah as PendingAuthResponse, ai as PlanStepsError, aj as PlanWorkRequest, al as ProjectBudget, am as ProjectConversationUsageResponse, an as ProjectDetails, ao as ProjectEventKind, ap as ProjectEventResponse, aq as ProjectInvoicesResponse, ar as ProjectResponse, as as ProjectUpdateRequest, at as ProjectUsageResponse, au as QueryOptions, av as RaisedSignal, aw as ReconnectOptions, ax as ReconnectableWsConnection, ay as ResolvedCitation, az 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 RunProgress, aK as RunStep, aL as RunWaitingOn, aM as SSEEvent, aN as SSEStreamCallbacks, aO as SSEStreamResult, aP as SSEStreamStartData, aQ as STEP_FIELD_OPTION_TONES, aS as SendBack, aT as SkillSummary, aV as StepActionRequest, aW as StepActivityEvent, aX as StepAssignee, aY as StepField, aZ as StepFieldOption, a_ as StepFieldOptionTone, a$ as StepKind, b0 as StepPhase, b1 as StepSignal, b2 as StepSignalWhen, b3 as StepState, b4 as StepStatus, b5 as SubmitBackgroundQueryOptions, b6 as TAG_KINDS, b7 as TagChange, b8 as TagFieldDefinition, b9 as TagKind, ba as TagKindField, bb as TagKindSchema, bc as TagLinks, bd as TagListQuery, be as TagResponse, bf as TaskPlan, bg as TaskPlanStep, bh as TokenBudgetContext, bi as UpdateConversationRequest, bk as UpdateWorkflowRequest, bq as UsageBreakdown, br as UserDailyUsageResponse, bs as UserInfo, bt as UserInputRequestEvent, bu as UserMessageEvent, bv as WebSocketAuthError, bw as WorkStatus, bx as WorkflowAuthMode, by as WorkflowResponse, bz as WorkflowRunHistoryResponse, bA as WorkflowRunResponse, bB as WorkspaceContext, bC as WsConnection, bD as account, bE as agentconfig, bF as agents, bG as assistant, bH as authenticatedFetch, bI as buildCitationChunkData, bJ as buildDocNameMap, bK as buildFactsContextTool, bL as buildRetrievalChunkTool, bM as buildRetrievalFullContextTool, bN as buildRetrievalTocTool, bO as chats, bP as connectWebSocket, bQ as connectWithReconnect, bR as consumeSSEStream, bS as contacts, bT as conversations, bU as countCitations, bV as createAuthenticatedClient, bW as createDocumentWaiter, bX as doctags, bY as documents, bZ as facts, b_ as files, b$ as filterSkills, c0 as formatAgentStepLabel, c1 as formatFileSize, c2 as formatGbp, c3 as formatGbpPerMillionTokens, c4 as formatItemLabel, c5 as formatStreamSummary, c6 as formatUserName, c7 as formatWorkspaceChoices, c8 as formatWsMessage, c9 as generateEncryptedWorkspaceKey, ca as generateNewWorkspaceKey, cb as getErrorCode, cc as getErrorMessage, cd as getRawWorkspaceKey, ce as health, cg as identityErrorCode, cf as identityVerification, ch as mail, ci as notifications, cj as parseSSEEvents, ck as parseSlashCommand, cl as parseSlashTokenInProgress, cm as performPasswordLogin, cn as performSigningKeyLogin, co as performSsoDeviceFlowLogin, cp as profile, cq as projects, cr as requireData, cs as requireOk, ct as resolveAuth, cu as resolveCitations, cv as resolveWorkspace, cw as responses, cx as selectWorkspace, cy as selectWorkspaceById, cz as sessions, cA as settings, cB as signatureRequests, cC as streamSSE, cD as stripCitationMarkdown, cE as summarizeCitations, cF as tags, cG as usdToGbp, cH as work, cI as workflowSteps, cJ as workflows, cK as workspaces } from './browser-BRF6pkOB.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs2, { readFileSync } from 'fs';
|
|
2
2
|
import path2, { dirname, resolve } from 'path';
|
|
3
3
|
import os2 from 'os';
|
|
4
|
-
import { createArbiClient, base64ToBytes,
|
|
4
|
+
import { createArbiClient, base64ToBytes, unwrapWorkspaceKey, sealKeyForSession, buildWebSocketUrl, createAuthMessage, parseServerMessage, isMessageType, createContentHash, encryptFile, initSodium, bytesToBase64, encryptWithChatKey, decryptWithChatKey, decryptFile, encryptionKeypairFromSigningKey, deriveDirectChatKey, openSealedChatKey, generateChatKey, sealChatKey, encryptMessage, sealedBoxDecrypt, decodeSecureMailKey, openSecureMail, secureMailClaim, changePassword } from '@arbidocs/client';
|
|
5
5
|
import { execSync, spawn } from 'child_process';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { fileURLToPath } from 'url';
|
|
@@ -4035,24 +4035,14 @@ async function performSsoDeviceFlowLogin(config, email, password, store, callbac
|
|
|
4035
4035
|
}
|
|
4036
4036
|
async function selectWorkspace(arbi, workspaceId, wrappedKey, serverSessionKey, signingPrivateKeyBase64) {
|
|
4037
4037
|
const signingPrivateKey = base64ToBytes(signingPrivateKeyBase64);
|
|
4038
|
-
const
|
|
4039
|
-
const encryptionKeyPair = deriveEncryptionKeypairFromSigning({
|
|
4040
|
-
publicKey: ed25519PublicKey,
|
|
4041
|
-
secretKey: signingPrivateKey
|
|
4042
|
-
});
|
|
4043
|
-
const workspaceKey = sealedBoxDecrypt(wrappedKey, encryptionKeyPair.secretKey);
|
|
4038
|
+
const workspaceKey = unwrapWorkspaceKey(wrappedKey, signingPrivateKey);
|
|
4044
4039
|
const header = await sealKeyForSession(workspaceKey, serverSessionKey);
|
|
4045
4040
|
arbi.session.setSelectedWorkspace(workspaceId);
|
|
4046
4041
|
return header;
|
|
4047
4042
|
}
|
|
4048
4043
|
async function generateEncryptedWorkspaceKey(arbi, wrappedKey, serverSessionKey, signingPrivateKeyBase64) {
|
|
4049
4044
|
const signingPrivateKey = base64ToBytes(signingPrivateKeyBase64);
|
|
4050
|
-
const
|
|
4051
|
-
const encryptionKeyPair = deriveEncryptionKeypairFromSigning({
|
|
4052
|
-
publicKey: ed25519PublicKey,
|
|
4053
|
-
secretKey: signingPrivateKey
|
|
4054
|
-
});
|
|
4055
|
-
const workspaceKey = sealedBoxDecrypt(wrappedKey, encryptionKeyPair.secretKey);
|
|
4045
|
+
const workspaceKey = unwrapWorkspaceKey(wrappedKey, signingPrivateKey);
|
|
4056
4046
|
return sealKeyForSession(workspaceKey, serverSessionKey);
|
|
4057
4047
|
}
|
|
4058
4048
|
async function generateNewWorkspaceKey(arbi, serverSessionKey) {
|
|
@@ -4072,12 +4062,7 @@ async function getRawWorkspaceKey(arbi, workspaceId, signingPrivateKeyBase64) {
|
|
|
4072
4062
|
throw new ArbiError(`Workspace ${workspaceId} not found or has no encryption key`);
|
|
4073
4063
|
}
|
|
4074
4064
|
const signingPrivateKey = base64ToBytes(signingPrivateKeyBase64);
|
|
4075
|
-
|
|
4076
|
-
const encryptionKeyPair = deriveEncryptionKeypairFromSigning({
|
|
4077
|
-
publicKey: ed25519PublicKey,
|
|
4078
|
-
secretKey: signingPrivateKey
|
|
4079
|
-
});
|
|
4080
|
-
return sealedBoxDecrypt(ws.wrapped_key, encryptionKeyPair.secretKey);
|
|
4065
|
+
return unwrapWorkspaceKey(ws.wrapped_key, signingPrivateKey);
|
|
4081
4066
|
}
|
|
4082
4067
|
var StaleSessionError = class extends ArbiError {
|
|
4083
4068
|
constructor(message) {
|
|
@@ -4873,6 +4858,25 @@ function countCitations(metadata) {
|
|
|
4873
4858
|
function stripCitationMarkdown(text) {
|
|
4874
4859
|
return text.replace(/\[([^\]]+)\]\(#cite-(\d+)\)/g, "$1[$2]");
|
|
4875
4860
|
}
|
|
4861
|
+
function buildCitationChunkData(message) {
|
|
4862
|
+
const merged = {};
|
|
4863
|
+
const sources = [message.tools, message.meta?.tools];
|
|
4864
|
+
for (const toolName of ["retrieval_full_context", "retrieval_chunk"]) {
|
|
4865
|
+
for (const tools of sources) {
|
|
4866
|
+
const tool = tools?.[toolName];
|
|
4867
|
+
if (!tool?.tool_responses) continue;
|
|
4868
|
+
for (const [key, chunks] of Object.entries(tool.tool_responses)) {
|
|
4869
|
+
if (!Array.isArray(chunks)) continue;
|
|
4870
|
+
const seen = new Set((merged[key] ?? []).map((c2) => c2.metadata?.chunk_ext_id));
|
|
4871
|
+
const fresh = chunks.filter(
|
|
4872
|
+
(c2) => !c2.metadata?.chunk_ext_id || !seen.has(c2.metadata.chunk_ext_id)
|
|
4873
|
+
);
|
|
4874
|
+
merged[key] = [...merged[key] ?? [], ...fresh];
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
return merged;
|
|
4879
|
+
}
|
|
4876
4880
|
function buildChunkLookup(tools) {
|
|
4877
4881
|
const lookup = /* @__PURE__ */ new Map();
|
|
4878
4882
|
for (const toolName of ["retrieval_chunk", "retrieval_full_context"]) {
|
|
@@ -6356,10 +6360,7 @@ async function downloadChatAttachment(arbi, file) {
|
|
|
6356
6360
|
|
|
6357
6361
|
// src/operations/chats.ts
|
|
6358
6362
|
function createChatCryptoContext(signingPrivateKeyBytes, userExtId) {
|
|
6359
|
-
const encryptionKeypair =
|
|
6360
|
-
publicKey: signingPrivateKeyBytes.slice(32, 64),
|
|
6361
|
-
secretKey: signingPrivateKeyBytes
|
|
6362
|
-
});
|
|
6363
|
+
const encryptionKeypair = encryptionKeypairFromSigningKey(signingPrivateKeyBytes);
|
|
6363
6364
|
return { encryptionKeypair, userExtId };
|
|
6364
6365
|
}
|
|
6365
6366
|
function isAgentExtId(extId) {
|
|
@@ -8157,6 +8158,7 @@ __export(mail_exports, {
|
|
|
8157
8158
|
NATIVE_ACCOUNT: () => NATIVE_ACCOUNT,
|
|
8158
8159
|
attachmentFromBytes: () => attachmentFromBytes,
|
|
8159
8160
|
claimNativeAlias: () => claimNativeAlias,
|
|
8161
|
+
claimSecureMail: () => claimSecureMail,
|
|
8160
8162
|
createMailFetch: () => createMailFetch,
|
|
8161
8163
|
downloadAttachment: () => downloadAttachment,
|
|
8162
8164
|
getMailPolicy: () => getMailPolicy,
|
|
@@ -8234,10 +8236,7 @@ function sendMessage(mail, message, accountId = NATIVE_ACCOUNT) {
|
|
|
8234
8236
|
}
|
|
8235
8237
|
async function unlockNativeMail(mail, keys) {
|
|
8236
8238
|
await initSodium();
|
|
8237
|
-
const secretKey =
|
|
8238
|
-
publicKey: keys.signingPrivateKey.slice(32, 64),
|
|
8239
|
-
secretKey: keys.signingPrivateKey
|
|
8240
|
-
}).secretKey;
|
|
8239
|
+
const secretKey = encryptionKeypairFromSigningKey(keys.signingPrivateKey).secretKey;
|
|
8241
8240
|
try {
|
|
8242
8241
|
let cursor = 0;
|
|
8243
8242
|
while (cursor !== null) {
|
|
@@ -8265,6 +8264,18 @@ async function unlockNativeMail(mail, keys) {
|
|
|
8265
8264
|
secretKey.fill(0);
|
|
8266
8265
|
}
|
|
8267
8266
|
}
|
|
8267
|
+
async function claimSecureMail(mail, id, fragmentKey, recipientPublicKey) {
|
|
8268
|
+
const key = decodeSecureMailKey(fragmentKey);
|
|
8269
|
+
try {
|
|
8270
|
+
const path4 = `/secure/${encodeURIComponent(id)}`;
|
|
8271
|
+
const { raw } = await openSecureMail(await json(mail(path4)), key);
|
|
8272
|
+
raw.fill(0);
|
|
8273
|
+
const claim = await secureMailClaim(key, recipientPublicKey);
|
|
8274
|
+
return await json(mail(`${path4}/claim`, { method: "POST", body: JSON.stringify(claim) }));
|
|
8275
|
+
} finally {
|
|
8276
|
+
key.fill(0);
|
|
8277
|
+
}
|
|
8278
|
+
}
|
|
8268
8279
|
function attachmentFromBytes(name, contentType, bytes) {
|
|
8269
8280
|
return {
|
|
8270
8281
|
id: "",
|
|
@@ -10415,6 +10426,6 @@ async function startDmListener(options) {
|
|
|
10415
10426
|
};
|
|
10416
10427
|
}
|
|
10417
10428
|
|
|
10418
|
-
export { Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, PlanStepsError, STEP_FIELD_OPTION_TONES, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, chats_exports as chats, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, firm_exports as firm, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, identityErrorCode, identity_exports as identityVerification, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces };
|
|
10429
|
+
export { Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, FLAT_TAG_KINDS, FileConfigStore, OpenClawOrchestrator, PlanStepsError, STEP_FIELD_OPTION_TONES, TAG_KINDS, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildCitationChunkData, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, chats_exports as chats, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, firm_exports as firm, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, identityErrorCode, identity_exports as identityVerification, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces };
|
|
10419
10430
|
//# sourceMappingURL=index.js.map
|
|
10420
10431
|
//# sourceMappingURL=index.js.map
|