@agimon-ai/po-web-dashboard 0.0.0-alpha.166 → 0.0.0-alpha.167
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/index.cjs +2 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/views.cjs +5 -1
- package/dist/views.d.mts +4 -2
- package/dist/views.mjs +4 -2
- package/dist/web/components/ConversationAside.cjs +90 -0
- package/dist/web/components/ConversationAside.cjs.map +1 -0
- package/dist/web/components/ConversationAside.d.mts +20 -0
- package/dist/web/components/ConversationAside.d.mts.map +1 -0
- package/dist/web/components/ConversationAside.mjs +90 -0
- package/dist/web/components/ConversationAside.mjs.map +1 -0
- package/dist/web/features/activity/ActivityDock.cjs +7 -4
- package/dist/web/features/activity/ActivityDock.cjs.map +1 -1
- package/dist/web/features/activity/ActivityDock.d.mts +11 -1
- package/dist/web/features/activity/ActivityDock.d.mts.map +1 -1
- package/dist/web/features/activity/ActivityDock.mjs +7 -4
- package/dist/web/features/activity/ActivityDock.mjs.map +1 -1
- package/dist/web/features/activity/DockTabs.cjs +63 -39
- package/dist/web/features/activity/DockTabs.cjs.map +1 -1
- package/dist/web/features/activity/DockTabs.d.mts +12 -2
- package/dist/web/features/activity/DockTabs.d.mts.map +1 -1
- package/dist/web/features/activity/DockTabs.mjs +64 -40
- package/dist/web/features/activity/DockTabs.mjs.map +1 -1
- package/dist/web/features/session/DockConversation.cjs +36 -0
- package/dist/web/features/session/DockConversation.cjs.map +1 -0
- package/dist/web/features/session/DockConversation.d.mts +16 -0
- package/dist/web/features/session/DockConversation.d.mts.map +1 -0
- package/dist/web/features/session/DockConversation.mjs +36 -0
- package/dist/web/features/session/DockConversation.mjs.map +1 -0
- package/dist/web/features/session/Timeline.cjs +62 -52
- package/dist/web/features/session/Timeline.cjs.map +1 -1
- package/dist/web/features/session/Timeline.d.mts +11 -2
- package/dist/web/features/session/Timeline.d.mts.map +1 -1
- package/dist/web/features/session/Timeline.mjs +62 -52
- package/dist/web/features/session/Timeline.mjs.map +1 -1
- package/dist/web/lib/composition.cjs +0 -4
- package/dist/web/lib/composition.cjs.map +1 -1
- package/dist/web/lib/composition.d.mts.map +1 -1
- package/dist/web/lib/composition.mjs +0 -4
- package/dist/web/lib/composition.mjs.map +1 -1
- package/dist/web/lib/useMediaQuery.cjs +21 -0
- package/dist/web/lib/useMediaQuery.cjs.map +1 -0
- package/dist/web/lib/useMediaQuery.d.mts +9 -0
- package/dist/web/lib/useMediaQuery.d.mts.map +1 -0
- package/dist/web/lib/useMediaQuery.mjs +21 -0
- package/dist/web/lib/useMediaQuery.mjs.map +1 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -90,6 +90,7 @@ const require_dashboardStateStore = require("./web/stores/dashboardStateStore.cj
|
|
|
90
90
|
const require_cloudHub = require("./web/lib/cloudHub.cjs");
|
|
91
91
|
const require_hostPairing = require("./web/lib/hostPairing.cjs");
|
|
92
92
|
const require_pairedHosts = require("./web/lib/pairedHosts.cjs");
|
|
93
|
+
const require_useMediaQuery = require("./web/lib/useMediaQuery.cjs");
|
|
93
94
|
let _agimon_ai_po_core_web = require("@agimon-ai/po-core/web");
|
|
94
95
|
exports.ACCOUNT_SETTINGS_SECTION = require_settingsSections.ACCOUNT_SETTINGS_SECTION;
|
|
95
96
|
exports.BUILTIN_COMMANDS = require_commands.BUILTIN_COMMANDS;
|
|
@@ -704,6 +705,7 @@ exports.useDockFaceBadges = require_composition.useDockFaceBadges;
|
|
|
704
705
|
exports.useDockFaces = require_composition.useDockFaces;
|
|
705
706
|
exports.useFileLinks = require_composition.useFileLinks;
|
|
706
707
|
exports.useHasOlderHistory = require_sessionStore.useHasOlderHistory;
|
|
708
|
+
exports.useMediaQuery = require_useMediaQuery.useMediaQuery;
|
|
707
709
|
exports.useNoSessions = require_sessionsStore.useNoSessions;
|
|
708
710
|
exports.useOpenTab = require_useOpenTab.useOpenTab;
|
|
709
711
|
exports.usePluginSlotProps = require_usePluginSlotProps.usePluginSlotProps;
|
package/dist/index.d.mts
CHANGED
|
@@ -89,4 +89,5 @@ import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStat
|
|
|
89
89
|
import { DashboardRendererProvider, DashboardRenderers } from "./web/lib/dashboardRenderers.mjs";
|
|
90
90
|
import { DesktopPairingBridge, HostPairingGrant, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, createHostBrowserAccount, createHostPairingChannels, hostPairingPrefix, hostPairingStorageKey, pairHost, pairingJson, pairingPost, pairingRequest, readHostPairing, selectedHostAccount, signingFingerprint } from "./web/lib/hostPairing.mjs";
|
|
91
91
|
import { PairedHost, connectPairedHost, forgetPairedHost, onPairedHostsChanged, pairedHosts } from "./web/lib/pairedHosts.mjs";
|
|
92
|
-
export { ACCOUNT_SETTINGS_SECTION, AccountState, ActivityGroup, AddCoordinatorResult, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, BrowserNotificationDeliveryStatus, BrowserNotificationPermissionStatus, BrowserPerformanceEvent, BrowserPerformanceEventName, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerAttachment, ComposerContextAttachment, ComposerFileAttachment, ComposerImageAttachment, ComposerPromptClaim, ComposerSessionState, ComposerTextAttachment, ContextGroup, ContextGroupKind, ContextItem, ContextItemSource, ContextOwner, CreateProfileInput, CreateSessionResult, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, type DashboardRenderers, DashboardRoute, DesktopPairingBridge, DevProxyState, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, HostPairingGrant, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledNativeTemplate, InstalledOnboarding, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledSettingsSection, InstalledUserMessageAction, InstalledWebTemplate, IntercomEntry, LEGACY_WORKSPACE_ID, LeaderConflict, LeaderGroup, LeaderOption, LivePushStatus, LoginFlowResult, LogoutResult, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, MenuClaim, MenuKind, MenuState, Mode, ModeAvailability, ModeSource, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, PairTarget, PairedHost, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, PairingResult, PaletteState, PasskeyOutcome, PasskeySupportView, PlannedWritesInput, PoAccountBridge, PoAccountStatus, PoTeam, PoTeamClient, PoTeamGrant, PoTeamRole, PresetSettingsResult, ProfileIdentity, ProvidersResult, QueuedEntry, RailDialogState, RailRestartState, RailSessionInput, ReadConfigResult, ReadRepositorySettingsResult, ReduceSessionOptions, RemoteAccessState, RemoteStep, RemoveWorkspaceResult, RemovedSessionsResult, ResolvedFill, RestartSessionResult, RestoreRemovedSessionResult, ResumeDraft, ResumeSessionResult, ResumeTarget, ResumeView, ReviveSessionResult, RpcImage, STEP_UP_HEADER_NAME, Selection, SelectionAxis, SessionAsset, SessionGroupsResult, SessionHistoryResult, SessionMcpResult, SessionMcpViewState, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SetSessionRoleResult, SettingsDraftState, SettingsDraftTarget, SettingsSection, SettingsSectionGroup, SettingsWorkspace, SettledEntry, SingleUnit, StateResult, StatusClock, StatusLineInput, StopSessionResult, StoredSessionAttachment, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, TargetResult, TargetsResult, TemplateConfiguration, ThemeState, ThreadTranscriptReader, TimelineEntry, TimelineUnit, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolPromptState, TransientTabActions, UPDATE_REQUIRED_REASON, UiState, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginCompositionPhase, WebPluginCompositionState, WebPluginMountState, WebPluginRegistry, WebTemplateCatalog, WebTemplateDecision, WebTemplateDiagnostic, WorkspaceAdmissionDraft, WorkspaceResult, WorkspaceSandboxRequest, WorkspacesResult, WorkspacesState, WriteConfigResult, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, denyDevice, denyPairing, devProxyStore, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, disableRemoteAccess, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, enableRemoteAccess, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fetchDevProxyTargets, fetchRemoteState, fetchWithStepUp, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHostId, isSessionMcpActivity, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessionMcpClients, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, mintPairingCode, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshAccount, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetDevProxyStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, revokeDevice, revokePairedDevice, revokeSessionMcpClient, revokeTrustedDevice, revokeTrustedNativeDevice, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveRemoteSettings, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, showRemoteOptions, signInWithPasskey, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, turnRemoteAccessOff, turnRemoteAccessOn, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateRemoteSettings, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useSessionMcp, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
|
92
|
+
import { useMediaQuery } from "./web/lib/useMediaQuery.mjs";
|
|
93
|
+
export { ACCOUNT_SETTINGS_SECTION, AccountState, ActivityGroup, AddCoordinatorResult, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, BrowserNotificationDeliveryStatus, BrowserNotificationPermissionStatus, BrowserPerformanceEvent, BrowserPerformanceEventName, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerAttachment, ComposerContextAttachment, ComposerFileAttachment, ComposerImageAttachment, ComposerPromptClaim, ComposerSessionState, ComposerTextAttachment, ContextGroup, ContextGroupKind, ContextItem, ContextItemSource, ContextOwner, CreateProfileInput, CreateSessionResult, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, type DashboardRenderers, DashboardRoute, DesktopPairingBridge, DevProxyState, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, HostPairingGrant, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledNativeTemplate, InstalledOnboarding, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledSettingsSection, InstalledUserMessageAction, InstalledWebTemplate, IntercomEntry, LEGACY_WORKSPACE_ID, LeaderConflict, LeaderGroup, LeaderOption, LivePushStatus, LoginFlowResult, LogoutResult, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, MenuClaim, MenuKind, MenuState, Mode, ModeAvailability, ModeSource, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, PairTarget, PairedHost, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, PairingResult, PaletteState, PasskeyOutcome, PasskeySupportView, PlannedWritesInput, PoAccountBridge, PoAccountStatus, PoTeam, PoTeamClient, PoTeamGrant, PoTeamRole, PresetSettingsResult, ProfileIdentity, ProvidersResult, QueuedEntry, RailDialogState, RailRestartState, RailSessionInput, ReadConfigResult, ReadRepositorySettingsResult, ReduceSessionOptions, RemoteAccessState, RemoteStep, RemoveWorkspaceResult, RemovedSessionsResult, ResolvedFill, RestartSessionResult, RestoreRemovedSessionResult, ResumeDraft, ResumeSessionResult, ResumeTarget, ResumeView, ReviveSessionResult, RpcImage, STEP_UP_HEADER_NAME, Selection, SelectionAxis, SessionAsset, SessionGroupsResult, SessionHistoryResult, SessionMcpResult, SessionMcpViewState, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SetSessionRoleResult, SettingsDraftState, SettingsDraftTarget, SettingsSection, SettingsSectionGroup, SettingsWorkspace, SettledEntry, SingleUnit, StateResult, StatusClock, StatusLineInput, StopSessionResult, StoredSessionAttachment, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, TargetResult, TargetsResult, TemplateConfiguration, ThemeState, ThreadTranscriptReader, TimelineEntry, TimelineUnit, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolPromptState, TransientTabActions, UPDATE_REQUIRED_REASON, UiState, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginCompositionPhase, WebPluginCompositionState, WebPluginMountState, WebPluginRegistry, WebTemplateCatalog, WebTemplateDecision, WebTemplateDiagnostic, WorkspaceAdmissionDraft, WorkspaceResult, WorkspaceSandboxRequest, WorkspacesResult, WorkspacesState, WriteConfigResult, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, denyDevice, denyPairing, devProxyStore, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, disableRemoteAccess, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, enableRemoteAccess, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fetchDevProxyTargets, fetchRemoteState, fetchWithStepUp, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHostId, isSessionMcpActivity, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessionMcpClients, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, mintPairingCode, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshAccount, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetDevProxyStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, revokeDevice, revokePairedDevice, revokeSessionMcpClient, revokeTrustedDevice, revokeTrustedNativeDevice, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveRemoteSettings, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, showRemoteOptions, signInWithPasskey, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, turnRemoteAccessOff, turnRemoteAccessOn, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateRemoteSettings, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useSessionMcp, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
package/dist/index.mjs
CHANGED
|
@@ -89,4 +89,5 @@ import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStat
|
|
|
89
89
|
import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
|
|
90
90
|
import { createHostBrowserAccount, createHostPairingChannels, hostPairingPrefix, hostPairingStorageKey, pairHost, pairingJson, pairingPost, pairingRequest, readHostPairing, selectedHostAccount, signingFingerprint } from "./web/lib/hostPairing.mjs";
|
|
91
91
|
import { connectPairedHost, forgetPairedHost, onPairedHostsChanged, pairedHosts } from "./web/lib/pairedHosts.mjs";
|
|
92
|
-
export { ACCOUNT_SETTINGS_SECTION, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, HOST_SLOTS, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, STEP_UP_HEADER_NAME, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, denyDevice, denyPairing, devProxyStore, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, disableRemoteAccess, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, enableRemoteAccess, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fetchDevProxyTargets, fetchRemoteState, fetchWithStepUp, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHostId, isSessionMcpActivity, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessionMcpClients, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, mintPairingCode, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshAccount, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetDevProxyStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, revokeDevice, revokePairedDevice, revokeSessionMcpClient, revokeTrustedDevice, revokeTrustedNativeDevice, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveRemoteSettings, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, showRemoteOptions, signInWithPasskey, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, turnRemoteAccessOff, turnRemoteAccessOn, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateRemoteSettings, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useSessionMcp, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
|
92
|
+
import { useMediaQuery } from "./web/lib/useMediaQuery.mjs";
|
|
93
|
+
export { ACCOUNT_SETTINGS_SECTION, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, HOST_SLOTS, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, STEP_UP_HEADER_NAME, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, denyDevice, denyPairing, devProxyStore, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, disableRemoteAccess, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, enableRemoteAccess, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fetchDevProxyTargets, fetchRemoteState, fetchWithStepUp, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHostId, isSessionMcpActivity, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessionMcpClients, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, mintPairingCode, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshAccount, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetDevProxyStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, revokeDevice, revokePairedDevice, revokeSessionMcpClient, revokeTrustedDevice, revokeTrustedNativeDevice, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveRemoteSettings, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, showRemoteOptions, signInWithPasskey, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, turnRemoteAccessOff, turnRemoteAccessOn, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateRemoteSettings, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useSessionMcp, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
package/dist/views.cjs
CHANGED
|
@@ -6,6 +6,7 @@ const require_HomePage = require("./web/components/HomePage.cjs");
|
|
|
6
6
|
const require_WorkspacePage = require("./web/components/WorkspacePage.cjs");
|
|
7
7
|
const require_FolderBrowser = require("./web/components/FolderBrowser.cjs");
|
|
8
8
|
const require_AccountButton = require("./web/components/AccountButton.cjs");
|
|
9
|
+
const require_ConversationAside = require("./web/components/ConversationAside.cjs");
|
|
9
10
|
const require_MascotMark = require("./web/components/MascotMark.cjs");
|
|
10
11
|
const require_PluginPage = require("./web/components/PluginPage.cjs");
|
|
11
12
|
const require_ContributedSettings = require("./web/components/ContributedSettings.cjs");
|
|
@@ -39,9 +40,10 @@ const require_QueueSheet = require("./web/features/session/QueueSheet.cjs");
|
|
|
39
40
|
const require_Composer = require("./web/features/session/Composer.cjs");
|
|
40
41
|
const require_MentionPreviews = require("./web/features/session/MentionPreviews.cjs");
|
|
41
42
|
const require_MessageMarkdown = require("./web/features/session/MessageMarkdown.cjs");
|
|
42
|
-
const require_SessionActivity = require("./web/features/session/SessionActivity.cjs");
|
|
43
43
|
const require_ToolCard = require("./web/features/session/ToolCard.cjs");
|
|
44
44
|
const require_Timeline = require("./web/features/session/Timeline.cjs");
|
|
45
|
+
const require_DockConversation = require("./web/features/session/DockConversation.cjs");
|
|
46
|
+
const require_SessionActivity = require("./web/features/session/SessionActivity.cjs");
|
|
45
47
|
const require_SessionTranscriptView = require("./web/features/session/SessionTranscriptView.cjs");
|
|
46
48
|
const require_ThreadView = require("./web/features/session/ThreadView.cjs");
|
|
47
49
|
const require_WelcomePanel = require("./web/components/WelcomePanel.cjs");
|
|
@@ -80,9 +82,11 @@ exports.ContextItemDialog = require_ContextItemDialog.ContextItemDialog;
|
|
|
80
82
|
exports.ContextPanel = require_ContextPanel.ContextPanel;
|
|
81
83
|
exports.ContextPanelView = require_ContextPanel.ContextPanelView;
|
|
82
84
|
exports.ContributedSettings = require_ContributedSettings.ContributedSettings;
|
|
85
|
+
exports.ConversationAside = require_ConversationAside.ConversationAside;
|
|
83
86
|
exports.DashboardTileGrid = require_DashboardTileGrid.DashboardTileGrid;
|
|
84
87
|
exports.DevProxyTargets = require_DevProxyTargets.DevProxyTargets;
|
|
85
88
|
exports.DialogOverlay = require_DialogOverlay.DialogOverlay;
|
|
89
|
+
exports.DockConversation = require_DockConversation.DockConversation;
|
|
86
90
|
exports.DockTabs = require_DockTabs.DockTabs;
|
|
87
91
|
exports.DormantPanel = require_DormantPanel.DormantPanel;
|
|
88
92
|
exports.FolderBrowser = require_FolderBrowser.FolderBrowser;
|
package/dist/views.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import { HomeHost, HomePage, HomeView, HomeViewProps } from "./web/components/Ho
|
|
|
4
4
|
import { WorkspacePage, WorkspaceView, WorkspaceViewProps } from "./web/components/WorkspacePage.mjs";
|
|
5
5
|
import { FolderBrowser } from "./web/components/FolderBrowser.mjs";
|
|
6
6
|
import { AccountButton, AccountSummary } from "./web/components/AccountButton.mjs";
|
|
7
|
+
import { ConversationAside } from "./web/components/ConversationAside.mjs";
|
|
7
8
|
import { GentleAsk } from "./web/components/GentleAsk.mjs";
|
|
8
9
|
import { MascotMark, MascotMarkProps } from "./web/components/MascotMark.mjs";
|
|
9
10
|
import { PluginPage } from "./web/components/PluginPage.mjs";
|
|
@@ -31,12 +32,13 @@ import { ModelPopup, SelectionBar } from "./web/features/selection/SelectionBar.
|
|
|
31
32
|
import { SessionSettings } from "./web/features/selection/SessionSettings.mjs";
|
|
32
33
|
import { Composer, addComposerFiles, readComposerFiles } from "./web/features/session/Composer.mjs";
|
|
33
34
|
import { ComposerPrompt } from "./web/features/session/ComposerPrompt.mjs";
|
|
35
|
+
import { Timeline, Transcript, TranscriptTurnRenderProps } from "./web/features/session/Timeline.mjs";
|
|
36
|
+
import { DockConversation } from "./web/features/session/DockConversation.mjs";
|
|
34
37
|
import { DormantPanel } from "./web/features/session/DormantPanel.mjs";
|
|
35
38
|
import { MessageFileLinkHandler, MessageMarkdown } from "./web/features/session/MessageMarkdown.mjs";
|
|
36
39
|
import { MentionPreviewAsset, MentionPreviews } from "./web/features/session/MentionPreviews.mjs";
|
|
37
40
|
import { QueueSheet } from "./web/features/session/QueueSheet.mjs";
|
|
38
41
|
import { SessionActivity, SessionActivityView, sessionActivity } from "./web/features/session/SessionActivity.mjs";
|
|
39
|
-
import { Timeline, Transcript, TranscriptTurnRenderProps } from "./web/features/session/Timeline.mjs";
|
|
40
42
|
import { SessionTranscriptView } from "./web/features/session/SessionTranscriptView.mjs";
|
|
41
43
|
import { ThreadView } from "./web/features/session/ThreadView.mjs";
|
|
42
44
|
import { ToolCard, hasVisualOutput, nestedToolCard, toolOutputDescriptors } from "./web/features/session/ToolCard.mjs";
|
|
@@ -66,4 +68,4 @@ import { SettingsPanelHost } from "./web/components/SettingsPanelHost.mjs";
|
|
|
66
68
|
import { TemplateSettings } from "./web/features/settings/TemplateSettings.mjs";
|
|
67
69
|
import { TunnelSettings } from "./web/features/settings/TunnelSettings.mjs";
|
|
68
70
|
import { TopBar } from "./web/features/status/TopBar.mjs";
|
|
69
|
-
export { AccountButton, AccountSettings, AccountSummary, ActivityDock, AppearanceSettings, ClientDevices, ClientDevicesProps, CockpitHost, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextItemDialogProps, ContextPanel, ContextPanelView, ContributedSettings, DashboardTileGrid, DashboardTileView, DevProxyTargets, DialogOverlay, DockFaceSnapshot, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomeHost, HomePage, HomeView, HomeViewProps, HostsSettings, HostsSettingsProps, ImageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MascotMarkProps, MentionPreviewAsset, MentionPreviews, MessageFileLinkHandler, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingAgent, OnboardingFlow, PairedDeviceList, PairingApprovalDialog, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QrCode, QrCodeProps, QueueSheet, RefusedCard, Region, RemoteAccessDialog, RemoteAccessOptions, RemoteAccessPairing, RemoteControlSettings, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionActivityView, SessionMcp, SessionMcpSettings, SessionMcpTools, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TranscriptTurnRenderProps, TrustedDeviceList, TrustedDeviceListView, TrustedDeviceListViewProps, TunnelSettings, WelcomePanel, WorkspacePage, WorkspaceView, WorkspaceViewProps, addComposerFiles, appearedFaces, finishOnboarding, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, readComposerFiles, sessionActivity, toolOutputDescriptors, useNewSessionActions, useSessionRail };
|
|
71
|
+
export { AccountButton, AccountSettings, AccountSummary, ActivityDock, AppearanceSettings, ClientDevices, ClientDevicesProps, CockpitHost, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextItemDialogProps, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DashboardTileView, DevProxyTargets, DialogOverlay, DockConversation, DockFaceSnapshot, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomeHost, HomePage, HomeView, HomeViewProps, HostsSettings, HostsSettingsProps, ImageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MascotMarkProps, MentionPreviewAsset, MentionPreviews, MessageFileLinkHandler, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingAgent, OnboardingFlow, PairedDeviceList, PairingApprovalDialog, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QrCode, QrCodeProps, QueueSheet, RefusedCard, Region, RemoteAccessDialog, RemoteAccessOptions, RemoteAccessPairing, RemoteControlSettings, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionActivityView, SessionMcp, SessionMcpSettings, SessionMcpTools, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TranscriptTurnRenderProps, TrustedDeviceList, TrustedDeviceListView, TrustedDeviceListViewProps, TunnelSettings, WelcomePanel, WorkspacePage, WorkspaceView, WorkspaceViewProps, addComposerFiles, appearedFaces, finishOnboarding, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, readComposerFiles, sessionActivity, toolOutputDescriptors, useNewSessionActions, useSessionRail };
|
package/dist/views.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { HomePage, HomeView } from "./web/components/HomePage.mjs";
|
|
|
5
5
|
import { WorkspacePage, WorkspaceView } from "./web/components/WorkspacePage.mjs";
|
|
6
6
|
import { FolderBrowser } from "./web/components/FolderBrowser.mjs";
|
|
7
7
|
import { AccountButton } from "./web/components/AccountButton.mjs";
|
|
8
|
+
import { ConversationAside } from "./web/components/ConversationAside.mjs";
|
|
8
9
|
import { MascotMark } from "./web/components/MascotMark.mjs";
|
|
9
10
|
import { PluginPage } from "./web/components/PluginPage.mjs";
|
|
10
11
|
import { ContributedSettings } from "./web/components/ContributedSettings.mjs";
|
|
@@ -38,9 +39,10 @@ import { QueueSheet } from "./web/features/session/QueueSheet.mjs";
|
|
|
38
39
|
import { Composer, addComposerFiles, readComposerFiles } from "./web/features/session/Composer.mjs";
|
|
39
40
|
import { MentionPreviewAsset, MentionPreviews } from "./web/features/session/MentionPreviews.mjs";
|
|
40
41
|
import { MessageMarkdown } from "./web/features/session/MessageMarkdown.mjs";
|
|
41
|
-
import { SessionActivity, sessionActivity } from "./web/features/session/SessionActivity.mjs";
|
|
42
42
|
import { ToolCard, hasVisualOutput, nestedToolCard, toolOutputDescriptors } from "./web/features/session/ToolCard.mjs";
|
|
43
43
|
import { Timeline, Transcript } from "./web/features/session/Timeline.mjs";
|
|
44
|
+
import { DockConversation } from "./web/features/session/DockConversation.mjs";
|
|
45
|
+
import { SessionActivity, sessionActivity } from "./web/features/session/SessionActivity.mjs";
|
|
44
46
|
import { SessionTranscriptView } from "./web/features/session/SessionTranscriptView.mjs";
|
|
45
47
|
import { ThreadView } from "./web/features/session/ThreadView.mjs";
|
|
46
48
|
import { WelcomePanel } from "./web/components/WelcomePanel.mjs";
|
|
@@ -66,4 +68,4 @@ import { RepositorySettings } from "./web/features/settings/RepositorySettings.m
|
|
|
66
68
|
import { SettingsMenu } from "./web/features/settings/SettingsMenu.mjs";
|
|
67
69
|
import { RepositoryWorkspace } from "./web/features/settings/RepositoryWorkspace.mjs";
|
|
68
70
|
import { TopBar } from "./web/features/status/TopBar.mjs";
|
|
69
|
-
export { AccountButton, AccountSettings, ActivityDock, AppearanceSettings, ClientDevices, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextPanel, ContextPanelView, ContributedSettings, DashboardTileGrid, DevProxyTargets, DialogOverlay, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomePage, HomeView, HostsSettings, ImageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MentionPreviewAsset, MentionPreviews, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PairedDeviceList, PairingApprovalDialog, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QrCode, QueueSheet, RefusedCard, Region, RemoteAccessDialog, RemoteAccessOptions, RemoteAccessPairing, RemoteControlSettings, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionMcp, SessionMcpSettings, SessionMcpTools, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TrustedDeviceList, TrustedDeviceListView, TunnelSettings, WelcomePanel, WorkspacePage, WorkspaceView, addComposerFiles, appearedFaces, finishOnboarding, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, readComposerFiles, sessionActivity, toolOutputDescriptors, useNewSessionActions, useSessionRail };
|
|
71
|
+
export { AccountButton, AccountSettings, ActivityDock, AppearanceSettings, ClientDevices, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DevProxyTargets, DialogOverlay, DockConversation, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomePage, HomeView, HostsSettings, ImageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MentionPreviewAsset, MentionPreviews, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PairedDeviceList, PairingApprovalDialog, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QrCode, QueueSheet, RefusedCard, Region, RemoteAccessDialog, RemoteAccessOptions, RemoteAccessPairing, RemoteControlSettings, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionMcp, SessionMcpSettings, SessionMcpTools, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TrustedDeviceList, TrustedDeviceListView, TunnelSettings, WelcomePanel, WorkspacePage, WorkspaceView, addComposerFiles, appearedFaces, finishOnboarding, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, readComposerFiles, sessionActivity, toolOutputDescriptors, useNewSessionActions, useSessionRail };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const require_promptFocus = require("../lib/promptFocus.cjs");
|
|
2
|
+
const require_useToolPrompt = require("../stores/useToolPrompt.cjs");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
let _agimon_ai_po_web_components = require("@agimon-ai/po-web-components");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
//#region src/web/components/ConversationAside.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Wraps a file canvas whose conversation sits beside it rather than below.
|
|
9
|
+
* While the conversation is off screen an "Ask Po" cue floats at the canvas's
|
|
10
|
+
* bottom right, rose while Po waits on a question. Wide, the cue asks the host
|
|
11
|
+
* to show its rail; narrow, it opens a sheet over the lower canvas holding
|
|
12
|
+
* `conversation`, which mounts only while the sheet is open so one prompt is
|
|
13
|
+
* mounted at a time. Open state is local: key this on the tab id.
|
|
14
|
+
*/
|
|
15
|
+
function ConversationAside({ children, narrow, conversationShown, onOpenRail, conversation }) {
|
|
16
|
+
const asking = require_useToolPrompt.useToolPrompt() !== null;
|
|
17
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
18
|
+
const sheetOpen = narrow && open;
|
|
19
|
+
const cueRef = (0, react.useRef)(null);
|
|
20
|
+
const wasOpen = (0, react.useRef)(false);
|
|
21
|
+
(0, react.useEffect)(() => {
|
|
22
|
+
if (wasOpen.current && !sheetOpen) cueRef.current?.focus();
|
|
23
|
+
wasOpen.current = sheetOpen;
|
|
24
|
+
}, [sheetOpen]);
|
|
25
|
+
const ask = () => {
|
|
26
|
+
if (narrow) setOpen(true);
|
|
27
|
+
else onOpenRail();
|
|
28
|
+
requestAnimationFrame(() => require_promptFocus.focusPrompt());
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
31
|
+
className: "relative flex min-h-0 flex-1 flex-col",
|
|
32
|
+
children: [
|
|
33
|
+
children,
|
|
34
|
+
!conversationShown && !sheetOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_agimon_ai_po_web_components.Button, {
|
|
35
|
+
ref: cueRef,
|
|
36
|
+
"data-testid": "ask-po",
|
|
37
|
+
variant: asking ? "secondary" : "outline",
|
|
38
|
+
size: "md",
|
|
39
|
+
"aria-label": asking ? "Po is asking you something. Open the conversation" : "Ask Po about this file",
|
|
40
|
+
className: `absolute right-4 bottom-14 z-10 gap-2 rounded-full shadow-lg ${asking ? "" : "bg-po-panel text-po-hi"}`,
|
|
41
|
+
onClick: ask,
|
|
42
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_agimon_ai_po_web_components.MessageIcon, {
|
|
43
|
+
"aria-hidden": true,
|
|
44
|
+
className: "size-4"
|
|
45
|
+
}), asking ? "Po is asking" : "Ask Po"]
|
|
46
|
+
}) : null,
|
|
47
|
+
sheetOpen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
48
|
+
role: "dialog",
|
|
49
|
+
"aria-modal": "false",
|
|
50
|
+
"aria-label": "Conversation",
|
|
51
|
+
"data-testid": "conversation-sheet",
|
|
52
|
+
"data-po-region": "activity",
|
|
53
|
+
onKeyDown: (event) => {
|
|
54
|
+
if (event.key !== "Escape" || event.defaultPrevented) return;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
setOpen(false);
|
|
57
|
+
},
|
|
58
|
+
className: "absolute inset-x-0 bottom-0 z-20 flex h-[60%] flex-col overflow-hidden rounded-t-2xl border-t border-po-border-soft bg-po-bg/100 shadow-2xl",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
61
|
+
"aria-hidden": true,
|
|
62
|
+
className: "mx-auto mt-2 h-1 w-10 shrink-0 rounded-full bg-po-border"
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
65
|
+
className: "flex h-11 shrink-0 items-center gap-2 pr-2 pl-5",
|
|
66
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
67
|
+
className: "min-w-0 flex-1 truncate text-base font-semibold text-po-hi",
|
|
68
|
+
children: "Conversation"
|
|
69
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_agimon_ai_po_web_components.Button, {
|
|
70
|
+
variant: "ghost",
|
|
71
|
+
size: "icon-md",
|
|
72
|
+
"aria-label": "Close conversation",
|
|
73
|
+
className: "text-po-dim",
|
|
74
|
+
onClick: () => setOpen(false),
|
|
75
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_agimon_ai_po_web_components.CloseIcon, {
|
|
76
|
+
"aria-hidden": true,
|
|
77
|
+
className: "size-4"
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
conversation
|
|
82
|
+
]
|
|
83
|
+
}) : null
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
exports.ConversationAside = ConversationAside;
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=ConversationAside.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationAside.cjs","names":["useToolPrompt","useState","useRef","focusPrompt","Button","MessageIcon","CloseIcon"],"sources":["../../../src/web/components/ConversationAside.tsx"],"sourcesContent":["import { Button, CloseIcon, MessageIcon } from '@agimon-ai/po-web-components';\nimport { type ReactNode, useEffect, useRef, useState } from 'react';\n\nimport { focusPrompt } from '../lib/promptFocus';\nimport { useToolPrompt } from '../stores/useToolPrompt';\n\n/**\n * Wraps a file canvas whose conversation sits beside it rather than below.\n * While the conversation is off screen an \"Ask Po\" cue floats at the canvas's\n * bottom right, rose while Po waits on a question. Wide, the cue asks the host\n * to show its rail; narrow, it opens a sheet over the lower canvas holding\n * `conversation`, which mounts only while the sheet is open so one prompt is\n * mounted at a time. Open state is local: key this on the tab id.\n */\nexport function ConversationAside({\n children,\n narrow,\n conversationShown,\n onOpenRail,\n conversation,\n}: {\n children: ReactNode;\n narrow: boolean;\n /** The host is already showing the conversation, so the cue stays out of the way. */\n conversationShown: boolean;\n onOpenRail: () => void;\n conversation: ReactNode;\n}) {\n const asking = useToolPrompt() !== null;\n const [open, setOpen] = useState(false);\n const sheetOpen = narrow && open;\n const cueRef = useRef<HTMLButtonElement>(null);\n const wasOpen = useRef(false);\n\n // The cue unmounts behind the sheet, so focus goes back to it once it returns.\n useEffect(() => {\n if (wasOpen.current && !sheetOpen) cueRef.current?.focus();\n wasOpen.current = sheetOpen;\n }, [sheetOpen]);\n\n const ask = () => {\n if (narrow) setOpen(true);\n else onOpenRail();\n // The prompt mounts with the rail or sheet, a frame after this click.\n requestAnimationFrame(() => focusPrompt());\n };\n\n return (\n <div className=\"relative flex min-h-0 flex-1 flex-col\">\n {children}\n {!conversationShown && !sheetOpen ? (\n <Button\n ref={cueRef}\n data-testid=\"ask-po\"\n variant={asking ? 'secondary' : 'outline'}\n size=\"md\"\n aria-label={asking ? 'Po is asking you something. Open the conversation' : 'Ask Po about this file'}\n className={`absolute right-4 bottom-14 z-10 gap-2 rounded-full shadow-lg ${asking ? '' : 'bg-po-panel text-po-hi'}`}\n onClick={ask}\n >\n <MessageIcon aria-hidden className=\"size-4\" />\n {asking ? 'Po is asking' : 'Ask Po'}\n </Button>\n ) : null}\n {sheetOpen ? (\n <section\n role=\"dialog\"\n aria-modal=\"false\"\n aria-label=\"Conversation\"\n data-testid=\"conversation-sheet\"\n // Over a person's backdrop the content region clears every .bg-po-bg, which would let the canvas\n // show through; as its own region the sheet gets the backdrop wash and blur like the Activity overlay.\n data-po-region=\"activity\"\n onKeyDown={(event) => {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n setOpen(false);\n }}\n // ponytail: bg-po-bg/100 is the same colour under a class name the backdrop rule does not clear.\n className=\"absolute inset-x-0 bottom-0 z-20 flex h-[60%] flex-col overflow-hidden rounded-t-2xl border-t border-po-border-soft bg-po-bg/100 shadow-2xl\"\n >\n <span aria-hidden className=\"mx-auto mt-2 h-1 w-10 shrink-0 rounded-full bg-po-border\" />\n <header className=\"flex h-11 shrink-0 items-center gap-2 pr-2 pl-5\">\n <span className=\"min-w-0 flex-1 truncate text-base font-semibold text-po-hi\">Conversation</span>\n <Button\n variant=\"ghost\"\n size=\"icon-md\"\n aria-label=\"Close conversation\"\n className=\"text-po-dim\"\n onClick={() => setOpen(false)}\n >\n <CloseIcon aria-hidden className=\"size-4\" />\n </Button>\n </header>\n {conversation}\n </section>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,EAChC,UACA,QACA,mBACA,YACA,gBAQC;CACD,MAAM,SAASA,sBAAAA,cAAc,MAAM;CACnC,MAAM,CAAC,MAAM,YAAA,GAAWC,MAAAA,SAAAA,CAAS,KAAK;CACtC,MAAM,YAAY,UAAU;CAC5B,MAAM,UAAA,GAASC,MAAAA,OAAAA,CAA0B,IAAI;CAC7C,MAAM,WAAA,GAAUA,MAAAA,OAAAA,CAAO,KAAK;CAG5B,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,IAAI,QAAQ,WAAW,CAAC,WAAW,OAAO,SAAS,MAAM;EACzD,QAAQ,UAAU;CACpB,GAAG,CAAC,SAAS,CAAC;CAEd,MAAM,YAAY;EAChB,IAAI,QAAQ,QAAQ,IAAI;OACnB,WAAW;EAEhB,4BAA4BC,oBAAAA,YAAY,CAAC;CAC3C;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACG;GACA,CAAC,qBAAqB,CAAC,YACtB,iBAAA,GAAA,kBAAA,KAAA,CAACC,6BAAAA,QAAD;IACE,KAAK;IACL,eAAY;IACZ,SAAS,SAAS,cAAc;IAChC,MAAK;IACL,cAAY,SAAS,sDAAsD;IAC3E,WAAW,gEAAgE,SAAS,KAAK;IACzF,SAAS;IAPX,UAAA,CASE,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,aAAD;KAAa,eAAA;KAAY,WAAU;IAAU,CAAA,GAC5C,SAAS,iBAAiB,QACrB;GACN,CAAA,IAAA;GACH,YACC,iBAAA,GAAA,kBAAA,KAAA,CAAC,WAAD;IACE,MAAK;IACL,cAAW;IACX,cAAW;IACX,eAAY;IAGZ,kBAAe;IACf,YAAY,UAAU;KACpB,IAAI,MAAM,QAAQ,YAAY,MAAM,kBAAkB;KACtD,MAAM,eAAe;KACrB,QAAQ,KAAK;IACf;IAEA,WAAU;IAdZ,UAAA;KAgBE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;MAAM,eAAA;MAAY,WAAU;KAA4D,CAAA;KACxF,iBAAA,GAAA,kBAAA,KAAA,CAAC,UAAD;MAAQ,WAAU;MAAlB,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;OAAM,WAAU;OAA6D,UAAA;MAAkB,CAAA,GAC/F,iBAAA,GAAA,kBAAA,IAAA,CAACD,6BAAAA,QAAD;OACE,SAAQ;OACR,MAAK;OACL,cAAW;OACX,WAAU;OACV,eAAe,QAAQ,KAAK;OAE5B,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACE,6BAAAA,WAAD;QAAW,eAAA;QAAY,WAAU;OAAU,CAAA;MACrC,CAAA,CACF;;KACP;IACM;GACP,CAAA,IAAA;EACD;;AAET"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/web/components/ConversationAside.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a file canvas whose conversation sits beside it rather than below.
|
|
5
|
+
* While the conversation is off screen an "Ask Po" cue floats at the canvas's
|
|
6
|
+
* bottom right, rose while Po waits on a question. Wide, the cue asks the host
|
|
7
|
+
* to show its rail; narrow, it opens a sheet over the lower canvas holding
|
|
8
|
+
* `conversation`, which mounts only while the sheet is open so one prompt is
|
|
9
|
+
* mounted at a time. Open state is local: key this on the tab id.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ConversationAside({ children, narrow, conversationShown, onOpenRail, conversation }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
narrow: boolean;
|
|
14
|
+
/** The host is already showing the conversation, so the cue stays out of the way. */
|
|
15
|
+
conversationShown: boolean;
|
|
16
|
+
onOpenRail: () => void;
|
|
17
|
+
conversation: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//# sourceMappingURL=ConversationAside.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationAside.d.mts","names":[],"sources":["../../../src/web/components/ConversationAside.tsx"],"mappings":";;;;;;;;;;wBAcgB,oBACd,UACA,QACA,mBACA,YACA;EAEA,UAAU;EACV;;EAEA;EACA;EACA,cAAc;oBACf,IAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { focusPrompt } from "../lib/promptFocus.mjs";
|
|
2
|
+
import { useToolPrompt } from "../stores/useToolPrompt.mjs";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { Button, CloseIcon, MessageIcon } from "@agimon-ai/po-web-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/web/components/ConversationAside.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Wraps a file canvas whose conversation sits beside it rather than below.
|
|
9
|
+
* While the conversation is off screen an "Ask Po" cue floats at the canvas's
|
|
10
|
+
* bottom right, rose while Po waits on a question. Wide, the cue asks the host
|
|
11
|
+
* to show its rail; narrow, it opens a sheet over the lower canvas holding
|
|
12
|
+
* `conversation`, which mounts only while the sheet is open so one prompt is
|
|
13
|
+
* mounted at a time. Open state is local: key this on the tab id.
|
|
14
|
+
*/
|
|
15
|
+
function ConversationAside({ children, narrow, conversationShown, onOpenRail, conversation }) {
|
|
16
|
+
const asking = useToolPrompt() !== null;
|
|
17
|
+
const [open, setOpen] = useState(false);
|
|
18
|
+
const sheetOpen = narrow && open;
|
|
19
|
+
const cueRef = useRef(null);
|
|
20
|
+
const wasOpen = useRef(false);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (wasOpen.current && !sheetOpen) cueRef.current?.focus();
|
|
23
|
+
wasOpen.current = sheetOpen;
|
|
24
|
+
}, [sheetOpen]);
|
|
25
|
+
const ask = () => {
|
|
26
|
+
if (narrow) setOpen(true);
|
|
27
|
+
else onOpenRail();
|
|
28
|
+
requestAnimationFrame(() => focusPrompt());
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: "relative flex min-h-0 flex-1 flex-col",
|
|
32
|
+
children: [
|
|
33
|
+
children,
|
|
34
|
+
!conversationShown && !sheetOpen ? /* @__PURE__ */ jsxs(Button, {
|
|
35
|
+
ref: cueRef,
|
|
36
|
+
"data-testid": "ask-po",
|
|
37
|
+
variant: asking ? "secondary" : "outline",
|
|
38
|
+
size: "md",
|
|
39
|
+
"aria-label": asking ? "Po is asking you something. Open the conversation" : "Ask Po about this file",
|
|
40
|
+
className: `absolute right-4 bottom-14 z-10 gap-2 rounded-full shadow-lg ${asking ? "" : "bg-po-panel text-po-hi"}`,
|
|
41
|
+
onClick: ask,
|
|
42
|
+
children: [/* @__PURE__ */ jsx(MessageIcon, {
|
|
43
|
+
"aria-hidden": true,
|
|
44
|
+
className: "size-4"
|
|
45
|
+
}), asking ? "Po is asking" : "Ask Po"]
|
|
46
|
+
}) : null,
|
|
47
|
+
sheetOpen ? /* @__PURE__ */ jsxs("section", {
|
|
48
|
+
role: "dialog",
|
|
49
|
+
"aria-modal": "false",
|
|
50
|
+
"aria-label": "Conversation",
|
|
51
|
+
"data-testid": "conversation-sheet",
|
|
52
|
+
"data-po-region": "activity",
|
|
53
|
+
onKeyDown: (event) => {
|
|
54
|
+
if (event.key !== "Escape" || event.defaultPrevented) return;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
setOpen(false);
|
|
57
|
+
},
|
|
58
|
+
className: "absolute inset-x-0 bottom-0 z-20 flex h-[60%] flex-col overflow-hidden rounded-t-2xl border-t border-po-border-soft bg-po-bg/100 shadow-2xl",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
"aria-hidden": true,
|
|
62
|
+
className: "mx-auto mt-2 h-1 w-10 shrink-0 rounded-full bg-po-border"
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsxs("header", {
|
|
65
|
+
className: "flex h-11 shrink-0 items-center gap-2 pr-2 pl-5",
|
|
66
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
67
|
+
className: "min-w-0 flex-1 truncate text-base font-semibold text-po-hi",
|
|
68
|
+
children: "Conversation"
|
|
69
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
70
|
+
variant: "ghost",
|
|
71
|
+
size: "icon-md",
|
|
72
|
+
"aria-label": "Close conversation",
|
|
73
|
+
className: "text-po-dim",
|
|
74
|
+
onClick: () => setOpen(false),
|
|
75
|
+
children: /* @__PURE__ */ jsx(CloseIcon, {
|
|
76
|
+
"aria-hidden": true,
|
|
77
|
+
className: "size-4"
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
conversation
|
|
82
|
+
]
|
|
83
|
+
}) : null
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ConversationAside };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=ConversationAside.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationAside.mjs","names":[],"sources":["../../../src/web/components/ConversationAside.tsx"],"sourcesContent":["import { Button, CloseIcon, MessageIcon } from '@agimon-ai/po-web-components';\nimport { type ReactNode, useEffect, useRef, useState } from 'react';\n\nimport { focusPrompt } from '../lib/promptFocus';\nimport { useToolPrompt } from '../stores/useToolPrompt';\n\n/**\n * Wraps a file canvas whose conversation sits beside it rather than below.\n * While the conversation is off screen an \"Ask Po\" cue floats at the canvas's\n * bottom right, rose while Po waits on a question. Wide, the cue asks the host\n * to show its rail; narrow, it opens a sheet over the lower canvas holding\n * `conversation`, which mounts only while the sheet is open so one prompt is\n * mounted at a time. Open state is local: key this on the tab id.\n */\nexport function ConversationAside({\n children,\n narrow,\n conversationShown,\n onOpenRail,\n conversation,\n}: {\n children: ReactNode;\n narrow: boolean;\n /** The host is already showing the conversation, so the cue stays out of the way. */\n conversationShown: boolean;\n onOpenRail: () => void;\n conversation: ReactNode;\n}) {\n const asking = useToolPrompt() !== null;\n const [open, setOpen] = useState(false);\n const sheetOpen = narrow && open;\n const cueRef = useRef<HTMLButtonElement>(null);\n const wasOpen = useRef(false);\n\n // The cue unmounts behind the sheet, so focus goes back to it once it returns.\n useEffect(() => {\n if (wasOpen.current && !sheetOpen) cueRef.current?.focus();\n wasOpen.current = sheetOpen;\n }, [sheetOpen]);\n\n const ask = () => {\n if (narrow) setOpen(true);\n else onOpenRail();\n // The prompt mounts with the rail or sheet, a frame after this click.\n requestAnimationFrame(() => focusPrompt());\n };\n\n return (\n <div className=\"relative flex min-h-0 flex-1 flex-col\">\n {children}\n {!conversationShown && !sheetOpen ? (\n <Button\n ref={cueRef}\n data-testid=\"ask-po\"\n variant={asking ? 'secondary' : 'outline'}\n size=\"md\"\n aria-label={asking ? 'Po is asking you something. Open the conversation' : 'Ask Po about this file'}\n className={`absolute right-4 bottom-14 z-10 gap-2 rounded-full shadow-lg ${asking ? '' : 'bg-po-panel text-po-hi'}`}\n onClick={ask}\n >\n <MessageIcon aria-hidden className=\"size-4\" />\n {asking ? 'Po is asking' : 'Ask Po'}\n </Button>\n ) : null}\n {sheetOpen ? (\n <section\n role=\"dialog\"\n aria-modal=\"false\"\n aria-label=\"Conversation\"\n data-testid=\"conversation-sheet\"\n // Over a person's backdrop the content region clears every .bg-po-bg, which would let the canvas\n // show through; as its own region the sheet gets the backdrop wash and blur like the Activity overlay.\n data-po-region=\"activity\"\n onKeyDown={(event) => {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n setOpen(false);\n }}\n // ponytail: bg-po-bg/100 is the same colour under a class name the backdrop rule does not clear.\n className=\"absolute inset-x-0 bottom-0 z-20 flex h-[60%] flex-col overflow-hidden rounded-t-2xl border-t border-po-border-soft bg-po-bg/100 shadow-2xl\"\n >\n <span aria-hidden className=\"mx-auto mt-2 h-1 w-10 shrink-0 rounded-full bg-po-border\" />\n <header className=\"flex h-11 shrink-0 items-center gap-2 pr-2 pl-5\">\n <span className=\"min-w-0 flex-1 truncate text-base font-semibold text-po-hi\">Conversation</span>\n <Button\n variant=\"ghost\"\n size=\"icon-md\"\n aria-label=\"Close conversation\"\n className=\"text-po-dim\"\n onClick={() => setOpen(false)}\n >\n <CloseIcon aria-hidden className=\"size-4\" />\n </Button>\n </header>\n {conversation}\n </section>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,EAChC,UACA,QACA,mBACA,YACA,gBAQC;CACD,MAAM,SAAS,cAAc,MAAM;CACnC,MAAM,CAAC,MAAM,WAAW,SAAS,KAAK;CACtC,MAAM,YAAY,UAAU;CAC5B,MAAM,SAAS,OAA0B,IAAI;CAC7C,MAAM,UAAU,OAAO,KAAK;CAG5B,gBAAgB;EACd,IAAI,QAAQ,WAAW,CAAC,WAAW,OAAO,SAAS,MAAM;EACzD,QAAQ,UAAU;CACpB,GAAG,CAAC,SAAS,CAAC;CAEd,MAAM,YAAY;EAChB,IAAI,QAAQ,QAAQ,IAAI;OACnB,WAAW;EAEhB,4BAA4B,YAAY,CAAC;CAC3C;CAEA,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACG;GACA,CAAC,qBAAqB,CAAC,YACtB,qBAAC,QAAD;IACE,KAAK;IACL,eAAY;IACZ,SAAS,SAAS,cAAc;IAChC,MAAK;IACL,cAAY,SAAS,sDAAsD;IAC3E,WAAW,gEAAgE,SAAS,KAAK;IACzF,SAAS;IAPX,UAAA,CASE,oBAAC,aAAD;KAAa,eAAA;KAAY,WAAU;IAAU,CAAA,GAC5C,SAAS,iBAAiB,QACrB;GACN,CAAA,IAAA;GACH,YACC,qBAAC,WAAD;IACE,MAAK;IACL,cAAW;IACX,cAAW;IACX,eAAY;IAGZ,kBAAe;IACf,YAAY,UAAU;KACpB,IAAI,MAAM,QAAQ,YAAY,MAAM,kBAAkB;KACtD,MAAM,eAAe;KACrB,QAAQ,KAAK;IACf;IAEA,WAAU;IAdZ,UAAA;KAgBE,oBAAC,QAAD;MAAM,eAAA;MAAY,WAAU;KAA4D,CAAA;KACxF,qBAAC,UAAD;MAAQ,WAAU;MAAlB,UAAA,CACE,oBAAC,QAAD;OAAM,WAAU;OAA6D,UAAA;MAAkB,CAAA,GAC/F,oBAAC,QAAD;OACE,SAAQ;OACR,MAAK;OACL,cAAW;OACX,WAAU;OACV,eAAe,QAAQ,KAAK;OAE5B,UAAA,oBAAC,WAAD;QAAW,eAAA;QAAY,WAAU;OAAU,CAAA;MACrC,CAAA,CACF;;KACP;IACM;GACP,CAAA,IAAA;EACD;;AAET"}
|
|
@@ -62,7 +62,7 @@ function useAppearingFaces(sessionId, faceIds) {
|
|
|
62
62
|
* Author when a document opens, announces itself in the tab strip instead of
|
|
63
63
|
* taking the dock over.
|
|
64
64
|
*/
|
|
65
|
-
function ActivityDock({ onClose, onOpenContent, mcp, scope }) {
|
|
65
|
+
function ActivityDock({ onClose, onOpenContent, mcp, scope, conversation, conversationBeside, conversationLabel }) {
|
|
66
66
|
const activeId = (0, _tanstack_react_store.useStore)(require_sessionsStore.sessionsStore, (state) => state.activeId);
|
|
67
67
|
const offlineReason = (0, _tanstack_react_store.useStore)(require_sessionsStore.sessionsStore, (state) => {
|
|
68
68
|
const meta = state.activeId === null ? void 0 : state.byId[state.activeId];
|
|
@@ -81,7 +81,7 @@ function ActivityDock({ onClose, onOpenContent, mcp, scope }) {
|
|
|
81
81
|
}, [activeId, disabledSelection]);
|
|
82
82
|
const selectedFace = dockFaces.find((face) => face.id === tab);
|
|
83
83
|
const mcpEnabled = mcp?.snapshot?.enabled === true;
|
|
84
|
-
const resolvedTab = tab === "context" || tab === "activity" || tab === "mcp" && mcpEnabled || selectedFace !== void 0 ? tab : "activity";
|
|
84
|
+
const resolvedTab = tab === "context" || tab === "activity" || tab === "conversation" && conversation !== void 0 || tab === "mcp" && mcpEnabled || selectedFace !== void 0 ? tab : "activity";
|
|
85
85
|
const DockPanel = selectedFace?.panel;
|
|
86
86
|
const badges = require_composition.useDockFaceBadges(dockFaces, activeId);
|
|
87
87
|
const waiting = (0, _tanstack_react_store.useStore)(require_sessionsStore.sessionsStore, (state) => require_sessionRailModel.activityWaitingCount(state.activeId === null ? void 0 : state.byId[state.activeId]?.summary));
|
|
@@ -101,10 +101,13 @@ function ActivityDock({ onClose, onOpenContent, mcp, scope }) {
|
|
|
101
101
|
"data-testid": "activity-dock",
|
|
102
102
|
className: "flex w-[min(360px,calc(100vw-48px))] shrink-0 flex-col overflow-hidden border-l border-po-border-soft bg-po-rail sm:w-[360px]",
|
|
103
103
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
104
|
-
className: "flex h-16 shrink-0 items-end gap-
|
|
104
|
+
className: "flex h-16 shrink-0 items-end gap-4 border-b border-po-border-soft px-5",
|
|
105
105
|
children: [
|
|
106
106
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DockTabs.DockTabs, {
|
|
107
107
|
contributed: dockFaces,
|
|
108
|
+
conversation: conversation !== void 0,
|
|
109
|
+
conversationBeside,
|
|
110
|
+
conversationLabel,
|
|
108
111
|
mcpEnabled,
|
|
109
112
|
active: resolvedTab,
|
|
110
113
|
onSelect: (id) => require_uiStore.setDockTab(activeId, id),
|
|
@@ -127,7 +130,7 @@ function ActivityDock({ onClose, onOpenContent, mcp, scope }) {
|
|
|
127
130
|
})
|
|
128
131
|
})
|
|
129
132
|
]
|
|
130
|
-
}), resolvedTab === "mcp" && mcp !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SessionMcp.SessionMcpTools, { state: mcp }, activeId) : DockPanel !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DockPanel, { ...slotProps }) : resolvedTab === "context" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContextPanel.ContextPanel, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
133
|
+
}), resolvedTab === "conversation" ? conversation : resolvedTab === "mcp" && mcp !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SessionMcp.SessionMcpTools, { state: mcp }, activeId) : DockPanel !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DockPanel, { ...slotProps }) : resolvedTab === "context" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ContextPanel.ContextPanel, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
131
134
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
132
135
|
"data-testid": "activity-scroll",
|
|
133
136
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-4",
|