@agimon-ai/po-web-dashboard 0.0.0-alpha.0
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/LICENSE +29 -0
- package/README.md +10 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/core.cjs +222 -0
- package/dist/core.d.mts +21 -0
- package/dist/core.mjs +21 -0
- package/dist/index.cjs +546 -0
- package/dist/index.d.mts +81 -0
- package/dist/index.mjs +81 -0
- package/dist/testing.cjs +18 -0
- package/dist/testing.d.mts +6 -0
- package/dist/testing.mjs +6 -0
- package/dist/types/auth.cjs +20 -0
- package/dist/types/auth.cjs.map +1 -0
- package/dist/types/auth.d.mts +160 -0
- package/dist/types/auth.d.mts.map +1 -0
- package/dist/types/auth.mjs +19 -0
- package/dist/types/auth.mjs.map +1 -0
- package/dist/types/bridge.d.mts +18 -0
- package/dist/types/bridge.d.mts.map +1 -0
- package/dist/types/devProxy.cjs +41 -0
- package/dist/types/devProxy.cjs.map +1 -0
- package/dist/types/devProxy.d.mts +54 -0
- package/dist/types/devProxy.d.mts.map +1 -0
- package/dist/types/devProxy.mjs +39 -0
- package/dist/types/devProxy.mjs.map +1 -0
- package/dist/types/hub.cjs +220 -0
- package/dist/types/hub.cjs.map +1 -0
- package/dist/types/hub.d.mts +447 -0
- package/dist/types/hub.d.mts.map +1 -0
- package/dist/types/hub.mjs +179 -0
- package/dist/types/hub.mjs.map +1 -0
- package/dist/types/media.cjs +75 -0
- package/dist/types/media.cjs.map +1 -0
- package/dist/types/media.d.mts +22 -0
- package/dist/types/media.d.mts.map +1 -0
- package/dist/types/media.mjs +70 -0
- package/dist/types/media.mjs.map +1 -0
- package/dist/types/notification.cjs +19 -0
- package/dist/types/notification.cjs.map +1 -0
- package/dist/types/notification.d.mts +10 -0
- package/dist/types/notification.d.mts.map +1 -0
- package/dist/types/notification.mjs +19 -0
- package/dist/types/notification.mjs.map +1 -0
- package/dist/types/remoteAccess.cjs +92 -0
- package/dist/types/remoteAccess.cjs.map +1 -0
- package/dist/types/remoteAccess.d.mts +214 -0
- package/dist/types/remoteAccess.d.mts.map +1 -0
- package/dist/types/remoteAccess.mjs +68 -0
- package/dist/types/remoteAccess.mjs.map +1 -0
- package/dist/types/session.cjs +23 -0
- package/dist/types/session.cjs.map +1 -0
- package/dist/types/session.d.mts +29 -0
- package/dist/types/session.d.mts.map +1 -0
- package/dist/types/session.mjs +18 -0
- package/dist/types/session.mjs.map +1 -0
- package/dist/types/sessionMcp.d.mts +56 -0
- package/dist/types/sessionMcp.d.mts.map +1 -0
- package/dist/types/settings.cjs +18 -0
- package/dist/types/settings.cjs.map +1 -0
- package/dist/types/settings.d.mts +126 -0
- package/dist/types/settings.d.mts.map +1 -0
- package/dist/types/settings.mjs +12 -0
- package/dist/types/settings.mjs.map +1 -0
- package/dist/types.cjs +101 -0
- package/dist/types.d.mts +11 -0
- package/dist/types.mjs +9 -0
- package/dist/views.cjs +120 -0
- package/dist/views.d.mts +56 -0
- package/dist/views.mjs +56 -0
- package/dist/web/components/MascotMark.cjs +18 -0
- package/dist/web/components/MascotMark.cjs.map +1 -0
- package/dist/web/components/MascotMark.d.mts +9 -0
- package/dist/web/components/MascotMark.d.mts.map +1 -0
- package/dist/web/components/MascotMark.mjs +18 -0
- package/dist/web/components/MascotMark.mjs.map +1 -0
- package/dist/web/components/PluginSurface.cjs +15 -0
- package/dist/web/components/PluginSurface.cjs.map +1 -0
- package/dist/web/components/PluginSurface.d.mts +13 -0
- package/dist/web/components/PluginSurface.d.mts.map +1 -0
- package/dist/web/components/PluginSurface.mjs +15 -0
- package/dist/web/components/PluginSurface.mjs.map +1 -0
- package/dist/web/components/QrCode.cjs +37 -0
- package/dist/web/components/QrCode.cjs.map +1 -0
- package/dist/web/components/QrCode.d.mts +22 -0
- package/dist/web/components/QrCode.d.mts.map +1 -0
- package/dist/web/components/QrCode.mjs +37 -0
- package/dist/web/components/QrCode.mjs.map +1 -0
- package/dist/web/components/Remote.fixture.cjs +73 -0
- package/dist/web/components/Remote.fixture.cjs.map +1 -0
- package/dist/web/components/Remote.fixture.mjs +72 -0
- package/dist/web/components/Remote.fixture.mjs.map +1 -0
- package/dist/web/components/SessionMcp.cjs +279 -0
- package/dist/web/components/SessionMcp.cjs.map +1 -0
- package/dist/web/components/SessionMcp.d.mts +12 -0
- package/dist/web/components/SessionMcp.d.mts.map +1 -0
- package/dist/web/components/SessionMcp.mjs +278 -0
- package/dist/web/components/SessionMcp.mjs.map +1 -0
- package/dist/web/components/Story.fixture.cjs +124 -0
- package/dist/web/components/Story.fixture.cjs.map +1 -0
- package/dist/web/components/Story.fixture.d.mts +19 -0
- package/dist/web/components/Story.fixture.d.mts.map +1 -0
- package/dist/web/components/Story.fixture.mjs +119 -0
- package/dist/web/components/Story.fixture.mjs.map +1 -0
- package/dist/web/components/Template.fixture.cjs +67 -0
- package/dist/web/components/Template.fixture.cjs.map +1 -0
- package/dist/web/components/Template.fixture.d.mts +7 -0
- package/dist/web/components/Template.fixture.d.mts.map +1 -0
- package/dist/web/components/Template.fixture.mjs +65 -0
- package/dist/web/components/Template.fixture.mjs.map +1 -0
- package/dist/web/components/ToolRendererBoundary.cjs +23 -0
- package/dist/web/components/ToolRendererBoundary.cjs.map +1 -0
- package/dist/web/components/ToolRendererBoundary.d.mts +23 -0
- package/dist/web/components/ToolRendererBoundary.d.mts.map +1 -0
- package/dist/web/components/ToolRendererBoundary.mjs +23 -0
- package/dist/web/components/ToolRendererBoundary.mjs.map +1 -0
- package/dist/web/features/activity/ActivityDock.cjs +271 -0
- package/dist/web/features/activity/ActivityDock.cjs.map +1 -0
- package/dist/web/features/activity/ActivityDock.d.mts +22 -0
- package/dist/web/features/activity/ActivityDock.d.mts.map +1 -0
- package/dist/web/features/activity/ActivityDock.mjs +271 -0
- package/dist/web/features/activity/ActivityDock.mjs.map +1 -0
- package/dist/web/features/activity/ContextItemDialog.cjs +276 -0
- package/dist/web/features/activity/ContextItemDialog.cjs.map +1 -0
- package/dist/web/features/activity/ContextItemDialog.d.mts +16 -0
- package/dist/web/features/activity/ContextItemDialog.d.mts.map +1 -0
- package/dist/web/features/activity/ContextItemDialog.mjs +276 -0
- package/dist/web/features/activity/ContextItemDialog.mjs.map +1 -0
- package/dist/web/features/activity/ContextPanel.cjs +248 -0
- package/dist/web/features/activity/ContextPanel.cjs.map +1 -0
- package/dist/web/features/activity/ContextPanel.d.mts +4 -0
- package/dist/web/features/activity/ContextPanel.d.mts.map +1 -0
- package/dist/web/features/activity/ContextPanel.mjs +248 -0
- package/dist/web/features/activity/ContextPanel.mjs.map +1 -0
- package/dist/web/features/activity/DockTabs.cjs +47 -0
- package/dist/web/features/activity/DockTabs.cjs.map +1 -0
- package/dist/web/features/activity/DockTabs.d.mts +9 -0
- package/dist/web/features/activity/DockTabs.d.mts.map +1 -0
- package/dist/web/features/activity/DockTabs.mjs +47 -0
- package/dist/web/features/activity/DockTabs.mjs.map +1 -0
- package/dist/web/features/connection/RefusedCard.cjs +76 -0
- package/dist/web/features/connection/RefusedCard.cjs.map +1 -0
- package/dist/web/features/connection/RefusedCard.d.mts +5 -0
- package/dist/web/features/connection/RefusedCard.d.mts.map +1 -0
- package/dist/web/features/connection/RefusedCard.mjs +76 -0
- package/dist/web/features/connection/RefusedCard.mjs.map +1 -0
- package/dist/web/features/dialogs/DialogOverlay.cjs +164 -0
- package/dist/web/features/dialogs/DialogOverlay.cjs.map +1 -0
- package/dist/web/features/dialogs/DialogOverlay.d.mts +15 -0
- package/dist/web/features/dialogs/DialogOverlay.d.mts.map +1 -0
- package/dist/web/features/dialogs/DialogOverlay.mjs +164 -0
- package/dist/web/features/dialogs/DialogOverlay.mjs.map +1 -0
- package/dist/web/features/leader/CommandPalette.cjs +390 -0
- package/dist/web/features/leader/CommandPalette.cjs.map +1 -0
- package/dist/web/features/leader/CommandPalette.d.mts +14 -0
- package/dist/web/features/leader/CommandPalette.d.mts.map +1 -0
- package/dist/web/features/leader/CommandPalette.mjs +390 -0
- package/dist/web/features/leader/CommandPalette.mjs.map +1 -0
- package/dist/web/features/remote/DevProxyTargets.cjs +122 -0
- package/dist/web/features/remote/DevProxyTargets.cjs.map +1 -0
- package/dist/web/features/remote/DevProxyTargets.d.mts +15 -0
- package/dist/web/features/remote/DevProxyTargets.d.mts.map +1 -0
- package/dist/web/features/remote/DevProxyTargets.mjs +122 -0
- package/dist/web/features/remote/DevProxyTargets.mjs.map +1 -0
- package/dist/web/features/remote/HandoverProgress.cjs +28 -0
- package/dist/web/features/remote/HandoverProgress.cjs.map +1 -0
- package/dist/web/features/remote/HandoverProgress.d.mts +12 -0
- package/dist/web/features/remote/HandoverProgress.d.mts.map +1 -0
- package/dist/web/features/remote/HandoverProgress.mjs +28 -0
- package/dist/web/features/remote/HandoverProgress.mjs.map +1 -0
- package/dist/web/features/remote/PairedDeviceList.cjs +37 -0
- package/dist/web/features/remote/PairedDeviceList.cjs.map +1 -0
- package/dist/web/features/remote/PairedDeviceList.d.mts +5 -0
- package/dist/web/features/remote/PairedDeviceList.d.mts.map +1 -0
- package/dist/web/features/remote/PairedDeviceList.mjs +37 -0
- package/dist/web/features/remote/PairedDeviceList.mjs.map +1 -0
- package/dist/web/features/remote/PairingApprovalDialog.cjs +65 -0
- package/dist/web/features/remote/PairingApprovalDialog.cjs.map +1 -0
- package/dist/web/features/remote/PairingApprovalDialog.d.mts +11 -0
- package/dist/web/features/remote/PairingApprovalDialog.d.mts.map +1 -0
- package/dist/web/features/remote/PairingApprovalDialog.mjs +65 -0
- package/dist/web/features/remote/PairingApprovalDialog.mjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessDialog.cjs +83 -0
- package/dist/web/features/remote/RemoteAccessDialog.cjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessDialog.d.mts +11 -0
- package/dist/web/features/remote/RemoteAccessDialog.d.mts.map +1 -0
- package/dist/web/features/remote/RemoteAccessDialog.mjs +83 -0
- package/dist/web/features/remote/RemoteAccessDialog.mjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessOptions.cjs +154 -0
- package/dist/web/features/remote/RemoteAccessOptions.cjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessOptions.d.mts +11 -0
- package/dist/web/features/remote/RemoteAccessOptions.d.mts.map +1 -0
- package/dist/web/features/remote/RemoteAccessOptions.mjs +154 -0
- package/dist/web/features/remote/RemoteAccessOptions.mjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessPairing.cjs +93 -0
- package/dist/web/features/remote/RemoteAccessPairing.cjs.map +1 -0
- package/dist/web/features/remote/RemoteAccessPairing.d.mts +5 -0
- package/dist/web/features/remote/RemoteAccessPairing.d.mts.map +1 -0
- package/dist/web/features/remote/RemoteAccessPairing.mjs +93 -0
- package/dist/web/features/remote/RemoteAccessPairing.mjs.map +1 -0
- package/dist/web/features/remote/SandboxWorkspaces.cjs +87 -0
- package/dist/web/features/remote/SandboxWorkspaces.cjs.map +1 -0
- package/dist/web/features/remote/SandboxWorkspaces.d.mts +7 -0
- package/dist/web/features/remote/SandboxWorkspaces.d.mts.map +1 -0
- package/dist/web/features/remote/SandboxWorkspaces.mjs +87 -0
- package/dist/web/features/remote/SandboxWorkspaces.mjs.map +1 -0
- package/dist/web/features/remote/TrustedDeviceList.cjs +65 -0
- package/dist/web/features/remote/TrustedDeviceList.cjs.map +1 -0
- package/dist/web/features/remote/TrustedDeviceList.d.mts +13 -0
- package/dist/web/features/remote/TrustedDeviceList.d.mts.map +1 -0
- package/dist/web/features/remote/TrustedDeviceList.mjs +64 -0
- package/dist/web/features/remote/TrustedDeviceList.mjs.map +1 -0
- package/dist/web/features/selection/SelectionBar.cjs +401 -0
- package/dist/web/features/selection/SelectionBar.cjs.map +1 -0
- package/dist/web/features/selection/SelectionBar.d.mts +14 -0
- package/dist/web/features/selection/SelectionBar.d.mts.map +1 -0
- package/dist/web/features/selection/SelectionBar.mjs +400 -0
- package/dist/web/features/selection/SelectionBar.mjs.map +1 -0
- package/dist/web/features/session/AgentLockPanel.cjs +31 -0
- package/dist/web/features/session/AgentLockPanel.cjs.map +1 -0
- package/dist/web/features/session/AgentLockPanel.mjs +31 -0
- package/dist/web/features/session/AgentLockPanel.mjs.map +1 -0
- package/dist/web/features/session/Composer.cjs +808 -0
- package/dist/web/features/session/Composer.cjs.map +1 -0
- package/dist/web/features/session/Composer.d.mts +21 -0
- package/dist/web/features/session/Composer.d.mts.map +1 -0
- package/dist/web/features/session/Composer.mjs +806 -0
- package/dist/web/features/session/Composer.mjs.map +1 -0
- package/dist/web/features/session/ComposerPrompt.cjs +47 -0
- package/dist/web/features/session/ComposerPrompt.cjs.map +1 -0
- package/dist/web/features/session/ComposerPrompt.d.mts +16 -0
- package/dist/web/features/session/ComposerPrompt.d.mts.map +1 -0
- package/dist/web/features/session/ComposerPrompt.mjs +47 -0
- package/dist/web/features/session/ComposerPrompt.mjs.map +1 -0
- package/dist/web/features/session/DormantPanel.cjs +61 -0
- package/dist/web/features/session/DormantPanel.cjs.map +1 -0
- package/dist/web/features/session/DormantPanel.d.mts +8 -0
- package/dist/web/features/session/DormantPanel.d.mts.map +1 -0
- package/dist/web/features/session/DormantPanel.mjs +61 -0
- package/dist/web/features/session/DormantPanel.mjs.map +1 -0
- package/dist/web/features/session/MentionPreviews.cjs +128 -0
- package/dist/web/features/session/MentionPreviews.cjs.map +1 -0
- package/dist/web/features/session/MentionPreviews.d.mts +17 -0
- package/dist/web/features/session/MentionPreviews.d.mts.map +1 -0
- package/dist/web/features/session/MentionPreviews.mjs +127 -0
- package/dist/web/features/session/MentionPreviews.mjs.map +1 -0
- package/dist/web/features/session/MessageMarkdown.cjs +20 -0
- package/dist/web/features/session/MessageMarkdown.cjs.map +1 -0
- package/dist/web/features/session/MessageMarkdown.d.mts +19 -0
- package/dist/web/features/session/MessageMarkdown.d.mts.map +1 -0
- package/dist/web/features/session/MessageMarkdown.mjs +20 -0
- package/dist/web/features/session/MessageMarkdown.mjs.map +1 -0
- package/dist/web/features/session/QueueSheet.cjs +189 -0
- package/dist/web/features/session/QueueSheet.cjs.map +1 -0
- package/dist/web/features/session/QueueSheet.d.mts +16 -0
- package/dist/web/features/session/QueueSheet.d.mts.map +1 -0
- package/dist/web/features/session/QueueSheet.mjs +189 -0
- package/dist/web/features/session/QueueSheet.mjs.map +1 -0
- package/dist/web/features/session/SessionActivity.cjs +88 -0
- package/dist/web/features/session/SessionActivity.cjs.map +1 -0
- package/dist/web/features/session/SessionActivity.d.mts +16 -0
- package/dist/web/features/session/SessionActivity.d.mts.map +1 -0
- package/dist/web/features/session/SessionActivity.mjs +87 -0
- package/dist/web/features/session/SessionActivity.mjs.map +1 -0
- package/dist/web/features/session/SessionTranscriptView.cjs +34 -0
- package/dist/web/features/session/SessionTranscriptView.cjs.map +1 -0
- package/dist/web/features/session/SessionTranscriptView.d.mts +16 -0
- package/dist/web/features/session/SessionTranscriptView.d.mts.map +1 -0
- package/dist/web/features/session/SessionTranscriptView.mjs +34 -0
- package/dist/web/features/session/SessionTranscriptView.mjs.map +1 -0
- package/dist/web/features/session/ThreadView.cjs +40 -0
- package/dist/web/features/session/ThreadView.cjs.map +1 -0
- package/dist/web/features/session/ThreadView.d.mts +18 -0
- package/dist/web/features/session/ThreadView.d.mts.map +1 -0
- package/dist/web/features/session/ThreadView.mjs +40 -0
- package/dist/web/features/session/ThreadView.mjs.map +1 -0
- package/dist/web/features/session/Timeline.cjs +620 -0
- package/dist/web/features/session/Timeline.cjs.map +1 -0
- package/dist/web/features/session/Timeline.d.mts +28 -0
- package/dist/web/features/session/Timeline.d.mts.map +1 -0
- package/dist/web/features/session/Timeline.mjs +619 -0
- package/dist/web/features/session/Timeline.mjs.map +1 -0
- package/dist/web/features/session/ToolCard.cjs +210 -0
- package/dist/web/features/session/ToolCard.cjs.map +1 -0
- package/dist/web/features/session/ToolCard.d.mts +16 -0
- package/dist/web/features/session/ToolCard.d.mts.map +1 -0
- package/dist/web/features/session/ToolCard.mjs +210 -0
- package/dist/web/features/session/ToolCard.mjs.map +1 -0
- package/dist/web/features/session/session.fixture.cjs +76 -0
- package/dist/web/features/session/session.fixture.cjs.map +1 -0
- package/dist/web/features/session/session.fixture.d.mts +6 -0
- package/dist/web/features/session/session.fixture.d.mts.map +1 -0
- package/dist/web/features/session/session.fixture.mjs +74 -0
- package/dist/web/features/session/session.fixture.mjs.map +1 -0
- package/dist/web/features/sessions/NewSessionDialog.cjs +70 -0
- package/dist/web/features/sessions/NewSessionDialog.cjs.map +1 -0
- package/dist/web/features/sessions/NewSessionDialog.d.mts +9 -0
- package/dist/web/features/sessions/NewSessionDialog.d.mts.map +1 -0
- package/dist/web/features/sessions/NewSessionDialog.mjs +70 -0
- package/dist/web/features/sessions/NewSessionDialog.mjs.map +1 -0
- package/dist/web/features/sessions/ResumeSessionDialog.cjs +131 -0
- package/dist/web/features/sessions/ResumeSessionDialog.cjs.map +1 -0
- package/dist/web/features/sessions/ResumeSessionDialog.d.mts +14 -0
- package/dist/web/features/sessions/ResumeSessionDialog.d.mts.map +1 -0
- package/dist/web/features/sessions/ResumeSessionDialog.mjs +131 -0
- package/dist/web/features/sessions/ResumeSessionDialog.mjs.map +1 -0
- package/dist/web/features/sessions/SessionRailDialogs.cjs +62 -0
- package/dist/web/features/sessions/SessionRailDialogs.cjs.map +1 -0
- package/dist/web/features/sessions/SessionRailDialogs.d.mts +10 -0
- package/dist/web/features/sessions/SessionRailDialogs.d.mts.map +1 -0
- package/dist/web/features/sessions/SessionRailDialogs.mjs +62 -0
- package/dist/web/features/sessions/SessionRailDialogs.mjs.map +1 -0
- package/dist/web/features/sessions/WelcomePanel.cjs +42 -0
- package/dist/web/features/sessions/WelcomePanel.cjs.map +1 -0
- package/dist/web/features/sessions/WelcomePanel.d.mts +16 -0
- package/dist/web/features/sessions/WelcomePanel.d.mts.map +1 -0
- package/dist/web/features/sessions/WelcomePanel.mjs +42 -0
- package/dist/web/features/sessions/WelcomePanel.mjs.map +1 -0
- package/dist/web/features/sessions/useNewSessionActions.cjs +38 -0
- package/dist/web/features/sessions/useNewSessionActions.cjs.map +1 -0
- package/dist/web/features/sessions/useNewSessionActions.d.mts +12 -0
- package/dist/web/features/sessions/useNewSessionActions.d.mts.map +1 -0
- package/dist/web/features/sessions/useNewSessionActions.mjs +38 -0
- package/dist/web/features/sessions/useNewSessionActions.mjs.map +1 -0
- package/dist/web/features/sessions/useSessionRail.cjs +302 -0
- package/dist/web/features/sessions/useSessionRail.cjs.map +1 -0
- package/dist/web/features/sessions/useSessionRail.d.mts +14 -0
- package/dist/web/features/sessions/useSessionRail.d.mts.map +1 -0
- package/dist/web/features/sessions/useSessionRail.mjs +302 -0
- package/dist/web/features/sessions/useSessionRail.mjs.map +1 -0
- package/dist/web/features/settings/AppearanceSettings.cjs +126 -0
- package/dist/web/features/settings/AppearanceSettings.cjs.map +1 -0
- package/dist/web/features/settings/AppearanceSettings.d.mts +12 -0
- package/dist/web/features/settings/AppearanceSettings.d.mts.map +1 -0
- package/dist/web/features/settings/AppearanceSettings.mjs +126 -0
- package/dist/web/features/settings/AppearanceSettings.mjs.map +1 -0
- package/dist/web/features/settings/ContributedSettings.cjs +257 -0
- package/dist/web/features/settings/ContributedSettings.cjs.map +1 -0
- package/dist/web/features/settings/ContributedSettings.d.mts +14 -0
- package/dist/web/features/settings/ContributedSettings.d.mts.map +1 -0
- package/dist/web/features/settings/ContributedSettings.mjs +257 -0
- package/dist/web/features/settings/ContributedSettings.mjs.map +1 -0
- package/dist/web/features/settings/ImageSettings.cjs +146 -0
- package/dist/web/features/settings/ImageSettings.cjs.map +1 -0
- package/dist/web/features/settings/ImageSettings.d.mts +12 -0
- package/dist/web/features/settings/ImageSettings.d.mts.map +1 -0
- package/dist/web/features/settings/ImageSettings.mjs +146 -0
- package/dist/web/features/settings/ImageSettings.mjs.map +1 -0
- package/dist/web/features/settings/LoginFlowDialog.cjs +226 -0
- package/dist/web/features/settings/LoginFlowDialog.cjs.map +1 -0
- package/dist/web/features/settings/LoginFlowDialog.d.mts +15 -0
- package/dist/web/features/settings/LoginFlowDialog.d.mts.map +1 -0
- package/dist/web/features/settings/LoginFlowDialog.mjs +225 -0
- package/dist/web/features/settings/LoginFlowDialog.mjs.map +1 -0
- package/dist/web/features/settings/NotificationSettings.cjs +69 -0
- package/dist/web/features/settings/NotificationSettings.cjs.map +1 -0
- package/dist/web/features/settings/NotificationSettings.d.mts +5 -0
- package/dist/web/features/settings/NotificationSettings.d.mts.map +1 -0
- package/dist/web/features/settings/NotificationSettings.mjs +69 -0
- package/dist/web/features/settings/NotificationSettings.mjs.map +1 -0
- package/dist/web/features/settings/PluginSettings.cjs +106 -0
- package/dist/web/features/settings/PluginSettings.cjs.map +1 -0
- package/dist/web/features/settings/PluginSettings.d.mts +10 -0
- package/dist/web/features/settings/PluginSettings.d.mts.map +1 -0
- package/dist/web/features/settings/PluginSettings.mjs +106 -0
- package/dist/web/features/settings/PluginSettings.mjs.map +1 -0
- package/dist/web/features/settings/ProviderSettings.cjs +323 -0
- package/dist/web/features/settings/ProviderSettings.cjs.map +1 -0
- package/dist/web/features/settings/ProviderSettings.d.mts +9 -0
- package/dist/web/features/settings/ProviderSettings.d.mts.map +1 -0
- package/dist/web/features/settings/ProviderSettings.mjs +323 -0
- package/dist/web/features/settings/ProviderSettings.mjs.map +1 -0
- package/dist/web/features/settings/RemoteControlSettings.cjs +50 -0
- package/dist/web/features/settings/RemoteControlSettings.cjs.map +1 -0
- package/dist/web/features/settings/RemoteControlSettings.d.mts +5 -0
- package/dist/web/features/settings/RemoteControlSettings.d.mts.map +1 -0
- package/dist/web/features/settings/RemoteControlSettings.mjs +50 -0
- package/dist/web/features/settings/RemoteControlSettings.mjs.map +1 -0
- package/dist/web/features/settings/RepositorySettings.cjs +318 -0
- package/dist/web/features/settings/RepositorySettings.cjs.map +1 -0
- package/dist/web/features/settings/RepositorySettings.d.mts +7 -0
- package/dist/web/features/settings/RepositorySettings.d.mts.map +1 -0
- package/dist/web/features/settings/RepositorySettings.mjs +318 -0
- package/dist/web/features/settings/RepositorySettings.mjs.map +1 -0
- package/dist/web/features/settings/RepositoryWorkspace.cjs +160 -0
- package/dist/web/features/settings/RepositoryWorkspace.cjs.map +1 -0
- package/dist/web/features/settings/RepositoryWorkspace.d.mts +10 -0
- package/dist/web/features/settings/RepositoryWorkspace.d.mts.map +1 -0
- package/dist/web/features/settings/RepositoryWorkspace.mjs +160 -0
- package/dist/web/features/settings/RepositoryWorkspace.mjs.map +1 -0
- package/dist/web/features/settings/SessionMcpSettings.cjs +488 -0
- package/dist/web/features/settings/SessionMcpSettings.cjs.map +1 -0
- package/dist/web/features/settings/SessionMcpSettings.d.mts +5 -0
- package/dist/web/features/settings/SessionMcpSettings.d.mts.map +1 -0
- package/dist/web/features/settings/SessionMcpSettings.mjs +488 -0
- package/dist/web/features/settings/SessionMcpSettings.mjs.map +1 -0
- package/dist/web/features/settings/SettingsMenu.cjs +135 -0
- package/dist/web/features/settings/SettingsMenu.cjs.map +1 -0
- package/dist/web/features/settings/SettingsMenu.d.mts +9 -0
- package/dist/web/features/settings/SettingsMenu.d.mts.map +1 -0
- package/dist/web/features/settings/SettingsMenu.mjs +135 -0
- package/dist/web/features/settings/SettingsMenu.mjs.map +1 -0
- package/dist/web/features/settings/SettingsPanelHost.cjs +32 -0
- package/dist/web/features/settings/SettingsPanelHost.cjs.map +1 -0
- package/dist/web/features/settings/SettingsPanelHost.d.mts +8 -0
- package/dist/web/features/settings/SettingsPanelHost.d.mts.map +1 -0
- package/dist/web/features/settings/SettingsPanelHost.mjs +32 -0
- package/dist/web/features/settings/SettingsPanelHost.mjs.map +1 -0
- package/dist/web/features/settings/TemplateSettings.cjs +177 -0
- package/dist/web/features/settings/TemplateSettings.cjs.map +1 -0
- package/dist/web/features/settings/TemplateSettings.d.mts +8 -0
- package/dist/web/features/settings/TemplateSettings.d.mts.map +1 -0
- package/dist/web/features/settings/TemplateSettings.mjs +177 -0
- package/dist/web/features/settings/TemplateSettings.mjs.map +1 -0
- package/dist/web/features/settings/TunnelSettings.cjs +182 -0
- package/dist/web/features/settings/TunnelSettings.cjs.map +1 -0
- package/dist/web/features/settings/TunnelSettings.d.mts +8 -0
- package/dist/web/features/settings/TunnelSettings.d.mts.map +1 -0
- package/dist/web/features/settings/TunnelSettings.mjs +182 -0
- package/dist/web/features/settings/TunnelSettings.mjs.map +1 -0
- package/dist/web/features/settings/settings.fixture.cjs +230 -0
- package/dist/web/features/settings/settings.fixture.cjs.map +1 -0
- package/dist/web/features/settings/settings.fixture.d.mts +6 -0
- package/dist/web/features/settings/settings.fixture.d.mts.map +1 -0
- package/dist/web/features/settings/settings.fixture.mjs +223 -0
- package/dist/web/features/settings/settings.fixture.mjs.map +1 -0
- package/dist/web/features/status/TopBar.cjs +200 -0
- package/dist/web/features/status/TopBar.cjs.map +1 -0
- package/dist/web/features/status/TopBar.d.mts +11 -0
- package/dist/web/features/status/TopBar.d.mts.map +1 -0
- package/dist/web/features/status/TopBar.mjs +200 -0
- package/dist/web/features/status/TopBar.mjs.map +1 -0
- package/dist/web/lib/authApi.cjs +77 -0
- package/dist/web/lib/authApi.cjs.map +1 -0
- package/dist/web/lib/authApi.d.mts +28 -0
- package/dist/web/lib/authApi.d.mts.map +1 -0
- package/dist/web/lib/authApi.mjs +72 -0
- package/dist/web/lib/authApi.mjs.map +1 -0
- package/dist/web/lib/browserNotifications.cjs +37 -0
- package/dist/web/lib/browserNotifications.cjs.map +1 -0
- package/dist/web/lib/browserNotifications.d.mts +12 -0
- package/dist/web/lib/browserNotifications.d.mts.map +1 -0
- package/dist/web/lib/browserNotifications.mjs +35 -0
- package/dist/web/lib/browserNotifications.mjs.map +1 -0
- package/dist/web/lib/browserTelemetry.cjs +158 -0
- package/dist/web/lib/browserTelemetry.cjs.map +1 -0
- package/dist/web/lib/browserTelemetry.d.mts +28 -0
- package/dist/web/lib/browserTelemetry.d.mts.map +1 -0
- package/dist/web/lib/browserTelemetry.mjs +154 -0
- package/dist/web/lib/browserTelemetry.mjs.map +1 -0
- package/dist/web/lib/commands.cjs +176 -0
- package/dist/web/lib/commands.cjs.map +1 -0
- package/dist/web/lib/commands.d.mts +53 -0
- package/dist/web/lib/commands.d.mts.map +1 -0
- package/dist/web/lib/commands.mjs +153 -0
- package/dist/web/lib/commands.mjs.map +1 -0
- package/dist/web/lib/composerSubmissions.cjs +20 -0
- package/dist/web/lib/composerSubmissions.cjs.map +1 -0
- package/dist/web/lib/composerSubmissions.d.mts +7 -0
- package/dist/web/lib/composerSubmissions.d.mts.map +1 -0
- package/dist/web/lib/composerSubmissions.mjs +19 -0
- package/dist/web/lib/composerSubmissions.mjs.map +1 -0
- package/dist/web/lib/composition.cjs +403 -0
- package/dist/web/lib/composition.cjs.map +1 -0
- package/dist/web/lib/composition.d.mts +137 -0
- package/dist/web/lib/composition.d.mts.map +1 -0
- package/dist/web/lib/composition.mjs +392 -0
- package/dist/web/lib/composition.mjs.map +1 -0
- package/dist/web/lib/contextComposition.cjs +132 -0
- package/dist/web/lib/contextComposition.cjs.map +1 -0
- package/dist/web/lib/contextComposition.d.mts +75 -0
- package/dist/web/lib/contextComposition.d.mts.map +1 -0
- package/dist/web/lib/contextComposition.mjs +127 -0
- package/dist/web/lib/contextComposition.mjs.map +1 -0
- package/dist/web/lib/contextDetailApi.cjs +61 -0
- package/dist/web/lib/contextDetailApi.cjs.map +1 -0
- package/dist/web/lib/contextDetailApi.d.mts +12 -0
- package/dist/web/lib/contextDetailApi.d.mts.map +1 -0
- package/dist/web/lib/contextDetailApi.mjs +61 -0
- package/dist/web/lib/contextDetailApi.mjs.map +1 -0
- package/dist/web/lib/dashboardRenderers.cjs +9 -0
- package/dist/web/lib/dashboardRenderers.cjs.map +1 -0
- package/dist/web/lib/dashboardRenderers.d.mts +12 -0
- package/dist/web/lib/dashboardRenderers.d.mts.map +1 -0
- package/dist/web/lib/dashboardRenderers.mjs +9 -0
- package/dist/web/lib/dashboardRenderers.mjs.map +1 -0
- package/dist/web/lib/dashboardRoute.cjs +27 -0
- package/dist/web/lib/dashboardRoute.cjs.map +1 -0
- package/dist/web/lib/dashboardRoute.d.mts +29 -0
- package/dist/web/lib/dashboardRoute.d.mts.map +1 -0
- package/dist/web/lib/dashboardRoute.mjs +26 -0
- package/dist/web/lib/dashboardRoute.mjs.map +1 -0
- package/dist/web/lib/dashboardTranscript.cjs +15 -0
- package/dist/web/lib/dashboardTranscript.cjs.map +1 -0
- package/dist/web/lib/dashboardTranscript.d.mts +6 -0
- package/dist/web/lib/dashboardTranscript.d.mts.map +1 -0
- package/dist/web/lib/dashboardTranscript.mjs +14 -0
- package/dist/web/lib/dashboardTranscript.mjs.map +1 -0
- package/dist/web/lib/devProxyApi.cjs +74 -0
- package/dist/web/lib/devProxyApi.cjs.map +1 -0
- package/dist/web/lib/devProxyApi.d.mts +21 -0
- package/dist/web/lib/devProxyApi.d.mts.map +1 -0
- package/dist/web/lib/devProxyApi.mjs +72 -0
- package/dist/web/lib/devProxyApi.mjs.map +1 -0
- package/dist/web/lib/fileMentions.cjs +30 -0
- package/dist/web/lib/fileMentions.cjs.map +1 -0
- package/dist/web/lib/fileMentions.d.mts +13 -0
- package/dist/web/lib/fileMentions.d.mts.map +1 -0
- package/dist/web/lib/fileMentions.mjs +29 -0
- package/dist/web/lib/fileMentions.mjs.map +1 -0
- package/dist/web/lib/hubApi.cjs +283 -0
- package/dist/web/lib/hubApi.cjs.map +1 -0
- package/dist/web/lib/hubApi.d.mts +109 -0
- package/dist/web/lib/hubApi.d.mts.map +1 -0
- package/dist/web/lib/hubApi.mjs +268 -0
- package/dist/web/lib/hubApi.mjs.map +1 -0
- package/dist/web/lib/leaderTree.cjs +150 -0
- package/dist/web/lib/leaderTree.cjs.map +1 -0
- package/dist/web/lib/leaderTree.d.mts +41 -0
- package/dist/web/lib/leaderTree.d.mts.map +1 -0
- package/dist/web/lib/leaderTree.mjs +149 -0
- package/dist/web/lib/leaderTree.mjs.map +1 -0
- package/dist/web/lib/livePush.cjs +97 -0
- package/dist/web/lib/livePush.cjs.map +1 -0
- package/dist/web/lib/livePush.d.mts +10 -0
- package/dist/web/lib/livePush.d.mts.map +1 -0
- package/dist/web/lib/livePush.mjs +94 -0
- package/dist/web/lib/livePush.mjs.map +1 -0
- package/dist/web/lib/modelContextAdapter.cjs +63 -0
- package/dist/web/lib/modelContextAdapter.cjs.map +1 -0
- package/dist/web/lib/modelContextAdapter.d.mts +11 -0
- package/dist/web/lib/modelContextAdapter.d.mts.map +1 -0
- package/dist/web/lib/modelContextAdapter.mjs +62 -0
- package/dist/web/lib/modelContextAdapter.mjs.map +1 -0
- package/dist/web/lib/piTransport.cjs +103 -0
- package/dist/web/lib/piTransport.cjs.map +1 -0
- package/dist/web/lib/piTransport.d.mts +8 -0
- package/dist/web/lib/piTransport.d.mts.map +1 -0
- package/dist/web/lib/piTransport.mjs +102 -0
- package/dist/web/lib/piTransport.mjs.map +1 -0
- package/dist/web/lib/pluginCompositions.cjs +57 -0
- package/dist/web/lib/pluginCompositions.cjs.map +1 -0
- package/dist/web/lib/pluginCompositions.d.mts +37 -0
- package/dist/web/lib/pluginCompositions.d.mts.map +1 -0
- package/dist/web/lib/pluginCompositions.mjs +52 -0
- package/dist/web/lib/pluginCompositions.mjs.map +1 -0
- package/dist/web/lib/pluginRegistry.cjs +675 -0
- package/dist/web/lib/pluginRegistry.cjs.map +1 -0
- package/dist/web/lib/pluginRegistry.d.mts +155 -0
- package/dist/web/lib/pluginRegistry.d.mts.map +1 -0
- package/dist/web/lib/pluginRegistry.mjs +633 -0
- package/dist/web/lib/pluginRegistry.mjs.map +1 -0
- package/dist/web/lib/pluginScopes.cjs +48 -0
- package/dist/web/lib/pluginScopes.cjs.map +1 -0
- package/dist/web/lib/pluginScopes.d.mts +8 -0
- package/dist/web/lib/pluginScopes.d.mts.map +1 -0
- package/dist/web/lib/pluginScopes.mjs +47 -0
- package/dist/web/lib/pluginScopes.mjs.map +1 -0
- package/dist/web/lib/pluginSlotProps.cjs +83 -0
- package/dist/web/lib/pluginSlotProps.cjs.map +1 -0
- package/dist/web/lib/pluginSlotProps.d.mts +21 -0
- package/dist/web/lib/pluginSlotProps.d.mts.map +1 -0
- package/dist/web/lib/pluginSlotProps.mjs +82 -0
- package/dist/web/lib/pluginSlotProps.mjs.map +1 -0
- package/dist/web/lib/promptFocus.cjs +30 -0
- package/dist/web/lib/promptFocus.cjs.map +1 -0
- package/dist/web/lib/promptFocus.d.mts +7 -0
- package/dist/web/lib/promptFocus.d.mts.map +1 -0
- package/dist/web/lib/promptFocus.mjs +29 -0
- package/dist/web/lib/promptFocus.mjs.map +1 -0
- package/dist/web/lib/protocolHubSocket.cjs +107 -0
- package/dist/web/lib/protocolHubSocket.cjs.map +1 -0
- package/dist/web/lib/protocolHubSocket.d.mts +18 -0
- package/dist/web/lib/protocolHubSocket.d.mts.map +1 -0
- package/dist/web/lib/protocolHubSocket.mjs +107 -0
- package/dist/web/lib/protocolHubSocket.mjs.map +1 -0
- package/dist/web/lib/protocolTimeline.cjs +86 -0
- package/dist/web/lib/protocolTimeline.cjs.map +1 -0
- package/dist/web/lib/protocolTimeline.d.mts +9 -0
- package/dist/web/lib/protocolTimeline.d.mts.map +1 -0
- package/dist/web/lib/protocolTimeline.mjs +85 -0
- package/dist/web/lib/protocolTimeline.mjs.map +1 -0
- package/dist/web/lib/qrMatrix.cjs +37 -0
- package/dist/web/lib/qrMatrix.cjs.map +1 -0
- package/dist/web/lib/qrMatrix.d.mts +5 -0
- package/dist/web/lib/qrMatrix.d.mts.map +1 -0
- package/dist/web/lib/qrMatrix.mjs +35 -0
- package/dist/web/lib/qrMatrix.mjs.map +1 -0
- package/dist/web/lib/remoteApi.cjs +100 -0
- package/dist/web/lib/remoteApi.cjs.map +1 -0
- package/dist/web/lib/remoteApi.d.mts +45 -0
- package/dist/web/lib/remoteApi.d.mts.map +1 -0
- package/dist/web/lib/remoteApi.mjs +92 -0
- package/dist/web/lib/remoteApi.mjs.map +1 -0
- package/dist/web/lib/sealedSession.cjs +81 -0
- package/dist/web/lib/sealedSession.cjs.map +1 -0
- package/dist/web/lib/sealedSession.d.mts +24 -0
- package/dist/web/lib/sealedSession.d.mts.map +1 -0
- package/dist/web/lib/sealedSession.mjs +75 -0
- package/dist/web/lib/sealedSession.mjs.map +1 -0
- package/dist/web/lib/sessionActivityRenderer.cjs +19 -0
- package/dist/web/lib/sessionActivityRenderer.cjs.map +1 -0
- package/dist/web/lib/sessionActivityRenderer.d.mts +10 -0
- package/dist/web/lib/sessionActivityRenderer.d.mts.map +1 -0
- package/dist/web/lib/sessionActivityRenderer.mjs +17 -0
- package/dist/web/lib/sessionActivityRenderer.mjs.map +1 -0
- package/dist/web/lib/sessionAsset.cjs +45 -0
- package/dist/web/lib/sessionAsset.cjs.map +1 -0
- package/dist/web/lib/sessionAsset.d.mts +17 -0
- package/dist/web/lib/sessionAsset.d.mts.map +1 -0
- package/dist/web/lib/sessionAsset.mjs +44 -0
- package/dist/web/lib/sessionAsset.mjs.map +1 -0
- package/dist/web/lib/sessionAvatar.cjs +18 -0
- package/dist/web/lib/sessionAvatar.cjs.map +1 -0
- package/dist/web/lib/sessionAvatar.d.mts +10 -0
- package/dist/web/lib/sessionAvatar.d.mts.map +1 -0
- package/dist/web/lib/sessionAvatar.mjs +18 -0
- package/dist/web/lib/sessionAvatar.mjs.map +1 -0
- package/dist/web/lib/sessionMcpApi.cjs +120 -0
- package/dist/web/lib/sessionMcpApi.cjs.map +1 -0
- package/dist/web/lib/sessionMcpApi.d.mts +27 -0
- package/dist/web/lib/sessionMcpApi.d.mts.map +1 -0
- package/dist/web/lib/sessionMcpApi.mjs +114 -0
- package/dist/web/lib/sessionMcpApi.mjs.map +1 -0
- package/dist/web/lib/sessionMcpPrompt.cjs +24 -0
- package/dist/web/lib/sessionMcpPrompt.cjs.map +1 -0
- package/dist/web/lib/sessionMcpPrompt.mjs +23 -0
- package/dist/web/lib/sessionMcpPrompt.mjs.map +1 -0
- package/dist/web/lib/sessionModel.cjs +970 -0
- package/dist/web/lib/sessionModel.cjs.map +1 -0
- package/dist/web/lib/sessionModel.d.mts +254 -0
- package/dist/web/lib/sessionModel.d.mts.map +1 -0
- package/dist/web/lib/sessionModel.mjs +958 -0
- package/dist/web/lib/sessionModel.mjs.map +1 -0
- package/dist/web/lib/sessionProtocolCommands.cjs +196 -0
- package/dist/web/lib/sessionProtocolCommands.cjs.map +1 -0
- package/dist/web/lib/sessionProtocolCommands.d.mts +15 -0
- package/dist/web/lib/sessionProtocolCommands.d.mts.map +1 -0
- package/dist/web/lib/sessionProtocolCommands.mjs +193 -0
- package/dist/web/lib/sessionProtocolCommands.mjs.map +1 -0
- package/dist/web/lib/sessionRailModel.cjs +107 -0
- package/dist/web/lib/sessionRailModel.cjs.map +1 -0
- package/dist/web/lib/sessionRailModel.d.mts +38 -0
- package/dist/web/lib/sessionRailModel.d.mts.map +1 -0
- package/dist/web/lib/sessionRailModel.mjs +104 -0
- package/dist/web/lib/sessionRailModel.mjs.map +1 -0
- package/dist/web/lib/sessionSummary.cjs +58 -0
- package/dist/web/lib/sessionSummary.cjs.map +1 -0
- package/dist/web/lib/sessionSummary.d.mts +39 -0
- package/dist/web/lib/sessionSummary.d.mts.map +1 -0
- package/dist/web/lib/sessionSummary.mjs +54 -0
- package/dist/web/lib/sessionSummary.mjs.map +1 -0
- package/dist/web/lib/sessionTranscriptRenderer.cjs +19 -0
- package/dist/web/lib/sessionTranscriptRenderer.cjs.map +1 -0
- package/dist/web/lib/sessionTranscriptRenderer.d.mts +11 -0
- package/dist/web/lib/sessionTranscriptRenderer.d.mts.map +1 -0
- package/dist/web/lib/sessionTranscriptRenderer.mjs +17 -0
- package/dist/web/lib/sessionTranscriptRenderer.mjs.map +1 -0
- package/dist/web/lib/settingsApi.cjs +237 -0
- package/dist/web/lib/settingsApi.cjs.map +1 -0
- package/dist/web/lib/settingsApi.d.mts +57 -0
- package/dist/web/lib/settingsApi.d.mts.map +1 -0
- package/dist/web/lib/settingsApi.mjs +230 -0
- package/dist/web/lib/settingsApi.mjs.map +1 -0
- package/dist/web/lib/settingsDraft.cjs +48 -0
- package/dist/web/lib/settingsDraft.cjs.map +1 -0
- package/dist/web/lib/settingsDraft.d.mts +28 -0
- package/dist/web/lib/settingsDraft.d.mts.map +1 -0
- package/dist/web/lib/settingsDraft.mjs +45 -0
- package/dist/web/lib/settingsDraft.mjs.map +1 -0
- package/dist/web/lib/settingsSections.cjs +108 -0
- package/dist/web/lib/settingsSections.cjs.map +1 -0
- package/dist/web/lib/settingsSections.d.mts +36 -0
- package/dist/web/lib/settingsSections.d.mts.map +1 -0
- package/dist/web/lib/settingsSections.mjs +105 -0
- package/dist/web/lib/settingsSections.mjs.map +1 -0
- package/dist/web/lib/statusLine.cjs +82 -0
- package/dist/web/lib/statusLine.cjs.map +1 -0
- package/dist/web/lib/statusLine.d.mts +27 -0
- package/dist/web/lib/statusLine.d.mts.map +1 -0
- package/dist/web/lib/statusLine.mjs +79 -0
- package/dist/web/lib/statusLine.mjs.map +1 -0
- package/dist/web/lib/stepUp.cjs +41 -0
- package/dist/web/lib/stepUp.cjs.map +1 -0
- package/dist/web/lib/stepUp.d.mts +18 -0
- package/dist/web/lib/stepUp.d.mts.map +1 -0
- package/dist/web/lib/stepUp.mjs +41 -0
- package/dist/web/lib/stepUp.mjs.map +1 -0
- package/dist/web/lib/templateCatalog.cjs +123 -0
- package/dist/web/lib/templateCatalog.cjs.map +1 -0
- package/dist/web/lib/templateCatalog.d.mts +38 -0
- package/dist/web/lib/templateCatalog.d.mts.map +1 -0
- package/dist/web/lib/templateCatalog.mjs +118 -0
- package/dist/web/lib/templateCatalog.mjs.map +1 -0
- package/dist/web/lib/threadRenderer.cjs +25 -0
- package/dist/web/lib/threadRenderer.cjs.map +1 -0
- package/dist/web/lib/threadRenderer.d.mts +17 -0
- package/dist/web/lib/threadRenderer.d.mts.map +1 -0
- package/dist/web/lib/threadRenderer.mjs +23 -0
- package/dist/web/lib/threadRenderer.mjs.map +1 -0
- package/dist/web/lib/timelineGroups.cjs +83 -0
- package/dist/web/lib/timelineGroups.cjs.map +1 -0
- package/dist/web/lib/timelineGroups.d.mts +36 -0
- package/dist/web/lib/timelineGroups.d.mts.map +1 -0
- package/dist/web/lib/timelineGroups.mjs +81 -0
- package/dist/web/lib/timelineGroups.mjs.map +1 -0
- package/dist/web/lib/toolCompletionTabs.cjs +98 -0
- package/dist/web/lib/toolCompletionTabs.cjs.map +1 -0
- package/dist/web/lib/toolCompletionTabs.d.mts +14 -0
- package/dist/web/lib/toolCompletionTabs.d.mts.map +1 -0
- package/dist/web/lib/toolCompletionTabs.mjs +98 -0
- package/dist/web/lib/toolCompletionTabs.mjs.map +1 -0
- package/dist/web/lib/toolMessageProps.cjs +19 -0
- package/dist/web/lib/toolMessageProps.cjs.map +1 -0
- package/dist/web/lib/toolMessageProps.d.mts +7 -0
- package/dist/web/lib/toolMessageProps.d.mts.map +1 -0
- package/dist/web/lib/toolMessageProps.mjs +19 -0
- package/dist/web/lib/toolMessageProps.mjs.map +1 -0
- package/dist/web/lib/toolPrompt.cjs +44 -0
- package/dist/web/lib/toolPrompt.cjs.map +1 -0
- package/dist/web/lib/toolPrompt.d.mts +34 -0
- package/dist/web/lib/toolPrompt.d.mts.map +1 -0
- package/dist/web/lib/toolPrompt.mjs +44 -0
- package/dist/web/lib/toolPrompt.mjs.map +1 -0
- package/dist/web/lib/transport.cjs +57 -0
- package/dist/web/lib/transport.cjs.map +1 -0
- package/dist/web/lib/transport.d.mts +40 -0
- package/dist/web/lib/transport.d.mts.map +1 -0
- package/dist/web/lib/transport.mjs +50 -0
- package/dist/web/lib/transport.mjs.map +1 -0
- package/dist/web/lib/useSessionMcp.cjs +65 -0
- package/dist/web/lib/useSessionMcp.cjs.map +1 -0
- package/dist/web/lib/useSessionMcp.d.mts +15 -0
- package/dist/web/lib/useSessionMcp.d.mts.map +1 -0
- package/dist/web/lib/useSessionMcp.mjs +65 -0
- package/dist/web/lib/useSessionMcp.mjs.map +1 -0
- package/dist/web/lib/webauthnClient.cjs +110 -0
- package/dist/web/lib/webauthnClient.cjs.map +1 -0
- package/dist/web/lib/webauthnClient.d.mts +32 -0
- package/dist/web/lib/webauthnClient.d.mts.map +1 -0
- package/dist/web/lib/webauthnClient.mjs +106 -0
- package/dist/web/lib/webauthnClient.mjs.map +1 -0
- package/dist/web/lib/webmcpSimulator.cjs +105 -0
- package/dist/web/lib/webmcpSimulator.cjs.map +1 -0
- package/dist/web/lib/webmcpSimulator.mjs +105 -0
- package/dist/web/lib/webmcpSimulator.mjs.map +1 -0
- package/dist/web/stores/captureStore.cjs +137 -0
- package/dist/web/stores/captureStore.cjs.map +1 -0
- package/dist/web/stores/captureStore.d.mts +13 -0
- package/dist/web/stores/captureStore.d.mts.map +1 -0
- package/dist/web/stores/captureStore.mjs +133 -0
- package/dist/web/stores/captureStore.mjs.map +1 -0
- package/dist/web/stores/composerStore.cjs +390 -0
- package/dist/web/stores/composerStore.cjs.map +1 -0
- package/dist/web/stores/composerStore.d.mts +101 -0
- package/dist/web/stores/composerStore.d.mts.map +1 -0
- package/dist/web/stores/composerStore.mjs +370 -0
- package/dist/web/stores/composerStore.mjs.map +1 -0
- package/dist/web/stores/composerSubmissionStore.cjs +88 -0
- package/dist/web/stores/composerSubmissionStore.cjs.map +1 -0
- package/dist/web/stores/composerSubmissionStore.d.mts +11 -0
- package/dist/web/stores/composerSubmissionStore.d.mts.map +1 -0
- package/dist/web/stores/composerSubmissionStore.mjs +87 -0
- package/dist/web/stores/composerSubmissionStore.mjs.map +1 -0
- package/dist/web/stores/dashboardStateStore.cjs +35 -0
- package/dist/web/stores/dashboardStateStore.cjs.map +1 -0
- package/dist/web/stores/dashboardStateStore.d.mts +11 -0
- package/dist/web/stores/dashboardStateStore.d.mts.map +1 -0
- package/dist/web/stores/dashboardStateStore.mjs +33 -0
- package/dist/web/stores/dashboardStateStore.mjs.map +1 -0
- package/dist/web/stores/devProxyStore.cjs +76 -0
- package/dist/web/stores/devProxyStore.cjs.map +1 -0
- package/dist/web/stores/devProxyStore.d.mts +25 -0
- package/dist/web/stores/devProxyStore.d.mts.map +1 -0
- package/dist/web/stores/devProxyStore.mjs +73 -0
- package/dist/web/stores/devProxyStore.mjs.map +1 -0
- package/dist/web/stores/dialogDraftStore.cjs +38 -0
- package/dist/web/stores/dialogDraftStore.cjs.map +1 -0
- package/dist/web/stores/dialogDraftStore.d.mts +13 -0
- package/dist/web/stores/dialogDraftStore.d.mts.map +1 -0
- package/dist/web/stores/dialogDraftStore.mjs +36 -0
- package/dist/web/stores/dialogDraftStore.mjs.map +1 -0
- package/dist/web/stores/fileLinkModesStore.cjs +20 -0
- package/dist/web/stores/fileLinkModesStore.cjs.map +1 -0
- package/dist/web/stores/fileLinkModesStore.d.mts +5 -0
- package/dist/web/stores/fileLinkModesStore.d.mts.map +1 -0
- package/dist/web/stores/fileLinkModesStore.mjs +20 -0
- package/dist/web/stores/fileLinkModesStore.mjs.map +1 -0
- package/dist/web/stores/menuStore.cjs +85 -0
- package/dist/web/stores/menuStore.cjs.map +1 -0
- package/dist/web/stores/menuStore.d.mts +42 -0
- package/dist/web/stores/menuStore.d.mts.map +1 -0
- package/dist/web/stores/menuStore.mjs +79 -0
- package/dist/web/stores/menuStore.mjs.map +1 -0
- package/dist/web/stores/newSessionStore.cjs +93 -0
- package/dist/web/stores/newSessionStore.cjs.map +1 -0
- package/dist/web/stores/newSessionStore.d.mts +30 -0
- package/dist/web/stores/newSessionStore.d.mts.map +1 -0
- package/dist/web/stores/newSessionStore.mjs +86 -0
- package/dist/web/stores/newSessionStore.mjs.map +1 -0
- package/dist/web/stores/pagedTranscriptStore.cjs +235 -0
- package/dist/web/stores/pagedTranscriptStore.cjs.map +1 -0
- package/dist/web/stores/pagedTranscriptStore.d.mts +12 -0
- package/dist/web/stores/pagedTranscriptStore.d.mts.map +1 -0
- package/dist/web/stores/pagedTranscriptStore.mjs +235 -0
- package/dist/web/stores/pagedTranscriptStore.mjs.map +1 -0
- package/dist/web/stores/paletteStore.cjs +37 -0
- package/dist/web/stores/paletteStore.cjs.map +1 -0
- package/dist/web/stores/paletteStore.d.mts +14 -0
- package/dist/web/stores/paletteStore.d.mts.map +1 -0
- package/dist/web/stores/paletteStore.mjs +34 -0
- package/dist/web/stores/paletteStore.mjs.map +1 -0
- package/dist/web/stores/railDialogStore.cjs +105 -0
- package/dist/web/stores/railDialogStore.cjs.map +1 -0
- package/dist/web/stores/railDialogStore.d.mts +32 -0
- package/dist/web/stores/railDialogStore.d.mts.map +1 -0
- package/dist/web/stores/railDialogStore.mjs +97 -0
- package/dist/web/stores/railDialogStore.mjs.map +1 -0
- package/dist/web/stores/remoteAccessStore.cjs +216 -0
- package/dist/web/stores/remoteAccessStore.cjs.map +1 -0
- package/dist/web/stores/remoteAccessStore.d.mts +48 -0
- package/dist/web/stores/remoteAccessStore.d.mts.map +1 -0
- package/dist/web/stores/remoteAccessStore.mjs +202 -0
- package/dist/web/stores/remoteAccessStore.mjs.map +1 -0
- package/dist/web/stores/sessionChannelHoldsStore.cjs +43 -0
- package/dist/web/stores/sessionChannelHoldsStore.cjs.map +1 -0
- package/dist/web/stores/sessionChannelHoldsStore.d.mts +9 -0
- package/dist/web/stores/sessionChannelHoldsStore.d.mts.map +1 -0
- package/dist/web/stores/sessionChannelHoldsStore.mjs +42 -0
- package/dist/web/stores/sessionChannelHoldsStore.mjs.map +1 -0
- package/dist/web/stores/sessionStore.cjs +610 -0
- package/dist/web/stores/sessionStore.cjs.map +1 -0
- package/dist/web/stores/sessionStore.d.mts +116 -0
- package/dist/web/stores/sessionStore.d.mts.map +1 -0
- package/dist/web/stores/sessionStore.mjs +568 -0
- package/dist/web/stores/sessionStore.mjs.map +1 -0
- package/dist/web/stores/sessionsStore.cjs +272 -0
- package/dist/web/stores/sessionsStore.cjs.map +1 -0
- package/dist/web/stores/sessionsStore.d.mts +74 -0
- package/dist/web/stores/sessionsStore.d.mts.map +1 -0
- package/dist/web/stores/sessionsStore.mjs +257 -0
- package/dist/web/stores/sessionsStore.mjs.map +1 -0
- package/dist/web/stores/settingsDraftStore.cjs +138 -0
- package/dist/web/stores/settingsDraftStore.cjs.map +1 -0
- package/dist/web/stores/settingsDraftStore.d.mts +27 -0
- package/dist/web/stores/settingsDraftStore.d.mts.map +1 -0
- package/dist/web/stores/settingsDraftStore.mjs +132 -0
- package/dist/web/stores/settingsDraftStore.mjs.map +1 -0
- package/dist/web/stores/templateStore.cjs +136 -0
- package/dist/web/stores/templateStore.cjs.map +1 -0
- package/dist/web/stores/templateStore.d.mts +20 -0
- package/dist/web/stores/templateStore.d.mts.map +1 -0
- package/dist/web/stores/templateStore.mjs +131 -0
- package/dist/web/stores/templateStore.mjs.map +1 -0
- package/dist/web/stores/themeStore.cjs +42 -0
- package/dist/web/stores/themeStore.cjs.map +1 -0
- package/dist/web/stores/themeStore.d.mts +20 -0
- package/dist/web/stores/themeStore.d.mts.map +1 -0
- package/dist/web/stores/themeStore.mjs +39 -0
- package/dist/web/stores/themeStore.mjs.map +1 -0
- package/dist/web/stores/threadStore.cjs +122 -0
- package/dist/web/stores/threadStore.cjs.map +1 -0
- package/dist/web/stores/threadStore.d.mts +24 -0
- package/dist/web/stores/threadStore.d.mts.map +1 -0
- package/dist/web/stores/threadStore.mjs +114 -0
- package/dist/web/stores/threadStore.mjs.map +1 -0
- package/dist/web/stores/toolPromptStore.cjs +15 -0
- package/dist/web/stores/toolPromptStore.cjs.map +1 -0
- package/dist/web/stores/toolPromptStore.d.mts +23 -0
- package/dist/web/stores/toolPromptStore.d.mts.map +1 -0
- package/dist/web/stores/toolPromptStore.mjs +14 -0
- package/dist/web/stores/toolPromptStore.mjs.map +1 -0
- package/dist/web/stores/transientTabsStore.cjs +66 -0
- package/dist/web/stores/transientTabsStore.cjs.map +1 -0
- package/dist/web/stores/transientTabsStore.d.mts +21 -0
- package/dist/web/stores/transientTabsStore.d.mts.map +1 -0
- package/dist/web/stores/transientTabsStore.mjs +59 -0
- package/dist/web/stores/transientTabsStore.mjs.map +1 -0
- package/dist/web/stores/uiStore.cjs +47 -0
- package/dist/web/stores/uiStore.cjs.map +1 -0
- package/dist/web/stores/uiStore.d.mts +18 -0
- package/dist/web/stores/uiStore.d.mts.map +1 -0
- package/dist/web/stores/uiStore.mjs +45 -0
- package/dist/web/stores/uiStore.mjs.map +1 -0
- package/dist/web/stores/useOpenTab.cjs +31 -0
- package/dist/web/stores/useOpenTab.cjs.map +1 -0
- package/dist/web/stores/useOpenTab.d.mts +9 -0
- package/dist/web/stores/useOpenTab.d.mts.map +1 -0
- package/dist/web/stores/useOpenTab.mjs +31 -0
- package/dist/web/stores/useOpenTab.mjs.map +1 -0
- package/dist/web/stores/usePluginSlotProps.cjs +115 -0
- package/dist/web/stores/usePluginSlotProps.cjs.map +1 -0
- package/dist/web/stores/usePluginSlotProps.d.mts +6 -0
- package/dist/web/stores/usePluginSlotProps.d.mts.map +1 -0
- package/dist/web/stores/usePluginSlotProps.mjs +115 -0
- package/dist/web/stores/usePluginSlotProps.mjs.map +1 -0
- package/dist/web/stores/useToolPrompt.cjs +42 -0
- package/dist/web/stores/useToolPrompt.cjs.map +1 -0
- package/dist/web/stores/useToolPrompt.d.mts +14 -0
- package/dist/web/stores/useToolPrompt.d.mts.map +1 -0
- package/dist/web/stores/useToolPrompt.mjs +42 -0
- package/dist/web/stores/useToolPrompt.mjs.map +1 -0
- package/dist/web/stores/useWebPluginRegistry.cjs +11 -0
- package/dist/web/stores/useWebPluginRegistry.cjs.map +1 -0
- package/dist/web/stores/useWebPluginRegistry.d.mts +5 -0
- package/dist/web/stores/useWebPluginRegistry.d.mts.map +1 -0
- package/dist/web/stores/useWebPluginRegistry.mjs +11 -0
- package/dist/web/stores/useWebPluginRegistry.mjs.map +1 -0
- package/dist/web/stores/workspaceAdmissionStore.cjs +67 -0
- package/dist/web/stores/workspaceAdmissionStore.cjs.map +1 -0
- package/dist/web/stores/workspaceAdmissionStore.d.mts +24 -0
- package/dist/web/stores/workspaceAdmissionStore.d.mts.map +1 -0
- package/dist/web/stores/workspaceAdmissionStore.mjs +64 -0
- package/dist/web/stores/workspaceAdmissionStore.mjs.map +1 -0
- package/dist/web/stores/workspacesStore.cjs +83 -0
- package/dist/web/stores/workspacesStore.cjs.map +1 -0
- package/dist/web/stores/workspacesStore.d.mts +17 -0
- package/dist/web/stores/workspacesStore.d.mts.map +1 -0
- package/dist/web/stores/workspacesStore.mjs +78 -0
- package/dist/web/stores/workspacesStore.mjs.map +1 -0
- package/llms.txt +3 -0
- package/package.json +107 -0
- package/styles/dashboard.css +2 -0
- package/styles/preview.css +3 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
//#region src/web/lib/commands.ts
|
|
2
|
+
function promptCommand(message, images = []) {
|
|
3
|
+
return {
|
|
4
|
+
type: "prompt",
|
|
5
|
+
message,
|
|
6
|
+
...images.length > 0 ? { images } : {}
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function steerCommand(message, images = []) {
|
|
10
|
+
return {
|
|
11
|
+
type: "steer",
|
|
12
|
+
message,
|
|
13
|
+
...images.length > 0 ? { images } : {}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function followUpCommand(message, images = []) {
|
|
17
|
+
return {
|
|
18
|
+
type: "follow_up",
|
|
19
|
+
message,
|
|
20
|
+
...images.length > 0 ? { images } : {}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function enqueueAutomaticCommand(message, images = []) {
|
|
24
|
+
return {
|
|
25
|
+
type: "enqueue_automatic",
|
|
26
|
+
message,
|
|
27
|
+
...images.length > 0 ? { images } : {}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function removeQueuedCommand(id) {
|
|
31
|
+
return {
|
|
32
|
+
type: "remove_queued",
|
|
33
|
+
id
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function promoteQueuedCommand(id, operationId) {
|
|
37
|
+
return {
|
|
38
|
+
type: "promote_queued",
|
|
39
|
+
id,
|
|
40
|
+
...operationId === void 0 ? {} : { operationId }
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function resumeQueueCommand() {
|
|
44
|
+
return { type: "resume_queue" };
|
|
45
|
+
}
|
|
46
|
+
/** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */
|
|
47
|
+
function rewindCommand(itemId) {
|
|
48
|
+
return {
|
|
49
|
+
type: "rewind",
|
|
50
|
+
itemId
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function abortCommand(operationId) {
|
|
54
|
+
return operationId === void 0 ? { type: "abort" } : {
|
|
55
|
+
type: "abort",
|
|
56
|
+
operationId
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function clearQueueCommand() {
|
|
60
|
+
return { type: "clear_queue" };
|
|
61
|
+
}
|
|
62
|
+
function getStateCommand() {
|
|
63
|
+
return { type: "get_state" };
|
|
64
|
+
}
|
|
65
|
+
function getSessionStatsCommand() {
|
|
66
|
+
return { type: "get_session_stats" };
|
|
67
|
+
}
|
|
68
|
+
function getCommandsCommand() {
|
|
69
|
+
return { type: "get_commands" };
|
|
70
|
+
}
|
|
71
|
+
function compactCommand(customInstructions) {
|
|
72
|
+
return {
|
|
73
|
+
type: "compact",
|
|
74
|
+
...customInstructions === void 0 ? {} : { customInstructions }
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const COMPACT = "compact";
|
|
78
|
+
/**
|
|
79
|
+
* Pi's built-in slash commands that the cockpit can actually run.
|
|
80
|
+
*
|
|
81
|
+
* `get_commands` reports extension commands, prompt templates and skills, and
|
|
82
|
+
* nothing else, so the built-ins never reach the palette on their own. Nor can
|
|
83
|
+
* they be sent as prompts: `session.prompt` has no branch for them, and the
|
|
84
|
+
* TUI runs them by matching the raw typed text, so a prompt-shaped `/compact`
|
|
85
|
+
* arrives at the model as literal text. Each entry here therefore needs its
|
|
86
|
+
* own RPC frame, which is why the list holds only what is wired below rather
|
|
87
|
+
* than everything the TUI offers.
|
|
88
|
+
*/
|
|
89
|
+
const BUILTIN_COMMANDS = [{
|
|
90
|
+
name: COMPACT,
|
|
91
|
+
description: "Manually compact the session context"
|
|
92
|
+
}];
|
|
93
|
+
/**
|
|
94
|
+
* The frame a typed built-in maps to, or undefined when the text is an
|
|
95
|
+
* ordinary prompt. The argument is passed through, so `/compact keep the API
|
|
96
|
+
* decisions` reaches Pi as its custom instruction.
|
|
97
|
+
*/
|
|
98
|
+
function builtinCommandFrame(text) {
|
|
99
|
+
const matched = /^\/(\S+)(?:\s+([\s\S]*))?$/u.exec(text.trim());
|
|
100
|
+
if (matched?.[1] !== COMPACT) return void 0;
|
|
101
|
+
const argument = (matched[2] ?? "").trim();
|
|
102
|
+
return compactCommand(argument.length > 0 ? argument : void 0);
|
|
103
|
+
}
|
|
104
|
+
function getAvailableModelsCommand() {
|
|
105
|
+
return { type: "get_available_models" };
|
|
106
|
+
}
|
|
107
|
+
function getAvailableThinkingLevelsCommand() {
|
|
108
|
+
return { type: "get_available_thinking_levels" };
|
|
109
|
+
}
|
|
110
|
+
function setModelCommand(provider, modelId) {
|
|
111
|
+
return {
|
|
112
|
+
type: "set_model",
|
|
113
|
+
provider,
|
|
114
|
+
modelId
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function setThinkingLevelCommand(level) {
|
|
118
|
+
return {
|
|
119
|
+
type: "set_thinking_level",
|
|
120
|
+
level
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function setSessionNameCommand(name) {
|
|
124
|
+
return {
|
|
125
|
+
type: "set_session_name",
|
|
126
|
+
name
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function dialogValue(id, value) {
|
|
130
|
+
return {
|
|
131
|
+
type: "extension_ui_response",
|
|
132
|
+
id,
|
|
133
|
+
value
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function dialogConfirmed(id, confirmed) {
|
|
137
|
+
return {
|
|
138
|
+
type: "extension_ui_response",
|
|
139
|
+
id,
|
|
140
|
+
confirmed
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function dialogCancelled(id) {
|
|
144
|
+
return {
|
|
145
|
+
type: "extension_ui_response",
|
|
146
|
+
id,
|
|
147
|
+
cancelled: true
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
exports.BUILTIN_COMMANDS = BUILTIN_COMMANDS;
|
|
152
|
+
exports.abortCommand = abortCommand;
|
|
153
|
+
exports.builtinCommandFrame = builtinCommandFrame;
|
|
154
|
+
exports.clearQueueCommand = clearQueueCommand;
|
|
155
|
+
exports.compactCommand = compactCommand;
|
|
156
|
+
exports.dialogCancelled = dialogCancelled;
|
|
157
|
+
exports.dialogConfirmed = dialogConfirmed;
|
|
158
|
+
exports.dialogValue = dialogValue;
|
|
159
|
+
exports.enqueueAutomaticCommand = enqueueAutomaticCommand;
|
|
160
|
+
exports.followUpCommand = followUpCommand;
|
|
161
|
+
exports.getAvailableModelsCommand = getAvailableModelsCommand;
|
|
162
|
+
exports.getAvailableThinkingLevelsCommand = getAvailableThinkingLevelsCommand;
|
|
163
|
+
exports.getCommandsCommand = getCommandsCommand;
|
|
164
|
+
exports.getSessionStatsCommand = getSessionStatsCommand;
|
|
165
|
+
exports.getStateCommand = getStateCommand;
|
|
166
|
+
exports.promoteQueuedCommand = promoteQueuedCommand;
|
|
167
|
+
exports.promptCommand = promptCommand;
|
|
168
|
+
exports.removeQueuedCommand = removeQueuedCommand;
|
|
169
|
+
exports.resumeQueueCommand = resumeQueueCommand;
|
|
170
|
+
exports.rewindCommand = rewindCommand;
|
|
171
|
+
exports.setModelCommand = setModelCommand;
|
|
172
|
+
exports.setSessionNameCommand = setSessionNameCommand;
|
|
173
|
+
exports.setThinkingLevelCommand = setThinkingLevelCommand;
|
|
174
|
+
exports.steerCommand = steerCommand;
|
|
175
|
+
|
|
176
|
+
//# sourceMappingURL=commands.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.cjs","names":[],"sources":["../../../src/web/lib/commands.ts"],"sourcesContent":["type Frame = Record<string, unknown>;\n\nexport interface RpcImage {\n type: 'image';\n data: string;\n mimeType: string;\n}\n\nexport function promptCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'prompt', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function steerCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'steer', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function followUpCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'follow_up', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function enqueueAutomaticCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'enqueue_automatic', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function removeQueuedCommand(id: string): Frame {\n return { type: 'remove_queued', id };\n}\n\nexport function promoteQueuedCommand(id: string, operationId?: string): Frame {\n return { type: 'promote_queued', id, ...(operationId === undefined ? {} : { operationId }) };\n}\n\nexport function resumeQueueCommand(): Frame {\n return { type: 'resume_queue' };\n}\n\n/** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */\nexport function rewindCommand(itemId: string): Frame {\n return { type: 'rewind', itemId };\n}\n\nexport function abortCommand(operationId?: string): Frame {\n return operationId === undefined ? { type: 'abort' } : { type: 'abort', operationId };\n}\n\nexport function clearQueueCommand(): Frame {\n return { type: 'clear_queue' };\n}\n\nexport function getStateCommand(): Frame {\n return { type: 'get_state' };\n}\n\nexport function getSessionStatsCommand(): Frame {\n return { type: 'get_session_stats' };\n}\n\nexport function getCommandsCommand(): Frame {\n return { type: 'get_commands' };\n}\n\nexport function compactCommand(customInstructions?: string): Frame {\n return { type: 'compact', ...(customInstructions === undefined ? {} : { customInstructions }) };\n}\n\nconst COMPACT = 'compact';\n\n/**\n * Pi's built-in slash commands that the cockpit can actually run.\n *\n * `get_commands` reports extension commands, prompt templates and skills, and\n * nothing else, so the built-ins never reach the palette on their own. Nor can\n * they be sent as prompts: `session.prompt` has no branch for them, and the\n * TUI runs them by matching the raw typed text, so a prompt-shaped `/compact`\n * arrives at the model as literal text. Each entry here therefore needs its\n * own RPC frame, which is why the list holds only what is wired below rather\n * than everything the TUI offers.\n */\nexport const BUILTIN_COMMANDS: ReadonlyArray<{ name: string; description: string }> = [\n { name: COMPACT, description: 'Manually compact the session context' },\n];\n\n/**\n * The frame a typed built-in maps to, or undefined when the text is an\n * ordinary prompt. The argument is passed through, so `/compact keep the API\n * decisions` reaches Pi as its custom instruction.\n */\nexport function builtinCommandFrame(text: string): Frame | undefined {\n // Split on any whitespace, not a space: the composer folds text attachments\n // into the draft with newlines, so a space-only split reads the newline as\n // part of the command name and silently sends the whole thing to the model.\n const matched = /^\\/(\\S+)(?:\\s+([\\s\\S]*))?$/u.exec(text.trim());\n if (matched?.[1] !== COMPACT) return undefined;\n const argument = (matched[2] ?? '').trim();\n return compactCommand(argument.length > 0 ? argument : undefined);\n}\nexport function getAvailableModelsCommand(): Frame {\n return { type: 'get_available_models' };\n}\n\nexport function getAvailableThinkingLevelsCommand(): Frame {\n return { type: 'get_available_thinking_levels' };\n}\n\nexport function setModelCommand(provider: string, modelId: string): Frame {\n return { type: 'set_model', provider, modelId };\n}\n\nexport function setThinkingLevelCommand(level: string): Frame {\n return { type: 'set_thinking_level', level };\n}\n\nexport function setSessionNameCommand(name: string): Frame {\n return { type: 'set_session_name', name };\n}\n\nexport function dialogValue(id: string, value: string): Frame {\n return { type: 'extension_ui_response', id, value };\n}\n\nexport function dialogConfirmed(id: string, confirmed: boolean): Frame {\n return { type: 'extension_ui_response', id, confirmed };\n}\n\nexport function dialogCancelled(id: string): Frame {\n return { type: 'extension_ui_response', id, cancelled: true };\n}\n"],"mappings":";AAQA,SAAgB,cAAc,SAAiB,SAAqB,CAAC,GAAU;CAC7E,OAAO;EAAE,MAAM;EAAU;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAC7E;AAEA,SAAgB,aAAa,SAAiB,SAAqB,CAAC,GAAU;CAC5E,OAAO;EAAE,MAAM;EAAS;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAC5E;AAEA,SAAgB,gBAAgB,SAAiB,SAAqB,CAAC,GAAU;CAC/E,OAAO;EAAE,MAAM;EAAa;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAChF;AAEA,SAAgB,wBAAwB,SAAiB,SAAqB,CAAC,GAAU;CACvF,OAAO;EAAE,MAAM;EAAqB;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AACxF;AAEA,SAAgB,oBAAoB,IAAmB;CACrD,OAAO;EAAE,MAAM;EAAiB;CAAG;AACrC;AAEA,SAAgB,qBAAqB,IAAY,aAA6B;CAC5E,OAAO;EAAE,MAAM;EAAkB;EAAI,GAAI,gBAAgB,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY;CAAG;AAC7F;AAEA,SAAgB,qBAA4B;CAC1C,OAAO,EAAE,MAAM,eAAe;AAChC;;AAGA,SAAgB,cAAc,QAAuB;CACnD,OAAO;EAAE,MAAM;EAAU;CAAO;AAClC;AAEA,SAAgB,aAAa,aAA6B;CACxD,OAAO,gBAAgB,KAAA,IAAY,EAAE,MAAM,QAAQ,IAAI;EAAE,MAAM;EAAS;CAAY;AACtF;AAEA,SAAgB,oBAA2B;CACzC,OAAO,EAAE,MAAM,cAAc;AAC/B;AAEA,SAAgB,kBAAyB;CACvC,OAAO,EAAE,MAAM,YAAY;AAC7B;AAEA,SAAgB,yBAAgC;CAC9C,OAAO,EAAE,MAAM,oBAAoB;AACrC;AAEA,SAAgB,qBAA4B;CAC1C,OAAO,EAAE,MAAM,eAAe;AAChC;AAEA,SAAgB,eAAe,oBAAoC;CACjE,OAAO;EAAE,MAAM;EAAW,GAAI,uBAAuB,KAAA,IAAY,CAAC,IAAI,EAAE,mBAAmB;CAAG;AAChG;AAEA,MAAM,UAAU;;;;;;;;;;;;AAahB,MAAa,mBAAyE,CACpF;CAAE,MAAM;CAAS,aAAa;AAAuC,CACvE;;;;;;AAOA,SAAgB,oBAAoB,MAAiC;CAInE,MAAM,UAAU,8BAA8B,KAAK,KAAK,KAAK,CAAC;CAC9D,IAAI,UAAU,OAAO,SAAS,OAAO,KAAA;CACrC,MAAM,YAAY,QAAQ,MAAM,GAAA,CAAI,KAAK;CACzC,OAAO,eAAe,SAAS,SAAS,IAAI,WAAW,KAAA,CAAS;AAClE;AACA,SAAgB,4BAAmC;CACjD,OAAO,EAAE,MAAM,uBAAuB;AACxC;AAEA,SAAgB,oCAA2C;CACzD,OAAO,EAAE,MAAM,gCAAgC;AACjD;AAEA,SAAgB,gBAAgB,UAAkB,SAAwB;CACxE,OAAO;EAAE,MAAM;EAAa;EAAU;CAAQ;AAChD;AAEA,SAAgB,wBAAwB,OAAsB;CAC5D,OAAO;EAAE,MAAM;EAAsB;CAAM;AAC7C;AAEA,SAAgB,sBAAsB,MAAqB;CACzD,OAAO;EAAE,MAAM;EAAoB;CAAK;AAC1C;AAEA,SAAgB,YAAY,IAAY,OAAsB;CAC5D,OAAO;EAAE,MAAM;EAAyB;EAAI;CAAM;AACpD;AAEA,SAAgB,gBAAgB,IAAY,WAA2B;CACrE,OAAO;EAAE,MAAM;EAAyB;EAAI;CAAU;AACxD;AAEA,SAAgB,gBAAgB,IAAmB;CACjD,OAAO;EAAE,MAAM;EAAyB;EAAI,WAAW;CAAK;AAC9D"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/web/lib/commands.d.ts
|
|
2
|
+
type Frame = Record<string, unknown>;
|
|
3
|
+
export interface RpcImage {
|
|
4
|
+
type: 'image';
|
|
5
|
+
data: string;
|
|
6
|
+
mimeType: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function promptCommand(message: string, images?: RpcImage[]): Frame;
|
|
9
|
+
export declare function steerCommand(message: string, images?: RpcImage[]): Frame;
|
|
10
|
+
export declare function followUpCommand(message: string, images?: RpcImage[]): Frame;
|
|
11
|
+
export declare function enqueueAutomaticCommand(message: string, images?: RpcImage[]): Frame;
|
|
12
|
+
export declare function removeQueuedCommand(id: string): Frame;
|
|
13
|
+
export declare function promoteQueuedCommand(id: string, operationId?: string): Frame;
|
|
14
|
+
export declare function resumeQueueCommand(): Frame;
|
|
15
|
+
/** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */
|
|
16
|
+
export declare function rewindCommand(itemId: string): Frame;
|
|
17
|
+
export declare function abortCommand(operationId?: string): Frame;
|
|
18
|
+
export declare function clearQueueCommand(): Frame;
|
|
19
|
+
export declare function getStateCommand(): Frame;
|
|
20
|
+
export declare function getSessionStatsCommand(): Frame;
|
|
21
|
+
export declare function getCommandsCommand(): Frame;
|
|
22
|
+
export declare function compactCommand(customInstructions?: string): Frame;
|
|
23
|
+
/**
|
|
24
|
+
* Pi's built-in slash commands that the cockpit can actually run.
|
|
25
|
+
*
|
|
26
|
+
* `get_commands` reports extension commands, prompt templates and skills, and
|
|
27
|
+
* nothing else, so the built-ins never reach the palette on their own. Nor can
|
|
28
|
+
* they be sent as prompts: `session.prompt` has no branch for them, and the
|
|
29
|
+
* TUI runs them by matching the raw typed text, so a prompt-shaped `/compact`
|
|
30
|
+
* arrives at the model as literal text. Each entry here therefore needs its
|
|
31
|
+
* own RPC frame, which is why the list holds only what is wired below rather
|
|
32
|
+
* than everything the TUI offers.
|
|
33
|
+
*/
|
|
34
|
+
export declare const BUILTIN_COMMANDS: ReadonlyArray<{
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* The frame a typed built-in maps to, or undefined when the text is an
|
|
40
|
+
* ordinary prompt. The argument is passed through, so `/compact keep the API
|
|
41
|
+
* decisions` reaches Pi as its custom instruction.
|
|
42
|
+
*/
|
|
43
|
+
export declare function builtinCommandFrame(text: string): Frame | undefined;
|
|
44
|
+
export declare function getAvailableModelsCommand(): Frame;
|
|
45
|
+
export declare function getAvailableThinkingLevelsCommand(): Frame;
|
|
46
|
+
export declare function setModelCommand(provider: string, modelId: string): Frame;
|
|
47
|
+
export declare function setThinkingLevelCommand(level: string): Frame;
|
|
48
|
+
export declare function setSessionNameCommand(name: string): Frame;
|
|
49
|
+
export declare function dialogValue(id: string, value: string): Frame;
|
|
50
|
+
export declare function dialogConfirmed(id: string, confirmed: boolean): Frame;
|
|
51
|
+
export declare function dialogCancelled(id: string): Frame;
|
|
52
|
+
//#endregion
|
|
53
|
+
//# sourceMappingURL=commands.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.mts","names":[],"sources":["../../../src/web/lib/commands.ts"],"mappings":";KAAK,QAAQ;iBAEI;EACf;EACA;EACA;;wBAGc,cAAc,iBAAiB,SAAQ,aAAkB;wBAIzD,aAAa,iBAAiB,SAAQ,aAAkB;wBAIxD,gBAAgB,iBAAiB,SAAQ,aAAkB;wBAI3D,wBAAwB,iBAAiB,SAAQ,aAAkB;wBAInE,oBAAoB,aAAa;wBAIjC,qBAAqB,YAAY,uBAAuB;wBAIxD,sBAAsB;;wBAKtB,cAAc,iBAAiB;wBAI/B,aAAa,uBAAuB;wBAIpC,qBAAqB;wBAIrB,mBAAmB;wBAInB,0BAA0B;wBAI1B,sBAAsB;wBAItB,eAAe,8BAA8B;;;;;;;;;;;;qBAiBhD,kBAAkB;EAAgB;EAAc;;;;;;;wBAS7C,oBAAoB,eAAe;wBASnC,6BAA6B;wBAI7B,qCAAqC;wBAIrC,gBAAgB,kBAAkB,kBAAkB;wBAIpD,wBAAwB,gBAAgB;wBAIxC,sBAAsB,eAAe;wBAIrC,YAAY,YAAY,gBAAgB;wBAIxC,gBAAgB,YAAY,qBAAqB;wBAIjD,gBAAgB,aAAa"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
//#region src/web/lib/commands.ts
|
|
2
|
+
function promptCommand(message, images = []) {
|
|
3
|
+
return {
|
|
4
|
+
type: "prompt",
|
|
5
|
+
message,
|
|
6
|
+
...images.length > 0 ? { images } : {}
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function steerCommand(message, images = []) {
|
|
10
|
+
return {
|
|
11
|
+
type: "steer",
|
|
12
|
+
message,
|
|
13
|
+
...images.length > 0 ? { images } : {}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function followUpCommand(message, images = []) {
|
|
17
|
+
return {
|
|
18
|
+
type: "follow_up",
|
|
19
|
+
message,
|
|
20
|
+
...images.length > 0 ? { images } : {}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function enqueueAutomaticCommand(message, images = []) {
|
|
24
|
+
return {
|
|
25
|
+
type: "enqueue_automatic",
|
|
26
|
+
message,
|
|
27
|
+
...images.length > 0 ? { images } : {}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function removeQueuedCommand(id) {
|
|
31
|
+
return {
|
|
32
|
+
type: "remove_queued",
|
|
33
|
+
id
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function promoteQueuedCommand(id, operationId) {
|
|
37
|
+
return {
|
|
38
|
+
type: "promote_queued",
|
|
39
|
+
id,
|
|
40
|
+
...operationId === void 0 ? {} : { operationId }
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function resumeQueueCommand() {
|
|
44
|
+
return { type: "resume_queue" };
|
|
45
|
+
}
|
|
46
|
+
/** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */
|
|
47
|
+
function rewindCommand(itemId) {
|
|
48
|
+
return {
|
|
49
|
+
type: "rewind",
|
|
50
|
+
itemId
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function abortCommand(operationId) {
|
|
54
|
+
return operationId === void 0 ? { type: "abort" } : {
|
|
55
|
+
type: "abort",
|
|
56
|
+
operationId
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function clearQueueCommand() {
|
|
60
|
+
return { type: "clear_queue" };
|
|
61
|
+
}
|
|
62
|
+
function getStateCommand() {
|
|
63
|
+
return { type: "get_state" };
|
|
64
|
+
}
|
|
65
|
+
function getSessionStatsCommand() {
|
|
66
|
+
return { type: "get_session_stats" };
|
|
67
|
+
}
|
|
68
|
+
function getCommandsCommand() {
|
|
69
|
+
return { type: "get_commands" };
|
|
70
|
+
}
|
|
71
|
+
function compactCommand(customInstructions) {
|
|
72
|
+
return {
|
|
73
|
+
type: "compact",
|
|
74
|
+
...customInstructions === void 0 ? {} : { customInstructions }
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const COMPACT = "compact";
|
|
78
|
+
/**
|
|
79
|
+
* Pi's built-in slash commands that the cockpit can actually run.
|
|
80
|
+
*
|
|
81
|
+
* `get_commands` reports extension commands, prompt templates and skills, and
|
|
82
|
+
* nothing else, so the built-ins never reach the palette on their own. Nor can
|
|
83
|
+
* they be sent as prompts: `session.prompt` has no branch for them, and the
|
|
84
|
+
* TUI runs them by matching the raw typed text, so a prompt-shaped `/compact`
|
|
85
|
+
* arrives at the model as literal text. Each entry here therefore needs its
|
|
86
|
+
* own RPC frame, which is why the list holds only what is wired below rather
|
|
87
|
+
* than everything the TUI offers.
|
|
88
|
+
*/
|
|
89
|
+
const BUILTIN_COMMANDS = [{
|
|
90
|
+
name: COMPACT,
|
|
91
|
+
description: "Manually compact the session context"
|
|
92
|
+
}];
|
|
93
|
+
/**
|
|
94
|
+
* The frame a typed built-in maps to, or undefined when the text is an
|
|
95
|
+
* ordinary prompt. The argument is passed through, so `/compact keep the API
|
|
96
|
+
* decisions` reaches Pi as its custom instruction.
|
|
97
|
+
*/
|
|
98
|
+
function builtinCommandFrame(text) {
|
|
99
|
+
const matched = /^\/(\S+)(?:\s+([\s\S]*))?$/u.exec(text.trim());
|
|
100
|
+
if (matched?.[1] !== COMPACT) return void 0;
|
|
101
|
+
const argument = (matched[2] ?? "").trim();
|
|
102
|
+
return compactCommand(argument.length > 0 ? argument : void 0);
|
|
103
|
+
}
|
|
104
|
+
function getAvailableModelsCommand() {
|
|
105
|
+
return { type: "get_available_models" };
|
|
106
|
+
}
|
|
107
|
+
function getAvailableThinkingLevelsCommand() {
|
|
108
|
+
return { type: "get_available_thinking_levels" };
|
|
109
|
+
}
|
|
110
|
+
function setModelCommand(provider, modelId) {
|
|
111
|
+
return {
|
|
112
|
+
type: "set_model",
|
|
113
|
+
provider,
|
|
114
|
+
modelId
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function setThinkingLevelCommand(level) {
|
|
118
|
+
return {
|
|
119
|
+
type: "set_thinking_level",
|
|
120
|
+
level
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function setSessionNameCommand(name) {
|
|
124
|
+
return {
|
|
125
|
+
type: "set_session_name",
|
|
126
|
+
name
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function dialogValue(id, value) {
|
|
130
|
+
return {
|
|
131
|
+
type: "extension_ui_response",
|
|
132
|
+
id,
|
|
133
|
+
value
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function dialogConfirmed(id, confirmed) {
|
|
137
|
+
return {
|
|
138
|
+
type: "extension_ui_response",
|
|
139
|
+
id,
|
|
140
|
+
confirmed
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function dialogCancelled(id) {
|
|
144
|
+
return {
|
|
145
|
+
type: "extension_ui_response",
|
|
146
|
+
id,
|
|
147
|
+
cancelled: true
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
export { BUILTIN_COMMANDS, abortCommand, builtinCommandFrame, clearQueueCommand, compactCommand, dialogCancelled, dialogConfirmed, dialogValue, enqueueAutomaticCommand, followUpCommand, getAvailableModelsCommand, getAvailableThinkingLevelsCommand, getCommandsCommand, getSessionStatsCommand, getStateCommand, promoteQueuedCommand, promptCommand, removeQueuedCommand, resumeQueueCommand, rewindCommand, setModelCommand, setSessionNameCommand, setThinkingLevelCommand, steerCommand };
|
|
152
|
+
|
|
153
|
+
//# sourceMappingURL=commands.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.mjs","names":[],"sources":["../../../src/web/lib/commands.ts"],"sourcesContent":["type Frame = Record<string, unknown>;\n\nexport interface RpcImage {\n type: 'image';\n data: string;\n mimeType: string;\n}\n\nexport function promptCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'prompt', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function steerCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'steer', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function followUpCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'follow_up', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function enqueueAutomaticCommand(message: string, images: RpcImage[] = []): Frame {\n return { type: 'enqueue_automatic', message, ...(images.length > 0 ? { images } : {}) };\n}\n\nexport function removeQueuedCommand(id: string): Frame {\n return { type: 'remove_queued', id };\n}\n\nexport function promoteQueuedCommand(id: string, operationId?: string): Frame {\n return { type: 'promote_queued', id, ...(operationId === undefined ? {} : { operationId }) };\n}\n\nexport function resumeQueueCommand(): Frame {\n return { type: 'resume_queue' };\n}\n\n/** Requests in-place Pi session-tree navigation after the hub resolves the visible transcript id. */\nexport function rewindCommand(itemId: string): Frame {\n return { type: 'rewind', itemId };\n}\n\nexport function abortCommand(operationId?: string): Frame {\n return operationId === undefined ? { type: 'abort' } : { type: 'abort', operationId };\n}\n\nexport function clearQueueCommand(): Frame {\n return { type: 'clear_queue' };\n}\n\nexport function getStateCommand(): Frame {\n return { type: 'get_state' };\n}\n\nexport function getSessionStatsCommand(): Frame {\n return { type: 'get_session_stats' };\n}\n\nexport function getCommandsCommand(): Frame {\n return { type: 'get_commands' };\n}\n\nexport function compactCommand(customInstructions?: string): Frame {\n return { type: 'compact', ...(customInstructions === undefined ? {} : { customInstructions }) };\n}\n\nconst COMPACT = 'compact';\n\n/**\n * Pi's built-in slash commands that the cockpit can actually run.\n *\n * `get_commands` reports extension commands, prompt templates and skills, and\n * nothing else, so the built-ins never reach the palette on their own. Nor can\n * they be sent as prompts: `session.prompt` has no branch for them, and the\n * TUI runs them by matching the raw typed text, so a prompt-shaped `/compact`\n * arrives at the model as literal text. Each entry here therefore needs its\n * own RPC frame, which is why the list holds only what is wired below rather\n * than everything the TUI offers.\n */\nexport const BUILTIN_COMMANDS: ReadonlyArray<{ name: string; description: string }> = [\n { name: COMPACT, description: 'Manually compact the session context' },\n];\n\n/**\n * The frame a typed built-in maps to, or undefined when the text is an\n * ordinary prompt. The argument is passed through, so `/compact keep the API\n * decisions` reaches Pi as its custom instruction.\n */\nexport function builtinCommandFrame(text: string): Frame | undefined {\n // Split on any whitespace, not a space: the composer folds text attachments\n // into the draft with newlines, so a space-only split reads the newline as\n // part of the command name and silently sends the whole thing to the model.\n const matched = /^\\/(\\S+)(?:\\s+([\\s\\S]*))?$/u.exec(text.trim());\n if (matched?.[1] !== COMPACT) return undefined;\n const argument = (matched[2] ?? '').trim();\n return compactCommand(argument.length > 0 ? argument : undefined);\n}\nexport function getAvailableModelsCommand(): Frame {\n return { type: 'get_available_models' };\n}\n\nexport function getAvailableThinkingLevelsCommand(): Frame {\n return { type: 'get_available_thinking_levels' };\n}\n\nexport function setModelCommand(provider: string, modelId: string): Frame {\n return { type: 'set_model', provider, modelId };\n}\n\nexport function setThinkingLevelCommand(level: string): Frame {\n return { type: 'set_thinking_level', level };\n}\n\nexport function setSessionNameCommand(name: string): Frame {\n return { type: 'set_session_name', name };\n}\n\nexport function dialogValue(id: string, value: string): Frame {\n return { type: 'extension_ui_response', id, value };\n}\n\nexport function dialogConfirmed(id: string, confirmed: boolean): Frame {\n return { type: 'extension_ui_response', id, confirmed };\n}\n\nexport function dialogCancelled(id: string): Frame {\n return { type: 'extension_ui_response', id, cancelled: true };\n}\n"],"mappings":";AAQA,SAAgB,cAAc,SAAiB,SAAqB,CAAC,GAAU;CAC7E,OAAO;EAAE,MAAM;EAAU;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAC7E;AAEA,SAAgB,aAAa,SAAiB,SAAqB,CAAC,GAAU;CAC5E,OAAO;EAAE,MAAM;EAAS;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAC5E;AAEA,SAAgB,gBAAgB,SAAiB,SAAqB,CAAC,GAAU;CAC/E,OAAO;EAAE,MAAM;EAAa;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AAChF;AAEA,SAAgB,wBAAwB,SAAiB,SAAqB,CAAC,GAAU;CACvF,OAAO;EAAE,MAAM;EAAqB;EAAS,GAAI,OAAO,SAAS,IAAI,EAAE,OAAO,IAAI,CAAC;CAAG;AACxF;AAEA,SAAgB,oBAAoB,IAAmB;CACrD,OAAO;EAAE,MAAM;EAAiB;CAAG;AACrC;AAEA,SAAgB,qBAAqB,IAAY,aAA6B;CAC5E,OAAO;EAAE,MAAM;EAAkB;EAAI,GAAI,gBAAgB,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY;CAAG;AAC7F;AAEA,SAAgB,qBAA4B;CAC1C,OAAO,EAAE,MAAM,eAAe;AAChC;;AAGA,SAAgB,cAAc,QAAuB;CACnD,OAAO;EAAE,MAAM;EAAU;CAAO;AAClC;AAEA,SAAgB,aAAa,aAA6B;CACxD,OAAO,gBAAgB,KAAA,IAAY,EAAE,MAAM,QAAQ,IAAI;EAAE,MAAM;EAAS;CAAY;AACtF;AAEA,SAAgB,oBAA2B;CACzC,OAAO,EAAE,MAAM,cAAc;AAC/B;AAEA,SAAgB,kBAAyB;CACvC,OAAO,EAAE,MAAM,YAAY;AAC7B;AAEA,SAAgB,yBAAgC;CAC9C,OAAO,EAAE,MAAM,oBAAoB;AACrC;AAEA,SAAgB,qBAA4B;CAC1C,OAAO,EAAE,MAAM,eAAe;AAChC;AAEA,SAAgB,eAAe,oBAAoC;CACjE,OAAO;EAAE,MAAM;EAAW,GAAI,uBAAuB,KAAA,IAAY,CAAC,IAAI,EAAE,mBAAmB;CAAG;AAChG;AAEA,MAAM,UAAU;;;;;;;;;;;;AAahB,MAAa,mBAAyE,CACpF;CAAE,MAAM;CAAS,aAAa;AAAuC,CACvE;;;;;;AAOA,SAAgB,oBAAoB,MAAiC;CAInE,MAAM,UAAU,8BAA8B,KAAK,KAAK,KAAK,CAAC;CAC9D,IAAI,UAAU,OAAO,SAAS,OAAO,KAAA;CACrC,MAAM,YAAY,QAAQ,MAAM,GAAA,CAAI,KAAK;CACzC,OAAO,eAAe,SAAS,SAAS,IAAI,WAAW,KAAA,CAAS;AAClE;AACA,SAAgB,4BAAmC;CACjD,OAAO,EAAE,MAAM,uBAAuB;AACxC;AAEA,SAAgB,oCAA2C;CACzD,OAAO,EAAE,MAAM,gCAAgC;AACjD;AAEA,SAAgB,gBAAgB,UAAkB,SAAwB;CACxE,OAAO;EAAE,MAAM;EAAa;EAAU;CAAQ;AAChD;AAEA,SAAgB,wBAAwB,OAAsB;CAC5D,OAAO;EAAE,MAAM;EAAsB;CAAM;AAC7C;AAEA,SAAgB,sBAAsB,MAAqB;CACzD,OAAO;EAAE,MAAM;EAAoB;CAAK;AAC1C;AAEA,SAAgB,YAAY,IAAY,OAAsB;CAC5D,OAAO;EAAE,MAAM;EAAyB;EAAI;CAAM;AACpD;AAEA,SAAgB,gBAAgB,IAAY,WAA2B;CACrE,OAAO;EAAE,MAAM;EAAyB;EAAI;CAAU;AACxD;AAEA,SAAgB,gBAAgB,IAAmB;CACjD,OAAO;EAAE,MAAM;EAAyB;EAAI,WAAW;CAAK;AAC9D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/web/lib/composerSubmissions.ts
|
|
2
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
3
|
+
function onComposerSubmitted(listener) {
|
|
4
|
+
listeners.add(listener);
|
|
5
|
+
return () => listeners.delete(listener);
|
|
6
|
+
}
|
|
7
|
+
function publishComposerSubmission(submission) {
|
|
8
|
+
const snapshot = {
|
|
9
|
+
...submission,
|
|
10
|
+
contextItems: submission.contextItems.map((item) => ({ ...item }))
|
|
11
|
+
};
|
|
12
|
+
for (const listener of listeners) try {
|
|
13
|
+
listener(snapshot);
|
|
14
|
+
} catch {}
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.onComposerSubmitted = onComposerSubmitted;
|
|
18
|
+
exports.publishComposerSubmission = publishComposerSubmission;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=composerSubmissions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composerSubmissions.cjs","names":[],"sources":["../../../src/web/lib/composerSubmissions.ts"],"sourcesContent":["import type { ComposerSubmission } from '@agimon-ai/po-core/web';\n\ntype ComposerSubmissionListener = (submission: ComposerSubmission) => void;\n\nconst listeners = new Set<ComposerSubmissionListener>();\n\nexport function onComposerSubmitted(listener: ComposerSubmissionListener): () => void {\n listeners.add(listener);\n return () => listeners.delete(listener);\n}\n\nexport function publishComposerSubmission(submission: ComposerSubmission): void {\n const snapshot: ComposerSubmission = {\n ...submission,\n contextItems: submission.contextItems.map((item) => ({ ...item })),\n };\n for (const listener of listeners) {\n try {\n listener(snapshot);\n } catch {\n // A plugin observer cannot roll back a message the session already accepted.\n }\n }\n}\n"],"mappings":";AAIA,MAAM,4BAAY,IAAI,IAAgC;AAEtD,SAAgB,oBAAoB,UAAkD;CACpF,UAAU,IAAI,QAAQ;CACtB,aAAa,UAAU,OAAO,QAAQ;AACxC;AAEA,SAAgB,0BAA0B,YAAsC;CAC9E,MAAM,WAA+B;EACnC,GAAG;EACH,cAAc,WAAW,aAAa,KAAK,UAAU,EAAE,GAAG,KAAK,EAAE;CACnE;CACA,KAAK,MAAM,YAAY,WACrB,IAAI;EACF,SAAS,QAAQ;CACnB,QAAQ,CAER;AAEJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComposerSubmission } from "@agimon-ai/po-core/web";
|
|
2
|
+
//#region src/web/lib/composerSubmissions.d.ts
|
|
3
|
+
type ComposerSubmissionListener = (submission: ComposerSubmission) => void;
|
|
4
|
+
export declare function onComposerSubmitted(listener: ComposerSubmissionListener): () => void;
|
|
5
|
+
export declare function publishComposerSubmission(submission: ComposerSubmission): void;
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=composerSubmissions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composerSubmissions.d.mts","names":[],"sources":["../../../src/web/lib/composerSubmissions.ts"],"mappings":";;KAEK,8BAA8B,YAAY;wBAI/B,oBAAoB,UAAU;wBAK9B,0BAA0B,YAAY"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/web/lib/composerSubmissions.ts
|
|
2
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
3
|
+
function onComposerSubmitted(listener) {
|
|
4
|
+
listeners.add(listener);
|
|
5
|
+
return () => listeners.delete(listener);
|
|
6
|
+
}
|
|
7
|
+
function publishComposerSubmission(submission) {
|
|
8
|
+
const snapshot = {
|
|
9
|
+
...submission,
|
|
10
|
+
contextItems: submission.contextItems.map((item) => ({ ...item }))
|
|
11
|
+
};
|
|
12
|
+
for (const listener of listeners) try {
|
|
13
|
+
listener(snapshot);
|
|
14
|
+
} catch {}
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { onComposerSubmitted, publishComposerSubmission };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=composerSubmissions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composerSubmissions.mjs","names":[],"sources":["../../../src/web/lib/composerSubmissions.ts"],"sourcesContent":["import type { ComposerSubmission } from '@agimon-ai/po-core/web';\n\ntype ComposerSubmissionListener = (submission: ComposerSubmission) => void;\n\nconst listeners = new Set<ComposerSubmissionListener>();\n\nexport function onComposerSubmitted(listener: ComposerSubmissionListener): () => void {\n listeners.add(listener);\n return () => listeners.delete(listener);\n}\n\nexport function publishComposerSubmission(submission: ComposerSubmission): void {\n const snapshot: ComposerSubmission = {\n ...submission,\n contextItems: submission.contextItems.map((item) => ({ ...item })),\n };\n for (const listener of listeners) {\n try {\n listener(snapshot);\n } catch {\n // A plugin observer cannot roll back a message the session already accepted.\n }\n }\n}\n"],"mappings":";AAIA,MAAM,4BAAY,IAAI,IAAgC;AAEtD,SAAgB,oBAAoB,UAAkD;CACpF,UAAU,IAAI,QAAQ;CACtB,aAAa,UAAU,OAAO,QAAQ;AACxC;AAEA,SAAgB,0BAA0B,YAAsC;CAC9E,MAAM,WAA+B;EACnC,GAAG;EACH,cAAc,WAAW,aAAa,KAAK,UAAU,EAAE,GAAG,KAAK,EAAE;CACnE;CACA,KAAK,MAAM,YAAY,WACrB,IAAI;EACF,SAAS,QAAQ;CACnB,QAAQ,CAER;AAEJ"}
|