zidane-ui 9.2.2 → 9.3.1
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/browser-keybindings-host.js +3 -1
- package/dist/adapters/live.d.ts +6 -0
- package/dist/adapters/live.js +16 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-host.js +143 -18
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -1
- package/dist/adapters/server-settings-host.js +30 -3
- package/dist/adapters/server-settings-sections.js +23 -1
- package/dist/adapters/server-sidebar-host.d.ts +3 -1
- package/dist/adapters/server-sidebar-host.js +10 -1
- package/dist/app/ModalProvider.js +1 -1
- package/dist/approvals/ApprovalShell.js +1 -1
- package/dist/chat/DaemonOrb.d.ts +29 -1
- package/dist/chat/DaemonOrb.js +25 -12
- package/dist/chat/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +6 -1
- package/dist/chat/SessionStreamsProvider.d.ts +8 -0
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/StatusDot.js +8 -2
- package/dist/chat/Transcript.d.ts +20 -11
- package/dist/chat/Transcript.js +335 -162
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/index.d.ts +8 -6
- package/dist/chat/headless/index.js +11 -9
- package/dist/chat/headless/labels.d.ts +30 -0
- package/dist/chat/headless/labels.js +29 -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 +66 -0
- package/dist/chat/headless/markdown-scan.js +124 -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/session-list.d.ts +20 -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 +17 -2
- package/dist/chat/headless/sidebar/directory.js +50 -54
- package/dist/chat/headless/sidebar/environment.d.ts +5 -2
- package/dist/chat/headless/sidebar/environment.js +11 -2
- package/dist/chat/headless/sidebar/host.d.ts +15 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
- package/dist/chat/headless/sidebar/inbox.js +18 -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 +38 -2
- package/dist/chat/headless/sidebar/labels.js +16 -0
- 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 +2 -0
- package/dist/chat/headless/streams/actions.js +1 -0
- package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
- package/dist/chat/headless/streams/event-bytes.js +34 -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 +24 -1
- package/dist/chat/headless/streams/store.js +51 -26
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +88 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- 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 +32 -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-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +16 -0
- 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 +4 -2
- package/dist/chat/headless/transcript/fold.js +37 -7
- 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 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/nesting.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +142 -0
- package/dist/chat/headless/transcript/rail.js +290 -0
- package/dist/chat/headless/transcript/rows.d.ts +11 -1
- package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
- package/dist/chat/headless/transcript/run-failures.js +31 -2
- 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/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.js +2 -1
- package/dist/chat/index.d.ts +10 -8
- package/dist/chat/index.js +9 -7
- package/dist/chat/interactions/ElicitationCard.js +1 -1
- package/dist/chat/interactions/InteractionCard.js +1 -1
- package/dist/chat/interactions/PlanCard.js +3 -3
- package/dist/chat/interactions/QuestionField.js +4 -4
- package/dist/chat/interactions/QuestionForm.js +3 -3
- package/dist/chat/interactions/SecretInput.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.d.ts +3 -2
- package/dist/chat/sidebar/RowChips.js +6 -3
- package/dist/chat/sidebar/SessionSidebar.js +13 -14
- package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
- package/dist/chat/sidebar/SidebarFrame.js +5 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
- package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
- package/dist/chat/sidebar/SpacesSection.js +34 -13
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/sidebar/session-menu.d.ts +11 -2
- package/dist/chat/sidebar/session-menu.js +50 -5
- package/dist/chat/sidebar/sidebar-live.js +1 -1
- package/dist/chat/sidebar/useInboxRows.js +43 -2
- package/dist/chat/sidebar/useInboxTriage.js +19 -14
- package/dist/chat/testing/contract.d.ts +5 -3
- package/dist/chat/testing/contract.js +66 -1
- package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
- package/dist/chat/testing/fixture-sidebar-host.js +12 -0
- package/dist/chat/testing/sidebar.contract.d.ts +6 -0
- package/dist/chat/testing/sidebar.contract.js +24 -0
- 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/InteractionToolBody.js +1 -1
- package/dist/chat/transcript/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +101 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/SelectCursor.d.ts +11 -1
- package/dist/chat/transcript/SelectCursor.js +10 -5
- package/dist/chat/transcript/SubagentBlock.js +3 -2
- package/dist/chat/transcript/TranscriptRail.d.ts +109 -0
- package/dist/chat/transcript/TranscriptRail.js +579 -0
- package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
- package/dist/chat/transcript/TranscriptRow.js +9 -5
- package/dist/chat/transcript/actions.d.ts +43 -3
- package/dist/chat/transcript/actions.js +27 -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 +3 -2
- package/dist/chat/transcript/fold.js +21 -2
- package/dist/chat/transcript/index.d.ts +11 -9
- package/dist/chat/transcript/index.js +10 -8
- package/dist/chat/transcript/markdown-cache.d.ts +7 -1
- package/dist/chat/transcript/markdown-cache.js +12 -1
- package/dist/chat/transcript/markdown.js +116 -54
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +10 -7
- package/dist/chat/transcript/notices.d.ts +23 -1
- package/dist/chat/transcript/notices.js +110 -28
- package/dist/chat/transcript/prompt.js +6 -4
- package/dist/chat/transcript/prose.js +3 -1
- package/dist/chat/transcript/receipt-parts.d.ts +22 -0
- package/dist/chat/transcript/receipt-parts.js +87 -0
- 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 +165 -0
- package/dist/chat/transcript/row-mount.js +498 -0
- package/dist/chat/transcript/row-parking.d.ts +125 -0
- package/dist/chat/transcript/row-parking.js +135 -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 +6 -78
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/scroll-clamp.js +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 -5
- 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 +24 -7
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useSettledReveal.js +15 -3
- package/dist/chat/transcript/useStickToBottom.js +4 -4
- package/dist/chat/transcript/useTranscriptSearch.js +30 -14
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- package/dist/components/ChoiceCards.js +1 -1
- package/dist/components/ConfirmDialog.js +1 -1
- package/dist/components/CopyValue.d.ts +33 -0
- package/dist/components/CopyValue.js +54 -0
- package/dist/components/Form.js +1 -1
- package/dist/components/HowItWorks.js +1 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/StepFrame.js +2 -2
- package/dist/components/SwatchPicker.js +1 -1
- package/dist/components/ToggleCard.js +1 -1
- package/dist/components/floating/HoverCard.js +2 -3
- package/dist/components/floating/hover-delay.d.ts +4 -0
- package/dist/components/floating/hover-delay.js +6 -0
- package/dist/core.css +14 -12
- package/dist/dist/{index-Betz0OWq.d.ts → index-C6-t1SS9.d.ts} +21 -2
- package/dist/dist/index-De9AbmxS.d.ts +1 -0
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
- package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
- package/dist/extensions/ExtensionDialogHost.js +1 -1
- package/dist/files/TreeColumn.js +3 -1
- package/dist/files/headless/host.d.ts +2 -2
- package/dist/git/ImportRepoDialog.js +1 -1
- package/dist/git/MoveSessionDialog.js +2 -2
- package/dist/git/SandboxManager.d.ts +42 -0
- package/dist/git/SandboxManager.js +297 -0
- package/dist/git/SyncChip.js +1 -1
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +29 -0
- package/dist/git/headless/labels.js +34 -1
- package/dist/git/headless/sandboxes.d.ts +43 -0
- package/dist/git/headless/sandboxes.js +52 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +12 -0
- package/dist/machines/HostsSection.d.ts +1 -1
- package/dist/machines/headless/labels.js +2 -2
- package/dist/motion/flip-list.js +3 -10
- package/dist/motion/presence.d.ts +10 -0
- package/dist/motion/presence.js +20 -1
- package/dist/motion/swap.d.ts +8 -2
- package/dist/motion/swap.js +5 -2
- package/dist/onboarding/conversation.js +27 -15
- package/dist/onboarding/demos/how-it-works.js +1 -1
- package/dist/onboarding/skills/parts.js +4 -4
- package/dist/onboarding/sources/SourceBrowser.js +1 -1
- package/dist/onboarding/steps/ReadyStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +1 -1
- package/dist/palette/headless/app-sources.js +20 -0
- package/dist/palette/headless/labels.js +2 -0
- package/dist/session/PlanTracker.js +3 -3
- package/dist/session/SecretsPanel.js +1 -1
- package/dist/session/SessionHeader.d.ts +18 -6
- package/dist/session/SessionHeader.js +68 -12
- package/dist/session/SessionPlaceMenu.d.ts +35 -0
- package/dist/session/SessionPlaceMenu.js +299 -0
- package/dist/session/SessionShell.js +1 -1
- package/dist/session/TurnDetailsDialog.js +1 -1
- package/dist/session/headless/index.d.ts +2 -1
- package/dist/session/headless/index.js +2 -1
- package/dist/session/headless/labels.d.ts +73 -0
- package/dist/session/headless/labels.js +73 -0
- package/dist/session/headless/place.d.ts +49 -0
- package/dist/session/headless/place.js +57 -0
- package/dist/session/index.d.ts +2 -1
- package/dist/session/index.js +2 -1
- package/dist/settings/ConversationPresetsCard.js +1 -1
- package/dist/settings/SettingCard.js +2 -2
- package/dist/settings/SettingsRowsPage.js +1 -1
- package/dist/settings/headless/fixture-performance.js +4 -2
- package/dist/settings/headless/fixture-sections.js +7 -0
- package/dist/settings/headless/labels.d.ts +1 -1
- package/dist/settings/headless/labels.js +1 -1
- package/dist/settings/headless/layout.d.ts +4 -4
- package/dist/settings/headless/layout.js +1 -1
- package/dist/settings/headless/performance.d.ts +4 -0
- package/dist/settings/headless/search.d.ts +2 -2
- package/dist/settings/headless/sections-host.d.ts +20 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
- package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
- package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
- package/dist/settings/sections/environments/labels.d.ts +15 -0
- package/dist/settings/sections/environments/labels.js +18 -3
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
- package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
- package/dist/settings/sections/keybindings/labels.d.ts +2 -0
- package/dist/settings/sections/keybindings/labels.js +2 -0
- package/dist/settings/sections/keybindings/rows.js +8 -0
- package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
- package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
- 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/settings/sections/skills/SkillGroups.js +1 -1
- package/dist/settings/server-app.d.ts +4 -2
- package/dist/settings/server-app.js +7 -3
- package/dist/settings/testing/sections.contract.d.ts +7 -1
- package/dist/settings/testing/sections.contract.js +37 -0
- package/dist/styles.css +243 -19
- package/dist/terminal/TerminalDrawer.js +3 -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/SidePanel.js +3 -1
- package/package.json +2 -2
- package/src/styles/base.css +13 -0
- package/src/styles/chat.css +30 -0
- package/src/styles/components.css +0 -10
- package/src/styles/files.css +5 -0
- package/src/styles/sidebar.css +29 -7
- package/src/styles/terminal.css +6 -0
- package/src/styles/tokens.css +5 -0
- package/src/styles/transcript.css +138 -0
- package/src/styles/workspace.css +6 -0
- package/dist/dist/index-QcFzZlao.d.ts +0 -1
- package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
- /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
|
@@ -211,7 +211,80 @@ const SESSION_SURFACE_LABELS = {
|
|
|
211
211
|
headerChangeFolder: (cwd) => `${cwd}. Click to change folder`,
|
|
212
212
|
headerServerGone: "This server is no longer saved",
|
|
213
213
|
headerOnServer: (server) => `on ${server ?? "a removed server"}`,
|
|
214
|
+
headerBranch: (branch) => `Branch ${branch}`,
|
|
215
|
+
headerSwitchBranch: (branch) => `Branch ${branch}. Click to switch`,
|
|
214
216
|
headerRename: "Rename session",
|
|
217
|
+
placeMenu: "Where this session runs",
|
|
218
|
+
placeTones: {
|
|
219
|
+
ready: "Ready",
|
|
220
|
+
busy: "Setting up",
|
|
221
|
+
reconnecting: "Reconnecting",
|
|
222
|
+
failed: "Setup failed",
|
|
223
|
+
resuming: "Resuming",
|
|
224
|
+
paused: "Paused",
|
|
225
|
+
removed: "Deleted"
|
|
226
|
+
},
|
|
227
|
+
placeServerTones: {
|
|
228
|
+
ready: "Connected",
|
|
229
|
+
busy: "Connecting",
|
|
230
|
+
reconnecting: "Reconnecting",
|
|
231
|
+
failed: "Unreachable",
|
|
232
|
+
resuming: "Connected",
|
|
233
|
+
paused: "Connected",
|
|
234
|
+
removed: "Connected"
|
|
235
|
+
},
|
|
236
|
+
/** The state of an environment that broke after setup (`failure`), in place of `placeTones.failed`. */
|
|
237
|
+
placeBroken: {
|
|
238
|
+
lost: "Gone",
|
|
239
|
+
unreachable: "Not answering"
|
|
240
|
+
},
|
|
241
|
+
placeTip: (where, state) => `${where}: ${state}`,
|
|
242
|
+
placeResumes: "resumes on your next prompt",
|
|
243
|
+
/** After `placeTones.removed`: when the new sandbox comes. */
|
|
244
|
+
placeRecreates: "a new one on your next prompt",
|
|
245
|
+
/** Copies a detail line (the branch, the sandbox id). */
|
|
246
|
+
placeCopyBranch: "Copy branch",
|
|
247
|
+
placeCopySandboxId: "Copy sandbox id",
|
|
248
|
+
placeCopiedValue: "Copied",
|
|
249
|
+
placeOnServer: (server) => `On ${server}`,
|
|
250
|
+
placeServerGone: "A removed server",
|
|
251
|
+
placeServerGoneDetail: "This server is no longer saved.",
|
|
252
|
+
placeSetup: "Setup",
|
|
253
|
+
placeServer: "Server",
|
|
254
|
+
placeActions: "Actions",
|
|
255
|
+
placeRetry: "Retry setup",
|
|
256
|
+
placeRetryHint: "Sets the environment up again",
|
|
257
|
+
/** The retry of an environment that broke after setup, by how it broke. */
|
|
258
|
+
placeRetryBroken: {
|
|
259
|
+
lost: {
|
|
260
|
+
title: "Set up again",
|
|
261
|
+
hint: "Sets up a new one"
|
|
262
|
+
},
|
|
263
|
+
unreachable: {
|
|
264
|
+
title: "Reconnect",
|
|
265
|
+
hint: "Tries to reach it again"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
/** `placeRetryBroken.lost`'s hint for a remote sandbox, which held the only copy of the work. */
|
|
269
|
+
placeRetryLostSandboxHint: "A new one; work not pushed or saved at its last pause is lost",
|
|
270
|
+
/** Starts a paused environment now. */
|
|
271
|
+
placeWake: "Wake up",
|
|
272
|
+
placeWakeHint: "Starts it now, before your next prompt",
|
|
273
|
+
placeWakeReadyHint: "Starts it if it fell asleep on its own",
|
|
274
|
+
/** Pauses an idle sandbox now. */
|
|
275
|
+
placePause: "Pause",
|
|
276
|
+
placePauseHint: "Stops it until your next prompt",
|
|
277
|
+
/** Deletes the sandbox and keeps the session (after a confirmation). */
|
|
278
|
+
placeDelete: "Delete sandbox",
|
|
279
|
+
placeDeleteHint: "A new one gets set up on your next prompt",
|
|
280
|
+
placeDeleteConfirmTitle: "Delete this sandbox?",
|
|
281
|
+
placeDeleteConfirmMessage: "Work not pushed or saved at its last pause is lost. Your next prompt sets up a new sandbox.",
|
|
282
|
+
placeDeleteConfirm: "Delete",
|
|
283
|
+
/** The retry of a deleted sandbox: set the new one up now. */
|
|
284
|
+
placeRecreate: "Set up now",
|
|
285
|
+
placeRecreateHint: "Sets up a new sandbox",
|
|
286
|
+
placeCopy: "Copy details",
|
|
287
|
+
placeCopied: "Details copied",
|
|
215
288
|
headerDetails: "Session details",
|
|
216
289
|
detailsTitle: "Session details",
|
|
217
290
|
detailsMainDescription: "Main runs your other sessions",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a session runs, for the header's dot (`SessionPlaceMenu`): whether it runs somewhere other than this
|
|
3
|
+
* machine's folders (a sandbox, another machine, a saved server), and one tone for its state.
|
|
4
|
+
*/
|
|
5
|
+
import { HostView } from "../../chat/headless/hosts.js";
|
|
6
|
+
import { SessionEnvironmentSummary } from "zidane/chat";
|
|
7
|
+
/**
|
|
8
|
+
* The dot's state: ready, setting up or connecting, reconnecting to an environment that stopped answering, failed
|
|
9
|
+
* or unreachable, starting back up after a pause, paused while idle, its sandbox deleted (a new one comes with the
|
|
10
|
+
* next prompt).
|
|
11
|
+
*/
|
|
12
|
+
export type SessionPlaceTone = 'ready' | 'busy' | 'reconnecting' | 'failed' | 'resuming' | 'paused' | 'removed';
|
|
13
|
+
/**
|
|
14
|
+
* Whether the environment stopped answering and the host is still reconnecting to it: its window
|
|
15
|
+
* (`reconnectUntil`) has not passed. Past it, the host gave up (or went away): it reads as failed.
|
|
16
|
+
*
|
|
17
|
+
* @param environment - The session's environment, if any.
|
|
18
|
+
* @param now - The current time, epoch ms.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isReconnecting(environment: SessionEnvironmentSummary | undefined, now?: number): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the environment runs outside this machine's own folders: a sandbox, an extension's kind or another
|
|
23
|
+
* machine. A local folder and a worktree here do not.
|
|
24
|
+
*
|
|
25
|
+
* @param environment - The session's environment, if any.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isExternalEnvironment(environment: SessionEnvironmentSummary | undefined): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The environment's state in words: how it broke when it broke after setup (`failure`), else its tone.
|
|
30
|
+
*
|
|
31
|
+
* @param labels - The tone words and the broken-state words.
|
|
32
|
+
* @param labels.placeTones - A word per tone.
|
|
33
|
+
* @param labels.placeBroken - A word per way an environment breaks.
|
|
34
|
+
* @param environment - The session's environment.
|
|
35
|
+
* @param tone - Its tone (`sessionPlaceTone`).
|
|
36
|
+
*/
|
|
37
|
+
export declare function environmentStateLabel(labels: {
|
|
38
|
+
placeTones: Record<SessionPlaceTone, string>;
|
|
39
|
+
placeBroken: Record<'lost' | 'unreachable', string>;
|
|
40
|
+
}, environment: SessionEnvironmentSummary | undefined, tone: SessionPlaceTone): string;
|
|
41
|
+
/**
|
|
42
|
+
* One tone for where a session runs: a failure wins (unless the host is reconnecting to it, or it is a sandbox
|
|
43
|
+
* deleted on purpose), then work in progress, then a paused environment starting back up, then a pause.
|
|
44
|
+
*
|
|
45
|
+
* @param environment - Its environment when it runs outside this machine's folders, else `undefined`.
|
|
46
|
+
* @param server - Its server: the host, `null` once it is no longer saved, `undefined` for a session here.
|
|
47
|
+
* @param now - The current time, epoch ms (a reconnect window that passed reads as failed).
|
|
48
|
+
*/
|
|
49
|
+
export declare function sessionPlaceTone(environment: SessionEnvironmentSummary | undefined, server: HostView | null | undefined, now?: number): SessionPlaceTone;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// src/session/headless/place.ts
|
|
2
|
+
/**
|
|
3
|
+
* Whether the environment stopped answering and the host is still reconnecting to it: its window
|
|
4
|
+
* (`reconnectUntil`) has not passed. Past it, the host gave up (or went away): it reads as failed.
|
|
5
|
+
*
|
|
6
|
+
* @param environment - The session's environment, if any.
|
|
7
|
+
* @param now - The current time, epoch ms.
|
|
8
|
+
*/
|
|
9
|
+
function isReconnecting(environment, now = Date.now()) {
|
|
10
|
+
return environment?.state === "failed" && environment.failure === "unreachable" && environment.reconnectUntil !== void 0 && environment.reconnectUntil > now;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Whether the environment runs outside this machine's own folders: a sandbox, an extension's kind or another
|
|
14
|
+
* machine. A local folder and a worktree here do not.
|
|
15
|
+
*
|
|
16
|
+
* @param environment - The session's environment, if any.
|
|
17
|
+
*/
|
|
18
|
+
function isExternalEnvironment(environment) {
|
|
19
|
+
return environment !== void 0 && environment.kind !== "local" && environment.kind !== "worktree";
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The environment's state in words: how it broke when it broke after setup (`failure`), else its tone.
|
|
23
|
+
*
|
|
24
|
+
* @param labels - The tone words and the broken-state words.
|
|
25
|
+
* @param labels.placeTones - A word per tone.
|
|
26
|
+
* @param labels.placeBroken - A word per way an environment breaks.
|
|
27
|
+
* @param environment - The session's environment.
|
|
28
|
+
* @param tone - Its tone (`sessionPlaceTone`).
|
|
29
|
+
*/
|
|
30
|
+
function environmentStateLabel(labels, environment, tone) {
|
|
31
|
+
return tone === "failed" && environment?.failure ? labels.placeBroken[environment.failure] : labels.placeTones[tone];
|
|
32
|
+
}
|
|
33
|
+
const SERVER_DOWN = /* @__PURE__ */ new Set([
|
|
34
|
+
"offline",
|
|
35
|
+
"auth-refused",
|
|
36
|
+
"identity",
|
|
37
|
+
"version-mismatch"
|
|
38
|
+
]);
|
|
39
|
+
/**
|
|
40
|
+
* One tone for where a session runs: a failure wins (unless the host is reconnecting to it, or it is a sandbox
|
|
41
|
+
* deleted on purpose), then work in progress, then a paused environment starting back up, then a pause.
|
|
42
|
+
*
|
|
43
|
+
* @param environment - Its environment when it runs outside this machine's folders, else `undefined`.
|
|
44
|
+
* @param server - Its server: the host, `null` once it is no longer saved, `undefined` for a session here.
|
|
45
|
+
* @param now - The current time, epoch ms (a reconnect window that passed reads as failed).
|
|
46
|
+
*/
|
|
47
|
+
function sessionPlaceTone(environment, server, now = Date.now()) {
|
|
48
|
+
const serverDown = server === null || server !== void 0 && SERVER_DOWN.has(server.status);
|
|
49
|
+
if (!serverDown && isReconnecting(environment, now)) return "reconnecting";
|
|
50
|
+
if (!serverDown && environment?.state === "failed" && environment.removed) return "removed";
|
|
51
|
+
if (environment?.state === "failed" || server === null || server && SERVER_DOWN.has(server.status)) return "failed";
|
|
52
|
+
if (environment?.state === "provisioning" || server?.status === "connecting" || server?.status === "reconnecting") return "busy";
|
|
53
|
+
if (environment?.resuming) return "resuming";
|
|
54
|
+
if (environment?.suspended) return "paused";
|
|
55
|
+
return "ready";
|
|
56
|
+
}
|
|
57
|
+
export { environmentStateLabel, isExternalEnvironment, isReconnecting, sessionPlaceTone };
|
package/dist/session/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { SecretsPanel, SecretsPanelProps } from "./SecretsPanel.js";
|
|
|
13
13
|
import { SessionCacheFacts, SessionCacheFactsProps, useSessionCacheReport } from "./SessionCacheFacts.js";
|
|
14
14
|
import { SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation } from "./SessionDetailsDialog.js";
|
|
15
15
|
import { SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer } from "./SessionHeader.js";
|
|
16
|
+
import { SessionPlaceMenu, SessionPlaceMenuProps } from "./SessionPlaceMenu.js";
|
|
16
17
|
import { SessionProvider, SessionProviderProps, useAllSchedules, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
|
|
17
18
|
import { RenderSessionShell, SessionShell, SessionShellProps } from "./SessionShell.js";
|
|
18
19
|
import { SideChat, SideChatProps } from "./SideChat.js";
|
|
@@ -23,4 +24,4 @@ import { useSessionActionError } from "./useSessionActionError.js";
|
|
|
23
24
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
24
25
|
import { UsageSummaryView, useUsageSummary } from "./useUsageSummary.js";
|
|
25
26
|
import { WelcomeScreen, WelcomeScreenProps } from "./WelcomeScreen.js";
|
|
26
|
-
export { ArtifactOpenEvent, ArtifactRowChips, ArtifactRowChipsFields, ArtifactRowChipsProps, ArtifactsPanel, ArtifactsPanelFocus, ArtifactsPanelProps, ArtifactsSavedViews, AttentionActions, BADGE_ICONS, DiffFacts, DiffFactsProps, DiffFileTree, DiffFileTreeProps, FindingCounts, InboxAttention, InboxAttentionProps, PanelAttentionProps, PlanTracker, PlanTrackerProps, ProjectHome, ProjectHomeProject, ProjectHomeProps, ProjectHomeRepo, ProjectHomeStartResult, ProjectHomeSwitcher, ProviderUsage, ProviderUsageProvider, ProviderUsageProviderProps, QueueAttachmentRowProps, QueueAttachmentsSlot, QueueAttention, QueueTab, QueueTabProps, RecentPlans, RecentPlansProps, RemindersPanel, RemindersPanelProps, RemindersScope, type RenderSessionShell, RunningWorkDialog, RunningWorkDialogProps, SecretsAttention, SecretsAttentionProps, SecretsPanel, SecretsPanelProps, SessionCacheFacts, SessionCacheFactsProps, SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation, SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer, SessionProvider, SessionProviderProps, SessionShell, type SessionShellProps, SideChat, SideChatProps, TODO_ROW_CLASS, TodoListItem, TodoListView, TodoListViewProps, TodoTally, TodoTallyProps, TurnDetailsDialog, TurnDetailsDialogProps, UsagePanel, UsagePanelProps, UsageSummaryView, WelcomeScreen, WelcomeScreenProps, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
|
|
27
|
+
export { ArtifactOpenEvent, ArtifactRowChips, ArtifactRowChipsFields, ArtifactRowChipsProps, ArtifactsPanel, ArtifactsPanelFocus, ArtifactsPanelProps, ArtifactsSavedViews, AttentionActions, BADGE_ICONS, DiffFacts, DiffFactsProps, DiffFileTree, DiffFileTreeProps, FindingCounts, InboxAttention, InboxAttentionProps, PanelAttentionProps, PlanTracker, PlanTrackerProps, ProjectHome, ProjectHomeProject, ProjectHomeProps, ProjectHomeRepo, ProjectHomeStartResult, ProjectHomeSwitcher, ProviderUsage, ProviderUsageProvider, ProviderUsageProviderProps, QueueAttachmentRowProps, QueueAttachmentsSlot, QueueAttention, QueueTab, QueueTabProps, RecentPlans, RecentPlansProps, RemindersPanel, RemindersPanelProps, RemindersScope, type RenderSessionShell, RunningWorkDialog, RunningWorkDialogProps, SecretsAttention, SecretsAttentionProps, SecretsPanel, SecretsPanelProps, SessionCacheFacts, SessionCacheFactsProps, SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation, SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer, SessionPlaceMenu, SessionPlaceMenuProps, SessionProvider, SessionProviderProps, SessionShell, type SessionShellProps, SideChat, SideChatProps, TODO_ROW_CLASS, TodoListItem, TodoListView, TodoListViewProps, TodoTally, TodoTallyProps, TurnDetailsDialog, TurnDetailsDialogProps, UsagePanel, UsagePanelProps, UsageSummaryView, WelcomeScreen, WelcomeScreenProps, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
|
package/dist/session/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { SecretsPanel } from "./SecretsPanel.js";
|
|
|
13
13
|
import { SessionCacheFacts, useSessionCacheReport } from "./SessionCacheFacts.js";
|
|
14
14
|
import { SessionDetailsDialog } from "./SessionDetailsDialog.js";
|
|
15
15
|
import { SessionHeader } from "./SessionHeader.js";
|
|
16
|
+
import { SessionPlaceMenu } from "./SessionPlaceMenu.js";
|
|
16
17
|
import { SessionProvider, useAllSchedules, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
|
|
17
18
|
import { SessionShell } from "./SessionShell.js";
|
|
18
19
|
import { SideChat } from "./SideChat.js";
|
|
@@ -23,4 +24,4 @@ import { useSessionActionError } from "./useSessionActionError.js";
|
|
|
23
24
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
24
25
|
import { useUsageSummary } from "./useUsageSummary.js";
|
|
25
26
|
import { WelcomeScreen } from "./WelcomeScreen.js";
|
|
26
|
-
export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, DiffFacts, DiffFileTree, InboxAttention, PlanTracker, ProjectHome, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionProvider, SessionShell, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, UsagePanel, WelcomeScreen, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
|
|
27
|
+
export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, DiffFacts, DiffFileTree, InboxAttention, PlanTracker, ProjectHome, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionPlaceMenu, SessionProvider, SessionShell, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, UsagePanel, WelcomeScreen, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
|
|
@@ -36,7 +36,7 @@ function ConversationPresetsCard({ label, description, badges, settings, onApply
|
|
|
36
36
|
})]
|
|
37
37
|
}) : null]
|
|
38
38
|
}), description && /* @__PURE__ */ jsx("span", {
|
|
39
|
-
className: "text-xs text-[var(--zg-text-muted)]
|
|
39
|
+
className: "text-xs text-[var(--zg-text-muted)]",
|
|
40
40
|
children: description
|
|
41
41
|
})]
|
|
42
42
|
}), /* @__PURE__ */ jsx(ChoiceCards, {
|
|
@@ -43,7 +43,7 @@ function SettingNoteLine({ note, className, style }) {
|
|
|
43
43
|
const warn = note.tone === "warn";
|
|
44
44
|
return /* @__PURE__ */ jsxs("span", {
|
|
45
45
|
"data-setting-note": note.tone,
|
|
46
|
-
className: ["flex items-start gap-1.5 mt-1.5 text-zg-label text-[var(--zg-text-muted)]
|
|
46
|
+
className: ["flex items-start gap-1.5 mt-1.5 text-zg-label text-[var(--zg-text-muted)]", className].filter(Boolean).join(" "),
|
|
47
47
|
style,
|
|
48
48
|
children: [/* @__PURE__ */ jsx("span", {
|
|
49
49
|
role: "img",
|
|
@@ -113,7 +113,7 @@ function SettingChoiceCards({ label, description, badges, marks, value, options,
|
|
|
113
113
|
children: [/* @__PURE__ */ jsx(SettingBadges, { badges }), marks]
|
|
114
114
|
}) : null]
|
|
115
115
|
}), description && /* @__PURE__ */ jsx("span", {
|
|
116
|
-
className: "text-xs text-[var(--zg-text-muted)]
|
|
116
|
+
className: "text-xs text-[var(--zg-text-muted)]",
|
|
117
117
|
children: description
|
|
118
118
|
})]
|
|
119
119
|
}), /* @__PURE__ */ jsx(ChoiceCards, {
|
|
@@ -336,7 +336,7 @@ function SettingsRowsPage({ page, server = false, surface = "desktop", spacesOnS
|
|
|
336
336
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
337
337
|
className: "flex flex-col gap-0.5 px-4 mb-1.5 min-h-5",
|
|
338
338
|
children: [/* @__PURE__ */ jsx(SectionLabel, { children: section.title }), section.description && /* @__PURE__ */ jsx("p", {
|
|
339
|
-
className: "m-0 text-xs text-[var(--zg-text-muted)]
|
|
339
|
+
className: "m-0 text-xs text-[var(--zg-text-muted)]",
|
|
340
340
|
children: section.description
|
|
341
341
|
})]
|
|
342
342
|
}), /* @__PURE__ */ jsx(Tray, {
|
|
@@ -204,12 +204,14 @@ function fixturePerfSample(n, at) {
|
|
|
204
204
|
p95Ms: 90
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
channel: "chat:stream",
|
|
207
|
+
channel: "chat:stream-port",
|
|
208
208
|
direction: "push",
|
|
209
209
|
count: 3e3 + n * 40,
|
|
210
210
|
totalMs: 410 + n * 3,
|
|
211
211
|
maxMs: 6,
|
|
212
|
-
p95Ms: .4
|
|
212
|
+
p95Ms: .4,
|
|
213
|
+
bytes: 15e5,
|
|
214
|
+
bytesPerMessage: 500
|
|
213
215
|
},
|
|
214
216
|
{
|
|
215
217
|
channel: "sessions:list",
|
|
@@ -116,6 +116,13 @@ function createFixtureSettingsSections(data = {}) {
|
|
|
116
116
|
if (held.extensions) {
|
|
117
117
|
out.extensions = {
|
|
118
118
|
list: async () => [...held.extensions ?? []],
|
|
119
|
+
subscribe: (_cwd, onChange) => {
|
|
120
|
+
const listener = (kind) => {
|
|
121
|
+
if (kind === "extensions") onChange();
|
|
122
|
+
};
|
|
123
|
+
catalogListeners.add(listener);
|
|
124
|
+
return () => void catalogListeners.delete(listener);
|
|
125
|
+
},
|
|
119
126
|
install: async (_cwd, request, onProgress) => {
|
|
120
127
|
const name = request.extension ?? request.source.split("/").pop() ?? request.source;
|
|
121
128
|
onProgress?.(`installing ${name}`);
|
|
@@ -82,7 +82,7 @@ export declare const DEFAULT_SETTINGS_LABELS: {
|
|
|
82
82
|
settingsServerStart: string;
|
|
83
83
|
/** Copies that command. */
|
|
84
84
|
settingsCopyCommand: string;
|
|
85
|
-
/**
|
|
85
|
+
/** Advanced › Hosts in an app a server serves: that server's page. */
|
|
86
86
|
settingsServerHostsDescription: (host: string) => string;
|
|
87
87
|
/** The foot of the nav: closes Settings and opens the setup wizard. */
|
|
88
88
|
settingsRunSetup: string;
|
|
@@ -73,7 +73,7 @@ const DEFAULT_SETTINGS_LABELS = {
|
|
|
73
73
|
settingsServerStart: "zidane server start",
|
|
74
74
|
/** Copies that command. */
|
|
75
75
|
settingsCopyCommand: "Copy the command",
|
|
76
|
-
/**
|
|
76
|
+
/** Advanced › Hosts in an app a server serves: that server's page. */
|
|
77
77
|
settingsServerHostsDescription: (host) => `${host}: its version, updates, machines, browsers and tokens.`,
|
|
78
78
|
/** The foot of the nav: closes Settings and opens the setup wizard. */
|
|
79
79
|
settingsRunSetup: "Run setup again",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* zidane's settings layout for the kit: core's settings table
|
|
3
3
|
* (`SETTINGS_PAGES` and `SETTINGS_ROWS` in `zidane/chat/pure`) as pages the
|
|
4
|
-
* kit draws. The
|
|
5
|
-
*
|
|
4
|
+
* kit draws. The seven rail entries (General, Accounts, Appearance, Agent,
|
|
5
|
+
* Workspace, Extensions, Advanced) and their
|
|
6
6
|
* sub-pages, each page either a list of sections of rows or one panel an app
|
|
7
7
|
* draws. Everything else reads this list: `SettingsRowsPage` renders a page
|
|
8
8
|
* of rows, search indexes it (`search.ts`), the placement test checks it
|
|
@@ -13,9 +13,9 @@ import { SettingsSearchEntry } from "./registry.js";
|
|
|
13
13
|
import { SettingScope, SettingSurface, SettingsActionId, SettingsCustomRowId, SettingsPageId, SettingsSectionNoteId, SettingsSectionPanelId } from "zidane/chat/pure";
|
|
14
14
|
import { Settings } from "zidane/chat";
|
|
15
15
|
/** Pages of rows. */
|
|
16
|
-
export type SettingsSectionsPageId = 'general' | 'models' | 'agent' | 'safety' | 'conversation' | 'workspace' | 'advanced' | 'views' | 'hosts' | 'sidebar';
|
|
16
|
+
export type SettingsSectionsPageId = 'general' | 'models' | 'agent' | 'safety' | 'conversation' | 'workspace' | 'spaces' | 'advanced' | 'views' | 'hosts' | 'sidebar';
|
|
17
17
|
/** The rail's entries. */
|
|
18
|
-
export type SettingsTopId = 'general' | '
|
|
18
|
+
export type SettingsTopId = 'general' | 'accounts' | 'appearance' | 'agent' | 'workspace' | 'extensions' | 'advanced';
|
|
19
19
|
/** Pages drawn by one panel component, mounted on first visit and then kept alive (their async state survives). */
|
|
20
20
|
export type SettingsPanelId = Exclude<SettingsPageId, SettingsSectionsPageId>;
|
|
21
21
|
/** Every page's id. */
|
|
@@ -181,7 +181,7 @@ function visiblePages(opts) {
|
|
|
181
181
|
*/
|
|
182
182
|
function shown(part, server, spacesOnServer = false, surface) {
|
|
183
183
|
if (surface !== void 0 && !onSurface(part, surface)) return false;
|
|
184
|
-
if (spacesOnServer && "panel" in part && part.panel === "spaces") return true;
|
|
184
|
+
if (spacesOnServer && ("panel" in part && part.panel === "spaces" || "sections" in part && part.id === "spaces")) return true;
|
|
185
185
|
if (spacesOnServer && "custom" in part && part.custom === "agentDefaults") return true;
|
|
186
186
|
return !(server && "localOnly" in part && part.localOnly);
|
|
187
187
|
}
|
|
@@ -94,6 +94,10 @@ export interface PerfChannel {
|
|
|
94
94
|
maxMs: number;
|
|
95
95
|
/** 95th percentile. */
|
|
96
96
|
p95Ms: number;
|
|
97
|
+
/** Bytes carried, estimated from a sample of the messages counted while measured. Absent: not measured. */
|
|
98
|
+
bytes?: number;
|
|
99
|
+
/** The average size of a measured message, bytes. */
|
|
100
|
+
bytesPerMessage?: number;
|
|
97
101
|
}
|
|
98
102
|
/** Where long frames (over 50 ms) spent their time: one script and function, summed. */
|
|
99
103
|
export interface PerfSlowFrame {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* best first, once each, and `groupSettingsResults` groups them by page
|
|
13
13
|
* and section.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import { UO as Settings } from "../../dist/index-C6-t1SS9.js";
|
|
16
16
|
import { SettingsActionId, SettingsPage } from "./layout.js";
|
|
17
17
|
import { SettingsSearchEntry, SettingsSection } from "./registry.js";
|
|
18
18
|
import { SettingSurface } from "zidane/chat/pure";
|
|
@@ -100,7 +100,7 @@ export interface PanelSearchSources {
|
|
|
100
100
|
name: string;
|
|
101
101
|
description?: string | null;
|
|
102
102
|
}[];
|
|
103
|
-
/**
|
|
103
|
+
/** Advanced › Hosts: This computer and the saved servers. */
|
|
104
104
|
hosts?: readonly {
|
|
105
105
|
name: string;
|
|
106
106
|
url?: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { SettingsError } from "./host.js";
|
|
14
14
|
import { ExtensionInstallOrigin, ExtensionSourceListing, LogRecord, SkillSourceListing } from "zidane/chat/pure";
|
|
15
15
|
import { SkillConfig, WireExtensionConfigSchema } from "zidane";
|
|
16
|
-
import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentSettingsChange, EnvironmentVerifyResult } from "zidane/chat";
|
|
16
|
+
import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentFieldChoice, EnvironmentSandboxSummary, EnvironmentSettingsChange, EnvironmentVerifyResult } from "zidane/chat";
|
|
17
17
|
import { HostCatalogExtension, HostCatalogMcp, HostCatalogPlugin, HostCatalogSkill } from "zidane/ipc";
|
|
18
18
|
import { ResolvedSkillGroup, SkillGroupFile, SkillGroupInput } from "zidane/skills";
|
|
19
19
|
/** What a {@link SettingsResource} holds now. */
|
|
@@ -144,6 +144,12 @@ export interface SettingsExtensionInstall {
|
|
|
144
144
|
export interface SettingsExtensionsHost {
|
|
145
145
|
/** The extensions for `cwd`. Read again after each toggle (their state follows the allowlist). */
|
|
146
146
|
list: (cwd: string) => Promise<readonly SettingsExtension[]>;
|
|
147
|
+
/**
|
|
148
|
+
* Calls `onChange` when the extensions for `cwd` may have changed, wherever that happened (another
|
|
149
|
+
* window, an agent editing one, a reload). Returns its unsubscribe. Absent: the list is read again
|
|
150
|
+
* only after the section's own actions.
|
|
151
|
+
*/
|
|
152
|
+
subscribe?: (cwd: string, onChange: () => void) => () => void;
|
|
147
153
|
/** Installs one; `onProgress` gets the installer's lines. Resolves with its name. Absent: no install. */
|
|
148
154
|
install?: (cwd: string, request: SettingsExtensionInstall, onProgress?: (line: string) => void) => Promise<{
|
|
149
155
|
name: string;
|
|
@@ -171,7 +177,11 @@ export interface SettingsExtensionsHost {
|
|
|
171
177
|
actionStatuses?: (cwd: string) => Promise<Record<string, SettingsExtensionActionStatus>>;
|
|
172
178
|
/** Runs an action. Absent: no Run buttons. */
|
|
173
179
|
runAction?: (cwd: string, extension: string, key: string) => Promise<SettingsExtensionActionResult>;
|
|
174
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Scaffolds a new extension. When `enabledExtensions` is set, the host adds a user one to it, so it
|
|
182
|
+
* loads at once. A project one stays out of that list (it is matched by name in every project), so it
|
|
183
|
+
* stays off until the user enables it. Absent: no create flow.
|
|
184
|
+
*/
|
|
175
185
|
create?: (request: SettingsExtensionCreate) => Promise<SettingsExtensionCreated>;
|
|
176
186
|
}
|
|
177
187
|
/** An action an extension declares (`registerConfigItem` type `'action'`); it runs on the host. */
|
|
@@ -266,6 +276,14 @@ export interface SettingsEnvironmentsHost {
|
|
|
266
276
|
update?: (change: EnvironmentSettingsChange) => Promise<void>;
|
|
267
277
|
/** Tests a kind's connection. Absent: no test button. */
|
|
268
278
|
verify?: (kind: string) => Promise<EnvironmentVerifyResult>;
|
|
279
|
+
/** The values a kind's `listed` option can take (a sandbox's images). Absent: a free text field. */
|
|
280
|
+
fieldChoices?: (kind: string, key: string) => Promise<readonly EnvironmentFieldChoice[]>;
|
|
281
|
+
/** Every sandbox a kind's provider holds, each with its session (Settings › Environments › Manage). Absent: no Manage tab. */
|
|
282
|
+
sandboxes?: (kind: string) => Promise<readonly EnvironmentSandboxSummary[]>;
|
|
283
|
+
/** Pauses one of them. Absent: no Pause. */
|
|
284
|
+
pauseSandbox?: (kind: string, sandboxId: string) => Promise<void>;
|
|
285
|
+
/** Deletes one of them. Absent: no Delete. */
|
|
286
|
+
deleteSandbox?: (kind: string, sandboxId: string) => Promise<void>;
|
|
269
287
|
}
|
|
270
288
|
/** The host's log funnel. */
|
|
271
289
|
export interface SettingsLogsHost {
|
|
@@ -142,7 +142,7 @@ function ClaudeImportDialog({ cwd, onClose, onBack, onImported, activeServerName
|
|
|
142
142
|
title: l.claudeImportNone
|
|
143
143
|
}),
|
|
144
144
|
activeServerName && /* @__PURE__ */ jsx("p", {
|
|
145
|
-
className: "m-0 mb-3 text-xs text-[var(--zg-text-muted)]
|
|
145
|
+
className: "m-0 mb-3 text-xs text-[var(--zg-text-muted)]",
|
|
146
146
|
"data-testid": "claude-import-host-note",
|
|
147
147
|
children: l.claudeImportHostNote(activeServerName)
|
|
148
148
|
}),
|
|
@@ -35,7 +35,7 @@ function EnabledListSection({ settingKey, hostName, className, style }) {
|
|
|
35
35
|
className,
|
|
36
36
|
style,
|
|
37
37
|
children: /* @__PURE__ */ jsx(SettingsPanelBody, { children: /* @__PURE__ */ jsx("p", {
|
|
38
|
-
className: "text-xs text-[var(--zg-text-muted)] px-1 m-0
|
|
38
|
+
className: "text-xs text-[var(--zg-text-muted)] px-1 m-0",
|
|
39
39
|
"data-testid": "host-list-unset",
|
|
40
40
|
children: l.enabledListUnset(l.enabledListOne(settingKey), noun, hostName)
|
|
41
41
|
}) })
|
|
@@ -67,7 +67,7 @@ function EnabledListSection({ settingKey, hostName, className, style }) {
|
|
|
67
67
|
})
|
|
68
68
|
})]
|
|
69
69
|
}) }), /* @__PURE__ */ jsx("p", {
|
|
70
|
-
className: "text-xs text-[var(--zg-text-muted)] px-1 mt-3 mb-0
|
|
70
|
+
className: "text-xs text-[var(--zg-text-muted)] px-1 mt-3 mb-0",
|
|
71
71
|
children: l.enabledListNote(noun)
|
|
72
72
|
})] })
|
|
73
73
|
});
|
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
* OS sandbox, Worktree, any provider), drawn from its descriptors, so a new
|
|
5
5
|
* provider shows up here with no change.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Two tabs once a kind lists its sandboxes and the host can read them: Setup
|
|
8
|
+
* and Manage. Setup has the default picker on top, then the kinds in two
|
|
9
|
+
* groups (on your machines, cloud sandboxes), a card each: icon, name,
|
|
10
|
+
* description, status, on/off switch, and its options below it while it is
|
|
11
|
+
* on. Manage is `SandboxManager` (`zidane-ui/git`) over the turned-on kinds
|
|
12
|
+
* that list their sandboxes. Choice
|
|
9
13
|
* options with details or long labels stack as a radio list, short ones sit
|
|
10
14
|
* in a segmented control.
|
|
11
15
|
*
|
|
@@ -22,6 +26,8 @@ export declare function useEnvironmentsSectionLabels(): EnvironmentsSectionLabel
|
|
|
22
26
|
export interface EnvironmentsSectionProps {
|
|
23
27
|
/** The folder new sessions would start in (`null`: none; kinds are described without one). */
|
|
24
28
|
cwd: string | null;
|
|
29
|
+
/** Opens a session (the app closes Settings): Manage's session names become buttons. Absent: plain text. */
|
|
30
|
+
onOpenSession?: (sessionId: string) => void;
|
|
25
31
|
/** Extra classes on the root. */
|
|
26
32
|
className?: string;
|
|
27
33
|
/** Inline styles on the root. */
|
|
@@ -33,4 +39,4 @@ export interface EnvironmentsSectionProps {
|
|
|
33
39
|
*
|
|
34
40
|
* @param props - The folder, `className` and `style`.
|
|
35
41
|
*/
|
|
36
|
-
export declare function EnvironmentsSection({ cwd, className, style }: EnvironmentsSectionProps): import("react").JSX.Element;
|
|
42
|
+
export declare function EnvironmentsSection({ cwd, onOpenSession, className, style }: EnvironmentsSectionProps): import("react").JSX.Element;
|