zidane-ui 9.2.3 → 9.4.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/dist/adapters/live.d.ts +8 -0
- package/dist/adapters/live.js +19 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-git-host.js +5 -2
- package/dist/adapters/server-host.js +158 -27
- package/dist/adapters/server-machines-host.js +7 -0
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -1
- package/dist/adapters/server-session-host.js +49 -0
- package/dist/adapters/server-settings-sections.js +4 -1
- package/dist/adapters/sse-host.js +3 -0
- package/dist/adapters/sse-protocol.d.ts +10 -0
- package/dist/appearance/ZoomIndicator.js +5 -8
- package/dist/chat/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +20 -1
- package/dist/chat/SessionStreamsProvider.d.ts +9 -1
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/Transcript.d.ts +21 -11
- package/dist/chat/Transcript.js +346 -161
- package/dist/chat/composer/ModelOptionsPicker.js +6 -2
- package/dist/chat/composer/ModelPicker.d.ts +1 -1
- package/dist/chat/composer/PlacePicker.d.ts +3 -1
- package/dist/chat/composer/PlacePicker.js +5 -1
- package/dist/chat/composer/use-draft-target.js +15 -3
- package/dist/chat/headless/block-runs.js +26 -1
- package/dist/chat/headless/chip-views.js +1 -1
- package/dist/chat/headless/draft-target.d.ts +28 -1
- package/dist/chat/headless/draft-target.js +22 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/hosts.d.ts +4 -0
- package/dist/chat/headless/index.d.ts +27 -26
- package/dist/chat/headless/index.js +15 -14
- package/dist/chat/headless/labels.d.ts +17 -0
- package/dist/chat/headless/labels.js +17 -0
- package/dist/chat/headless/markdown-chunks.d.ts +2 -1
- package/dist/chat/headless/markdown-chunks.js +12 -20
- package/dist/chat/headless/markdown-scan.d.ts +64 -0
- package/dist/chat/headless/markdown-scan.js +119 -0
- package/dist/chat/headless/markdown-stream.d.ts +64 -0
- package/dist/chat/headless/markdown-stream.js +143 -0
- package/dist/chat/headless/output-pager.d.ts +68 -0
- package/dist/chat/headless/output-pager.js +113 -0
- package/dist/chat/headless/prompt-origin.d.ts +2 -0
- package/dist/chat/headless/prompt-origin.js +6 -2
- package/dist/chat/headless/session-list.d.ts +10 -0
- package/dist/chat/headless/sidebar/activity.d.ts +14 -0
- package/dist/chat/headless/sidebar/activity.js +32 -0
- package/dist/chat/headless/sidebar/directory.d.ts +19 -2
- package/dist/chat/headless/sidebar/directory.js +19 -51
- package/dist/chat/headless/sidebar/environment.d.ts +15 -4
- package/dist/chat/headless/sidebar/environment.js +27 -9
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/index.js +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +19 -2
- package/dist/chat/headless/sidebar/labels.js +8 -1
- package/dist/chat/headless/sidebar/prewarm.d.ts +68 -0
- package/dist/chat/headless/sidebar/prewarm.js +114 -0
- package/dist/chat/headless/streams/actions.d.ts +4 -2
- package/dist/chat/headless/streams/actions.js +2 -1
- package/dist/chat/headless/streams/event-bytes.d.ts +17 -0
- package/dist/chat/headless/streams/event-bytes.js +46 -0
- package/dist/chat/headless/streams/live-events.d.ts +25 -1
- package/dist/chat/headless/streams/live-events.js +53 -2
- package/dist/chat/headless/streams/selectors.d.ts +3 -0
- package/dist/chat/headless/streams/selectors.js +8 -1
- package/dist/chat/headless/streams/session-streams.d.ts +15 -3
- package/dist/chat/headless/streams/session-streams.js +31 -3
- package/dist/chat/headless/streams/store.d.ts +45 -6
- package/dist/chat/headless/streams/store.js +85 -31
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +85 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- package/dist/chat/headless/streams/types.d.ts +2 -1
- package/dist/chat/headless/transcript/batch.js +5 -1
- package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
- package/dist/chat/headless/transcript/blob-media.js +23 -0
- package/dist/chat/headless/transcript/collapse.d.ts +10 -0
- package/dist/chat/headless/transcript/collapse.js +35 -6
- package/dist/chat/headless/transcript/derive.d.ts +98 -0
- package/dist/chat/headless/transcript/derive.js +89 -0
- package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
- package/dist/chat/headless/transcript/exchange-media.js +8 -5
- package/dist/chat/headless/transcript/fold-attachments.d.ts +2 -0
- package/dist/chat/headless/transcript/fold-attachments.js +3 -2
- package/dist/chat/headless/transcript/fold.d.ts +2 -1
- package/dist/chat/headless/transcript/fold.js +16 -6
- package/dist/chat/headless/transcript/incremental.d.ts +53 -0
- package/dist/chat/headless/transcript/incremental.js +181 -0
- package/dist/chat/headless/transcript/index.d.ts +2 -2
- package/dist/chat/headless/transcript/index.js +2 -2
- package/dist/chat/headless/transcript/nesting.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +50 -1
- package/dist/chat/headless/transcript/rail.js +165 -23
- package/dist/chat/headless/transcript/rows.d.ts +5 -1
- package/dist/chat/headless/transcript/run-failures.js +2 -1
- package/dist/chat/headless/transcript/seams.d.ts +78 -0
- package/dist/chat/headless/transcript/seams.js +116 -0
- package/dist/chat/headless/transcript/tool-media.d.ts +6 -7
- package/dist/chat/headless/transcript/tool-media.js +27 -9
- package/dist/chat/index.d.ts +9 -8
- package/dist/chat/index.js +18 -17
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.js +2 -2
- package/dist/chat/sidebar/SessionSidebar.d.ts +6 -0
- package/dist/chat/sidebar/SessionSidebar.js +23 -16
- package/dist/chat/sidebar/SidebarFilterMenu.js +0 -1
- package/dist/chat/sidebar/SidebarFold.js +17 -16
- package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +7 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +11 -8
- package/dist/chat/sidebar/session-menu.d.ts +4 -0
- package/dist/chat/sidebar/session-menu.js +14 -2
- package/dist/chat/sidebar/sidebar-live.js +28 -4
- package/dist/chat/sidebar/useInboxRows.js +6 -6
- package/dist/chat/sidebar/useInboxTriage.js +50 -47
- package/dist/chat/sidebar/useSessionSearch.js +19 -18
- package/dist/chat/testing/contract.d.ts +5 -3
- package/dist/chat/testing/contract.js +66 -1
- package/dist/chat/transcript/DiffLines.d.ts +6 -1
- package/dist/chat/transcript/DiffLines.js +35 -20
- package/dist/chat/transcript/EditDiffBlock.d.ts +5 -1
- package/dist/chat/transcript/EditDiffBlock.js +89 -30
- package/dist/chat/transcript/FileChip.js +28 -0
- package/dist/chat/transcript/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +100 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/PromptEcho.js +3 -11
- package/dist/chat/transcript/SessionChip.d.ts +11 -0
- package/dist/chat/transcript/SessionChip.js +34 -0
- package/dist/chat/transcript/SubagentBlock.js +3 -2
- package/dist/chat/transcript/TranscriptRail.d.ts +25 -2
- package/dist/chat/transcript/TranscriptRail.js +175 -17
- package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
- package/dist/chat/transcript/TranscriptRow.js +4 -3
- package/dist/chat/transcript/actions.d.ts +37 -1
- package/dist/chat/transcript/actions.js +27 -1
- package/dist/chat/transcript/chip-details.d.ts +11 -0
- package/dist/chat/transcript/chip-details.js +17 -1
- package/dist/chat/transcript/clipped-output.d.ts +58 -0
- package/dist/chat/transcript/clipped-output.js +131 -0
- package/dist/chat/transcript/fold-attachments.js +10 -5
- package/dist/chat/transcript/fold-worker.js +5 -3
- package/dist/chat/transcript/fold.js +13 -4
- package/dist/chat/transcript/index.d.ts +11 -10
- package/dist/chat/transcript/index.js +10 -9
- package/dist/chat/transcript/markdown-cache.d.ts +17 -2
- package/dist/chat/transcript/markdown-cache.js +48 -4
- package/dist/chat/transcript/markdown.js +110 -55
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +19 -19
- package/dist/chat/transcript/messages.js +5 -4
- package/dist/chat/transcript/notices.js +2 -1
- package/dist/chat/transcript/prompt.d.ts +1 -1
- package/dist/chat/transcript/prompt.js +6 -4
- package/dist/chat/transcript/prose.js +2 -1
- package/dist/chat/transcript/root-items.d.ts +96 -0
- package/dist/chat/transcript/root-items.js +180 -0
- package/dist/chat/transcript/row-mount.d.ts +184 -0
- package/dist/chat/transcript/row-mount.js +532 -0
- package/dist/chat/transcript/row-parking.d.ts +152 -0
- package/dist/chat/transcript/row-parking.js +171 -0
- package/dist/chat/transcript/row-ui-state.d.ts +37 -0
- package/dist/chat/transcript/row-ui-state.js +53 -0
- package/dist/chat/transcript/run-rows.js +3 -2
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/tasks.js +3 -2
- package/dist/chat/transcript/tool-media.d.ts +4 -2
- package/dist/chat/transcript/tool-media.js +15 -7
- package/dist/chat/transcript/tool-parts.d.ts +27 -4
- package/dist/chat/transcript/tool-parts.js +31 -6
- package/dist/chat/transcript/tool-payload.js +26 -11
- package/dist/chat/transcript/tool-row.d.ts +2 -1
- package/dist/chat/transcript/tool-row.js +38 -19
- package/dist/chat/transcript/use-transcript-rows.d.ts +25 -8
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useHistoryBackfill.d.ts +42 -0
- package/dist/chat/transcript/useHistoryBackfill.js +170 -0
- package/dist/chat/transcript/useStickToBottom.js +2 -3
- package/dist/chat/transcript/useTranscriptFind.js +2 -4
- package/dist/chat/transcript/useTranscriptScroll.d.ts +7 -4
- package/dist/chat/transcript/useTranscriptScroll.js +12 -1
- package/dist/chat/transcript/useTranscriptSearch.d.ts +2 -2
- package/dist/chat/transcript/useTranscriptSearch.js +35 -19
- package/dist/chat/transcript/useTranscriptSelectionCopy.d.ts +5 -5
- package/dist/chat/transcript/useTranscriptSelectionCopy.js +28 -7
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- package/dist/code/editor/FileTree.d.ts +2 -0
- package/dist/code/editor/FileTree.js +1 -1
- package/dist/code/editor/FileView.js +16 -25
- package/dist/code/editor/find/useFind.js +17 -17
- package/dist/code/editor/useCodeDocument.js +22 -19
- package/dist/code/editor/useDetachCleanup.js +4 -3
- package/dist/code/use-highlighted-html.js +12 -13
- package/dist/components/IconButton.d.ts +3 -1
- package/dist/components/IconButton.js +7 -2
- package/dist/components/IconButtonTip.d.ts +3 -1
- package/dist/components/IconButtonTip.js +2 -1
- package/dist/components/RowActionsMenu.js +7 -14
- package/dist/components/Tooltip.d.ts +4 -1
- package/dist/components/Tooltip.js +8 -6
- package/dist/components/assign-ref.d.ts +8 -0
- package/dist/components/assign-ref.js +12 -0
- package/dist/components/floating/FloatingSurface.js +2 -2
- package/dist/components/floating/HoverCard.js +32 -14
- package/dist/components/floating/Popover.js +4 -7
- package/dist/components/floating/useAnchoredPosition.d.ts +5 -3
- package/dist/components/floating/useAnchoredPosition.js +7 -7
- package/dist/components/object-key.d.ts +7 -0
- package/dist/components/object-key.js +18 -0
- package/dist/components/palette/PaletteList.js +2 -7
- package/dist/components/tooltip-arming.d.ts +3 -0
- package/dist/components/tooltip-arming.js +8 -1
- package/dist/core.css +3 -3
- package/dist/dist/{index-E1Z0aPmi.d.ts → index-BheVJOLc.d.ts} +3 -1
- package/dist/dist/index.d.ts +2 -2
- package/dist/files/FilesTab.js +0 -1
- package/dist/files/TreeColumn.d.ts +2 -4
- package/dist/files/TreeColumn.js +0 -5
- package/dist/files/headless/host.d.ts +3 -7
- package/dist/files/headless/labels.d.ts +0 -1
- package/dist/files/headless/labels.js +0 -1
- package/dist/files/headless/workspace-diff.js +1 -1
- package/dist/files/useCodeReview.js +1 -3
- package/dist/files/useFilesDiagnostics.d.ts +1 -1
- package/dist/files/useFilesDiagnostics.js +4 -11
- package/dist/files/useOpenFiles.js +9 -12
- package/dist/files/useWorkspace.d.ts +5 -7
- package/dist/files/useWorkspace.js +4 -15
- package/dist/git/GitBar.js +5 -3
- package/dist/git/MoveSessionDialog.d.ts +18 -8
- package/dist/git/MoveSessionDialog.js +32 -53
- package/dist/git/MoveToDialog.d.ts +61 -0
- package/dist/git/MoveToDialog.js +240 -0
- package/dist/git/SandboxManager.js +9 -4
- package/dist/git/SyncChip.js +11 -4
- package/dist/git/TeleportSessionDialog.d.ts +69 -0
- package/dist/git/TeleportSessionDialog.js +440 -0
- package/dist/git/headless/host.d.ts +14 -0
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +44 -1
- package/dist/git/headless/labels.js +50 -0
- package/dist/git/headless/sandboxes.d.ts +1 -1
- package/dist/git/headless/sandboxes.js +4 -3
- package/dist/git/headless/teleport.d.ts +76 -0
- package/dist/git/headless/teleport.js +19 -0
- package/dist/git/index.d.ts +4 -2
- package/dist/git/index.js +4 -2
- package/dist/git/useEnvironmentChoices.d.ts +5 -2
- package/dist/git/useEnvironmentChoices.js +12 -4
- package/dist/hooks/useLatest.d.ts +8 -0
- package/dist/hooks/useLatest.js +17 -0
- package/dist/hooks/useMinuteTick.d.ts +6 -2
- package/dist/hooks/useMinuteTick.js +12 -6
- package/dist/hooks/useNearViewport.js +11 -8
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/keybindings/KeybindingsProvider.js +3 -4
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +18 -0
- package/dist/machines/AddServerForm.js +55 -3
- package/dist/machines/Banners.d.ts +2 -2
- package/dist/machines/Banners.js +3 -3
- package/dist/machines/DaemonMenu.js +1 -3
- package/dist/machines/HostsSection.js +5 -1
- package/dist/machines/OrganizationPanel.d.ts +25 -0
- package/dist/machines/OrganizationPanel.js +266 -0
- package/dist/machines/PersonalLayerPanel.d.ts +32 -0
- package/dist/machines/PersonalLayerPanel.js +360 -0
- package/dist/machines/headless/fixture-host.d.ts +10 -0
- package/dist/machines/headless/fixture-host.js +44 -0
- package/dist/machines/headless/host.d.ts +21 -1
- package/dist/machines/headless/index.d.ts +3 -1
- package/dist/machines/headless/index.js +3 -1
- package/dist/machines/headless/labels.d.ts +55 -0
- package/dist/machines/headless/labels.js +58 -1
- package/dist/machines/headless/layer.d.ts +64 -0
- package/dist/machines/headless/layer.js +56 -0
- package/dist/machines/headless/organization.d.ts +38 -0
- package/dist/machines/headless/organization.js +44 -0
- package/dist/machines/index.d.ts +3 -1
- package/dist/machines/index.js +3 -1
- package/dist/machines/testing/contract.d.ts +25 -1
- package/dist/machines/testing/contract.js +97 -1
- package/dist/motion/grow.js +12 -13
- package/dist/motion/swap.js +2 -5
- package/dist/motion/use-flip-list.d.ts +14 -0
- package/dist/motion/use-flip-list.js +17 -12
- package/dist/palette/headless/app-sources.js +37 -0
- package/dist/palette/headless/labels.js +3 -0
- package/dist/server/sse-handler.js +25 -2
- package/dist/session/DiffFileTree.js +1 -4
- package/dist/session/OpenSessionsDialog.d.ts +46 -0
- package/dist/session/OpenSessionsDialog.js +170 -0
- package/dist/session/PlanTracker.js +1 -2
- package/dist/session/ProjectHome.js +10 -9
- package/dist/session/RemindersPanel.js +10 -12
- package/dist/session/SecretsPanel.js +2 -1
- package/dist/session/SessionHeader.js +1 -0
- package/dist/session/SessionPeopleStack.d.ts +23 -0
- package/dist/session/SessionPeopleStack.js +65 -0
- package/dist/session/SessionPlaceMenu.js +5 -4
- package/dist/session/ShareSessionDialog.d.ts +32 -0
- package/dist/session/ShareSessionDialog.js +342 -0
- package/dist/session/TypingLine.d.ts +22 -0
- package/dist/session/TypingLine.js +31 -0
- package/dist/session/headless/host.d.ts +40 -1
- package/dist/session/headless/index.d.ts +4 -2
- package/dist/session/headless/index.js +3 -1
- package/dist/session/headless/labels.d.ts +49 -0
- package/dist/session/headless/labels.js +56 -0
- package/dist/session/headless/people.d.ts +29 -0
- package/dist/session/headless/people.js +53 -0
- package/dist/session/headless/place.d.ts +5 -0
- package/dist/session/headless/place.js +5 -1
- package/dist/session/headless/typing.d.ts +37 -0
- package/dist/session/headless/typing.js +60 -0
- package/dist/session/index.d.ts +5 -1
- package/dist/session/index.js +5 -1
- package/dist/settings/headless/fixture-performance.js +4 -2
- package/dist/settings/headless/performance.d.ts +4 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/headless/sections-host.d.ts +7 -2
- package/dist/settings/section.d.ts +15 -3
- package/dist/settings/section.js +15 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +30 -6
- package/dist/settings/sections/keybindings/labels.d.ts +3 -0
- package/dist/settings/sections/keybindings/labels.js +3 -0
- package/dist/settings/sections/keybindings/rows.js +12 -0
- package/dist/settings/sections/logs/LogsSection.js +5 -8
- package/dist/settings/sections/performance/PerformanceSection.js +8 -1
- package/dist/settings/sections/performance/labels.d.ts +2 -0
- package/dist/settings/sections/performance/labels.js +2 -0
- package/dist/styles.css +65 -9
- package/dist/terminal/HostTerminalSurface.js +28 -30
- package/dist/terminal/TerminalPanel.js +4 -12
- package/dist/terminal/TerminalProvider.d.ts +10 -2
- package/dist/terminal/TerminalProvider.js +10 -2
- package/dist/terminal/headless/labels.d.ts +0 -1
- package/dist/terminal/headless/labels.js +1 -2
- package/dist/terminal/headless/store.js +5 -1
- package/dist/views/headless/answers.d.ts +8 -2
- package/dist/views/headless/answers.js +58 -1
- package/dist/views/headless/placement.d.ts +78 -0
- package/dist/views/headless/placement.js +154 -44
- package/dist/workspace/LayoutBudget.js +1 -7
- package/package.json +2 -2
- package/src/styles/chat.css +3 -1
- package/src/styles/palette.css +3 -3
- package/src/styles/transcript.css +50 -5
- /package/dist/dist/{index-De9AbmxS.d.ts → index-ttmMvjgM.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { MetaChip } from "../../components/Form.js";
|
|
|
3
3
|
import { Menu, MenuRow, MenuSection, MenuSeparator } from "../../components/Menu.js";
|
|
4
4
|
import { useChatLabels } from "../useChatLabels.js";
|
|
5
5
|
import { PickerPill } from "./PickerPill.js";
|
|
6
|
-
import { useCallback,
|
|
6
|
+
import { useCallback, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/chat/composer/ModelOptionsPicker.tsx
|
|
9
9
|
/** Every reasoning effort level the agent knows, in the TUI picker's order. */
|
|
@@ -123,7 +123,11 @@ function OptionsPillLabel({ supportsReasoning, effort, options, enabled }) {
|
|
|
123
123
|
function ModelOptionsMenu({ supportsReasoning, options, effort, enabled, onEffort, onOptions, levels, effortHints }) {
|
|
124
124
|
const labels = useChatLabels();
|
|
125
125
|
const [local, setLocal] = useState(enabled);
|
|
126
|
-
|
|
126
|
+
const [answered, setAnswered] = useState(enabled);
|
|
127
|
+
if (answered !== enabled) {
|
|
128
|
+
setAnswered(enabled);
|
|
129
|
+
setLocal(enabled);
|
|
130
|
+
}
|
|
127
131
|
const toggle = useCallback(async (id) => {
|
|
128
132
|
const next = {
|
|
129
133
|
...local,
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* Values are `provider/model` keys; a bare model id (a session's
|
|
19
19
|
* `modelId`) matches too.
|
|
20
20
|
*/
|
|
21
|
-
import { ChatModel, ChatModelProvider } from "../headless/host.js";
|
|
22
21
|
import { ImageModelRow, ModelCatalogRow, ModelPickRef } from "../headless/composer/models.js";
|
|
22
|
+
import { ChatModel, ChatModelProvider } from "../headless/host.js";
|
|
23
23
|
import "./ImageModelList.js";
|
|
24
24
|
import "./model-catalog.js";
|
|
25
25
|
import { CSSProperties, ReactNode } from "react";
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* machines, the isolation) and the folder picker of the place (a machine's
|
|
5
5
|
* folders, a server's), over a `NewChatPlace` instead of a draft. Each pick
|
|
6
6
|
* is a new place at once. A place on this computer has no folder here: a new
|
|
7
|
-
* chat there opens in the app's folder.
|
|
7
|
+
* chat there opens in the app's folder. Without a folder, the isolations
|
|
8
|
+
* offered are what the host can run in any folder (`machineOnly`): one a new
|
|
9
|
+
* chat's folder can't serve falls back to the host's default there.
|
|
8
10
|
*
|
|
9
11
|
* <PlacePicker value={place} onChange={save} hosts={hosts} serverMachines={machines} />
|
|
10
12
|
*/
|
|
@@ -9,6 +9,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
import { LOCAL_HOST_KEY, machineKind, placeEnvironmentKind, placeOfPick, samePlace } from "zidane/chat/pure";
|
|
10
10
|
// src/chat/composer/PlacePicker.tsx
|
|
11
11
|
const OFFLINE_WAITS = { offlineWaits: true };
|
|
12
|
+
const ANY_FOLDER = {
|
|
13
|
+
offlineWaits: true,
|
|
14
|
+
machineOnly: true
|
|
15
|
+
};
|
|
12
16
|
const NO_PROJECTS = [];
|
|
13
17
|
/**
|
|
14
18
|
* Renders the where pill and the place's folder picker; each pick calls `onChange` with the new place.
|
|
@@ -30,7 +34,7 @@ function PlacePicker({ value, inherited, onChange, hosts, local = true, hiddenMa
|
|
|
30
34
|
]);
|
|
31
35
|
const host = listed.find((h) => h.id === shown.hostId);
|
|
32
36
|
const reachable = hostReachable(host);
|
|
33
|
-
const descriptors = useEnvironmentChoices(shown.machine ? "" : shown.folder ?? "", onServer ? shown.hostId : void 0, OFFLINE_WAITS);
|
|
37
|
+
const descriptors = useEnvironmentChoices(shown.machine ? "" : shown.folder ?? "", onServer ? shown.hostId : void 0, shown.folder ? OFFLINE_WAITS : ANY_FOLDER);
|
|
34
38
|
const kind = placeEnvironmentKind(shown);
|
|
35
39
|
const environment = useMemo(() => kind ? {
|
|
36
40
|
kind,
|
|
@@ -3,7 +3,7 @@ import { resolveDraftDescriptor } from "../../git/headless/environment.js";
|
|
|
3
3
|
import { resolveRemoteClone } from "../../git/headless/remote-clone.js";
|
|
4
4
|
import { useImportRepo } from "../../git/ImportRepoDialog.js";
|
|
5
5
|
import { useEnvironmentChoices } from "../../git/useEnvironmentChoices.js";
|
|
6
|
-
import { draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders } from "../headless/draft-target.js";
|
|
6
|
+
import { draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders, unavailablePlaceIssue } from "../headless/draft-target.js";
|
|
7
7
|
import { useEffect, useMemo, useState } from "react";
|
|
8
8
|
import { LOCAL_HOST_KEY, placeEnvironmentKind, placeOfPick } from "zidane/chat/pure";
|
|
9
9
|
// src/chat/composer/use-draft-target.ts
|
|
@@ -136,6 +136,15 @@ function useDraftTarget(options) {
|
|
|
136
136
|
setPlaceCheck(null);
|
|
137
137
|
} else if (!placeCheck.folder) setPlaceCheck(null);
|
|
138
138
|
}
|
|
139
|
+
const placeKind = isNewSession && place && placeSaved && place.hostId === hostId ? placeEnvironmentKind(place) : void 0;
|
|
140
|
+
const fallbackIssue = unavailablePlaceIssue(placeKind, environment?.kind, environmentChoices, descriptor);
|
|
141
|
+
const fallbackKey = fallbackIssue ? JSON.stringify([
|
|
142
|
+
placeKind,
|
|
143
|
+
folderPath,
|
|
144
|
+
remoteFolder
|
|
145
|
+
]) : null;
|
|
146
|
+
const [dismissedFallback, setDismissedFallback] = useState(null);
|
|
147
|
+
const shownFallback = fallbackIssue && fallbackKey !== dismissedFallback ? fallbackIssue : null;
|
|
139
148
|
const localFolder = draftLocalFolder({
|
|
140
149
|
...folderState,
|
|
141
150
|
onMachine: Boolean(machine)
|
|
@@ -304,8 +313,11 @@ function useDraftTarget(options) {
|
|
|
304
313
|
machineFolder,
|
|
305
314
|
setMachineFolder,
|
|
306
315
|
machineHost,
|
|
307
|
-
placeIssue,
|
|
308
|
-
dismissPlaceIssue: () =>
|
|
316
|
+
placeIssue: placeIssue ?? shownFallback,
|
|
317
|
+
dismissPlaceIssue: () => {
|
|
318
|
+
if (placeIssue) setPlaceIssue(null);
|
|
319
|
+
else setDismissedFallback(fallbackKey);
|
|
320
|
+
},
|
|
309
321
|
here,
|
|
310
322
|
error,
|
|
311
323
|
setError
|
|
@@ -15,6 +15,7 @@ const LINE_CHARS = 2e3;
|
|
|
15
15
|
*/
|
|
16
16
|
function createChatBlockRuns(transport) {
|
|
17
17
|
const stores = /* @__PURE__ */ new Map();
|
|
18
|
+
const views = /* @__PURE__ */ new Map();
|
|
18
19
|
/** The last read asked for, per session: an older answer never overwrites a newer one. */
|
|
19
20
|
const reads = /* @__PURE__ */ new Map();
|
|
20
21
|
const refresh = (sessionId) => {
|
|
@@ -36,6 +37,30 @@ function createChatBlockRuns(transport) {
|
|
|
36
37
|
}
|
|
37
38
|
return store;
|
|
38
39
|
};
|
|
40
|
+
const viewOf = (sessionId) => {
|
|
41
|
+
let view = views.get(sessionId);
|
|
42
|
+
if (!view) {
|
|
43
|
+
const store = runsOf(sessionId);
|
|
44
|
+
let watchers = 0;
|
|
45
|
+
let stale = false;
|
|
46
|
+
view = {
|
|
47
|
+
get: store.get,
|
|
48
|
+
subscribe(onChange) {
|
|
49
|
+
if (watchers++ === 0 && stale) refresh(sessionId);
|
|
50
|
+
const off = store.subscribe(onChange);
|
|
51
|
+
let on = true;
|
|
52
|
+
return () => {
|
|
53
|
+
if (!on) return;
|
|
54
|
+
on = false;
|
|
55
|
+
off();
|
|
56
|
+
if (--watchers === 0) stale = true;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
views.set(sessionId, view);
|
|
61
|
+
}
|
|
62
|
+
return view;
|
|
63
|
+
};
|
|
39
64
|
const lives = /* @__PURE__ */ new Map();
|
|
40
65
|
const stops = /* @__PURE__ */ new Map();
|
|
41
66
|
const liveOf = (sessionId) => {
|
|
@@ -55,7 +80,7 @@ function createChatBlockRuns(transport) {
|
|
|
55
80
|
});
|
|
56
81
|
};
|
|
57
82
|
return {
|
|
58
|
-
runs:
|
|
83
|
+
runs: viewOf,
|
|
59
84
|
run: (sessionId, request, options) => transport.run(sessionId, request, options),
|
|
60
85
|
remove: (sessionId, key) => transport.remove(sessionId, key),
|
|
61
86
|
live: liveOf,
|
|
@@ -42,7 +42,7 @@ const normalizeId = (id) => id.replace(/-/g, "").toLowerCase();
|
|
|
42
42
|
* @param token - The chip's text (`#3f2a`).
|
|
43
43
|
*/
|
|
44
44
|
function sessionForToken(sessions, token) {
|
|
45
|
-
const needle = token.replace(/^#/, "")
|
|
45
|
+
const needle = normalizeId(token.replace(/^#/, ""));
|
|
46
46
|
if (!needle) return null;
|
|
47
47
|
const hits = sessions.filter((s) => normalizeId(s.id).startsWith(needle));
|
|
48
48
|
return hits.length === 1 ? hits[0] : null;
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* The draft starts on this computer.
|
|
11
11
|
* - `machine-gone`: the machine is no longer one of the server's. The draft starts on the server itself.
|
|
12
12
|
* - `folder-gone`: the folder is not there any more. The draft starts in the usual folder.
|
|
13
|
+
* - `unavailable`: the place's isolation can't run in the draft's folder (`label`, and its `reason`). The draft
|
|
14
|
+
* starts in `fallback`, the host's default (or Local), and starts in the isolation again in a folder it serves.
|
|
13
15
|
*/
|
|
14
16
|
export type DraftPlaceIssue = {
|
|
15
17
|
kind: 'unsaved';
|
|
@@ -22,7 +24,31 @@ export type DraftPlaceIssue = {
|
|
|
22
24
|
} | {
|
|
23
25
|
kind: 'folder-gone';
|
|
24
26
|
folder: string;
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'unavailable';
|
|
29
|
+
label: string;
|
|
30
|
+
reason?: string;
|
|
31
|
+
fallback: string;
|
|
25
32
|
};
|
|
33
|
+
/** A descriptor as {@link unavailablePlaceIssue} reads it. */
|
|
34
|
+
interface PlaceKindDescriptor {
|
|
35
|
+
kind: string;
|
|
36
|
+
label: string;
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
available: boolean;
|
|
39
|
+
reason?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The `unavailable` issue of a new chat whose default place asks for `placeKind`: when the draft still asks
|
|
43
|
+
* for it (`draftKind`), the host lists it, and it can't run in the draft's folder, so the draft resolved to
|
|
44
|
+
* `resolved` instead. `null` otherwise: it runs there, the draft picked something else, or the list is not in yet.
|
|
45
|
+
*
|
|
46
|
+
* @param placeKind - The default place's isolation (`placeEnvironmentKind`); absent: the host's default.
|
|
47
|
+
* @param draftKind - What the draft asks for now.
|
|
48
|
+
* @param descriptors - What the draft's host lists for its folder.
|
|
49
|
+
* @param resolved - What the draft resolved to (`resolveDraftDescriptor`).
|
|
50
|
+
*/
|
|
51
|
+
export declare function unavailablePlaceIssue(placeKind: string | undefined, draftKind: string | undefined, descriptors: readonly PlaceKindDescriptor[], resolved: Pick<PlaceKindDescriptor, 'kind' | 'label'> | undefined): DraftPlaceIssue | null;
|
|
26
52
|
/** A session row as {@link recentLocalFolders} reads it. */
|
|
27
53
|
export interface DraftFolderSource {
|
|
28
54
|
/** The session's folder (`''`: none). */
|
|
@@ -72,4 +98,5 @@ export declare function draftFolderPath(state: DraftFolderState): string | null;
|
|
|
72
98
|
*
|
|
73
99
|
* @param state - The draft's picks (`sessionCwd` set: not a draft, `null`).
|
|
74
100
|
*/
|
|
75
|
-
export declare function draftLocalFolder(state: DraftFolderState): string | null;
|
|
101
|
+
export declare function draftLocalFolder(state: DraftFolderState): string | null;
|
|
102
|
+
export {};
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
// src/chat/headless/draft-target.ts
|
|
2
2
|
/**
|
|
3
|
+
* The `unavailable` issue of a new chat whose default place asks for `placeKind`: when the draft still asks
|
|
4
|
+
* for it (`draftKind`), the host lists it, and it can't run in the draft's folder, so the draft resolved to
|
|
5
|
+
* `resolved` instead. `null` otherwise: it runs there, the draft picked something else, or the list is not in yet.
|
|
6
|
+
*
|
|
7
|
+
* @param placeKind - The default place's isolation (`placeEnvironmentKind`); absent: the host's default.
|
|
8
|
+
* @param draftKind - What the draft asks for now.
|
|
9
|
+
* @param descriptors - What the draft's host lists for its folder.
|
|
10
|
+
* @param resolved - What the draft resolved to (`resolveDraftDescriptor`).
|
|
11
|
+
*/
|
|
12
|
+
function unavailablePlaceIssue(placeKind, draftKind, descriptors, resolved) {
|
|
13
|
+
if (!placeKind || draftKind !== placeKind || !resolved || resolved.kind === placeKind) return null;
|
|
14
|
+
const wanted = descriptors.find((d) => d.kind === placeKind);
|
|
15
|
+
if (!wanted || wanted.enabled && wanted.available) return null;
|
|
16
|
+
return {
|
|
17
|
+
kind: "unavailable",
|
|
18
|
+
label: wanted.label,
|
|
19
|
+
...wanted.reason ? { reason: wanted.reason } : {},
|
|
20
|
+
fallback: resolved.label
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
3
24
|
* This computer's recent folders, most recent first (the rows' order), each once.
|
|
4
25
|
*
|
|
5
26
|
* @param sessions - The session rows, most recently updated first.
|
|
@@ -55,4 +76,4 @@ function draftLocalFolder(state) {
|
|
|
55
76
|
if (state.sessionCwd !== void 0 || state.onServer || state.onMachine || state.folderless) return null;
|
|
56
77
|
return draftFolderPath(state) || null;
|
|
57
78
|
}
|
|
58
|
-
export { draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders };
|
|
79
|
+
export { draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders, unavailablePlaceIssue };
|
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
* an agent running in the page and a recorded fixture all implement this.
|
|
9
9
|
*/
|
|
10
10
|
import { ChatBlockRuns } from "./block-runs.js";
|
|
11
|
+
import { ToolOutputRange } from "./output-pager.js";
|
|
11
12
|
import { PromptOrigin } from "./prompt-origin.js";
|
|
12
13
|
import { SessionRemoval, SessionRowChange } from "./sidebar/directory.js";
|
|
13
14
|
import { SessionArchiveFilter, SidebarListSession } from "./sidebar/types.js";
|
|
14
15
|
import { SidebarViewsHost } from "./sidebar/view.js";
|
|
15
16
|
import { Readable } from "./store.js";
|
|
16
17
|
import { ChatBadgeActions, ChatChipDetails, ChatPaths, ChatReferences, ChatSearchSync, ChatSiteIcons } from "./transcript-host.js";
|
|
17
|
-
import { PromptSegmentRef } from "zidane/chat/pure";
|
|
18
|
-
import { InteractionRequest, InteractionResponse, MessageDelivery, SessionInboxPatch as SessionInboxPatch$1, StreamEvent } from "zidane/chat";
|
|
18
|
+
import { PromptOutline, PromptSegmentRef, TranscriptEvents } from "zidane/chat/pure";
|
|
19
|
+
import { InteractionRequest, InteractionResponse, MessageDelivery, SessionInboxPatch as SessionInboxPatch$1, StreamEvent, ToolCallDetail as ToolCallDetail$1, ToolResultSlice } from "zidane/chat";
|
|
19
20
|
/** An attachment on a prompt, as the components can show it. */
|
|
20
21
|
export interface ChatAttachment {
|
|
21
22
|
/** File name shown on the attachment chip. */
|
|
@@ -26,6 +27,8 @@ export interface ChatAttachment {
|
|
|
26
27
|
size: number;
|
|
27
28
|
/** Where a preview loads the bytes from (images and PDFs): a `data:` URL, an object URL, or any URL the page can load. */
|
|
28
29
|
dataUrl?: string;
|
|
30
|
+
/** The blob the session store holds it as (`attachment://<hash>`): without `dataUrl`, it loads by hash (`TranscriptActions.blobMediaUrl`). */
|
|
31
|
+
ref?: string;
|
|
29
32
|
/**
|
|
30
33
|
* The file as the user picked it, when the composer converted it to send
|
|
31
34
|
* (an image re-encoded to fit the cap). The host saves these bytes where
|
|
@@ -46,9 +49,10 @@ export interface ChatAttachmentOriginal {
|
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
51
|
* zidane's canonical transcript event, plus what a live client knows and a
|
|
49
|
-
* replay does not: attachment previews, arrival times
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
+
* replay does not: attachment previews, arrival times and thinking
|
|
53
|
+
* durations. Every extra is optional; a replayed `StreamEvent` list is a
|
|
54
|
+
* valid `ChatEvent` list. What the host cut from a row for the wire is the
|
|
55
|
+
* event's own `clipped` (`host.toolOutput`, `host.toolCall` fetch the rest).
|
|
52
56
|
*/
|
|
53
57
|
export type ChatEvent = Omit<StreamEvent, 'attachments'> & {
|
|
54
58
|
attachments?: readonly ChatAttachment[];
|
|
@@ -57,8 +61,6 @@ export type ChatEvent = Omit<StreamEvent, 'attachments'> & {
|
|
|
57
61
|
* only when its host sent none (`startedAt` / `durationMs`, an older host).
|
|
58
62
|
*/
|
|
59
63
|
receivedAt?: number;
|
|
60
|
-
/** The `tool-result` text was cut for transport; `host.toolOutput` fetches the whole of it. */
|
|
61
|
-
clipped?: true;
|
|
62
64
|
/** Epoch ms a live thinking segment opened (on its first event). */
|
|
63
65
|
thinkingStartedAt?: number;
|
|
64
66
|
/** A closed live thinking segment's duration, replacing `thinkingStartedAt`. */
|
|
@@ -103,6 +105,12 @@ export interface ChatSession {
|
|
|
103
105
|
export interface TranscriptState {
|
|
104
106
|
/** The events loaded so far, oldest first. */
|
|
105
107
|
events: readonly ChatEvent[];
|
|
108
|
+
/**
|
|
109
|
+
* The same events as a transcript store (settled exchanges and the open one), when the host keeps them so
|
|
110
|
+
* (`SessionStreamStore`). A renderer that reads it walks only the open exchange per streamed delta; `events`
|
|
111
|
+
* is then made on first read.
|
|
112
|
+
*/
|
|
113
|
+
transcript?: TranscriptEvents<ChatEvent>;
|
|
106
114
|
/** A run is in flight: the last reply may still be streaming. */
|
|
107
115
|
running: boolean;
|
|
108
116
|
/** History has arrived (until then the transcript shows its loading state). */
|
|
@@ -116,6 +124,16 @@ export interface TranscriptState {
|
|
|
116
124
|
export interface Transcript extends Readable<TranscriptState> {
|
|
117
125
|
/** Fetches older events and prepends them to `events`. Absent: the Earlier messages control is hidden. */
|
|
118
126
|
loadEarlier?: () => void;
|
|
127
|
+
/**
|
|
128
|
+
* Loads the earlier pages up to turn position `index` (a prompt the rail lists, `PromptOutlineEntry.index`).
|
|
129
|
+
* Resolves `true` once that turn's rows are in. Absent: the rail jumps only to prompts already loaded.
|
|
130
|
+
*/
|
|
131
|
+
loadThrough?: (index: number) => Promise<boolean>;
|
|
132
|
+
/**
|
|
133
|
+
* The session's prompt outline: every typed prompt and its turn position, loaded or not. `null` when the host
|
|
134
|
+
* can't say (one from before it). Absent: the rail lists the loaded prompts only.
|
|
135
|
+
*/
|
|
136
|
+
outline?: () => Promise<PromptOutline | null>;
|
|
119
137
|
}
|
|
120
138
|
/** A request from the agent that waits for the user: a question, a plan, or an approval. */
|
|
121
139
|
export interface ChatInteraction {
|
|
@@ -276,12 +294,30 @@ export interface ChatHost {
|
|
|
276
294
|
models?: Readable<readonly ChatModelProvider[]>;
|
|
277
295
|
/** A tool call's full output, when the event carries a preview only. */
|
|
278
296
|
toolOutput?: (sessionId: string, callId: string) => Promise<string | null>;
|
|
297
|
+
/**
|
|
298
|
+
* One range of a tool call's full output (UTF-16 code units), when the event carries a preview only:
|
|
299
|
+
* the row then pages through it (`TOOL_OUTPUT_PAGE_SIZE` at a time) instead of reading it whole with
|
|
300
|
+
* `toolOutput`. `null` when the host holds no result for the call. `turnId`: the call's turn, a hint
|
|
301
|
+
* where to look first.
|
|
302
|
+
*/
|
|
303
|
+
toolOutputRange?: (sessionId: string, callId: string, range: ToolOutputRange, turnId?: string) => Promise<ToolResultSlice | null>;
|
|
304
|
+
/**
|
|
305
|
+
* The whole of a tool call (its input, every hunk of its edit), when the
|
|
306
|
+
* event went out lean (`clipped.input`, `edit.clipped`). `turnId`: the
|
|
307
|
+
* call's turn, a hint where to look first.
|
|
308
|
+
*/
|
|
309
|
+
toolCall?: (sessionId: string, callId: string, turnId?: string) => Promise<ToolCallDetail$1 | null>;
|
|
279
310
|
/**
|
|
280
311
|
* Where a message's media loads from (``, see
|
|
281
312
|
* `TranscriptActions.messageMediaUrl`): `src` as written, or the host's
|
|
282
313
|
* address for a local file; `undefined` when it serves none.
|
|
283
314
|
*/
|
|
284
315
|
messageMediaUrl?: (sessionId: string, src: string) => string | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* The address of a medium the host's session store holds by content hash (`TranscriptActions.blobMediaUrl`): a
|
|
318
|
+
* prompt's attachment, a tool result's media block. The same bytes for good. `undefined` when it serves none now.
|
|
319
|
+
*/
|
|
320
|
+
blobMediaUrl?: (hash: string, name?: string) => string | undefined;
|
|
285
321
|
/** Stop a running tool call (a shell command). */
|
|
286
322
|
cancelTool?: (sessionId: string, callId: string) => void;
|
|
287
323
|
/** The transcript search a session's other windows share. Absent: the search stays in this window. */
|
|
@@ -26,6 +26,10 @@ export interface HostView {
|
|
|
26
26
|
error?: string;
|
|
27
27
|
/** The host's home folder, shown as `~` in its paths (`useDisplayPath`). Absent: its paths show in full. */
|
|
28
28
|
home?: string;
|
|
29
|
+
/** The server signs its users in (organization mode, its handshake has an identity): "Yours on this server" shows. */
|
|
30
|
+
signsIn?: true;
|
|
31
|
+
/** It shares sessions between its people (organization mode with multiplayer on): Share… and Open sessions show. */
|
|
32
|
+
shares?: true;
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* Whether sessions on a host can be driven: This computer always, a server
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { commandRef, shortUrl, urlRefs } from "./badge-refs.js";
|
|
2
2
|
import { ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, LIVE_BLOCK_RUN_LINES, LiveBlockRun, createChatBlockRuns } from "./block-runs.js";
|
|
3
3
|
import { beginChipWork, chipWorkBusy, resetChipWorkForTests, whenChipsSettle } from "./chip-settle.js";
|
|
4
|
-
import { SessionNotification, SessionNotificationStore, createNotificationStore } from "./sidebar/notifications.js";
|
|
5
|
-
import { SessionActivityFilter, SessionArchiveFilter, SidebarExtensionView, SidebarGroupBy, SidebarInboxGroupBy, SidebarLayout, SidebarListSession, SidebarOrigin, SidebarSortBy, SidebarView, VIEW_CHOICE } from "./sidebar/types.js";
|
|
6
|
-
import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SidebarLastSessions, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, SpaceSwitcherPrefs, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
|
|
7
|
-
import { AGENT_GROUPING, MAX_ROW_CHIPS, NO_SIDEBAR_CONTRIBUTIONS, SidebarContributionStores, SidebarContributions, SidebarGrouping, SidebarItemEntry, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSpace, claimChildSessions, clearedViewFilters, createDecorator, extensionSpaceOf, filterQueryOf, filtersForSpace, itemsForSpace, mergeSidebarSpaces, nextSavedViewName, resolveGrouping, resolveSort, sidebarContributionsOf, spaceMembership, switcherSpaces, viewFilterOf, viewFiltersOn } from "./sidebar/query.js";
|
|
8
|
-
import { DirectoryServer, DirectorySettings, ProjectInSpace, RuntimeNow, RuntimeOrigin, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, SessionRef, SessionRemoval, SessionRowChange, availableProjectsOf, createSessionDirectory, filterDirectorySessions, projectKeyOf, sessionRefsOf } from "./sidebar/directory.js";
|
|
9
4
|
import { ChipViewLabels, commandName, commandView, commitView, sessionForToken, sessionView, skillGroupView, skillName, skillView } from "./chip-views.js";
|
|
10
5
|
import "./composer/index.js";
|
|
11
6
|
import { ComposerMode, caretEffectivelyAtStart, composeSubmitText, decodeHistoryEntry, encodeHistoryDraft, exitsModeOnKey, modeForTypedChar, unsentDraft } from "./composer-modes.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
7
|
+
import { DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, createDraftScopeStore, draftScopeOf } from "./draft-scope.js";
|
|
8
|
+
import { DraftFolderSource, DraftFolderState, DraftPlaceIssue, draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders, unavailablePlaceIssue } from "./draft-target.js";
|
|
9
|
+
import { FileChip, FileChipKind, chipForPath, classifyInlineCode, positionSuffix, resolveChipPath } from "./file-chip.js";
|
|
10
|
+
import { ChatAttachment, ChatAttachmentOriginal, ChatEvent, ChatHost, ChatInteraction, ChatModel, ChatModelProvider, ChatSession, ChatSessionStatus, SendInput, SessionSearchHit, Transcript, TranscriptState } from "./host.js";
|
|
16
11
|
import { BookDraft, ComposerDraftStorage, DraftBook, NewChatPlaceKey, StoredComposerDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, WebStorageDraftStorageOptions, createDraftBook, createWebStorageDraftStorage, draftBookOf, newChatDraftKey } from "./composer/draft-book.js";
|
|
17
12
|
import { ResourceSnapshot } from "../../app/headless/resource.js";
|
|
18
13
|
import { ComposerModelEntry, ComposerModelOption, ImageModelRow, ModelCatalogRow, ModelPickRef } from "./composer/models.js";
|
|
@@ -21,15 +16,6 @@ import { EMPTY_RUN_METER, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState,
|
|
|
21
16
|
import { ComposerAgentProfile, ComposerAgents, ComposerCacheImpact, ComposerCacheImpactChange, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerEffort, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerSessionView } from "./composer/host-chrome.js";
|
|
22
17
|
import { DEFAULT_MODEL_PICKER_PREFS, MODEL_PICKER_STORAGE_KEY, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, createModelPickerPrefs, parseModelPickerPrefs } from "./composer/model-picker-prefs.js";
|
|
23
18
|
import { CommandArgSuggestionSummary, CommandSummary, ComposerAttachment, ComposerAutocomplete, ComposerCommandArgs, ComposerCompletions, ComposerDraftAttachmentsListener, ComposerDrafts, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerPromptSuggestion, ComposerScope, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, FileEntry, PromptAttachment, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SkillConfig } from "./composer/host.js";
|
|
24
|
-
import { DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, createDraftScopeStore, draftScopeOf } from "./draft-scope.js";
|
|
25
|
-
import { DraftFolderSource, DraftFolderState, DraftPlaceIssue, draftFolderPath, draftLocalFolder, recentHostFolders, recentLocalFolders } from "./draft-target.js";
|
|
26
|
-
import { FileChip, FileChipKind, chipForPath, classifyInlineCode, positionSuffix, resolveChipPath } from "./file-chip.js";
|
|
27
|
-
import { SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, createSessionBadges } from "./sidebar/badges.js";
|
|
28
|
-
import { SessionWindowMode, SidebarEnvironmentHost, SidebarHost } from "./sidebar/host.js";
|
|
29
|
-
import { COMMON_EMOJI, MAIN_SESSION_ICON_KEY, PROJECT_ICONS_KEY, ProjectIcon, ProjectIconMap, firstGrapheme, isProjectIcon, parseProjectIcons } from "./sidebar/project-icons.js";
|
|
30
|
-
import { ChatAttachment, ChatAttachmentOriginal, ChatEvent, ChatHost, ChatInteraction, ChatModel, ChatModelProvider, ChatSession, ChatSessionStatus, SendInput, SessionSearchHit, Transcript, TranscriptState } from "./host.js";
|
|
31
|
-
import { HostStatus, HostView, hostReachable, hostStatusLabel } from "./hosts.js";
|
|
32
|
-
import { ChatLabels, DEFAULT_CHAT_LABELS, secretExpiryWords } from "./labels.js";
|
|
33
19
|
import { findCommand } from "./composer/commands.js";
|
|
34
20
|
import { ComposerListScope, ComposerLists, LazyList, createComposerLists } from "./composer/composer-sources.js";
|
|
35
21
|
import { ComposerChromeLabels, DEFAULT_COMPOSER_CHROME_LABELS } from "./composer/labels-chrome.js";
|
|
@@ -40,8 +26,11 @@ import { ModelKnobs, ModelKnobsMemory, ModelKnobsStore, createModelKnobs, modelK
|
|
|
40
26
|
import { ModelNames, ModelNamesProvider, ModelNamesStore, createModelNames, modelNamesOf, namerFor } from "./composer/model-names.js";
|
|
41
27
|
import { EffortPickerTarget, defaultModelPatch, effortPickerTarget, rememberedDefaultModel } from "./composer/new-session-defaults.js";
|
|
42
28
|
import { SetDefaultModel, commitModelPick, lastModelChainOf, rememberableChain, rememberedPick, settledResource } from "./composer/remember-model-pick.js";
|
|
29
|
+
import { HostStatus, HostView, hostReachable, hostStatusLabel } from "./hosts.js";
|
|
30
|
+
import { ChatLabels, DEFAULT_CHAT_LABELS, secretExpiryWords } from "./labels.js";
|
|
43
31
|
import { CHUNK_THRESHOLD, OpenFence, openFenceOf, splitMarkdown, withoutPartialEmphasis, withoutPartialFence } from "./markdown-chunks.js";
|
|
44
32
|
import { NotificationSettings, NotifyEvent, approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify } from "./notifications.js";
|
|
33
|
+
import { TOOL_OUTPUT_PAGE_SIZE, ToolOutputPager, ToolOutputPagerOptions, ToolOutputPagerState, ToolOutputRange, ToolOutputRangeReader, createToolOutputPager, sliceToolOutput, toolOutputPagerDone } from "./output-pager.js";
|
|
45
34
|
import { ChipResolution, PathResolver, PathResolverOptions, createPathResolver } from "./path-resolver.js";
|
|
46
35
|
import { PromptOrigin, PromptOriginWire, PromptViewOrigin, promptOriginWire } from "./prompt-origin.js";
|
|
47
36
|
import { REFERENCES_STORAGE_KEY, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, createReferenceStore } from "./reference-store.js";
|
|
@@ -49,28 +38,37 @@ import { SecretTimeLeft, secretTimeLeft, secretTimeLeftIso } from "./secrets.js"
|
|
|
49
38
|
import { NO_PROVIDER_ERROR, NewSessionDefaults, NewSessionRequest, SendAttachment, SendDraft, SendFlowDeps, SendPromptAttachment, SendRequest, newSessionRequest, promptAttachments, promptRefs, sendPrompt, shellCommandOf, wireOriginal } from "./send-flow.js";
|
|
50
39
|
import { CalendarOptions, ListableSession, PROJECT_GROUP_CAP, RELATIVE_TIME_DATE_AFTER_DAYS, SessionGroupBy, SessionListOptions, SessionListRow, SessionSortBy, buildSessionRows, compareSessions, dateBucket, filterSessions, formatElapsedShort, relativeTime } from "./session-list.js";
|
|
51
40
|
import "./sidebar/index.js";
|
|
52
|
-
import { createSiteIcons, siteOrigin } from "./site-icons.js";
|
|
53
|
-
import { DeltaBucket, SMOOTH_TICK_MS, drainBucket, safeSurrogateSlice, tickBucket } from "./smooth-stream.js";
|
|
54
|
-
import { DEFAULT_SIDEBAR_LABELS, SidebarLabels } from "./sidebar/labels.js";
|
|
55
41
|
import { SessionActivity, SessionActivitySignal, SessionActivityStore, activityLabel, createSessionActivity, reduceActivity } from "./sidebar/activity.js";
|
|
42
|
+
import { SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, createSessionBadges } from "./sidebar/badges.js";
|
|
56
43
|
import { CompactionProgress, CompactionProgressStore, CompactionSignal, createCompactionProgress, reduceCompaction } from "./sidebar/compaction.js";
|
|
57
44
|
import { DotStateInput, SidebarDotState, deriveDotState } from "./sidebar/dot-state.js";
|
|
58
|
-
import { deleteSessionPrompt, environmentKindLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
|
|
45
|
+
import { deleteSessionPrompt, environmentKindLabel, environmentLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
|
|
59
46
|
import { RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, createRunEstimates, pickRunEstimate } from "./sidebar/estimates.js";
|
|
60
47
|
import { SESSION_HISTORY_LIMIT, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, createSessionHistory, parseSessionHistory } from "./sidebar/history.js";
|
|
48
|
+
import { SessionWindowMode, SidebarEnvironmentHost, SidebarHost } from "./sidebar/host.js";
|
|
49
|
+
import { SessionActivityFilter, SessionArchiveFilter, SidebarExtensionView, SidebarGroupBy, SidebarInboxGroupBy, SidebarLayout, SidebarListSession, SidebarOrigin, SidebarSortBy, SidebarView, VIEW_CHOICE } from "./sidebar/types.js";
|
|
61
50
|
import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxUrgency, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
|
|
62
51
|
import { SessionInboxFields, SessionInboxPatch, applyInboxPatch, isSettled, isSnoozed, nextWakeAt } from "./sidebar/inbox-state.js";
|
|
52
|
+
import { SessionNotification, SessionNotificationStore, createNotificationStore } from "./sidebar/notifications.js";
|
|
63
53
|
import { PINNED_PROJECTS_KEY, PinsBySpace, parsePinnedProjects, withPinnedProject } from "./sidebar/pinned-projects.js";
|
|
64
54
|
import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
|
|
55
|
+
import { COMMON_EMOJI, MAIN_SESSION_ICON_KEY, PROJECT_ICONS_KEY, ProjectIcon, ProjectIconMap, firstGrapheme, isProjectIcon, parseProjectIcons } from "./sidebar/project-icons.js";
|
|
56
|
+
import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SidebarLastSessions, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, SpaceSwitcherPrefs, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
|
|
57
|
+
import { AGENT_GROUPING, MAX_ROW_CHIPS, NO_SIDEBAR_CONTRIBUTIONS, SidebarContributionStores, SidebarContributions, SidebarGrouping, SidebarItemEntry, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSpace, claimChildSessions, clearedViewFilters, createDecorator, extensionSpaceOf, filterQueryOf, filtersForSpace, itemsForSpace, mergeSidebarSpaces, nextSavedViewName, resolveGrouping, resolveSort, sidebarContributionsOf, spaceMembership, switcherSpaces, viewFilterOf, viewFiltersOn } from "./sidebar/query.js";
|
|
65
58
|
import { BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, SidebarListRow, SidebarNode, buildHostSidebarRows, buildQuerySidebarRows, buildSidebarRows, groupsByFolder, isProjectMember, itemRows, nestSidebarRows, partitionMainSession, projectPathOf, repoGroups } from "./sidebar/rows.js";
|
|
59
|
+
import { createSiteIcons, siteOrigin } from "./site-icons.js";
|
|
60
|
+
import { DeltaBucket, SMOOTH_TICK_MS, drainBucket, safeSurrogateSlice, tickBucket } from "./smooth-stream.js";
|
|
66
61
|
import { Readable, Writable, constant, useReadable, writable } from "./store.js";
|
|
67
|
-
import "./streams/
|
|
62
|
+
import { FrameScheduler, defaultFrameScheduler } from "./streams/scheduler.js";
|
|
63
|
+
import { OtherStreamSignal, SessionFallbackModel, SessionPageState, SessionRetryState, SessionStreamPage, SessionStreamSignal } from "./streams/types.js";
|
|
64
|
+
import { DrainPlan } from "./streams/pacer.js";
|
|
65
|
+
import { PendingEcho, SessionStreamStore, SessionStreamStoreOptions, SessionStreamWrite } from "./streams/store.js";
|
|
68
66
|
import { LoadEarlierOptions, SessionStreams, SessionStreamsOptions, createSessionStreams } from "./streams/session-streams.js";
|
|
69
67
|
import { SessionStreamActions, createSessionStreamActions } from "./streams/actions.js";
|
|
70
68
|
import { mergeLiveTail } from "./streams/merge.js";
|
|
71
69
|
import { mergePromptPreviews, missingPreviewData } from "./streams/prompt-previews.js";
|
|
72
70
|
import { selectEditEvents, stableSelection } from "./streams/selectors.js";
|
|
73
|
-
import "./
|
|
71
|
+
import "./streams/index.js";
|
|
74
72
|
import { AuthCardPlan, AuthFixes, AuthSettingsTarget, authFailureDetails, createAuthFixes, isAuthFixed, planAuthCard } from "./transcript/auth-failure.js";
|
|
75
73
|
import { BashExitMeta, Cluster, DotVariant, ExchangeFoldStats, GroupCluster, Owned, Row, SpawnMeta, TaskInfo, ToolRowModel, firstRowId, parseBashExitMeta } from "./transcript/rows.js";
|
|
76
74
|
import { batchTaskRuns, batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
|
|
@@ -80,9 +78,12 @@ import { dockRunReceipts, dotVariantFor, findLastStreamingRow, foldExchanges, fo
|
|
|
80
78
|
import { FoldActionItem, FoldActionState, foldActionItems, toolAction } from "./transcript/fold-actions.js";
|
|
81
79
|
import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
|
|
82
80
|
import { PairingResult, ToolPairing, pairToolEvents } from "./transcript/pairing.js";
|
|
83
|
-
import { EMPTY_RAIL, RailExchange, RailModel, TranscriptRailState, TranscriptRailStore, computeRailModel, createTranscriptRailStore, dataRowSelector, plainPreview, sameRail } from "./transcript/rail.js";
|
|
81
|
+
import { EMPTY_RAIL, RailExchange, RailModel, TranscriptRailState, TranscriptRailStore, computeRailModel, computeRailModelParts, createTranscriptRailStore, dataRowSelector, plainPreview, railWithOutline, sameRail } from "./transcript/rail.js";
|
|
84
82
|
import { RunFailure, failureTooltip, markRunFailures } from "./transcript/run-failures.js";
|
|
85
83
|
import { SelectStops, computeSelectStops, rowTurnIds, stopForRow } from "./transcript/select-stops.js";
|
|
84
|
+
import "./transcript/index.js";
|
|
86
85
|
import { ChatBadgeActions, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSessionFacts, ChatSiteIcons, ChatSkillFacts } from "./transcript-host.js";
|
|
86
|
+
import { DEFAULT_SIDEBAR_LABELS, SidebarLabels } from "./sidebar/labels.js";
|
|
87
|
+
import { DirectoryServer, DirectorySettings, ProjectInSpace, RuntimeNow, RuntimeOrigin, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, SessionRef, SessionRemoval, SessionRowChange, availableProjectsOf, createSessionDirectory, filterDirectorySessions, projectKeyOf, sessionRefsOf } from "./sidebar/directory.js";
|
|
87
88
|
import { TurnPromptDraft, promptDraftOf } from "./turn-prompt.js";
|
|
88
|
-
export { AGENT_GROUPING, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RAIL, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, type RailExchange, type RailModel, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, type TaskInfo, type ToolPairing, type ToolRowModel, Transcript, type TranscriptRailState, type TranscriptRailStore, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
|
|
89
|
+
export { AGENT_GROUPING, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RAIL, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, type RailExchange, type RailModel, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, TOOL_OUTPUT_PAGE_SIZE, type TaskInfo, ToolOutputPager, ToolOutputPagerOptions, ToolOutputPagerState, ToolOutputRange, ToolOutputRangeReader, type ToolPairing, type ToolRowModel, Transcript, type TranscriptRailState, type TranscriptRailStore, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeRailModelParts, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createToolOutputPager, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, railWithOutline, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, sliceToolOutput, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, toolOutputPagerDone, unavailablePlaceIssue, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
|