@agimon-ai/po-web-dashboard 0.0.0-alpha.201 → 0.0.0-alpha.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/types/settings.cjs +2 -0
- package/dist/types/settings.cjs.map +1 -1
- package/dist/types/settings.d.mts +1 -0
- package/dist/types/settings.d.mts.map +1 -1
- package/dist/types/settings.mjs +2 -1
- package/dist/types/settings.mjs.map +1 -1
- package/dist/types.cjs +1 -0
- package/dist/types.d.mts +2 -2
- package/dist/types.mjs +2 -2
- package/dist/views.cjs +1 -0
- package/dist/views.d.mts +2 -2
- package/dist/views.mjs +2 -2
- package/dist/web/components/LoginFlowDialog.cjs +1 -1
- package/dist/web/components/LoginFlowDialog.cjs.map +1 -1
- package/dist/web/components/LoginFlowDialog.mjs +1 -1
- package/dist/web/components/LoginFlowDialog.mjs.map +1 -1
- package/dist/web/features/onboarding/OnboardingSteps.cjs +1 -1
- package/dist/web/features/onboarding/OnboardingSteps.cjs.map +1 -1
- package/dist/web/features/onboarding/OnboardingSteps.mjs +1 -1
- package/dist/web/features/onboarding/OnboardingSteps.mjs.map +1 -1
- package/dist/web/features/settings/ProviderSettings.cjs +58 -0
- package/dist/web/features/settings/ProviderSettings.cjs.map +1 -1
- package/dist/web/features/settings/ProviderSettings.d.mts +4 -0
- package/dist/web/features/settings/ProviderSettings.d.mts.map +1 -1
- package/dist/web/features/settings/ProviderSettings.mjs +59 -2
- package/dist/web/features/settings/ProviderSettings.mjs.map +1 -1
- package/dist/web/lib/settingsApi.cjs +45 -0
- package/dist/web/lib/settingsApi.cjs.map +1 -1
- package/dist/web/lib/settingsApi.d.mts +10 -0
- package/dist/web/lib/settingsApi.d.mts.map +1 -1
- package/dist/web/lib/settingsApi.mjs +45 -2
- package/dist/web/lib/settingsApi.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -443,6 +443,7 @@ exports.railParentIds = require_sessionsStore.railParentIds;
|
|
|
443
443
|
exports.railRestartStore = require_railDialogStore.railRestartStore;
|
|
444
444
|
exports.railSessionStatus = require_sessionRailModel.railSessionStatus;
|
|
445
445
|
exports.railShortcutOrder = require_sessionRailModel.railShortcutOrder;
|
|
446
|
+
exports.readDefaultModel = require_settingsApi.readDefaultModel;
|
|
446
447
|
exports.readDormantTranscriptPage = require_hubApi.readDormantTranscriptPage;
|
|
447
448
|
exports.readHostHome = require_transport.readHostHome;
|
|
448
449
|
exports.readHostPairing = require_hostPairing.readHostPairing;
|
|
@@ -703,6 +704,7 @@ exports.workspaceHostLabelsStore = require_workspacesStore.workspaceHostLabelsSt
|
|
|
703
704
|
exports.workspaceName = require_sessionRailModel.workspaceName;
|
|
704
705
|
exports.workspaceSlotFills = require_pluginRegistry.workspaceSlotFills;
|
|
705
706
|
exports.workspacesStore = require_workspacesStore.workspacesStore;
|
|
707
|
+
exports.writeDefaultModel = require_settingsApi.writeDefaultModel;
|
|
706
708
|
exports.writeImageSettings = require_settingsApi.writeImageSettings;
|
|
707
709
|
exports.writePresetSettings = require_settingsApi.writePresetSettings;
|
|
708
710
|
exports.writeProviderSharing = require_authApi.writeProviderSharing;
|
package/dist/index.d.mts
CHANGED
|
@@ -57,7 +57,7 @@ import { bindSessionActivityRenderer, releaseSessionActivityRenderer, renderSess
|
|
|
57
57
|
import { SessionAsset, StoredSessionAttachment, loadParticipantAvatar, loadSessionAsset, uploadSessionAttachment } from "./web/lib/sessionAsset.mjs";
|
|
58
58
|
import { loadSessionAvatar } from "./web/lib/sessionAvatar.mjs";
|
|
59
59
|
import { bindSessionTranscriptRenderer, releaseSessionTranscriptRenderer, renderSessionTranscript } from "./web/lib/sessionTranscriptRenderer.mjs";
|
|
60
|
-
import { ImageSettingsResult, PresetSettingsResult, ReadConfigResult, ReadRepositorySettingsResult, WriteConfigResult, addPresetLayer, createPreset, deletePreset, listSettingsModels, listSettingsRepositories, readImageSettings, readPresetSettings, readRepositorySettings, readSettingsConfig, removePresetLayer, renamePreset, writeImageSettings, writePresetSettings, writeRepositorySelection, writeSettingsValue } from "./web/lib/settingsApi.mjs";
|
|
60
|
+
import { DefaultModelResult, ImageSettingsResult, PresetSettingsResult, ReadConfigResult, ReadRepositorySettingsResult, WriteConfigResult, addPresetLayer, createPreset, deletePreset, listSettingsModels, listSettingsRepositories, readDefaultModel, readImageSettings, readPresetSettings, readRepositorySettings, readSettingsConfig, removePresetLayer, renamePreset, writeDefaultModel, writeImageSettings, writePresetSettings, writeRepositorySelection, writeSettingsValue } from "./web/lib/settingsApi.mjs";
|
|
61
61
|
import { ACCOUNT_SETTINGS_SECTION, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, SettingsSection, SettingsSectionGroup, SettingsWorkspace, movedSettingsLayer, settingsContributionCopy, settingsSection, settingsSectionGroups, settingsSections } from "./web/lib/settingsSections.mjs";
|
|
62
62
|
import { bindThreadRenderer, releaseThreadRenderer, renderThread } from "./web/lib/threadRenderer.mjs";
|
|
63
63
|
import { GroupUnit, SingleUnit, TimelineUnit, groupSummary, groupTone, timelineUnits } from "./web/lib/timelineGroups.mjs";
|
|
@@ -83,4 +83,4 @@ import { firstSessionWelcomeFor } from "./web/lib/firstSessionWelcome.mjs";
|
|
|
83
83
|
import { DesktopPairingBridge, HostPairingGrant, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, createHostBrowserAccount, createHostPairingChannels, hostPairingPrefix, hostPairingStorageKey, pairHost, pairingJson, pairingPost, pairingRequest, readHostPairing, selectedHostAccount, signingFingerprint } from "./web/lib/hostPairing.mjs";
|
|
84
84
|
import { PairedHost, connectPairedHost, forgetPairedHost, onPairedHostsChanged, pairedHosts } from "./web/lib/pairedHosts.mjs";
|
|
85
85
|
import { useMediaQuery } from "./web/lib/useMediaQuery.mjs";
|
|
86
|
-
export { ACCOUNT_SETTINGS_SECTION, AccountState, ActivityGroup, AddCoordinatorResult, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, BrowserNotificationDeliveryStatus, BrowserNotificationPermissionStatus, BrowserPerformanceEvent, BrowserPerformanceEventName, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerAttachment, ComposerContextAttachment, ComposerFileAttachment, ComposerImageAttachment, ComposerPromptClaim, ComposerSessionState, ComposerTextAttachment, ContextGroup, ContextGroupKind, ContextItem, ContextItemSource, ContextOwner, CreateProfileInput, CreateSessionResult, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, type DashboardRenderers, DashboardRoute, DesktopPairingBridge, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, HostPairingGrant, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledNativeTemplate, InstalledOnboarding, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledSettingsSection, InstalledUserMessageAction, InstalledWebTemplate, IntercomEntry, LEGACY_WORKSPACE_ID, LOCALE_STORAGE_KEY, LeaderConflict, LeaderGroup, LeaderOption, LivePushStatus, LoginFlowResult, LogoutResult, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, MenuClaim, MenuKind, MenuState, Mode, ModeAvailability, ModeSource, ModeToggleAction, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, PairedHost, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, PaletteState, PlannedWritesInput, PoAccountBridge, PoAccountStatus, PoTeam, PoTeamClient, PoTeamGrant, PoTeamRole, PresetSettingsResult, ProfileIdentity, ProvidersResult, QueuedEntry, RailDialogState, RailRestartState, RailSessionInput, ReadConfigResult, ReadRepositorySettingsResult, ReduceSessionOptions, RemoveWorkspaceResult, RemovedSessionsResult, ResolvedFill, RestartSessionResult, RestoreRemovedSessionResult, ResumeDraft, ResumeSessionResult, ResumeTarget, ResumeView, ReviveSessionResult, RpcImage, Selection, SelectionAxis, SessionAsset, SessionGroupsResult, SessionHistoryResult, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SetSessionRoleResult, SettingsDraftState, SettingsDraftTarget, SettingsSection, SettingsSectionGroup, SettingsWorkspace, SettledEntry, SingleUnit, StatusClock, StatusLineInput, StopSessionResult, StoredSessionAttachment, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, TemplateConfiguration, ThemeState, ThreadTranscriptReader, TimelineEntry, TimelineUnit, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolPromptState, TransientTabActions, UPDATE_REQUIRED_REASON, UiState, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginCompositionPhase, WebPluginCompositionState, WebPluginMountState, WebPluginRegistry, WebTemplateCatalog, WebTemplateDecision, WebTemplateDiagnostic, WorkspaceAdmissionDraft, WorkspaceResult, WorkspaceSandboxRequest, WorkspacesResult, WorkspacesState, WriteConfigResult, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginLocales, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionLifecycleSnapshot, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredLocale, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, assistantFailureText, attachComposerCapture, attachComposerContext, attachmentPrompt, availableLocales, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, firstSessionWelcomeFor, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeModeAction, invokeServerMethod, isConnectedModel, isDesktopClient, isHostId, isSelfHostShell, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadParticipantAvatar, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, modeToggle, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSettingsConfig, reconcileStoredLocale, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, recordWebPluginRenderFailure, reduceSession, refreshAccount, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectLocale, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionSetupActionFor, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setShellBridge, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginHostPlatform, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsContributionCopy, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, storedLocale, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, toggleMode, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubLifecycle, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, whenSessionReady, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
|
86
|
+
export { ACCOUNT_SETTINGS_SECTION, AccountState, ActivityGroup, AddCoordinatorResult, AgentInfo, AssistantEntry, AttachPhase, BUILTIN_COMMANDS, BrowserNotificationDeliveryStatus, BrowserNotificationPermissionStatus, BrowserPerformanceEvent, BrowserPerformanceEventName, CLOUD_HUB_POLL_MS, CloudHub, CloudHubFetch, CloudHubOptions, CloudHubSnapshot, CommandInfo, CompletionItem, CompletionKind, CompletionTrigger, ComposerAttachment, ComposerContextAttachment, ComposerFileAttachment, ComposerImageAttachment, ComposerPromptClaim, ComposerSessionState, ComposerTextAttachment, ContextGroup, ContextGroupKind, ContextItem, ContextItemSource, ContextOwner, CreateProfileInput, CreateSessionResult, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, type DashboardRenderers, DashboardRoute, DefaultModelResult, DesktopPairingBridge, DialogDraft, DialogMethod, DialogPromptClaim, DialogRequest, DockTab, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, EditorTextRequest, EnsureHomeCoordinatorResult, EntryKind, FetchItemDetailResult, FileLinkResolver, FileMention, GatewaySettings, GroupUnit, HOST_SLOTS, HistoryPage, HostPairingGrant, ImageSettingsResult, InputSender, InstallDiagnostic, InstallDiagnosticKind, InstalledContextAction, InstalledDashboardTile, InstalledHomeContribution, InstalledHostPluginProvider, InstalledNativeTemplate, InstalledOnboarding, InstalledRepositorySettingsPanel, InstalledSettingsPanel, InstalledSettingsSection, InstalledUserMessageAction, InstalledWebTemplate, IntercomEntry, LEGACY_WORKSPACE_ID, LOCALE_STORAGE_KEY, LeaderConflict, LeaderGroup, LeaderOption, LivePushStatus, LoginFlowResult, LogoutResult, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, MenuClaim, MenuKind, MenuState, Mode, ModeAvailability, ModeSource, ModeToggleAction, ModelChoice, NativeTemplateCatalog, NewSessionDraft, NewSessionState, NoticeEntry, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, PairedHost, PairingAccount, PairingAccountStatus, PairingHost, PairingRequest, PaletteState, PlannedWritesInput, PoAccountBridge, PoAccountStatus, PoTeam, PoTeamClient, PoTeamGrant, PoTeamRole, PresetSettingsResult, ProfileIdentity, ProvidersResult, QueuedEntry, RailDialogState, RailRestartState, RailSessionInput, ReadConfigResult, ReadRepositorySettingsResult, ReduceSessionOptions, RemoveWorkspaceResult, RemovedSessionsResult, ResolvedFill, RestartSessionResult, RestoreRemovedSessionResult, ResumeDraft, ResumeSessionResult, ResumeTarget, ResumeView, ReviveSessionResult, RpcImage, Selection, SelectionAxis, SessionAsset, SessionGroupsResult, SessionHistoryResult, SessionMeta, SessionRailModelInput, SessionSocket, SessionSocketHandlers, SessionState, SessionStats, SessionsState, SetSessionRoleResult, SettingsDraftState, SettingsDraftTarget, SettingsSection, SettingsSectionGroup, SettingsWorkspace, SettledEntry, SingleUnit, StatusClock, StatusLineInput, StopSessionResult, StoredSessionAttachment, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, TemplateConfiguration, ThemeState, ThreadTranscriptReader, TimelineEntry, TimelineUnit, ToolEntry, ToolPromptClaim, ToolPromptInput, ToolPromptState, TransientTabActions, UPDATE_REQUIRED_REASON, UiState, UiTraceRecord, UiTraceSink, UserEntry, UserImage, WebPluginCompositionPhase, WebPluginCompositionState, WebPluginMountState, WebPluginRegistry, WebTemplateCatalog, WebTemplateDecision, WebTemplateDiagnostic, WorkspaceAdmissionDraft, WorkspaceResult, WorkspaceSandboxRequest, WorkspacesResult, WorkspacesState, WriteConfigResult, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginLocales, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionLifecycleSnapshot, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredLocale, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, assistantFailureText, attachComposerCapture, attachComposerContext, attachmentPrompt, availableLocales, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, firstSessionWelcomeFor, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeModeAction, invokeServerMethod, isConnectedModel, isDesktopClient, isHostId, isSelfHostShell, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadParticipantAvatar, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, modeToggle, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDefaultModel, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSettingsConfig, reconcileStoredLocale, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, recordWebPluginRenderFailure, reduceSession, refreshAccount, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectLocale, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionSetupActionFor, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setShellBridge, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginHostPlatform, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsContributionCopy, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, storedLocale, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, toggleMode, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubLifecycle, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, whenSessionReady, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeDefaultModel, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
package/dist/index.mjs
CHANGED
|
@@ -39,7 +39,7 @@ import { toQueuedEntries, toTimelineEntries } from "./web/lib/protocolTimeline.m
|
|
|
39
39
|
import { loadParticipantAvatar, loadSessionAsset, uploadSessionAttachment } from "./web/lib/sessionAsset.mjs";
|
|
40
40
|
import { loadSessionAvatar } from "./web/lib/sessionAvatar.mjs";
|
|
41
41
|
import { LEGACY_WORKSPACE_ID, activityWaitingCount, botCoordinatorBlocked, buildRailWorkspaces, coordinatorHostTargets, liveSessionOptions, pendingSetupView, railSessionStatus, railShortcutOrder, reuseRailWorkspaces, sessionMoveTarget, sessionSetupActionFor, sessionWaitingCount, workspaceName } from "./web/lib/sessionRailModel.mjs";
|
|
42
|
-
import { addPresetLayer, createPreset, deletePreset, listSettingsModels, listSettingsRepositories, readImageSettings, readPresetSettings, readRepositorySettings, readSettingsConfig, removePresetLayer, renamePreset, writeImageSettings, writePresetSettings, writeRepositorySelection, writeSettingsValue } from "./web/lib/settingsApi.mjs";
|
|
42
|
+
import { addPresetLayer, createPreset, deletePreset, listSettingsModels, listSettingsRepositories, readDefaultModel, readImageSettings, readPresetSettings, readRepositorySettings, readSettingsConfig, removePresetLayer, renamePreset, writeDefaultModel, writeImageSettings, writePresetSettings, writeRepositorySelection, writeSettingsValue } from "./web/lib/settingsApi.mjs";
|
|
43
43
|
import { canSaveSettings, plannedSettingsWrites, settingsKeyOf, settingsLockedReason } from "./web/lib/settingsDraft.mjs";
|
|
44
44
|
import { ACCOUNT_SETTINGS_SECTION, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, movedSettingsLayer, settingsContributionCopy, settingsSection, settingsSectionGroups, settingsSections } from "./web/lib/settingsSections.mjs";
|
|
45
45
|
import { groupSummary, groupTone, timelineUnits } from "./web/lib/timelineGroups.mjs";
|
|
@@ -83,4 +83,4 @@ import { CLOUD_HUB_POLL_MS, createCloudHub } from "./web/lib/cloudHub.mjs";
|
|
|
83
83
|
import { createHostBrowserAccount, createHostPairingChannels, hostPairingPrefix, hostPairingStorageKey, pairHost, pairingJson, pairingPost, pairingRequest, readHostPairing, selectedHostAccount, signingFingerprint } from "./web/lib/hostPairing.mjs";
|
|
84
84
|
import { connectPairedHost, forgetPairedHost, onPairedHostsChanged, pairedHosts } from "./web/lib/pairedHosts.mjs";
|
|
85
85
|
import { useMediaQuery } from "./web/lib/useMediaQuery.mjs";
|
|
86
|
-
export { ACCOUNT_SETTINGS_SECTION, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, HOST_SLOTS, LEGACY_WORKSPACE_ID, LOCALE_STORAGE_KEY, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginLocales, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionLifecycleSnapshot, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredLocale, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, assistantFailureText, attachComposerCapture, attachComposerContext, attachmentPrompt, availableLocales, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, firstSessionWelcomeFor, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeModeAction, invokeServerMethod, isConnectedModel, isDesktopClient, isHostId, isSelfHostShell, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadParticipantAvatar, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, modeToggle, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSettingsConfig, reconcileStoredLocale, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, recordWebPluginRenderFailure, reduceSession, refreshAccount, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectLocale, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionSetupActionFor, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setShellBridge, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginHostPlatform, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsContributionCopy, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, storedLocale, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, toggleMode, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubLifecycle, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, whenSessionReady, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
|
86
|
+
export { ACCOUNT_SETTINGS_SECTION, BUILTIN_COMMANDS, CLOUD_HUB_POLL_MS, DEFAULT_REPOSITORY_SETTINGS_SECTION, DEFAULT_SETTINGS_SECTION, DashboardRendererProvider, EMPTY_NEW_SESSION_DRAFT, EMPTY_SETTINGS_DRAFT, HOST_SLOTS, LEGACY_WORKSPACE_ID, LOCALE_STORAGE_KEY, MAX_COMPLETION_ITEMS, MAX_COMPOSER_ATTACHMENTS, MAX_COMPOSER_IMAGE_BYTES, MAX_COMPOSER_TEXT_BYTES, MAX_COMPOSER_TOTAL_IMAGE_BYTES, MAX_COMPOSER_TOTAL_TEXT_BYTES, MAX_COMPOSER_UPLOAD_BYTES, PACKAGED_MODES, PACKAGED_SELECTION_AXES, PLUGINS_PAGE_ID, PLUGINS_ROUTE, TEAM_PAGE_ID, TEAM_ROUTE, TRIGGER_CHARS, UPDATE_REQUIRED_REASON, abbreviateCwd, abortCommand, abortRun, accountStore, acquireModelContext, activateWebPluginHost, activateWebPluginSession, activateWebPluginWorkspace, activeSessionId, activityGroupSlot, activityGroups, activityWaitingCount, addCoordinator, addDashboardCoordinator, addPresetLayer, admitDashboardWorkspace, admitDeclaredDashboardWorkspaces, admitWorkspace, allPluginLocales, allPluginThemes, ansiSegments, answerDialogConfirm, answerDialogValue, answerLogin, appendComposerDraft, appendComposerQuote, appendQueued, appendUserPrompt, applyCaptureFrame, applyHistoryPage, applyProtocolQueue, applyProtocolTranscript, applySelectionAnswer, applySessionBacklog, applySessionFrame, applySessionInteractions, applySessionLifecycle, applySessionLifecycleSnapshot, applySessionRemoved, applySessionUpsert, applySessionsSnapshot, applyStoredLocale, applyStoredTheme, applyThreadFrame, applyThreadTranscriptFrame, applyWorkspaceRemoved, applyWorkspaceUpsert, applyWorkspacesSnapshot, assistantFailureText, attachComposerCapture, attachComposerContext, attachmentPrompt, availableLocales, availableThemes, backdropId, beginSessionReplay, beginSessionTransfer, bindAccount, bindBundledNativeTemplates, bindBundledWebTemplates, bindDashboardTranscriptWatcher, bindFileLinkModes, bindHistoryReader, bindHostTransport, bindSessionActivityRenderer, bindSessionFileLinkModes, bindSessionProtocol, bindSessionTranscriptRenderer, bindSessionWebWorkspace, bindTeam, bindThreadReader, bindThreadRenderer, bindTransport, bindWebPluginCompositions, botCoordinatorBlocked, browserNotificationPermission, browserReadyDuration, buildRailWorkspaces, builtinCommandFrame, bundledNativeTemplate, canSaveSettings, cancelDialog, cancelLogin, claimDialogMenu, clearCommand, clearComposerState, clearDialog, clearPendingMenu, clearQueueCommand, clearQueuedEntries, clearQueuedMessages, closeCoordinatorProfile, closeMoveSessionDialog, closeNewSession, closePalette, closeResumeDialog, closeSessionSharing, closeTransientTab, collectNativeTemplates, collectWebTemplates, commandCompletions, compactCommand, completeSessionTransfer, composerStore, composerSubmissionStore, configuredBackdrop, configuredTemplate, connectPairedHost, contextGroups, coordinatorHostTargets, createBotWithProfile, createCloudHub, createDashboardTransport, createGeneralSession, createGeneralSessionRequest, createHostBrowserAccount, createHostPairingChannels, createPagedTranscript, createPlainSession, createPreset, createProfile, createProtocolHubSocket, createProtocolLink, createSession, createToolCompletionTabs, createWebPluginRegistry, createWorkspaceSession, dashboardRouteFrom, dashboardStateFor, dashboardTileFills, dashboardTileFillsAcrossHosts, defaultHostId, deletePreset, deleteQueuedMessage, deleteSessionGroup, deliverBrowserNotification, dialogCancelled, dialogConfirmed, dialogDraftStore, dialogValue, disableBrowserTelemetry, disableLivePush, discardSettingsDraft, disconnectCaptures, discoverWorkspaceAdmission, discoverWorkspaces, dispatchChannelFrame, dispatchHeldSessionChannel, disposeModelContextAdapter, dockTabFor, dropComposerState, dropPluginSessionData, dropSessionStore, dropThreads, dropTransientTabs, emptySelection, enableLivePush, endSessionReplay, enqueueAutomaticCommand, ensureHomeCoordinator, ensureTemplateConfiguration, fetchContextItemDetail, fileCompletions, fileLinkFor, fileLinkMentions, fileTabForPath, findTransientTab, firstSessionWelcomeFor, flushBrowserTelemetry, flushUiTrace, focusPrompt, focusWorkspaceWebPlugins, followUpCommand, forgetPairedHost, generalSessionDraftKey, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, getWorkspace, groupSummary, groupTone, hasSessionProtocol, heldSessionChannels, heldThreads, heldVoiceSessions, holdSessionChannels, holdVoiceSession, homeAppEntries, homePageRoute, hostPairingPrefix, hostPairingStorageKey, hostPluginProviders, hostSlotFills, hostSlotFillsAcrossHosts, imagesFromContent, inactiveTotal, initialSessionState, inlineTextBytes, installBrowserErrorReporting, installBundledWebPlugins, installHostWebPlugins, installSessionWebPlugins, installWebPlugins, installWorkspaceWebPlugins, installedWebPlugins, invokeModeAction, invokeServerMethod, isConnectedModel, isDesktopClient, isHostId, isSelfHostShell, isSupportedImageMimeType, leaderConflicts, leaderGroup, legacyHomeAppFills, listDirectory, listLaunchProfiles, listPoFolders, listProviders, listRemovedSessions, listSessionHistory, listSessions, listSettingsModels, listSettingsRepositories, listWorkspaceHistory, listWorkspaces, livePushStatus, liveSessionOptions, loadModelChoices, loadParticipantAvatar, loadSessionAsset, loadSessionAvatar, loadSettingsDraft, localHostId, logoutProvider, markSocketClosed, markToolPromptFailed, markUpdateRequired, mediaKindFor, mentionableSessions, menuStore, mergeScopedPlugins, modeToggle, moveDashboardSession, moveSession, movedSettingsLayer, nativeTemplateCatalog, newSessionDraftStore, newSessionStore, noSessions, noteRender, noteStoreUpdate, notifyHubConnected, onCaptureStatus, onComposerSubmitted, onHostConnected, onHubConnected, onPairedHostsChanged, onSealedSignInRequired, openGeneralSession, openMoveSessionDialog, openNewSession, openPalette, openResumeDialog, openSessionSharing, openTransientTab, ownerLabel, ownersOf, pairHost, pairedHosts, pairingJson, pairingPost, pairingRequest, paletteCommands, paletteStore, parseDashboardTileData, parseFileMentions, parseHostKey, parseSelection, pendingCaptureSessions, pendingMenuFor, pendingSetupView, personaInitials, plannedSettingsWrites, pluginActivityGroups, pluginContextActions, pluginDockFaces, pluginFileLinks, pluginHomeContributions, pluginLeaderBindings, pluginMcpAppRenderer, pluginModes, pluginOnboarding, pluginRepositorySettingsPanels, pluginSelectionAxes, pluginSessionContext, pluginSettingsPanels, pluginSettingsSections, pluginSlotFills, pluginSlotProps, pluginThemes, pluginToolRenderer, pluginUserMessageActions, pluginsAtScope, prependHistory, projectedGroups, promoteQueuedCommand, promoteQueuedMessage, promptCommand, protocolSocketUrl, publishComposerSubmission, qualifyHostId, qualifyHostKey, queueFollowUp, queueFollowUpWithAck, railDialogStore, railParentIds, railRestartStore, railSessionStatus, railShortcutOrder, readDefaultModel, readDormantTranscriptPage, readHostHome, readHostPairing, readImageSettings, readLogin, readPresetSettings, readProviderSharing, readRepositorySettings, readSettingsConfig, reconcileStoredLocale, reconcileStoredTheme, recordBrowserError, recordBrowserPerformance, recordBrowserUiTrace, recordWebPluginRenderFailure, reduceSession, refreshAccount, refreshSessionFacts, refreshSessionSelection, refreshSessionStats, refreshTemplateConfiguration, refreshWebPluginCompositions, registerPromptInput, registeredWebPluginHostIds, releaseDialogMenu, releaseProtocolTranscript, releaseSessionActivityRenderer, releaseSessionTranscriptRenderer, releaseThreadRenderer, releaseTransport, reloadWebTemplateDecision, rememberHostChannelKey, rememberedHostChannelKey, removeHostWebPlugins, removePresetLayer, removeQueuedCommand, removeQueuedEntry, removeSessionWebPlugins, removeWorkspace, removeWorkspaceWebPlugins, renamePreset, renameSession, renameSessionGroup, renderRegion, renderSessionActivity, renderSessionTranscript, renderThread, replaceQueuedEntries, requestBrowserNotificationPermission, requestLatestHistory, requestNewerHistory, requestOlderHistory, requestSessionProtocolFrame, resetComposerStore, resetMenuStore, resetNewSessionStore, resetRailDialogStore, resetSealedSessions, resetSessionStore, resetSessionStores, resetSessions, resetThreads, resetToolPromptStore, resetTransientTabs, resetWebPlugins, resetWorkspaceAdmission, resetWorkspaces, resolveBackdrop, resolveModes, resolveNativeTemplate, resolveParentId, resolveWebTemplate, restartDashboardSession, restartSession, restoreComposerDrafts, restoreLivePushRegistration, restoreRemovedSession, restoreRemovedThread, restoreSealedSession, resubscribeThreads, resumeDashboardSession, resumeDraftStore, resumeQueueCommand, resumeQueuedMessages, resumeSession, resumeWorkspaceSession, retryWebPluginCompositions, reuseRailWorkspaces, reviveSession, rewindCommand, rewindToMessage, runCommand, runningCount, sameRailEntries, sameRailEntry, saveBackdropDefault, saveComposerDrafts, saveCoordinatorProfile, saveSettingsDraft, saveTemplateDefault, sealedHttpSession, sealedProtocolSession, sealedSession, searchDirectories, searchSessionFiles, seedHistoryCursor, selectFastMode, selectLocale, selectModel, selectTheme, selectThinkingLevel, selectWorkspace, selectedHostAccount, selectionAxes, selectionStatuses, sendFrame, sendFrameWithAck, sendHubFrame, sendSessionProtocolFrame, sessionModes, sessionMoveTarget, sessionSetupActionFor, sessionStatusClock, sessionStatusLine, sessionStoreFor, sessionToolRenderer, sessionWaitingCount, sessionWebPluginsInstalled, sessionsStore, setActiveSession, setAgentLock, setBotActAsCoordinator, setCoordinatorProfile, setCoordinatorProfileForm, setDefaultHostId, setDockOpen, setDockTab, setHasNewerHistory, setModelCommand, setNewSessionName, setNewSessionProfile, setPalettePath, setPendingMenu, setResumeView, setSessionGroups, setSessionNameCommand, setSessionRole, setSessionStreamed, setSettingsDraft, setShellBridge, setThinkingLevelCommand, setTransientTabSession, setUiTraceSink, setWebPluginHostPlatform, setWebPluginLoadDiagnostics, setWorkspaceHostLabel, setWorkspaceInstructions, setWorkspaceSandbox, settingsContributionCopy, settingsDraftKey, settingsDraftStore, settingsKeyOf, settingsLockedReason, settingsSection, settingsSectionGroups, settingsSections, signOutAccount, signingFingerprint, slotFills, splitHostId, startLogin, startPluginDefinitions, startWebPlugins, steerCommand, stopSession, storedLocale, streamedSessions, stripAnsi, submitCapture, submitComposerDraft, submitMessage, submitMessageWithAck, subscribeActivitySources, subscribeThread, subscribeWebPluginRegistry, summariseArgs, summaryValueEqual, tabComposerContext, takeComposerDraft, teamPageUrl, teamStore, templateStore, textFromContent, themeStore, threadStoreKey, timelineUnits, toQueuedEntries, toTimelineEntries, toggleMode, togglePalette, toolMessageProps, toolPromptClaim, toolPromptStore, totalTokens, traceProfilerRender, traceStore, transientTabsOf, transientTabsStore, transportForHost, triggerTokenAt, uiStore, unsubscribeThread, updateComposerState, updateCoordinatorProfileDraft, updateDialogDraft, updateResumeDraft, updateWorkspaceAdmission, uploadSessionAttachment, useActiveSession, useActiveSessionMeta, useActivityGroups, useComposerState, useDashboardRoute, useDashboardState, useDialogDraft, useDockFaceBadges, useDockFaces, useFileLinks, useHasOlderHistory, useMediaQuery, useNoSessions, useOpenTab, usePluginSlotProps, useRailEntries, useRailEntry, useRenderTrace, useTemplateConfiguration, useToolPrompt, useTransientTabs, useWebPluginRegistry, validateComposerCapture, waitForSession, watchDashboardTranscript, watchHubAccess, watchHubLifecycle, watchHubThread, webPluginCompositionStore, webPluginDiagnostics, webPluginMountState, webPluginRegistryForHost, webPluginRegistryRevision, webPluginsInstalled, webTabs, webTemplateCatalog, whenSessionReady, workspaceAdmissionStore, workspaceHostLabelsStore, workspaceName, workspaceSlotFills, workspacesStore, writeDefaultModel, writeImageSettings, writePresetSettings, writeProviderSharing, writeRepositorySelection, writeSettingsValue };
|
package/dist/types/settings.cjs
CHANGED
|
@@ -3,12 +3,14 @@ const SETTINGS_CONFIG_API_ROUTE = "/api/settings";
|
|
|
3
3
|
const SETTINGS_VALUE_API_ROUTE = "/api/settings/value";
|
|
4
4
|
const SETTINGS_REPOSITORIES_API_ROUTE = "/api/settings/repositories";
|
|
5
5
|
const SETTINGS_MODELS_API_ROUTE = "/api/plugins/po/models";
|
|
6
|
+
const SETTINGS_DEFAULT_MODEL_API_ROUTE = "/api/plugins/po/default-model";
|
|
6
7
|
const SETTINGS_REPOSITORY_API_ROUTE = "/api/settings/repository";
|
|
7
8
|
const SETTINGS_REPOSITORY_SELECTION_API_ROUTE = "/api/settings/repository/selection";
|
|
8
9
|
const SETTINGS_IMAGES_API_ROUTE = "/api/settings/images";
|
|
9
10
|
const SETTINGS_PRESETS_API_ROUTE = "/api/settings/presets";
|
|
10
11
|
//#endregion
|
|
11
12
|
exports.SETTINGS_CONFIG_API_ROUTE = SETTINGS_CONFIG_API_ROUTE;
|
|
13
|
+
exports.SETTINGS_DEFAULT_MODEL_API_ROUTE = SETTINGS_DEFAULT_MODEL_API_ROUTE;
|
|
12
14
|
exports.SETTINGS_IMAGES_API_ROUTE = SETTINGS_IMAGES_API_ROUTE;
|
|
13
15
|
exports.SETTINGS_MODELS_API_ROUTE = SETTINGS_MODELS_API_ROUTE;
|
|
14
16
|
exports.SETTINGS_PRESETS_API_ROUTE = SETTINGS_PRESETS_API_ROUTE;
|
|
@@ -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 effective preset, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n /** True when this workspace definition replaces a host preset of the same name. */\n overridesHost?: boolean;\n /** True when a workspace reads this preset from the host file because it has none of its own. */\n inherited?: boolean;\n}\n\n/** Settings > Presets: your presets, 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 /** sha256 of the mount's presets file, empty when absent. */\n hash: string;\n /** The host token, used when adding to an inherited host default. */\n hostHash?: string;\n /** The token an add to the default preset (`name: ''`) checks: the host file's when that default is inherited. */\n defaultHash?: string;\n file?: string;\n writtenFile?: string;\n}\n\nexport interface SettingsPresetsWriteRequest {\n scope?: PresetScope;\n defaultPreset: string;\n expectedHash: string;\n}\n/** Preset writes use the admitted workspace mount, never a caller-supplied path. */\nexport type PresetScope = 'host' | `workspace:${string}`;\n\nexport interface PresetWriteRequest {\n scope: PresetScope;\n expectedHash: string;\n name: string;\n}\n\nexport interface PresetCreateRequest extends PresetWriteRequest {\n description: string;\n layers?: string[];\n}\n\nexport interface PresetRenameRequest extends PresetWriteRequest {\n newName: string;\n}\n\n/** A caller-supplied curated definition. Existing layers are never modified. */\nexport interface PresetLayerDefinition {\n packages?: Array<string | { name: string; optional?: boolean; config?: Record<string, unknown> }>;\n extensions?: string[];\n hookGroups?: string[];\n}\n\nexport interface PresetLayerRequest extends PresetWriteRequest {\n /** Set name to an empty string to add to the scope's default preset. */\n layer: string;\n definition?: PresetLayerDefinition;\n}\n\nexport type PresetOperation = 'create' | 'rename' | 'delete' | 'default' | 'add-layer' | 'remove-layer';\n\nexport interface PresetReference {\n file: string;\n key: string;\n}\n\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/** Host settings wire values. */\nexport type SettingsWireScope = 'host' | 'repository';\nexport type SettingsWireOrigin = 'host' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'host' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** Host settings wire values. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** Host settings wire values. */\n hashes: { host: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a preset, 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 presets: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n preset: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n preset?: 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 /** Present when a preset cannot be renamed or deleted while referenced. */\n references?: PresetReference[];\n /** On a stale write, the hash the target file actually holds now. */\n hash?: string;\n}\n"],"mappings":";AAWA,MAAa,4BAA4B;AACzC,MAAa,2BAA2B;AACxC,MAAa,kCAAkC;AAC/C,MAAa,4BAA4B;AACzC,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}
|
|
1
|
+
{"version":3,"file":"settings.cjs","names":[],"sources":["../../src/types/settings.ts"],"sourcesContent":["/**\n * The settings REST surface, as both halves see it.\n *\n * Settings are host routes rather than a package API because the page is not\n * scoped to a session: it names a repository instead, and a plugin's browser\n * code may not reach the hub's own client helpers. The host reads and writes\n * the config file on everyone's behalf and hands each contributed field the\n * result through props.\n */\nimport type { RepositorySettingsRepository } from '@agimon-ai/po-core/web';\n\nexport const SETTINGS_CONFIG_API_ROUTE = '/api/settings';\nexport const SETTINGS_VALUE_API_ROUTE = '/api/settings/value';\nexport const SETTINGS_REPOSITORIES_API_ROUTE = '/api/settings/repositories';\nexport const SETTINGS_MODELS_API_ROUTE = '/api/plugins/po/models';\nexport const SETTINGS_DEFAULT_MODEL_API_ROUTE = '/api/plugins/po/default-model';\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 effective preset, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n /** True when this workspace definition replaces a host preset of the same name. */\n overridesHost?: boolean;\n /** True when a workspace reads this preset from the host file because it has none of its own. */\n inherited?: boolean;\n}\n\n/** Settings > Presets: your presets, 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 /** sha256 of the mount's presets file, empty when absent. */\n hash: string;\n /** The host token, used when adding to an inherited host default. */\n hostHash?: string;\n /** The token an add to the default preset (`name: ''`) checks: the host file's when that default is inherited. */\n defaultHash?: string;\n file?: string;\n writtenFile?: string;\n}\n\nexport interface SettingsPresetsWriteRequest {\n scope?: PresetScope;\n defaultPreset: string;\n expectedHash: string;\n}\n/** Preset writes use the admitted workspace mount, never a caller-supplied path. */\nexport type PresetScope = 'host' | `workspace:${string}`;\n\nexport interface PresetWriteRequest {\n scope: PresetScope;\n expectedHash: string;\n name: string;\n}\n\nexport interface PresetCreateRequest extends PresetWriteRequest {\n description: string;\n layers?: string[];\n}\n\nexport interface PresetRenameRequest extends PresetWriteRequest {\n newName: string;\n}\n\n/** A caller-supplied curated definition. Existing layers are never modified. */\nexport interface PresetLayerDefinition {\n packages?: Array<string | { name: string; optional?: boolean; config?: Record<string, unknown> }>;\n extensions?: string[];\n hookGroups?: string[];\n}\n\nexport interface PresetLayerRequest extends PresetWriteRequest {\n /** Set name to an empty string to add to the scope's default preset. */\n layer: string;\n definition?: PresetLayerDefinition;\n}\n\nexport type PresetOperation = 'create' | 'rename' | 'delete' | 'default' | 'add-layer' | 'remove-layer';\n\nexport interface PresetReference {\n file: string;\n key: string;\n}\n\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/** Host settings wire values. */\nexport type SettingsWireScope = 'host' | 'repository';\nexport type SettingsWireOrigin = 'host' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'host' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** Host settings wire values. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** Host settings wire values. */\n hashes: { host: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a preset, 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 presets: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n preset: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n preset?: 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 /** Present when a preset cannot be renamed or deleted while referenced. */\n references?: PresetReference[];\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,mCAAmC;AAChD,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}
|
|
@@ -4,6 +4,7 @@ export declare const SETTINGS_CONFIG_API_ROUTE = "/api/settings";
|
|
|
4
4
|
export declare const SETTINGS_VALUE_API_ROUTE = "/api/settings/value";
|
|
5
5
|
export declare const SETTINGS_REPOSITORIES_API_ROUTE = "/api/settings/repositories";
|
|
6
6
|
export declare const SETTINGS_MODELS_API_ROUTE = "/api/plugins/po/models";
|
|
7
|
+
export declare const SETTINGS_DEFAULT_MODEL_API_ROUTE = "/api/plugins/po/default-model";
|
|
7
8
|
export declare const SETTINGS_REPOSITORY_API_ROUTE = "/api/settings/repository";
|
|
8
9
|
export declare const SETTINGS_REPOSITORY_SELECTION_API_ROUTE = "/api/settings/repository/selection";
|
|
9
10
|
export declare const SETTINGS_IMAGES_API_ROUTE = "/api/settings/images";
|
|
@@ -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;;EAER;;EAEA;;;iBAIe;EACf;EACA,SAAS;;EAET;;EAEA;;EAEA;;EAEA;EACA;EACA;;iBAGe;EACf,QAAQ;EACR;EACA;;;YAGU;iBAEK;EACf,OAAO;EACP;EACA;;iBAGe,4BAA4B;EAC3C;EACA;;iBAGe,4BAA4B;EAC3C;;;iBAIe;EACf,WAAW;IAAiB;IAAc;IAAoB,SAAS;;EACvE;EACA;;iBAGe,2BAA2B;;EAE1C;EACA,aAAa;;YAGH;iBAEK;EACf;EACA;;;;;;;YAQU;;YAGA,oBAAoB,QAAQ;;YAG5B;;YAGA;;YAGA;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;;;;iBAIT;;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,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;;EAErB;IACE,QAAQ;IACR,SAAS;IACT,SAAS;;;iBAII;EACf;EACA;EACA;;;iBAIe;EACf;EACA;EACA,SAAS;;;iBAIM;EACf;;EAEA,aAAa;;EAEb"}
|
|
1
|
+
{"version":3,"file":"settings.d.mts","names":[],"sources":["../../src/types/settings.ts"],"mappings":";;qBAWa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;;;;;;;iBAQI;;EAEf;;EAEA;;EAEA;EACA;;iBAGe;EACf;EACA;;;iBAIe;EACf;EACA;;;iBAIe;EACf;EACA;EACA,QAAQ;;EAER;;EAEA;;;iBAIe;EACf;EACA,SAAS;;EAET;;EAEA;;EAEA;;EAEA;EACA;EACA;;iBAGe;EACf,QAAQ;EACR;EACA;;;YAGU;iBAEK;EACf,OAAO;EACP;EACA;;iBAGe,4BAA4B;EAC3C;EACA;;iBAGe,4BAA4B;EAC3C;;;iBAIe;EACf,WAAW;IAAiB;IAAc;IAAoB,SAAS;;EACvE;EACA;;iBAGe,2BAA2B;;EAE1C;EACA,aAAa;;YAGH;iBAEK;EACf;EACA;;;;;;;YAQU;;YAGA,oBAAoB,QAAQ;;YAG5B;;YAGA;;YAGA;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;;;;iBAIT;;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,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;;EAErB;IACE,QAAQ;IACR,SAAS;IACT,SAAS;;;iBAII;EACf;EACA;EACA;;;iBAIe;EACf;EACA;EACA,SAAS;;;iBAIM;EACf;;EAEA,aAAa;;EAEb"}
|
package/dist/types/settings.mjs
CHANGED
|
@@ -3,11 +3,12 @@ const SETTINGS_CONFIG_API_ROUTE = "/api/settings";
|
|
|
3
3
|
const SETTINGS_VALUE_API_ROUTE = "/api/settings/value";
|
|
4
4
|
const SETTINGS_REPOSITORIES_API_ROUTE = "/api/settings/repositories";
|
|
5
5
|
const SETTINGS_MODELS_API_ROUTE = "/api/plugins/po/models";
|
|
6
|
+
const SETTINGS_DEFAULT_MODEL_API_ROUTE = "/api/plugins/po/default-model";
|
|
6
7
|
const SETTINGS_REPOSITORY_API_ROUTE = "/api/settings/repository";
|
|
7
8
|
const SETTINGS_REPOSITORY_SELECTION_API_ROUTE = "/api/settings/repository/selection";
|
|
8
9
|
const SETTINGS_IMAGES_API_ROUTE = "/api/settings/images";
|
|
9
10
|
const SETTINGS_PRESETS_API_ROUTE = "/api/settings/presets";
|
|
10
11
|
//#endregion
|
|
11
|
-
export { 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 };
|
|
12
|
+
export { SETTINGS_CONFIG_API_ROUTE, SETTINGS_DEFAULT_MODEL_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 };
|
|
12
13
|
|
|
13
14
|
//# sourceMappingURL=settings.mjs.map
|
|
@@ -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 effective preset, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n /** True when this workspace definition replaces a host preset of the same name. */\n overridesHost?: boolean;\n /** True when a workspace reads this preset from the host file because it has none of its own. */\n inherited?: boolean;\n}\n\n/** Settings > Presets: your presets, 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 /** sha256 of the mount's presets file, empty when absent. */\n hash: string;\n /** The host token, used when adding to an inherited host default. */\n hostHash?: string;\n /** The token an add to the default preset (`name: ''`) checks: the host file's when that default is inherited. */\n defaultHash?: string;\n file?: string;\n writtenFile?: string;\n}\n\nexport interface SettingsPresetsWriteRequest {\n scope?: PresetScope;\n defaultPreset: string;\n expectedHash: string;\n}\n/** Preset writes use the admitted workspace mount, never a caller-supplied path. */\nexport type PresetScope = 'host' | `workspace:${string}`;\n\nexport interface PresetWriteRequest {\n scope: PresetScope;\n expectedHash: string;\n name: string;\n}\n\nexport interface PresetCreateRequest extends PresetWriteRequest {\n description: string;\n layers?: string[];\n}\n\nexport interface PresetRenameRequest extends PresetWriteRequest {\n newName: string;\n}\n\n/** A caller-supplied curated definition. Existing layers are never modified. */\nexport interface PresetLayerDefinition {\n packages?: Array<string | { name: string; optional?: boolean; config?: Record<string, unknown> }>;\n extensions?: string[];\n hookGroups?: string[];\n}\n\nexport interface PresetLayerRequest extends PresetWriteRequest {\n /** Set name to an empty string to add to the scope's default preset. */\n layer: string;\n definition?: PresetLayerDefinition;\n}\n\nexport type PresetOperation = 'create' | 'rename' | 'delete' | 'default' | 'add-layer' | 'remove-layer';\n\nexport interface PresetReference {\n file: string;\n key: string;\n}\n\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/** Host settings wire values. */\nexport type SettingsWireScope = 'host' | 'repository';\nexport type SettingsWireOrigin = 'host' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'host' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** Host settings wire values. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** Host settings wire values. */\n hashes: { host: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a preset, 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 presets: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n preset: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n preset?: 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 /** Present when a preset cannot be renamed or deleted while referenced. */\n references?: PresetReference[];\n /** On a stale write, the hash the target file actually holds now. */\n hash?: string;\n}\n"],"mappings":";AAWA,MAAa,4BAA4B;AACzC,MAAa,2BAA2B;AACxC,MAAa,kCAAkC;AAC/C,MAAa,4BAA4B;AACzC,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}
|
|
1
|
+
{"version":3,"file":"settings.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_DEFAULT_MODEL_API_ROUTE = '/api/plugins/po/default-model';\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 effective preset, with its layers in load order. */\nexport interface SettingsPreset {\n name: string;\n description: string;\n layers: SettingsPresetLayer[];\n /** True when this workspace definition replaces a host preset of the same name. */\n overridesHost?: boolean;\n /** True when a workspace reads this preset from the host file because it has none of its own. */\n inherited?: boolean;\n}\n\n/** Settings > Presets: your presets, 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 /** sha256 of the mount's presets file, empty when absent. */\n hash: string;\n /** The host token, used when adding to an inherited host default. */\n hostHash?: string;\n /** The token an add to the default preset (`name: ''`) checks: the host file's when that default is inherited. */\n defaultHash?: string;\n file?: string;\n writtenFile?: string;\n}\n\nexport interface SettingsPresetsWriteRequest {\n scope?: PresetScope;\n defaultPreset: string;\n expectedHash: string;\n}\n/** Preset writes use the admitted workspace mount, never a caller-supplied path. */\nexport type PresetScope = 'host' | `workspace:${string}`;\n\nexport interface PresetWriteRequest {\n scope: PresetScope;\n expectedHash: string;\n name: string;\n}\n\nexport interface PresetCreateRequest extends PresetWriteRequest {\n description: string;\n layers?: string[];\n}\n\nexport interface PresetRenameRequest extends PresetWriteRequest {\n newName: string;\n}\n\n/** A caller-supplied curated definition. Existing layers are never modified. */\nexport interface PresetLayerDefinition {\n packages?: Array<string | { name: string; optional?: boolean; config?: Record<string, unknown> }>;\n extensions?: string[];\n hookGroups?: string[];\n}\n\nexport interface PresetLayerRequest extends PresetWriteRequest {\n /** Set name to an empty string to add to the scope's default preset. */\n layer: string;\n definition?: PresetLayerDefinition;\n}\n\nexport type PresetOperation = 'create' | 'rename' | 'delete' | 'default' | 'add-layer' | 'remove-layer';\n\nexport interface PresetReference {\n file: string;\n key: string;\n}\n\n/**\n * Which settings tier a read or write is about: `host` is this machine's config file and\n * `repository` the workspace's. `global` is reserved for the member tier: it has its own issuer\n * endpoint and never travels on the host settings API.\n */\nexport type SettingsScope = 'host' | 'repository' | 'global';\n\n/** The two config files the host settings API reads and writes. */\nexport type SettingsFileScope = Exclude<SettingsScope, 'global'>;\n\n/** Where the effective value came from, or that no file set it. */\nexport type SettingsOrigin = 'host' | 'repository' | 'default';\n\n/** Which scopes a key may be written at, as the merge policy decides. */\nexport type SettingsKeyScope = 'host' | 'repository' | 'both';\n\n/** Host settings wire values. */\nexport type SettingsWireScope = 'host' | 'repository';\nexport type SettingsWireOrigin = 'host' | 'repository' | 'default';\nexport type SettingsWireKeyScope = 'host' | 'repository' | 'both';\n\n/** One repository the picker offers. */\nexport type SettingsRepository = RepositorySettingsRepository;\n\n/** One model the machine can actually use, for a field declaring optionsFrom: 'models'. */\nexport interface SettingsModel {\n /** `provider/model-id`, which is what the config file holds. */\n value: string;\n label: string;\n group: string;\n}\n\n/** One key's current state, keyed by its dotted path. */\nexport interface SettingsValueView {\n /** The effective value, stringified for display; absent when nothing set it. */\n value?: string;\n origin: SettingsOrigin;\n /** Which scopes may hold this key. A field outside the chosen scope is read-only. */\n scope: SettingsKeyScope;\n}\n\n/** What the read route answers with. */\nexport interface SettingsConfigView {\n /** Empty when the page has no repository in view; the host half still applies. */\n repoRoot: string;\n /** Keyed by dotted key path, for every key the page asked about. */\n values: Record<string, SettingsValueView>;\n /** Per-scope file identity, so a write can prove which bytes it read. */\n hashes: Record<SettingsFileScope, string>;\n}\n\n/** One key's state as the host settings API sends it. */\nexport interface SettingsWireValueView {\n value?: string;\n origin: SettingsWireOrigin;\n scope: SettingsWireKeyScope;\n}\n\n/** Host settings wire values. */\nexport interface SettingsWireConfigView {\n repoRoot: string;\n values: Record<string, SettingsWireValueView>;\n /** Host settings wire values. */\n hashes: { host: string; repository: string };\n}\n\n/** What the write route takes. `value: null` clears the key at that scope. */\nexport interface SettingsWriteRequest {\n /** Required for a repository write; ignored, and may be empty, for a host one. */\n repoRoot: string;\n scope: SettingsFileScope;\n keyPath: readonly string[];\n value: string | number | null;\n /** The hash of the target file when the page read it. */\n expectedHash: string;\n}\n\n/** One atomic save, validated as a whole before replacing the configuration file. */\nexport interface SettingsBatchWriteRequest {\n repoRoot: string;\n scope: SettingsFileScope;\n edits: readonly Pick<SettingsWriteRequest, 'keyPath' | 'value'>[];\n expectedHash: string;\n}\n\n/** A named option from one effective repository catalog. */\nexport interface RepositoryCatalogOption {\n name: string;\n description?: string;\n /** Present for a domain alias, naming the entries it expands to. */\n expandsTo?: readonly string[];\n /** Present for a preset, 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 presets: readonly RepositoryCatalogOption[];\n domains: readonly RepositoryCatalogOption[];\n profiles: readonly RepositoryCatalogOption[];\n };\n selection: {\n preset: RepositorySelectionValue<string>;\n domains: RepositorySelectionValue<readonly string[]>;\n profile: RepositorySelectionValue<string>;\n };\n}\n\nexport interface RepositorySelectionChanges {\n preset?: 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 /** Present when a preset cannot be renamed or deleted while referenced. */\n references?: PresetReference[];\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,mCAAmC;AAChD,MAAa,gCAAgC;AAC7C,MAAa,0CAA0C;AACvD,MAAa,4BAA4B;AACzC,MAAa,6BAA6B"}
|
package/dist/types.cjs
CHANGED
|
@@ -41,6 +41,7 @@ exports.SESSION_FILE_EXPECTED_SHA256_HEADER = require_media.SESSION_FILE_EXPECTE
|
|
|
41
41
|
exports.SESSION_FILE_ROUTE = require_media.SESSION_FILE_ROUTE;
|
|
42
42
|
exports.SESSION_FILE_SHA256_HEADER = require_media.SESSION_FILE_SHA256_HEADER;
|
|
43
43
|
exports.SETTINGS_CONFIG_API_ROUTE = require_settings.SETTINGS_CONFIG_API_ROUTE;
|
|
44
|
+
exports.SETTINGS_DEFAULT_MODEL_API_ROUTE = require_settings.SETTINGS_DEFAULT_MODEL_API_ROUTE;
|
|
44
45
|
exports.SETTINGS_IMAGES_API_ROUTE = require_settings.SETTINGS_IMAGES_API_ROUTE;
|
|
45
46
|
exports.SETTINGS_MODELS_API_ROUTE = require_settings.SETTINGS_MODELS_API_ROUTE;
|
|
46
47
|
exports.SETTINGS_PRESETS_API_ROUTE = require_settings.SETTINGS_PRESETS_API_ROUTE;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, MODE_ENTRY_TYPE, ModeActionProjection, ModeProjection, ModeRecordProjection, 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 { PresetCreateRequest, PresetLayerDefinition, PresetLayerRequest, PresetOperation, PresetReference, PresetRenameRequest, PresetScope, PresetWriteRequest, 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";
|
|
3
|
+
import { PresetCreateRequest, PresetLayerDefinition, PresetLayerRequest, PresetOperation, PresetReference, PresetRenameRequest, PresetScope, PresetWriteRequest, RepositoryCatalogOption, RepositorySelectionChanges, RepositorySelectionValue, RepositorySelectionWriteRequest, RepositorySettingsView, SETTINGS_CONFIG_API_ROUTE, SETTINGS_DEFAULT_MODEL_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 { AgentPluginPin, CatalogLayer, ExternalPluginsView, ExternalServerRow, ExternalServerStatus, InstallOperation, McpAuthorizationWire, McpCatalogWire, PluginEntry, PluginIconKey, PluginInstall, PluginScope, PluginSetup, PluginSource, PresetSummary } from "./types/plugins.mjs";
|
|
5
5
|
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";
|
|
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";
|
|
7
7
|
import { WebServer, WebServerOptions } from "./types/bridge.mjs";
|
|
8
8
|
import { REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, RemoteChannelScope } from "./types/remoteChannel.mjs";
|
|
9
9
|
import { PoNotificationEntry, parsePoNotificationEntry } from "./types/notification.mjs";
|
|
10
|
-
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, AgentPluginPin, AuthMethodType, AuthRuntime, AuthRuntimeProvider, BRIDGE_STATUS_TYPE, BridgeState, BridgeStatusFrame, CONTEXT_ENTRY_TYPE, CatalogLayer, ContextGroupKind, ContextGroupProjection, ContextItemProjection, ContextItemSource, ContextProjection, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, DirectoryListing, ExternalPluginsView, ExternalServerRow, ExternalServerStatus, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, HistoryPageFrame, HistoryRequestFrame, HubHelloFrame, InstallOperation, LoginEvent, LoginFlowSnapshot, LoginFlowStatus, LoginInteraction, LoginPrompt, LoginPromptView, LoginSelectOption, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MODE_ENTRY_TYPE, McpAuthorizationWire, McpCatalogWire, MediaKind, MediaType, ModeActionProjection, ModeProjection, ModeRecordProjection, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, PiSessionHistoryItem, PluginEntry, PluginIconKey, PluginInstall, PluginScope, PluginSetup, PluginSource, PoNotificationEntry, PresetCreateRequest, PresetLayerDefinition, PresetLayerRequest, PresetOperation, PresetReference, PresetRenameRequest, PresetScope, PresetSummary, PresetWriteRequest, ProviderAuthMethod, ProviderAuthSummary, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, 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, SessionCommandFrame, SessionFrame, SessionGitStatus, 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, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, WebServer, WebServerOptions, WorkspaceSandboxState, WorkspaceSummary, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
|
10
|
+
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, AgentPluginPin, AuthMethodType, AuthRuntime, AuthRuntimeProvider, BRIDGE_STATUS_TYPE, BridgeState, BridgeStatusFrame, CONTEXT_ENTRY_TYPE, CatalogLayer, ContextGroupKind, ContextGroupProjection, ContextItemProjection, ContextItemSource, ContextProjection, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, DirectoryListing, ExternalPluginsView, ExternalServerRow, ExternalServerStatus, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, HistoryPageFrame, HistoryRequestFrame, HubHelloFrame, InstallOperation, LoginEvent, LoginFlowSnapshot, LoginFlowStatus, LoginInteraction, LoginPrompt, LoginPromptView, LoginSelectOption, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MODE_ENTRY_TYPE, McpAuthorizationWire, McpCatalogWire, MediaKind, MediaType, ModeActionProjection, ModeProjection, ModeRecordProjection, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, PiSessionHistoryItem, PluginEntry, PluginIconKey, PluginInstall, PluginScope, PluginSetup, PluginSource, PoNotificationEntry, PresetCreateRequest, PresetLayerDefinition, PresetLayerRequest, PresetOperation, PresetReference, PresetRenameRequest, PresetScope, PresetSummary, PresetWriteRequest, ProviderAuthMethod, ProviderAuthSummary, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, 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_DEFAULT_MODEL_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, SessionCommandFrame, SessionFrame, SessionGitStatus, 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, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, WebServer, WebServerOptions, WorkspaceSandboxState, WorkspaceSummary, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
package/dist/types.mjs
CHANGED
|
@@ -3,6 +3,6 @@ import { REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_
|
|
|
3
3
|
import { MAX_SESSION_FILE_BYTES, MEDIA_TYPES, SESSION_FILE_EXPECTED_SHA256_HEADER, SESSION_FILE_ROUTE, SESSION_FILE_SHA256_HEADER, sessionFileUrl } from "./types/media.mjs";
|
|
4
4
|
import { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, CONTEXT_ENTRY_TYPE, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, MODE_ENTRY_TYPE, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, SESSIONS_API_ROUTE, SESSION_COMMAND_TYPE, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, hubHello, sessionCommand } from "./types/hub.mjs";
|
|
5
5
|
import { parsePoNotificationEntry } from "./types/notification.mjs";
|
|
6
|
-
import { 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 } from "./types/settings.mjs";
|
|
6
|
+
import { SETTINGS_CONFIG_API_ROUTE, SETTINGS_DEFAULT_MODEL_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 } from "./types/settings.mjs";
|
|
7
7
|
import { ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, BRIDGE_STATUS_TYPE, REPLAY_TYPE, bridgeStatus } from "./types/session.mjs";
|
|
8
|
-
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, BRIDGE_STATUS_TYPE, CONTEXT_ENTRY_TYPE, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MODE_ENTRY_TYPE, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, 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, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
|
8
|
+
export { AGENT_MODEL_ENTRY_TYPE, API_SESSION_QUERY_PARAM, ATTACHED_TYPE, ATTACH_ERROR_TYPE, ATTACH_TYPE, AUTH_LOGINS_API_ROUTE, AUTH_PROVIDERS_API_ROUTE, BRIDGE_STATUS_TYPE, CONTEXT_ENTRY_TYPE, DIALOG_ANSWERED_TYPE, DIRECTORIES_API_ROUTE, DIRECTORY_CHILDREN_API_ROUTE, HISTORY_PAGE_SIZE, HISTORY_PAGE_TYPE, HISTORY_REQUEST_TYPE, HUB_HELLO_TYPE, HUB_PROTOCOL_VERSION, HUB_ROLE, MAX_SESSION_FILE_BYTES, MEDIA_TYPES, MODE_ENTRY_TYPE, PO_FOLDERS_API_ROUTE, PROFILE_IDENTITY_ENTRY_TYPE, REMOTE_CHANNEL_ROUTE, REMOTE_HTTP_ROUTE, REMOTE_PUSH_KEY_ROUTE, REMOTE_PUSH_ROUTE, REPLAY_TYPE, RESOURCE_CATALOG_ENTRY_TYPE, SESSIONS_API_ROUTE, SESSION_COMMAND_TYPE, SESSION_FILE_EXPECTED_SHA256_HEADER, SESSION_FILE_ROUTE, SESSION_FILE_SHA256_HEADER, SETTINGS_CONFIG_API_ROUTE, SETTINGS_DEFAULT_MODEL_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, WORKSPACES_API_ROUTE, WORKSPACE_SANDBOX_STATES, bridgeStatus, hubHello, parsePoNotificationEntry, sessionCommand, sessionFileUrl };
|
package/dist/views.cjs
CHANGED
|
@@ -74,6 +74,7 @@ exports.ContextPanelView = require_ContextPanel.ContextPanelView;
|
|
|
74
74
|
exports.ContributedSettings = require_ContributedSettings.ContributedSettings;
|
|
75
75
|
exports.ConversationAside = require_ConversationAside.ConversationAside;
|
|
76
76
|
exports.DashboardTileGrid = require_DashboardTileGrid.DashboardTileGrid;
|
|
77
|
+
exports.DefaultModelSection = require_ProviderSettings.DefaultModelSection;
|
|
77
78
|
exports.DialogOverlay = require_DialogOverlay.DialogOverlay;
|
|
78
79
|
exports.DockConversation = require_DockConversation.DockConversation;
|
|
79
80
|
exports.DockTabs = require_DockTabs.DockTabs;
|
package/dist/views.d.mts
CHANGED
|
@@ -49,7 +49,7 @@ import { ImageSettings } from "./web/features/settings/ImageSettings.mjs";
|
|
|
49
49
|
import { LoginFlowDialog, METHOD_LABEL } from "./web/components/LoginFlowDialog.mjs";
|
|
50
50
|
import { NotificationSettings } from "./web/features/settings/NotificationSettings.mjs";
|
|
51
51
|
import { PresetSettings } from "./web/features/settings/PresetSettings.mjs";
|
|
52
|
-
import { ConnectedRow, ProviderPeers, ProviderSettings } from "./web/features/settings/ProviderSettings.mjs";
|
|
52
|
+
import { ConnectedRow, DefaultModelSection, ProviderPeers, ProviderSettings } from "./web/features/settings/ProviderSettings.mjs";
|
|
53
53
|
import { CockpitHost, HostsSettings, HostsSettingsProps, hostKeyFor, isQuickTunnel } from "./web/features/settings/HostsSettings.mjs";
|
|
54
54
|
import { LanguageSettings } from "./web/features/settings/LanguageSettings.mjs";
|
|
55
55
|
import { RepositorySettings } from "./web/features/settings/RepositorySettings.mjs";
|
|
@@ -58,4 +58,4 @@ import { SettingsMenu } from "./web/features/settings/SettingsMenu.mjs";
|
|
|
58
58
|
import { SettingsPanelHost } from "./web/components/SettingsPanelHost.mjs";
|
|
59
59
|
import { TemplateSettings } from "./web/features/settings/TemplateSettings.mjs";
|
|
60
60
|
import { TopBar } from "./web/features/status/TopBar.mjs";
|
|
61
|
-
export { AccountButton, AccountSettings, AccountSummary, ActivityDock, AppearanceSettings, ClientDevices, ClientDevicesProps, CockpitHost, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextItemDialogProps, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DashboardTileView, DialogOverlay, DockConversation, DockFaceSnapshot, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomeHost, HomePage, HomeView, HomeViewProps, HostsSettings, HostsSettingsProps, ImageSettings, LanguageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MascotMarkProps, MentionPreviewAsset, MentionPreviews, MessageFileLinkHandler, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QUICK_CHAT_RECENT_MS, QueueSheet, QuickChat, RefusedCard, Region, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionActivityView, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TranscriptTurnRenderProps, WelcomePanel, WorkspacePage, WorkspaceView, WorkspaceViewProps, addComposerFiles, appearedFaces, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, quickChatAwaitsApproval, quickChatSessions, readComposerFiles, sessionActivity, toolActivitySummaries, toolOutputDescriptors, useNewSessionActions, useQuickChatSessions, useSessionRail };
|
|
61
|
+
export { AccountButton, AccountSettings, AccountSummary, ActivityDock, AppearanceSettings, ClientDevices, ClientDevicesProps, CockpitHost, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextItemDialogProps, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DashboardTileView, DefaultModelSection, DialogOverlay, DockConversation, DockFaceSnapshot, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomeHost, HomePage, HomeView, HomeViewProps, HostsSettings, HostsSettingsProps, ImageSettings, LanguageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MascotMarkProps, MentionPreviewAsset, MentionPreviews, MessageFileLinkHandler, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QUICK_CHAT_RECENT_MS, QueueSheet, QuickChat, RefusedCard, Region, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionActivityView, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, TranscriptTurnRenderProps, WelcomePanel, WorkspacePage, WorkspaceView, WorkspaceViewProps, addComposerFiles, appearedFaces, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, quickChatAwaitsApproval, quickChatSessions, readComposerFiles, sessionActivity, toolActivitySummaries, toolOutputDescriptors, useNewSessionActions, useQuickChatSessions, useSessionRail };
|
package/dist/views.mjs
CHANGED
|
@@ -51,11 +51,11 @@ import { ClientDevices } from "./web/features/settings/ClientDevices.mjs";
|
|
|
51
51
|
import { ImageSettings } from "./web/features/settings/ImageSettings.mjs";
|
|
52
52
|
import { NotificationSettings } from "./web/features/settings/NotificationSettings.mjs";
|
|
53
53
|
import { PresetSettings } from "./web/features/settings/PresetSettings.mjs";
|
|
54
|
-
import { ConnectedRow, ProviderPeers, ProviderSettings } from "./web/features/settings/ProviderSettings.mjs";
|
|
54
|
+
import { ConnectedRow, DefaultModelSection, ProviderPeers, ProviderSettings } from "./web/features/settings/ProviderSettings.mjs";
|
|
55
55
|
import { HostsSettings, hostKeyFor, isQuickTunnel } from "./web/features/settings/HostsSettings.mjs";
|
|
56
56
|
import { LanguageSettings } from "./web/features/settings/LanguageSettings.mjs";
|
|
57
57
|
import { RepositorySettings } from "./web/features/settings/RepositorySettings.mjs";
|
|
58
58
|
import { SettingsMenu } from "./web/features/settings/SettingsMenu.mjs";
|
|
59
59
|
import { RepositoryWorkspace } from "./web/features/settings/RepositoryWorkspace.mjs";
|
|
60
60
|
import { TopBar } from "./web/features/status/TopBar.mjs";
|
|
61
|
-
export { AccountButton, AccountSettings, ActivityDock, AppearanceSettings, ClientDevices, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DialogOverlay, DockConversation, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomePage, HomeView, HostsSettings, ImageSettings, LanguageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MentionPreviewAsset, MentionPreviews, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QUICK_CHAT_RECENT_MS, QueueSheet, QuickChat, RefusedCard, Region, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, WelcomePanel, WorkspacePage, WorkspaceView, addComposerFiles, appearedFaces, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, quickChatAwaitsApproval, quickChatSessions, readComposerFiles, sessionActivity, toolActivitySummaries, toolOutputDescriptors, useNewSessionActions, useQuickChatSessions, useSessionRail };
|
|
61
|
+
export { AccountButton, AccountSettings, ActivityDock, AppearanceSettings, ClientDevices, CommandPalette, Composer, ComposerPrompt, ConnectedRow, ContextItemDialog, ContextPanel, ContextPanelView, ContributedSettings, ConversationAside, DashboardTileGrid, DefaultModelSection, DialogOverlay, DockConversation, DockTabs, DormantPanel, FolderBrowser, GentleAsk, HomePage, HomeView, HostsSettings, ImageSettings, LanguageSettings, LoginFlowDialog, METHOD_LABEL, MascotMark, MentionPreviewAsset, MentionPreviews, MessageMarkdown, ModelPopup, NewSessionDialog, NewSessionDialogView, NotificationSettings, OnboardingFlow, PluginPage, PluginSurface, PluginsPage, PresetSettings, ProviderPeers, ProviderSettings, QUICK_CHAT_RECENT_MS, QueueSheet, QuickChat, RefusedCard, Region, RepositorySettings, RepositoryWorkspace, ResumeSessionDialog, SelectionBar, SessionActivity, SessionRailDialogs, SessionSettings, SessionTranscriptView, SettingsMenu, SettingsPanelHost, TeamPage, TemplateSettings, ThreadView, Timeline, ToolCard, ToolRendererBoundary, TopBar, Transcript, WelcomePanel, WorkspacePage, WorkspaceView, addComposerFiles, appearedFaces, hasVisualOutput, hostKeyFor, isQuickTunnel, nestedToolCard, quickChatAwaitsApproval, quickChatSessions, readComposerFiles, sessionActivity, toolActivitySummaries, toolOutputDescriptors, useNewSessionActions, useQuickChatSessions, useSessionRail };
|
|
@@ -19,7 +19,7 @@ function FlowEvent({ event }) {
|
|
|
19
19
|
asChild: true,
|
|
20
20
|
variant: "link",
|
|
21
21
|
size: "xs",
|
|
22
|
-
className: linkClass
|
|
22
|
+
className: `${linkClass} h-auto whitespace-normal text-left`,
|
|
23
23
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
24
24
|
"data-testid": "login-flow-auth-url",
|
|
25
25
|
href: event.url,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginFlowDialog.cjs","names":["useT","Button","Input","useDashboardState","Dialog","DialogContent","DialogHeader","DialogTitle","DialogBody","Spinner","DialogFooter"],"sources":["../../../src/web/components/LoginFlowDialog.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport {\n Button,\n Dialog,\n DialogBody,\n DialogContent,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Input,\n Spinner,\n} from '@agimon-ai/po-web-components';\n\nimport type { AuthMethodType, LoginEvent, LoginFlowSnapshot, LoginPromptView } from '../../types/auth';\nimport { useDashboardState } from '../stores/dashboardStateStore';\n\nexport const METHOD_LABEL: Readonly<Record<AuthMethodType, string>> = { api_key: 'API key', oauth: 'OAuth' };\n\n/** Button's link variant plus the wrapping a full auth URL needs. */\nconst linkClass = 'inline break-all decoration-po-blue/40 hover:decoration-po-blue';\n\nfunction FlowEvent({ event }: { event: LoginEvent }) {\n const t = useT();\n if (event.type === 'auth_url') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>{t('webDashboard.login.openLink', 'Open this link to sign in:')}</span>\n <Button asChild variant=\"link\" size=\"xs\" className={linkClass}>\n <a data-testid=\"login-flow-auth-url\" href={event.url} target=\"_blank\" rel=\"noreferrer\">\n {event.url}\n </a>\n </Button>\n {event.instructions ? <span className=\"text-po-dim\">{event.instructions}</span> : null}\n </div>\n );\n }\n if (event.type === 'device_code') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>\n {t('webDashboard.login.enterCode', 'Enter the code')}{' '}\n <span data-testid=\"login-flow-device-code\" className=\"font-mono font-medium text-po-hi\">\n {event.userCode}\n </span>{' '}\n {t('webDashboard.login.codeAt', 'at')}{' '}\n <a href={event.verificationUri} target=\"_blank\" rel=\"noreferrer\" className={linkClass}>\n {event.verificationUri}\n </a>\n </span>\n </div>\n );\n }\n if (event.type === 'info') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>{event.message}</span>\n {event.links?.map((link) => (\n <a key={link.url} href={link.url} target=\"_blank\" rel=\"noreferrer\" className={linkClass}>\n {link.label ?? link.url}\n </a>\n ))}\n </div>\n );\n }\n return <span className=\"text-sm text-po-dim\">{event.message}</span>;\n}\n\nfunction PromptField({\n prompt,\n value,\n remote,\n onChange,\n onSubmit,\n onSelect,\n}: {\n prompt: LoginPromptView;\n value: string;\n remote: boolean;\n onChange: (value: string) => void;\n onSubmit: () => void;\n onSelect: (optionId: string) => void;\n}) {\n const t = useT();\n if (prompt.type === 'select') {\n return (\n <div data-testid=\"login-prompt\" data-prompt-type={prompt.type} className=\"flex flex-col gap-2\">\n <span className=\"text-sm text-po-text\">{prompt.message}</span>\n <div className=\"flex flex-col gap-1\">\n {(prompt.options ?? []).map((option) => (\n <Button\n key={option.id}\n variant=\"outline\"\n data-testid={`login-prompt-option-${option.id}`}\n onClick={() => onSelect(option.id)}\n className=\"h-auto flex-col items-start gap-0.5 px-2.5 py-1.5 text-left whitespace-normal focus-visible:border-po-blue/50 focus-visible:ring-0\"\n >\n <span className=\"text-base font-medium text-po-hi\">{option.label}</span>\n {option.description ? <span className=\"text-sm text-po-dim\">{option.description}</span> : null}\n </Button>\n ))}\n </div>\n </div>\n );\n }\n return (\n <label data-testid=\"login-prompt\" data-prompt-type={prompt.type} className=\"flex flex-col gap-1\">\n <span className=\"text-sm text-po-text\">{prompt.message}</span>\n {/* The provider redirects to a loopback address that belongs to whichever\n machine the browser runs on, so a remote tab lands on an error page.\n The URL still carries the code, which is what this asks for. */}\n {remote && prompt.type === 'manual_code' ? (\n <span data-testid=\"login-prompt-remote-hint\" className=\"text-sm text-po-dim\">\n {t(\n 'webDashboard.login.remoteHint',\n \"The page it sends you to will not load from here. Copy the whole address from your browser's address bar and paste it below.\",\n )}\n </span>\n ) : null}\n <div className=\"flex items-center gap-2\">\n <Input\n data-testid=\"login-prompt-input\"\n type={prompt.type === 'secret' ? 'password' : 'text'}\n value={value}\n autoFocus\n autoComplete=\"off\"\n placeholder={prompt.placeholder}\n onChange={(event) => onChange(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSubmit();\n }}\n className=\"flex-1\"\n />\n <Button variant=\"primary\" data-testid=\"login-prompt-submit\" disabled={value.trim() === ''} onClick={onSubmit}>\n {t('webDashboard.common.continue', 'Continue')}\n </Button>\n </div>\n </label>\n );\n}\n\n/**\n * A provider's login, rendered from the hub's snapshots: the links and codes\n * it announced, the one question it is waiting on, and how it ended.\n */\nexport function LoginFlowDialog({\n flow,\n onAnswer,\n onCancel,\n onClose,\n}: {\n flow: LoginFlowSnapshot;\n onAnswer: (promptId: string, value: string) => void;\n onCancel: () => void;\n onClose: () => void;\n}) {\n const t = useT();\n const prompt = flow.prompt;\n const promptId = JSON.stringify([flow.id, prompt?.id]);\n const running = flow.status === 'running';\n const [value, setValue] = useDashboardState('providers/answer', '');\n const [lastPromptId, setLastPromptId] = useDashboardState('providers/prompt', promptId);\n if (lastPromptId !== promptId || (!running && value !== '')) {\n setLastPromptId(promptId);\n setValue('');\n }\n\n const submit = (): void => {\n if (!prompt || value.trim() === '') return;\n onAnswer(prompt.id, value);\n };\n\n let outcome: { text: string; className: string } | undefined;\n if (flow.status === 'succeeded')\n outcome = {\n text: t('webDashboard.login.succeeded', \"You're signed in to {provider}. Every session can use it now.\", {\n provider: flow.providerName,\n }),\n className: 'text-po-green',\n };\n else if (flow.status === 'failed')\n outcome = {\n text: flow.error ?? t('webDashboard.login.failed', 'Sign-in failed.'),\n className: 'text-po-red',\n };\n else if (flow.status === 'cancelled')\n outcome = { text: t('webDashboard.login.cancelled', 'Sign-in cancelled.'), className: 'text-po-dim' };\n\n return (\n <Dialog\n open\n onOpenChange={(next) => {\n if (next) return;\n // Escape or an outside click abandons a live sign-in, and simply\n // dismisses a finished one.\n if (running) onCancel();\n else onClose();\n }}\n >\n <DialogContent width=\"md\" data-testid=\"login-flow\" data-status={flow.status} aria-describedby={undefined}>\n <DialogHeader>\n <DialogTitle>\n {t('webDashboard.login.title', 'Sign in to {provider}', { provider: flow.providerName })}\n </DialogTitle>\n <span className=\"text-sm text-po-dim\">\n {flow.type === 'api_key'\n ? t('webDashboard.login.method.apiKey', 'API key')\n : t('webDashboard.login.method.oauth', 'OAuth')}\n </span>\n </DialogHeader>\n <DialogBody>\n {flow.events.length > 0 ? (\n <ol data-testid=\"login-flow-events\" className=\"flex flex-col gap-2\">\n {flow.events.map((event, index) => (\n <li key={index}>\n <FlowEvent event={event} />\n </li>\n ))}\n </ol>\n ) : null}\n {running && prompt ? (\n <PromptField\n prompt={prompt}\n value={value}\n remote={flow.remote === true}\n onChange={setValue}\n onSubmit={submit}\n onSelect={(optionId) => onAnswer(prompt.id, optionId)}\n />\n ) : null}\n {running && !prompt ? (\n <p data-testid=\"login-flow-waiting\" className=\"flex items-center gap-2 text-sm text-po-dim\">\n <Spinner />\n {flow.events.length === 0\n ? t('webDashboard.login.starting', 'Starting…')\n : t('webDashboard.login.waiting', 'Waiting for {provider}…', { provider: flow.providerName })}\n </p>\n ) : null}\n {outcome ? (\n <p data-testid=\"login-flow-result\" className={`text-sm ${outcome.className}`}>\n {outcome.text}\n </p>\n ) : null}\n <DialogFooter>\n {running ? (\n <Button variant=\"outline\" data-testid=\"login-flow-cancel\" onClick={onCancel}>\n {t('webDashboard.common.cancel', 'Cancel')}\n </Button>\n ) : (\n <Button variant=\"outline\" data-testid=\"login-flow-close\" autoFocus onClick={onClose}>\n {flow.status === 'succeeded'\n ? t('webDashboard.common.done', 'Done')\n : t('webDashboard.common.close', 'Close')}\n </Button>\n )}\n </DialogFooter>\n </DialogBody>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"LoginFlowDialog.cjs","names":["useT","Button","Input","useDashboardState","Dialog","DialogContent","DialogHeader","DialogTitle","DialogBody","Spinner","DialogFooter"],"sources":["../../../src/web/components/LoginFlowDialog.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport {\n Button,\n Dialog,\n DialogBody,\n DialogContent,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Input,\n Spinner,\n} from '@agimon-ai/po-web-components';\n\nimport type { AuthMethodType, LoginEvent, LoginFlowSnapshot, LoginPromptView } from '../../types/auth';\nimport { useDashboardState } from '../stores/dashboardStateStore';\n\nexport const METHOD_LABEL: Readonly<Record<AuthMethodType, string>> = { api_key: 'API key', oauth: 'OAuth' };\n\n/** Button's link variant plus the wrapping a full auth URL needs. */\nconst linkClass = 'inline break-all decoration-po-blue/40 hover:decoration-po-blue';\n\nfunction FlowEvent({ event }: { event: LoginEvent }) {\n const t = useT();\n if (event.type === 'auth_url') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>{t('webDashboard.login.openLink', 'Open this link to sign in:')}</span>\n <Button asChild variant=\"link\" size=\"xs\" className={`${linkClass} h-auto whitespace-normal text-left`}>\n <a data-testid=\"login-flow-auth-url\" href={event.url} target=\"_blank\" rel=\"noreferrer\">\n {event.url}\n </a>\n </Button>\n {event.instructions ? <span className=\"text-po-dim\">{event.instructions}</span> : null}\n </div>\n );\n }\n if (event.type === 'device_code') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>\n {t('webDashboard.login.enterCode', 'Enter the code')}{' '}\n <span data-testid=\"login-flow-device-code\" className=\"font-mono font-medium text-po-hi\">\n {event.userCode}\n </span>{' '}\n {t('webDashboard.login.codeAt', 'at')}{' '}\n <a href={event.verificationUri} target=\"_blank\" rel=\"noreferrer\" className={linkClass}>\n {event.verificationUri}\n </a>\n </span>\n </div>\n );\n }\n if (event.type === 'info') {\n return (\n <div className=\"flex flex-col gap-1 text-sm text-po-text\">\n <span>{event.message}</span>\n {event.links?.map((link) => (\n <a key={link.url} href={link.url} target=\"_blank\" rel=\"noreferrer\" className={linkClass}>\n {link.label ?? link.url}\n </a>\n ))}\n </div>\n );\n }\n return <span className=\"text-sm text-po-dim\">{event.message}</span>;\n}\n\nfunction PromptField({\n prompt,\n value,\n remote,\n onChange,\n onSubmit,\n onSelect,\n}: {\n prompt: LoginPromptView;\n value: string;\n remote: boolean;\n onChange: (value: string) => void;\n onSubmit: () => void;\n onSelect: (optionId: string) => void;\n}) {\n const t = useT();\n if (prompt.type === 'select') {\n return (\n <div data-testid=\"login-prompt\" data-prompt-type={prompt.type} className=\"flex flex-col gap-2\">\n <span className=\"text-sm text-po-text\">{prompt.message}</span>\n <div className=\"flex flex-col gap-1\">\n {(prompt.options ?? []).map((option) => (\n <Button\n key={option.id}\n variant=\"outline\"\n data-testid={`login-prompt-option-${option.id}`}\n onClick={() => onSelect(option.id)}\n className=\"h-auto flex-col items-start gap-0.5 px-2.5 py-1.5 text-left whitespace-normal focus-visible:border-po-blue/50 focus-visible:ring-0\"\n >\n <span className=\"text-base font-medium text-po-hi\">{option.label}</span>\n {option.description ? <span className=\"text-sm text-po-dim\">{option.description}</span> : null}\n </Button>\n ))}\n </div>\n </div>\n );\n }\n return (\n <label data-testid=\"login-prompt\" data-prompt-type={prompt.type} className=\"flex flex-col gap-1\">\n <span className=\"text-sm text-po-text\">{prompt.message}</span>\n {/* The provider redirects to a loopback address that belongs to whichever\n machine the browser runs on, so a remote tab lands on an error page.\n The URL still carries the code, which is what this asks for. */}\n {remote && prompt.type === 'manual_code' ? (\n <span data-testid=\"login-prompt-remote-hint\" className=\"text-sm text-po-dim\">\n {t(\n 'webDashboard.login.remoteHint',\n \"The page it sends you to will not load from here. Copy the whole address from your browser's address bar and paste it below.\",\n )}\n </span>\n ) : null}\n <div className=\"flex items-center gap-2\">\n <Input\n data-testid=\"login-prompt-input\"\n type={prompt.type === 'secret' ? 'password' : 'text'}\n value={value}\n autoFocus\n autoComplete=\"off\"\n placeholder={prompt.placeholder}\n onChange={(event) => onChange(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSubmit();\n }}\n className=\"flex-1\"\n />\n <Button variant=\"primary\" data-testid=\"login-prompt-submit\" disabled={value.trim() === ''} onClick={onSubmit}>\n {t('webDashboard.common.continue', 'Continue')}\n </Button>\n </div>\n </label>\n );\n}\n\n/**\n * A provider's login, rendered from the hub's snapshots: the links and codes\n * it announced, the one question it is waiting on, and how it ended.\n */\nexport function LoginFlowDialog({\n flow,\n onAnswer,\n onCancel,\n onClose,\n}: {\n flow: LoginFlowSnapshot;\n onAnswer: (promptId: string, value: string) => void;\n onCancel: () => void;\n onClose: () => void;\n}) {\n const t = useT();\n const prompt = flow.prompt;\n const promptId = JSON.stringify([flow.id, prompt?.id]);\n const running = flow.status === 'running';\n const [value, setValue] = useDashboardState('providers/answer', '');\n const [lastPromptId, setLastPromptId] = useDashboardState('providers/prompt', promptId);\n if (lastPromptId !== promptId || (!running && value !== '')) {\n setLastPromptId(promptId);\n setValue('');\n }\n\n const submit = (): void => {\n if (!prompt || value.trim() === '') return;\n onAnswer(prompt.id, value);\n };\n\n let outcome: { text: string; className: string } | undefined;\n if (flow.status === 'succeeded')\n outcome = {\n text: t('webDashboard.login.succeeded', \"You're signed in to {provider}. Every session can use it now.\", {\n provider: flow.providerName,\n }),\n className: 'text-po-green',\n };\n else if (flow.status === 'failed')\n outcome = {\n text: flow.error ?? t('webDashboard.login.failed', 'Sign-in failed.'),\n className: 'text-po-red',\n };\n else if (flow.status === 'cancelled')\n outcome = { text: t('webDashboard.login.cancelled', 'Sign-in cancelled.'), className: 'text-po-dim' };\n\n return (\n <Dialog\n open\n onOpenChange={(next) => {\n if (next) return;\n // Escape or an outside click abandons a live sign-in, and simply\n // dismisses a finished one.\n if (running) onCancel();\n else onClose();\n }}\n >\n <DialogContent width=\"md\" data-testid=\"login-flow\" data-status={flow.status} aria-describedby={undefined}>\n <DialogHeader>\n <DialogTitle>\n {t('webDashboard.login.title', 'Sign in to {provider}', { provider: flow.providerName })}\n </DialogTitle>\n <span className=\"text-sm text-po-dim\">\n {flow.type === 'api_key'\n ? t('webDashboard.login.method.apiKey', 'API key')\n : t('webDashboard.login.method.oauth', 'OAuth')}\n </span>\n </DialogHeader>\n <DialogBody>\n {flow.events.length > 0 ? (\n <ol data-testid=\"login-flow-events\" className=\"flex flex-col gap-2\">\n {flow.events.map((event, index) => (\n <li key={index}>\n <FlowEvent event={event} />\n </li>\n ))}\n </ol>\n ) : null}\n {running && prompt ? (\n <PromptField\n prompt={prompt}\n value={value}\n remote={flow.remote === true}\n onChange={setValue}\n onSubmit={submit}\n onSelect={(optionId) => onAnswer(prompt.id, optionId)}\n />\n ) : null}\n {running && !prompt ? (\n <p data-testid=\"login-flow-waiting\" className=\"flex items-center gap-2 text-sm text-po-dim\">\n <Spinner />\n {flow.events.length === 0\n ? t('webDashboard.login.starting', 'Starting…')\n : t('webDashboard.login.waiting', 'Waiting for {provider}…', { provider: flow.providerName })}\n </p>\n ) : null}\n {outcome ? (\n <p data-testid=\"login-flow-result\" className={`text-sm ${outcome.className}`}>\n {outcome.text}\n </p>\n ) : null}\n <DialogFooter>\n {running ? (\n <Button variant=\"outline\" data-testid=\"login-flow-cancel\" onClick={onCancel}>\n {t('webDashboard.common.cancel', 'Cancel')}\n </Button>\n ) : (\n <Button variant=\"outline\" data-testid=\"login-flow-close\" autoFocus onClick={onClose}>\n {flow.status === 'succeeded'\n ? t('webDashboard.common.done', 'Done')\n : t('webDashboard.common.close', 'Close')}\n </Button>\n )}\n </DialogFooter>\n </DialogBody>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"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"}
|
|
@@ -19,7 +19,7 @@ function FlowEvent({ event }) {
|
|
|
19
19
|
asChild: true,
|
|
20
20
|
variant: "link",
|
|
21
21
|
size: "xs",
|
|
22
|
-
className: linkClass
|
|
22
|
+
className: `${linkClass} h-auto whitespace-normal text-left`,
|
|
23
23
|
children: /* @__PURE__ */ jsx("a", {
|
|
24
24
|
"data-testid": "login-flow-auth-url",
|
|
25
25
|
href: event.url,
|