@agimon-ai/po-web-dashboard 0.0.0-alpha.140 → 0.0.0-alpha.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +5 -0
- package/dist/core.d.mts +2 -1
- package/dist/core.mjs +2 -1
- package/dist/index.cjs +4 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/types/settings.cjs.map +1 -1
- package/dist/types/settings.d.mts +40 -9
- package/dist/types/settings.d.mts.map +1 -1
- package/dist/types/settings.mjs.map +1 -1
- package/dist/types.d.mts +2 -2
- package/dist/web/components/HomePage.cjs +1 -1
- package/dist/web/components/HomePage.cjs.map +1 -1
- package/dist/web/components/HomePage.mjs +1 -1
- package/dist/web/components/HomePage.mjs.map +1 -1
- package/dist/web/components/Template.fixture.cjs +2 -2
- package/dist/web/components/Template.fixture.cjs.map +1 -1
- package/dist/web/components/Template.fixture.d.mts.map +1 -1
- package/dist/web/components/Template.fixture.mjs +2 -2
- package/dist/web/components/Template.fixture.mjs.map +1 -1
- package/dist/web/features/activity/ActivityDock.cjs +1 -1
- package/dist/web/features/activity/ActivityDock.cjs.map +1 -1
- package/dist/web/features/activity/ActivityDock.mjs +1 -1
- package/dist/web/features/activity/ActivityDock.mjs.map +1 -1
- package/dist/web/features/session/Timeline.cjs +2 -4
- package/dist/web/features/session/Timeline.cjs.map +1 -1
- package/dist/web/features/session/Timeline.mjs +3 -5
- package/dist/web/features/session/Timeline.mjs.map +1 -1
- package/dist/web/features/settings/AppearanceSettings.cjs +7 -3
- package/dist/web/features/settings/AppearanceSettings.cjs.map +1 -1
- package/dist/web/features/settings/AppearanceSettings.d.mts +5 -3
- package/dist/web/features/settings/AppearanceSettings.d.mts.map +1 -1
- package/dist/web/features/settings/AppearanceSettings.mjs +7 -3
- package/dist/web/features/settings/AppearanceSettings.mjs.map +1 -1
- package/dist/web/features/settings/BackdropSettings.cjs +154 -0
- package/dist/web/features/settings/BackdropSettings.cjs.map +1 -0
- package/dist/web/features/settings/BackdropSettings.mjs +154 -0
- package/dist/web/features/settings/BackdropSettings.mjs.map +1 -0
- package/dist/web/features/settings/ContributedSettings.cjs +2 -2
- package/dist/web/features/settings/ContributedSettings.cjs.map +1 -1
- package/dist/web/features/settings/ContributedSettings.d.mts +2 -2
- package/dist/web/features/settings/ContributedSettings.mjs +2 -2
- package/dist/web/features/settings/ContributedSettings.mjs.map +1 -1
- package/dist/web/features/settings/RepositorySettings.cjs +1 -1
- package/dist/web/features/settings/RepositorySettings.cjs.map +1 -1
- package/dist/web/features/settings/RepositorySettings.mjs +1 -1
- package/dist/web/features/settings/RepositorySettings.mjs.map +1 -1
- package/dist/web/features/settings/TemplateSettings.cjs +1 -1
- package/dist/web/features/settings/TemplateSettings.cjs.map +1 -1
- package/dist/web/features/settings/TemplateSettings.mjs +1 -1
- package/dist/web/features/settings/TemplateSettings.mjs.map +1 -1
- package/dist/web/features/settings/settings.fixture.cjs +5 -5
- package/dist/web/features/settings/settings.fixture.cjs.map +1 -1
- package/dist/web/features/settings/settings.fixture.mjs +5 -5
- package/dist/web/features/settings/settings.fixture.mjs.map +1 -1
- package/dist/web/lib/hubApi.cjs +2 -2
- package/dist/web/lib/hubApi.cjs.map +1 -1
- package/dist/web/lib/hubApi.mjs +2 -2
- package/dist/web/lib/hubApi.mjs.map +1 -1
- package/dist/web/lib/pluginCompositions.cjs +2 -2
- package/dist/web/lib/pluginCompositions.cjs.map +1 -1
- package/dist/web/lib/pluginCompositions.d.mts +3 -1
- package/dist/web/lib/pluginCompositions.d.mts.map +1 -1
- package/dist/web/lib/pluginCompositions.mjs +2 -2
- package/dist/web/lib/pluginCompositions.mjs.map +1 -1
- package/dist/web/lib/pluginRegistry.cjs +15 -14
- package/dist/web/lib/pluginRegistry.cjs.map +1 -1
- package/dist/web/lib/pluginRegistry.d.mts +1 -1
- package/dist/web/lib/pluginRegistry.d.mts.map +1 -1
- package/dist/web/lib/pluginRegistry.mjs +15 -14
- package/dist/web/lib/pluginRegistry.mjs.map +1 -1
- package/dist/web/lib/pluginThemes.cjs +1 -1
- package/dist/web/lib/pluginThemes.cjs.map +1 -1
- package/dist/web/lib/pluginThemes.mjs +1 -1
- package/dist/web/lib/pluginThemes.mjs.map +1 -1
- package/dist/web/lib/protocolHubSocket.cjs +3 -2
- package/dist/web/lib/protocolHubSocket.cjs.map +1 -1
- package/dist/web/lib/protocolHubSocket.mjs +4 -3
- package/dist/web/lib/protocolHubSocket.mjs.map +1 -1
- package/dist/web/lib/settingsApi.cjs +6 -5
- package/dist/web/lib/settingsApi.cjs.map +1 -1
- package/dist/web/lib/settingsApi.d.mts.map +1 -1
- package/dist/web/lib/settingsApi.mjs +6 -5
- package/dist/web/lib/settingsApi.mjs.map +1 -1
- package/dist/web/lib/settingsDraft.cjs +2 -2
- package/dist/web/lib/settingsDraft.cjs.map +1 -1
- package/dist/web/lib/settingsDraft.d.mts +4 -4
- package/dist/web/lib/settingsDraft.d.mts.map +1 -1
- package/dist/web/lib/settingsDraft.mjs +2 -2
- package/dist/web/lib/settingsDraft.mjs.map +1 -1
- package/dist/web/lib/settingsWire.cjs +86 -0
- package/dist/web/lib/settingsWire.cjs.map +1 -0
- package/dist/web/lib/settingsWire.d.mts +17 -0
- package/dist/web/lib/settingsWire.d.mts.map +1 -0
- package/dist/web/lib/settingsWire.mjs +83 -0
- package/dist/web/lib/settingsWire.mjs.map +1 -0
- package/dist/web/lib/templateCatalog.cjs +15 -1
- package/dist/web/lib/templateCatalog.cjs.map +1 -1
- package/dist/web/lib/templateCatalog.d.mts +13 -0
- package/dist/web/lib/templateCatalog.d.mts.map +1 -1
- package/dist/web/lib/templateCatalog.mjs +15 -3
- package/dist/web/lib/templateCatalog.mjs.map +1 -1
- package/dist/web/lib/transport.cjs +1 -1
- package/dist/web/lib/transport.cjs.map +1 -1
- package/dist/web/lib/transport.d.mts +3 -3
- package/dist/web/lib/transport.mjs +1 -1
- package/dist/web/lib/transport.mjs.map +1 -1
- package/dist/web/stores/settingsDraftStore.cjs.map +1 -1
- package/dist/web/stores/settingsDraftStore.d.mts +2 -2
- package/dist/web/stores/settingsDraftStore.mjs.map +1 -1
- package/dist/web/stores/templateStore.cjs +25 -10
- package/dist/web/stores/templateStore.cjs.map +1 -1
- package/dist/web/stores/templateStore.d.mts +3 -0
- package/dist/web/stores/templateStore.d.mts.map +1 -1
- package/dist/web/stores/templateStore.mjs +25 -12
- package/dist/web/stores/templateStore.mjs.map +1 -1
- package/package.json +5 -5
package/dist/core.cjs
CHANGED
|
@@ -22,6 +22,7 @@ const require_sessionSummary = require("./web/lib/sessionSummary.cjs");
|
|
|
22
22
|
const require_sessionModel = require("./web/lib/sessionModel.cjs");
|
|
23
23
|
const require_qrMatrix = require("./web/lib/qrMatrix.cjs");
|
|
24
24
|
const require_sessionRailModel = require("./web/lib/sessionRailModel.cjs");
|
|
25
|
+
const require_settingsWire = require("./web/lib/settingsWire.cjs");
|
|
25
26
|
const require_settingsDraft = require("./web/lib/settingsDraft.cjs");
|
|
26
27
|
const require_toolCompletionTabs = require("./web/lib/toolCompletionTabs.cjs");
|
|
27
28
|
const require_toolMessageProps = require("./web/lib/toolMessageProps.cjs");
|
|
@@ -248,6 +249,7 @@ exports.removeWorkspaceWebPlugins = require_pluginRegistry.removeWorkspaceWebPlu
|
|
|
248
249
|
exports.renameSession = require_sessionStore.renameSession;
|
|
249
250
|
exports.renderRegion = require_pluginSlotProps.renderRegion;
|
|
250
251
|
exports.replaceQueuedEntries = require_sessionModel.replaceQueuedEntries;
|
|
252
|
+
exports.repositorySettingsViewFromWire = require_settingsWire.repositorySettingsViewFromWire;
|
|
251
253
|
exports.requestLatestHistory = require_sessionStore.requestLatestHistory;
|
|
252
254
|
exports.requestNewerHistory = require_sessionStore.requestNewerHistory;
|
|
253
255
|
exports.requestOlderHistory = require_sessionStore.requestOlderHistory;
|
|
@@ -308,8 +310,11 @@ exports.setTransientTabSession = require_transientTabsStore.setTransientTabSessi
|
|
|
308
310
|
exports.setUiTraceSink = require_uiTrace.setUiTraceSink;
|
|
309
311
|
exports.setWebPluginLoadDiagnostics = require_pluginRegistry.setWebPluginLoadDiagnostics;
|
|
310
312
|
exports.setWorkspaceHostLabel = require_workspacesStore.setWorkspaceHostLabel;
|
|
313
|
+
exports.settingsConfigViewFromWire = require_settingsWire.settingsConfigViewFromWire;
|
|
311
314
|
exports.settingsKeyOf = require_settingsDraft.settingsKeyOf;
|
|
312
315
|
exports.settingsLockedReason = require_settingsDraft.settingsLockedReason;
|
|
316
|
+
exports.settingsScopeToWire = require_settingsWire.settingsScopeToWire;
|
|
317
|
+
exports.settingsWriteToWire = require_settingsWire.settingsWriteToWire;
|
|
313
318
|
exports.slotFills = require_pluginRegistry.slotFills;
|
|
314
319
|
exports.splitHostId = require_hostIdentity.splitHostId;
|
|
315
320
|
exports.startPluginDefinitions = require_pluginRegistry.startPluginDefinitions;
|
package/dist/core.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextA
|
|
|
12
12
|
import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
|
|
13
13
|
import { ComposerPromptClaim, DialogPromptClaim, ToolPromptClaim, ToolPromptInput, toolPromptClaim } from "./web/lib/toolPrompt.mjs";
|
|
14
14
|
import { UiTraceRecord, UiTraceSink, flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
|
|
15
|
+
import { repositorySettingsViewFromWire, settingsConfigViewFromWire, settingsScopeToWire, settingsWriteToWire } from "./web/lib/settingsWire.mjs";
|
|
15
16
|
import { TransientTabActions, pluginSessionContext, pluginSlotProps, renderRegion } from "./web/lib/pluginSlotProps.mjs";
|
|
16
17
|
import { toolMessageProps } from "./web/lib/toolMessageProps.mjs";
|
|
17
18
|
import { ToolRendererBoundary } from "./web/lib/ToolRendererBoundary.mjs";
|
|
@@ -40,4 +41,4 @@ import { createWebMcpSimulator } from "./web/lib/webmcpSimulator.mjs";
|
|
|
40
41
|
import { defaultHostId, localHostId, parseHostKey, qualifyHostId, qualifyHostKey, setDefaultHostId, splitHostId } from "./web/lib/hostIdentity.mjs";
|
|
41
42
|
import { CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, createCloudHub } from "./web/lib/cloudHub.mjs";
|
|
42
43
|
import { asWorkspace } from "./web/lib/workspaceSummary.mjs";
|
|
43
|
-
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, 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, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, 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, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, 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, settingsKeyOf, settingsLockedReason, 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 };
|
|
44
|
+
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, 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, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, 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, 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
|
@@ -21,6 +21,7 @@ import { abbreviateCwd, personaInitials, runningCount, sessionStatusClock, sessi
|
|
|
21
21
|
import { appendQueued, appendUserPrompt, applySelectionAnswer, clearDialog, clearQueuedEntries, imagesFromContent, initialSessionState, isSupportedImageMimeType, prependHistory, reduceSession, removeQueuedEntry, replaceQueuedEntries, selectionStatuses, summariseArgs, textFromContent } from "./web/lib/sessionModel.mjs";
|
|
22
22
|
import { qrMatrix } from "./web/lib/qrMatrix.mjs";
|
|
23
23
|
import { LEGACY_WORKSPACE_ID, activityWaitingCount, buildRailWorkspaces, coordinatorHostTargets, liveSessionOptions, pendingSetupView, railSessionStatus, reuseRailWorkspaces, sessionMoveTarget, sessionWaitingCount, workspaceName } from "./web/lib/sessionRailModel.mjs";
|
|
24
|
+
import { repositorySettingsViewFromWire, settingsConfigViewFromWire, settingsScopeToWire, settingsWriteToWire } from "./web/lib/settingsWire.mjs";
|
|
24
25
|
import { canSaveSettings, plannedSettingsWrites, settingsKeyOf, settingsLockedReason } from "./web/lib/settingsDraft.mjs";
|
|
25
26
|
import { createToolCompletionTabs } from "./web/lib/toolCompletionTabs.mjs";
|
|
26
27
|
import { toolMessageProps } from "./web/lib/toolMessageProps.mjs";
|
|
@@ -40,4 +41,4 @@ import { closeTransientTab, dropTransientTabs, findTransientTab, openTransientTa
|
|
|
40
41
|
import { updateDialogDraft, useDialogDraft } from "./web/stores/dialogDraftStore.mjs";
|
|
41
42
|
import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
|
|
42
43
|
import { createWebMcpSimulator } from "./web/lib/webmcpSimulator.mjs";
|
|
43
|
-
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, 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, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, 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, releaseDialogMenu, releaseProtocolTranscript, releaseTransport, removeHostWebPlugins, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspaceWebPlugins, renameSession, renderRegion, replaceQueuedEntries, 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, settingsKeyOf, settingsLockedReason, 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 };
|
|
44
|
+
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, 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, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, isHexTheme, 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, 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
|
@@ -167,6 +167,7 @@ exports.attachComposerCapture = require_composerStore.attachComposerCapture;
|
|
|
167
167
|
exports.attachComposerContext = require_composerStore.attachComposerContext;
|
|
168
168
|
exports.attachmentPrompt = require_composerSubmissionStore.attachmentPrompt;
|
|
169
169
|
exports.availableThemes = require_themeStore.availableThemes;
|
|
170
|
+
exports.backdropId = require_templateCatalog.backdropId;
|
|
170
171
|
exports.beginSessionReplay = require_sessionStore.beginSessionReplay;
|
|
171
172
|
exports.beginSessionTransfer = require_sessionsStore.beginSessionTransfer;
|
|
172
173
|
exports.bindBundledNativeTemplates = require_templateCatalog.bindBundledNativeTemplates;
|
|
@@ -214,6 +215,7 @@ exports.compactCommand = require_commands.compactCommand;
|
|
|
214
215
|
exports.completeSessionTransfer = require_sessionsStore.completeSessionTransfer;
|
|
215
216
|
exports.composerStore = require_composerStore.composerStore;
|
|
216
217
|
exports.composerSubmissionStore = require_composerSubmissionStore.composerSubmissionStore;
|
|
218
|
+
exports.configuredBackdrop = require_templateStore.configuredBackdrop;
|
|
217
219
|
exports.configuredTemplate = require_templateStore.configuredTemplate;
|
|
218
220
|
exports.contextGroups = require_contextComposition.contextGroups;
|
|
219
221
|
exports.coordinatorHostTargets = require_sessionRailModel.coordinatorHostTargets;
|
|
@@ -486,6 +488,7 @@ exports.resetTransientTabs = require_transientTabsStore.resetTransientTabs;
|
|
|
486
488
|
exports.resetWebPlugins = require_pluginRegistry.resetWebPlugins;
|
|
487
489
|
exports.resetWorkspaceAdmission = require_workspaceAdmissionStore.resetWorkspaceAdmission;
|
|
488
490
|
exports.resetWorkspaces = require_workspacesStore.resetWorkspaces;
|
|
491
|
+
exports.resolveBackdrop = require_templateCatalog.resolveBackdrop;
|
|
489
492
|
exports.resolveNativeTemplate = require_templateCatalog.resolveNativeTemplate;
|
|
490
493
|
exports.resolveParentId = require_sessionsStore.resolveParentId;
|
|
491
494
|
exports.resolveWebTemplate = require_templateCatalog.resolveWebTemplate;
|
|
@@ -517,6 +520,7 @@ exports.runCommand = require_sessionStore.runCommand;
|
|
|
517
520
|
exports.runningCount = require_sessionSummary.runningCount;
|
|
518
521
|
exports.sameRailEntries = require_sessionsStore.sameRailEntries;
|
|
519
522
|
exports.sameRailEntry = require_sessionsStore.sameRailEntry;
|
|
523
|
+
exports.saveBackdropDefault = require_templateStore.saveBackdropDefault;
|
|
520
524
|
exports.saveComposerDrafts = require_composerStore.saveComposerDrafts;
|
|
521
525
|
exports.saveCoordinatorProfile = require_railDialogStore.saveCoordinatorProfile;
|
|
522
526
|
exports.saveRemoteSettings = require_remoteApi.saveRemoteSettings;
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { CompletionItem, CompletionKind, CompletionTrigger, MAX_COMPLETION_ITEMS
|
|
|
5
5
|
import { bindSessionProtocol, hasSessionProtocol, requestSessionProtocolFrame, sendSessionProtocolFrame } from "./web/lib/sessionProtocolCommands.mjs";
|
|
6
6
|
import { bindHostTransport, bindTransport, createDashboardTransport, invokeServerMethod, notifyHubConnected, onHubConnected, releaseTransport, sendFrame, sendFrameWithAck, sendHubFrame, transportForHost, watchHubThread } from "./web/lib/transport.mjs";
|
|
7
7
|
import { SessionSocket, SessionSocketHandlers, createProtocolHubSocket } from "./web/lib/protocolHubSocket.mjs";
|
|
8
|
-
import { InstalledNativeTemplate, InstalledWebTemplate, NativeTemplateCatalog, WebTemplateCatalog, WebTemplateDiagnostic, bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
|
|
8
|
+
import { InstalledNativeTemplate, InstalledWebTemplate, NativeTemplateCatalog, WebTemplateCatalog, WebTemplateDiagnostic, backdropId, bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveBackdrop, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
|
|
9
9
|
import { HOST_SLOTS, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledGlobalPluginProvider, InstalledHomeContribution, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledUserMessageAction, ResolvedFill, WebPluginRegistry, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, 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, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
|
|
10
10
|
import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
|
|
11
11
|
import { ComposerPromptClaim, DialogPromptClaim, ToolPromptClaim, ToolPromptInput, toolPromptClaim } from "./web/lib/toolPrompt.mjs";
|
|
@@ -71,7 +71,7 @@ import { EMPTY_NEW_SESSION_DRAFT, NewSessionDraft, NewSessionState, closeNewSess
|
|
|
71
71
|
import { PaletteState, closePalette, openPalette, paletteStore, setPalettePath, togglePalette } from "./web/stores/paletteStore.mjs";
|
|
72
72
|
import { RailDialogState, ResumeDraft, ResumeTarget, ResumeView, addDashboardCoordinator, closeCoordinatorProfile, closeMoveSessionDialog, closeResumeDialog, createCoordinatorWithProfile, moveDashboardSession, openMoveSessionDialog, openResumeDialog, railDialogStore, railRestartStore, resetRailDialogStore, restartDashboardSession, restoreRemovedThread, resumeDashboardSession, resumeDraftStore, saveCoordinatorProfile, setCoordinatorProfile, setCoordinatorProfileForm, setResumeView, updateCoordinatorProfileDraft, updateResumeDraft } from "./web/stores/railDialogStore.mjs";
|
|
73
73
|
import { PairTarget, PasskeySupportView, RemoteAccessState, RemoteStep, addPasskey, approveDevice, choosePairTarget, closeRemoteDialog, denyDevice, newPairingCode, openRemoteDialog, refreshPasskeys, refreshRemoteState, remoteAccessStore, revokePairedDevice, revokeTrustedNativeDevice, showRemoteOptions, turnRemoteAccessOff, turnRemoteAccessOn, updateRemoteSettings } from "./web/stores/remoteAccessStore.mjs";
|
|
74
|
-
import { TemplateConfiguration, configuredTemplate, ensureTemplateConfiguration, refreshTemplateConfiguration, saveTemplateDefault, templateStore, useTemplateConfiguration } from "./web/stores/templateStore.mjs";
|
|
74
|
+
import { TemplateConfiguration, configuredBackdrop, configuredTemplate, ensureTemplateConfiguration, refreshTemplateConfiguration, saveBackdropDefault, saveTemplateDefault, templateStore, useTemplateConfiguration } from "./web/stores/templateStore.mjs";
|
|
75
75
|
import { ThemeState, applyStoredTheme, availableThemes, reconcileStoredTheme, selectTheme, themeStore } from "./web/stores/themeStore.mjs";
|
|
76
76
|
import { ToolPromptState, markToolPromptFailed, resetToolPromptStore, toolPromptStore } from "./web/stores/toolPromptStore.mjs";
|
|
77
77
|
import { DockTab, UiState, dockTabFor, setDockOpen, setDockTab, uiStore } from "./web/stores/uiStore.mjs";
|
|
@@ -83,4 +83,4 @@ import { WorkspaceAdmissionDraft, admitDashboardWorkspace, admitDeclaredDashboar
|
|
|
83
83
|
import { EMPTY_SETTINGS_DRAFT, SettingsDraftState, SettingsDraftTarget, discardSettingsDraft, loadSettingsDraft, saveSettingsDraft, setSettingsDraft, settingsDraftKey, settingsDraftStore } from "./web/stores/settingsDraftStore.mjs";
|
|
84
84
|
import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStateStore.mjs";
|
|
85
85
|
import { DashboardRendererProvider, DashboardRenderers } from "./web/lib/dashboardRenderers.mjs";
|
|
86
|
-
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, 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, 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, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, 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, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, 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, 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, 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, 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, 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 };
|
|
86
|
+
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, 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, 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, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, 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, 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, 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
|
@@ -10,7 +10,7 @@ import { onComposerSubmitted, publishComposerSubmission } from "./web/lib/compos
|
|
|
10
10
|
import { defaultHostId, localHostId, parseHostKey, qualifyHostId, qualifyHostKey, setDefaultHostId, splitHostId } from "./web/lib/hostIdentity.mjs";
|
|
11
11
|
import { leaderConflicts, leaderGroup } from "./web/lib/leaderTree.mjs";
|
|
12
12
|
import { mergeScopedPlugins, pluginsAtScope } from "./web/lib/pluginScopes.mjs";
|
|
13
|
-
import { bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
|
|
13
|
+
import { backdropId, bindBundledNativeTemplates, bindBundledWebTemplates, bundledNativeTemplate, collectNativeTemplates, collectWebTemplates, resolveBackdrop, resolveNativeTemplate, resolveWebTemplate } from "./web/lib/templateCatalog.mjs";
|
|
14
14
|
import { flushUiTrace, noteRender, noteStoreUpdate, setUiTraceSink, traceProfilerRender, traceStore, useRenderTrace } from "./web/lib/uiTrace.mjs";
|
|
15
15
|
import { HOST_SLOTS, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activityGroupSlot, allPluginThemes, bindSessionWebWorkspace, createWebPluginRegistry, dashboardTileFills, dispatchChannelFrame, dropPluginSessionData, globalPluginProviders, globalSlotFills, 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, removeHostWebPlugins, removeSessionWebPlugins, removeWorkspaceWebPlugins, resetWebPlugins, sessionToolRenderer, sessionWebPluginsInstalled, setWebPluginLoadDiagnostics, slotFills, startPluginDefinitions, startWebPlugins, subscribeWebPluginRegistry, webPluginDiagnostics, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, workspaceSlotFills } from "./web/lib/pluginRegistry.mjs";
|
|
16
16
|
import { ansiSegments, emptySelection, parseSelection, stripAnsi } from "./web/lib/statusLine.mjs";
|
|
@@ -67,7 +67,7 @@ import { closePalette, openPalette, paletteStore, setPalettePath, togglePalette
|
|
|
67
67
|
import { addDashboardCoordinator, closeCoordinatorProfile, closeMoveSessionDialog, closeResumeDialog, createCoordinatorWithProfile, moveDashboardSession, openMoveSessionDialog, openResumeDialog, railDialogStore, railRestartStore, resetRailDialogStore, restartDashboardSession, restoreRemovedThread, resumeDashboardSession, resumeDraftStore, saveCoordinatorProfile, setCoordinatorProfile, setCoordinatorProfileForm, setResumeView, updateCoordinatorProfileDraft, updateResumeDraft } from "./web/stores/railDialogStore.mjs";
|
|
68
68
|
import { addPasskey, approveDevice, choosePairTarget, closeRemoteDialog, denyDevice, newPairingCode, openRemoteDialog, refreshPasskeys, refreshRemoteState, remoteAccessStore, revokePairedDevice, revokeTrustedNativeDevice, showRemoteOptions, turnRemoteAccessOff, turnRemoteAccessOn, updateRemoteSettings } from "./web/stores/remoteAccessStore.mjs";
|
|
69
69
|
import { dispatchHeldSessionChannel, heldSessionChannels, heldVoiceSessions, holdSessionChannels, holdVoiceSession } from "./web/stores/sessionChannelHoldsStore.mjs";
|
|
70
|
-
import { configuredTemplate, ensureTemplateConfiguration, refreshTemplateConfiguration, saveTemplateDefault, templateStore, useTemplateConfiguration } from "./web/stores/templateStore.mjs";
|
|
70
|
+
import { configuredBackdrop, configuredTemplate, ensureTemplateConfiguration, refreshTemplateConfiguration, saveBackdropDefault, saveTemplateDefault, templateStore, useTemplateConfiguration } from "./web/stores/templateStore.mjs";
|
|
71
71
|
import { applyStoredTheme, availableThemes, reconcileStoredTheme, selectTheme, themeStore } from "./web/stores/themeStore.mjs";
|
|
72
72
|
import { applyThreadTranscriptFrame, bindThreadReader, dropThreads, heldThreads, resetThreads, resubscribeThreads, subscribeThread, threadStoreKey, unsubscribeThread } from "./web/stores/threadStore.mjs";
|
|
73
73
|
import { markToolPromptFailed, resetToolPromptStore, toolPromptStore } from "./web/stores/toolPromptStore.mjs";
|
|
@@ -83,4 +83,4 @@ import { dialogDraftStore, updateDialogDraft, useDialogDraft } from "./web/store
|
|
|
83
83
|
import { EMPTY_SETTINGS_DRAFT, discardSettingsDraft, loadSettingsDraft, saveSettingsDraft, setSettingsDraft, settingsDraftKey, settingsDraftStore } from "./web/stores/settingsDraftStore.mjs";
|
|
84
84
|
import { dashboardStateFor, useDashboardState } from "./web/stores/dashboardStateStore.mjs";
|
|
85
85
|
import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
|
|
86
|
-
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, 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, configuredTemplate, contextGroups, coordinatorHostTargets, createCloudHub, createCoordinatorWithProfile, createDashboardTransport, createDevProxyTarget, createGeneralSession, createGeneralSessionRequest, createPagedTranscript, createPlainSession, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createSessionMcpClient, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, 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, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, 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, 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, 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, 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, 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 };
|
|
86
|
+
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, 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, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installGlobalWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeServerMethod, isDesktopClient, 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, 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, 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":"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
|
|
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"}
|
|
@@ -48,12 +48,26 @@ export interface SettingsPresetsView {
|
|
|
48
48
|
export interface SettingsPresetsWriteRequest {
|
|
49
49
|
defaultPreset: string;
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Which settings tier a read or write is about: `host` is this machine's config file and
|
|
53
|
+
* `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer
|
|
54
|
+
* endpoint and never travels on the host settings API, where a legacy `'global'` means `host`.
|
|
55
|
+
*/
|
|
56
|
+
export type SettingsScope = 'host' | 'repository' | 'global';
|
|
57
|
+
/** The two config files the host settings API reads and writes. */
|
|
58
|
+
export type SettingsFileScope = Exclude<SettingsScope, 'global'>;
|
|
53
59
|
/** Where the effective value came from, or that no file set it. */
|
|
54
|
-
export type SettingsOrigin = '
|
|
60
|
+
export type SettingsOrigin = 'host' | 'repository' | 'default';
|
|
55
61
|
/** Which scopes a key may be written at, as the merge policy decides. */
|
|
56
|
-
export type SettingsKeyScope = '
|
|
62
|
+
export type SettingsKeyScope = 'host' | 'repository' | 'both';
|
|
63
|
+
/**
|
|
64
|
+
* The host settings API's wire spelling of the host tier.
|
|
65
|
+
* ponytail: the wire keeps `'global'` for `host` in both directions until Phase 10, because shipped
|
|
66
|
+
* native builds talk to hosts on mixed versions. Phase 10 flips server and clients together.
|
|
67
|
+
*/
|
|
68
|
+
export type SettingsWireScope = 'global' | 'repository';
|
|
69
|
+
export type SettingsWireOrigin = 'global' | 'repository' | 'default';
|
|
70
|
+
export type SettingsWireKeyScope = 'global' | 'repository' | 'both';
|
|
57
71
|
/** One repository the picker offers. */
|
|
58
72
|
export type SettingsRepository = RepositorySettingsRepository;
|
|
59
73
|
/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */
|
|
@@ -73,18 +87,35 @@ export interface SettingsValueView {
|
|
|
73
87
|
}
|
|
74
88
|
/** What the read route answers with. */
|
|
75
89
|
export interface SettingsConfigView {
|
|
76
|
-
/** Empty when the page has no repository in view; the
|
|
90
|
+
/** Empty when the page has no repository in view; the host half still applies. */
|
|
77
91
|
repoRoot: string;
|
|
78
92
|
/** Keyed by dotted key path, for every key the page asked about. */
|
|
79
93
|
values: Record<string, SettingsValueView>;
|
|
80
94
|
/** Per-scope file identity, so a write can prove which bytes it read. */
|
|
81
|
-
hashes: Record<
|
|
95
|
+
hashes: Record<SettingsFileScope, string>;
|
|
96
|
+
}
|
|
97
|
+
/** One key's state as the host settings API sends it. */
|
|
98
|
+
export interface SettingsWireValueView {
|
|
99
|
+
value?: string;
|
|
100
|
+
origin: SettingsWireOrigin;
|
|
101
|
+
scope: SettingsWireKeyScope;
|
|
102
|
+
}
|
|
103
|
+
/** The read route's response body. `hashes.global` duplicates `hashes.host` for older clients. */
|
|
104
|
+
export interface SettingsWireConfigView {
|
|
105
|
+
repoRoot: string;
|
|
106
|
+
values: Record<string, SettingsWireValueView>;
|
|
107
|
+
/** ponytail: `global` is the legacy duplicate of `host`; drop it in Phase 10. */
|
|
108
|
+
hashes: {
|
|
109
|
+
host: string;
|
|
110
|
+
global: string;
|
|
111
|
+
repository: string;
|
|
112
|
+
};
|
|
82
113
|
}
|
|
83
114
|
/** What the write route takes. `value: null` clears the key at that scope. */
|
|
84
115
|
export interface SettingsWriteRequest {
|
|
85
|
-
/** Required for a repository write; ignored, and may be empty, for a
|
|
116
|
+
/** Required for a repository write; ignored, and may be empty, for a host one. */
|
|
86
117
|
repoRoot: string;
|
|
87
|
-
scope:
|
|
118
|
+
scope: SettingsFileScope;
|
|
88
119
|
keyPath: readonly string[];
|
|
89
120
|
value: string | number | null;
|
|
90
121
|
/** The hash of the target file when the page read it. */
|
|
@@ -93,7 +124,7 @@ export interface SettingsWriteRequest {
|
|
|
93
124
|
/** One atomic save, validated as a whole before replacing the configuration file. */
|
|
94
125
|
export interface SettingsBatchWriteRequest {
|
|
95
126
|
repoRoot: string;
|
|
96
|
-
scope:
|
|
127
|
+
scope: SettingsFileScope;
|
|
97
128
|
edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];
|
|
98
129
|
expectedHash: string;
|
|
99
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.mts","names":[],"sources":["../../src/types/settings.ts"],"mappings":";;qBAWa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;;;;;;;iBAQI;;EAEf;;EAEA;;EAEA;EACA;;iBAGe;EACf;EACA;;;iBAIe;EACf;EACA;;;iBAIe;EACf;EACA;EACA,QAAQ;;;iBAIO;EACf;EACA,SAAS;;EAET;;iBAGe;EACf
|
|
1
|
+
{"version":3,"file":"settings.d.mts","names":[],"sources":["../../src/types/settings.ts"],"mappings":";;qBAWa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;;;;;;;iBAQI;;EAEf;;EAEA;;EAEA;EACA;;iBAGe;EACf;EACA;;;iBAIe;EACf;EACA;;;iBAIe;EACf;EACA;EACA,QAAQ;;;iBAIO;EACf;EACA,SAAS;;EAET;;iBAGe;EACf;;;;;;;YAOU;;YAGA,oBAAoB,QAAQ;;YAG5B;;YAGA;;;;;;YAOA;YACA;YACA;;YAGA,qBAAqB;;iBAGhB;;EAEf;EACA;EACA;;;iBAIe;;EAEf;EACA,QAAQ;;EAER,OAAO;;;iBAIQ;;EAEf;;EAEA,QAAQ,eAAe;;EAEvB,QAAQ,OAAO;;;iBAIA;EACf;EACA,QAAQ;EACR,OAAO;;;iBAIQ;EACf;EACA,QAAQ,eAAe;;EAEvB;IAAU;IAAc;IAAgB;;;;iBAIzB;;EAEf;EACA,OAAO;EACP;EACA;;EAEA;;;iBAIe;EACf;EACA,OAAO;EACP,gBAAgB,KAAK;EACrB;;;iBAIe;EACf;EACA;;EAEA;;EAEA;;;iBAIe,yBAAyB;EACxC,YAAY;EACZ,aAAa;EACb,QAAQ;;;iBAIO;EACf,YAAY;EACZ;EACA;IACE,qBAAqB;IACrB,kBAAkB;IAClB,mBAAmB;;EAErB;IACE,WAAW;IACX,SAAS;IACT,SAAS;;;iBAII;EACf;EACA;EACA;;;iBAIe;EACf;EACA;EACA,SAAS;;;iBAIM;EACf;;EAEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.mjs","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
|
|
1
|
+
{"version":3,"file":"settings.mjs","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"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, BRIDGE_STATUS_TYPE, BridgeState, BridgeStatusFrame, REPLAY_TYPE, SessionFrame, bridgeStatus } from "./types/session.mjs";
|
|
2
2
|
import { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, CONTEXT_ENTRY_TYPE, ContextGroupKind, ContextGroupProjection, ContextItemProjection, ContextItemSource, ContextProjection, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, DirectoryListing, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, HistoryPageFrame, HistoryRequestFrame, HubHelloFrame, MINOR_MODE_ENTRY_TYPE, MinorModeActionProjection, MinorModeProjection, MinorModeRecordProjection, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, PiSessionHistoryItem, RESOURCE_CATALOG_ENTRY_TYPE, RemovedSessionItem, SESSIONS_API_ROUTE, SESSION_COMMAND_TYPE, SessionCommandFrame, SessionGitStatus, SessionNativeComposition, SessionPhase, SessionProfile, SessionSummary, SessionWebComposition, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, WorkspaceSandboxState, WorkspaceSummary, hubHello, sessionCommand } from "./types/hub.mjs";
|
|
3
|
-
import { RepositoryCatalogOption, RepositorySelectionChanges, RepositorySelectionValue, RepositorySelectionWriteRequest, RepositorySettingsView, SETTINGS_CONFIG_API_ROUTE, SETTINGS_IMAGES_API_ROUTE, SETTINGS_MODELS_API_ROUTE, SETTINGS_PRESETS_API_ROUTE, SETTINGS_REPOSITORIES_API_ROUTE, SETTINGS_REPOSITORY_API_ROUTE, SETTINGS_REPOSITORY_SELECTION_API_ROUTE, SETTINGS_VALUE_API_ROUTE, SettingsBatchWriteRequest, SettingsConfigView, SettingsErrorView, SettingsImagesView, SettingsImagesWriteRequest, SettingsKeyScope, SettingsModel, SettingsOrigin, SettingsPreset, SettingsPresetLayer, SettingsPresetsView, SettingsPresetsWriteRequest, SettingsRepository, SettingsScope, SettingsValueView, SettingsWriteRequest } from "./types/settings.mjs";
|
|
3
|
+
import { RepositoryCatalogOption, RepositorySelectionChanges, RepositorySelectionValue, RepositorySelectionWriteRequest, RepositorySettingsView, SETTINGS_CONFIG_API_ROUTE, SETTINGS_IMAGES_API_ROUTE, SETTINGS_MODELS_API_ROUTE, SETTINGS_PRESETS_API_ROUTE, SETTINGS_REPOSITORIES_API_ROUTE, SETTINGS_REPOSITORY_API_ROUTE, SETTINGS_REPOSITORY_SELECTION_API_ROUTE, SETTINGS_VALUE_API_ROUTE, SettingsBatchWriteRequest, SettingsConfigView, SettingsErrorView, SettingsFileScope, SettingsImagesView, SettingsImagesWriteRequest, SettingsKeyScope, SettingsModel, SettingsOrigin, SettingsPreset, SettingsPresetLayer, SettingsPresetsView, SettingsPresetsWriteRequest, SettingsRepository, SettingsScope, SettingsValueView, SettingsWireConfigView, SettingsWireKeyScope, SettingsWireOrigin, SettingsWireScope, SettingsWireValueView, SettingsWriteRequest } from "./types/settings.mjs";
|
|
4
4
|
import { AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, AuthMethodType, AuthRuntime, AuthRuntimeProvider, LoginEvent, LoginFlowSnapshot, LoginFlowStatus, LoginInteraction, LoginPrompt, LoginPromptView, LoginSelectOption, ProviderAuthMethod, ProviderAuthSummary } from "./types/auth.mjs";
|
|
5
5
|
import { DEV_PROXY_API_ROUTE, DEV_PROXY_PREFIX, DEV_PROXY_TARGETS_ROUTE, DevProxyStateView, DevProxyTarget } from "./types/devProxy.mjs";
|
|
6
6
|
import { MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MediaKind, MediaType, SESSION_FILE_EXPECTED_SHA256_HEADER, SESSION_FILE_ROUTE, SESSION_FILE_SHA256_HEADER, sessionFileUrl } from "./types/media.mjs";
|
|
@@ -8,4 +8,4 @@ import { BUNDLE_MINIMUM_REVISION_PARAM, BUNDLE_SIGNING_KEY_PARAM, BundlePairingT
|
|
|
8
8
|
import { CreateSessionMcpClientInput, CreatedSessionMcpClient, SessionMcpClient, SessionMcpConfig, SessionMcpRouting, SessionMcpScope, SessionMcpSkill, SessionMcpTool } from "./types/sessionMcp.mjs";
|
|
9
9
|
import { WebServer, WebServerOptions } from "./types/bridge.mjs";
|
|
10
10
|
import { PoNotificationEntry, parsePoNotificationEntry } from "./types/notification.mjs";
|
|
11
|
-
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, AuthMethodType, AuthRuntime, AuthRuntimeProvider, BRIDGE_STATUS_TYPE, BUNDLE_MINIMUM_REVISION_PARAM, BUNDLE_SIGNING_KEY_PARAM, BridgeState, BridgeStatusFrame, BundlePairingTrust, CONTEXT_ENTRY_TYPE, COOKIE_CEILING_SECONDS, ContextGroupKind, ContextGroupProjection, ContextItemProjection, ContextItemSource, ContextProjection, CreateSessionMcpClientInput, CreatedSessionMcpClient, DEVICE_COOKIE, DEV_PROXY_API_ROUTE, DEV_PROXY_PREFIX, DEV_PROXY_TARGETS_ROUTE, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, DevProxyStateView, DevProxyTarget, DirectoryListing, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, HistoryPageFrame, HistoryRequestFrame, HubHelloFrame, LoginEvent, LoginFlowSnapshot, LoginFlowStatus, LoginInteraction, LoginPrompt, LoginPromptView, LoginSelectOption, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MINOR_MODE_ENTRY_TYPE, MediaKind, MediaType, MinorModeActionProjection, MinorModeProjection, MinorModeRecordProjection, NATIVE_PAIRING_LINK_PREFIX, PAIRING_CLAIM_ROUTE, PAIRING_CODE_TTL_MS, PAIRING_PAGE_ROUTE, PAIRING_REQUEST_TTL_MS, PAIRING_STATUS_QUERY, PAIRING_STATUS_ROUTE, PASSKEY_AUTH_BEGIN_ROUTE, PASSKEY_AUTH_FINISH_ROUTE, PASSKEY_REGISTER_BEGIN_ROUTE, PASSKEY_REGISTER_FINISH_ROUTE, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, PROTOCOL_SOCKET_ROUTE, PairedDeviceView, PairingRequestView, PairingStatus, PiSessionHistoryItem, PoNotificationEntry, ProviderAuthMethod, ProviderAuthSummary, REMOTE_API_ROUTE, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PAIRING_REQUEST_TYPE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REMOTE_STATE_TYPE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, RemoteAccessSettings, RemoteAccessStateView, RemoteAccessStatus, RemoteChannelScope, RemovedSessionItem, RepositoryCatalogOption, RepositorySelectionChanges, RepositorySelectionValue, RepositorySelectionWriteRequest, RepositorySettingsView, SESSIONS_API_ROUTE, SESSION_COMMAND_TYPE, SESSION_FILE_EXPECTED_SHA256_HEADER, SESSION_FILE_ROUTE, SESSION_FILE_SHA256_HEADER, SETTINGS_CONFIG_API_ROUTE, SETTINGS_IMAGES_API_ROUTE, SETTINGS_MODELS_API_ROUTE, SETTINGS_PRESETS_API_ROUTE, SETTINGS_REPOSITORIES_API_ROUTE, SETTINGS_REPOSITORY_API_ROUTE, SETTINGS_REPOSITORY_SELECTION_API_ROUTE, SETTINGS_VALUE_API_ROUTE, STEP_UP_HEADER, SessionCommandFrame, SessionFrame, SessionGitStatus, SessionMcpClient, SessionMcpConfig, SessionMcpRouting, SessionMcpScope, SessionMcpSkill, SessionMcpTool, SessionNativeComposition, SessionPhase, SessionProfile, SessionSummary, SessionWebComposition, SettingsBatchWriteRequest, SettingsConfigView, SettingsErrorView, SettingsImagesView, SettingsImagesWriteRequest, SettingsKeyScope, SettingsModel, SettingsOrigin, SettingsPreset, SettingsPresetLayer, SettingsPresetsView, SettingsPresetsWriteRequest, SettingsRepository, SettingsScope, SettingsValueView, SettingsWriteRequest, TRUSTED_DEVICES_ROUTE, TrustedDevicePlatform, TrustedDeviceView, TunnelConfig, TunnelFailure, TunnelKind, TunnelLauncher, TunnelStartInput, TunnelStartResult, WEB_DEV_SERVER_PORT, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, WebServer, WebServerOptions, WorkspaceSandboxState, WorkspaceSummary, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
|
11
|
+
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, AuthMethodType, AuthRuntime, AuthRuntimeProvider, BRIDGE_STATUS_TYPE, BUNDLE_MINIMUM_REVISION_PARAM, BUNDLE_SIGNING_KEY_PARAM, BridgeState, BridgeStatusFrame, BundlePairingTrust, CONTEXT_ENTRY_TYPE, COOKIE_CEILING_SECONDS, ContextGroupKind, ContextGroupProjection, ContextItemProjection, ContextItemSource, ContextProjection, CreateSessionMcpClientInput, CreatedSessionMcpClient, DEVICE_COOKIE, DEV_PROXY_API_ROUTE, DEV_PROXY_PREFIX, DEV_PROXY_TARGETS_ROUTE, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, DevProxyStateView, DevProxyTarget, DirectoryListing, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, HistoryPageFrame, HistoryRequestFrame, HubHelloFrame, LoginEvent, LoginFlowSnapshot, LoginFlowStatus, LoginInteraction, LoginPrompt, LoginPromptView, LoginSelectOption, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MINOR_MODE_ENTRY_TYPE, MediaKind, MediaType, MinorModeActionProjection, MinorModeProjection, MinorModeRecordProjection, NATIVE_PAIRING_LINK_PREFIX, PAIRING_CLAIM_ROUTE, PAIRING_CODE_TTL_MS, PAIRING_PAGE_ROUTE, PAIRING_REQUEST_TTL_MS, PAIRING_STATUS_QUERY, PAIRING_STATUS_ROUTE, PASSKEY_AUTH_BEGIN_ROUTE, PASSKEY_AUTH_FINISH_ROUTE, PASSKEY_REGISTER_BEGIN_ROUTE, PASSKEY_REGISTER_FINISH_ROUTE, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, PROTOCOL_SOCKET_ROUTE, PairedDeviceView, PairingRequestView, PairingStatus, PiSessionHistoryItem, PoNotificationEntry, ProviderAuthMethod, ProviderAuthSummary, REMOTE_API_ROUTE, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PAIRING_REQUEST_TYPE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REMOTE_STATE_TYPE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, RemoteAccessSettings, RemoteAccessStateView, RemoteAccessStatus, RemoteChannelScope, RemovedSessionItem, RepositoryCatalogOption, RepositorySelectionChanges, RepositorySelectionValue, RepositorySelectionWriteRequest, RepositorySettingsView, SESSIONS_API_ROUTE, SESSION_COMMAND_TYPE, SESSION_FILE_EXPECTED_SHA256_HEADER, SESSION_FILE_ROUTE, SESSION_FILE_SHA256_HEADER, SETTINGS_CONFIG_API_ROUTE, SETTINGS_IMAGES_API_ROUTE, SETTINGS_MODELS_API_ROUTE, SETTINGS_PRESETS_API_ROUTE, SETTINGS_REPOSITORIES_API_ROUTE, SETTINGS_REPOSITORY_API_ROUTE, SETTINGS_REPOSITORY_SELECTION_API_ROUTE, SETTINGS_VALUE_API_ROUTE, STEP_UP_HEADER, SessionCommandFrame, SessionFrame, SessionGitStatus, SessionMcpClient, SessionMcpConfig, SessionMcpRouting, SessionMcpScope, SessionMcpSkill, SessionMcpTool, SessionNativeComposition, SessionPhase, SessionProfile, SessionSummary, SessionWebComposition, SettingsBatchWriteRequest, SettingsConfigView, SettingsErrorView, SettingsFileScope, SettingsImagesView, SettingsImagesWriteRequest, SettingsKeyScope, SettingsModel, SettingsOrigin, SettingsPreset, SettingsPresetLayer, SettingsPresetsView, SettingsPresetsWriteRequest, SettingsRepository, SettingsScope, SettingsValueView, SettingsWireConfigView, SettingsWireKeyScope, SettingsWireOrigin, SettingsWireScope, SettingsWireValueView, SettingsWriteRequest, TRUSTED_DEVICES_ROUTE, TrustedDevicePlatform, TrustedDeviceView, TunnelConfig, TunnelFailure, TunnelKind, TunnelLauncher, TunnelStartInput, TunnelStartResult, WEB_DEV_SERVER_PORT, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, WebServer, WebServerOptions, WorkspaceSandboxState, WorkspaceSummary, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
|
@@ -53,7 +53,7 @@ function HomeView({ tiles, main = [], side = [], title = "Home", emptyTitle = "N
|
|
|
53
53
|
/** Home reads only global fills, regardless of the focused session or workspace. */
|
|
54
54
|
function HomePage({ onShowSessions, navigationToggle, bare }) {
|
|
55
55
|
const props = require_usePluginSlotProps.usePluginSlotProps(null);
|
|
56
|
-
const fills = [...require_pluginRegistry.dashboardTileFills({ scope: "
|
|
56
|
+
const fills = [...require_pluginRegistry.dashboardTileFills({ scope: "host" }), ...require_pluginRegistry.legacyHomeAppFills()].sort((left, right) => left.order - right.order || left.pluginId.localeCompare(right.pluginId) || left.id.localeCompare(right.id));
|
|
57
57
|
const tiles = require_pluginRegistry.globalSlotFills(_agimon_ai_po_core_web.HOST_SLOTS.homeAttention).flatMap((fill) => fill.component === void 0 ? [] : [{
|
|
58
58
|
id: JSON.stringify([fill.pluginId, fill.id]),
|
|
59
59
|
size: "wide",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.cjs","names":["Button","SidebarIcon","EmptyState","DashboardTileGrid","usePluginSlotProps","dashboardTileFills","legacyHomeAppFills","globalSlotFills","HOST_SLOTS","createElement","parseDashboardTileData"],"sources":["../../../src/web/components/HomePage.tsx"],"sourcesContent":["import { Button, EmptyState, SidebarIcon } from '@agimon-ai/po-web-components';\nimport { createElement, type ReactNode } from 'react';\n\nimport {\n dashboardTileFills,\n globalSlotFills,\n HOST_SLOTS,\n legacyHomeAppFills,\n parseDashboardTileData,\n} from '../lib/pluginRegistry';\nimport { usePluginSlotProps } from '../stores/usePluginSlotProps';\nimport { DashboardTileGrid, type DashboardTileView } from './DashboardTileGrid';\n\nexport interface HomeViewProps {\n tiles?: readonly DashboardTileView[];\n /** Legacy callers may still supply full cards; new callers supply ordered tiles instead. */\n main?: readonly ReactNode[];\n side?: readonly ReactNode[];\n title?: string;\n emptyTitle?: string;\n emptyDescription?: string;\n onShowSessions?: () => void;\n navigationToggle?: 'mobile' | 'always';\n /** Drawn on a template's own background, such as a desktop: no page background and no heading. */\n bare?: boolean;\n}\n\n/** The shared Home and Workspace frame, independent of plugins, navigation and data loading. */\nexport function HomeView({\n tiles,\n main = [],\n side = [],\n title = 'Home',\n emptyTitle = 'Nothing on Home yet',\n emptyDescription = 'Apps you add show up here.',\n onShowSessions,\n navigationToggle = 'mobile',\n bare = false,\n}: HomeViewProps) {\n const entries = tiles ?? [\n ...main.map((body, index): DashboardTileView => ({ id: `main-${index}`, size: 'wide', body, legacy: true })),\n ...side.map((body, index): DashboardTileView => ({ id: `side-${index}`, size: 'small', body, legacy: true })),\n ];\n return (\n <section\n aria-label={title}\n data-testid=\"home-page\"\n className={`flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto font-sans text-base text-po-text ${bare ? '' : 'bg-po-bg'}`}\n >\n {onShowSessions ? (\n <div className={`shrink-0 px-3 pt-2 ${navigationToggle === 'mobile' ? 'md:hidden' : ''}`}>\n <Button\n variant=\"ghost\"\n size=\"icon-md\"\n data-testid=\"mobile-sessions-open\"\n title=\"Show sessions\"\n aria-label=\"Show sessions\"\n onClick={onShowSessions}\n className=\"rounded-lg bg-po-panel/60 text-po-text hover:bg-po-panel hover:text-po-hi\"\n >\n <SidebarIcon aria-hidden className=\"size-4\" />\n </Button>\n </div>\n ) : null}\n <div className=\"mx-auto flex w-full max-w-6xl flex-col gap-6 px-4 py-6 md:px-8 md:py-8\">\n {bare ? null : <h1 className=\"text-2xl font-semibold text-po-hi\">{title}</h1>}\n {entries.length === 0 ? (\n <EmptyState title={emptyTitle} description={emptyDescription} />\n ) : (\n <DashboardTileGrid tiles={entries} />\n )}\n </div>\n </section>\n );\n}\n\n/** Home reads only global fills, regardless of the focused session or workspace. */\nexport function HomePage({\n onShowSessions,\n navigationToggle,\n bare,\n}: {\n onShowSessions?: () => void;\n navigationToggle?: 'mobile' | 'always';\n bare?: boolean;\n}) {\n const props = usePluginSlotProps(null);\n const fills = [...dashboardTileFills({ scope: '
|
|
1
|
+
{"version":3,"file":"HomePage.cjs","names":["Button","SidebarIcon","EmptyState","DashboardTileGrid","usePluginSlotProps","dashboardTileFills","legacyHomeAppFills","globalSlotFills","HOST_SLOTS","createElement","parseDashboardTileData"],"sources":["../../../src/web/components/HomePage.tsx"],"sourcesContent":["import { Button, EmptyState, SidebarIcon } from '@agimon-ai/po-web-components';\nimport { createElement, type ReactNode } from 'react';\n\nimport {\n dashboardTileFills,\n globalSlotFills,\n HOST_SLOTS,\n legacyHomeAppFills,\n parseDashboardTileData,\n} from '../lib/pluginRegistry';\nimport { usePluginSlotProps } from '../stores/usePluginSlotProps';\nimport { DashboardTileGrid, type DashboardTileView } from './DashboardTileGrid';\n\nexport interface HomeViewProps {\n tiles?: readonly DashboardTileView[];\n /** Legacy callers may still supply full cards; new callers supply ordered tiles instead. */\n main?: readonly ReactNode[];\n side?: readonly ReactNode[];\n title?: string;\n emptyTitle?: string;\n emptyDescription?: string;\n onShowSessions?: () => void;\n navigationToggle?: 'mobile' | 'always';\n /** Drawn on a template's own background, such as a desktop: no page background and no heading. */\n bare?: boolean;\n}\n\n/** The shared Home and Workspace frame, independent of plugins, navigation and data loading. */\nexport function HomeView({\n tiles,\n main = [],\n side = [],\n title = 'Home',\n emptyTitle = 'Nothing on Home yet',\n emptyDescription = 'Apps you add show up here.',\n onShowSessions,\n navigationToggle = 'mobile',\n bare = false,\n}: HomeViewProps) {\n const entries = tiles ?? [\n ...main.map((body, index): DashboardTileView => ({ id: `main-${index}`, size: 'wide', body, legacy: true })),\n ...side.map((body, index): DashboardTileView => ({ id: `side-${index}`, size: 'small', body, legacy: true })),\n ];\n return (\n <section\n aria-label={title}\n data-testid=\"home-page\"\n className={`flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto font-sans text-base text-po-text ${bare ? '' : 'bg-po-bg'}`}\n >\n {onShowSessions ? (\n <div className={`shrink-0 px-3 pt-2 ${navigationToggle === 'mobile' ? 'md:hidden' : ''}`}>\n <Button\n variant=\"ghost\"\n size=\"icon-md\"\n data-testid=\"mobile-sessions-open\"\n title=\"Show sessions\"\n aria-label=\"Show sessions\"\n onClick={onShowSessions}\n className=\"rounded-lg bg-po-panel/60 text-po-text hover:bg-po-panel hover:text-po-hi\"\n >\n <SidebarIcon aria-hidden className=\"size-4\" />\n </Button>\n </div>\n ) : null}\n <div className=\"mx-auto flex w-full max-w-6xl flex-col gap-6 px-4 py-6 md:px-8 md:py-8\">\n {bare ? null : <h1 className=\"text-2xl font-semibold text-po-hi\">{title}</h1>}\n {entries.length === 0 ? (\n <EmptyState title={emptyTitle} description={emptyDescription} />\n ) : (\n <DashboardTileGrid tiles={entries} />\n )}\n </div>\n </section>\n );\n}\n\n/** Home reads only global fills, regardless of the focused session or workspace. */\nexport function HomePage({\n onShowSessions,\n navigationToggle,\n bare,\n}: {\n onShowSessions?: () => void;\n navigationToggle?: 'mobile' | 'always';\n bare?: boolean;\n}) {\n const props = usePluginSlotProps(null);\n const fills = [...dashboardTileFills({ scope: 'host' }), ...legacyHomeAppFills()].sort(\n (left, right) =>\n left.order - right.order || left.pluginId.localeCompare(right.pluginId) || left.id.localeCompare(right.id),\n );\n // What waits on the person leads the main column; each fill draws its own frame and hides when idle.\n const tiles: DashboardTileView[] = globalSlotFills(HOST_SLOTS.homeAttention).flatMap((fill) =>\n fill.component === undefined\n ? []\n : [\n {\n id: JSON.stringify([fill.pluginId, fill.id]),\n size: 'wide' as const,\n legacy: true,\n body: createElement(fill.component, props),\n },\n ],\n );\n for (const fill of fills) {\n const component = fill.component;\n if (component === undefined) continue;\n const id = JSON.stringify([fill.pluginId, fill.id]);\n const data = parseDashboardTileData(fill.data);\n const destination = data?.open;\n const open = destination?.kind === 'page' ? props.openPage : props.openSettings;\n tiles.push({\n id,\n size:\n data === null\n ? (fill.data as { column?: unknown } | undefined)?.column === 'side'\n ? 'small'\n : 'wide'\n : (data.size ?? 'small'),\n ...(data === null ? { legacy: true } : { title: data.title, icon: data.icon, column: data.column }),\n ...(destination === undefined || open === undefined ? {} : { onOpen: () => open(destination.id) }),\n body: createElement(component, props),\n });\n }\n return (\n <HomeView\n tiles={tiles}\n {...(onShowSessions === undefined ? {} : { onShowSessions })}\n {...(navigationToggle === undefined ? {} : { navigationToggle })}\n {...(bare === undefined ? {} : { bare })}\n />\n );\n}\n"],"mappings":";;;;;;;;;AA4BA,SAAgB,SAAS,EACvB,OACA,OAAO,CAAC,GACR,OAAO,CAAC,GACR,QAAQ,QACR,aAAa,uBACb,mBAAmB,8BACnB,gBACA,mBAAmB,UACnB,OAAO,SACS;CAChB,MAAM,UAAU,SAAS,CACvB,GAAG,KAAK,KAAK,MAAM,WAA8B;EAAE,IAAI,QAAQ;EAAS,MAAM;EAAQ;EAAM,QAAQ;CAAK,EAAE,GAC3G,GAAG,KAAK,KAAK,MAAM,WAA8B;EAAE,IAAI,QAAQ;EAAS,MAAM;EAAS;EAAM,QAAQ;CAAK,EAAE,CAC9G;CACA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,WAAD;EACE,cAAY;EACZ,eAAY;EACZ,WAAW,yFAAyF,OAAO,KAAK;EAHlH,UAAA,CAKG,iBACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,WAAW,sBAAsB,qBAAqB,WAAW,cAAc;GAClF,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACA,6BAAAA,QAAD;IACE,SAAQ;IACR,MAAK;IACL,eAAY;IACZ,OAAM;IACN,cAAW;IACX,SAAS;IACT,WAAU;IAEV,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,aAAD;KAAa,eAAA;KAAY,WAAU;IAAU,CAAA;GACvC,CAAA;EACL,CAAA,IACH,MACJ,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACG,OAAO,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;IAAI,WAAU;IAAqC,UAAA;GAAU,CAAA,GAC3E,QAAQ,WAAW,IAClB,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,YAAD;IAAY,OAAO;IAAY,aAAa;GAAmB,CAAA,IAE/D,iBAAA,GAAA,kBAAA,IAAA,CAACC,0BAAAA,mBAAD,EAAmB,OAAO,QAAU,CAAA,CAEnC;EACE,CAAA,CAAA;;AAEb;;AAGA,SAAgB,SAAS,EACvB,gBACA,kBACA,QAKC;CACD,MAAM,QAAQC,2BAAAA,mBAAmB,IAAI;CACrC,MAAM,QAAQ,CAAC,GAAGC,uBAAAA,mBAAmB,EAAE,OAAO,OAAO,CAAC,GAAG,GAAGC,uBAAAA,mBAAmB,CAAC,CAAC,CAAC,MAC/E,MAAM,UACL,KAAK,QAAQ,MAAM,SAAS,KAAK,SAAS,cAAc,MAAM,QAAQ,KAAK,KAAK,GAAG,cAAc,MAAM,EAAE,CAC7G;CAEA,MAAM,QAA6BC,uBAAAA,gBAAgBC,uBAAAA,WAAW,aAAa,CAAC,CAAC,SAAS,SACpF,KAAK,cAAc,KAAA,IACf,CAAC,IACD,CACE;EACE,IAAI,KAAK,UAAU,CAAC,KAAK,UAAU,KAAK,EAAE,CAAC;EAC3C,MAAM;EACN,QAAQ;EACR,OAAA,GAAMC,MAAAA,cAAAA,CAAc,KAAK,WAAW,KAAK;CAC3C,CACF,CACN;CACA,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,YAAY,KAAK;EACvB,IAAI,cAAc,KAAA,GAAW;EAC7B,MAAM,KAAK,KAAK,UAAU,CAAC,KAAK,UAAU,KAAK,EAAE,CAAC;EAClD,MAAM,OAAOC,uBAAAA,uBAAuB,KAAK,IAAI;EAC7C,MAAM,cAAc,MAAM;EAC1B,MAAM,OAAO,aAAa,SAAS,SAAS,MAAM,WAAW,MAAM;EACnE,MAAM,KAAK;GACT;GACA,MACE,SAAS,OACJ,KAAK,MAA2C,WAAW,SAC1D,UACA,SACD,KAAK,QAAQ;GACpB,GAAI,SAAS,OAAO,EAAE,QAAQ,KAAK,IAAI;IAAE,OAAO,KAAK;IAAO,MAAM,KAAK;IAAM,QAAQ,KAAK;GAAO;GACjG,GAAI,gBAAgB,KAAA,KAAa,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,cAAc,KAAK,YAAY,EAAE,EAAE;GAChG,OAAA,GAAMD,MAAAA,cAAAA,CAAc,WAAW,KAAK;EACtC,CAAC;CACH;CACA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EACS;EACP,GAAK,mBAAmB,KAAA,IAAY,CAAC,IAAI,EAAE,eAAe;EAC1D,GAAK,qBAAqB,KAAA,IAAY,CAAC,IAAI,EAAE,iBAAiB;EAC9D,GAAK,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,KAAK;CACvC,CAAA;AAEL"}
|