@arbidocs/react 0.5.165 → 0.5.166
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/ai/MessageArtifactCard.js +16 -0
- package/dist/ai/MessageArtifactCard.js.map +2 -2
- package/dist/artifacts/artifact-kind.js +12 -1
- package/dist/artifacts/artifact-kind.js.map +2 -2
- package/dist/artifacts/index.cjs +58 -47
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.ts +3 -20
- package/dist/artifacts/index.js +3 -1
- package/dist/artifacts/index.js.map +2 -2
- package/dist/calls/livekit/index.cjs +51 -51
- package/dist/chat/ChatBubble.js +56 -65
- package/dist/chat/ChatBubble.js.map +2 -2
- package/dist/chat/open-document.js +4 -1
- package/dist/chat/open-document.js.map +2 -2
- package/dist/{chunk-XSJNRWLD.cjs → chunk-3DPOR5IR.cjs} +9 -6
- package/dist/chunk-3DPOR5IR.cjs.map +1 -0
- package/dist/{chunk-ZBRJEM25.cjs → chunk-4TWXQFHU.cjs} +70 -70
- package/dist/{chunk-ZBRJEM25.cjs.map → chunk-4TWXQFHU.cjs.map} +1 -1
- package/dist/{chunk-ZZBCZRA5.cjs → chunk-5QOZLKAY.cjs} +5 -2
- package/dist/chunk-5QOZLKAY.cjs.map +1 -0
- package/dist/{chunk-B3W7WDVY.cjs → chunk-BI4SYRLX.cjs} +73 -66
- package/dist/chunk-BI4SYRLX.cjs.map +1 -0
- package/dist/{chunk-ONAYOSSV.cjs → chunk-HRQS27DO.cjs} +39 -39
- package/dist/{chunk-ONAYOSSV.cjs.map → chunk-HRQS27DO.cjs.map} +1 -1
- package/dist/{chunk-DQODLWFX.cjs → chunk-KULS4YWP.cjs} +3 -3
- package/dist/{chunk-DQODLWFX.cjs.map → chunk-KULS4YWP.cjs.map} +1 -1
- package/dist/{chunk-V5WCKJEH.cjs → chunk-Q7BGWKHP.cjs} +44 -44
- package/dist/{chunk-V5WCKJEH.cjs.map → chunk-Q7BGWKHP.cjs.map} +1 -1
- package/dist/{chunk-352P2C4E.cjs → chunk-TX7UCN73.cjs} +14 -14
- package/dist/{chunk-352P2C4E.cjs.map → chunk-TX7UCN73.cjs.map} +1 -1
- package/dist/{chunk-WJIRX5MS.cjs → chunk-W4W75MSO.cjs} +134 -25
- package/dist/chunk-W4W75MSO.cjs.map +1 -0
- package/dist/chunk-WABJGKVA.cjs +246 -0
- package/dist/chunk-WABJGKVA.cjs.map +1 -0
- package/dist/databases.js.map +2 -2
- package/dist/directmessages/DmComposer.js +26 -10
- package/dist/directmessages/DmComposer.js.map +2 -2
- package/dist/directmessages/index.js +2 -0
- package/dist/directmessages/index.js.map +2 -2
- package/dist/directmessages/useChats.js +11 -0
- package/dist/directmessages/useChats.js.map +2 -2
- package/dist/document-tools/core.cjs +102 -102
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/index.cjs +104 -104
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/entities/DocumentEntity.js +8 -3
- package/dist/entities/DocumentEntity.js.map +2 -2
- package/dist/entities/EntityActionsMenu.js +53 -0
- package/dist/entities/EntityActionsMenu.js.map +7 -0
- package/dist/entities/EntityPill.js +50 -16
- package/dist/entities/EntityPill.js.map +2 -2
- package/dist/entities/ProjectEntity.js +4 -0
- package/dist/entities/ProjectEntity.js.map +2 -2
- package/dist/entities/TagEntity.js +1 -0
- package/dist/entities/TagEntity.js.map +2 -2
- package/dist/entities/UserEntity.js +25 -3
- package/dist/entities/UserEntity.js.map +2 -2
- package/dist/entities/links.js +9 -0
- package/dist/entities/links.js.map +7 -0
- package/dist/entities/reference-data.js +56 -0
- package/dist/entities/reference-data.js.map +7 -0
- package/dist/{file-shares.d-Bwy9k3Db.d.ts → file-shares.d-Dlt7pKRi.d.ts} +3 -0
- package/dist/host/config.js.map +2 -2
- package/dist/index.cjs +2537 -2449
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Dy_Pz6Vl.d.ts → index.d-BaZUctD1.d.ts} +34 -10
- package/dist/index.d.ts +164 -20
- package/dist/index.js +5 -0
- package/dist/index.js.map +2 -2
- package/dist/query-keys.js +3 -0
- package/dist/query-keys.js.map +2 -2
- package/dist/session/conversation-panels.js +5 -3
- package/dist/session/conversation-panels.js.map +2 -2
- package/dist/session/layout.js +5 -0
- package/dist/session/layout.js.map +2 -2
- package/dist/shell/index.cjs +40 -40
- package/dist/{stored-markdown.d-Bp18vrbr.d.ts → stored-markdown.d-BLQPny3e.d.ts} +21 -1
- package/dist/ui/index.cjs +168 -164
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/index.js.map +2 -2
- package/dist/viewers/AudioViewer.js +13 -3
- package/dist/viewers/AudioViewer.js.map +2 -2
- package/dist/viewers/MediaTranscriptPlayer.js +171 -0
- package/dist/viewers/MediaTranscriptPlayer.js.map +7 -0
- package/dist/viewers/VideoViewer.js +4 -11
- package/dist/viewers/VideoViewer.js.map +2 -2
- package/dist/viewers/index.cjs +16 -12
- package/dist/viewers/index.d.ts +17 -3
- package/dist/viewers/index.js +2 -0
- package/dist/viewers/index.js.map +2 -2
- package/package.json +3 -3
- package/dist/chunk-B3W7WDVY.cjs.map +0 -1
- package/dist/chunk-TMPDW7J5.cjs +0 -79
- package/dist/chunk-TMPDW7J5.cjs.map +0 -1
- package/dist/chunk-WJIRX5MS.cjs.map +0 -1
- package/dist/chunk-XSJNRWLD.cjs.map +0 -1
- package/dist/chunk-ZZBCZRA5.cjs.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @arbidocs/react \u2014 React hooks and provider for the ARBI SDK.\n *\n * Usage:\n * import { ArbiHost, useArbi, useWorkspaces, useDocuments } from '@arbidocs/react'\n * <ArbiHost config={{ arbi }}><App /></ArbiHost>\n *\n * Chat page controller (UI in @arbidocs/blocks/chat):\n * const chat = useConversation({ workspaceId })\n */\n\n// The host configuration: one `<ArbiHost config>` for every hook and kit\nexport {\n ArbiHost,\n mergeHostConfig,\n useArbiHost,\n type ArbiHostConfig,\n type ArbiHostConnection,\n type ArbiHostProps,\n type AccountHost,\n type MailHost,\n type CallsHost,\n type CallSlotMode,\n} from './host'\n// Features the user switches on or off (the user's settings, or this device): `useFeature(name)`\nexport {\n createLocalFeatureStore,\n readLocalFeature,\n useFeature,\n useFeatureCheck,\n useFeatureSwitch,\n type ArbiFeature,\n type ArbiFeatures,\n type FeatureSource,\n type FeatureSwitch,\n type LocalFeatureStore,\n type LocalFeatureStoreOptions,\n type UserSettingFlag,\n} from './host/features'\nexport { useHostConfigRecord, type HostConfigRecord } from './host/context'\nexport * from './host/assistant-copy'\n\n// The chat engine as one hook: threads, messages, grounding documents (UI: `ChatPage` in\n// @arbidocs/blocks/chat), and the scope a surface keeps its own open conversation in\nexport {\n useConversation,\n workflowStepOf,\n titleFromQuestion,\n type ArbiConversation,\n type ArbiChatCitation,\n type ArbiChatDocument,\n type ArbiChatMessage,\n type ArbiChatMessageStatus,\n type ArbiChatPassage,\n type ArbiChatRole,\n type ArbiChatThread,\n type UseConversationOptions,\n} from './chat/useConversation'\nexport { ConversationScope, type ConversationScopeProps } from './chat/ConversationScope'\n// An untitled saved-workflow run's name (its workflow and day), as every thread list shows it\nexport { workflowRunTitle } from './chat/workflow-run-titles'\n// The workspace a conversation is in (a fact saved from its answer goes there)\nexport { useConversationWorkspace } from './chat/useConversationWorkspace'\nexport { toChatCitations } from './chat/citations'\n// A conversation's threads in the cache, and their writers (the chat engine's and the events')\nexport * from './chat/conversation-cache'\nexport * from './chat/conversation-events'\nexport * from './chat/run-state'\nexport * from './chat/stream-handlers'\nexport * from './chat/mentions'\nexport * from './chat/open-document'\nexport * from './chat/chat-artifacts'\nexport * from './chat/thread-document'\nexport * from './chat/turn-flush'\nexport * from './chat/thread-binding'\nexport * from './chat/useThreadDocument'\nexport * from './chat/conversation-mentions'\nexport { resolveConfigModel } from './chat/config-model'\nexport { useDeleteMessage } from './chat/useDeleteMessage'\nexport {\n formatConfigValidationError,\n isFullConfig,\n useApplyChatModel,\n pendingChatModelSave,\n AUTO_CHAT_MODEL,\n useConfigSchema,\n useDeleteConfig,\n useSaveConfig,\n useSaveConfigField,\n type ConfigUpdate,\n} from './config/config-hooks'\nexport { useConversationTurn } from './chat/useConversationTurn'\nexport { useActiveConfigId } from './chat/active-config'\nexport { useConversationDocuments } from './chat/useConversationDocuments'\nexport { useDocumentAutoAdd } from './chat/useDocumentAutoAdd'\nexport { useAutoSendDraft } from './chat/useAutoSendDraft'\nexport { getOrphanedLastMessage, isOrphanedUserMessage } from './chat/orphaned'\nexport { buildPendingFirstTurn } from './chat/pendingFirstTurn'\nexport { useAnswerAgentQuestion, type AgentQuestionRef } from './chat/useAnswerAgentQuestion'\nexport * from './chat/turn-control'\nexport * from './chat/reply-target'\nexport * from './chat/useConversationActions'\nexport * from './chat/useConnectRunStream'\nexport * from './chat/useConversationData'\nexport * from './chat/useConversationSettings'\nexport * from './chat/useBranchNavigation'\nexport * from './chat/useAskAgain'\nexport * from './chat/useThinkingContent'\nexport * from './chat/useMessageTimer'\nexport * from './chat/useAgentRunControl'\nexport type { ArbiChatHost, ArbiThreadView } from './chat/host'\n\n// Chat message bubble (props-in; host injects markdown renderer + timestamp fmt)\nexport { ChatBubble, TypingIndicator, type ChatBubbleProps } from './chat/ChatBubble'\n\n// Context hook\nexport { useArbi, useDeploymentDomain } from './useArbi'\nexport { BOOT_GATE_TIMEOUT_MS, useBootTimeout } from './boot-timeout'\nexport {\n useInstallSkillPack,\n createSkillPack,\n type CreateSkillPackOptions,\n type SkillPack,\n type SkillPackEntry,\n type InstallSkillPackVariables,\n} from './useInstallSkillPack'\nexport {\n defineSkillPack,\n skillPackPrompt,\n type DefineSkillPackOptions,\n type DefinedSkillPack,\n type SkillPackField,\n type SkillPackSkill,\n type SkillPackSkillDefinition,\n} from './skill-pack'\n\n// Online or not: the network, the live connection and \"Work offline\" (run by the provider)\nexport {\n computeOnline,\n isWorkingOffline,\n setWorkOfflineIn,\n useReconnect,\n useWorkOffline,\n WORK_OFFLINE_VIEW,\n type ReconnectOutcome,\n} from './connectivity'\n\n// Shared WebSocket layer (one reconnecting socket, canonical store, typed\n// subscriptions, drop-in document sync \u2014 the real-time layer both apps share)\nexport {\n ArbiWebSocketProvider,\n useArbiWsContext,\n type ArbiWebSocketProviderProps,\n type ArbiWsHandlers,\n useArbiWebSocket,\n useArbiWsMessage,\n useArbiWsStatus,\n applyLiveUpdate,\n LIVE_UPDATE_TYPES,\n useArbiWsStore,\n DISMISSED_TASK_TTL_MS,\n type LiveTask,\n type ArbiWsState,\n type ArbiWsStatus,\n} from './websocket'\n\n// Schema-typed WebSocket messages + the discriminant type guard (so consumers\n// narrow handlers exactly like the rest of the SDK).\nexport { isMessageType } from '@arbidocs/client'\nexport type {\n WebSocketServerMessage,\n WsTaskUpdateMessage,\n WsBatchCompleteMessage,\n WsPresenceUpdateMessage,\n WsResponseCompleteMessage,\n WsConversationMessagePostedMessage,\n WsNotificationResponse,\n} from '@arbidocs/client'\n\n// Workspaces as the shell and the gallery show them (adapters, active workspace, open)\nexport * from './workspaces'\n\n// React Query hooks\nexport {\n useWorkspaces,\n useDocumentVersionList,\n useThumbnails,\n useParsedDocument,\n useConversations,\n useConversationThreads,\n useMessageDetails,\n useBuiltinCommands,\n useTags,\n useAgents,\n useDeleteAgents,\n useAssistantQuery,\n useHealth,\n useAvailableModels,\n useConfigs,\n useConfig,\n useActivity,\n useWorkspaceActivity,\n useProjects,\n useProjectUsage,\n useProjectInvoices,\n useUserUsageToday,\n useCurrentUser,\n useCanCreateProjects,\n useCanCreateWorkspaces,\n useProjectCreationDenial,\n useBoxRole,\n PROJECT_CREATION_DENIED_REASON,\n} from './hooks'\nexport type { ProjectCreationRefusal } from './hooks'\n// The one query-key factory (and its prefix match): every key the packages and hosts use.\nexport { arbiQueryKeys, arbiMutationKeys, isUnderQueryKey } from './query-keys'\n\n// Workspace facts\nexport {\n useFacts,\n useCreateFact,\n useCreateFacts,\n useUpdateFact,\n useDeleteFact,\n useSearchFacts,\n type FactListFilter,\n} from './facts'\nexport {\n useFactsSearch,\n FACTS_SEARCH_VIEW,\n type FactSearchHit,\n type FactsSearch,\n type FactsSearchState,\n type UseFactsSearchOptions,\n} from './facts-search'\n\n// Work (conversations with a status), workflows, agents, skills (mutations invalidate through arbiQueryKeys)\nexport {\n useUpdateConversation,\n useCreateWork,\n useRunConversation,\n usePlanWork,\n useActOnStep,\n useConversationPendingAuth,\n useWorkflows,\n useWorkflowRuns,\n useCreateWorkflow,\n useInvalidateWorkflows,\n useUpdateWorkflow,\n useDeleteWorkflow,\n useRunWorkflow,\n useSavedWorkflow,\n useStartWorkflow,\n useCreateAgent,\n useGenerateAgentAvatar,\n useAuthorizeLimits,\n useMcpTools,\n useAgentConfig,\n useAgentModels,\n useSaveAgentConfig,\n useAgentWorkspaces,\n useGrantAgentAccess,\n useRevokeAgentAccess,\n useSkills,\n useSkillSource,\n useDeleteSkill,\n useSaveSkill,\n useSetSkillVisibility,\n useUploadSkillFiles,\n useConversationActivity,\n useConversationItems,\n useConversationIsShared,\n useWorkItems,\n useWorkspaceRole,\n useCanEditShared,\n useIsWorkspaceOwner,\n useStartTaskQuery,\n useDeleteConversation,\n useConversationSearch,\n TaskThreadPendingError,\n isActivityKey,\n invalidateConversationActivity,\n type StartTaskQuery,\n type AgentConfigSections,\n type SaveAgentConfigVars,\n type AgentAccessMode,\n type GrantAgentAccessVars,\n} from './workforce'\n\n// The workspace's conversation list in the cache: its writers (patch, add, remove) and readers\nexport * from './conversation-list'\n\n// Databases: user-defined tables of the open workspace (reads, writes, imports, export)\nexport * from './databases'\n// Saved table views (`/v1/views`): a grid's columns, filters and sort, private or shared; read by charts too\nexport {\n DOCUMENTS_VIEW_TARGET,\n filterText,\n legacySpec,\n migrateLegacyTableViews,\n tableViewTarget,\n useCreateTableView,\n useDeleteTableView,\n useMigrateLegacyTableViews,\n useShareTableView,\n useTableViewsQuery,\n useTableView,\n useTableViewRows,\n useWorkspaceTableViews,\n useUpdateTableView,\n type CreateTableViewVars,\n type LegacyTableView,\n type LegacyViewsWriter,\n type TableViewFilter,\n type TableViewRecord,\n type TableViewRows,\n type TableViewSpec,\n type TableViewTable,\n TABLE_VIEW_ROWS_PAGE,\n} from './table-views'\n// Datasets: data source adapters (usage, documents, threads, projects, databases) returning one\n// normalized dataset, the chart / panel / dashboard specs, and saved dashboards\nexport * from './datasets'\n\n// Tags: the writes (patching the workspace's list), and kinds' fields (a table's columns)\nexport {\n useCreateTag,\n useIsCreatingTag,\n useUpdateTag,\n useDeleteTag,\n useExtractEntities,\n useTagKindSchema,\n useUpdateTagKindSchema,\n useSetTagValues,\n useInvalidateTagData,\n invalidateTagData,\n invalidateTagTables,\n patchWorkspaceTags,\n type CreateTagInput,\n} from './tags'\n\n// Cited passages' text, read live from their documents' parsed content\nexport {\n usePassageQuotes,\n type PassageResolvers,\n type QuoteResolver,\n type OrderResolver,\n} from './documents/usePassageQuotes'\n\n// The shared React Query client, and the offline cache it may keep on this device (opt in)\nexport {\n createArbiQueryClient,\n type ArbiQueryClient,\n type ArbiQueryClientOptions,\n} from './query-client'\nexport { claimOfflineQueue, type ArbiQueryPersistOptions } from './query-persist'\n// Offline writes kept across a reload (opt in: a host with a persisted query cache)\nexport { registerArbiMutationDefaults, isReplayableArbiMutation } from './offline'\n// Telling \"no connection\" from a server's answer (a request that never reached the server)\nexport { isNetworkFailure } from './offline-store/network'\n\n// Project details, their events, and spend by conversation and step\nexport {\n useOwnedProjectsUsage,\n useUpdateProjectFields,\n useProjectConversationUsage,\n} from './projects'\nexport * from './billing'\n// Storage: usage by project, kind and workspace, the largest items, Recently deleted, trash actions\nexport * from './storage'\n\n// Contacts\nexport {\n useContacts,\n useReferralSummary,\n useInviteContacts,\n useCreateContact,\n useUpdateContact,\n useLinkContact,\n useImportContacts,\n useDeleteContact,\n useSearchContacts,\n} from './contacts'\n// The people directory: who an account id or an address is (contacts, workspace members, agents)\nexport {\n peopleDirectory,\n personOfUser,\n usePeople,\n usePeopleSearch,\n type PeopleDirectory,\n type Person,\n type UserResponse,\n} from './people'\n\n// The Word house template a workspace may choose\nexport {\n useHouseTemplateCandidates,\n useSetWorkspaceHouseTemplate,\n useSetDeploymentHouseTemplate,\n supportsHouseTemplates,\n workspaceHouseTemplateId,\n isDeploymentAdmin,\n} from './house-template'\n\n// The main agent's model connections (box and personal) and the direct model usage\nexport {\n useModelConnections,\n useDirectModelUsage,\n useSaveModelConnection,\n useRemoveModelConnection,\n useUnlockModelConnections,\n} from './model-connections'\nexport type {\n ConnectionModel,\n DirectModelUsage,\n ModelConnection,\n PersonalConnectionInput,\n} from '@arbidocs/sdk/browser'\n\n// The workspace Assistant: its brief and what it did with each arrival\nexport {\n useAssistantBrief,\n useUpdateAssistantBrief,\n useAssistantArrivals,\n useAssistantStatus,\n useMarkArrivalWrong,\n useMarkMessageDraftSent,\n useInvalidateAssistant,\n} from './workspace-assistant'\nexport type { AssistantArrival, AssistantBrief, AssistantBriefInput } from '@arbidocs/sdk/browser'\n\n// Account and settings: profile, email, password, notification preferences, sessions, deletion\nexport * from './account'\n\n// Mail: the native inbox and connected accounts (client, provider, hooks)\nexport * from './mail'\n\n// Calendar: hooks over arbi.calendar, and the host's offline storage and connector OAuth\nexport * from './calendar'\n// Calls without LiveKit: data, the call session and events, actions, meeting chats, recordings\nexport * from './calls'\n\n// AI usage is reported in \u00A3 (ex VAT): one formatter for every amount\nexport {\n formatGbp,\n formatGbpPerMillionTokens,\n usdToGbp,\n DEFAULT_AI_USD_PER_GBP,\n} from '@arbidocs/sdk/browser'\nexport { isUsageMetered, type UsageTotals } from './usage-metered'\n\n// Re-export key types from core (browser-safe)\nexport { Arbi, type ArbiOptions, type AskRequest, type AskHandlers } from '@arbidocs/sdk/browser'\nexport type {\n ActivityKind,\n ActivityResponse,\n AuthMode,\n ConversationResponse,\n CreateWorkRequest,\n CreateWorkflowRequest,\n PendingAuthResponse,\n PlanWorkRequest,\n TaskPlan,\n UpdateConversationRequest,\n UpdateWorkflowRequest,\n WorkStatus,\n WorkflowAuthMode,\n WorkflowResponse,\n WorkflowRunResponse,\n SkillSummary,\n FactResponse,\n CreateFactRequest,\n FactSearchRequest,\n FactSearchResponse,\n ProjectUsageResponse,\n ProjectInvoicesResponse,\n UserDailyUsageResponse,\n LoginProfile,\n} from '@arbidocs/sdk/browser'\nexport type { SSEStreamResult, SSEStreamCallbacks } from '@arbidocs/sdk/browser'\nexport type {\n ResponseCreatedEvent,\n ResponseCompletedEvent,\n ResponseFailedEvent,\n ResponseOutputTextDeltaEvent,\n ResponseOutputTextDoneEvent,\n ResponseOutputItemAddedEvent,\n ResponseOutputItemDoneEvent,\n ResponseContentPartAddedEvent,\n ResponseUsage,\n OutputTokensDetails,\n AgentStepEvent,\n UserInputRequestEvent,\n ArtifactEvent,\n UserMessageEvent,\n MessageMetadataPayload,\n SSEStreamStartData,\n} from '@arbidocs/sdk/browser'\nexport { ArbiError } from '@arbidocs/sdk/browser'\n\n// \u2500\u2500 UI \"lego\" (promoted from the ARBI app; consumer supplies Tailwind + tokens) \u2500\u2500\n\n// shadcn UI primitives\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './ui/tooltip'\nexport { IconToggle, type IconToggleProps } from './ui/IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './ui/VisibilityToggle'\nexport { VerifiedToggle } from './ui/VerifiedToggle'\nexport { formatFriendlyDate, formatCompactLastSeen } from './lib/format-friendly-date'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from './lib/markdown-to-text'\nexport { DebouncedInput, type DebouncedInputProps } from './ui/DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './ui/DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './ui/portal-container'\nexport { Avatar, AvatarImage, AvatarFallback } from './ui/avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './ui/badge'\nexport { Button, buttonVariants, type ButtonProps } from './ui/button'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './ui/hover-card'\nexport {\n Card,\n CardHeader,\n CardTitle,\n CardDescription,\n CardContent,\n CardFooter,\n cardVariants,\n} from './ui/card'\nexport type { CardProps } from './ui/card'\nexport { Input, type InputProps } from './ui/input'\nexport { Label } from './ui/label'\nexport { Separator } from './ui/separator'\nexport { Textarea, type TextareaProps } from './ui/textarea'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible'\nexport { Progress } from './ui/progress'\nexport { ScrollArea, ScrollBar } from './ui/scroll-area'\nexport { RadioGroup, RadioGroupItem } from './ui/radio-group'\nexport { Checkbox } from './ui/checkbox'\nexport { Switch } from './ui/switch'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './ui/table'\nexport { Slider } from './ui/slider'\nexport { Toggle, toggleVariants } from './ui/toggle'\nexport { ToggleGroup, ToggleGroupItem } from './ui/toggle-group'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './ui/dialog'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './ui/popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './ui/mark-menu'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './ui/dropdown-menu'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './ui/select'\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n} from './ui/command'\n\n// \u2500\u2500 AI kit: mid-level, token-neutral building blocks for AI-native apps \u2500\u2500\n// (streaming answers, artifact canvas, redline, doc Q&A)\nexport * from './ai'\n\n// Document search: the one search hook, its session and the label-the-results write.\nexport * from './search'\n\n// File-type icons\nexport * from './icons'\n\n// Decoupled entity pills + canonical entity registry\nexport * from './entities'\n\n// Shared notification & activity presentation layer\nexport * from './notifications'\nexport * from './connectors'\n\n// Direct-message block kit (real E2E-encrypted messenger)\nexport * from './directmessages'\n\n// Image crop kit (frame any uploaded/generated image; avatar is a preset)\nexport * from './imagecrop'\n\n// User menu kit (topbar account avatar dropdown)\nexport * from './usermenu'\n\n// Documents: the list, its writes, uploads, and what a host adds\nexport * from './documents'\n\n// People: display name, initials, avatar colour\nexport * from './users'\n\n// Session state shared by every block (workspace, conversation, viewing document, \u2026)\nexport * from './session'\n\n// Remote control: its session-only consent state and the `remote_control` websocket message\nexport * from './remote-control'\n\n// Class-name helper\nexport { cn } from './lib/utils'\n\nexport {\n useAgentSession,\n useAgentChats,\n useStartAgentSession,\n useCloseAgentSession,\n} from './workforce'\n\n// The documents an entity extraction is running on, until the live connection says it is done\nexport {\n finishEntityExtraction,\n startEntityExtraction,\n useEntityExtractionDocIds,\n} from './entity-extraction'\n\nexport * from './support'\n\n// Heavy components in their own chunk, loaded the first time one renders.\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from './lazy-chunk'\n"],
|
|
5
|
-
"mappings": "AAYA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,E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Gd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,SAAS,UAAU;AAEnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,cAAc;AAGd,SAAS,WAAW,eAAe,qBAAqC;",
|
|
4
|
+
"sourcesContent": ["/**\n * @arbidocs/react \u2014 React hooks and provider for the ARBI SDK.\n *\n * Usage:\n * import { ArbiHost, useArbi, useWorkspaces, useDocuments } from '@arbidocs/react'\n * <ArbiHost config={{ arbi }}><App /></ArbiHost>\n *\n * Chat page controller (UI in @arbidocs/blocks/chat):\n * const chat = useConversation({ workspaceId })\n */\n\n// The host configuration: one `<ArbiHost config>` for every hook and kit\nexport {\n ArbiHost,\n mergeHostConfig,\n useArbiHost,\n type ArbiHostConfig,\n type ArbiHostConnection,\n type ArbiHostProps,\n type AccountHost,\n type MailHost,\n type CallsHost,\n type CallSlotMode,\n} from './host'\n// Features the user switches on or off (the user's settings, or this device): `useFeature(name)`\nexport {\n createLocalFeatureStore,\n readLocalFeature,\n useFeature,\n useFeatureCheck,\n useFeatureSwitch,\n type ArbiFeature,\n type ArbiFeatures,\n type FeatureSource,\n type FeatureSwitch,\n type LocalFeatureStore,\n type LocalFeatureStoreOptions,\n type UserSettingFlag,\n} from './host/features'\nexport { useHostConfigRecord, type HostConfigRecord } from './host/context'\nexport * from './host/assistant-copy'\n\n// The chat engine as one hook: threads, messages, grounding documents (UI: `ChatPage` in\n// @arbidocs/blocks/chat), and the scope a surface keeps its own open conversation in\nexport {\n useConversation,\n workflowStepOf,\n titleFromQuestion,\n type ArbiConversation,\n type ArbiChatCitation,\n type ArbiChatDocument,\n type ArbiChatMessage,\n type ArbiChatMessageStatus,\n type ArbiChatPassage,\n type ArbiChatRole,\n type ArbiChatThread,\n type UseConversationOptions,\n} from './chat/useConversation'\nexport { ConversationScope, type ConversationScopeProps } from './chat/ConversationScope'\n// An untitled saved-workflow run's name (its workflow and day), as every thread list shows it\nexport { workflowRunTitle } from './chat/workflow-run-titles'\n// The workspace a conversation is in (a fact saved from its answer goes there)\nexport { useConversationWorkspace } from './chat/useConversationWorkspace'\nexport { toChatCitations } from './chat/citations'\n// A conversation's threads in the cache, and their writers (the chat engine's and the events')\nexport * from './chat/conversation-cache'\nexport * from './chat/conversation-events'\nexport * from './chat/run-state'\nexport * from './chat/stream-handlers'\nexport * from './chat/mentions'\nexport * from './chat/open-document'\nexport * from './chat/chat-artifacts'\nexport * from './chat/thread-document'\nexport * from './chat/turn-flush'\nexport * from './chat/thread-binding'\nexport * from './chat/useThreadDocument'\nexport * from './chat/conversation-mentions'\nexport { resolveConfigModel } from './chat/config-model'\nexport { useDeleteMessage } from './chat/useDeleteMessage'\nexport {\n formatConfigValidationError,\n isFullConfig,\n useApplyChatModel,\n pendingChatModelSave,\n AUTO_CHAT_MODEL,\n useConfigSchema,\n useDeleteConfig,\n useSaveConfig,\n useSaveConfigField,\n type ConfigUpdate,\n} from './config/config-hooks'\nexport { useConversationTurn } from './chat/useConversationTurn'\nexport { useActiveConfigId } from './chat/active-config'\nexport { useConversationDocuments } from './chat/useConversationDocuments'\nexport { useDocumentAutoAdd } from './chat/useDocumentAutoAdd'\nexport { useAutoSendDraft } from './chat/useAutoSendDraft'\nexport { getOrphanedLastMessage, isOrphanedUserMessage } from './chat/orphaned'\nexport { buildPendingFirstTurn } from './chat/pendingFirstTurn'\nexport { useAnswerAgentQuestion, type AgentQuestionRef } from './chat/useAnswerAgentQuestion'\nexport * from './chat/turn-control'\nexport * from './chat/reply-target'\nexport * from './chat/useConversationActions'\nexport * from './chat/useConnectRunStream'\nexport * from './chat/useConversationData'\nexport * from './chat/useConversationSettings'\nexport * from './chat/useBranchNavigation'\nexport * from './chat/useAskAgain'\nexport * from './chat/useThinkingContent'\nexport * from './chat/useMessageTimer'\nexport * from './chat/useAgentRunControl'\nexport type { ArbiChatHost, ArbiThreadView } from './chat/host'\n\n// Chat message bubble (props-in; host injects markdown renderer + timestamp fmt)\nexport { ChatBubble, TypingIndicator, type ChatBubbleProps } from './chat/ChatBubble'\n\n// Context hook\nexport { useArbi, useDeploymentDomain } from './useArbi'\nexport { BOOT_GATE_TIMEOUT_MS, useBootTimeout } from './boot-timeout'\nexport {\n useInstallSkillPack,\n createSkillPack,\n type CreateSkillPackOptions,\n type SkillPack,\n type SkillPackEntry,\n type InstallSkillPackVariables,\n} from './useInstallSkillPack'\nexport {\n defineSkillPack,\n skillPackPrompt,\n type DefineSkillPackOptions,\n type DefinedSkillPack,\n type SkillPackField,\n type SkillPackSkill,\n type SkillPackSkillDefinition,\n} from './skill-pack'\n\n// Online or not: the network, the live connection and \"Work offline\" (run by the provider)\nexport {\n computeOnline,\n isWorkingOffline,\n setWorkOfflineIn,\n useReconnect,\n useWorkOffline,\n WORK_OFFLINE_VIEW,\n type ReconnectOutcome,\n} from './connectivity'\n\n// Shared WebSocket layer (one reconnecting socket, canonical store, typed\n// subscriptions, drop-in document sync \u2014 the real-time layer both apps share)\nexport {\n ArbiWebSocketProvider,\n useArbiWsContext,\n type ArbiWebSocketProviderProps,\n type ArbiWsHandlers,\n useArbiWebSocket,\n useArbiWsMessage,\n useArbiWsStatus,\n applyLiveUpdate,\n LIVE_UPDATE_TYPES,\n useArbiWsStore,\n DISMISSED_TASK_TTL_MS,\n type LiveTask,\n type ArbiWsState,\n type ArbiWsStatus,\n} from './websocket'\n\n// Schema-typed WebSocket messages + the discriminant type guard (so consumers\n// narrow handlers exactly like the rest of the SDK).\nexport { isMessageType } from '@arbidocs/client'\nexport type {\n WebSocketServerMessage,\n WsTaskUpdateMessage,\n WsBatchCompleteMessage,\n WsPresenceUpdateMessage,\n WsResponseCompleteMessage,\n WsConversationMessagePostedMessage,\n WsNotificationResponse,\n} from '@arbidocs/client'\n\n// Workspaces as the shell and the gallery show them (adapters, active workspace, open)\nexport * from './workspaces'\n\n// React Query hooks\nexport {\n useWorkspaces,\n useDocumentVersionList,\n useThumbnails,\n useParsedDocument,\n useConversations,\n useConversationThreads,\n useMessageDetails,\n useBuiltinCommands,\n useTags,\n useAgents,\n useDeleteAgents,\n useAssistantQuery,\n useHealth,\n useAvailableModels,\n useConfigs,\n useConfig,\n useActivity,\n useWorkspaceActivity,\n useProjects,\n useProjectUsage,\n useProjectInvoices,\n useUserUsageToday,\n useCurrentUser,\n useCanCreateProjects,\n useCanCreateWorkspaces,\n useProjectCreationDenial,\n useBoxRole,\n PROJECT_CREATION_DENIED_REASON,\n} from './hooks'\nexport type { ProjectCreationRefusal } from './hooks'\n// The one query-key factory (and its prefix match): every key the packages and hosts use.\nexport { arbiQueryKeys, arbiMutationKeys, isUnderQueryKey } from './query-keys'\n\n// Workspace facts\nexport {\n useFacts,\n useCreateFact,\n useCreateFacts,\n useUpdateFact,\n useDeleteFact,\n useSearchFacts,\n type FactListFilter,\n} from './facts'\nexport {\n useFactsSearch,\n FACTS_SEARCH_VIEW,\n type FactSearchHit,\n type FactsSearch,\n type FactsSearchState,\n type UseFactsSearchOptions,\n} from './facts-search'\n\n// Work (conversations with a status), workflows, agents, skills (mutations invalidate through arbiQueryKeys)\nexport {\n useUpdateConversation,\n useCreateWork,\n useRunConversation,\n usePlanWork,\n useActOnStep,\n useConversationPendingAuth,\n useWorkflows,\n useWorkflowRuns,\n useCreateWorkflow,\n useInvalidateWorkflows,\n useUpdateWorkflow,\n useDeleteWorkflow,\n useRunWorkflow,\n useSavedWorkflow,\n useStartWorkflow,\n useCreateAgent,\n useGenerateAgentAvatar,\n useAuthorizeLimits,\n useMcpTools,\n useAgentConfig,\n useAgentModels,\n useSaveAgentConfig,\n useAgentWorkspaces,\n useGrantAgentAccess,\n useRevokeAgentAccess,\n useSkills,\n useSkillSource,\n useDeleteSkill,\n useSaveSkill,\n useSetSkillVisibility,\n useUploadSkillFiles,\n useConversationActivity,\n useConversationItems,\n useConversationIsShared,\n useWorkItems,\n useWorkspaceRole,\n useCanEditShared,\n useIsWorkspaceOwner,\n useStartTaskQuery,\n useDeleteConversation,\n useConversationSearch,\n TaskThreadPendingError,\n isActivityKey,\n invalidateConversationActivity,\n type StartTaskQuery,\n type AgentConfigSections,\n type SaveAgentConfigVars,\n type AgentAccessMode,\n type GrantAgentAccessVars,\n} from './workforce'\n\n// The workspace's conversation list in the cache: its writers (patch, add, remove) and readers\nexport * from './conversation-list'\n\n// Databases: user-defined tables of the open workspace (reads, writes, imports, export)\nexport * from './databases'\n// Saved table views (`/v1/views`): a grid's columns, filters and sort, private or shared; read by charts too\nexport {\n DOCUMENTS_VIEW_TARGET,\n filterText,\n legacySpec,\n migrateLegacyTableViews,\n tableViewTarget,\n useCreateTableView,\n useDeleteTableView,\n useMigrateLegacyTableViews,\n useShareTableView,\n useTableViewsQuery,\n useTableView,\n useTableViewRows,\n useWorkspaceTableViews,\n useUpdateTableView,\n type CreateTableViewVars,\n type LegacyTableView,\n type LegacyViewsWriter,\n type TableViewFilter,\n type TableViewRecord,\n type TableViewRows,\n type TableViewSpec,\n type TableViewTable,\n TABLE_VIEW_ROWS_PAGE,\n} from './table-views'\n// Datasets: data source adapters (usage, documents, threads, projects, databases) returning one\n// normalized dataset, the chart / panel / dashboard specs, and saved dashboards\nexport * from './datasets'\n\n// Tags: the writes (patching the workspace's list), and kinds' fields (a table's columns)\nexport {\n useCreateTag,\n useIsCreatingTag,\n useUpdateTag,\n useDeleteTag,\n useExtractEntities,\n useTagKindSchema,\n useUpdateTagKindSchema,\n useSetTagValues,\n useInvalidateTagData,\n invalidateTagData,\n invalidateTagTables,\n patchWorkspaceTags,\n type CreateTagInput,\n} from './tags'\n\n// Cited passages' text, read live from their documents' parsed content\nexport {\n usePassageQuotes,\n type PassageResolvers,\n type QuoteResolver,\n type OrderResolver,\n} from './documents/usePassageQuotes'\n\n// The shared React Query client, and the offline cache it may keep on this device (opt in)\nexport {\n createArbiQueryClient,\n type ArbiQueryClient,\n type ArbiQueryClientOptions,\n} from './query-client'\nexport { claimOfflineQueue, type ArbiQueryPersistOptions } from './query-persist'\n// Offline writes kept across a reload (opt in: a host with a persisted query cache)\nexport { registerArbiMutationDefaults, isReplayableArbiMutation } from './offline'\n// Telling \"no connection\" from a server's answer (a request that never reached the server)\nexport { isNetworkFailure } from './offline-store/network'\n\n// Project details, their events, and spend by conversation and step\nexport {\n useOwnedProjectsUsage,\n useUpdateProjectFields,\n useProjectConversationUsage,\n} from './projects'\nexport * from './billing'\n// Storage: usage by project, kind and workspace, the largest items, Recently deleted, trash actions\nexport * from './storage'\n\n// Contacts\nexport {\n useContacts,\n useReferralSummary,\n useInviteContacts,\n useCreateContact,\n useUpdateContact,\n useLinkContact,\n useImportContacts,\n useDeleteContact,\n useSearchContacts,\n} from './contacts'\n// The people directory: who an account id or an address is (contacts, workspace members, agents)\nexport {\n peopleDirectory,\n personOfUser,\n usePeople,\n usePeopleSearch,\n type PeopleDirectory,\n type Person,\n type UserResponse,\n} from './people'\n\n// The Word house template a workspace may choose\nexport {\n useHouseTemplateCandidates,\n useSetWorkspaceHouseTemplate,\n useSetDeploymentHouseTemplate,\n supportsHouseTemplates,\n workspaceHouseTemplateId,\n isDeploymentAdmin,\n} from './house-template'\n\n// The main agent's model connections (box and personal) and the direct model usage\nexport {\n useModelConnections,\n useDirectModelUsage,\n useSaveModelConnection,\n useRemoveModelConnection,\n useUnlockModelConnections,\n} from './model-connections'\nexport type {\n ConnectionModel,\n DirectModelUsage,\n ModelConnection,\n PersonalConnectionInput,\n} from '@arbidocs/sdk/browser'\n\n// The workspace Assistant: its brief and what it did with each arrival\nexport {\n useAssistantBrief,\n useUpdateAssistantBrief,\n useAssistantArrivals,\n useAssistantStatus,\n useMarkArrivalWrong,\n useMarkMessageDraftSent,\n useInvalidateAssistant,\n} from './workspace-assistant'\nexport type { AssistantArrival, AssistantBrief, AssistantBriefInput } from '@arbidocs/sdk/browser'\n\n// Account and settings: profile, email, password, notification preferences, sessions, deletion\nexport * from './account'\n\n// Mail: the native inbox and connected accounts (client, provider, hooks)\nexport * from './mail'\n\n// Calendar: hooks over arbi.calendar, and the host's offline storage and connector OAuth\nexport * from './calendar'\n// Calls without LiveKit: data, the call session and events, actions, meeting chats, recordings\nexport * from './calls'\n\n// AI usage is reported in \u00A3 (ex VAT): one formatter for every amount\nexport {\n formatGbp,\n formatGbpPerMillionTokens,\n usdToGbp,\n DEFAULT_AI_USD_PER_GBP,\n} from '@arbidocs/sdk/browser'\nexport { isUsageMetered, type UsageTotals } from './usage-metered'\n\n// Re-export key types from core (browser-safe)\nexport { Arbi, type ArbiOptions, type AskRequest, type AskHandlers } from '@arbidocs/sdk/browser'\nexport type {\n ActivityKind,\n ActivityResponse,\n AuthMode,\n ConversationResponse,\n CreateWorkRequest,\n CreateWorkflowRequest,\n PendingAuthResponse,\n PlanWorkRequest,\n TaskPlan,\n UpdateConversationRequest,\n UpdateWorkflowRequest,\n WorkStatus,\n WorkflowAuthMode,\n WorkflowResponse,\n WorkflowRunResponse,\n SkillSummary,\n FactResponse,\n CreateFactRequest,\n FactSearchRequest,\n FactSearchResponse,\n ProjectUsageResponse,\n ProjectInvoicesResponse,\n UserDailyUsageResponse,\n LoginProfile,\n} from '@arbidocs/sdk/browser'\nexport type { SSEStreamResult, SSEStreamCallbacks } from '@arbidocs/sdk/browser'\nexport type {\n ResponseCreatedEvent,\n ResponseCompletedEvent,\n ResponseFailedEvent,\n ResponseOutputTextDeltaEvent,\n ResponseOutputTextDoneEvent,\n ResponseOutputItemAddedEvent,\n ResponseOutputItemDoneEvent,\n ResponseContentPartAddedEvent,\n ResponseUsage,\n OutputTokensDetails,\n AgentStepEvent,\n UserInputRequestEvent,\n ArtifactEvent,\n UserMessageEvent,\n MessageMetadataPayload,\n SSEStreamStartData,\n} from '@arbidocs/sdk/browser'\nexport { ArbiError } from '@arbidocs/sdk/browser'\n\n// \u2500\u2500 UI \"lego\" (promoted from the ARBI app; consumer supplies Tailwind + tokens) \u2500\u2500\n\n// shadcn UI primitives\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './ui/tooltip'\nexport { IconToggle, type IconToggleProps } from './ui/IconToggle'\nexport { VisibilityToggle, type VisibilityToggleProps } from './ui/VisibilityToggle'\nexport { VerifiedToggle } from './ui/VerifiedToggle'\nexport { formatFriendlyDate, formatCompactLastSeen } from './lib/format-friendly-date'\nexport { markdownToPlainText, markdownToPlainTextBlocks } from './lib/markdown-to-text'\nexport { DebouncedInput, type DebouncedInputProps } from './ui/DebouncedInput'\nexport { useDictateContext, type DictateContextValue } from './ui/DictateContext'\nexport { PortalContainerProvider, usePortalContainer } from './ui/portal-container'\nexport { Avatar, AvatarImage, AvatarFallback } from './ui/avatar'\nexport { Badge, badgeVariants, type BadgeProps } from './ui/badge'\nexport { Button, buttonVariants, type ButtonProps } from './ui/button'\nexport { HoverCard, HoverCardTrigger, HoverCardContent } from './ui/hover-card'\nexport {\n Card,\n CardHeader,\n CardTitle,\n CardDescription,\n CardContent,\n CardFooter,\n cardVariants,\n} from './ui/card'\nexport type { CardProps } from './ui/card'\nexport { Input, type InputProps } from './ui/input'\nexport { Label } from './ui/label'\nexport { Separator } from './ui/separator'\nexport { Textarea, type TextareaProps } from './ui/textarea'\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent } from './ui/collapsible'\nexport { Progress } from './ui/progress'\nexport { ScrollArea, ScrollBar } from './ui/scroll-area'\nexport { RadioGroup, RadioGroupItem } from './ui/radio-group'\nexport { Checkbox } from './ui/checkbox'\nexport { Switch } from './ui/switch'\nexport { Tabs, TabsList, TabsTrigger, TabsContent } from './ui/tabs'\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n} from './ui/table'\nexport { Slider } from './ui/slider'\nexport { Toggle, toggleVariants } from './ui/toggle'\nexport { ToggleGroup, ToggleGroupItem } from './ui/toggle-group'\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n type DialogPresentation,\n} from './ui/dialog'\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose } from './ui/popover'\nexport { MarkMenu, type MarkMenuItem, type MarkMenuProps } from './ui/mark-menu'\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n} from './ui/dropdown-menu'\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n} from './ui/select'\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n} from './ui/command'\n\n// \u2500\u2500 AI kit: mid-level, token-neutral building blocks for AI-native apps \u2500\u2500\n// (streaming answers, artifact canvas, redline, doc Q&A)\nexport * from './ai'\n\n// Document search: the one search hook, its session and the label-the-results write.\nexport * from './search'\n\n// File-type icons\nexport * from './icons'\n\n// Decoupled entity pills + canonical entity registry\nexport * from './entities'\n\n// Shared notification & activity presentation layer\nexport * from './notifications'\nexport * from './connectors'\n\n// Direct-message block kit (real E2E-encrypted messenger)\nexport * from './directmessages'\n\n// Image crop kit (frame any uploaded/generated image; avatar is a preset)\nexport * from './imagecrop'\n\n// User menu kit (topbar account avatar dropdown)\nexport * from './usermenu'\n\n// Documents: the list, its writes, uploads, and what a host adds\nexport * from './documents'\n\n// People: display name, initials, avatar colour\nexport * from './users'\n\n// Session state shared by every block (workspace, conversation, viewing document, \u2026)\nexport * from './session'\n\n// Remote control: its session-only consent state and the `remote_control` websocket message\nexport * from './remote-control'\n\n// Class-name helper\nexport { cn } from './lib/utils'\n\nexport {\n useAgentSession,\n useAgentChats,\n useStartAgentSession,\n useCloseAgentSession,\n} from './workforce'\n\n// The documents an entity extraction is running on, until the live connection says it is done\nexport {\n finishEntityExtraction,\n startEntityExtraction,\n useEntityExtractionDocIds,\n} from './entity-extraction'\n\nexport * from './support'\n\n// Heavy components in their own chunk, loaded the first time one renders.\nexport { lazyChunk, lazyComponent, preloadChunks, type LazyChunk } from './lazy-chunk'\n\nexport { useEntityReferenceTitle, useReferencedDocuments } from './entities/reference-data'\nexport { EntityActionsMenu, type EntityAction } from './entities/EntityActionsMenu'\n"],
|
|
5
|
+
"mappings": "AAYA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AACP,SAAS,2BAAkD;AAC3D,cAAc;AAId;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAUK;AACP,SAAS,yBAAsD;AAE/D,SAAS,wBAAwB;AAEjC,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAEhC,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,2BAA2B;AACpC,SAAS,yBAAyB;AAClC,SAAS,gCAAgC;AACzC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB,6BAA6B;AAC9D,SAAS,6BAA6B;AACtC,SAAS,8BAAqD;AAC9D,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,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AAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIP,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,SAAS,UAAU;AAEnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,cAAc;AAGd,SAAS,WAAW,eAAe,qBAAqC;AAExE,SAAS,yBAAyB,8BAA8B;AAChE,SAAS,yBAA4C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/query-keys.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const arbiQueryKeys = {
|
|
2
|
+
entityReference: (workspaceId, id) => ["arbi", "entity-reference", workspaceId ?? null, id],
|
|
3
|
+
referenceDocuments: (workspaceId) => ["arbi", "documents", workspaceId, "reference"],
|
|
2
4
|
fileShares: () => ["arbi", "fileShares"],
|
|
3
5
|
fileShare: (id) => ["arbi", "fileShare", id],
|
|
4
6
|
fileSharePdf: (id, status) => ["arbi", "fileSharePdf", id, status],
|
|
@@ -93,6 +95,7 @@ const arbiQueryKeys = {
|
|
|
93
95
|
/** One thread's loaded messages, decrypted, oldest first (`ChatThreadData`). */
|
|
94
96
|
chatThread: (chatExtId) => ["arbi", "chats", "thread", chatExtId],
|
|
95
97
|
/** My own agent's progress on my last message to it (`agent_dm_status`), per agent. */
|
|
98
|
+
agentDmProgress: (ownerId, responseId) => ["arbi", "chats", "agentProgress", ownerId, responseId],
|
|
96
99
|
agentDmStatus: (agentExtId) => ["arbi", "chats", "agentStatus", agentExtId],
|
|
97
100
|
/** The paid features this person may use (`/v1/user/entitlements`). */
|
|
98
101
|
entitlements: () => ["arbi", "entitlements"],
|
package/dist/query-keys.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/query-keys.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * The one query-key factory of the ARBI front end: every React Query key and mutation key the\n * packages and the app use is built here, under `['arbi', \u2026]`. Literal key arrays anywhere else\n * fail the `arbi/query-keys-from-factory` lint rule and `query-keys.guard.test.ts`, so a key can't\n * drift from the queries it names (a stale literal reads or invalidates nothing, silently).\n *\n * Dependency-free on purpose (types only): e2e helpers import it and pass keys into the page.\n */\n\nimport type {\n CalendarWindow,\n ListEventsParams,\n OverlayLayerName,\n RoomQuery,\n} from '@arbidocs/sdk/browser'\n\nexport const arbiQueryKeys = {\n fileShares: () => ['arbi', 'fileShares'] as const,\n fileShare: (id: string) => ['arbi', 'fileShare', id] as const,\n fileSharePdf: (id: string, status?: string) => ['arbi', 'fileSharePdf', id, status] as const,\n workspaces: () => ['arbi', 'workspaces'] as const,\n /** Every workspace's member list: what a workspace switch drops. */\n allWorkspaceUsers: () => ['arbi', 'workspaceUsers'] as const,\n workspaceUsers: (workspaceId: string) => ['arbi', 'workspaceUsers', workspaceId] as const,\n /** Every workspace's documents list: the prefix a write patches when it does not know the workspace. */\n allDocuments: () => ['arbi', 'documents'] as const,\n documents: (workspaceId: string) => ['arbi', 'documents', workspaceId] as const,\n /** One document (a viewer's); writes keep it current next to the list. */\n document: (docId: string) => ['arbi', 'document', docId] as const,\n documentsById: (docIds: string[]) =>\n ['arbi', 'documentsById', [...docIds].sort().join(',')] as const,\n /** Every workspace's near-duplicate pairs. */\n allSimilarDocuments: () => ['arbi', 'similarDocuments'] as const,\n similarDocuments: (workspaceId: string, threshold: number) =>\n ['arbi', 'similarDocuments', workspaceId, threshold] as const,\n /** Every version list: the prefix a new version invalidates. */\n allDocumentVersions: () => ['arbi', 'documentVersions'] as const,\n documentVersions: (docId: string) => ['arbi', 'documentVersions', docId] as const,\n conversations: (workspaceId: string) => ['arbi', 'conversations', workspaceId] as const,\n /** Every workspace's conversation list (and threads): the prefix a conversation write invalidates. */\n allConversations: () => ['arbi', 'conversations'] as const,\n /** A conversation's threads, under the conversations prefix (ids are unique across workspaces). */\n conversationThreads: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'threads'] as const,\n /** One stored message with everything the server keeps on it (its trace and metadata). */\n messageDetails: (messageId: string) => ['arbi', 'messageDetails', messageId] as const,\n /** The backend's built-in slash commands. */\n assistantCommands: () => ['arbi', 'assistantCommands'] as const,\n /** Every workspace's tags (lists, tables and kinds): what a cross-workspace change refreshes. */\n allTags: () => ['arbi', 'tags'] as const,\n tags: (workspaceId: string) => ['arbi', 'tags', workspaceId] as const,\n /** Under the workspace's tags: the kinds' fields (refreshed with the tags). */\n tagKinds: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'kinds'] as const,\n /** Every filtered list (a table of tags): what a tag write refreshes, the whole list aside. */\n tagLists: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'list'] as const,\n /** Under the workspace's tags: a tag, doctag or fact write that invalidates `tags` refreshes it. */\n tagList: (workspaceId: string, query: string) =>\n ['arbi', 'tags', workspaceId, 'list', query] as const,\n /** A kind's fields, under the workspace's tags. */\n tagKind: (workspaceId: string, kind: string) =>\n ['arbi', 'tags', workspaceId, 'kind', kind] as const,\n /** A task's history, under the conversations prefix: every conversation write refreshes it. */\n conversationActivity: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'activity'] as const,\n thumbnails: (docIds: string[]) => ['arbi', 'thumbnails', [...docIds].sort().join(',')] as const,\n /** Every stage of a document's parsed content. */\n parsedDocument: (docId: string) => ['arbi', 'parsedDoc', docId] as const,\n parsedDoc: (docId: string, stage: string) => ['arbi', 'parsedDoc', docId, stage] as const,\n agents: () => ['arbi', 'agents'] as const,\n sessions: () => ['arbi', 'sessions'] as const,\n health: () => ['arbi', 'health'] as const,\n workflows: () => ['arbi', 'workflows'] as const,\n /** Under `workflows()`: a workflow write or run refreshes its runs too. */\n workflowRuns: (workflowId: string) => ['arbi', 'workflows', workflowId, 'runs'] as const,\n /** Under `workflows()`: one workflow with its steps. */\n workflow: (workflowId: string) => ['arbi', 'workflows', workflowId] as const,\n /** Every workspace's facts: the prefix a fact write invalidates. */\n allFacts: () => ['arbi', 'facts'] as const,\n facts: (workspaceId: string) => ['arbi', 'facts', workspaceId] as const,\n configs: () => ['arbi', 'configs'] as const,\n activity: () => ['arbi', 'activity'] as const,\n /** Every transfer query (jobs, lists, plans): what a finished job refreshes. */\n allWorkspaceTransfers: () => ['arbi', 'workspaceTransfers'] as const,\n /** The caller's recent transfer jobs out of a workspace. */\n workspaceTransfers: (workspaceId: string) =>\n ['arbi', 'workspaceTransfers', 'list', workspaceId] as const,\n /** One transfer job's progress. */\n workspaceTransfer: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'job', transferId] as const,\n /** One job's full ledger (read once it has finished). */\n workspaceTransferItems: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'items', transferId] as const,\n /** What a scope (serialised) would take in a workspace, for a mode. */\n workspaceTransferPlan: (workspaceId: string, scope: string, mode: string) =>\n ['arbi', 'workspaceTransfers', 'plan', workspaceId, scope, mode] as const,\n /**\n * A workspace's activity feed (all its pages), read `limit` entries a page (absent: the server's\n * default): each page size is its own entry, under the workspace's key.\n */\n workspaceActivity: (workspaceId: string, limit?: number) =>\n limit === undefined\n ? (['arbi', 'workspaceActivity', workspaceId] as const)\n : (['arbi', 'workspaceActivity', workspaceId, limit] as const),\n projects: () => ['arbi', 'projects'] as const,\n projectUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, monthsBack] as const,\n /** The usage of every project the user owns, in one read (under `projectUsage`'s prefix). */\n ownedProjectsUsage: (monthsBack: number) =>\n ['arbi', 'projectUsage', 'owned', monthsBack] as const,\n projectConversationUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, 'byConversation', monthsBack] as const,\n projectInvoices: (projectExtId: string) => ['arbi', 'projectInvoices', projectExtId] as const,\n /** The plans and add-ons on sale. */\n products: () => ['arbi', 'products'] as const,\n /** Prices of a purchase or a change (quotes, previews); nothing is bought. */\n billingQuotes: () => ['arbi', 'billingQuote'] as const,\n userUsageToday: () => ['arbi', 'userUsageToday'] as const,\n currentUser: () => ['arbi', 'currentUser'] as const,\n firmPool: () => ['arbi', 'firmPool'] as const,\n contacts: () => ['arbi', 'contacts'] as const,\n /** Every chat query (the list and each open thread). */\n chats: () => ['arbi', 'chats'] as const,\n /** My chats, raw (titles and last messages are ciphertext), most recently active first. */\n chatList: () => ['arbi', 'chats', 'list'] as const,\n /** One thread's loaded messages, decrypted, oldest first (`ChatThreadData`). */\n chatThread: (chatExtId: string) => ['arbi', 'chats', 'thread', chatExtId] as const,\n /** My own agent's progress on my last message to it (`agent_dm_status`), per agent. */\n agentDmStatus: (agentExtId: string) => ['arbi', 'chats', 'agentStatus', agentExtId] as const,\n /** The paid features this person may use (`/v1/user/entitlements`). */\n entitlements: () => ['arbi', 'entitlements'] as const,\n skills: () => ['arbi', 'skills'] as const,\n /** A skill's main file (SKILL.md), as text. */\n skillSource: (docExtId: string) => ['arbi', 'skills', 'source', docExtId] as const,\n /** An agent's pinned config; `undefined` = the library default config. */\n agentConfig: (agentExtId?: string) => ['arbi', 'agentConfig', agentExtId ?? 'default'] as const,\n agentWorkspaces: (agentExtId: string) => ['arbi', 'agentWorkspaces', agentExtId] as const,\n /** An agent's own login, polled while its controls are open. */\n agentSession: (agentExtId: string) => ['arbi', 'agentSession', agentExtId] as const,\n agentChats: (agentExtId: string) => ['arbi', 'agentChats', agentExtId] as const,\n authorizeLimits: () => ['arbi', 'authorizeLimits'] as const,\n mcpTools: () => ['arbi', 'mcpTools'] as const,\n models: () => ['arbi', 'models'] as const,\n availableModels: () => ['arbi', 'availableModels'] as const,\n /** The workspace Assistant's brief. */\n assistantBrief: (workspaceId: string) => ['arbi', 'assistantBrief', workspaceId] as const,\n /** Whether the workspace Assistant is waiting, working or idle. */\n assistantStatus: (workspaceId: string) => ['arbi', 'assistantStatus', workspaceId] as const,\n /** What the workspace Assistant did with each arrival. */\n assistantArrivals: (workspaceId: string) => ['arbi', 'assistantArrivals', workspaceId] as const,\n modelConnections: (userId?: string) => ['arbi', 'modelConnections', userId] as const,\n directModelUsage: (userId?: string) => ['arbi', 'directModelUsage', userId] as const,\n /** The signed-in user's own profile (name, picture, email). */\n profile: () => ['arbi', 'profile'] as const,\n identity: () => ['arbi', 'identity'] as const,\n /** The signed-in user's settings record (notification preferences, flags). */\n userSettings: () => ['arbi', 'userSettings'] as const,\n /** Every notification list: the prefix a delete, a read receipt or an arrival invalidates. */\n allSupportTickets: () => ['arbi', 'support'] as const,\n supportTickets: () => ['arbi', 'support', 'tickets'] as const,\n supportTicket: (id: number) => ['arbi', 'support', 'tickets', id] as const,\n allNotifications: () => ['arbi', 'notifications'] as const,\n /** The newest `limit` notifications, received and sent. */\n notifications: (limit: number) => ['arbi', 'notifications', limit] as const,\n /** The documents a workspace may use as its Word house template. */\n houseTemplateCandidates: (workspaceId: string) =>\n ['arbi', 'houseTemplateCandidates', workspaceId] as const,\n // \u2500\u2500 Storage, archive \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Every storage view (projects, items, names, Recently deleted): what a restore or delete refreshes. */\n storage: () => ['arbi', 'storage'] as const,\n /** What each project stores; no params: every such list. */\n storageProjects: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'projects'] as const)\n : (['arbi', 'storage', 'projects', params] as const),\n /** The largest items stored; no params: every such list. */\n storageItems: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'items'] as const)\n : (['arbi', 'storage', 'items', params] as const),\n /** Decrypted document names of storage items. */\n storageItemNames: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'names'] as const)\n : (['arbi', 'storage', 'names', params] as const),\n /** The deployment's storage day by day. */\n storageSnapshots: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'snapshots'] as const)\n : (['arbi', 'storage', 'snapshots', params] as const),\n /** A workspace's Recently deleted documents; no id: every workspace's. */\n workspaceTrash: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'storage', 'workspaceTrash'] as const)\n : (['arbi', 'storage', 'workspaceTrash', workspaceId] as const),\n /** A workspace's archive state; no id: every workspace's. */\n workspaceArchive: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceArchive'] as const)\n : (['arbi', 'workspaceArchive', workspaceId] as const),\n // \u2500\u2500 Databases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n // Every key below names its workspace right after its kind: a list read in one workspace is never\n // served, or overwritten, in another (the list is the session's open workspace on the server).\n /** Every database query of every workspace (what a write or a switch refreshes). */\n databases: () => ['arbi', 'databases'] as const,\n /** A workspace's databases; no id: every workspace's. */\n databaseList: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'list'] as const)\n : (['arbi', 'databases', 'list', workspaceId] as const),\n /** One database of a workspace; no workspace: every one read. */\n database: (workspaceId?: string, databaseId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'one'] as const)\n : (['arbi', 'databases', 'one', workspaceId, databaseId ?? ''] as const),\n /**\n * A database's rows (a search); no workspace: every database's, no params: every search of one.\n * `['arbi', 'databases', 'rows', workspaceId, databaseId, params]`.\n */\n databaseRows: (workspaceId?: string, databaseId?: string, params?: object) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'rows'] as const)\n : params === undefined\n ? (['arbi', 'databases', 'rows', workspaceId, databaseId ?? ''] as const)\n : (['arbi', 'databases', 'rows', workspaceId, databaseId ?? '', params] as const),\n /** A workspace's pages; no id: every workspace's. */\n pages: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'pages'] as const)\n : (['arbi', 'pages', workspaceId] as const),\n /**\n * Saved table views a workspace's session sees: of one table (a database id or `documents`);\n * no target: every table's; no workspace: every workspace's.\n */\n tableViews: (workspaceId?: string, target?: string) =>\n workspaceId === undefined\n ? (['arbi', 'table-views'] as const)\n : target === undefined\n ? (['arbi', 'table-views', workspaceId] as const)\n : (['arbi', 'table-views', workspaceId, target] as const),\n /**\n * A view's rows with its database (a page's table block), under `databaseRows`' prefix so every\n * row write refreshes it: the database is the view's, unknown until read.\n */\n tableViewRows: (workspaceId: string, viewId: string) =>\n ['arbi', 'databases', 'rows', workspaceId, '', { view: viewId }] as const,\n /** A workspace's items counted on the server (a chart); no workspace: every workspace's. */\n workspaceAggregate: (workspaceId?: string, query?: object) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceAggregate'] as const)\n : (['arbi', 'workspaceAggregate', workspaceId, query ?? {}] as const),\n /** A database's rows grouped and measured (a chart); no workspace: every database's. */\n databaseAggregate: (workspaceId?: string, databaseId?: string, request?: object) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'aggregate'] as const)\n : (['arbi', 'databases', 'aggregate', workspaceId, databaseId ?? '', request ?? {}] as const),\n // \u2500\u2500 Configs, health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Under `configs()`: the saved configuration versions. */\n configVersions: () => ['arbi', 'configs', 'versions'] as const,\n /** Under `configs()`: the JSON schema of every config model. */\n configSchema: () => ['arbi', 'configs', 'schema'] as const,\n /** Under `configs()`: one configuration. */\n config: (configId: string) => ['arbi', 'configs', 'one', configId] as const,\n /** The remote model providers' health. */\n remoteModels: () => ['arbi', 'remoteModels'] as const,\n // \u2500\u2500 Conversations \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Under the conversations prefix: what a parked run waits for the owner to allow. */\n conversationPendingAuth: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'pending-auth'] as const,\n // \u2500\u2500 Document tools \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Signatures on a document (a version); no id: every document's. */\n documentSignatures: (docId?: string, version?: number | null) =>\n docId === undefined\n ? (['arbi', 'documentSignatures'] as const)\n : (['arbi', 'documentSignatures', docId, version ?? null] as const),\n /** The certificate of a signature reference. */\n signatureVerification: (reference: string) =>\n ['arbi', 'signatureVerification', reference] as const,\n /** Every signature request list: what a request write refreshes. */\n signatureRequests: () => ['arbi', 'signatureRequests'] as const,\n signatureRequestsForDocument: (docId: string) =>\n ['arbi', 'signatureRequests', 'document', docId] as const,\n /** Who may sign in a workspace; no id: every workspace's. */\n signatureCandidates: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'signatureRequests', 'candidates'] as const)\n : (['arbi', 'signatureRequests', 'candidates', workspaceId] as const),\n /** The user's saved (informal) signature. */\n savedSignature: () => ['arbi', 'savedSignature'] as const,\n /** An html/react artifact's source. */\n artifactSource: (docId: string) => ['arbi', 'artifactSource', docId] as const,\n /** An artifact's text, under its parsed content (refreshed with it). */\n artifactText: (docId: string) => ['arbi', 'parsedDoc', docId, 'marker', 'artifact-text'] as const,\n /** An image document's bytes as an object URL. */\n assetImage: (docId: string) => ['arbi', 'assetImage', docId] as const,\n // \u2500\u2500 Misc \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** An agent config's model tier (the builder's badge). */\n agentConfigModel: (configId: string) => ['arbi', 'agentConfigModel', configId] as const,\n /** Under `billingQuotes()`: the price of a plan change. */\n billingPreview: (projectExtId: string, change: unknown) =>\n ['arbi', 'billingQuote', 'preview', projectExtId, change] as const,\n billingPlanQuote: (projectExtId: string | null, body: unknown) =>\n ['arbi', 'billingQuote', 'plan', projectExtId, body] as const,\n billingAddonQuote: (projectExtId: string, kind: string) =>\n ['arbi', 'billingQuote', 'addon', projectExtId, kind] as const,\n /** Under `contacts()`: a search of the people one can reach. */\n contactSearch: (term: string) => ['arbi', 'contacts', 'search', term] as const,\n /** Under the workspace's facts: a filtered list. */\n factList: (workspaceId: string, filter: unknown) =>\n ['arbi', 'facts', workspaceId, filter] as const,\n /**\n * Under `skills()`: a workspace's list, hidden ones included or not. Without a marketplace the\n * server lists the open workspace's skills, so the list is kept per workspace.\n */\n skillList: (workspaceId: string, includeHidden: boolean) =>\n ['arbi', 'skills', 'list', workspaceId, includeHidden] as const,\n /** Under the project's events: one kind, one page size. */\n projectEventList: (projectExtId: string, kind: string, limit: number | 'default') =>\n ['arbi', 'projects', projectExtId, 'events', kind, limit] as const,\n /** The documents pinned for offline reading on this device. */\n offlineDocuments: () => ['arbi', 'offlineDocuments'] as const,\n /** Notifications of one kind for a deployment's user (polled). */\n typedNotifications: (kind: string, apiUrl: string, userId: string | undefined) =>\n ['arbi', 'typedNotifications', kind, apiUrl, userId ?? ''] as const,\n}\n\n/**\n * Keys of the mutations a host may need to follow (its own caches outside these hooks), e.g. with\n * a `MutationCache` subscription: a workflow run creates a task in the host's own task list.\n */\nexport const arbiMutationKeys = {\n /** A member's role changed. */\n setWorkspaceMemberRoles: () => ['arbi', 'workspaces', 'roles'] as const,\n runWorkflow: () => ['arbi', 'workflows', 'run'] as const,\n startWorkflow: () => ['arbi', 'workflows', 'start'] as const,\n updateTagKindSchema: () => ['arbi', 'tags', 'kinds', 'update'] as const,\n createTag: () => ['arbi', 'tags', 'create'] as const,\n updateTag: () => ['arbi', 'tags', 'update'] as const,\n deleteTag: () => ['arbi', 'tags', 'delete'] as const,\n extractEntities: () => ['arbi', 'tags', 'entities', 'extract'] as const,\n updateDocuments: () => ['arbi', 'documents', 'update'] as const,\n deleteDocuments: () => ['arbi', 'documents', 'delete'] as const,\n uploadDocuments: () => ['arbi', 'documents', 'upload'] as const,\n uploadUrls: () => ['arbi', 'documents', 'uploadUrls'] as const,\n assignDocTags: () => ['arbi', 'doctags', 'assign'] as const,\n removeDocTags: () => ['arbi', 'doctags', 'remove'] as const,\n updateDocTag: () => ['arbi', 'doctags', 'update'] as const,\n generateDocTags: () => ['arbi', 'doctags', 'generate'] as const,\n /** Members added to or removed from a workspace (leaving included). */\n workspaceMembership: () => ['arbi', 'workspaces', 'members'] as const,\n /** A chat turn being sent (the app's send pipeline). */\n sendMessage: () => ['arbi', 'conversations', 'send'] as const,\n}\n\n/**\n * Query keys of the calendar hooks, all under `['arbi', 'calendar']`. The calendar is the user's,\n * not a workspace's; only the overlays carry the open workspace.\n */\nexport const calendarQueryKeys = {\n all: () => ['arbi', 'calendar'] as const,\n settings: () => ['arbi', 'calendar', 'settings'] as const,\n calendars: () => ['arbi', 'calendar', 'calendars'] as const,\n /** Every event list: the prefix an event write invalidates. */\n events: () => ['arbi', 'calendar', 'events'] as const,\n eventList: (p: ListEventsParams) =>\n [\n 'arbi',\n 'calendar',\n 'events',\n { start: p.start, end: p.end, calendars: p.calendars?.join(',') ?? null },\n ] as const,\n /** Every single event read. */\n eventDetails: () => ['arbi', 'calendar', 'event'] as const,\n event: (id: string, recurrenceId?: string | null) =>\n ['arbi', 'calendar', 'event', id, recurrenceId ?? null] as const,\n shares: (calId: string) => ['arbi', 'calendar', 'shares', calId] as const,\n invitations: () => ['arbi', 'calendar', 'invitations'] as const,\n holidayCountries: () => ['arbi', 'calendar', 'holiday-countries'] as const,\n allRooms: () => ['arbi', 'calendar', 'rooms'] as const,\n rooms: (q: RoomQuery) => ['arbi', 'calendar', 'rooms', q] as const,\n freebusy: (attendees: string[], start: string, end: string) =>\n ['arbi', 'calendar', 'freebusy', attendees.join(','), start, end] as const,\n allLookups: () => ['arbi', 'calendar', 'lookup'] as const,\n lookup: (uid: string) => ['arbi', 'calendar', 'lookup', uid] as const,\n overlays: (workspaceId: string | null, w?: CalendarWindow, layers?: OverlayLayerName[]) =>\n [\n 'arbi',\n 'calendar',\n 'overlays',\n workspaceId,\n w ? { start: w.start, end: w.end, layers: layers?.join(',') } : null,\n ] as const,\n accounts: () => ['arbi', 'calendar', 'accounts'] as const,\n caldavProfiles: () => ['arbi', 'calendar', 'caldav-profiles'] as const,\n bookingPages: () => ['arbi', 'calendar', 'booking-pages'] as const,\n /** The offline outbox (writes made offline, not yet sent). */\n outbox: () => ['arbi', 'calendar', 'outbox'] as const,\n}\n\n/** Query keys of the call hooks, all under `['arbi', 'calls']`. Calls are the user's, not a workspace's. */\nexport const callQueryKeys = {\n all: () => ['arbi', 'calls'] as const,\n config: () => ['arbi', 'calls', 'config'] as const,\n call: (callExtId: string) => ['arbi', 'calls', 'call', callExtId] as const,\n /** Everything about a call's recordings: the prefix a recording event invalidates. */\n recordingsOf: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId] as const,\n recordings: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId, 'list'] as const,\n recording: (callExtId: string, recordingExtId: string) =>\n ['arbi', 'calls', 'recordings', callExtId, 'one', recordingExtId] as const,\n inviteLinks: (callExtId: string) => ['arbi', 'calls', 'invite-links', callExtId] as const,\n}\n\nexport const connectorQueryKeys = {\n all: () => ['arbi', 'connectors'] as const,\n catalog: () => ['arbi', 'connectors', 'catalog'] as const,\n mine: () => ['arbi', 'connectors', 'mine'] as const,\n mailboxFolders: (vendor: string) => ['arbi', 'connectors', 'folders', vendor] as const,\n mailboxSyncProgress: (vendor: string, workspaceExtId: string) =>\n ['arbi', 'connectors', 'sync-progress', vendor, workspaceExtId] as const,\n allMailboxSyncProgress: () => ['arbi', 'connectors', 'sync-progress'] as const,\n driveFolders: (vendor: string) => ['arbi', 'connectors', 'drive-folders', vendor] as const,\n driveFolderChildren: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-children', vendor, itemId] as const,\n driveFolderDocCount: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-doc-count', vendor, itemId] as const,\n driveSyncEstimate: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-estimate', vendor] as const,\n driveSyncProgress: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-progress', vendor] as const,\n allDriveSyncProgress: () => ['arbi', 'connectors', 'drive-sync-progress'] as const,\n slack: () => ['arbi', 'connectors', 'slack'] as const,\n}\n\nexport const mailQueryKeys = {\n all: () => ['arbi', 'mail'] as const,\n policy: () => ['arbi', 'mail', 'policy'] as const,\n accounts: () => ['arbi', 'mail', 'accounts'] as const,\n unlock: (accountId: string | undefined, sessionKey: string | null) =>\n ['arbi', 'mail', 'unlock', accountId, sessionKey ?? ''] as const,\n allFolders: () => ['arbi', 'mail', 'folders'] as const,\n folders: (accountId: string | undefined) => ['arbi', 'mail', 'folders', accountId] as const,\n allMessages: () => ['arbi', 'mail', 'messages'] as const,\n messages: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'messages', accountId, folderId, query, cursor] as const,\n message: (accountId: string | undefined, messageId: string | null | undefined) =>\n ['arbi', 'mail', 'message', accountId, messageId] as const,\n /** Every conversation list: the prefix a flag or move patches or refreshes. */\n allConversations: () => ['arbi', 'mail', 'conversations'] as const,\n conversations: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'conversations', accountId, folderId, query, cursor] as const,\n /** Every thread read of an account. */\n accountThreads: (accountId: string) => ['arbi', 'mail', 'thread', accountId] as const,\n thread: (\n accountId: string | undefined,\n threadId: string | null | undefined,\n folderId: string | undefined\n ) => ['arbi', 'mail', 'thread', accountId, threadId, folderId] as const,\n /** Where the ARBI mailbox files mail (folders and conversations, per workspace). */\n nativeFiling: () => ['arbi', 'mail', 'filing', 'native'] as const,\n /** Every filing lookup: refreshed after mail is added to a workspace or a rule is stopped. */\n allFiling: () => ['arbi', 'mail', 'filing'] as const,\n filing: (accountId: string | undefined, messageIds: string[], threadIds: string[]) =>\n ['arbi', 'mail', 'filing', accountId, messageIds.join(' '), threadIds.join(' ')] as const,\n /** The key the user's client keys older native mail with: outside the `['arbi', 'mail']` prefix, so\n * refreshing mail never fetches it again. */\n threadSecret: () => ['arbi', 'mail-thread-secret'] as const,\n /** The projects an email's AI work can be billed to. */\n projects: () => ['arbi', 'mail', 'projects'] as const,\n /** A saved draft prepared for editing. */\n draftCompose: (accountId: string | undefined, draftId: string | undefined) =>\n ['arbi', 'mail', 'draft-compose', accountId, draftId] as const,\n attachmentText: (accountId: string, messageId: string, attachmentId: string) =>\n ['arbi', 'mail', 'attachment-text', accountId, messageId, attachmentId] as const,\n}\n\n/** `pdf`: the document as a PDF; `original`: the stored file (an image, a recording, a sheet). */\nexport type DocumentBytesKind = 'pdf' | 'original'\n\n/** Every version and kind of a document's bytes: the prefix a new version invalidates. */\nexport const documentBytesKey = (\n documentRef: string,\n version?: number | null,\n kind?: DocumentBytesKind\n) =>\n version === undefined\n ? (['arbi', 'documentBytes', documentRef] as const)\n : (['arbi', 'documentBytes', documentRef, version, kind ?? 'pdf'] as const)\n\n/** Whether `queryKey` lies under `prefix` (a factory key): React Query's own prefix match. */\nexport function isUnderQueryKey(queryKey: readonly unknown[], prefix: readonly unknown[]): boolean {\n return prefix.every((part, i) => queryKey[i] === part)\n}\n"],
|
|
5
|
-
"mappings": "AAgBO,MAAM,gBAAgB;AAAA,EAC3B,YAAY,MAAM,CAAC,QAAQ,YAAY;AAAA,EACvC,WAAW,CAAC,OAAe,CAAC,QAAQ,aAAa,EAAE;AAAA,EACnD,cAAc,CAAC,IAAY,WAAoB,CAAC,QAAQ,gBAAgB,IAAI,MAAM;AAAA,EAClF,YAAY,MAAM,CAAC,QAAQ,YAAY;AAAA;AAAA,EAEvC,mBAAmB,MAAM,CAAC,QAAQ,gBAAgB;AAAA,EAClD,gBAAgB,CAAC,gBAAwB,CAAC,QAAQ,kBAAkB,WAAW;AAAA;AAAA,EAE/E,cAAc,MAAM,CAAC,QAAQ,WAAW;AAAA,EACxC,WAAW,CAAC,gBAAwB,CAAC,QAAQ,aAAa,WAAW;AAAA;AAAA,EAErE,UAAU,CAAC,UAAkB,CAAC,QAAQ,YAAY,KAAK;AAAA,EACvD,eAAe,CAAC,WACd,CAAC,QAAQ,iBAAiB,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC;AAAA;AAAA,EAExD,qBAAqB,MAAM,CAAC,QAAQ,kBAAkB;AAAA,EACtD,kBAAkB,CAAC,aAAqB,cACtC,CAAC,QAAQ,oBAAoB,aAAa,SAAS;AAAA;AAAA,EAErD,qBAAqB,MAAM,CAAC,QAAQ,kBAAkB;AAAA,EACtD,kBAAkB,CAAC,UAAkB,CAAC,QAAQ,oBAAoB,KAAK;AAAA,EACvE,eAAe,CAAC,gBAAwB,CAAC,QAAQ,iBAAiB,WAAW;AA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C;AACjG,SAAO,OAAO,MAAM,CAAC,MAAM,MAAM,SAAS,CAAC,MAAM,IAAI;AACvD;",
|
|
4
|
+
"sourcesContent": ["/**\n * The one query-key factory of the ARBI front end: every React Query key and mutation key the\n * packages and the app use is built here, under `['arbi', \u2026]`. Literal key arrays anywhere else\n * fail the `arbi/query-keys-from-factory` lint rule and `query-keys.guard.test.ts`, so a key can't\n * drift from the queries it names (a stale literal reads or invalidates nothing, silently).\n *\n * Dependency-free on purpose (types only): e2e helpers import it and pass keys into the page.\n */\n\nimport type {\n CalendarWindow,\n ListEventsParams,\n OverlayLayerName,\n RoomQuery,\n} from '@arbidocs/sdk/browser'\n\nexport const arbiQueryKeys = {\n entityReference: (workspaceId: string | null | undefined, id: string) =>\n ['arbi', 'entity-reference', workspaceId ?? null, id] as const,\n referenceDocuments: (workspaceId: string) =>\n ['arbi', 'documents', workspaceId, 'reference'] as const,\n fileShares: () => ['arbi', 'fileShares'] as const,\n fileShare: (id: string) => ['arbi', 'fileShare', id] as const,\n fileSharePdf: (id: string, status?: string) => ['arbi', 'fileSharePdf', id, status] as const,\n workspaces: () => ['arbi', 'workspaces'] as const,\n /** Every workspace's member list: what a workspace switch drops. */\n allWorkspaceUsers: () => ['arbi', 'workspaceUsers'] as const,\n workspaceUsers: (workspaceId: string) => ['arbi', 'workspaceUsers', workspaceId] as const,\n /** Every workspace's documents list: the prefix a write patches when it does not know the workspace. */\n allDocuments: () => ['arbi', 'documents'] as const,\n documents: (workspaceId: string) => ['arbi', 'documents', workspaceId] as const,\n /** One document (a viewer's); writes keep it current next to the list. */\n document: (docId: string) => ['arbi', 'document', docId] as const,\n documentsById: (docIds: string[]) =>\n ['arbi', 'documentsById', [...docIds].sort().join(',')] as const,\n /** Every workspace's near-duplicate pairs. */\n allSimilarDocuments: () => ['arbi', 'similarDocuments'] as const,\n similarDocuments: (workspaceId: string, threshold: number) =>\n ['arbi', 'similarDocuments', workspaceId, threshold] as const,\n /** Every version list: the prefix a new version invalidates. */\n allDocumentVersions: () => ['arbi', 'documentVersions'] as const,\n documentVersions: (docId: string) => ['arbi', 'documentVersions', docId] as const,\n conversations: (workspaceId: string) => ['arbi', 'conversations', workspaceId] as const,\n /** Every workspace's conversation list (and threads): the prefix a conversation write invalidates. */\n allConversations: () => ['arbi', 'conversations'] as const,\n /** A conversation's threads, under the conversations prefix (ids are unique across workspaces). */\n conversationThreads: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'threads'] as const,\n /** One stored message with everything the server keeps on it (its trace and metadata). */\n messageDetails: (messageId: string) => ['arbi', 'messageDetails', messageId] as const,\n /** The backend's built-in slash commands. */\n assistantCommands: () => ['arbi', 'assistantCommands'] as const,\n /** Every workspace's tags (lists, tables and kinds): what a cross-workspace change refreshes. */\n allTags: () => ['arbi', 'tags'] as const,\n tags: (workspaceId: string) => ['arbi', 'tags', workspaceId] as const,\n /** Under the workspace's tags: the kinds' fields (refreshed with the tags). */\n tagKinds: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'kinds'] as const,\n /** Every filtered list (a table of tags): what a tag write refreshes, the whole list aside. */\n tagLists: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'list'] as const,\n /** Under the workspace's tags: a tag, doctag or fact write that invalidates `tags` refreshes it. */\n tagList: (workspaceId: string, query: string) =>\n ['arbi', 'tags', workspaceId, 'list', query] as const,\n /** A kind's fields, under the workspace's tags. */\n tagKind: (workspaceId: string, kind: string) =>\n ['arbi', 'tags', workspaceId, 'kind', kind] as const,\n /** A task's history, under the conversations prefix: every conversation write refreshes it. */\n conversationActivity: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'activity'] as const,\n thumbnails: (docIds: string[]) => ['arbi', 'thumbnails', [...docIds].sort().join(',')] as const,\n /** Every stage of a document's parsed content. */\n parsedDocument: (docId: string) => ['arbi', 'parsedDoc', docId] as const,\n parsedDoc: (docId: string, stage: string) => ['arbi', 'parsedDoc', docId, stage] as const,\n agents: () => ['arbi', 'agents'] as const,\n sessions: () => ['arbi', 'sessions'] as const,\n health: () => ['arbi', 'health'] as const,\n workflows: () => ['arbi', 'workflows'] as const,\n /** Under `workflows()`: a workflow write or run refreshes its runs too. */\n workflowRuns: (workflowId: string) => ['arbi', 'workflows', workflowId, 'runs'] as const,\n /** Under `workflows()`: one workflow with its steps. */\n workflow: (workflowId: string) => ['arbi', 'workflows', workflowId] as const,\n /** Every workspace's facts: the prefix a fact write invalidates. */\n allFacts: () => ['arbi', 'facts'] as const,\n facts: (workspaceId: string) => ['arbi', 'facts', workspaceId] as const,\n configs: () => ['arbi', 'configs'] as const,\n activity: () => ['arbi', 'activity'] as const,\n /** Every transfer query (jobs, lists, plans): what a finished job refreshes. */\n allWorkspaceTransfers: () => ['arbi', 'workspaceTransfers'] as const,\n /** The caller's recent transfer jobs out of a workspace. */\n workspaceTransfers: (workspaceId: string) =>\n ['arbi', 'workspaceTransfers', 'list', workspaceId] as const,\n /** One transfer job's progress. */\n workspaceTransfer: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'job', transferId] as const,\n /** One job's full ledger (read once it has finished). */\n workspaceTransferItems: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'items', transferId] as const,\n /** What a scope (serialised) would take in a workspace, for a mode. */\n workspaceTransferPlan: (workspaceId: string, scope: string, mode: string) =>\n ['arbi', 'workspaceTransfers', 'plan', workspaceId, scope, mode] as const,\n /**\n * A workspace's activity feed (all its pages), read `limit` entries a page (absent: the server's\n * default): each page size is its own entry, under the workspace's key.\n */\n workspaceActivity: (workspaceId: string, limit?: number) =>\n limit === undefined\n ? (['arbi', 'workspaceActivity', workspaceId] as const)\n : (['arbi', 'workspaceActivity', workspaceId, limit] as const),\n projects: () => ['arbi', 'projects'] as const,\n projectUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, monthsBack] as const,\n /** The usage of every project the user owns, in one read (under `projectUsage`'s prefix). */\n ownedProjectsUsage: (monthsBack: number) =>\n ['arbi', 'projectUsage', 'owned', monthsBack] as const,\n projectConversationUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, 'byConversation', monthsBack] as const,\n projectInvoices: (projectExtId: string) => ['arbi', 'projectInvoices', projectExtId] as const,\n /** The plans and add-ons on sale. */\n products: () => ['arbi', 'products'] as const,\n /** Prices of a purchase or a change (quotes, previews); nothing is bought. */\n billingQuotes: () => ['arbi', 'billingQuote'] as const,\n userUsageToday: () => ['arbi', 'userUsageToday'] as const,\n currentUser: () => ['arbi', 'currentUser'] as const,\n firmPool: () => ['arbi', 'firmPool'] as const,\n contacts: () => ['arbi', 'contacts'] as const,\n /** Every chat query (the list and each open thread). */\n chats: () => ['arbi', 'chats'] as const,\n /** My chats, raw (titles and last messages are ciphertext), most recently active first. */\n chatList: () => ['arbi', 'chats', 'list'] as const,\n /** One thread's loaded messages, decrypted, oldest first (`ChatThreadData`). */\n chatThread: (chatExtId: string) => ['arbi', 'chats', 'thread', chatExtId] as const,\n /** My own agent's progress on my last message to it (`agent_dm_status`), per agent. */\n agentDmProgress: (ownerId: string, responseId: string) =>\n ['arbi', 'chats', 'agentProgress', ownerId, responseId] as const,\n agentDmStatus: (agentExtId: string) => ['arbi', 'chats', 'agentStatus', agentExtId] as const,\n /** The paid features this person may use (`/v1/user/entitlements`). */\n entitlements: () => ['arbi', 'entitlements'] as const,\n skills: () => ['arbi', 'skills'] as const,\n /** A skill's main file (SKILL.md), as text. */\n skillSource: (docExtId: string) => ['arbi', 'skills', 'source', docExtId] as const,\n /** An agent's pinned config; `undefined` = the library default config. */\n agentConfig: (agentExtId?: string) => ['arbi', 'agentConfig', agentExtId ?? 'default'] as const,\n agentWorkspaces: (agentExtId: string) => ['arbi', 'agentWorkspaces', agentExtId] as const,\n /** An agent's own login, polled while its controls are open. */\n agentSession: (agentExtId: string) => ['arbi', 'agentSession', agentExtId] as const,\n agentChats: (agentExtId: string) => ['arbi', 'agentChats', agentExtId] as const,\n authorizeLimits: () => ['arbi', 'authorizeLimits'] as const,\n mcpTools: () => ['arbi', 'mcpTools'] as const,\n models: () => ['arbi', 'models'] as const,\n availableModels: () => ['arbi', 'availableModels'] as const,\n /** The workspace Assistant's brief. */\n assistantBrief: (workspaceId: string) => ['arbi', 'assistantBrief', workspaceId] as const,\n /** Whether the workspace Assistant is waiting, working or idle. */\n assistantStatus: (workspaceId: string) => ['arbi', 'assistantStatus', workspaceId] as const,\n /** What the workspace Assistant did with each arrival. */\n assistantArrivals: (workspaceId: string) => ['arbi', 'assistantArrivals', workspaceId] as const,\n modelConnections: (userId?: string) => ['arbi', 'modelConnections', userId] as const,\n directModelUsage: (userId?: string) => ['arbi', 'directModelUsage', userId] as const,\n /** The signed-in user's own profile (name, picture, email). */\n profile: () => ['arbi', 'profile'] as const,\n identity: () => ['arbi', 'identity'] as const,\n /** The signed-in user's settings record (notification preferences, flags). */\n userSettings: () => ['arbi', 'userSettings'] as const,\n /** Every notification list: the prefix a delete, a read receipt or an arrival invalidates. */\n allSupportTickets: () => ['arbi', 'support'] as const,\n supportTickets: () => ['arbi', 'support', 'tickets'] as const,\n supportTicket: (id: number) => ['arbi', 'support', 'tickets', id] as const,\n allNotifications: () => ['arbi', 'notifications'] as const,\n /** The newest `limit` notifications, received and sent. */\n notifications: (limit: number) => ['arbi', 'notifications', limit] as const,\n /** The documents a workspace may use as its Word house template. */\n houseTemplateCandidates: (workspaceId: string) =>\n ['arbi', 'houseTemplateCandidates', workspaceId] as const,\n // \u2500\u2500 Storage, archive \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Every storage view (projects, items, names, Recently deleted): what a restore or delete refreshes. */\n storage: () => ['arbi', 'storage'] as const,\n /** What each project stores; no params: every such list. */\n storageProjects: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'projects'] as const)\n : (['arbi', 'storage', 'projects', params] as const),\n /** The largest items stored; no params: every such list. */\n storageItems: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'items'] as const)\n : (['arbi', 'storage', 'items', params] as const),\n /** Decrypted document names of storage items. */\n storageItemNames: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'names'] as const)\n : (['arbi', 'storage', 'names', params] as const),\n /** The deployment's storage day by day. */\n storageSnapshots: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'snapshots'] as const)\n : (['arbi', 'storage', 'snapshots', params] as const),\n /** A workspace's Recently deleted documents; no id: every workspace's. */\n workspaceTrash: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'storage', 'workspaceTrash'] as const)\n : (['arbi', 'storage', 'workspaceTrash', workspaceId] as const),\n /** A workspace's archive state; no id: every workspace's. */\n workspaceArchive: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceArchive'] as const)\n : (['arbi', 'workspaceArchive', workspaceId] as const),\n // \u2500\u2500 Databases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n // Every key below names its workspace right after its kind: a list read in one workspace is never\n // served, or overwritten, in another (the list is the session's open workspace on the server).\n /** Every database query of every workspace (what a write or a switch refreshes). */\n databases: () => ['arbi', 'databases'] as const,\n /** A workspace's databases; no id: every workspace's. */\n databaseList: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'list'] as const)\n : (['arbi', 'databases', 'list', workspaceId] as const),\n /** One database of a workspace; no workspace: every one read. */\n database: (workspaceId?: string, databaseId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'one'] as const)\n : (['arbi', 'databases', 'one', workspaceId, databaseId ?? ''] as const),\n /**\n * A database's rows (a search); no workspace: every database's, no params: every search of one.\n * `['arbi', 'databases', 'rows', workspaceId, databaseId, params]`.\n */\n databaseRows: (workspaceId?: string, databaseId?: string, params?: object) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'rows'] as const)\n : params === undefined\n ? (['arbi', 'databases', 'rows', workspaceId, databaseId ?? ''] as const)\n : (['arbi', 'databases', 'rows', workspaceId, databaseId ?? '', params] as const),\n /** A workspace's pages; no id: every workspace's. */\n pages: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'pages'] as const)\n : (['arbi', 'pages', workspaceId] as const),\n /**\n * Saved table views a workspace's session sees: of one table (a database id or `documents`);\n * no target: every table's; no workspace: every workspace's.\n */\n tableViews: (workspaceId?: string, target?: string) =>\n workspaceId === undefined\n ? (['arbi', 'table-views'] as const)\n : target === undefined\n ? (['arbi', 'table-views', workspaceId] as const)\n : (['arbi', 'table-views', workspaceId, target] as const),\n /**\n * A view's rows with its database (a page's table block), under `databaseRows`' prefix so every\n * row write refreshes it: the database is the view's, unknown until read.\n */\n tableViewRows: (workspaceId: string, viewId: string) =>\n ['arbi', 'databases', 'rows', workspaceId, '', { view: viewId }] as const,\n /** A workspace's items counted on the server (a chart); no workspace: every workspace's. */\n workspaceAggregate: (workspaceId?: string, query?: object) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceAggregate'] as const)\n : (['arbi', 'workspaceAggregate', workspaceId, query ?? {}] as const),\n /** A database's rows grouped and measured (a chart); no workspace: every database's. */\n databaseAggregate: (workspaceId?: string, databaseId?: string, request?: object) =>\n workspaceId === undefined\n ? (['arbi', 'databases', 'aggregate'] as const)\n : (['arbi', 'databases', 'aggregate', workspaceId, databaseId ?? '', request ?? {}] as const),\n // \u2500\u2500 Configs, health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Under `configs()`: the saved configuration versions. */\n configVersions: () => ['arbi', 'configs', 'versions'] as const,\n /** Under `configs()`: the JSON schema of every config model. */\n configSchema: () => ['arbi', 'configs', 'schema'] as const,\n /** Under `configs()`: one configuration. */\n config: (configId: string) => ['arbi', 'configs', 'one', configId] as const,\n /** The remote model providers' health. */\n remoteModels: () => ['arbi', 'remoteModels'] as const,\n // \u2500\u2500 Conversations \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Under the conversations prefix: what a parked run waits for the owner to allow. */\n conversationPendingAuth: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'pending-auth'] as const,\n // \u2500\u2500 Document tools \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** Signatures on a document (a version); no id: every document's. */\n documentSignatures: (docId?: string, version?: number | null) =>\n docId === undefined\n ? (['arbi', 'documentSignatures'] as const)\n : (['arbi', 'documentSignatures', docId, version ?? null] as const),\n /** The certificate of a signature reference. */\n signatureVerification: (reference: string) =>\n ['arbi', 'signatureVerification', reference] as const,\n /** Every signature request list: what a request write refreshes. */\n signatureRequests: () => ['arbi', 'signatureRequests'] as const,\n signatureRequestsForDocument: (docId: string) =>\n ['arbi', 'signatureRequests', 'document', docId] as const,\n /** Who may sign in a workspace; no id: every workspace's. */\n signatureCandidates: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'signatureRequests', 'candidates'] as const)\n : (['arbi', 'signatureRequests', 'candidates', workspaceId] as const),\n /** The user's saved (informal) signature. */\n savedSignature: () => ['arbi', 'savedSignature'] as const,\n /** An html/react artifact's source. */\n artifactSource: (docId: string) => ['arbi', 'artifactSource', docId] as const,\n /** An artifact's text, under its parsed content (refreshed with it). */\n artifactText: (docId: string) => ['arbi', 'parsedDoc', docId, 'marker', 'artifact-text'] as const,\n /** An image document's bytes as an object URL. */\n assetImage: (docId: string) => ['arbi', 'assetImage', docId] as const,\n // \u2500\u2500 Misc \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** An agent config's model tier (the builder's badge). */\n agentConfigModel: (configId: string) => ['arbi', 'agentConfigModel', configId] as const,\n /** Under `billingQuotes()`: the price of a plan change. */\n billingPreview: (projectExtId: string, change: unknown) =>\n ['arbi', 'billingQuote', 'preview', projectExtId, change] as const,\n billingPlanQuote: (projectExtId: string | null, body: unknown) =>\n ['arbi', 'billingQuote', 'plan', projectExtId, body] as const,\n billingAddonQuote: (projectExtId: string, kind: string) =>\n ['arbi', 'billingQuote', 'addon', projectExtId, kind] as const,\n /** Under `contacts()`: a search of the people one can reach. */\n contactSearch: (term: string) => ['arbi', 'contacts', 'search', term] as const,\n /** Under the workspace's facts: a filtered list. */\n factList: (workspaceId: string, filter: unknown) =>\n ['arbi', 'facts', workspaceId, filter] as const,\n /**\n * Under `skills()`: a workspace's list, hidden ones included or not. Without a marketplace the\n * server lists the open workspace's skills, so the list is kept per workspace.\n */\n skillList: (workspaceId: string, includeHidden: boolean) =>\n ['arbi', 'skills', 'list', workspaceId, includeHidden] as const,\n /** Under the project's events: one kind, one page size. */\n projectEventList: (projectExtId: string, kind: string, limit: number | 'default') =>\n ['arbi', 'projects', projectExtId, 'events', kind, limit] as const,\n /** The documents pinned for offline reading on this device. */\n offlineDocuments: () => ['arbi', 'offlineDocuments'] as const,\n /** Notifications of one kind for a deployment's user (polled). */\n typedNotifications: (kind: string, apiUrl: string, userId: string | undefined) =>\n ['arbi', 'typedNotifications', kind, apiUrl, userId ?? ''] as const,\n}\n\n/**\n * Keys of the mutations a host may need to follow (its own caches outside these hooks), e.g. with\n * a `MutationCache` subscription: a workflow run creates a task in the host's own task list.\n */\nexport const arbiMutationKeys = {\n /** A member's role changed. */\n setWorkspaceMemberRoles: () => ['arbi', 'workspaces', 'roles'] as const,\n runWorkflow: () => ['arbi', 'workflows', 'run'] as const,\n startWorkflow: () => ['arbi', 'workflows', 'start'] as const,\n updateTagKindSchema: () => ['arbi', 'tags', 'kinds', 'update'] as const,\n createTag: () => ['arbi', 'tags', 'create'] as const,\n updateTag: () => ['arbi', 'tags', 'update'] as const,\n deleteTag: () => ['arbi', 'tags', 'delete'] as const,\n extractEntities: () => ['arbi', 'tags', 'entities', 'extract'] as const,\n updateDocuments: () => ['arbi', 'documents', 'update'] as const,\n deleteDocuments: () => ['arbi', 'documents', 'delete'] as const,\n uploadDocuments: () => ['arbi', 'documents', 'upload'] as const,\n uploadUrls: () => ['arbi', 'documents', 'uploadUrls'] as const,\n assignDocTags: () => ['arbi', 'doctags', 'assign'] as const,\n removeDocTags: () => ['arbi', 'doctags', 'remove'] as const,\n updateDocTag: () => ['arbi', 'doctags', 'update'] as const,\n generateDocTags: () => ['arbi', 'doctags', 'generate'] as const,\n /** Members added to or removed from a workspace (leaving included). */\n workspaceMembership: () => ['arbi', 'workspaces', 'members'] as const,\n /** A chat turn being sent (the app's send pipeline). */\n sendMessage: () => ['arbi', 'conversations', 'send'] as const,\n}\n\n/**\n * Query keys of the calendar hooks, all under `['arbi', 'calendar']`. The calendar is the user's,\n * not a workspace's; only the overlays carry the open workspace.\n */\nexport const calendarQueryKeys = {\n all: () => ['arbi', 'calendar'] as const,\n settings: () => ['arbi', 'calendar', 'settings'] as const,\n calendars: () => ['arbi', 'calendar', 'calendars'] as const,\n /** Every event list: the prefix an event write invalidates. */\n events: () => ['arbi', 'calendar', 'events'] as const,\n eventList: (p: ListEventsParams) =>\n [\n 'arbi',\n 'calendar',\n 'events',\n { start: p.start, end: p.end, calendars: p.calendars?.join(',') ?? null },\n ] as const,\n /** Every single event read. */\n eventDetails: () => ['arbi', 'calendar', 'event'] as const,\n event: (id: string, recurrenceId?: string | null) =>\n ['arbi', 'calendar', 'event', id, recurrenceId ?? null] as const,\n shares: (calId: string) => ['arbi', 'calendar', 'shares', calId] as const,\n invitations: () => ['arbi', 'calendar', 'invitations'] as const,\n holidayCountries: () => ['arbi', 'calendar', 'holiday-countries'] as const,\n allRooms: () => ['arbi', 'calendar', 'rooms'] as const,\n rooms: (q: RoomQuery) => ['arbi', 'calendar', 'rooms', q] as const,\n freebusy: (attendees: string[], start: string, end: string) =>\n ['arbi', 'calendar', 'freebusy', attendees.join(','), start, end] as const,\n allLookups: () => ['arbi', 'calendar', 'lookup'] as const,\n lookup: (uid: string) => ['arbi', 'calendar', 'lookup', uid] as const,\n overlays: (workspaceId: string | null, w?: CalendarWindow, layers?: OverlayLayerName[]) =>\n [\n 'arbi',\n 'calendar',\n 'overlays',\n workspaceId,\n w ? { start: w.start, end: w.end, layers: layers?.join(',') } : null,\n ] as const,\n accounts: () => ['arbi', 'calendar', 'accounts'] as const,\n caldavProfiles: () => ['arbi', 'calendar', 'caldav-profiles'] as const,\n bookingPages: () => ['arbi', 'calendar', 'booking-pages'] as const,\n /** The offline outbox (writes made offline, not yet sent). */\n outbox: () => ['arbi', 'calendar', 'outbox'] as const,\n}\n\n/** Query keys of the call hooks, all under `['arbi', 'calls']`. Calls are the user's, not a workspace's. */\nexport const callQueryKeys = {\n all: () => ['arbi', 'calls'] as const,\n config: () => ['arbi', 'calls', 'config'] as const,\n call: (callExtId: string) => ['arbi', 'calls', 'call', callExtId] as const,\n /** Everything about a call's recordings: the prefix a recording event invalidates. */\n recordingsOf: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId] as const,\n recordings: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId, 'list'] as const,\n recording: (callExtId: string, recordingExtId: string) =>\n ['arbi', 'calls', 'recordings', callExtId, 'one', recordingExtId] as const,\n inviteLinks: (callExtId: string) => ['arbi', 'calls', 'invite-links', callExtId] as const,\n}\n\nexport const connectorQueryKeys = {\n all: () => ['arbi', 'connectors'] as const,\n catalog: () => ['arbi', 'connectors', 'catalog'] as const,\n mine: () => ['arbi', 'connectors', 'mine'] as const,\n mailboxFolders: (vendor: string) => ['arbi', 'connectors', 'folders', vendor] as const,\n mailboxSyncProgress: (vendor: string, workspaceExtId: string) =>\n ['arbi', 'connectors', 'sync-progress', vendor, workspaceExtId] as const,\n allMailboxSyncProgress: () => ['arbi', 'connectors', 'sync-progress'] as const,\n driveFolders: (vendor: string) => ['arbi', 'connectors', 'drive-folders', vendor] as const,\n driveFolderChildren: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-children', vendor, itemId] as const,\n driveFolderDocCount: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-doc-count', vendor, itemId] as const,\n driveSyncEstimate: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-estimate', vendor] as const,\n driveSyncProgress: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-progress', vendor] as const,\n allDriveSyncProgress: () => ['arbi', 'connectors', 'drive-sync-progress'] as const,\n slack: () => ['arbi', 'connectors', 'slack'] as const,\n}\n\nexport const mailQueryKeys = {\n all: () => ['arbi', 'mail'] as const,\n policy: () => ['arbi', 'mail', 'policy'] as const,\n accounts: () => ['arbi', 'mail', 'accounts'] as const,\n unlock: (accountId: string | undefined, sessionKey: string | null) =>\n ['arbi', 'mail', 'unlock', accountId, sessionKey ?? ''] as const,\n allFolders: () => ['arbi', 'mail', 'folders'] as const,\n folders: (accountId: string | undefined) => ['arbi', 'mail', 'folders', accountId] as const,\n allMessages: () => ['arbi', 'mail', 'messages'] as const,\n messages: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'messages', accountId, folderId, query, cursor] as const,\n message: (accountId: string | undefined, messageId: string | null | undefined) =>\n ['arbi', 'mail', 'message', accountId, messageId] as const,\n /** Every conversation list: the prefix a flag or move patches or refreshes. */\n allConversations: () => ['arbi', 'mail', 'conversations'] as const,\n conversations: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'conversations', accountId, folderId, query, cursor] as const,\n /** Every thread read of an account. */\n accountThreads: (accountId: string) => ['arbi', 'mail', 'thread', accountId] as const,\n thread: (\n accountId: string | undefined,\n threadId: string | null | undefined,\n folderId: string | undefined\n ) => ['arbi', 'mail', 'thread', accountId, threadId, folderId] as const,\n /** Where the ARBI mailbox files mail (folders and conversations, per workspace). */\n nativeFiling: () => ['arbi', 'mail', 'filing', 'native'] as const,\n /** Every filing lookup: refreshed after mail is added to a workspace or a rule is stopped. */\n allFiling: () => ['arbi', 'mail', 'filing'] as const,\n filing: (accountId: string | undefined, messageIds: string[], threadIds: string[]) =>\n ['arbi', 'mail', 'filing', accountId, messageIds.join(' '), threadIds.join(' ')] as const,\n /** The key the user's client keys older native mail with: outside the `['arbi', 'mail']` prefix, so\n * refreshing mail never fetches it again. */\n threadSecret: () => ['arbi', 'mail-thread-secret'] as const,\n /** The projects an email's AI work can be billed to. */\n projects: () => ['arbi', 'mail', 'projects'] as const,\n /** A saved draft prepared for editing. */\n draftCompose: (accountId: string | undefined, draftId: string | undefined) =>\n ['arbi', 'mail', 'draft-compose', accountId, draftId] as const,\n attachmentText: (accountId: string, messageId: string, attachmentId: string) =>\n ['arbi', 'mail', 'attachment-text', accountId, messageId, attachmentId] as const,\n}\n\n/** `pdf`: the document as a PDF; `original`: the stored file (an image, a recording, a sheet). */\nexport type DocumentBytesKind = 'pdf' | 'original'\n\n/** Every version and kind of a document's bytes: the prefix a new version invalidates. */\nexport const documentBytesKey = (\n documentRef: string,\n version?: number | null,\n kind?: DocumentBytesKind\n) =>\n version === undefined\n ? (['arbi', 'documentBytes', documentRef] as const)\n : (['arbi', 'documentBytes', documentRef, version, kind ?? 'pdf'] as const)\n\n/** Whether `queryKey` lies under `prefix` (a factory key): React Query's own prefix match. */\nexport function isUnderQueryKey(queryKey: readonly unknown[], prefix: readonly unknown[]): boolean {\n return prefix.every((part, i) => queryKey[i] === part)\n}\n"],
|
|
5
|
+
"mappings": "AAgBO,MAAM,gBAAgB;AAAA,EAC3B,iBAAiB,CAAC,aAAwC,OACxD,CAAC,QAAQ,oBAAoB,eAAe,MAAM,EAAE;AAAA,EACtD,oBAAoB,CAAC,gBACnB,CAAC,QAAQ,aAAa,aAAa,WAAW;AAAA,EAChD,YAAY,MAAM,CAAC,QAAQ,YAAY;AAAA,EACvC,WAAW,CAAC,OAAe,CAAC,QAAQ,aAAa,EAAE;AAAA,EACnD,cAAc,CAAC,IAAY,WAAoB,CAAC,QAAQ,gBAAgB,IAAI,MAAM;AAAA,EAClF,YAAY,MAAM,CAAC,QAAQ,YAAY;AAAA;AAAA,EAEvC,mBAAmB,MAAM,CAAC,QAAQ,gBAAgB;AAAA,EAClD,gBAAgB,CAAC,gBAAwB,CAAC,QAAQ,kBAAkB,WAAW;AAAA;AAAA,EAE/E,cAAc,MAAM,CAAC,QAAQ,WAAW;AAAA,EACxC,WAAW,CAAC,gBAAwB,CAAC,QAAQ,aAAa,WAAW;AAAA;AAAA,EAErE,UAAU,CAAC,UAAkB,CAAC,QAAQ,YAAY,KAAK;AAAA,EACvD,eAAe,CAAC,WACd,CAAC,QAAQ,iBAAiB,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC;AAAA;AAAA,EAExD,qBAAqB,MAAM,CAAC,QAAQ,kBAAkB;AAAA,EACtD,kBAAkB,CAAC,aAAqB,cACtC,CAAC,QAAQ,oBAAoB,aAAa,SAAS;AAAA;AAAA,EAErD,qBAAqB,MAAM,CAAC,QAAQ,kBAAkB;AAAA,EACtD,kBAAkB,CAAC,UAAkB,CAAC,QAAQ,oBAAoB,KAAK;AAAA,EACvE,eAAe,CAAC,gBAAwB,CAAC,QAAQ,iBAA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AAW,IACrC,CAAC,QAAQ,iBAAiB,aAAa,SAAS,QAAQ,KAAK;AAG7D,SAAS,gBAAgB,UAA8B,QAAqC;AACjG,SAAO,OAAO,MAAM,CAAC,MAAM,MAAM,SAAS,CAAC,MAAM,IAAI;AACvD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -11,7 +11,9 @@ function createConversationPanels(source, options) {
|
|
|
11
11
|
const mode = defaultModes[panelId] ?? "docked";
|
|
12
12
|
const state = layout.getLayout();
|
|
13
13
|
const preserveDocked = mode === "overlay" && state.shell.panels.docked === conversationPanel && state.tabs.activeDm?.startsWith("agt-");
|
|
14
|
-
|
|
14
|
+
const preserveOverlay = (mode === "overlay" || mode === "docked") && panelId !== conversationPanel && state.shell.panels.overlay === conversationPanel && state.tabs.activeDm?.startsWith("agt-");
|
|
15
|
+
if (preserveOverlay) layout.openPanel(panelId, mode, { preserveOverlay: true });
|
|
16
|
+
else if (preserveDocked) layout.openPanel(panelId, mode, { preserveDocked: true });
|
|
15
17
|
else layout.openPanel(panelId, mode);
|
|
16
18
|
};
|
|
17
19
|
return {
|
|
@@ -21,7 +23,7 @@ function createConversationPanels(source, options) {
|
|
|
21
23
|
const state = layout.getLayout();
|
|
22
24
|
const { main } = state.shell.panels;
|
|
23
25
|
if (main === conversationPanel && state.tabs.activeDm?.startsWith("agt-"))
|
|
24
|
-
layout.openPanel(conversationPanel, "
|
|
26
|
+
layout.openPanel(conversationPanel, defaultModes[conversationPanel] ?? "overlay");
|
|
25
27
|
else if (main && mainAreaPanels.includes(main)) showPanel(main, false);
|
|
26
28
|
},
|
|
27
29
|
openDmTab(recipientId, messageId) {
|
|
@@ -29,7 +31,7 @@ function createConversationPanels(source, options) {
|
|
|
29
31
|
layout.openDmTab(recipientId ?? null, messageId);
|
|
30
32
|
if (recipientId?.startsWith("agt-")) {
|
|
31
33
|
showPanel(agentGalleryPanel, false);
|
|
32
|
-
layout.openPanel(conversationPanel, "
|
|
34
|
+
layout.openPanel(conversationPanel, defaultModes[conversationPanel] ?? "overlay");
|
|
33
35
|
} else if (!isPanelOpen(layout.getLayout(), conversationPanel)) showPanel(conversationPanel);
|
|
34
36
|
layout.setFocusedArea(conversationPanel);
|
|
35
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/session/conversation-panels.ts"],
|
|
4
|
-
"sourcesContent": ["/** Compose a retained native agent conversation with a site's panel ids and default placements. */\nimport { isPanelOpen, type ArbiLayoutStore, type ArbiPanelMode } from './layout'\n\ntype Layout = Pick<\n ArbiLayoutStore,\n 'getLayout' | 'openPanel' | 'closePanel' | 'openDmTab' | 'setFocusedArea'\n>\ninterface ConversationPanels {\n conversationPanel: string\n agentGalleryPanel: string\n mainAreaPanels: readonly string[]\n defaultModes: Readonly<Record<string, ArbiPanelMode>>\n}\n\nexport function createConversationPanels(\n source: Layout | (() => Layout),\n options: ConversationPanels\n) {\n const getLayout = () => (typeof source === 'function' ? source() : source)\n const { conversationPanel, agentGalleryPanel, mainAreaPanels, defaultModes } = options\n const showPanel = (panelId: string, show = true) => {\n const layout = getLayout()\n if (!show) {\n layout.closePanel(panelId)\n return\n }\n const mode = defaultModes[panelId] ?? 'docked'\n const state = layout.getLayout()\n const preserveDocked =\n mode === 'overlay' &&\n state.shell.panels.docked === conversationPanel &&\n state.tabs.activeDm?.startsWith('agt-')\n if (preserveDocked) layout.openPanel(panelId, mode, { preserveDocked: true })\n else layout.openPanel(panelId, mode)\n }\n return {\n showPanel,\n closeMainAreaPanels() {\n const layout = getLayout()\n const state = layout.getLayout()\n const { main } = state.shell.panels\n if (main === conversationPanel && state.tabs.activeDm?.startsWith('agt-'))\n layout.openPanel(conversationPanel, '
|
|
5
|
-
"mappings": "AACA,SAAS,mBAA6D;AAa/D,SAAS,yBACd,QACA,SACA;AACA,QAAM,YAAY,MAAO,OAAO,WAAW,aAAa,OAAO,IAAI;AACnE,QAAM,EAAE,mBAAmB,mBAAmB,gBAAgB,aAAa,IAAI;AAC/E,QAAM,YAAY,CAAC,SAAiB,OAAO,SAAS;AAClD,UAAM,SAAS,UAAU;AACzB,QAAI,CAAC,MAAM;AACT,aAAO,WAAW,OAAO;AACzB;AAAA,IACF;AACA,UAAM,OAAO,aAAa,OAAO,KAAK;AACtC,UAAM,QAAQ,OAAO,UAAU;AAC/B,UAAM,iBACJ,SAAS,aACT,MAAM,MAAM,OAAO,WAAW,qBAC9B,MAAM,KAAK,UAAU,WAAW,MAAM;AACxC,QAAI,eAAgB,QAAO,UAAU,SAAS,MAAM,EAAE,gBAAgB,KAAK,CAAC;AAAA,
|
|
4
|
+
"sourcesContent": ["/** Compose a retained native agent conversation with a site's panel ids and default placements. */\nimport { isPanelOpen, type ArbiLayoutStore, type ArbiPanelMode } from './layout'\n\ntype Layout = Pick<\n ArbiLayoutStore,\n 'getLayout' | 'openPanel' | 'closePanel' | 'openDmTab' | 'setFocusedArea'\n>\ninterface ConversationPanels {\n conversationPanel: string\n agentGalleryPanel: string\n mainAreaPanels: readonly string[]\n defaultModes: Readonly<Record<string, ArbiPanelMode>>\n}\n\nexport function createConversationPanels(\n source: Layout | (() => Layout),\n options: ConversationPanels\n) {\n const getLayout = () => (typeof source === 'function' ? source() : source)\n const { conversationPanel, agentGalleryPanel, mainAreaPanels, defaultModes } = options\n const showPanel = (panelId: string, show = true) => {\n const layout = getLayout()\n if (!show) {\n layout.closePanel(panelId)\n return\n }\n const mode = defaultModes[panelId] ?? 'docked'\n const state = layout.getLayout()\n const preserveDocked =\n mode === 'overlay' &&\n state.shell.panels.docked === conversationPanel &&\n state.tabs.activeDm?.startsWith('agt-')\n const preserveOverlay =\n (mode === 'overlay' || mode === 'docked') &&\n panelId !== conversationPanel &&\n state.shell.panels.overlay === conversationPanel &&\n state.tabs.activeDm?.startsWith('agt-')\n if (preserveOverlay) layout.openPanel(panelId, mode, { preserveOverlay: true })\n else if (preserveDocked) layout.openPanel(panelId, mode, { preserveDocked: true })\n else layout.openPanel(panelId, mode)\n }\n return {\n showPanel,\n closeMainAreaPanels() {\n const layout = getLayout()\n const state = layout.getLayout()\n const { main } = state.shell.panels\n if (main === conversationPanel && state.tabs.activeDm?.startsWith('agt-'))\n layout.openPanel(conversationPanel, defaultModes[conversationPanel] ?? 'overlay')\n else if (main && mainAreaPanels.includes(main)) showPanel(main, false)\n },\n openDmTab(recipientId?: string | null, messageId?: string) {\n const layout = getLayout()\n layout.openDmTab(recipientId ?? null, messageId)\n if (recipientId?.startsWith('agt-')) {\n showPanel(agentGalleryPanel, false)\n layout.openPanel(conversationPanel, defaultModes[conversationPanel] ?? 'overlay')\n } else if (!isPanelOpen(layout.getLayout(), conversationPanel)) showPanel(conversationPanel)\n layout.setFocusedArea(conversationPanel)\n },\n }\n}\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,mBAA6D;AAa/D,SAAS,yBACd,QACA,SACA;AACA,QAAM,YAAY,MAAO,OAAO,WAAW,aAAa,OAAO,IAAI;AACnE,QAAM,EAAE,mBAAmB,mBAAmB,gBAAgB,aAAa,IAAI;AAC/E,QAAM,YAAY,CAAC,SAAiB,OAAO,SAAS;AAClD,UAAM,SAAS,UAAU;AACzB,QAAI,CAAC,MAAM;AACT,aAAO,WAAW,OAAO;AACzB;AAAA,IACF;AACA,UAAM,OAAO,aAAa,OAAO,KAAK;AACtC,UAAM,QAAQ,OAAO,UAAU;AAC/B,UAAM,iBACJ,SAAS,aACT,MAAM,MAAM,OAAO,WAAW,qBAC9B,MAAM,KAAK,UAAU,WAAW,MAAM;AACxC,UAAM,mBACH,SAAS,aAAa,SAAS,aAChC,YAAY,qBACZ,MAAM,MAAM,OAAO,YAAY,qBAC/B,MAAM,KAAK,UAAU,WAAW,MAAM;AACxC,QAAI,gBAAiB,QAAO,UAAU,SAAS,MAAM,EAAE,iBAAiB,KAAK,CAAC;AAAA,aACrE,eAAgB,QAAO,UAAU,SAAS,MAAM,EAAE,gBAAgB,KAAK,CAAC;AAAA,QAC5E,QAAO,UAAU,SAAS,IAAI;AAAA,EACrC;AACA,SAAO;AAAA,IACL;AAAA,IACA,sBAAsB;AACpB,YAAM,SAAS,UAAU;AACzB,YAAM,QAAQ,OAAO,UAAU;AAC/B,YAAM,EAAE,KAAK,IAAI,MAAM,MAAM;AAC7B,UAAI,SAAS,qBAAqB,MAAM,KAAK,UAAU,WAAW,MAAM;AACtE,eAAO,UAAU,mBAAmB,aAAa,iBAAiB,KAAK,SAAS;AAAA,eACzE,QAAQ,eAAe,SAAS,IAAI,EAAG,WAAU,MAAM,KAAK;AAAA,IACvE;AAAA,IACA,UAAU,aAA6B,WAAoB;AACzD,YAAM,SAAS,UAAU;AACzB,aAAO,UAAU,eAAe,MAAM,SAAS;AAC/C,UAAI,aAAa,WAAW,MAAM,GAAG;AACnC,kBAAU,mBAAmB,KAAK;AAClC,eAAO,UAAU,mBAAmB,aAAa,iBAAiB,KAAK,SAAS;AAAA,MAClF,WAAW,CAAC,YAAY,OAAO,UAAU,GAAG,iBAAiB,EAAG,WAAU,iBAAiB;AAC3F,aAAO,eAAe,iBAAiB;AAAA,IACzC;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/session/layout.js
CHANGED
|
@@ -120,6 +120,9 @@ function openPanelIn(panels, panelId, mode, options) {
|
|
|
120
120
|
popout: leave(panels.popout),
|
|
121
121
|
modes: { ...panels.modes, [panelId]: mode }
|
|
122
122
|
};
|
|
123
|
+
if (options?.preserveOverlay && panels.overlay && panels.overlay !== panelId)
|
|
124
|
+
next.retainedOverlay = panels.overlay;
|
|
125
|
+
else if (panels.retainedOverlay === panelId) next.retainedOverlay = null;
|
|
123
126
|
if (mode === "docked") return { ...next, docked: panelId, overlay: null };
|
|
124
127
|
if (mode === "overlay")
|
|
125
128
|
return { ...next, overlay: panelId, docked: options?.preserveDocked ? next.docked : null };
|
|
@@ -129,6 +132,7 @@ function closePanelIn(panels, panelId) {
|
|
|
129
132
|
const leave = (slot) => slot === panelId ? null : slot;
|
|
130
133
|
return {
|
|
131
134
|
...panels,
|
|
135
|
+
...panels.retainedOverlay === panelId ? { retainedOverlay: null } : {},
|
|
132
136
|
main: leave(panels.main),
|
|
133
137
|
docked: leave(panels.docked),
|
|
134
138
|
overlay: leave(panels.overlay),
|
|
@@ -136,6 +140,7 @@ function closePanelIn(panels, panelId) {
|
|
|
136
140
|
};
|
|
137
141
|
}
|
|
138
142
|
function panelPlace(panels, panelId) {
|
|
143
|
+
if (panels.retainedOverlay === panelId) return "overlay";
|
|
139
144
|
return PANEL_MODES.find((mode) => panels[mode] === panelId) ?? null;
|
|
140
145
|
}
|
|
141
146
|
const DOCUMENT_VIEWER_PANEL = "document-viewer";
|