@arbidocs/sdk 0.5.71 → 0.5.73
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 +16 -0
- package/dist/{browser-Bf6pRBuP.d.ts → browser-CJ8FI-q-.d.ts} +28 -3
- package/dist/{browser-CA2ecqVP.d.cts → browser-Cy6Noci7.d.cts} +28 -3
- package/dist/browser.cjs +162 -0
- 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 +162 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +162 -0
- 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 +162 -1
- package/dist/index.js.map +1 -1
- package/docs/getting-started.md +12 -0
- package/docs/setup-diagnostics.md +49 -0
- package/examples/human-review/.env.example +7 -0
- package/examples/human-review/README.md +31 -0
- package/examples/human-review/gitignore +2 -0
- package/examples/human-review/index.mjs +83 -0
- package/examples/human-review/package.json +14 -0
- package/examples/react-chat/.env.example +3 -0
- package/examples/react-chat/package.json +3 -5
- package/examples/react-chat/src/App.tsx +2 -2
- package/examples/react-chat/src/styles.css +2 -5
- package/examples/react-chat/vite.config.ts +1 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -467,3 +467,19 @@ ARBI lifecycle controls. Install the package, set the environment variables docu
|
|
|
467
467
|
`examples/session.mjs`, and run with Node 22+. Background inspection accepts an existing response
|
|
468
468
|
ID and never resubmits automatically. Tests can import `frame` and `createSseFake` from `/testing`
|
|
469
469
|
to exercise streams without a deployment (see the exported helper signatures).
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
## Check setup
|
|
473
|
+
|
|
474
|
+
Run `await arbi.diagnose()` or `arbi doctor --json` to check deployment, session and current-workspace
|
|
475
|
+
setup without logging in, switching workspaces or granting access. See the packaged
|
|
476
|
+
[diagnostics guide](https://unpkg.com/@arbidocs/sdk/docs/setup-diagnostics.md).
|
|
477
|
+
|
|
478
|
+
## Human review
|
|
479
|
+
|
|
480
|
+
A runnable example ships at `node_modules/@arbidocs/sdk/examples/human-review`. Copy it to a local
|
|
481
|
+
folder, rename `gitignore` to `.gitignore`, install dependencies, configure `.env`, then run
|
|
482
|
+
`npm start -- start`. The example prints the existing conversation ID and commands to inspect,
|
|
483
|
+
send back, and explicitly approve its draft. It resumes the same workflow conversation across
|
|
484
|
+
processes using existing step APIs. See its
|
|
485
|
+
[README](https://unpkg.com/@arbidocs/sdk/examples/human-review/README.md).
|
|
@@ -958,6 +958,29 @@ declare class ResponseStream implements AsyncIterable<ResponseStreamEvent> {
|
|
|
958
958
|
[Symbol.asyncIterator](): AsyncIterator<ResponseStreamEvent>;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
+
/** Read-only setup checks. Uses raw GETs so diagnosis never logs in or opens a workspace. */
|
|
962
|
+
interface SetupDiagnostic {
|
|
963
|
+
check: 'connection' | 'deployment' | 'authentication' | 'workspace' | 'permissions';
|
|
964
|
+
status: 'ok' | 'warning' | 'error' | 'skipped';
|
|
965
|
+
message: string;
|
|
966
|
+
hint?: string;
|
|
967
|
+
}
|
|
968
|
+
interface DiagnoseOptions {
|
|
969
|
+
url: string;
|
|
970
|
+
deploymentDomain?: string;
|
|
971
|
+
accessToken?: string | null;
|
|
972
|
+
workspaceId?: string | null;
|
|
973
|
+
/** Raw fetch, not a client with login/retry middleware. Useful for a host proxy or tests. */
|
|
974
|
+
fetch?: typeof globalThis.fetch;
|
|
975
|
+
timeoutMs?: number;
|
|
976
|
+
}
|
|
977
|
+
interface SetupReport {
|
|
978
|
+
ok: boolean;
|
|
979
|
+
checks: SetupDiagnostic[];
|
|
980
|
+
}
|
|
981
|
+
/** No credentials, response bodies, names, keys or document content are returned in the report. */
|
|
982
|
+
declare function diagnoseSetup(options: DiagnoseOptions): Promise<SetupReport>;
|
|
983
|
+
|
|
961
984
|
/**
|
|
962
985
|
* Document operations — browser-safe functions.
|
|
963
986
|
*
|
|
@@ -2967,7 +2990,7 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
2967
2990
|
} | {
|
|
2968
2991
|
type: "tabular_review";
|
|
2969
2992
|
tags: string[];
|
|
2970
|
-
documents: "
|
|
2993
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
2971
2994
|
step?: string | null | undefined;
|
|
2972
2995
|
input?: string | null | undefined;
|
|
2973
2996
|
})[];
|
|
@@ -8617,6 +8640,8 @@ declare class Arbi {
|
|
|
8617
8640
|
* subscribe to; `null` before a client exists.
|
|
8618
8641
|
*/
|
|
8619
8642
|
get session(): SessionManager | null;
|
|
8643
|
+
/** Read-only setup checks; never signs in, opens a workspace or grants access. */
|
|
8644
|
+
diagnose(): Promise<SetupReport>;
|
|
8620
8645
|
/** Get the underlying ArbiClient (throws if not initialized). */
|
|
8621
8646
|
getClient(): ArbiClient;
|
|
8622
8647
|
/** Get the current workspace ID (throws if none selected). */
|
|
@@ -11289,7 +11314,7 @@ declare class Arbi {
|
|
|
11289
11314
|
} | {
|
|
11290
11315
|
type: "tabular_review";
|
|
11291
11316
|
tags: string[];
|
|
11292
|
-
documents: "
|
|
11317
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
11293
11318
|
step?: string | null | undefined;
|
|
11294
11319
|
input?: string | null | undefined;
|
|
11295
11320
|
})[];
|
|
@@ -17631,4 +17656,4 @@ declare function documentTools(options: {
|
|
|
17631
17656
|
/** Add replaces matching tool names; replace discards all previous tools. No mutation of inputs. */
|
|
17632
17657
|
declare function composeTools(base: ResponseTools, next: ResponseTools, mode: 'add' | 'replace'): ResponseTools;
|
|
17633
17658
|
|
|
17634
|
-
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FullContextSelection as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DirectModelUsage as aC, type DocInfo as aD, type DocInfoMap as aE, type DocNameMap as aF, type DocumentAutomationAction as aG, type DocumentListFields as aH, type DocumentListOrder as aI, type DocumentSelector as aJ, type DocumentWaiter as aK, type DocumentWaiterOptions as aL, type DriveSyncProgress as aM, type DriveSyncSummary as aN, DuplicateContactError as aO, ENTITY_KINDS as aP, type EditScope as aQ, type EntityKind as aR, type EventCreateBody as aS, type EventPatchBody as aT, FLAT_TAG_KINDS as aU, type FactResponse as aV, type FactSearchRequest as aW, type FactSearchResponse as aX, type FindTimeParams as aY, type FormattedWsMessage as aZ, type FreeBusyEntry as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondPartstat as b$, GOOGLE_VENDORS as b0, type HolidayCountry as b1, type HouseTemplateCandidate as b2, IMANAGE_VENDORS as b3, type IdentityErrorCode as b4, type IdentityPurchase as b5, type IdentityState as b6, type IdentityStatus as b7, type ImportResult as b8, type InvitationRead as b9, type ProductResponse as bA, type ProjectAddonKind as bB, type ProjectAddonSettingsRequest as bC, type ProjectBudget as bD, type ProjectCheckoutRequest as bE, type ProjectConversationUsageResponse as bF, type ProjectCreateOptions as bG, type ProjectDetails as bH, type ProjectEventKind as bI, type ProjectEventResponse as bJ, type ProjectInvoicesResponse as bK, type ProjectNextPeriodAddonsRequest as bL, type ProjectPlanChangeRequest as bM, type ProjectQuoteRequest as bN, type ProjectResponse as bO, type ProjectUpdateRequest as bP, type ProjectUsageResponse as bQ, PublicBookingError as bR, type PublicBookingPage as bS, type QuotaExceeded as bT, type RaisedSignal as bU, type RawResponseEvent as bV, type ReconnectOptions as bW, type ReconnectableWsConnection as bX, type ResolvedCitation as bY, type ResolvedRecipient as bZ, type RespondParams as b_, type JsonSchemaOutputFormat as ba, type LinkedRun as bb, type ListAllOptions as bc, type ListEventsParams as bd, type ListFactsOptions as be, type ListPaginatedOptions as bf, MAILBOX_SYNC_VENDORS as bg, MAX_RETRIEVE_DOC_IDS as bh, MICROSOFT_VENDORS as bi, type MailAttachment as bj, type MessageLevel as bk, type ModelConnection as bl, type OAuthAccountKind as bm, type OutputItemDone as bn, type OverlayItem as bo, type OverlayLayerName as bp, PRESENCE_KINDS as bq, PROMPT_CONTEXT_CHARS as br, type ParsedResponse as bs, type ParsedSlashCommand as bt, type ParsedStructuredResponse as bu, type PendingAuthResponse as bv, type PersonKey as bw, type PersonalConnectionInput as bx, PlanStepsError as by, type PlanWorkRequest as bz, type ActivityResponse as c, type TagLinks as c$, type Response$1 as c0, type ResponseCreateRequest as c1, type ResponseCreateResult as c2, type ResponseHandle as c3, type ResponseSnapshot as c4, type ResponseStart as c5, type ResponseStartOptions as c6, ResponseStream as c7, type ResponseStreamEvent as c8, type ResponseTools as c9, type SlackConnectionStatus as cA, type StepActionRequest as cB, type StepActivityEvent as cC, type StepAssignee as cD, type StepDisplay as cE, type StepField as cF, type StepFieldOption as cG, type StepFieldOptionTone as cH, type StepKind as cI, type StepPhase as cJ, type StepSignal as cK, type StepSignalWhen as cL, type StepState as cM, type StepStatus as cN, type SubagentBranchRecord as cO, type SubagentLaneInfo as cP, type SubmitBackgroundQueryOptions as cQ, type SubscribeParams as cR, type SyncTriggerResult as cS, TAG_KINDS as cT, TAG_NESTING_MAX_DEPTH as cU, type TagChange as cV, type TagFieldDefinition as cW, type TagGroup as cX, type TagKind as cY, type TagKindField as cZ, type TagKindSchema as c_, type RoomCreateBody as ca, type RoomQuery as cb, type RoomRead as cc, type RunProgress as cd, type RunStats as ce, type RunStep as cf, type RunWaitingOn as cg, SHAREPOINT_VENDORS as ch, type SSEEvent as ci, type SSEStreamCallbacks as cj, type SSEStreamOutcome as ck, type SSEStreamResult as cl, STEP_FIELD_OPTION_TONES as cm, STOP_ID_WAIT_MS as cn, STOP_REPEAT_WINDOW_MS as co, SUPPORTED_EXTENSIONS as cp, type ScopedTarget as cq, type SearchChunk as cr, type SecureMailCompose as cs, type SecureMailSend as ct, type SecureMailSender as cu, type SendBack as cv, type ShareRead as cw, type ShareRole as cx, type SkillSummary as cy, type SkippedFile as cz, Arbi as d, connectErrorMessage as d$, type TagListQuery as d0, type TagNode as d1, type TagResponse as d2, type TagScope as d3, type TagTreeRow as d4, type TaskPlan as d5, type TaskPlanStep as d6, type TaxQuoteResponse as d7, type Thread as d8, type ThreadsResponse as d9, type WorkspaceOpenResponse as dA, type WorkspaceResponse as dB, type WsConnection as dC, account as dD, agentconfig as dE, agents as dF, appendTranscriptionHints as dG, assistant as dH, authenticatedFetch as dI, bookPublicSlot as dJ, buildCitationChunkData as dK, buildDocNameMap as dL, buildDocumentTools as dM, buildFactsContextTool as dN, buildRetrievalChunkTool as dO, buildRetrievalFullContextTool as dP, buildRetrievalTocTool as dQ, buildTurnRequest as dR, calendar as dS, calls as dT, canTagHaveParent as dU, cancelPublicBooking as dV, capabilities as dW, chats as dX, composeConfiguration as dY, composeTools as dZ, computeRunStats as d_, type TimeSuggestion as da, type TurnRequest as db, type UpdateConversationRequest as dc, type UpdateFactRequest as dd, type UpdateWorkflowRequest as de, type UploadBatchResult as df, type UploadDirectOptions as dg, type UploadDirectResult as dh, type UploadDocumentsOptions as di, type UploadOptions as dj, type UploadProgressListener as dk, type UploadResult as dl, type UsageBreakdown as dm, type UserConnectorEntry as dn, type UserDailyUsageResponse as dp, type UserInfo as dq, WebSocketAuthError as dr, type WeeklyHoursSpec as ds, type WorkStatus as dt, type WorkflowAuthMode as du, type WorkflowResponse as dv, type WorkflowRunHistoryResponse as dw, type WorkflowRunResponse as dx, type WorkspaceConflict as dy, type WorkspaceContext as dz, ArbiApiError as e, instructions as e$, connectWebSocket as e0, connectWithReconnect as e1, connectors as e2, contacts as e3, continuityPrompt as e4, conversations as e5, countCitations as e6, createAuthenticatedClient as e7, createDocumentWaiter as e8, createIndexAssigner as e9, formatWorkspaceChoices as eA, formatWsMessage as eB, generateEncryptedWorkspaceKey as eC, generateNewWorkspaceKey as eD, getAgentStepLabel as eE, getAttachableRunId as eF, getChildTags as eG, getContextRemainingPercent as eH, getContextUsedPercent as eI, getContextUsedTokens as eJ, getCurrentStep as eK, getEligibleParentTags as eL, getErrorCode as eM, getErrorMessage as eN, getPublicBookingPage as eO, getRawWorkspaceKey as eP, getRunToAttach as eQ, getRunToCancel as eR, getStepDisplay as eS, getStepTool as eT, getSubagentBranchRecord as eU, getTagDescendantIds as eV, health as eW, houseTemplate as eX, hydrateAgentSteps as eY, identity as eZ, identityErrorCode as e_, databases as ea, defaultKindForFormat as eb, doctags as ec, documentTools as ed, documents as ee, estimateDraftTokens as ef, extractDocumentIdsFromMessages as eg, extractFactIdsFromMessages as eh, extractSubagentLanes as ei, facts as ej, files as ek, filterDocumentTags as el, filterSkills as em, findLeafForTaskMessage as en, findMainSiblingLeaf as eo, findReplyTarget as ep, findSubagentRunId as eq, flattenTagTree as er, formatAgentStepLabel as es, formatFileSize as et, formatGbp as eu, formatGbpPerMillionTokens as ev, formatItemLabel as ew, formatStreamSummary as ex, formatTokens as ey, formatUserName as ez, ArbiError as f, workspaces as f$, isAnnotationTag as f0, isConnectorVendorVisible as f1, isDriveSyncVendor as f2, isEntityTag as f3, isFlatKind as f4, isLabelTag as f5, isMailboxSyncVendor as f6, isNearAiUsageBudget as f7, isPresenceTag as f8, isSharePointVendor as f9, resolveSummary as fA, resolveWorkspace as fB, responses as fC, searchChunks as fD, secureMail as fE, selectFullContextDocument as fF, selectWorkspace as fG, selectWorkspaceById as fH, sessions as fI, settings as fJ, signatureRequests as fK, sliceToSubagentThread as fL, streamSSE as fM, stripCitationMarkdown as fN, subagentJobLabel as fO, summarizeCitations as fP, tagUseCount as fQ, tags as fR, tagsForScope as fS, tagsOfGroup as fT, topLevelAgentSteps as fU, uploadSkill as fV, usdToGbp as fW, work as fX, workflowSteps as fY, workflows as fZ, workspaceConflictOf as f_, isSharedSkill as fa, isTraceItem as fb, mail as fc, mcpTools as fd, mergeAgentSteps as fe, modelConnections as ff, notifications as fg, parseSSEEvents as fh, parseSlashCommand as fi, parseSlashTokenInProgress as fj, parseStructuredResponse as fk, performPasswordLogin as fl, performSigningKeyLogin as fm, performSsoDeviceFlowLogin as fn, pickMainThread as fo, profile as fp, progressFetch as fq, projects as fr, quotaExceededFrom as fs, quotaFromStreamError as ft, reduceOutputItem as fu, refusalReason as fv, requireData as fw, requireOk as fx, resolveAuth as fy, resolveCitations as fz, type ArbiErrorOptions as g, wouldCreateTagCycle as g0, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type BridgeTokensOptions as z };
|
|
17659
|
+
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FreeBusyEntry as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DiagnoseOptions as aC, type DirectModelUsage as aD, type DocInfo as aE, type DocInfoMap as aF, type DocNameMap as aG, type DocumentAutomationAction as aH, type DocumentListFields as aI, type DocumentListOrder as aJ, type DocumentSelector as aK, type DocumentWaiter as aL, type DocumentWaiterOptions as aM, type DriveSyncProgress as aN, type DriveSyncSummary as aO, DuplicateContactError as aP, ENTITY_KINDS as aQ, type EditScope as aR, type EntityKind as aS, type EventCreateBody as aT, type EventPatchBody as aU, FLAT_TAG_KINDS as aV, type FactResponse as aW, type FactSearchRequest as aX, type FactSearchResponse as aY, type FindTimeParams as aZ, type FormattedWsMessage as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondParams as b$, type FullContextSelection as b0, GOOGLE_VENDORS as b1, type HolidayCountry as b2, type HouseTemplateCandidate as b3, IMANAGE_VENDORS as b4, type IdentityErrorCode as b5, type IdentityPurchase as b6, type IdentityState as b7, type IdentityStatus as b8, type ImportResult as b9, type PlanWorkRequest as bA, type ProductResponse as bB, type ProjectAddonKind as bC, type ProjectAddonSettingsRequest as bD, type ProjectBudget as bE, type ProjectCheckoutRequest as bF, type ProjectConversationUsageResponse as bG, type ProjectCreateOptions as bH, type ProjectDetails as bI, type ProjectEventKind as bJ, type ProjectEventResponse as bK, type ProjectInvoicesResponse as bL, type ProjectNextPeriodAddonsRequest as bM, type ProjectPlanChangeRequest as bN, type ProjectQuoteRequest as bO, type ProjectResponse as bP, type ProjectUpdateRequest as bQ, type ProjectUsageResponse as bR, PublicBookingError as bS, type PublicBookingPage as bT, type QuotaExceeded as bU, type RaisedSignal as bV, type RawResponseEvent as bW, type ReconnectOptions as bX, type ReconnectableWsConnection as bY, type ResolvedCitation as bZ, type ResolvedRecipient as b_, type InvitationRead as ba, type JsonSchemaOutputFormat as bb, type LinkedRun as bc, type ListAllOptions as bd, type ListEventsParams as be, type ListFactsOptions as bf, type ListPaginatedOptions as bg, MAILBOX_SYNC_VENDORS as bh, MAX_RETRIEVE_DOC_IDS as bi, MICROSOFT_VENDORS as bj, type MailAttachment as bk, type MessageLevel as bl, type ModelConnection as bm, type OAuthAccountKind as bn, type OutputItemDone as bo, type OverlayItem as bp, type OverlayLayerName as bq, PRESENCE_KINDS as br, PROMPT_CONTEXT_CHARS as bs, type ParsedResponse as bt, type ParsedSlashCommand as bu, type ParsedStructuredResponse as bv, type PendingAuthResponse as bw, type PersonKey as bx, type PersonalConnectionInput as by, PlanStepsError as bz, type ActivityResponse as c, type TagKind as c$, type RespondPartstat as c0, type Response$1 as c1, type ResponseCreateRequest as c2, type ResponseCreateResult as c3, type ResponseHandle as c4, type ResponseSnapshot as c5, type ResponseStart as c6, type ResponseStartOptions as c7, ResponseStream as c8, type ResponseStreamEvent as c9, type ShareRole as cA, type SkillSummary as cB, type SkippedFile as cC, type SlackConnectionStatus as cD, type StepActionRequest as cE, type StepActivityEvent as cF, type StepAssignee as cG, type StepDisplay as cH, type StepField as cI, type StepFieldOption as cJ, type StepFieldOptionTone as cK, type StepKind as cL, type StepPhase as cM, type StepSignal as cN, type StepSignalWhen as cO, type StepState as cP, type StepStatus as cQ, type SubagentBranchRecord as cR, type SubagentLaneInfo as cS, type SubmitBackgroundQueryOptions as cT, type SubscribeParams as cU, type SyncTriggerResult as cV, TAG_KINDS as cW, TAG_NESTING_MAX_DEPTH as cX, type TagChange as cY, type TagFieldDefinition as cZ, type TagGroup as c_, type ResponseTools as ca, type RoomCreateBody as cb, type RoomQuery as cc, type RoomRead as cd, type RunProgress as ce, type RunStats as cf, type RunStep as cg, type RunWaitingOn as ch, SHAREPOINT_VENDORS as ci, type SSEEvent as cj, type SSEStreamCallbacks as ck, type SSEStreamOutcome as cl, type SSEStreamResult as cm, STEP_FIELD_OPTION_TONES as cn, STOP_ID_WAIT_MS as co, STOP_REPEAT_WINDOW_MS as cp, SUPPORTED_EXTENSIONS as cq, type ScopedTarget as cr, type SearchChunk as cs, type SecureMailCompose as ct, type SecureMailSend as cu, type SecureMailSender as cv, type SendBack as cw, type SetupDiagnostic as cx, type SetupReport as cy, type ShareRead as cz, Arbi as d, composeConfiguration as d$, type TagKindField as d0, type TagKindSchema as d1, type TagLinks as d2, type TagListQuery as d3, type TagNode as d4, type TagResponse as d5, type TagScope as d6, type TagTreeRow as d7, type TaskPlan as d8, type TaskPlanStep as d9, type WorkflowRunResponse as dA, type WorkspaceConflict as dB, type WorkspaceContext as dC, type WorkspaceOpenResponse as dD, type WorkspaceResponse as dE, type WsConnection as dF, account as dG, agentconfig as dH, agents as dI, appendTranscriptionHints as dJ, assistant as dK, authenticatedFetch as dL, bookPublicSlot as dM, buildCitationChunkData as dN, buildDocNameMap as dO, buildDocumentTools as dP, buildFactsContextTool as dQ, buildRetrievalChunkTool as dR, buildRetrievalFullContextTool as dS, buildRetrievalTocTool as dT, buildTurnRequest as dU, calendar as dV, calls as dW, canTagHaveParent as dX, cancelPublicBooking as dY, capabilities as dZ, chats as d_, type TaxQuoteResponse as da, type Thread as db, type ThreadsResponse as dc, type TimeSuggestion as dd, type TurnRequest as de, type UpdateConversationRequest as df, type UpdateFactRequest as dg, type UpdateWorkflowRequest as dh, type UploadBatchResult as di, type UploadDirectOptions as dj, type UploadDirectResult as dk, type UploadDocumentsOptions as dl, type UploadOptions as dm, type UploadProgressListener as dn, type UploadResult as dp, type UsageBreakdown as dq, type UserConnectorEntry as dr, type UserDailyUsageResponse as ds, type UserInfo as dt, WebSocketAuthError as du, type WeeklyHoursSpec as dv, type WorkStatus as dw, type WorkflowAuthMode as dx, type WorkflowResponse as dy, type WorkflowRunHistoryResponse as dz, ArbiApiError as e, houseTemplate as e$, composeTools as e0, computeRunStats as e1, connectErrorMessage as e2, connectWebSocket as e3, connectWithReconnect as e4, connectors as e5, contacts as e6, continuityPrompt as e7, conversations as e8, countCitations as e9, formatItemLabel as eA, formatStreamSummary as eB, formatTokens as eC, formatUserName as eD, formatWorkspaceChoices as eE, formatWsMessage as eF, generateEncryptedWorkspaceKey as eG, generateNewWorkspaceKey as eH, getAgentStepLabel as eI, getAttachableRunId as eJ, getChildTags as eK, getContextRemainingPercent as eL, getContextUsedPercent as eM, getContextUsedTokens as eN, getCurrentStep as eO, getEligibleParentTags as eP, getErrorCode as eQ, getErrorMessage as eR, getPublicBookingPage as eS, getRawWorkspaceKey as eT, getRunToAttach as eU, getRunToCancel as eV, getStepDisplay as eW, getStepTool as eX, getSubagentBranchRecord as eY, getTagDescendantIds as eZ, health as e_, createAuthenticatedClient as ea, createDocumentWaiter as eb, createIndexAssigner as ec, databases as ed, defaultKindForFormat as ee, diagnoseSetup as ef, doctags as eg, documentTools as eh, documents as ei, estimateDraftTokens as ej, extractDocumentIdsFromMessages as ek, extractFactIdsFromMessages as el, extractSubagentLanes as em, facts as en, files as eo, filterDocumentTags as ep, filterSkills as eq, findLeafForTaskMessage as er, findMainSiblingLeaf as es, findReplyTarget as et, findSubagentRunId as eu, flattenTagTree as ev, formatAgentStepLabel as ew, formatFileSize as ex, formatGbp as ey, formatGbpPerMillionTokens as ez, ArbiError as f, work as f$, hydrateAgentSteps as f0, identity as f1, identityErrorCode as f2, instructions as f3, isAnnotationTag as f4, isConnectorVendorVisible as f5, isDriveSyncVendor as f6, isEntityTag as f7, isFlatKind as f8, isLabelTag as f9, requireData as fA, requireOk as fB, resolveAuth as fC, resolveCitations as fD, resolveSummary as fE, resolveWorkspace as fF, responses as fG, searchChunks as fH, secureMail as fI, selectFullContextDocument as fJ, selectWorkspace as fK, selectWorkspaceById as fL, sessions as fM, settings as fN, signatureRequests as fO, sliceToSubagentThread as fP, streamSSE as fQ, stripCitationMarkdown as fR, subagentJobLabel as fS, summarizeCitations as fT, tagUseCount as fU, tags as fV, tagsForScope as fW, tagsOfGroup as fX, topLevelAgentSteps as fY, uploadSkill as fZ, usdToGbp as f_, isMailboxSyncVendor as fa, isNearAiUsageBudget as fb, isPresenceTag as fc, isSharePointVendor as fd, isSharedSkill as fe, isTraceItem as ff, mail as fg, mcpTools as fh, mergeAgentSteps as fi, modelConnections as fj, notifications as fk, parseSSEEvents as fl, parseSlashCommand as fm, parseSlashTokenInProgress as fn, parseStructuredResponse as fo, performPasswordLogin as fp, performSigningKeyLogin as fq, performSsoDeviceFlowLogin as fr, pickMainThread as fs, profile as ft, progressFetch as fu, projects as fv, quotaExceededFrom as fw, quotaFromStreamError as fx, reduceOutputItem as fy, refusalReason as fz, type ArbiErrorOptions as g, workflowSteps as g0, workflows as g1, workspaceConflictOf as g2, workspaces as g3, wouldCreateTagCycle as g4, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type BridgeTokensOptions as z };
|
|
@@ -958,6 +958,29 @@ declare class ResponseStream implements AsyncIterable<ResponseStreamEvent> {
|
|
|
958
958
|
[Symbol.asyncIterator](): AsyncIterator<ResponseStreamEvent>;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
+
/** Read-only setup checks. Uses raw GETs so diagnosis never logs in or opens a workspace. */
|
|
962
|
+
interface SetupDiagnostic {
|
|
963
|
+
check: 'connection' | 'deployment' | 'authentication' | 'workspace' | 'permissions';
|
|
964
|
+
status: 'ok' | 'warning' | 'error' | 'skipped';
|
|
965
|
+
message: string;
|
|
966
|
+
hint?: string;
|
|
967
|
+
}
|
|
968
|
+
interface DiagnoseOptions {
|
|
969
|
+
url: string;
|
|
970
|
+
deploymentDomain?: string;
|
|
971
|
+
accessToken?: string | null;
|
|
972
|
+
workspaceId?: string | null;
|
|
973
|
+
/** Raw fetch, not a client with login/retry middleware. Useful for a host proxy or tests. */
|
|
974
|
+
fetch?: typeof globalThis.fetch;
|
|
975
|
+
timeoutMs?: number;
|
|
976
|
+
}
|
|
977
|
+
interface SetupReport {
|
|
978
|
+
ok: boolean;
|
|
979
|
+
checks: SetupDiagnostic[];
|
|
980
|
+
}
|
|
981
|
+
/** No credentials, response bodies, names, keys or document content are returned in the report. */
|
|
982
|
+
declare function diagnoseSetup(options: DiagnoseOptions): Promise<SetupReport>;
|
|
983
|
+
|
|
961
984
|
/**
|
|
962
985
|
* Document operations — browser-safe functions.
|
|
963
986
|
*
|
|
@@ -2967,7 +2990,7 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
2967
2990
|
} | {
|
|
2968
2991
|
type: "tabular_review";
|
|
2969
2992
|
tags: string[];
|
|
2970
|
-
documents: "
|
|
2993
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
2971
2994
|
step?: string | null | undefined;
|
|
2972
2995
|
input?: string | null | undefined;
|
|
2973
2996
|
})[];
|
|
@@ -8617,6 +8640,8 @@ declare class Arbi {
|
|
|
8617
8640
|
* subscribe to; `null` before a client exists.
|
|
8618
8641
|
*/
|
|
8619
8642
|
get session(): SessionManager | null;
|
|
8643
|
+
/** Read-only setup checks; never signs in, opens a workspace or grants access. */
|
|
8644
|
+
diagnose(): Promise<SetupReport>;
|
|
8620
8645
|
/** Get the underlying ArbiClient (throws if not initialized). */
|
|
8621
8646
|
getClient(): ArbiClient;
|
|
8622
8647
|
/** Get the current workspace ID (throws if none selected). */
|
|
@@ -11289,7 +11314,7 @@ declare class Arbi {
|
|
|
11289
11314
|
} | {
|
|
11290
11315
|
type: "tabular_review";
|
|
11291
11316
|
tags: string[];
|
|
11292
|
-
documents: "
|
|
11317
|
+
documents: "workspace" | "run_uploads" | (string | {
|
|
11293
11318
|
step?: string | null | undefined;
|
|
11294
11319
|
input?: string | null | undefined;
|
|
11295
11320
|
})[];
|
|
@@ -17631,4 +17656,4 @@ declare function documentTools(options: {
|
|
|
17631
17656
|
/** Add replaces matching tool names; replace discards all previous tools. No mutation of inputs. */
|
|
17632
17657
|
declare function composeTools(base: ResponseTools, next: ResponseTools, mode: 'add' | 'replace'): ResponseTools;
|
|
17633
17658
|
|
|
17634
|
-
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FullContextSelection as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DirectModelUsage as aC, type DocInfo as aD, type DocInfoMap as aE, type DocNameMap as aF, type DocumentAutomationAction as aG, type DocumentListFields as aH, type DocumentListOrder as aI, type DocumentSelector as aJ, type DocumentWaiter as aK, type DocumentWaiterOptions as aL, type DriveSyncProgress as aM, type DriveSyncSummary as aN, DuplicateContactError as aO, ENTITY_KINDS as aP, type EditScope as aQ, type EntityKind as aR, type EventCreateBody as aS, type EventPatchBody as aT, FLAT_TAG_KINDS as aU, type FactResponse as aV, type FactSearchRequest as aW, type FactSearchResponse as aX, type FindTimeParams as aY, type FormattedWsMessage as aZ, type FreeBusyEntry as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondPartstat as b$, GOOGLE_VENDORS as b0, type HolidayCountry as b1, type HouseTemplateCandidate as b2, IMANAGE_VENDORS as b3, type IdentityErrorCode as b4, type IdentityPurchase as b5, type IdentityState as b6, type IdentityStatus as b7, type ImportResult as b8, type InvitationRead as b9, type ProductResponse as bA, type ProjectAddonKind as bB, type ProjectAddonSettingsRequest as bC, type ProjectBudget as bD, type ProjectCheckoutRequest as bE, type ProjectConversationUsageResponse as bF, type ProjectCreateOptions as bG, type ProjectDetails as bH, type ProjectEventKind as bI, type ProjectEventResponse as bJ, type ProjectInvoicesResponse as bK, type ProjectNextPeriodAddonsRequest as bL, type ProjectPlanChangeRequest as bM, type ProjectQuoteRequest as bN, type ProjectResponse as bO, type ProjectUpdateRequest as bP, type ProjectUsageResponse as bQ, PublicBookingError as bR, type PublicBookingPage as bS, type QuotaExceeded as bT, type RaisedSignal as bU, type RawResponseEvent as bV, type ReconnectOptions as bW, type ReconnectableWsConnection as bX, type ResolvedCitation as bY, type ResolvedRecipient as bZ, type RespondParams as b_, type JsonSchemaOutputFormat as ba, type LinkedRun as bb, type ListAllOptions as bc, type ListEventsParams as bd, type ListFactsOptions as be, type ListPaginatedOptions as bf, MAILBOX_SYNC_VENDORS as bg, MAX_RETRIEVE_DOC_IDS as bh, MICROSOFT_VENDORS as bi, type MailAttachment as bj, type MessageLevel as bk, type ModelConnection as bl, type OAuthAccountKind as bm, type OutputItemDone as bn, type OverlayItem as bo, type OverlayLayerName as bp, PRESENCE_KINDS as bq, PROMPT_CONTEXT_CHARS as br, type ParsedResponse as bs, type ParsedSlashCommand as bt, type ParsedStructuredResponse as bu, type PendingAuthResponse as bv, type PersonKey as bw, type PersonalConnectionInput as bx, PlanStepsError as by, type PlanWorkRequest as bz, type ActivityResponse as c, type TagLinks as c$, type Response$1 as c0, type ResponseCreateRequest as c1, type ResponseCreateResult as c2, type ResponseHandle as c3, type ResponseSnapshot as c4, type ResponseStart as c5, type ResponseStartOptions as c6, ResponseStream as c7, type ResponseStreamEvent as c8, type ResponseTools as c9, type SlackConnectionStatus as cA, type StepActionRequest as cB, type StepActivityEvent as cC, type StepAssignee as cD, type StepDisplay as cE, type StepField as cF, type StepFieldOption as cG, type StepFieldOptionTone as cH, type StepKind as cI, type StepPhase as cJ, type StepSignal as cK, type StepSignalWhen as cL, type StepState as cM, type StepStatus as cN, type SubagentBranchRecord as cO, type SubagentLaneInfo as cP, type SubmitBackgroundQueryOptions as cQ, type SubscribeParams as cR, type SyncTriggerResult as cS, TAG_KINDS as cT, TAG_NESTING_MAX_DEPTH as cU, type TagChange as cV, type TagFieldDefinition as cW, type TagGroup as cX, type TagKind as cY, type TagKindField as cZ, type TagKindSchema as c_, type RoomCreateBody as ca, type RoomQuery as cb, type RoomRead as cc, type RunProgress as cd, type RunStats as ce, type RunStep as cf, type RunWaitingOn as cg, SHAREPOINT_VENDORS as ch, type SSEEvent as ci, type SSEStreamCallbacks as cj, type SSEStreamOutcome as ck, type SSEStreamResult as cl, STEP_FIELD_OPTION_TONES as cm, STOP_ID_WAIT_MS as cn, STOP_REPEAT_WINDOW_MS as co, SUPPORTED_EXTENSIONS as cp, type ScopedTarget as cq, type SearchChunk as cr, type SecureMailCompose as cs, type SecureMailSend as ct, type SecureMailSender as cu, type SendBack as cv, type ShareRead as cw, type ShareRole as cx, type SkillSummary as cy, type SkippedFile as cz, Arbi as d, connectErrorMessage as d$, type TagListQuery as d0, type TagNode as d1, type TagResponse as d2, type TagScope as d3, type TagTreeRow as d4, type TaskPlan as d5, type TaskPlanStep as d6, type TaxQuoteResponse as d7, type Thread as d8, type ThreadsResponse as d9, type WorkspaceOpenResponse as dA, type WorkspaceResponse as dB, type WsConnection as dC, account as dD, agentconfig as dE, agents as dF, appendTranscriptionHints as dG, assistant as dH, authenticatedFetch as dI, bookPublicSlot as dJ, buildCitationChunkData as dK, buildDocNameMap as dL, buildDocumentTools as dM, buildFactsContextTool as dN, buildRetrievalChunkTool as dO, buildRetrievalFullContextTool as dP, buildRetrievalTocTool as dQ, buildTurnRequest as dR, calendar as dS, calls as dT, canTagHaveParent as dU, cancelPublicBooking as dV, capabilities as dW, chats as dX, composeConfiguration as dY, composeTools as dZ, computeRunStats as d_, type TimeSuggestion as da, type TurnRequest as db, type UpdateConversationRequest as dc, type UpdateFactRequest as dd, type UpdateWorkflowRequest as de, type UploadBatchResult as df, type UploadDirectOptions as dg, type UploadDirectResult as dh, type UploadDocumentsOptions as di, type UploadOptions as dj, type UploadProgressListener as dk, type UploadResult as dl, type UsageBreakdown as dm, type UserConnectorEntry as dn, type UserDailyUsageResponse as dp, type UserInfo as dq, WebSocketAuthError as dr, type WeeklyHoursSpec as ds, type WorkStatus as dt, type WorkflowAuthMode as du, type WorkflowResponse as dv, type WorkflowRunHistoryResponse as dw, type WorkflowRunResponse as dx, type WorkspaceConflict as dy, type WorkspaceContext as dz, ArbiApiError as e, instructions as e$, connectWebSocket as e0, connectWithReconnect as e1, connectors as e2, contacts as e3, continuityPrompt as e4, conversations as e5, countCitations as e6, createAuthenticatedClient as e7, createDocumentWaiter as e8, createIndexAssigner as e9, formatWorkspaceChoices as eA, formatWsMessage as eB, generateEncryptedWorkspaceKey as eC, generateNewWorkspaceKey as eD, getAgentStepLabel as eE, getAttachableRunId as eF, getChildTags as eG, getContextRemainingPercent as eH, getContextUsedPercent as eI, getContextUsedTokens as eJ, getCurrentStep as eK, getEligibleParentTags as eL, getErrorCode as eM, getErrorMessage as eN, getPublicBookingPage as eO, getRawWorkspaceKey as eP, getRunToAttach as eQ, getRunToCancel as eR, getStepDisplay as eS, getStepTool as eT, getSubagentBranchRecord as eU, getTagDescendantIds as eV, health as eW, houseTemplate as eX, hydrateAgentSteps as eY, identity as eZ, identityErrorCode as e_, databases as ea, defaultKindForFormat as eb, doctags as ec, documentTools as ed, documents as ee, estimateDraftTokens as ef, extractDocumentIdsFromMessages as eg, extractFactIdsFromMessages as eh, extractSubagentLanes as ei, facts as ej, files as ek, filterDocumentTags as el, filterSkills as em, findLeafForTaskMessage as en, findMainSiblingLeaf as eo, findReplyTarget as ep, findSubagentRunId as eq, flattenTagTree as er, formatAgentStepLabel as es, formatFileSize as et, formatGbp as eu, formatGbpPerMillionTokens as ev, formatItemLabel as ew, formatStreamSummary as ex, formatTokens as ey, formatUserName as ez, ArbiError as f, workspaces as f$, isAnnotationTag as f0, isConnectorVendorVisible as f1, isDriveSyncVendor as f2, isEntityTag as f3, isFlatKind as f4, isLabelTag as f5, isMailboxSyncVendor as f6, isNearAiUsageBudget as f7, isPresenceTag as f8, isSharePointVendor as f9, resolveSummary as fA, resolveWorkspace as fB, responses as fC, searchChunks as fD, secureMail as fE, selectFullContextDocument as fF, selectWorkspace as fG, selectWorkspaceById as fH, sessions as fI, settings as fJ, signatureRequests as fK, sliceToSubagentThread as fL, streamSSE as fM, stripCitationMarkdown as fN, subagentJobLabel as fO, summarizeCitations as fP, tagUseCount as fQ, tags as fR, tagsForScope as fS, tagsOfGroup as fT, topLevelAgentSteps as fU, uploadSkill as fV, usdToGbp as fW, work as fX, workflowSteps as fY, workflows as fZ, workspaceConflictOf as f_, isSharedSkill as fa, isTraceItem as fb, mail as fc, mcpTools as fd, mergeAgentSteps as fe, modelConnections as ff, notifications as fg, parseSSEEvents as fh, parseSlashCommand as fi, parseSlashTokenInProgress as fj, parseStructuredResponse as fk, performPasswordLogin as fl, performSigningKeyLogin as fm, performSsoDeviceFlowLogin as fn, pickMainThread as fo, profile as fp, progressFetch as fq, projects as fr, quotaExceededFrom as fs, quotaFromStreamError as ft, reduceOutputItem as fu, refusalReason as fv, requireData as fw, requireOk as fx, resolveAuth as fy, resolveCitations as fz, type ArbiErrorOptions as g, wouldCreateTagCycle as g0, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type BridgeTokensOptions as z };
|
|
17659
|
+
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FreeBusyEntry as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DiagnoseOptions as aC, type DirectModelUsage as aD, type DocInfo as aE, type DocInfoMap as aF, type DocNameMap as aG, type DocumentAutomationAction as aH, type DocumentListFields as aI, type DocumentListOrder as aJ, type DocumentSelector as aK, type DocumentWaiter as aL, type DocumentWaiterOptions as aM, type DriveSyncProgress as aN, type DriveSyncSummary as aO, DuplicateContactError as aP, ENTITY_KINDS as aQ, type EditScope as aR, type EntityKind as aS, type EventCreateBody as aT, type EventPatchBody as aU, FLAT_TAG_KINDS as aV, type FactResponse as aW, type FactSearchRequest as aX, type FactSearchResponse as aY, type FindTimeParams as aZ, type FormattedWsMessage as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondParams as b$, type FullContextSelection as b0, GOOGLE_VENDORS as b1, type HolidayCountry as b2, type HouseTemplateCandidate as b3, IMANAGE_VENDORS as b4, type IdentityErrorCode as b5, type IdentityPurchase as b6, type IdentityState as b7, type IdentityStatus as b8, type ImportResult as b9, type PlanWorkRequest as bA, type ProductResponse as bB, type ProjectAddonKind as bC, type ProjectAddonSettingsRequest as bD, type ProjectBudget as bE, type ProjectCheckoutRequest as bF, type ProjectConversationUsageResponse as bG, type ProjectCreateOptions as bH, type ProjectDetails as bI, type ProjectEventKind as bJ, type ProjectEventResponse as bK, type ProjectInvoicesResponse as bL, type ProjectNextPeriodAddonsRequest as bM, type ProjectPlanChangeRequest as bN, type ProjectQuoteRequest as bO, type ProjectResponse as bP, type ProjectUpdateRequest as bQ, type ProjectUsageResponse as bR, PublicBookingError as bS, type PublicBookingPage as bT, type QuotaExceeded as bU, type RaisedSignal as bV, type RawResponseEvent as bW, type ReconnectOptions as bX, type ReconnectableWsConnection as bY, type ResolvedCitation as bZ, type ResolvedRecipient as b_, type InvitationRead as ba, type JsonSchemaOutputFormat as bb, type LinkedRun as bc, type ListAllOptions as bd, type ListEventsParams as be, type ListFactsOptions as bf, type ListPaginatedOptions as bg, MAILBOX_SYNC_VENDORS as bh, MAX_RETRIEVE_DOC_IDS as bi, MICROSOFT_VENDORS as bj, type MailAttachment as bk, type MessageLevel as bl, type ModelConnection as bm, type OAuthAccountKind as bn, type OutputItemDone as bo, type OverlayItem as bp, type OverlayLayerName as bq, PRESENCE_KINDS as br, PROMPT_CONTEXT_CHARS as bs, type ParsedResponse as bt, type ParsedSlashCommand as bu, type ParsedStructuredResponse as bv, type PendingAuthResponse as bw, type PersonKey as bx, type PersonalConnectionInput as by, PlanStepsError as bz, type ActivityResponse as c, type TagKind as c$, type RespondPartstat as c0, type Response$1 as c1, type ResponseCreateRequest as c2, type ResponseCreateResult as c3, type ResponseHandle as c4, type ResponseSnapshot as c5, type ResponseStart as c6, type ResponseStartOptions as c7, ResponseStream as c8, type ResponseStreamEvent as c9, type ShareRole as cA, type SkillSummary as cB, type SkippedFile as cC, type SlackConnectionStatus as cD, type StepActionRequest as cE, type StepActivityEvent as cF, type StepAssignee as cG, type StepDisplay as cH, type StepField as cI, type StepFieldOption as cJ, type StepFieldOptionTone as cK, type StepKind as cL, type StepPhase as cM, type StepSignal as cN, type StepSignalWhen as cO, type StepState as cP, type StepStatus as cQ, type SubagentBranchRecord as cR, type SubagentLaneInfo as cS, type SubmitBackgroundQueryOptions as cT, type SubscribeParams as cU, type SyncTriggerResult as cV, TAG_KINDS as cW, TAG_NESTING_MAX_DEPTH as cX, type TagChange as cY, type TagFieldDefinition as cZ, type TagGroup as c_, type ResponseTools as ca, type RoomCreateBody as cb, type RoomQuery as cc, type RoomRead as cd, type RunProgress as ce, type RunStats as cf, type RunStep as cg, type RunWaitingOn as ch, SHAREPOINT_VENDORS as ci, type SSEEvent as cj, type SSEStreamCallbacks as ck, type SSEStreamOutcome as cl, type SSEStreamResult as cm, STEP_FIELD_OPTION_TONES as cn, STOP_ID_WAIT_MS as co, STOP_REPEAT_WINDOW_MS as cp, SUPPORTED_EXTENSIONS as cq, type ScopedTarget as cr, type SearchChunk as cs, type SecureMailCompose as ct, type SecureMailSend as cu, type SecureMailSender as cv, type SendBack as cw, type SetupDiagnostic as cx, type SetupReport as cy, type ShareRead as cz, Arbi as d, composeConfiguration as d$, type TagKindField as d0, type TagKindSchema as d1, type TagLinks as d2, type TagListQuery as d3, type TagNode as d4, type TagResponse as d5, type TagScope as d6, type TagTreeRow as d7, type TaskPlan as d8, type TaskPlanStep as d9, type WorkflowRunResponse as dA, type WorkspaceConflict as dB, type WorkspaceContext as dC, type WorkspaceOpenResponse as dD, type WorkspaceResponse as dE, type WsConnection as dF, account as dG, agentconfig as dH, agents as dI, appendTranscriptionHints as dJ, assistant as dK, authenticatedFetch as dL, bookPublicSlot as dM, buildCitationChunkData as dN, buildDocNameMap as dO, buildDocumentTools as dP, buildFactsContextTool as dQ, buildRetrievalChunkTool as dR, buildRetrievalFullContextTool as dS, buildRetrievalTocTool as dT, buildTurnRequest as dU, calendar as dV, calls as dW, canTagHaveParent as dX, cancelPublicBooking as dY, capabilities as dZ, chats as d_, type TaxQuoteResponse as da, type Thread as db, type ThreadsResponse as dc, type TimeSuggestion as dd, type TurnRequest as de, type UpdateConversationRequest as df, type UpdateFactRequest as dg, type UpdateWorkflowRequest as dh, type UploadBatchResult as di, type UploadDirectOptions as dj, type UploadDirectResult as dk, type UploadDocumentsOptions as dl, type UploadOptions as dm, type UploadProgressListener as dn, type UploadResult as dp, type UsageBreakdown as dq, type UserConnectorEntry as dr, type UserDailyUsageResponse as ds, type UserInfo as dt, WebSocketAuthError as du, type WeeklyHoursSpec as dv, type WorkStatus as dw, type WorkflowAuthMode as dx, type WorkflowResponse as dy, type WorkflowRunHistoryResponse as dz, ArbiApiError as e, houseTemplate as e$, composeTools as e0, computeRunStats as e1, connectErrorMessage as e2, connectWebSocket as e3, connectWithReconnect as e4, connectors as e5, contacts as e6, continuityPrompt as e7, conversations as e8, countCitations as e9, formatItemLabel as eA, formatStreamSummary as eB, formatTokens as eC, formatUserName as eD, formatWorkspaceChoices as eE, formatWsMessage as eF, generateEncryptedWorkspaceKey as eG, generateNewWorkspaceKey as eH, getAgentStepLabel as eI, getAttachableRunId as eJ, getChildTags as eK, getContextRemainingPercent as eL, getContextUsedPercent as eM, getContextUsedTokens as eN, getCurrentStep as eO, getEligibleParentTags as eP, getErrorCode as eQ, getErrorMessage as eR, getPublicBookingPage as eS, getRawWorkspaceKey as eT, getRunToAttach as eU, getRunToCancel as eV, getStepDisplay as eW, getStepTool as eX, getSubagentBranchRecord as eY, getTagDescendantIds as eZ, health as e_, createAuthenticatedClient as ea, createDocumentWaiter as eb, createIndexAssigner as ec, databases as ed, defaultKindForFormat as ee, diagnoseSetup as ef, doctags as eg, documentTools as eh, documents as ei, estimateDraftTokens as ej, extractDocumentIdsFromMessages as ek, extractFactIdsFromMessages as el, extractSubagentLanes as em, facts as en, files as eo, filterDocumentTags as ep, filterSkills as eq, findLeafForTaskMessage as er, findMainSiblingLeaf as es, findReplyTarget as et, findSubagentRunId as eu, flattenTagTree as ev, formatAgentStepLabel as ew, formatFileSize as ex, formatGbp as ey, formatGbpPerMillionTokens as ez, ArbiError as f, work as f$, hydrateAgentSteps as f0, identity as f1, identityErrorCode as f2, instructions as f3, isAnnotationTag as f4, isConnectorVendorVisible as f5, isDriveSyncVendor as f6, isEntityTag as f7, isFlatKind as f8, isLabelTag as f9, requireData as fA, requireOk as fB, resolveAuth as fC, resolveCitations as fD, resolveSummary as fE, resolveWorkspace as fF, responses as fG, searchChunks as fH, secureMail as fI, selectFullContextDocument as fJ, selectWorkspace as fK, selectWorkspaceById as fL, sessions as fM, settings as fN, signatureRequests as fO, sliceToSubagentThread as fP, streamSSE as fQ, stripCitationMarkdown as fR, subagentJobLabel as fS, summarizeCitations as fT, tagUseCount as fU, tags as fV, tagsForScope as fW, tagsOfGroup as fX, topLevelAgentSteps as fY, uploadSkill as fZ, usdToGbp as f_, isMailboxSyncVendor as fa, isNearAiUsageBudget as fb, isPresenceTag as fc, isSharePointVendor as fd, isSharedSkill as fe, isTraceItem as ff, mail as fg, mcpTools as fh, mergeAgentSteps as fi, modelConnections as fj, notifications as fk, parseSSEEvents as fl, parseSlashCommand as fm, parseSlashTokenInProgress as fn, parseStructuredResponse as fo, performPasswordLogin as fp, performSigningKeyLogin as fq, performSsoDeviceFlowLogin as fr, pickMainThread as fs, profile as ft, progressFetch as fu, projects as fv, quotaExceededFrom as fw, quotaFromStreamError as fx, reduceOutputItem as fy, refusalReason as fz, type ArbiErrorOptions as g, workflowSteps as g0, workflows as g1, workspaceConflictOf as g2, workspaces as g3, wouldCreateTagCycle as g4, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type BridgeTokensOptions as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -4639,6 +4639,158 @@ function buildChunkLookup(tools) {
|
|
|
4639
4639
|
return lookup;
|
|
4640
4640
|
}
|
|
4641
4641
|
|
|
4642
|
+
// src/diagnostics.ts
|
|
4643
|
+
async function diagnoseSetup(options) {
|
|
4644
|
+
const checks = [];
|
|
4645
|
+
const add = (check, status, message, hint) => checks.push({ check, status, message, ...hint ? { hint } : {} });
|
|
4646
|
+
let base;
|
|
4647
|
+
try {
|
|
4648
|
+
base = new URL(options.url);
|
|
4649
|
+
if (!["http:", "https:"].includes(base.protocol) || base.username || base.password || base.search || base.hash)
|
|
4650
|
+
throw new Error("Invalid API URL");
|
|
4651
|
+
} catch {
|
|
4652
|
+
add(
|
|
4653
|
+
"connection",
|
|
4654
|
+
"error",
|
|
4655
|
+
"Invalid API URL.",
|
|
4656
|
+
"Use an absolute HTTP(S) API URL without credentials, query or fragment."
|
|
4657
|
+
);
|
|
4658
|
+
return { ok: false, checks };
|
|
4659
|
+
}
|
|
4660
|
+
const request = (path2, authenticated = false) => (options.fetch ?? globalThis.fetch)(`${base.href.replace(/\/$/, "")}${path2}`, {
|
|
4661
|
+
method: "GET",
|
|
4662
|
+
credentials: "omit",
|
|
4663
|
+
redirect: "error",
|
|
4664
|
+
cache: "no-store",
|
|
4665
|
+
headers: authenticated && options.accessToken ? { Authorization: `Bearer ${options.accessToken}` } : {},
|
|
4666
|
+
signal: AbortSignal.timeout(options.timeoutMs ?? 1e4)
|
|
4667
|
+
});
|
|
4668
|
+
try {
|
|
4669
|
+
const config = await request("/config.json");
|
|
4670
|
+
if (!config.ok) {
|
|
4671
|
+
add(
|
|
4672
|
+
"connection",
|
|
4673
|
+
"error",
|
|
4674
|
+
`Deployment configuration returned HTTP ${config.status}.`,
|
|
4675
|
+
"Check the API base URL and proxy routing."
|
|
4676
|
+
);
|
|
4677
|
+
} else {
|
|
4678
|
+
const body = await config.json();
|
|
4679
|
+
add("connection", "ok", "Deployment configuration is reachable.");
|
|
4680
|
+
const domain = body?.deployment?.domain;
|
|
4681
|
+
if (typeof domain !== "string" || !domain) {
|
|
4682
|
+
add(
|
|
4683
|
+
"deployment",
|
|
4684
|
+
"warning",
|
|
4685
|
+
"The deployment did not advertise its key-derivation domain.",
|
|
4686
|
+
"Confirm deploymentDomain with the deployment owner, especially when using a proxy."
|
|
4687
|
+
);
|
|
4688
|
+
} else if (domain !== (options.deploymentDomain ?? base.hostname)) {
|
|
4689
|
+
add(
|
|
4690
|
+
"deployment",
|
|
4691
|
+
"error",
|
|
4692
|
+
"The configured key-derivation domain differs from the deployment.",
|
|
4693
|
+
"Set deploymentDomain to the deployment\u2019s domain; a proxy hostname is not the key-derivation domain."
|
|
4694
|
+
);
|
|
4695
|
+
} else add("deployment", "ok", "The key-derivation domain matches the deployment.");
|
|
4696
|
+
}
|
|
4697
|
+
} catch {
|
|
4698
|
+
add(
|
|
4699
|
+
"connection",
|
|
4700
|
+
"error",
|
|
4701
|
+
"Could not read deployment configuration.",
|
|
4702
|
+
"Check DNS, TLS, proxy routing and connectivity. In a browser, inspect DevTools for CORS, mixed-content or private-network denial; fetch alone cannot distinguish them."
|
|
4703
|
+
);
|
|
4704
|
+
}
|
|
4705
|
+
if (!options.accessToken) {
|
|
4706
|
+
add(
|
|
4707
|
+
"authentication",
|
|
4708
|
+
"warning",
|
|
4709
|
+
"No live session token is available.",
|
|
4710
|
+
"Sign in explicitly when online. An offline-unlocked identity is not a verified server session."
|
|
4711
|
+
);
|
|
4712
|
+
add("workspace", "skipped", "Workspace access was not checked.");
|
|
4713
|
+
add("permissions", "skipped", "Permissions were not checked.");
|
|
4714
|
+
} else {
|
|
4715
|
+
let authenticated = false;
|
|
4716
|
+
try {
|
|
4717
|
+
const user = await request("/v1/user/me", true);
|
|
4718
|
+
if (!user.ok) {
|
|
4719
|
+
add(
|
|
4720
|
+
"authentication",
|
|
4721
|
+
"error",
|
|
4722
|
+
`Session check returned HTTP ${user.status}.`,
|
|
4723
|
+
user.status === 401 ? "Sign in explicitly to renew the session." : "Check deployment access and account permissions."
|
|
4724
|
+
);
|
|
4725
|
+
add("workspace", "skipped", "Workspace access was not checked.");
|
|
4726
|
+
add("permissions", "skipped", "Permissions were not checked.");
|
|
4727
|
+
} else {
|
|
4728
|
+
const profile = await user.json();
|
|
4729
|
+
authenticated = true;
|
|
4730
|
+
add("authentication", "ok", "The server accepts the current session.");
|
|
4731
|
+
if (!options.workspaceId) {
|
|
4732
|
+
add(
|
|
4733
|
+
"workspace",
|
|
4734
|
+
"warning",
|
|
4735
|
+
"No current workspace is selected.",
|
|
4736
|
+
"Choose a workspace explicitly before reading documents or starting work."
|
|
4737
|
+
);
|
|
4738
|
+
add("permissions", "skipped", "Select a workspace to check membership.");
|
|
4739
|
+
} else {
|
|
4740
|
+
const response = await request("/v1/user/workspaces", true);
|
|
4741
|
+
if (!response.ok) {
|
|
4742
|
+
add(
|
|
4743
|
+
"workspace",
|
|
4744
|
+
"error",
|
|
4745
|
+
`Workspace membership check returned HTTP ${response.status}.`,
|
|
4746
|
+
"Check current account access; diagnosis does not switch workspaces or grant access."
|
|
4747
|
+
);
|
|
4748
|
+
add("permissions", "skipped", "Membership could not be verified.");
|
|
4749
|
+
} else {
|
|
4750
|
+
const workspaces = await response.json();
|
|
4751
|
+
const workspace = Array.isArray(workspaces) ? workspaces.find((w2) => w2.external_id === options.workspaceId) : void 0;
|
|
4752
|
+
if (!workspace) {
|
|
4753
|
+
add(
|
|
4754
|
+
"workspace",
|
|
4755
|
+
"error",
|
|
4756
|
+
"The selected workspace is not in this account\u2019s workspace list.",
|
|
4757
|
+
"Choose an accessible workspace explicitly. Project visibility does not imply workspace access."
|
|
4758
|
+
);
|
|
4759
|
+
add("permissions", "skipped", "Workspace permissions could not be verified.");
|
|
4760
|
+
} else {
|
|
4761
|
+
add(
|
|
4762
|
+
"workspace",
|
|
4763
|
+
"ok",
|
|
4764
|
+
"The selected workspace appears in the account\u2019s workspace list."
|
|
4765
|
+
);
|
|
4766
|
+
const member = workspace.users?.find(
|
|
4767
|
+
(entry) => entry.user?.external_id === profile.external_id
|
|
4768
|
+
);
|
|
4769
|
+
const role = ["owner", "collaborator", "guest"].includes(member?.role) ? member.role : null;
|
|
4770
|
+
add(
|
|
4771
|
+
"permissions",
|
|
4772
|
+
role ? "ok" : "warning",
|
|
4773
|
+
role ? `Workspace membership role: ${role}.` : "No direct membership role was reported.",
|
|
4774
|
+
"This is a membership check, not proof of a live workspace key or authorization for an agent task. Temporary grants, expiry and execution permissions remain enforced by the API."
|
|
4775
|
+
);
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
}
|
|
4780
|
+
} catch {
|
|
4781
|
+
add(
|
|
4782
|
+
authenticated ? "workspace" : "authentication",
|
|
4783
|
+
"error",
|
|
4784
|
+
authenticated ? "The workspace membership check could not finish." : "The session check could not finish.",
|
|
4785
|
+
"Check connectivity and browser network policy. No login, workspace switch or grant was attempted."
|
|
4786
|
+
);
|
|
4787
|
+
if (authenticated)
|
|
4788
|
+
add("permissions", "skipped", "Workspace membership could not be verified.");
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
return { ok: checks.every((c2) => c2.status === "ok"), checks };
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4642
4794
|
// src/operations/responses.ts
|
|
4643
4795
|
var responses_exports = {};
|
|
4644
4796
|
__export(responses_exports, {
|
|
@@ -11541,6 +11693,15 @@ var Arbi = class {
|
|
|
11541
11693
|
get session() {
|
|
11542
11694
|
return this.client?.session ?? null;
|
|
11543
11695
|
}
|
|
11696
|
+
/** Read-only setup checks; never signs in, opens a workspace or grants access. */
|
|
11697
|
+
diagnose() {
|
|
11698
|
+
return diagnoseSetup({
|
|
11699
|
+
url: this.options.url,
|
|
11700
|
+
deploymentDomain: this.options.deploymentDomain,
|
|
11701
|
+
accessToken: this.client?.session.getState().accessToken,
|
|
11702
|
+
workspaceId: this.currentWorkspaceId
|
|
11703
|
+
});
|
|
11704
|
+
}
|
|
11544
11705
|
/** Get the underlying ArbiClient (throws if not initialized). */
|
|
11545
11706
|
getClient() {
|
|
11546
11707
|
return this.requireClient();
|
|
@@ -14097,6 +14258,7 @@ exports.createAuthenticatedClient = createAuthenticatedClient;
|
|
|
14097
14258
|
exports.createIndexAssigner = createIndexAssigner;
|
|
14098
14259
|
exports.databases = databases_exports;
|
|
14099
14260
|
exports.defaultKindForFormat = defaultKindForFormat;
|
|
14261
|
+
exports.diagnoseSetup = diagnoseSetup;
|
|
14100
14262
|
exports.doctags = doctags_exports;
|
|
14101
14263
|
exports.documentTools = documentTools;
|
|
14102
14264
|
exports.documents = documents_exports;
|