@agimon-ai/po-web-dashboard 0.0.0-alpha.146 → 0.0.0-alpha.147

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.
Files changed (75) hide show
  1. package/dist/core.cjs +4 -4
  2. package/dist/core.d.mts +2 -2
  3. package/dist/core.mjs +2 -2
  4. package/dist/index.cjs +4 -4
  5. package/dist/index.d.mts +2 -2
  6. package/dist/index.mjs +2 -2
  7. package/dist/types/hub.cjs.map +1 -1
  8. package/dist/types/hub.d.mts +1 -1
  9. package/dist/types/hub.mjs.map +1 -1
  10. package/dist/types/settings.cjs.map +1 -1
  11. package/dist/types/settings.d.mts +7 -12
  12. package/dist/types/settings.d.mts.map +1 -1
  13. package/dist/types/settings.mjs.map +1 -1
  14. package/dist/web/components/HomePage.cjs +3 -3
  15. package/dist/web/components/HomePage.cjs.map +1 -1
  16. package/dist/web/components/HomePage.mjs +4 -4
  17. package/dist/web/components/HomePage.mjs.map +1 -1
  18. package/dist/web/components/Template.fixture.cjs +2 -2
  19. package/dist/web/components/Template.fixture.cjs.map +1 -1
  20. package/dist/web/components/Template.fixture.mjs +2 -2
  21. package/dist/web/components/Template.fixture.mjs.map +1 -1
  22. package/dist/web/features/settings/BackdropSettings.cjs +1 -1
  23. package/dist/web/features/settings/BackdropSettings.cjs.map +1 -1
  24. package/dist/web/features/settings/BackdropSettings.mjs +2 -2
  25. package/dist/web/features/settings/BackdropSettings.mjs.map +1 -1
  26. package/dist/web/features/settings/ContributedSettings.cjs +3 -3
  27. package/dist/web/features/settings/ContributedSettings.cjs.map +1 -1
  28. package/dist/web/features/settings/ContributedSettings.d.mts +1 -1
  29. package/dist/web/features/settings/ContributedSettings.mjs +3 -3
  30. package/dist/web/features/settings/ContributedSettings.mjs.map +1 -1
  31. package/dist/web/features/settings/ProviderSettings.cjs +1 -1
  32. package/dist/web/features/settings/ProviderSettings.cjs.map +1 -1
  33. package/dist/web/features/settings/ProviderSettings.mjs +2 -2
  34. package/dist/web/features/settings/ProviderSettings.mjs.map +1 -1
  35. package/dist/web/features/settings/RepositorySettings.cjs +2 -2
  36. package/dist/web/features/settings/RepositorySettings.cjs.map +1 -1
  37. package/dist/web/features/settings/RepositorySettings.mjs +2 -2
  38. package/dist/web/features/settings/RepositorySettings.mjs.map +1 -1
  39. package/dist/web/features/settings/TemplateSettings.cjs +3 -3
  40. package/dist/web/features/settings/TemplateSettings.cjs.map +1 -1
  41. package/dist/web/features/settings/TemplateSettings.mjs +3 -3
  42. package/dist/web/features/settings/TemplateSettings.mjs.map +1 -1
  43. package/dist/web/lib/pluginCompositions.cjs +2 -2
  44. package/dist/web/lib/pluginCompositions.cjs.map +1 -1
  45. package/dist/web/lib/pluginCompositions.mjs +2 -2
  46. package/dist/web/lib/pluginCompositions.mjs.map +1 -1
  47. package/dist/web/lib/pluginRegistry.cjs +28 -28
  48. package/dist/web/lib/pluginRegistry.cjs.map +1 -1
  49. package/dist/web/lib/pluginRegistry.d.mts +12 -12
  50. package/dist/web/lib/pluginRegistry.d.mts.map +1 -1
  51. package/dist/web/lib/pluginRegistry.mjs +25 -25
  52. package/dist/web/lib/pluginRegistry.mjs.map +1 -1
  53. package/dist/web/lib/pluginSlotProps.cjs +3 -3
  54. package/dist/web/lib/pluginSlotProps.cjs.map +1 -1
  55. package/dist/web/lib/pluginSlotProps.mjs +4 -4
  56. package/dist/web/lib/pluginSlotProps.mjs.map +1 -1
  57. package/dist/web/lib/protocolHubSocket.cjs +1 -1
  58. package/dist/web/lib/protocolHubSocket.cjs.map +1 -1
  59. package/dist/web/lib/protocolHubSocket.mjs +1 -1
  60. package/dist/web/lib/protocolHubSocket.mjs.map +1 -1
  61. package/dist/web/lib/settingsDraft.cjs +1 -1
  62. package/dist/web/lib/settingsDraft.cjs.map +1 -1
  63. package/dist/web/lib/settingsDraft.mjs +1 -1
  64. package/dist/web/lib/settingsDraft.mjs.map +1 -1
  65. package/dist/web/lib/settingsWire.cjs +12 -19
  66. package/dist/web/lib/settingsWire.cjs.map +1 -1
  67. package/dist/web/lib/settingsWire.d.mts +1 -5
  68. package/dist/web/lib/settingsWire.d.mts.map +1 -1
  69. package/dist/web/lib/settingsWire.mjs +12 -19
  70. package/dist/web/lib/settingsWire.mjs.map +1 -1
  71. package/dist/web/stores/templateStore.cjs +3 -3
  72. package/dist/web/stores/templateStore.cjs.map +1 -1
  73. package/dist/web/stores/templateStore.mjs +4 -4
  74. package/dist/web/stores/templateStore.mjs.map +1 -1
  75. package/package.json +5 -5
package/dist/core.cjs CHANGED
@@ -157,9 +157,6 @@ exports.getAvailableThinkingLevelsCommand = require_commands.getAvailableThinkin
157
157
  exports.getCommandsCommand = require_commands.getCommandsCommand;
158
158
  exports.getSessionStatsCommand = require_commands.getSessionStatsCommand;
159
159
  exports.getStateCommand = require_commands.getStateCommand;
160
- exports.globalPluginProviders = require_pluginRegistry.globalPluginProviders;
161
- exports.globalSlotFills = require_pluginRegistry.globalSlotFills;
162
- exports.globalSlotFillsAcrossHosts = require_pluginRegistry.globalSlotFillsAcrossHosts;
163
160
  exports.hasSessionProtocol = require_sessionProtocolCommands.hasSessionProtocol;
164
161
  exports.heldSessionChannels = require_sessionChannelHoldsStore.heldSessionChannels;
165
162
  exports.heldThreads = require_threadStore.heldThreads;
@@ -168,10 +165,13 @@ exports.holdSessionChannels = require_sessionChannelHoldsStore.holdSessionChanne
168
165
  exports.holdVoiceSession = require_sessionChannelHoldsStore.holdVoiceSession;
169
166
  exports.homeAppEntries = require_homeApps.homeAppEntries;
170
167
  exports.homePageRoute = require_homeApps.homePageRoute;
168
+ exports.hostPluginProviders = require_pluginRegistry.hostPluginProviders;
169
+ exports.hostSlotFills = require_pluginRegistry.hostSlotFills;
170
+ exports.hostSlotFillsAcrossHosts = require_pluginRegistry.hostSlotFillsAcrossHosts;
171
171
  exports.imagesFromContent = require_sessionModel.imagesFromContent;
172
172
  exports.inactiveTotal = require_contextComposition.inactiveTotal;
173
173
  exports.initialSessionState = require_sessionModel.initialSessionState;
174
- exports.installGlobalWebPlugins = require_pluginRegistry.installGlobalWebPlugins;
174
+ exports.installHostWebPlugins = require_pluginRegistry.installHostWebPlugins;
175
175
  exports.installSessionWebPlugins = require_pluginRegistry.installSessionWebPlugins;
176
176
  exports.installWebPlugins = require_pluginRegistry.installWebPlugins;
177
177
  exports.installWorkspaceWebPlugins = require_pluginRegistry.installWorkspaceWebPlugins;
package/dist/core.d.mts CHANGED
@@ -9,7 +9,7 @@ import { SessionSocket, SessionSocketHandlers, createProtocolHubSocket } from ".
9
9
  import { homeAppEntries, homePageRoute } from "./web/lib/homeApps.mjs";
10
10
  import { InstalledPluginTheme, isHexTheme } from "./web/lib/pluginThemes.mjs";
11
11
  import { InstalledNativeTemplate, NativeTemplateCatalog, bindBundledNativeTemplates, bundledNativeTemplate, resolveNativeTemplate } from "./web/lib/templateCatalog.mjs";
12
- import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledGlobalPluginProvider, InstalledHomeContribution, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, ResolvedFill, WebPluginRegistry, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
12
+ import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, ResolvedFill, WebPluginRegistry, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
13
13
  import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
14
14
  import { ComposerPromptClaim, DialogPromptClaim, ToolPromptClaim, ToolPromptInput, toolPromptClaim } from "./web/lib/toolPrompt.mjs";
15
15
  import { UiTraceRecord, UiTraceSink, flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
@@ -42,4 +42,4 @@ import { createWebMcpSimulator } from "./web/lib/webmcpSimulator.mjs";
42
42
  import { defaultHostId, isHostId, localHostId, parseHostKey, qualifyHostId, qualifyHostKey, setDefaultHostId, splitHostId } from "./web/lib/hostIdentity.mjs";
43
43
  import { CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, createCloudHub } from "./web/lib/cloudHub.mjs";
44
44
  import { asWorkspace } from "./web/lib/workspaceSummary.mjs";
45
- export { type ActivityGroup, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerPromptClaim, type ContextGroup, type ContextItemSource, DialogMethod, DialogPromptClaim, DialogRequest, EditorTextRequest, EntryKind, HOST_SLOTS, HistoryPage, ImageRefScope, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledGlobalPluginProvider, InstalledHomeContribution, type InstalledNativeTemplate, type InstalledPluginTheme, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, IntercomEntry, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, MentionableSession, MenuClaim, MenuKind, MenuState, type MinorMode, ModelChoice, type NativeTemplateCatalog, NoticeEntry, ProfileIdentity, QueuedEntry, RailRestartState, RailSessionInput, ReduceSessionOptions, ResolvedFill, RpcImage, SESSION_REFERENCE_SCHEME, type SelectionAxis, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SettledEntry, StatusClock, StatusLineInput, TRIGGER_CHARS, ThreadTranscriptReader, TimelineEntry, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolRendererBoundary, type TransientTabActions, UPDATE_REQUIRED_REASON, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginRegistry, WorkspacesState, abbreviateCwd, abortCommand, abortRun, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, allPluginThemes, answerDialogConfirm, answerDialogValue, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, asWorkspace, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindHistoryReader, bindHostTransport, bindImageReader, bindSessionFileLinkModes, bindSessionProtocol, bindSessionWebWorkspace, bindThreadReader, bindTransport, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, claimDialogMenu, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeTransientTab, commandCompletions, compactCommand, completeSessionTransfer, contextGroups, coordinatorHostTargets, createCloudHub, createDashboardTransport, createPagedTranscript, createProtocolHubSocket, createToolCompletionTabs, createWebMcpSimulator, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteQueuedMessage, dialogCancelled, dialogConfirmed, dialogValue, disconnectCaptures, dispatchChannelFrame, dispatchHeldSessionChannel, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, endSessionReplay, enqueueAutomaticCommand, fileCompletions, fileTabForPath, findTransientTab, flushUiTrace, followUpCommand, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, isHostId, isSupportedImageMimeType, legacyHomeAppFills, liveSessionOptions, loadImageRef, loadModelChoices, localHostId, markSocketClosed, markUpdateRequired, mentionableSessions, menuStore, mergeScopedPlugins, minorModes, nativeTemplateCatalog, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, openTransientTab, ownerLabel, ownersOf, paletteCommands, parseDashboardTileData, parseHostKey, parseSelection, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railSessionStatus, reduceSession, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, repositorySettingsViewFromWire, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetMenuStore, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetWebPlugins, resetWorkspaces, resolveNativeTemplate, resolveParentId, resolveSessionReference, resubscribeThreads, resumeQueueCommand, resumeQueuedMessages, reuseRailWorkspaces, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, seedHistoryCursor, selectFastMode, selectModel, selectThinkingLevel, selectWorkspace, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionCompletions, sessionMinorModes, sessionMoveTarget, sessionSlug, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToken, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setDefaultHostId, setHasNewerHistory, setModelCommand, setPendingMenu, setSessionNameCommand, setSessionStreamed, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, settingsConfigViewFromWire, settingsKeyOf, settingsLockedReason, settingsScopeToWire, settingsWriteToWire, slotFills, splitHostId, startPluginDefinitions, startWebPlugins, steerCommand, streamedSessions, submitCapture, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, textFromContent, threadStoreKey, toolMessageProps, toolPromptClaim, totalTokens, traceProfilerRender, traceStore, transientTabsStore, transportForHost, triggerTokenAt, unsubscribeThread, updateDialogDraft, useActiveSession, useActiveSessionMeta, useActivityGroups, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useImageRefs, useNoSessions, useRailEntries, useRailEntry, useRenderTrace, useTransientTabs, validateComposerCapture, waitForSession, watchHubThread, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore };
45
+ export { type ActivityGroup, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerPromptClaim, type ContextGroup, type ContextItemSource, DialogMethod, DialogPromptClaim, DialogRequest, EditorTextRequest, EntryKind, HOST_SLOTS, HistoryPage, ImageRefScope, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, type InstalledNativeTemplate, type InstalledPluginTheme, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, IntercomEntry, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, MentionableSession, MenuClaim, MenuKind, MenuState, type MinorMode, ModelChoice, type NativeTemplateCatalog, NoticeEntry, ProfileIdentity, QueuedEntry, RailRestartState, RailSessionInput, ReduceSessionOptions, ResolvedFill, RpcImage, SESSION_REFERENCE_SCHEME, type SelectionAxis, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SettledEntry, StatusClock, StatusLineInput, TRIGGER_CHARS, ThreadTranscriptReader, TimelineEntry, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolRendererBoundary, type TransientTabActions, UPDATE_REQUIRED_REASON, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginRegistry, WorkspacesState, abbreviateCwd, abortCommand, abortRun, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, allPluginThemes, answerDialogConfirm, answerDialogValue, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, asWorkspace, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindHistoryReader, bindHostTransport, bindImageReader, bindSessionFileLinkModes, bindSessionProtocol, bindSessionWebWorkspace, bindThreadReader, bindTransport, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, claimDialogMenu, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeTransientTab, commandCompletions, compactCommand, completeSessionTransfer, contextGroups, coordinatorHostTargets, createCloudHub, createDashboardTransport, createPagedTranscript, createProtocolHubSocket, createToolCompletionTabs, createWebMcpSimulator, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteQueuedMessage, dialogCancelled, dialogConfirmed, dialogValue, disconnectCaptures, dispatchChannelFrame, dispatchHeldSessionChannel, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, endSessionReplay, enqueueAutomaticCommand, fileCompletions, fileTabForPath, findTransientTab, flushUiTrace, followUpCommand, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, isHostId, isSupportedImageMimeType, legacyHomeAppFills, liveSessionOptions, loadImageRef, loadModelChoices, localHostId, markSocketClosed, markUpdateRequired, mentionableSessions, menuStore, mergeScopedPlugins, minorModes, nativeTemplateCatalog, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, openTransientTab, ownerLabel, ownersOf, paletteCommands, parseDashboardTileData, parseHostKey, parseSelection, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railSessionStatus, reduceSession, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, repositorySettingsViewFromWire, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetMenuStore, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetWebPlugins, resetWorkspaces, resolveNativeTemplate, resolveParentId, resolveSessionReference, resubscribeThreads, resumeQueueCommand, resumeQueuedMessages, reuseRailWorkspaces, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, seedHistoryCursor, selectFastMode, selectModel, selectThinkingLevel, selectWorkspace, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionCompletions, sessionMinorModes, sessionMoveTarget, sessionSlug, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToken, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setDefaultHostId, setHasNewerHistory, setModelCommand, setPendingMenu, setSessionNameCommand, setSessionStreamed, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, settingsConfigViewFromWire, settingsKeyOf, settingsLockedReason, settingsScopeToWire, settingsWriteToWire, slotFills, splitHostId, startPluginDefinitions, startWebPlugins, steerCommand, streamedSessions, submitCapture, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, textFromContent, threadStoreKey, toolMessageProps, toolPromptClaim, totalTokens, traceProfilerRender, traceStore, transientTabsStore, transportForHost, triggerTokenAt, unsubscribeThread, updateDialogDraft, useActiveSession, useActiveSessionMeta, useActivityGroups, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useImageRefs, useNoSessions, useRailEntries, useRailEntry, useRenderTrace, useTransientTabs, validateComposerCapture, waitForSession, watchHubThread, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore };
package/dist/core.mjs CHANGED
@@ -7,7 +7,7 @@ import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
7
7
  import { isHexTheme } from "./web/lib/pluginThemes.mjs";
8
8
  import { bindBundledNativeTemplates, bundledNativeTemplate, resolveNativeTemplate } from "./web/lib/templateCatalog.mjs";
9
9
  import { flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
10
- import { HOST_SLOTS, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
10
+ import { HOST_SLOTS, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
11
11
  import { parseSelection } from "./web/lib/statusLine.mjs";
12
12
  import { activityGroups, fileTabForPath, minorModes, selectionAxes, subscribeActivitySources, useActivityGroups, useDockFaceBadges, useDockFaces, useFileLinks } from "./web/lib/composition.mjs";
13
13
  import { contextGroups, inactiveTotal, ownerLabel, ownersOf, projectedGroups, totalTokens } from "./web/lib/contextComposition.mjs";
@@ -42,4 +42,4 @@ import { closeTransientTab, dropTransientTabs, findTransientTab, openTransientTa
42
42
  import { updateDialogDraft, useDialogDraft } from "./web/stores/dialogDraftStore.mjs";
43
43
  import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
44
44
  import { createWebMcpSimulator } from "./web/lib/webmcpSimulator.mjs";
45
- export { BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, HOST_SLOTS, ImageRefScope, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, SESSION_REFERENCE_SCHEME, TRIGGER_CHARS, ToolRendererBoundary, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, allPluginThemes, answerDialogConfirm, answerDialogValue, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, asWorkspace, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindHistoryReader, bindHostTransport, bindImageReader, bindSessionFileLinkModes, bindSessionProtocol, bindSessionWebWorkspace, bindThreadReader, bindTransport, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, claimDialogMenu, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeTransientTab, commandCompletions, compactCommand, completeSessionTransfer, contextGroups, coordinatorHostTargets, createCloudHub, createDashboardTransport, createPagedTranscript, createProtocolHubSocket, createToolCompletionTabs, createWebMcpSimulator, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteQueuedMessage, dialogCancelled, dialogConfirmed, dialogValue, disconnectCaptures, dispatchChannelFrame, dispatchHeldSessionChannel, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, endSessionReplay, enqueueAutomaticCommand, fileCompletions, fileTabForPath, findTransientTab, flushUiTrace, followUpCommand, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, isHostId, isSupportedImageMimeType, legacyHomeAppFills, liveSessionOptions, loadImageRef, loadModelChoices, localHostId, markSocketClosed, markUpdateRequired, mentionableSessions, menuStore, mergeScopedPlugins, minorModes, nativeTemplateCatalog, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, openTransientTab, ownerLabel, ownersOf, paletteCommands, parseDashboardTileData, parseHostKey, parseSelection, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railSessionStatus, reduceSession, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, repositorySettingsViewFromWire, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetMenuStore, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetWebPlugins, resetWorkspaces, resolveNativeTemplate, resolveParentId, resolveSessionReference, resubscribeThreads, resumeQueueCommand, resumeQueuedMessages, reuseRailWorkspaces, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, seedHistoryCursor, selectFastMode, selectModel, selectThinkingLevel, selectWorkspace, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionCompletions, sessionMinorModes, sessionMoveTarget, sessionSlug, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToken, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setDefaultHostId, setHasNewerHistory, setModelCommand, setPendingMenu, setSessionNameCommand, setSessionStreamed, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, settingsConfigViewFromWire, settingsKeyOf, settingsLockedReason, settingsScopeToWire, settingsWriteToWire, slotFills, splitHostId, startPluginDefinitions, startWebPlugins, steerCommand, streamedSessions, submitCapture, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, textFromContent, threadStoreKey, toolMessageProps, toolPromptClaim, totalTokens, traceProfilerRender, traceStore, transientTabsStore, transportForHost, triggerTokenAt, unsubscribeThread, updateDialogDraft, useActiveSession, useActiveSessionMeta, useActivityGroups, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useImageRefs, useNoSessions, useRailEntries, useRailEntry, useRenderTrace, useTransientTabs, validateComposerCapture, waitForSession, watchHubThread, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore };
45
+ export { BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, HOST_SLOTS, ImageRefScope, LEGACY_WORKSPACE_ID, MAX_COMPLETION_ITEMS, SESSION_REFERENCE_SCHEME, TRIGGER_CHARS, ToolRendererBoundary, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, allPluginThemes, answerDialogConfirm, answerDialogValue, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, asWorkspace, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindHistoryReader, bindHostTransport, bindImageReader, bindSessionFileLinkModes, bindSessionProtocol, bindSessionWebWorkspace, bindThreadReader, bindTransport, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, claimDialogMenu, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeTransientTab, commandCompletions, compactCommand, completeSessionTransfer, contextGroups, coordinatorHostTargets, createCloudHub, createDashboardTransport, createPagedTranscript, createProtocolHubSocket, createToolCompletionTabs, createWebMcpSimulator, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteQueuedMessage, dialogCancelled, dialogConfirmed, dialogValue, disconnectCaptures, dispatchChannelFrame, dispatchHeldSessionChannel, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, endSessionReplay, enqueueAutomaticCommand, fileCompletions, fileTabForPath, findTransientTab, flushUiTrace, followUpCommand, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, isHostId, isSupportedImageMimeType, legacyHomeAppFills, liveSessionOptions, loadImageRef, loadModelChoices, localHostId, markSocketClosed, markUpdateRequired, mentionableSessions, menuStore, mergeScopedPlugins, minorModes, nativeTemplateCatalog, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, openTransientTab, ownerLabel, ownersOf, paletteCommands, parseDashboardTileData, parseHostKey, parseSelection, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railSessionStatus, reduceSession, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, repositorySettingsViewFromWire, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetMenuStore, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetWebPlugins, resetWorkspaces, resolveNativeTemplate, resolveParentId, resolveSessionReference, resubscribeThreads, resumeQueueCommand, resumeQueuedMessages, reuseRailWorkspaces, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, seedHistoryCursor, selectFastMode, selectModel, selectThinkingLevel, selectWorkspace, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionCompletions, sessionMinorModes, sessionMoveTarget, sessionSlug, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToken, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setDefaultHostId, setHasNewerHistory, setModelCommand, setPendingMenu, setSessionNameCommand, setSessionStreamed, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, settingsConfigViewFromWire, settingsKeyOf, settingsLockedReason, settingsScopeToWire, settingsWriteToWire, slotFills, splitHostId, startPluginDefinitions, startWebPlugins, steerCommand, streamedSessions, submitCapture, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, textFromContent, threadStoreKey, toolMessageProps, toolPromptClaim, totalTokens, traceProfilerRender, traceStore, transientTabsStore, transportForHost, triggerTokenAt, unsubscribeThread, updateDialogDraft, useActiveSession, useActiveSessionMeta, useActivityGroups, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useImageRefs, useNoSessions, useRailEntries, useRailEntry, useRenderTrace, useTransientTabs, validateComposerCapture, waitForSession, watchHubThread, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore };
package/dist/index.cjs CHANGED
@@ -296,9 +296,6 @@ exports.getCommandsCommand = require_commands.getCommandsCommand;
296
296
  exports.getSessionStatsCommand = require_commands.getSessionStatsCommand;
297
297
  exports.getStateCommand = require_commands.getStateCommand;
298
298
  exports.getWorkspace = require_hubApi.getWorkspace;
299
- exports.globalPluginProviders = require_pluginRegistry.globalPluginProviders;
300
- exports.globalSlotFills = require_pluginRegistry.globalSlotFills;
301
- exports.globalSlotFillsAcrossHosts = require_pluginRegistry.globalSlotFillsAcrossHosts;
302
299
  exports.groupSummary = require_timelineGroups.groupSummary;
303
300
  exports.groupTone = require_timelineGroups.groupTone;
304
301
  exports.hasSessionProtocol = require_sessionProtocolCommands.hasSessionProtocol;
@@ -309,12 +306,15 @@ exports.holdSessionChannels = require_sessionChannelHoldsStore.holdSessionChanne
309
306
  exports.holdVoiceSession = require_sessionChannelHoldsStore.holdVoiceSession;
310
307
  exports.homeAppEntries = require_homeApps.homeAppEntries;
311
308
  exports.homePageRoute = require_homeApps.homePageRoute;
309
+ exports.hostPluginProviders = require_pluginRegistry.hostPluginProviders;
310
+ exports.hostSlotFills = require_pluginRegistry.hostSlotFills;
311
+ exports.hostSlotFillsAcrossHosts = require_pluginRegistry.hostSlotFillsAcrossHosts;
312
312
  exports.imagesFromContent = require_sessionModel.imagesFromContent;
313
313
  exports.inactiveTotal = require_contextComposition.inactiveTotal;
314
314
  exports.initialSessionState = require_sessionModel.initialSessionState;
315
315
  exports.inlineTextBytes = require_composerStore.inlineTextBytes;
316
316
  exports.installBrowserErrorReporting = require_browserTelemetry.installBrowserErrorReporting;
317
- exports.installGlobalWebPlugins = require_pluginRegistry.installGlobalWebPlugins;
317
+ exports.installHostWebPlugins = require_pluginRegistry.installHostWebPlugins;
318
318
  exports.installSessionWebPlugins = require_pluginRegistry.installSessionWebPlugins;
319
319
  exports.installWebPlugins = require_pluginRegistry.installWebPlugins;
320
320
  exports.installWorkspaceWebPlugins = require_pluginRegistry.installWorkspaceWebPlugins;
package/dist/index.d.mts CHANGED
@@ -7,7 +7,7 @@ import { bindHostTransport, bindTransport, createDashboardTransport, invokeServe
7
7
  import { SessionSocket, SessionSocketHandlers, createProtocolHubSocket } from "./web/lib/protocolHubSocket.mjs";
8
8
  import { homeAppEntries, homePageRoute } from "./web/lib/homeApps.mjs";
9
9
  import { InstalledNativeTemplate, InstalledWebTemplate, NativeTemplateCatalog, WebTemplateCatalog, WebTemplateDiagnostic, backdropId, bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveBackdrop, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
10
- import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledGlobalPluginProvider, InstalledHomeContribution, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, ResolvedFill, WebPluginRegistry, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
10
+ import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, ResolvedFill, WebPluginRegistry, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
11
11
  import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
12
12
  import { ComposerPromptClaim, DialogPromptClaim, ToolPromptClaim, ToolPromptInput, toolPromptClaim } from "./web/lib/toolPrompt.mjs";
13
13
  import { UiTraceRecord, UiTraceSink, flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
@@ -84,4 +84,4 @@ import { WorkspaceAdmissionDraft, admitDashboardWorkspace, admitDeclaredDashboar
84
84
  import { EMPTY_SETTINGS_DRAFT, SettingsDraftState, SettingsDraftTarget, discardSettingsDraft, loadSettingsDraft, saveSettingsDraft, setSettingsDraft, settingsDraftKey, settingsDraftStore } from "./web/stores/settingsDraftStore.mjs";
85
85
  import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStateStore.mjs";
86
86
  import { DashboardRendererProvider, DashboardRenderers } from "./web/lib/dashboardRenderers.mjs";
87
- export { 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, DevProxyState, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledGlobalPluginProvider, InstalledHomeContribution, InstalledNativeTemplate, InstalledRepositorySettingsPanel, InstalledSettingsPanel, 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, MinorMode, MinorModeAvailability, MinorModeSource, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MINOR_MODES, PACKAGED_SELECTION_AXES, PairTarget, PairingResult, PaletteState, PasskeyOutcome, PasskeySupportView, PlannedWritesInput, 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, 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, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, 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, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, 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, minorModes, mintPairingCode, moveDashboardSession, moveSession, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openTransientTab, ownerLabel, ownersOf, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railRestartStore, railSessionStatus, readDormantTranscriptPage, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, 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, 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, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionMinorModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, 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, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, 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, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
87
+ export { 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, DevProxyState, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledNativeTemplate, InstalledRepositorySettingsPanel, InstalledSettingsPanel, 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, MinorMode, MinorModeAvailability, MinorModeSource, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MINOR_MODES, PACKAGED_SELECTION_AXES, PairTarget, PairingResult, PaletteState, PasskeyOutcome, PasskeySupportView, PlannedWritesInput, 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, 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, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, 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, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, 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, minorModes, mintPairingCode, moveDashboardSession, moveSession, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openTransientTab, ownerLabel, ownersOf, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railRestartStore, railSessionStatus, readDormantTranscriptPage, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, 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, 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, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionMinorModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, 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, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, 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, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { leaderConflicts, leaderGroup } from "./web/lib/leaderTree.mjs";
13
13
  import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
14
14
  import { backdropId, bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveBackdrop, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
15
15
  import { flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
16
- import { HOST_SLOTS, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
16
+ import { HOST_SLOTS, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dashboardTileFillsAcrossHosts, dispatchChannelFrame, dropPluginSessionData, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, isDesktopClient, legacyHomeAppFills, nativeTemplateCatalog, paletteCommands, parseDashboardTileData, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSettingsPanels, pluginSettingsSections, pluginThemes, pluginToolRenderer, pluginUserMessageActions, registeredWebPluginHostIds, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
17
17
  import { ansiSegments, emptySelection, parseSelection, stripAnsi } from "./web/lib/statusLine.mjs";
18
18
  import { PACKAGED_MINOR_MODES, PACKAGED_SELECTION_AXES, activityGroups, bindFileLinkModes, fileLinkFor, fileLinkMentions, fileTabForPath, minorModes, selectionAxes, subscribeActivitySources, useActivityGroups, useDockFaceBadges, useDockFaces, useFileLinks } from "./web/lib/composition.mjs";
19
19
  import { contextGroups, inactiveTotal, ownerLabel, ownersOf, projectedGroups, totalTokens } from "./web/lib/contextComposition.mjs";
@@ -84,4 +84,4 @@ import { dialogDraftStore, updateDialogDraft, useDialogDraft } from "./web/store
84
84
  import { EMPTY_SETTINGS_DRAFT, discardSettingsDraft, loadSettingsDraft, saveSettingsDraft, setSettingsDraft, settingsDraftKey, settingsDraftStore } from "./web/stores/settingsDraftStore.mjs";
85
85
  import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStateStore.mjs";
86
86
  import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
87
- export { 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_MINOR_MODES, PACKAGED_SELECTION_AXES, STEP_UP_HEADER_NAME, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, 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, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, globalPluginProviders, globalSlotFills, globalSlotFillsAcrossHosts, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, 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, minorModes, mintPairingCode, moveDashboardSession, moveSession, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openTransientTab, ownerLabel, ownersOf, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railRestartStore, railSessionStatus, readDormantTranscriptPage, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, 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, 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, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionMinorModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, 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, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, 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, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
87
+ export { 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_MINOR_MODES, PACKAGED_SELECTION_AXES, STEP_UP_HEADER_NAME, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addDevProxyTarget, addPasskey, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionLifecycle, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, approveDevice, approvePairing, assertionFor, attachComposerCapture, attachComposerContext, attachmentPrompt, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, choosePairTarget, claimDialogMenu, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeRemoteDialog, closeResumeDialog, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deleteDevProxyTarget, 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, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, 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, minorModes, mintPairingCode, moveDashboardSession, moveSession, nativeTemplateCatalog, newPairingCode, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHubConnected, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openRemoteDialog, openResumeDialog, openTransientTab, ownerLabel, ownersOf, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, passkeysAvailable, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginMinorModes, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qrMatrix, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railRestartStore, railSessionStatus, readDormantTranscriptPage, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSessionMcpActivity, readSessionMcpConfig, readSettingsConfig, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, reduceSession, refreshDevProxyTargets, refreshPasskeys, refreshRemoteState, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPasskey, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, remoteAccessStore, removeDevProxyTarget, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionMcpSetup, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, 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, 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, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionMinorModes, sessionMoveTarget, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, 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, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, 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, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
@@ -1 +1 @@
1
- {"version":3,"file":"hub.cjs","names":[],"sources":["../../src/types/hub.ts"],"sourcesContent":["import type { BridgeState, SessionFrame } from './session';\n\n/**\n * Wire vocabulary between the hub and its pages.\n *\n * One WebSocket carries every session: hub-level frames describe the set of\n * sessions, and session-scoped traffic travels enveloped with the session id.\n * Field naming follows @earendil-works/pi-protocol so a future swap to the\n * upstream session server stays a transport change, not a rename.\n */\nexport const HUB_PROTOCOL_VERSION = 2;\n\n/** Role marker in the health payload; po-server probes for it before binding the port. */\nexport const HUB_ROLE = 'hub';\n\n/** REST endpoint for admitting and listing durable workspaces. */\nexport const WORKSPACES_API_ROUTE = '/api/workspaces';\n\n/** REST endpoint for creating sessions and browsing resumable Pi history. */\nexport const SESSIONS_API_ROUTE = '/api/workspaces/:workspaceId/sessions';\n\n/** One durable repository workspace shown in the rail, even while it has no sessions. */\nexport interface WorkspaceSummary {\n /** Server-owned backing scope for sessions shown without a workspace. */\n kind?: 'session';\n /** HTTP-only metadata, not sent on the v1 hub wire. */\n instructions?: string;\n id: string;\n root: string;\n /** Display name chosen when the workspace was added; the folder basename stands in when absent. */\n name?: string;\n /** A remembered workspace whose root could not be mounted on this server start. */\n available?: boolean;\n /** The sandbox provider id that runs this workspace; absent means it runs on this host. */\n sandbox?: string;\n /**\n * The container's lifecycle as the host reports it. On a workspace that is not sandboxed,\n * `unavailable` means the container provider cannot run here, with the cause in `sandboxReason`.\n */\n sandboxState?: WorkspaceSandboxState;\n /** Plain-language cause for an unavailable or failed container. */\n sandboxReason?: string;\n error?: string;\n}\n\nexport const WORKSPACE_SANDBOX_STATES = ['starting', 'running', 'stopping', 'unavailable', 'failed'] as const;\nexport type WorkspaceSandboxState = (typeof WORKSPACE_SANDBOX_STATES)[number];\n\n/** One inactive Pi thread available to resume in a live session's workspace. */\nexport interface PiSessionHistoryItem {\n id: string;\n name?: string;\n firstMessage: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** A session removed from History that can still be restored until `purgeAt` (both ISO 8601). */\nexport interface RemovedSessionItem extends PiSessionHistoryItem {\n removedAt: string;\n purgeAt: string;\n}\n\n/**\n * REST endpoint behind the new-session directory picker; the page sends the\n * typed path as ?q= and receives {directories}: the children of the parent\n * directory whose names match the trailing segment as a regular expression.\n */\nexport const DIRECTORIES_API_ROUTE = '/api/directories';\n\n/** Lists the visible child folders of ?path= (home when absent) for the workspace folder browser. */\nexport const DIRECTORY_CHILDREN_API_ROUTE = '/api/directories/children';\n\n/** Folders under home that already hold a `.po` folder, offered as workspaces during onboarding. */\nexport const PO_FOLDERS_API_ROUTE = '/api/directories/po';\n\n/** One folder's visible child directories, as absolute paths. */\nexport interface DirectoryListing {\n path: string;\n parent?: string;\n directories: string[];\n}\n\n/**\n * Query parameter that routes a package API request to one session's server.\n * Without it the request is answered by a hub-scoped API in this process.\n */\nexport const API_SESSION_QUERY_PARAM = 'session';\n\n/** What the agent is doing right now, derived from its frame stream. */\nexport type SessionPhase = 'idle' | 'turn' | 'compaction' | 'retry';\n\nexport interface SessionProfile {\n name: string;\n displayName?: string;\n /** Changes whenever the icon does; absent when the profile has no icon. */\n iconVersion?: string;\n}\n\nexport interface SessionGitStatus {\n branch: string;\n /** True when the working tree has uncommitted changes; rendered as a star. */\n dirty: boolean;\n}\n\n/** One immutable, signed client composition resolved for a session. */\nexport interface SessionWebComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n /** Same-origin signed-manifest route read by the trusted service worker. */\n manifestUrl: string;\n /** Same-origin prefix for the untrusted source bytes verified by the worker. */\n rawAssetBaseUrl: string;\n /** Worker-owned prefix from which the page may execute verified bytes. */\n verifiedAssetBaseUrl: string;\n /** `[slot, entry]` per plugin copy this mount runs, each entry an absolute path below both asset prefixes. */\n pluginEntries: [string, string][];\n /** Absolute paths below both asset prefixes of every file this mount's slots can load. */\n assetPaths: string[];\n /** Absolute paths below both asset prefixes, replaced when this session is focused. */\n stylePaths: string[];\n /** Frame types owned by the matching session-local hub composition. */\n channels: string[];\n /**\n * The slots this mount runs out of a shared build. Absent means the composition\n * holds only this mount's plugins, as in-memory test hosts publish it.\n */\n plugins?: string[];\n}\n\n/** One immutable, signed native composition resolved for a session; read by po-native, ignored by the web. */\nexport interface SessionNativeComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n scope: 'global' | 'workspace' | 'session';\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n manifestUrl: string;\n rawAssetBaseUrl: string;\n /** `[pluginId, modulePath]` for each plugin of this mount that built; the shell loads each on its own. */\n pluginEntries: [string, string][];\n /** Shared host UI entry in the same signed generation; absent on legacy hosts. */\n uiEntry?: string;\n channels: string[];\n /** The `poNative.pluginId` values resolved for this mount; the shell installs only these. */\n plugins: string[];\n}\n\n/**\n * Everything the rail needs to render one session without subscribing to it.\n */\nexport interface SessionSummary {\n workspaceId?: string;\n id: string;\n name: string;\n cwd: string;\n /** ISO 8601, from the session's registry record. */\n createdAt: string;\n /** ISO 8601, bumped whenever the session's frame stream moves. */\n updatedAt: string;\n phase: SessionPhase;\n /** ISO 8601 timestamp of the last phase change; drives \"running · 12m\". */\n phaseSince: string;\n /** The hub's own attachment to the session socket. */\n attach: BridgeState;\n /** Human-readable cause, present when attach is refused or closed. */\n attachReason?: string;\n pendingMessageCount: number;\n /** True once prior work is observed; false may also mean unavailable history. */\n everPrompted: boolean;\n /** True while the agent waits on a dialog answer; \"waiting for your input\". */\n awaitingInput: boolean;\n /** ISO 8601 of the last settled run, once one finished. */\n lastSettledAt?: string;\n /** Authoritative owned work; null is unknown, absent is a legacy host. */\n backgroundWorkActive?: boolean | null;\n /** Omitted when the cwd is not a git repository or git is unavailable. */\n git?: SessionGitStatus;\n /** Selected profile; the icon itself is served by the session avatar route. */\n profile?: SessionProfile;\n /** Signed plugin composition independently resolved for this session. */\n webComposition?: SessionWebComposition;\n /** Signed native composition for this session, when native targets were built. */\n nativeComposition?: SessionNativeComposition;\n /**\n * The session this one was spawned from, recorded by the hub when it opened the session.\n * The rail nests a session under its parent; absent means a top-level row.\n */\n parentSessionId?: string;\n /**\n * The spawning package's own label for the relationship, such as \"worktree\".\n * The hub does not interpret it; the rail uses it to pick an affordance.\n */\n sessionProvenance?: string;\n /** User-assigned groups; sessions sharing one may message each other. Absent means none. */\n groups?: string[];\n /** Host reservations awaiting a durable child runtime, not live sessions. */\n pendingSetups?: Array<{\n id: string;\n name: string;\n createdAt: string;\n cwd?: string;\n status?: 'provisioning' | 'failed' | 'interrupted';\n setupKind?: 'managed-worktree' | 'existing-directory';\n errorCode?: 'SESSION_WORKTREE_PROVISION_FAILED' | 'SESSION_UNAVAILABLE';\n }>;\n /**\n * One line an extension published about background work it runs for this\n * session, such as a workflow; the rail shows it in place of the idle copy.\n */\n activity?: { label: string; attention?: boolean; since?: string };\n /** Tool calls waiting for the person's approval in the Activity rail. */\n pendingApprovalCount?: number;\n /**\n * The hub recorded this session but has not reopened it since its last\n * restart. Its journal is on disk; nothing is running behind the card until\n * the page asks for it.\n */\n dormant?: boolean;\n}\n\nexport const HUB_HELLO_TYPE = 'hub_hello';\n/** Hub-synthesized close for an answered dialog; Pi itself never announces one. */\nexport const DIALOG_ANSWERED_TYPE = 'extension_ui_answered';\n\n/**\n * The custom session entry the Po runtime journals with its minor-mode\n * catalog projection; it arrives inside Pi's entry_appended frames. The shape\n * mirrors MinorModeProjection in po-minor-mode.\n */\nexport const MINOR_MODE_ENTRY_TYPE = 'po-minor-modes';\n\n/**\n * The custom session entry the Po runtime journals when the agent's model\n * changes without a client having asked for it. The shape mirrors\n * AgentModelProjection in po-core.\n *\n * Pi reports a thinking-level switch on the wire, so that field follows from\n * the frame alone. It has no wire event for the model, so plan mode applying\n * its configured planning model would otherwise leave the chip naming the\n * model the session left behind.\n */\nexport const AGENT_MODEL_ENTRY_TYPE = 'po-agent-model';\n/**\n * The custom session entry Po journals describing what the session is\n * composed of: which mode admitted each tool and skill, and what each costs.\n *\n * Schemas are deliberately absent. Only names, kinds, owners and integer token\n * counts travel, so republishing the whole composition stays cheap.\n */\nexport const CONTEXT_ENTRY_TYPE = 'po-context';\n\n/**\n * The custom session entry po-profile journals naming the persona the\n * session speaks as. The shape mirrors ProfileIdentityProjection in\n * po-core.\n *\n * Unlike the entries above, this one is transcript rather than projection: it\n * stays in journal order and is never collapsed to the latest record, because a\n * message keeps the persona it was written under. Adding it to\n * PROJECTION_ENTRY_TYPES would repaint the whole transcript on every switch.\n */\nexport const PROFILE_IDENTITY_ENTRY_TYPE = 'po-profile-identity';\n/**\n * The custom session entry po-domain journals once Pi has rebuilt its\n * resource catalog for a reload; it mirrors PO_RESOURCE_CATALOG_ENTRY_TYPE in\n * po-core.\n *\n * A reload is what changes the skills the composer offers under `$`, and Pi\n * reports nothing else for one, so this entry is the cockpit's only notice that\n * the command list it cached belongs to the previous selection.\n */\nexport const RESOURCE_CATALOG_ENTRY_TYPE = 'po-resource-catalog';\nexport interface MinorModeActionProjection {\n id: string;\n label: string;\n description: string;\n enabled: boolean;\n disabledReason?: string;\n needsInput: boolean;\n}\n\nexport interface MinorModeRecordProjection {\n id: string;\n label: string;\n description: string;\n order: number;\n activation: 'inactive' | 'activating' | 'active' | 'deactivating';\n condition: string;\n detail?: string;\n actions: MinorModeActionProjection[];\n}\n\nexport interface MinorModeProjection {\n version: 1;\n revision: number;\n modes: MinorModeRecordProjection[];\n}\n\nexport type ContextGroupKind = 'major' | 'minor' | 'domain' | 'shared' | 'core';\nexport type ContextItemSource = 'extension' | 'mcp' | 'plugin' | 'core';\n\nexport interface ContextItemProjection {\n name: string;\n itemKind: 'tool' | 'skill';\n source: ContextItemSource;\n owner: string;\n tokens: number;\n active: boolean;\n}\n\nexport interface ContextGroupProjection {\n id: string;\n label: string;\n kind: ContextGroupKind;\n items: ContextItemProjection[];\n /** What the group costs now: active items only. */\n tokens: number;\n /** What its gated items would add if switched on. */\n inactiveTokens: number;\n}\n\nexport interface ContextProjection {\n version: 1;\n revision: number;\n selection?: { majorMode: string; domains: string[]; profile?: string };\n groups: ContextGroupProjection[];\n totalTokens: number;\n inactiveTokens: number;\n /**\n * What the assembled system prompt costs, deliberately outside the groups.\n *\n * Every tool's prose and every skill's listing already count inside\n * `totalTokens`, and those are slices of this same text, so the two figures\n * overlap and must not be added. `stage` is `base` when the session has sent\n * nothing yet and the prompt shown is the one before packages patch it.\n */\n systemPrompt?: { tokens: number; stage: 'base' | 'effective' };\n /** Names the tokenizer, because the figures are indicative, not billed. */\n estimator: string;\n}\nexport const SESSION_COMMAND_TYPE = 'session_command';\n/** A page asks for the transcript before what it already holds. */\nexport const HISTORY_REQUEST_TYPE = 'history_request';\n/** One older window, oldest first, answering a history_request. */\nexport const HISTORY_PAGE_TYPE = 'history_page';\n\n/**\n * How many journalled messages one page carries. Small enough that prepending\n * a window never blocks the reader's scroll, large enough that a flick through\n * a long transcript does not turn into a hundred round trips.\n */\nexport const HISTORY_PAGE_SIZE = 100;\n\nexport interface HistoryRequestFrame {\n type: typeof HISTORY_REQUEST_TYPE;\n sessionId: string;\n /** Journal id of the oldest entry the page holds; absent asks for the newest window. */\n before?: string;\n limit?: number;\n}\n\nexport interface HistoryPageFrame {\n type: typeof HISTORY_PAGE_TYPE;\n sessionId: string;\n /** Entry frames, oldest first, to prepend above what the page holds. */\n frames: Record<string, unknown>[];\n /** The cursor for the next older window; null when the transcript starts here. */\n cursor: string | null;\n /** Whether anything older than this window exists. */\n hasMore: boolean;\n /** Echoed so a page can drop an answer to a question it has since abandoned. */\n before?: string;\n}\n\n/** First frame on every page socket, before the snapshot. */\nexport interface HubHelloFrame {\n type: typeof HUB_HELLO_TYPE;\n protocol: number;\n /** Frame types of the hub's loaded data channels; lets a panel tell \"plugin server not installed\" from \"no data\". */\n channels: string[];\n}\n\n/** One command frame from the page, addressed to a session's agent. */\nexport interface SessionCommandFrame {\n type: typeof SESSION_COMMAND_TYPE;\n sessionId: string;\n frame: SessionFrame;\n}\n\nexport function hubHello(channels: string[]): HubHelloFrame {\n return { type: HUB_HELLO_TYPE, protocol: HUB_PROTOCOL_VERSION, channels };\n}\n\nexport function sessionCommand(sessionId: string, frame: SessionFrame): SessionCommandFrame {\n return { type: SESSION_COMMAND_TYPE, sessionId, frame };\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,uBAAuB;;AAGpC,MAAa,WAAW;;AAGxB,MAAa,uBAAuB;;AAGpC,MAAa,qBAAqB;AA0BlC,MAAa,2BAA2B;CAAC;CAAY;CAAW;CAAY;CAAe;AAAQ;;;;;;AAuBnG,MAAa,wBAAwB;;AAGrC,MAAa,+BAA+B;;AAG5C,MAAa,uBAAuB;;;;;AAapC,MAAa,0BAA0B;AAwIvC,MAAa,iBAAiB;;AAE9B,MAAa,uBAAuB;;;;;;AAOpC,MAAa,wBAAwB;;;;;;;;;;;AAYrC,MAAa,yBAAyB;;;;;;;;AAQtC,MAAa,qBAAqB;;;;;;;;;;;AAYlC,MAAa,8BAA8B;;;;;;;;;;AAU3C,MAAa,8BAA8B;AAqE3C,MAAa,uBAAuB;;AAEpC,MAAa,uBAAuB;;AAEpC,MAAa,oBAAoB;;;;;;AAOjC,MAAa,oBAAoB;AAsCjC,SAAgB,SAAS,UAAmC;CAC1D,OAAO;EAAE,MAAM;EAAgB,UAAA;EAAgC;CAAS;AAC1E;AAEA,SAAgB,eAAe,WAAmB,OAA0C;CAC1F,OAAO;EAAE,MAAM;EAAsB;EAAW;CAAM;AACxD"}
1
+ {"version":3,"file":"hub.cjs","names":[],"sources":["../../src/types/hub.ts"],"sourcesContent":["import type { BridgeState, SessionFrame } from './session';\n\n/**\n * Wire vocabulary between the hub and its pages.\n *\n * One WebSocket carries every session: hub-level frames describe the set of\n * sessions, and session-scoped traffic travels enveloped with the session id.\n * Field naming follows @earendil-works/pi-protocol so a future swap to the\n * upstream session server stays a transport change, not a rename.\n */\nexport const HUB_PROTOCOL_VERSION = 2;\n\n/** Role marker in the health payload; po-server probes for it before binding the port. */\nexport const HUB_ROLE = 'hub';\n\n/** REST endpoint for admitting and listing durable workspaces. */\nexport const WORKSPACES_API_ROUTE = '/api/workspaces';\n\n/** REST endpoint for creating sessions and browsing resumable Pi history. */\nexport const SESSIONS_API_ROUTE = '/api/workspaces/:workspaceId/sessions';\n\n/** One durable repository workspace shown in the rail, even while it has no sessions. */\nexport interface WorkspaceSummary {\n /** Server-owned backing scope for sessions shown without a workspace. */\n kind?: 'session';\n /** HTTP-only metadata, not sent on the v1 hub wire. */\n instructions?: string;\n id: string;\n root: string;\n /** Display name chosen when the workspace was added; the folder basename stands in when absent. */\n name?: string;\n /** A remembered workspace whose root could not be mounted on this server start. */\n available?: boolean;\n /** The sandbox provider id that runs this workspace; absent means it runs on this host. */\n sandbox?: string;\n /**\n * The container's lifecycle as the host reports it. On a workspace that is not sandboxed,\n * `unavailable` means the container provider cannot run here, with the cause in `sandboxReason`.\n */\n sandboxState?: WorkspaceSandboxState;\n /** Plain-language cause for an unavailable or failed container. */\n sandboxReason?: string;\n error?: string;\n}\n\nexport const WORKSPACE_SANDBOX_STATES = ['starting', 'running', 'stopping', 'unavailable', 'failed'] as const;\nexport type WorkspaceSandboxState = (typeof WORKSPACE_SANDBOX_STATES)[number];\n\n/** One inactive Pi thread available to resume in a live session's workspace. */\nexport interface PiSessionHistoryItem {\n id: string;\n name?: string;\n firstMessage: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** A session removed from History that can still be restored until `purgeAt` (both ISO 8601). */\nexport interface RemovedSessionItem extends PiSessionHistoryItem {\n removedAt: string;\n purgeAt: string;\n}\n\n/**\n * REST endpoint behind the new-session directory picker; the page sends the\n * typed path as ?q= and receives {directories}: the children of the parent\n * directory whose names match the trailing segment as a regular expression.\n */\nexport const DIRECTORIES_API_ROUTE = '/api/directories';\n\n/** Lists the visible child folders of ?path= (home when absent) for the workspace folder browser. */\nexport const DIRECTORY_CHILDREN_API_ROUTE = '/api/directories/children';\n\n/** Folders under home that already hold a `.po` folder, offered as workspaces during onboarding. */\nexport const PO_FOLDERS_API_ROUTE = '/api/directories/po';\n\n/** One folder's visible child directories, as absolute paths. */\nexport interface DirectoryListing {\n path: string;\n parent?: string;\n directories: string[];\n}\n\n/**\n * Query parameter that routes a package API request to one session's server.\n * Without it the request is answered by a hub-scoped API in this process.\n */\nexport const API_SESSION_QUERY_PARAM = 'session';\n\n/** What the agent is doing right now, derived from its frame stream. */\nexport type SessionPhase = 'idle' | 'turn' | 'compaction' | 'retry';\n\nexport interface SessionProfile {\n name: string;\n displayName?: string;\n /** Changes whenever the icon does; absent when the profile has no icon. */\n iconVersion?: string;\n}\n\nexport interface SessionGitStatus {\n branch: string;\n /** True when the working tree has uncommitted changes; rendered as a star. */\n dirty: boolean;\n}\n\n/** One immutable, signed client composition resolved for a session. */\nexport interface SessionWebComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n /** Same-origin signed-manifest route read by the trusted service worker. */\n manifestUrl: string;\n /** Same-origin prefix for the untrusted source bytes verified by the worker. */\n rawAssetBaseUrl: string;\n /** Worker-owned prefix from which the page may execute verified bytes. */\n verifiedAssetBaseUrl: string;\n /** `[slot, entry]` per plugin copy this mount runs, each entry an absolute path below both asset prefixes. */\n pluginEntries: [string, string][];\n /** Absolute paths below both asset prefixes of every file this mount's slots can load. */\n assetPaths: string[];\n /** Absolute paths below both asset prefixes, replaced when this session is focused. */\n stylePaths: string[];\n /** Frame types owned by the matching session-local hub composition. */\n channels: string[];\n /**\n * The slots this mount runs out of a shared build. Absent means the composition\n * holds only this mount's plugins, as in-memory test hosts publish it.\n */\n plugins?: string[];\n}\n\n/** One immutable, signed native composition resolved for a session; read by po-native, ignored by the web. */\nexport interface SessionNativeComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n scope: 'host' | 'workspace' | 'session';\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n manifestUrl: string;\n rawAssetBaseUrl: string;\n /** `[pluginId, modulePath]` for each plugin of this mount that built; the shell loads each on its own. */\n pluginEntries: [string, string][];\n /** Shared host UI entry in the same signed generation; absent on legacy hosts. */\n uiEntry?: string;\n channels: string[];\n /** The `poNative.pluginId` values resolved for this mount; the shell installs only these. */\n plugins: string[];\n}\n\n/**\n * Everything the rail needs to render one session without subscribing to it.\n */\nexport interface SessionSummary {\n workspaceId?: string;\n id: string;\n name: string;\n cwd: string;\n /** ISO 8601, from the session's registry record. */\n createdAt: string;\n /** ISO 8601, bumped whenever the session's frame stream moves. */\n updatedAt: string;\n phase: SessionPhase;\n /** ISO 8601 timestamp of the last phase change; drives \"running · 12m\". */\n phaseSince: string;\n /** The hub's own attachment to the session socket. */\n attach: BridgeState;\n /** Human-readable cause, present when attach is refused or closed. */\n attachReason?: string;\n pendingMessageCount: number;\n /** True once prior work is observed; false may also mean unavailable history. */\n everPrompted: boolean;\n /** True while the agent waits on a dialog answer; \"waiting for your input\". */\n awaitingInput: boolean;\n /** ISO 8601 of the last settled run, once one finished. */\n lastSettledAt?: string;\n /** Authoritative owned work; null is unknown, absent is a legacy host. */\n backgroundWorkActive?: boolean | null;\n /** Omitted when the cwd is not a git repository or git is unavailable. */\n git?: SessionGitStatus;\n /** Selected profile; the icon itself is served by the session avatar route. */\n profile?: SessionProfile;\n /** Signed plugin composition independently resolved for this session. */\n webComposition?: SessionWebComposition;\n /** Signed native composition for this session, when native targets were built. */\n nativeComposition?: SessionNativeComposition;\n /**\n * The session this one was spawned from, recorded by the hub when it opened the session.\n * The rail nests a session under its parent; absent means a top-level row.\n */\n parentSessionId?: string;\n /**\n * The spawning package's own label for the relationship, such as \"worktree\".\n * The hub does not interpret it; the rail uses it to pick an affordance.\n */\n sessionProvenance?: string;\n /** User-assigned groups; sessions sharing one may message each other. Absent means none. */\n groups?: string[];\n /** Host reservations awaiting a durable child runtime, not live sessions. */\n pendingSetups?: Array<{\n id: string;\n name: string;\n createdAt: string;\n cwd?: string;\n status?: 'provisioning' | 'failed' | 'interrupted';\n setupKind?: 'managed-worktree' | 'existing-directory';\n errorCode?: 'SESSION_WORKTREE_PROVISION_FAILED' | 'SESSION_UNAVAILABLE';\n }>;\n /**\n * One line an extension published about background work it runs for this\n * session, such as a workflow; the rail shows it in place of the idle copy.\n */\n activity?: { label: string; attention?: boolean; since?: string };\n /** Tool calls waiting for the person's approval in the Activity rail. */\n pendingApprovalCount?: number;\n /**\n * The hub recorded this session but has not reopened it since its last\n * restart. Its journal is on disk; nothing is running behind the card until\n * the page asks for it.\n */\n dormant?: boolean;\n}\n\nexport const HUB_HELLO_TYPE = 'hub_hello';\n/** Hub-synthesized close for an answered dialog; Pi itself never announces one. */\nexport const DIALOG_ANSWERED_TYPE = 'extension_ui_answered';\n\n/**\n * The custom session entry the Po runtime journals with its minor-mode\n * catalog projection; it arrives inside Pi's entry_appended frames. The shape\n * mirrors MinorModeProjection in po-minor-mode.\n */\nexport const MINOR_MODE_ENTRY_TYPE = 'po-minor-modes';\n\n/**\n * The custom session entry the Po runtime journals when the agent's model\n * changes without a client having asked for it. The shape mirrors\n * AgentModelProjection in po-core.\n *\n * Pi reports a thinking-level switch on the wire, so that field follows from\n * the frame alone. It has no wire event for the model, so plan mode applying\n * its configured planning model would otherwise leave the chip naming the\n * model the session left behind.\n */\nexport const AGENT_MODEL_ENTRY_TYPE = 'po-agent-model';\n/**\n * The custom session entry Po journals describing what the session is\n * composed of: which mode admitted each tool and skill, and what each costs.\n *\n * Schemas are deliberately absent. Only names, kinds, owners and integer token\n * counts travel, so republishing the whole composition stays cheap.\n */\nexport const CONTEXT_ENTRY_TYPE = 'po-context';\n\n/**\n * The custom session entry po-profile journals naming the persona the\n * session speaks as. The shape mirrors ProfileIdentityProjection in\n * po-core.\n *\n * Unlike the entries above, this one is transcript rather than projection: it\n * stays in journal order and is never collapsed to the latest record, because a\n * message keeps the persona it was written under. Adding it to\n * PROJECTION_ENTRY_TYPES would repaint the whole transcript on every switch.\n */\nexport const PROFILE_IDENTITY_ENTRY_TYPE = 'po-profile-identity';\n/**\n * The custom session entry po-domain journals once Pi has rebuilt its\n * resource catalog for a reload; it mirrors PO_RESOURCE_CATALOG_ENTRY_TYPE in\n * po-core.\n *\n * A reload is what changes the skills the composer offers under `$`, and Pi\n * reports nothing else for one, so this entry is the cockpit's only notice that\n * the command list it cached belongs to the previous selection.\n */\nexport const RESOURCE_CATALOG_ENTRY_TYPE = 'po-resource-catalog';\nexport interface MinorModeActionProjection {\n id: string;\n label: string;\n description: string;\n enabled: boolean;\n disabledReason?: string;\n needsInput: boolean;\n}\n\nexport interface MinorModeRecordProjection {\n id: string;\n label: string;\n description: string;\n order: number;\n activation: 'inactive' | 'activating' | 'active' | 'deactivating';\n condition: string;\n detail?: string;\n actions: MinorModeActionProjection[];\n}\n\nexport interface MinorModeProjection {\n version: 1;\n revision: number;\n modes: MinorModeRecordProjection[];\n}\n\nexport type ContextGroupKind = 'major' | 'minor' | 'domain' | 'shared' | 'core';\nexport type ContextItemSource = 'extension' | 'mcp' | 'plugin' | 'core';\n\nexport interface ContextItemProjection {\n name: string;\n itemKind: 'tool' | 'skill';\n source: ContextItemSource;\n owner: string;\n tokens: number;\n active: boolean;\n}\n\nexport interface ContextGroupProjection {\n id: string;\n label: string;\n kind: ContextGroupKind;\n items: ContextItemProjection[];\n /** What the group costs now: active items only. */\n tokens: number;\n /** What its gated items would add if switched on. */\n inactiveTokens: number;\n}\n\nexport interface ContextProjection {\n version: 1;\n revision: number;\n selection?: { majorMode: string; domains: string[]; profile?: string };\n groups: ContextGroupProjection[];\n totalTokens: number;\n inactiveTokens: number;\n /**\n * What the assembled system prompt costs, deliberately outside the groups.\n *\n * Every tool's prose and every skill's listing already count inside\n * `totalTokens`, and those are slices of this same text, so the two figures\n * overlap and must not be added. `stage` is `base` when the session has sent\n * nothing yet and the prompt shown is the one before packages patch it.\n */\n systemPrompt?: { tokens: number; stage: 'base' | 'effective' };\n /** Names the tokenizer, because the figures are indicative, not billed. */\n estimator: string;\n}\nexport const SESSION_COMMAND_TYPE = 'session_command';\n/** A page asks for the transcript before what it already holds. */\nexport const HISTORY_REQUEST_TYPE = 'history_request';\n/** One older window, oldest first, answering a history_request. */\nexport const HISTORY_PAGE_TYPE = 'history_page';\n\n/**\n * How many journalled messages one page carries. Small enough that prepending\n * a window never blocks the reader's scroll, large enough that a flick through\n * a long transcript does not turn into a hundred round trips.\n */\nexport const HISTORY_PAGE_SIZE = 100;\n\nexport interface HistoryRequestFrame {\n type: typeof HISTORY_REQUEST_TYPE;\n sessionId: string;\n /** Journal id of the oldest entry the page holds; absent asks for the newest window. */\n before?: string;\n limit?: number;\n}\n\nexport interface HistoryPageFrame {\n type: typeof HISTORY_PAGE_TYPE;\n sessionId: string;\n /** Entry frames, oldest first, to prepend above what the page holds. */\n frames: Record<string, unknown>[];\n /** The cursor for the next older window; null when the transcript starts here. */\n cursor: string | null;\n /** Whether anything older than this window exists. */\n hasMore: boolean;\n /** Echoed so a page can drop an answer to a question it has since abandoned. */\n before?: string;\n}\n\n/** First frame on every page socket, before the snapshot. */\nexport interface HubHelloFrame {\n type: typeof HUB_HELLO_TYPE;\n protocol: number;\n /** Frame types of the hub's loaded data channels; lets a panel tell \"plugin server not installed\" from \"no data\". */\n channels: string[];\n}\n\n/** One command frame from the page, addressed to a session's agent. */\nexport interface SessionCommandFrame {\n type: typeof SESSION_COMMAND_TYPE;\n sessionId: string;\n frame: SessionFrame;\n}\n\nexport function hubHello(channels: string[]): HubHelloFrame {\n return { type: HUB_HELLO_TYPE, protocol: HUB_PROTOCOL_VERSION, channels };\n}\n\nexport function sessionCommand(sessionId: string, frame: SessionFrame): SessionCommandFrame {\n return { type: SESSION_COMMAND_TYPE, sessionId, frame };\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,uBAAuB;;AAGpC,MAAa,WAAW;;AAGxB,MAAa,uBAAuB;;AAGpC,MAAa,qBAAqB;AA0BlC,MAAa,2BAA2B;CAAC;CAAY;CAAW;CAAY;CAAe;AAAQ;;;;;;AAuBnG,MAAa,wBAAwB;;AAGrC,MAAa,+BAA+B;;AAG5C,MAAa,uBAAuB;;;;;AAapC,MAAa,0BAA0B;AAwIvC,MAAa,iBAAiB;;AAE9B,MAAa,uBAAuB;;;;;;AAOpC,MAAa,wBAAwB;;;;;;;;;;;AAYrC,MAAa,yBAAyB;;;;;;;;AAQtC,MAAa,qBAAqB;;;;;;;;;;;AAYlC,MAAa,8BAA8B;;;;;;;;;;AAU3C,MAAa,8BAA8B;AAqE3C,MAAa,uBAAuB;;AAEpC,MAAa,uBAAuB;;AAEpC,MAAa,oBAAoB;;;;;;AAOjC,MAAa,oBAAoB;AAsCjC,SAAgB,SAAS,UAAmC;CAC1D,OAAO;EAAE,MAAM;EAAgB,UAAA;EAAgC;CAAS;AAC1E;AAEA,SAAgB,eAAe,WAAmB,OAA0C;CAC1F,OAAO;EAAE,MAAM;EAAsB;EAAW;CAAM;AACxD"}
@@ -117,7 +117,7 @@ export interface SessionWebComposition {
117
117
  export interface SessionNativeComposition {
118
118
  /** Stable identity of the synchronized root and generation. */
119
119
  id: string;
120
- scope: 'global' | 'workspace' | 'session';
120
+ scope: 'host' | 'workspace' | 'session';
121
121
  /** Monotonic signing revision advertised by the manifest. */
122
122
  revision: number;
123
123
  manifestUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"hub.mjs","names":[],"sources":["../../src/types/hub.ts"],"sourcesContent":["import type { BridgeState, SessionFrame } from './session';\n\n/**\n * Wire vocabulary between the hub and its pages.\n *\n * One WebSocket carries every session: hub-level frames describe the set of\n * sessions, and session-scoped traffic travels enveloped with the session id.\n * Field naming follows @earendil-works/pi-protocol so a future swap to the\n * upstream session server stays a transport change, not a rename.\n */\nexport const HUB_PROTOCOL_VERSION = 2;\n\n/** Role marker in the health payload; po-server probes for it before binding the port. */\nexport const HUB_ROLE = 'hub';\n\n/** REST endpoint for admitting and listing durable workspaces. */\nexport const WORKSPACES_API_ROUTE = '/api/workspaces';\n\n/** REST endpoint for creating sessions and browsing resumable Pi history. */\nexport const SESSIONS_API_ROUTE = '/api/workspaces/:workspaceId/sessions';\n\n/** One durable repository workspace shown in the rail, even while it has no sessions. */\nexport interface WorkspaceSummary {\n /** Server-owned backing scope for sessions shown without a workspace. */\n kind?: 'session';\n /** HTTP-only metadata, not sent on the v1 hub wire. */\n instructions?: string;\n id: string;\n root: string;\n /** Display name chosen when the workspace was added; the folder basename stands in when absent. */\n name?: string;\n /** A remembered workspace whose root could not be mounted on this server start. */\n available?: boolean;\n /** The sandbox provider id that runs this workspace; absent means it runs on this host. */\n sandbox?: string;\n /**\n * The container's lifecycle as the host reports it. On a workspace that is not sandboxed,\n * `unavailable` means the container provider cannot run here, with the cause in `sandboxReason`.\n */\n sandboxState?: WorkspaceSandboxState;\n /** Plain-language cause for an unavailable or failed container. */\n sandboxReason?: string;\n error?: string;\n}\n\nexport const WORKSPACE_SANDBOX_STATES = ['starting', 'running', 'stopping', 'unavailable', 'failed'] as const;\nexport type WorkspaceSandboxState = (typeof WORKSPACE_SANDBOX_STATES)[number];\n\n/** One inactive Pi thread available to resume in a live session's workspace. */\nexport interface PiSessionHistoryItem {\n id: string;\n name?: string;\n firstMessage: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** A session removed from History that can still be restored until `purgeAt` (both ISO 8601). */\nexport interface RemovedSessionItem extends PiSessionHistoryItem {\n removedAt: string;\n purgeAt: string;\n}\n\n/**\n * REST endpoint behind the new-session directory picker; the page sends the\n * typed path as ?q= and receives {directories}: the children of the parent\n * directory whose names match the trailing segment as a regular expression.\n */\nexport const DIRECTORIES_API_ROUTE = '/api/directories';\n\n/** Lists the visible child folders of ?path= (home when absent) for the workspace folder browser. */\nexport const DIRECTORY_CHILDREN_API_ROUTE = '/api/directories/children';\n\n/** Folders under home that already hold a `.po` folder, offered as workspaces during onboarding. */\nexport const PO_FOLDERS_API_ROUTE = '/api/directories/po';\n\n/** One folder's visible child directories, as absolute paths. */\nexport interface DirectoryListing {\n path: string;\n parent?: string;\n directories: string[];\n}\n\n/**\n * Query parameter that routes a package API request to one session's server.\n * Without it the request is answered by a hub-scoped API in this process.\n */\nexport const API_SESSION_QUERY_PARAM = 'session';\n\n/** What the agent is doing right now, derived from its frame stream. */\nexport type SessionPhase = 'idle' | 'turn' | 'compaction' | 'retry';\n\nexport interface SessionProfile {\n name: string;\n displayName?: string;\n /** Changes whenever the icon does; absent when the profile has no icon. */\n iconVersion?: string;\n}\n\nexport interface SessionGitStatus {\n branch: string;\n /** True when the working tree has uncommitted changes; rendered as a star. */\n dirty: boolean;\n}\n\n/** One immutable, signed client composition resolved for a session. */\nexport interface SessionWebComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n /** Same-origin signed-manifest route read by the trusted service worker. */\n manifestUrl: string;\n /** Same-origin prefix for the untrusted source bytes verified by the worker. */\n rawAssetBaseUrl: string;\n /** Worker-owned prefix from which the page may execute verified bytes. */\n verifiedAssetBaseUrl: string;\n /** `[slot, entry]` per plugin copy this mount runs, each entry an absolute path below both asset prefixes. */\n pluginEntries: [string, string][];\n /** Absolute paths below both asset prefixes of every file this mount's slots can load. */\n assetPaths: string[];\n /** Absolute paths below both asset prefixes, replaced when this session is focused. */\n stylePaths: string[];\n /** Frame types owned by the matching session-local hub composition. */\n channels: string[];\n /**\n * The slots this mount runs out of a shared build. Absent means the composition\n * holds only this mount's plugins, as in-memory test hosts publish it.\n */\n plugins?: string[];\n}\n\n/** One immutable, signed native composition resolved for a session; read by po-native, ignored by the web. */\nexport interface SessionNativeComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n scope: 'global' | 'workspace' | 'session';\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n manifestUrl: string;\n rawAssetBaseUrl: string;\n /** `[pluginId, modulePath]` for each plugin of this mount that built; the shell loads each on its own. */\n pluginEntries: [string, string][];\n /** Shared host UI entry in the same signed generation; absent on legacy hosts. */\n uiEntry?: string;\n channels: string[];\n /** The `poNative.pluginId` values resolved for this mount; the shell installs only these. */\n plugins: string[];\n}\n\n/**\n * Everything the rail needs to render one session without subscribing to it.\n */\nexport interface SessionSummary {\n workspaceId?: string;\n id: string;\n name: string;\n cwd: string;\n /** ISO 8601, from the session's registry record. */\n createdAt: string;\n /** ISO 8601, bumped whenever the session's frame stream moves. */\n updatedAt: string;\n phase: SessionPhase;\n /** ISO 8601 timestamp of the last phase change; drives \"running · 12m\". */\n phaseSince: string;\n /** The hub's own attachment to the session socket. */\n attach: BridgeState;\n /** Human-readable cause, present when attach is refused or closed. */\n attachReason?: string;\n pendingMessageCount: number;\n /** True once prior work is observed; false may also mean unavailable history. */\n everPrompted: boolean;\n /** True while the agent waits on a dialog answer; \"waiting for your input\". */\n awaitingInput: boolean;\n /** ISO 8601 of the last settled run, once one finished. */\n lastSettledAt?: string;\n /** Authoritative owned work; null is unknown, absent is a legacy host. */\n backgroundWorkActive?: boolean | null;\n /** Omitted when the cwd is not a git repository or git is unavailable. */\n git?: SessionGitStatus;\n /** Selected profile; the icon itself is served by the session avatar route. */\n profile?: SessionProfile;\n /** Signed plugin composition independently resolved for this session. */\n webComposition?: SessionWebComposition;\n /** Signed native composition for this session, when native targets were built. */\n nativeComposition?: SessionNativeComposition;\n /**\n * The session this one was spawned from, recorded by the hub when it opened the session.\n * The rail nests a session under its parent; absent means a top-level row.\n */\n parentSessionId?: string;\n /**\n * The spawning package's own label for the relationship, such as \"worktree\".\n * The hub does not interpret it; the rail uses it to pick an affordance.\n */\n sessionProvenance?: string;\n /** User-assigned groups; sessions sharing one may message each other. Absent means none. */\n groups?: string[];\n /** Host reservations awaiting a durable child runtime, not live sessions. */\n pendingSetups?: Array<{\n id: string;\n name: string;\n createdAt: string;\n cwd?: string;\n status?: 'provisioning' | 'failed' | 'interrupted';\n setupKind?: 'managed-worktree' | 'existing-directory';\n errorCode?: 'SESSION_WORKTREE_PROVISION_FAILED' | 'SESSION_UNAVAILABLE';\n }>;\n /**\n * One line an extension published about background work it runs for this\n * session, such as a workflow; the rail shows it in place of the idle copy.\n */\n activity?: { label: string; attention?: boolean; since?: string };\n /** Tool calls waiting for the person's approval in the Activity rail. */\n pendingApprovalCount?: number;\n /**\n * The hub recorded this session but has not reopened it since its last\n * restart. Its journal is on disk; nothing is running behind the card until\n * the page asks for it.\n */\n dormant?: boolean;\n}\n\nexport const HUB_HELLO_TYPE = 'hub_hello';\n/** Hub-synthesized close for an answered dialog; Pi itself never announces one. */\nexport const DIALOG_ANSWERED_TYPE = 'extension_ui_answered';\n\n/**\n * The custom session entry the Po runtime journals with its minor-mode\n * catalog projection; it arrives inside Pi's entry_appended frames. The shape\n * mirrors MinorModeProjection in po-minor-mode.\n */\nexport const MINOR_MODE_ENTRY_TYPE = 'po-minor-modes';\n\n/**\n * The custom session entry the Po runtime journals when the agent's model\n * changes without a client having asked for it. The shape mirrors\n * AgentModelProjection in po-core.\n *\n * Pi reports a thinking-level switch on the wire, so that field follows from\n * the frame alone. It has no wire event for the model, so plan mode applying\n * its configured planning model would otherwise leave the chip naming the\n * model the session left behind.\n */\nexport const AGENT_MODEL_ENTRY_TYPE = 'po-agent-model';\n/**\n * The custom session entry Po journals describing what the session is\n * composed of: which mode admitted each tool and skill, and what each costs.\n *\n * Schemas are deliberately absent. Only names, kinds, owners and integer token\n * counts travel, so republishing the whole composition stays cheap.\n */\nexport const CONTEXT_ENTRY_TYPE = 'po-context';\n\n/**\n * The custom session entry po-profile journals naming the persona the\n * session speaks as. The shape mirrors ProfileIdentityProjection in\n * po-core.\n *\n * Unlike the entries above, this one is transcript rather than projection: it\n * stays in journal order and is never collapsed to the latest record, because a\n * message keeps the persona it was written under. Adding it to\n * PROJECTION_ENTRY_TYPES would repaint the whole transcript on every switch.\n */\nexport const PROFILE_IDENTITY_ENTRY_TYPE = 'po-profile-identity';\n/**\n * The custom session entry po-domain journals once Pi has rebuilt its\n * resource catalog for a reload; it mirrors PO_RESOURCE_CATALOG_ENTRY_TYPE in\n * po-core.\n *\n * A reload is what changes the skills the composer offers under `$`, and Pi\n * reports nothing else for one, so this entry is the cockpit's only notice that\n * the command list it cached belongs to the previous selection.\n */\nexport const RESOURCE_CATALOG_ENTRY_TYPE = 'po-resource-catalog';\nexport interface MinorModeActionProjection {\n id: string;\n label: string;\n description: string;\n enabled: boolean;\n disabledReason?: string;\n needsInput: boolean;\n}\n\nexport interface MinorModeRecordProjection {\n id: string;\n label: string;\n description: string;\n order: number;\n activation: 'inactive' | 'activating' | 'active' | 'deactivating';\n condition: string;\n detail?: string;\n actions: MinorModeActionProjection[];\n}\n\nexport interface MinorModeProjection {\n version: 1;\n revision: number;\n modes: MinorModeRecordProjection[];\n}\n\nexport type ContextGroupKind = 'major' | 'minor' | 'domain' | 'shared' | 'core';\nexport type ContextItemSource = 'extension' | 'mcp' | 'plugin' | 'core';\n\nexport interface ContextItemProjection {\n name: string;\n itemKind: 'tool' | 'skill';\n source: ContextItemSource;\n owner: string;\n tokens: number;\n active: boolean;\n}\n\nexport interface ContextGroupProjection {\n id: string;\n label: string;\n kind: ContextGroupKind;\n items: ContextItemProjection[];\n /** What the group costs now: active items only. */\n tokens: number;\n /** What its gated items would add if switched on. */\n inactiveTokens: number;\n}\n\nexport interface ContextProjection {\n version: 1;\n revision: number;\n selection?: { majorMode: string; domains: string[]; profile?: string };\n groups: ContextGroupProjection[];\n totalTokens: number;\n inactiveTokens: number;\n /**\n * What the assembled system prompt costs, deliberately outside the groups.\n *\n * Every tool's prose and every skill's listing already count inside\n * `totalTokens`, and those are slices of this same text, so the two figures\n * overlap and must not be added. `stage` is `base` when the session has sent\n * nothing yet and the prompt shown is the one before packages patch it.\n */\n systemPrompt?: { tokens: number; stage: 'base' | 'effective' };\n /** Names the tokenizer, because the figures are indicative, not billed. */\n estimator: string;\n}\nexport const SESSION_COMMAND_TYPE = 'session_command';\n/** A page asks for the transcript before what it already holds. */\nexport const HISTORY_REQUEST_TYPE = 'history_request';\n/** One older window, oldest first, answering a history_request. */\nexport const HISTORY_PAGE_TYPE = 'history_page';\n\n/**\n * How many journalled messages one page carries. Small enough that prepending\n * a window never blocks the reader's scroll, large enough that a flick through\n * a long transcript does not turn into a hundred round trips.\n */\nexport const HISTORY_PAGE_SIZE = 100;\n\nexport interface HistoryRequestFrame {\n type: typeof HISTORY_REQUEST_TYPE;\n sessionId: string;\n /** Journal id of the oldest entry the page holds; absent asks for the newest window. */\n before?: string;\n limit?: number;\n}\n\nexport interface HistoryPageFrame {\n type: typeof HISTORY_PAGE_TYPE;\n sessionId: string;\n /** Entry frames, oldest first, to prepend above what the page holds. */\n frames: Record<string, unknown>[];\n /** The cursor for the next older window; null when the transcript starts here. */\n cursor: string | null;\n /** Whether anything older than this window exists. */\n hasMore: boolean;\n /** Echoed so a page can drop an answer to a question it has since abandoned. */\n before?: string;\n}\n\n/** First frame on every page socket, before the snapshot. */\nexport interface HubHelloFrame {\n type: typeof HUB_HELLO_TYPE;\n protocol: number;\n /** Frame types of the hub's loaded data channels; lets a panel tell \"plugin server not installed\" from \"no data\". */\n channels: string[];\n}\n\n/** One command frame from the page, addressed to a session's agent. */\nexport interface SessionCommandFrame {\n type: typeof SESSION_COMMAND_TYPE;\n sessionId: string;\n frame: SessionFrame;\n}\n\nexport function hubHello(channels: string[]): HubHelloFrame {\n return { type: HUB_HELLO_TYPE, protocol: HUB_PROTOCOL_VERSION, channels };\n}\n\nexport function sessionCommand(sessionId: string, frame: SessionFrame): SessionCommandFrame {\n return { type: SESSION_COMMAND_TYPE, sessionId, frame };\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,uBAAuB;;AAGpC,MAAa,WAAW;;AAGxB,MAAa,uBAAuB;;AAGpC,MAAa,qBAAqB;AA0BlC,MAAa,2BAA2B;CAAC;CAAY;CAAW;CAAY;CAAe;AAAQ;;;;;;AAuBnG,MAAa,wBAAwB;;AAGrC,MAAa,+BAA+B;;AAG5C,MAAa,uBAAuB;;;;;AAapC,MAAa,0BAA0B;AAwIvC,MAAa,iBAAiB;;AAE9B,MAAa,uBAAuB;;;;;;AAOpC,MAAa,wBAAwB;;;;;;;;;;;AAYrC,MAAa,yBAAyB;;;;;;;;AAQtC,MAAa,qBAAqB;;;;;;;;;;;AAYlC,MAAa,8BAA8B;;;;;;;;;;AAU3C,MAAa,8BAA8B;AAqE3C,MAAa,uBAAuB;;AAEpC,MAAa,uBAAuB;;AAEpC,MAAa,oBAAoB;;;;;;AAOjC,MAAa,oBAAoB;AAsCjC,SAAgB,SAAS,UAAmC;CAC1D,OAAO;EAAE,MAAM;EAAgB,UAAA;EAAgC;CAAS;AAC1E;AAEA,SAAgB,eAAe,WAAmB,OAA0C;CAC1F,OAAO;EAAE,MAAM;EAAsB;EAAW;CAAM;AACxD"}
1
+ {"version":3,"file":"hub.mjs","names":[],"sources":["../../src/types/hub.ts"],"sourcesContent":["import type { BridgeState, SessionFrame } from './session';\n\n/**\n * Wire vocabulary between the hub and its pages.\n *\n * One WebSocket carries every session: hub-level frames describe the set of\n * sessions, and session-scoped traffic travels enveloped with the session id.\n * Field naming follows @earendil-works/pi-protocol so a future swap to the\n * upstream session server stays a transport change, not a rename.\n */\nexport const HUB_PROTOCOL_VERSION = 2;\n\n/** Role marker in the health payload; po-server probes for it before binding the port. */\nexport const HUB_ROLE = 'hub';\n\n/** REST endpoint for admitting and listing durable workspaces. */\nexport const WORKSPACES_API_ROUTE = '/api/workspaces';\n\n/** REST endpoint for creating sessions and browsing resumable Pi history. */\nexport const SESSIONS_API_ROUTE = '/api/workspaces/:workspaceId/sessions';\n\n/** One durable repository workspace shown in the rail, even while it has no sessions. */\nexport interface WorkspaceSummary {\n /** Server-owned backing scope for sessions shown without a workspace. */\n kind?: 'session';\n /** HTTP-only metadata, not sent on the v1 hub wire. */\n instructions?: string;\n id: string;\n root: string;\n /** Display name chosen when the workspace was added; the folder basename stands in when absent. */\n name?: string;\n /** A remembered workspace whose root could not be mounted on this server start. */\n available?: boolean;\n /** The sandbox provider id that runs this workspace; absent means it runs on this host. */\n sandbox?: string;\n /**\n * The container's lifecycle as the host reports it. On a workspace that is not sandboxed,\n * `unavailable` means the container provider cannot run here, with the cause in `sandboxReason`.\n */\n sandboxState?: WorkspaceSandboxState;\n /** Plain-language cause for an unavailable or failed container. */\n sandboxReason?: string;\n error?: string;\n}\n\nexport const WORKSPACE_SANDBOX_STATES = ['starting', 'running', 'stopping', 'unavailable', 'failed'] as const;\nexport type WorkspaceSandboxState = (typeof WORKSPACE_SANDBOX_STATES)[number];\n\n/** One inactive Pi thread available to resume in a live session's workspace. */\nexport interface PiSessionHistoryItem {\n id: string;\n name?: string;\n firstMessage: string;\n createdAt: string;\n updatedAt: string;\n}\n\n/** A session removed from History that can still be restored until `purgeAt` (both ISO 8601). */\nexport interface RemovedSessionItem extends PiSessionHistoryItem {\n removedAt: string;\n purgeAt: string;\n}\n\n/**\n * REST endpoint behind the new-session directory picker; the page sends the\n * typed path as ?q= and receives {directories}: the children of the parent\n * directory whose names match the trailing segment as a regular expression.\n */\nexport const DIRECTORIES_API_ROUTE = '/api/directories';\n\n/** Lists the visible child folders of ?path= (home when absent) for the workspace folder browser. */\nexport const DIRECTORY_CHILDREN_API_ROUTE = '/api/directories/children';\n\n/** Folders under home that already hold a `.po` folder, offered as workspaces during onboarding. */\nexport const PO_FOLDERS_API_ROUTE = '/api/directories/po';\n\n/** One folder's visible child directories, as absolute paths. */\nexport interface DirectoryListing {\n path: string;\n parent?: string;\n directories: string[];\n}\n\n/**\n * Query parameter that routes a package API request to one session's server.\n * Without it the request is answered by a hub-scoped API in this process.\n */\nexport const API_SESSION_QUERY_PARAM = 'session';\n\n/** What the agent is doing right now, derived from its frame stream. */\nexport type SessionPhase = 'idle' | 'turn' | 'compaction' | 'retry';\n\nexport interface SessionProfile {\n name: string;\n displayName?: string;\n /** Changes whenever the icon does; absent when the profile has no icon. */\n iconVersion?: string;\n}\n\nexport interface SessionGitStatus {\n branch: string;\n /** True when the working tree has uncommitted changes; rendered as a star. */\n dirty: boolean;\n}\n\n/** One immutable, signed client composition resolved for a session. */\nexport interface SessionWebComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n /** Same-origin signed-manifest route read by the trusted service worker. */\n manifestUrl: string;\n /** Same-origin prefix for the untrusted source bytes verified by the worker. */\n rawAssetBaseUrl: string;\n /** Worker-owned prefix from which the page may execute verified bytes. */\n verifiedAssetBaseUrl: string;\n /** `[slot, entry]` per plugin copy this mount runs, each entry an absolute path below both asset prefixes. */\n pluginEntries: [string, string][];\n /** Absolute paths below both asset prefixes of every file this mount's slots can load. */\n assetPaths: string[];\n /** Absolute paths below both asset prefixes, replaced when this session is focused. */\n stylePaths: string[];\n /** Frame types owned by the matching session-local hub composition. */\n channels: string[];\n /**\n * The slots this mount runs out of a shared build. Absent means the composition\n * holds only this mount's plugins, as in-memory test hosts publish it.\n */\n plugins?: string[];\n}\n\n/** One immutable, signed native composition resolved for a session; read by po-native, ignored by the web. */\nexport interface SessionNativeComposition {\n /** Stable identity of the synchronized root and generation. */\n id: string;\n scope: 'host' | 'workspace' | 'session';\n /** Monotonic signing revision advertised by the manifest. */\n revision: number;\n manifestUrl: string;\n rawAssetBaseUrl: string;\n /** `[pluginId, modulePath]` for each plugin of this mount that built; the shell loads each on its own. */\n pluginEntries: [string, string][];\n /** Shared host UI entry in the same signed generation; absent on legacy hosts. */\n uiEntry?: string;\n channels: string[];\n /** The `poNative.pluginId` values resolved for this mount; the shell installs only these. */\n plugins: string[];\n}\n\n/**\n * Everything the rail needs to render one session without subscribing to it.\n */\nexport interface SessionSummary {\n workspaceId?: string;\n id: string;\n name: string;\n cwd: string;\n /** ISO 8601, from the session's registry record. */\n createdAt: string;\n /** ISO 8601, bumped whenever the session's frame stream moves. */\n updatedAt: string;\n phase: SessionPhase;\n /** ISO 8601 timestamp of the last phase change; drives \"running · 12m\". */\n phaseSince: string;\n /** The hub's own attachment to the session socket. */\n attach: BridgeState;\n /** Human-readable cause, present when attach is refused or closed. */\n attachReason?: string;\n pendingMessageCount: number;\n /** True once prior work is observed; false may also mean unavailable history. */\n everPrompted: boolean;\n /** True while the agent waits on a dialog answer; \"waiting for your input\". */\n awaitingInput: boolean;\n /** ISO 8601 of the last settled run, once one finished. */\n lastSettledAt?: string;\n /** Authoritative owned work; null is unknown, absent is a legacy host. */\n backgroundWorkActive?: boolean | null;\n /** Omitted when the cwd is not a git repository or git is unavailable. */\n git?: SessionGitStatus;\n /** Selected profile; the icon itself is served by the session avatar route. */\n profile?: SessionProfile;\n /** Signed plugin composition independently resolved for this session. */\n webComposition?: SessionWebComposition;\n /** Signed native composition for this session, when native targets were built. */\n nativeComposition?: SessionNativeComposition;\n /**\n * The session this one was spawned from, recorded by the hub when it opened the session.\n * The rail nests a session under its parent; absent means a top-level row.\n */\n parentSessionId?: string;\n /**\n * The spawning package's own label for the relationship, such as \"worktree\".\n * The hub does not interpret it; the rail uses it to pick an affordance.\n */\n sessionProvenance?: string;\n /** User-assigned groups; sessions sharing one may message each other. Absent means none. */\n groups?: string[];\n /** Host reservations awaiting a durable child runtime, not live sessions. */\n pendingSetups?: Array<{\n id: string;\n name: string;\n createdAt: string;\n cwd?: string;\n status?: 'provisioning' | 'failed' | 'interrupted';\n setupKind?: 'managed-worktree' | 'existing-directory';\n errorCode?: 'SESSION_WORKTREE_PROVISION_FAILED' | 'SESSION_UNAVAILABLE';\n }>;\n /**\n * One line an extension published about background work it runs for this\n * session, such as a workflow; the rail shows it in place of the idle copy.\n */\n activity?: { label: string; attention?: boolean; since?: string };\n /** Tool calls waiting for the person's approval in the Activity rail. */\n pendingApprovalCount?: number;\n /**\n * The hub recorded this session but has not reopened it since its last\n * restart. Its journal is on disk; nothing is running behind the card until\n * the page asks for it.\n */\n dormant?: boolean;\n}\n\nexport const HUB_HELLO_TYPE = 'hub_hello';\n/** Hub-synthesized close for an answered dialog; Pi itself never announces one. */\nexport const DIALOG_ANSWERED_TYPE = 'extension_ui_answered';\n\n/**\n * The custom session entry the Po runtime journals with its minor-mode\n * catalog projection; it arrives inside Pi's entry_appended frames. The shape\n * mirrors MinorModeProjection in po-minor-mode.\n */\nexport const MINOR_MODE_ENTRY_TYPE = 'po-minor-modes';\n\n/**\n * The custom session entry the Po runtime journals when the agent's model\n * changes without a client having asked for it. The shape mirrors\n * AgentModelProjection in po-core.\n *\n * Pi reports a thinking-level switch on the wire, so that field follows from\n * the frame alone. It has no wire event for the model, so plan mode applying\n * its configured planning model would otherwise leave the chip naming the\n * model the session left behind.\n */\nexport const AGENT_MODEL_ENTRY_TYPE = 'po-agent-model';\n/**\n * The custom session entry Po journals describing what the session is\n * composed of: which mode admitted each tool and skill, and what each costs.\n *\n * Schemas are deliberately absent. Only names, kinds, owners and integer token\n * counts travel, so republishing the whole composition stays cheap.\n */\nexport const CONTEXT_ENTRY_TYPE = 'po-context';\n\n/**\n * The custom session entry po-profile journals naming the persona the\n * session speaks as. The shape mirrors ProfileIdentityProjection in\n * po-core.\n *\n * Unlike the entries above, this one is transcript rather than projection: it\n * stays in journal order and is never collapsed to the latest record, because a\n * message keeps the persona it was written under. Adding it to\n * PROJECTION_ENTRY_TYPES would repaint the whole transcript on every switch.\n */\nexport const PROFILE_IDENTITY_ENTRY_TYPE = 'po-profile-identity';\n/**\n * The custom session entry po-domain journals once Pi has rebuilt its\n * resource catalog for a reload; it mirrors PO_RESOURCE_CATALOG_ENTRY_TYPE in\n * po-core.\n *\n * A reload is what changes the skills the composer offers under `$`, and Pi\n * reports nothing else for one, so this entry is the cockpit's only notice that\n * the command list it cached belongs to the previous selection.\n */\nexport const RESOURCE_CATALOG_ENTRY_TYPE = 'po-resource-catalog';\nexport interface MinorModeActionProjection {\n id: string;\n label: string;\n description: string;\n enabled: boolean;\n disabledReason?: string;\n needsInput: boolean;\n}\n\nexport interface MinorModeRecordProjection {\n id: string;\n label: string;\n description: string;\n order: number;\n activation: 'inactive' | 'activating' | 'active' | 'deactivating';\n condition: string;\n detail?: string;\n actions: MinorModeActionProjection[];\n}\n\nexport interface MinorModeProjection {\n version: 1;\n revision: number;\n modes: MinorModeRecordProjection[];\n}\n\nexport type ContextGroupKind = 'major' | 'minor' | 'domain' | 'shared' | 'core';\nexport type ContextItemSource = 'extension' | 'mcp' | 'plugin' | 'core';\n\nexport interface ContextItemProjection {\n name: string;\n itemKind: 'tool' | 'skill';\n source: ContextItemSource;\n owner: string;\n tokens: number;\n active: boolean;\n}\n\nexport interface ContextGroupProjection {\n id: string;\n label: string;\n kind: ContextGroupKind;\n items: ContextItemProjection[];\n /** What the group costs now: active items only. */\n tokens: number;\n /** What its gated items would add if switched on. */\n inactiveTokens: number;\n}\n\nexport interface ContextProjection {\n version: 1;\n revision: number;\n selection?: { majorMode: string; domains: string[]; profile?: string };\n groups: ContextGroupProjection[];\n totalTokens: number;\n inactiveTokens: number;\n /**\n * What the assembled system prompt costs, deliberately outside the groups.\n *\n * Every tool's prose and every skill's listing already count inside\n * `totalTokens`, and those are slices of this same text, so the two figures\n * overlap and must not be added. `stage` is `base` when the session has sent\n * nothing yet and the prompt shown is the one before packages patch it.\n */\n systemPrompt?: { tokens: number; stage: 'base' | 'effective' };\n /** Names the tokenizer, because the figures are indicative, not billed. */\n estimator: string;\n}\nexport const SESSION_COMMAND_TYPE = 'session_command';\n/** A page asks for the transcript before what it already holds. */\nexport const HISTORY_REQUEST_TYPE = 'history_request';\n/** One older window, oldest first, answering a history_request. */\nexport const HISTORY_PAGE_TYPE = 'history_page';\n\n/**\n * How many journalled messages one page carries. Small enough that prepending\n * a window never blocks the reader's scroll, large enough that a flick through\n * a long transcript does not turn into a hundred round trips.\n */\nexport const HISTORY_PAGE_SIZE = 100;\n\nexport interface HistoryRequestFrame {\n type: typeof HISTORY_REQUEST_TYPE;\n sessionId: string;\n /** Journal id of the oldest entry the page holds; absent asks for the newest window. */\n before?: string;\n limit?: number;\n}\n\nexport interface HistoryPageFrame {\n type: typeof HISTORY_PAGE_TYPE;\n sessionId: string;\n /** Entry frames, oldest first, to prepend above what the page holds. */\n frames: Record<string, unknown>[];\n /** The cursor for the next older window; null when the transcript starts here. */\n cursor: string | null;\n /** Whether anything older than this window exists. */\n hasMore: boolean;\n /** Echoed so a page can drop an answer to a question it has since abandoned. */\n before?: string;\n}\n\n/** First frame on every page socket, before the snapshot. */\nexport interface HubHelloFrame {\n type: typeof HUB_HELLO_TYPE;\n protocol: number;\n /** Frame types of the hub's loaded data channels; lets a panel tell \"plugin server not installed\" from \"no data\". */\n channels: string[];\n}\n\n/** One command frame from the page, addressed to a session's agent. */\nexport interface SessionCommandFrame {\n type: typeof SESSION_COMMAND_TYPE;\n sessionId: string;\n frame: SessionFrame;\n}\n\nexport function hubHello(channels: string[]): HubHelloFrame {\n return { type: HUB_HELLO_TYPE, protocol: HUB_PROTOCOL_VERSION, channels };\n}\n\nexport function sessionCommand(sessionId: string, frame: SessionFrame): SessionCommandFrame {\n return { type: SESSION_COMMAND_TYPE, sessionId, frame };\n}\n"],"mappings":";;;;;;;;;AAUA,MAAa,uBAAuB;;AAGpC,MAAa,WAAW;;AAGxB,MAAa,uBAAuB;;AAGpC,MAAa,qBAAqB;AA0BlC,MAAa,2BAA2B;CAAC;CAAY;CAAW;CAAY;CAAe;AAAQ;;;;;;AAuBnG,MAAa,wBAAwB;;AAGrC,MAAa,+BAA+B;;AAG5C,MAAa,uBAAuB;;;;;AAapC,MAAa,0BAA0B;AAwIvC,MAAa,iBAAiB;;AAE9B,MAAa,uBAAuB;;;;;;AAOpC,MAAa,wBAAwB;;;;;;;;;;;AAYrC,MAAa,yBAAyB;;;;;;;;AAQtC,MAAa,qBAAqB;;;;;;;;;;;AAYlC,MAAa,8BAA8B;;;;;;;;;;AAU3C,MAAa,8BAA8B;AAqE3C,MAAa,uBAAuB;;AAEpC,MAAa,uBAAuB;;AAEpC,MAAa,oBAAoB;;;;;;AAOjC,MAAa,oBAAoB;AAsCjC,SAAgB,SAAS,UAAmC;CAC1D,OAAO;EAAE,MAAM;EAAgB,UAAA;EAAgC;CAAS;AAC1E;AAEA,SAAgB,eAAe,WAAmB,OAA0C;CAC1F,OAAO;EAAE,MAAM;EAAsB;EAAW;CAAM;AACxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.cjs","names":[],"sources":["../../src/types/settings.ts"],"sourcesContent":["/**\n * The settings REST surface, as both halves see it.\n *\n * Settings are host routes rather than a package API because the page is not\n * scoped to a session: it names a repository instead, and a plugin's browser\n * code may not reach the hub's own client helpers. The host reads and writes\n * the config file on everyone's behalf and hands each contributed field the\n * result through props.\n */\nimport type { RepositorySettingsRepository } from '@agimon-ai/po-core/web';\n\nexport const SETTINGS_CONFIG_API_ROUTE = '/api/settings';\nexport const SETTINGS_VALUE_API_ROUTE = '/api/settings/value';\nexport const SETTINGS_REPOSITORIES_API_ROUTE = '/api/settings/repositories';\nexport const SETTINGS_MODELS_API_ROUTE = '/api/plugins/po/models';\nexport const SETTINGS_REPOSITORY_API_ROUTE = '/api/settings/repository';\nexport const SETTINGS_REPOSITORY_SELECTION_API_ROUTE = '/api/settings/repository/selection';\nexport const SETTINGS_IMAGES_API_ROUTE = '/api/settings/images';\nexport const SETTINGS_PRESETS_API_ROUTE = '/api/settings/presets';\n\n/**\n * The image limits, which live in Pi's settings.json rather than the Po\n * config, so they have their own route instead of a key path: Pi's own toggle\n * writes that file, and a machine should not end up with two answers to how\n * large an image reaches a model.\n */\nexport interface SettingsImagesView {\n /** Off leaves every image at the size it arrived. */\n autoResize: boolean;\n /** Longest edge an image keeps once resizing is on. */\n maxDimension: number;\n /** The range the hub accepts; a value outside it is clamped rather than refused. */\n minDimension: number;\n maxAllowedDimension: number;\n}\n\nexport interface SettingsImagesWriteRequest {\n autoResize?: boolean;\n maxDimension?: number;\n}\n\n/** One layer a preset turns on, with the Po plugins (packages) it bundles. */\nexport interface SettingsPresetLayer {\n name: string;\n packages: string[];\n}\n\n/** One preset: a major mode from `~/.po/modes.yaml`, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n}\n\n/** Settings > Presets: your major modes, the default new sessions start with, and what every preset includes. */\nexport interface SettingsPresetsView {\n defaultPreset: string;\n presets: SettingsPreset[];\n /** `default.packages`: loaded before any preset's layers. */\n alwaysIncluded: string[];\n}\n\nexport interface SettingsPresetsWriteRequest {\n defaultPreset: string;\n}\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API, where a legacy `'global'` means `host`.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/**\n * The host settings API's wire spelling of the host tier.\n * ponytail: the wire keeps `'global'` for `host` in both directions until Phase 10, because shipped\n * native builds talk to hosts on mixed versions. Phase 10 flips server and clients together.\n */\nexport type SettingsWireScope = 'global' | 'repository';\nexport type SettingsWireOrigin = 'global' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'global' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** The read route's response body. `hashes.global` duplicates `hashes.host` for older clients. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** ponytail: `global` is the legacy duplicate of `host`; drop it in Phase 10. */\n hashes: { host: string; global: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a major mode, naming its ordered layers. */\n layers?: readonly string[];\n}\n\n/** One selection axis, keeping an inherited effective value apart from this repository's override. */\nexport interface RepositorySelectionValue<T> {\n effective?: T;\n repository?: T;\n origin: SettingsOrigin;\n}\n\n/** The repository control plane's safe, non-secret catalog and selection view. */\nexport interface RepositorySettingsView {\n repository: SettingsRepository;\n hash: string;\n catalogs: {\n majorModes: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n majorMode: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n majorMode?: string | null;\n domains?: readonly string[] | null;\n profile?: string | null;\n}\n\n/** An optimistic, atomic write into one repository's selection defaults. */\nexport interface RepositorySelectionWriteRequest {\n repositoryId: string;\n expectedHash: string;\n changes: RepositorySelectionChanges;\n}\n\n/** What a route reports when it refuses; the page shows `error` verbatim. */\nexport interface SettingsErrorView {\n error: string;\n /** On a stale write, the hash the target file actually holds now. */\n hash?: string;\n}\n"],"mappings":";AAWA,MAAa,4BAA4B;AACzC,MAAa,2BAA2B;AACxC,MAAa,kCAAkC;AAC/C,MAAa,4BAA4B;AACzC,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}
1
+ {"version":3,"file":"settings.cjs","names":[],"sources":["../../src/types/settings.ts"],"sourcesContent":["/**\n * The settings REST surface, as both halves see it.\n *\n * Settings are host routes rather than a package API because the page is not\n * scoped to a session: it names a repository instead, and a plugin's browser\n * code may not reach the hub's own client helpers. The host reads and writes\n * the config file on everyone's behalf and hands each contributed field the\n * result through props.\n */\nimport type { RepositorySettingsRepository } from '@agimon-ai/po-core/web';\n\nexport const SETTINGS_CONFIG_API_ROUTE = '/api/settings';\nexport const SETTINGS_VALUE_API_ROUTE = '/api/settings/value';\nexport const SETTINGS_REPOSITORIES_API_ROUTE = '/api/settings/repositories';\nexport const SETTINGS_MODELS_API_ROUTE = '/api/plugins/po/models';\nexport const SETTINGS_REPOSITORY_API_ROUTE = '/api/settings/repository';\nexport const SETTINGS_REPOSITORY_SELECTION_API_ROUTE = '/api/settings/repository/selection';\nexport const SETTINGS_IMAGES_API_ROUTE = '/api/settings/images';\nexport const SETTINGS_PRESETS_API_ROUTE = '/api/settings/presets';\n\n/**\n * The image limits, which live in Pi's settings.json rather than the Po\n * config, so they have their own route instead of a key path: Pi's own toggle\n * writes that file, and a machine should not end up with two answers to how\n * large an image reaches a model.\n */\nexport interface SettingsImagesView {\n /** Off leaves every image at the size it arrived. */\n autoResize: boolean;\n /** Longest edge an image keeps once resizing is on. */\n maxDimension: number;\n /** The range the hub accepts; a value outside it is clamped rather than refused. */\n minDimension: number;\n maxAllowedDimension: number;\n}\n\nexport interface SettingsImagesWriteRequest {\n autoResize?: boolean;\n maxDimension?: number;\n}\n\n/** One layer a preset turns on, with the Po plugins (packages) it bundles. */\nexport interface SettingsPresetLayer {\n name: string;\n packages: string[];\n}\n\n/** One preset: a major mode from `~/.po/modes.yaml`, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n}\n\n/** Settings > Presets: your major modes, the default new sessions start with, and what every preset includes. */\nexport interface SettingsPresetsView {\n defaultPreset: string;\n presets: SettingsPreset[];\n /** `default.packages`: loaded before any preset's layers. */\n alwaysIncluded: string[];\n}\n\nexport interface SettingsPresetsWriteRequest {\n defaultPreset: string;\n}\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/** Host settings wire values. */\nexport type SettingsWireScope = 'host' | 'repository';\nexport type SettingsWireOrigin = 'host' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'host' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** Host settings wire values. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** Host settings wire values. */\n hashes: { host: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a major mode, naming its ordered layers. */\n layers?: readonly string[];\n}\n\n/** One selection axis, keeping an inherited effective value apart from this repository's override. */\nexport interface RepositorySelectionValue<T> {\n effective?: T;\n repository?: T;\n origin: SettingsOrigin;\n}\n\n/** The repository control plane's safe, non-secret catalog and selection view. */\nexport interface RepositorySettingsView {\n repository: SettingsRepository;\n hash: string;\n catalogs: {\n majorModes: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n majorMode: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n majorMode?: string | null;\n domains?: readonly string[] | null;\n profile?: string | null;\n}\n\n/** An optimistic, atomic write into one repository's selection defaults. */\nexport interface RepositorySelectionWriteRequest {\n repositoryId: string;\n expectedHash: string;\n changes: RepositorySelectionChanges;\n}\n\n/** What a route reports when it refuses; the page shows `error` verbatim. */\nexport interface SettingsErrorView {\n error: string;\n /** On a stale write, the hash the target file actually holds now. */\n hash?: string;\n}\n"],"mappings":";AAWA,MAAa,4BAA4B;AACzC,MAAa,2BAA2B;AACxC,MAAa,kCAAkC;AAC/C,MAAa,4BAA4B;AACzC,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}