zidane-ui 9.1.6 → 9.1.9

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.
Files changed (224) hide show
  1. package/dist/adapters/run-host.js +17 -20
  2. package/dist/adapters/server-files-host.js +3 -1
  3. package/dist/adapters/server-host.js +18 -11
  4. package/dist/adapters/server-machines-host.js +3 -1
  5. package/dist/adapters/server-session-host.js +2 -1
  6. package/dist/adapters/server-settings-accounts.js +2 -1
  7. package/dist/adapters/server-settings-host.js +3 -3
  8. package/dist/adapters/sse-host.js +9 -7
  9. package/dist/chat/SessionGroupHeader.js +2 -2
  10. package/dist/chat/SessionHostHeader.js +1 -1
  11. package/dist/chat/StatusDot.js +24 -20
  12. package/dist/chat/composer/Composer.d.ts +13 -8
  13. package/dist/chat/composer/Composer.js +14 -10
  14. package/dist/chat/composer/ComposerEditor.js +1 -1
  15. package/dist/chat/composer/HostComposer.d.ts +1 -1
  16. package/dist/chat/composer/HostComposer.js +7 -10
  17. package/dist/chat/composer/RunStatusChip.js +13 -1
  18. package/dist/chat/composer/attachment-ingest.d.ts +4 -1
  19. package/dist/chat/composer/attachment-ingest.js +27 -10
  20. package/dist/chat/composer/composer-bus.d.ts +9 -1
  21. package/dist/chat/composer/composer-bus.js +49 -6
  22. package/dist/chat/composer/index.d.ts +2 -2
  23. package/dist/chat/composer/index.js +2 -2
  24. package/dist/chat/composer/use-draft-target.d.ts +4 -0
  25. package/dist/chat/composer/use-draft-target.js +15 -4
  26. package/dist/chat/composer/use-send-prompt.d.ts +5 -1
  27. package/dist/chat/composer/use-send-prompt.js +2 -12
  28. package/dist/chat/headless/chip-labels.d.ts +2 -0
  29. package/dist/chat/headless/chip-labels.js +3 -1
  30. package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
  31. package/dist/chat/headless/composer/labels-editor.js +2 -0
  32. package/dist/chat/headless/file-chip.d.ts +12 -13
  33. package/dist/chat/headless/file-chip.js +40 -2
  34. package/dist/chat/headless/fixture-host.js +14 -17
  35. package/dist/chat/headless/host.d.ts +24 -6
  36. package/dist/chat/headless/index.d.ts +4 -4
  37. package/dist/chat/headless/index.js +4 -4
  38. package/dist/chat/headless/labels.d.ts +16 -0
  39. package/dist/chat/headless/labels.js +15 -2
  40. package/dist/chat/headless/send-flow.d.ts +21 -4
  41. package/dist/chat/headless/send-flow.js +25 -6
  42. package/dist/chat/headless/session-list.d.ts +11 -0
  43. package/dist/chat/headless/sidebar/index.js +1 -1
  44. package/dist/chat/headless/sidebar/labels.d.ts +12 -1
  45. package/dist/chat/headless/transcript-host.d.ts +8 -1
  46. package/dist/chat/headless/transcript-labels.d.ts +2 -0
  47. package/dist/chat/index.d.ts +3 -3
  48. package/dist/chat/index.js +2 -2
  49. package/dist/chat/interactions/InboxPanel.js +2 -2
  50. package/dist/chat/interactions/QuestionField.js +2 -2
  51. package/dist/chat/rich-composer/RichComposer.d.ts +9 -2
  52. package/dist/chat/rich-composer/RichComposer.js +28 -7
  53. package/dist/chat/rich-composer/composer-extensions.d.ts +2 -0
  54. package/dist/chat/rich-composer/composer-extensions.js +2 -2
  55. package/dist/chat/rich-composer/composer-keys.js +1 -1
  56. package/dist/chat/rich-composer/use-composer-bus.js +2 -1
  57. package/dist/chat/rich-composer/use-composer-editor.d.ts +4 -1
  58. package/dist/chat/rich-composer/use-composer-editor.js +2 -1
  59. package/dist/chat/sidebar/SessionSidebar.js +1 -2
  60. package/dist/chat/sidebar/SidebarSearchRow.js +1 -1
  61. package/dist/chat/sidebar/useSidebarKeyboardNav.d.ts +0 -2
  62. package/dist/chat/sidebar/useSidebarKeyboardNav.js +7 -13
  63. package/dist/chat/testing/contract.d.ts +1 -1
  64. package/dist/chat/testing/contract.js +8 -7
  65. package/dist/chat/transcript/BadgeMenu.d.ts +12 -3
  66. package/dist/chat/transcript/BadgeMenu.js +20 -3
  67. package/dist/chat/transcript/CodemodeScript.js +147 -44
  68. package/dist/chat/transcript/EditDiffBlock.js +1 -4
  69. package/dist/chat/transcript/FileChip.js +60 -14
  70. package/dist/chat/transcript/LiveOutput.js +7 -3
  71. package/dist/chat/transcript/badges.js +2 -2
  72. package/dist/chat/transcript/index.d.ts +2 -2
  73. package/dist/chat/transcript/markdown-context.d.ts +4 -1
  74. package/dist/chat/transcript/rolling.d.ts +12 -0
  75. package/dist/chat/transcript/rolling.js +22 -0
  76. package/dist/chat/transcript/script-input.d.ts +1 -1
  77. package/dist/chat/transcript/shell-block.js +70 -60
  78. package/dist/chat/transcript/tool-row.js +21 -5
  79. package/dist/code/editor/FileTree.d.ts +3 -1
  80. package/dist/code/editor/FileTree.js +29 -1
  81. package/dist/components/Restricted.d.ts +25 -0
  82. package/dist/components/Restricted.js +32 -0
  83. package/dist/components/StepFrame.d.ts +1 -1
  84. package/dist/components/ZidaneMark.d.ts +28 -0
  85. package/dist/components/ZidaneMark.js +114 -0
  86. package/dist/components/palette/PalettePanel.d.ts +7 -1
  87. package/dist/components/palette/PalettePanel.js +37 -11
  88. package/dist/components/zidane-mark.d.ts +52 -0
  89. package/dist/components/zidane-mark.js +94 -0
  90. package/dist/core.css +59 -6
  91. package/dist/dist/{index-DqCio7Nd.d.ts → index-Bq87OcGy.d.ts} +19 -12
  92. package/dist/dist/index.d.ts +1 -1
  93. package/dist/extensions/ExtensionSettingsSection.d.ts +18 -0
  94. package/dist/extensions/ExtensionSettingsSection.js +227 -0
  95. package/dist/extensions/headless/host.d.ts +1 -1
  96. package/dist/extensions/headless/labels.d.ts +41 -1
  97. package/dist/extensions/headless/labels.js +57 -0
  98. package/dist/extensions/headless/select.js +1 -2
  99. package/dist/extensions/index.d.ts +2 -1
  100. package/dist/extensions/index.js +2 -1
  101. package/dist/files/FilesTab.js +2 -0
  102. package/dist/files/TreeColumn.d.ts +5 -1
  103. package/dist/files/TreeColumn.js +6 -0
  104. package/dist/files/headless/fixture-host.js +5 -3
  105. package/dist/files/headless/host.d.ts +24 -6
  106. package/dist/files/headless/index.d.ts +2 -2
  107. package/dist/files/headless/labels.d.ts +1 -0
  108. package/dist/files/headless/labels.js +1 -0
  109. package/dist/files/testing/contract.js +9 -2
  110. package/dist/files/useWorkspace.d.ts +14 -2
  111. package/dist/files/useWorkspace.js +87 -9
  112. package/dist/git/BranchMenu.js +1 -1
  113. package/dist/git/MoveSessionDialog.js +1 -1
  114. package/dist/git/RemoteFolderPicker.js +1 -1
  115. package/dist/git/WherePicker.js +1 -1
  116. package/dist/git/headless/index.js +1 -1
  117. package/dist/git/useEnvironmentChoices.js +1 -1
  118. package/dist/index.d.ts +4 -2
  119. package/dist/index.js +4 -2
  120. package/dist/keybindings/headless/catalog.js +1 -1
  121. package/dist/labels.d.ts +1 -0
  122. package/dist/labels.js +1 -0
  123. package/dist/machines/DaemonMenu.js +1 -1
  124. package/dist/machines/HostCapabilities.d.ts +23 -1
  125. package/dist/machines/HostCapabilities.js +149 -65
  126. package/dist/machines/HostSyncPanel.js +129 -123
  127. package/dist/machines/HostsSection.js +5 -1
  128. package/dist/machines/ServerCard.d.ts +4 -2
  129. package/dist/machines/ServerCard.js +222 -99
  130. package/dist/machines/ServerMachinesPanel.js +16 -13
  131. package/dist/machines/ServerUpdatePanel.js +31 -21
  132. package/dist/machines/TokensPanel.js +75 -53
  133. package/dist/machines/headless/fixture-host.d.ts +5 -0
  134. package/dist/machines/headless/fixture-host.js +13 -4
  135. package/dist/machines/headless/fixtures.js +1 -1
  136. package/dist/machines/headless/host.d.ts +22 -2
  137. package/dist/machines/headless/index.d.ts +2 -2
  138. package/dist/machines/headless/labels.d.ts +22 -1
  139. package/dist/machines/headless/labels.js +22 -2
  140. package/dist/machines/testing/contract.d.ts +3 -1
  141. package/dist/machines/testing/contract.js +9 -0
  142. package/dist/motion/size.d.ts +22 -1
  143. package/dist/motion/size.js +82 -4
  144. package/dist/onboarding/demos/delivery.d.ts +16 -0
  145. package/dist/onboarding/demos/delivery.js +132 -0
  146. package/dist/onboarding/demos/index.d.ts +2 -1
  147. package/dist/onboarding/demos/index.js +2 -1
  148. package/dist/onboarding/headless/labels.d.ts +8 -0
  149. package/dist/onboarding/headless/labels.js +7 -0
  150. package/dist/onboarding/index.d.ts +2 -1
  151. package/dist/onboarding/index.js +2 -1
  152. package/dist/onboarding/steps/ConversationStep.js +46 -4
  153. package/dist/palette/CommandPalette.js +3 -0
  154. package/dist/palette/PaletteDialog.js +7 -3
  155. package/dist/palette/usePaletteController.d.ts +10 -0
  156. package/dist/palette/usePaletteController.js +25 -3
  157. package/dist/server/sse-handler.js +6 -1
  158. package/dist/session/ArtifactsPanel.js +1 -1
  159. package/dist/session/SideChat.js +1 -2
  160. package/dist/session/UsagePanel.js +1 -1
  161. package/dist/session/headless/host.d.ts +3 -1
  162. package/dist/session/headless/index.js +2 -2
  163. package/dist/settings/SettingsRestricted.d.ts +25 -0
  164. package/dist/settings/SettingsRestricted.js +44 -0
  165. package/dist/settings/SettingsRowsPage.js +31 -37
  166. package/dist/settings/headless/catalog.js +7 -6
  167. package/dist/settings/headless/labels.d.ts +4 -2
  168. package/dist/settings/headless/labels.js +4 -2
  169. package/dist/settings/headless/layout.js +1 -1
  170. package/dist/settings/headless/providers.d.ts +2 -0
  171. package/dist/settings/headless/search.d.ts +1 -1
  172. package/dist/settings/index.d.ts +2 -2
  173. package/dist/settings/index.js +2 -2
  174. package/dist/settings/rows.d.ts +51 -8
  175. package/dist/settings/rows.js +81 -26
  176. package/dist/settings/sections/enabled-list/EnabledListSection.js +3 -2
  177. package/dist/settings/sections/environments/EnvironmentsSection.js +4 -3
  178. package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +2 -2
  179. package/dist/settings/sections/extensions/ExtensionConfigRows.js +22 -25
  180. package/dist/settings/sections/extensions/ExtensionOptionsSection.js +3 -2
  181. package/dist/settings/sections/extensions/options-labels.d.ts +2 -2
  182. package/dist/settings/sections/extensions/options-labels.js +2 -2
  183. package/dist/settings/sections/host-catalog/HostCatalogSection.d.ts +5 -3
  184. package/dist/settings/sections/host-catalog/HostCatalogSection.js +7 -4
  185. package/dist/settings/sections/instructions/InstructionsSection.js +24 -17
  186. package/dist/settings/sections/logs/LogsSection.d.ts +2 -1
  187. package/dist/settings/sections/logs/LogsSection.js +64 -56
  188. package/dist/settings/sections/mcp/McpSection.d.ts +1 -1
  189. package/dist/settings/sections/mcp/McpSection.js +18 -17
  190. package/dist/settings/sections/models/ModelRows.d.ts +3 -3
  191. package/dist/settings/sections/models/ModelRows.js +8 -7
  192. package/dist/settings/sections/performance/PerformanceSection.js +13 -4
  193. package/dist/settings/sections/performance/labels.d.ts +0 -1
  194. package/dist/settings/sections/performance/labels.js +0 -1
  195. package/dist/settings/sections/providers/CredentialSources.js +18 -8
  196. package/dist/settings/sections/providers/ProvidersSection.d.ts +2 -2
  197. package/dist/settings/sections/providers/ProvidersSection.js +20 -17
  198. package/dist/settings/sections/providers/ServerProvidersSection.d.ts +1 -1
  199. package/dist/settings/sections/providers/ServerProvidersSection.js +10 -14
  200. package/dist/settings/sections/shared/catalog.js +3 -2
  201. package/dist/settings/sections/skills/SkillList.js +3 -2
  202. package/dist/settings/testing/accounts-demo.js +1 -0
  203. package/dist/settings/testing/accounts.contract.js +2 -0
  204. package/dist/styles.css +160 -24
  205. package/dist/terminal/HostTerminalSurface.js +1 -1
  206. package/dist/terminal/headless/links.d.ts +19 -1
  207. package/dist/terminal/headless/links.js +26 -2
  208. package/dist/theme/css-vars.js +1 -0
  209. package/dist/theme/derive.d.ts +4 -0
  210. package/dist/theme/derive.js +2 -0
  211. package/dist/workspace/PanelContentView.js +1 -1
  212. package/dist/workspace/PanelHome.d.ts +3 -1
  213. package/dist/workspace/PanelHome.js +4 -3
  214. package/dist/workspace/SidePanel.d.ts +3 -1
  215. package/dist/workspace/SidePanel.js +3 -2
  216. package/dist/workspace/headless/open-target.d.ts +1 -1
  217. package/dist/workspace/headless/open-target.js +2 -2
  218. package/package.json +2 -2
  219. package/src/styles/chat.css +10 -10
  220. package/src/styles/motion.css +37 -0
  221. package/src/styles/primitives.css +11 -3
  222. package/src/styles/sidebar.css +12 -0
  223. package/src/styles/tokens.css +6 -0
  224. package/src/styles/transcript.css +69 -5
@@ -11,6 +11,7 @@ import { AutonomyStep } from "./steps/AutonomyStep.js";
11
11
  import { ConnectorsStep } from "./steps/ConnectorsStep.js";
12
12
  import { ConnectStep } from "./steps/ConnectStep.js";
13
13
  import { ConversationPresetPreview, ConversationPreview, transcriptPreviewOptions } from "./conversation.js";
14
+ import { DeliveryDemo } from "./demos/delivery.js";
14
15
  import { ConversationStep } from "./steps/ConversationStep.js";
15
16
  import { ExtensionDemo } from "./demos/extensions.js";
16
17
  import { ExtensionsStep } from "./steps/ExtensionsStep.js";
@@ -24,4 +25,4 @@ import { GITHUB_SKILL_SOURCE_IMAGES, SkillSourceBrowser } from "./skills/SkillSo
24
25
  import { SkillsStep } from "./steps/SkillsStep.js";
25
26
  import { WelcomeStep } from "./steps/WelcomeStep.js";
26
27
  import { ONBOARDING_STEP_COMPONENTS, OnboardingFlow } from "./OnboardingFlow.js";
27
- export { ApprovalDemo, AutonomyStep, ConnectProviderCard, ConnectStep, ConnectorsStep, ConversationPresetPreview, ConversationPreview, ConversationStep, DemoStage, ExtensionDemo, ExtensionMark, ExtensionsStep, FeatureDemo, FeaturesStep, GITHUB_SKILL_SOURCE_IMAGES, ImportStep, LookStep, NATIVE_EXTENSION_ICONS, ONBOARDING_STEP_COMPONENTS, OnboardingFlow, OnboardingHostProvider, OnboardingProvider, OnboardingStepFrame, ProviderMark, ReadyStep, SandboxDemo, SkillSourceBrowser, SkillsStep, SourceBrowser, TUTORIAL_SCENES, Tutorial, WelcomeStep, extensionMarkOf, hasFeatureDemo, transcriptPreviewOptions, useOnboarding, useOnboardingHost, useOnboardingLabels, useOnboardingStep, useSignIn };
28
+ export { ApprovalDemo, AutonomyStep, ConnectProviderCard, ConnectStep, ConnectorsStep, ConversationPresetPreview, ConversationPreview, ConversationStep, DeliveryDemo, DemoStage, ExtensionDemo, ExtensionMark, ExtensionsStep, FeatureDemo, FeaturesStep, GITHUB_SKILL_SOURCE_IMAGES, ImportStep, LookStep, NATIVE_EXTENSION_ICONS, ONBOARDING_STEP_COMPONENTS, OnboardingFlow, OnboardingHostProvider, OnboardingProvider, OnboardingStepFrame, ProviderMark, ReadyStep, SandboxDemo, SkillSourceBrowser, SkillsStep, SourceBrowser, TUTORIAL_SCENES, Tutorial, WelcomeStep, extensionMarkOf, hasFeatureDemo, transcriptPreviewOptions, useOnboarding, useOnboardingHost, useOnboardingLabels, useOnboardingStep, useSignIn };
@@ -4,17 +4,24 @@ import { ChoiceCards } from "../../components/ChoiceCards.js";
4
4
  import { ToggleCard } from "../../components/ToggleCard.js";
5
5
  import { useOnboarding, useOnboardingLabels } from "../OnboardingProvider.js";
6
6
  import { OnboardingStepFrame } from "../OnboardingStepFrame.js";
7
+ import { Tradeoff } from "./Tradeoff.js";
7
8
  import { ConversationPreview } from "../conversation.js";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- import { useState } from "react";
10
- import { DEFAULT_SETTINGS, SETTINGS_CHOICES, SETTINGS_TOGGLES, TRANSCRIPT_PRESETS, toggleApplies, transcriptPresetOf } from "zidane/chat/pure";
9
+ import { DeliveryDemo } from "../demos/delivery.js";
10
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
+ import { useId, useState } from "react";
12
+ import { DEFAULT_SETTINGS, MESSAGE_DELIVERY_OPTIONS, MESSAGE_DELIVERY_TRADEOFFS, SETTINGS_CHOICES, SETTINGS_TOGGLES, TRANSCRIPT_PRESETS, toggleApplies, transcriptPresetOf } from "zidane/chat/pure";
11
13
  //#region src/onboarding/steps/ConversationStep.tsx
12
14
  /**
13
15
  * Conversation: how much of the agent's work the transcript shows. Three
14
16
  * presets, a fine-tune list of every transcript setting, and the sample
15
17
  * conversation beside them (`ConversationPreview`), drawn with the picked
16
- * values.
18
+ * values. Under them, "Messages during a run": steer a message into the run
19
+ * or queue it, each card with a small scene of what happens.
17
20
  */
21
+ const DELIVERY_ICONS = {
22
+ steer: "i-ph-arrow-bend-down-right",
23
+ queue: "i-ph-stack"
24
+ };
18
25
  const TOGGLES = [
19
26
  "showRowIcons",
20
27
  "showThinking",
@@ -51,6 +58,8 @@ function ConversationStep({ className }) {
51
58
  type: "set-settings",
52
59
  settings: patch
53
60
  });
61
+ const delivery = settings.messageDelivery ?? DEFAULT_SETTINGS.messageDelivery;
62
+ const messagesHeading = useId();
54
63
  return /* @__PURE__ */ jsx(OnboardingStepFrame, {
55
64
  className,
56
65
  aside: /* @__PURE__ */ jsx(ConversationPreview, { settings }),
@@ -114,6 +123,39 @@ function ConversationStep({ className }) {
114
123
  checked: settings[row.key] === true,
115
124
  onChange: (on) => set({ [row.key]: on })
116
125
  }, row.key))]
126
+ }),
127
+ /* @__PURE__ */ jsxs("section", {
128
+ "aria-labelledby": messagesHeading,
129
+ className: "flex flex-col gap-3",
130
+ children: [/* @__PURE__ */ jsxs("div", {
131
+ className: "flex flex-col gap-1 px-1",
132
+ children: [/* @__PURE__ */ jsx("h3", {
133
+ id: messagesHeading,
134
+ className: "zg-section-label m-0",
135
+ children: labels.messagesDuringRun
136
+ }), /* @__PURE__ */ jsx("p", {
137
+ className: "m-0 text-zg-meta text-[var(--zg-text-muted)]",
138
+ children: labels.messagesDuringRunHint
139
+ })]
140
+ }), /* @__PURE__ */ jsx(ChoiceCards, {
141
+ ariaLabel: labels.messagesDuringRun,
142
+ columns: 2,
143
+ value: delivery,
144
+ onChange: (messageDelivery) => set({ messageDelivery }),
145
+ options: MESSAGE_DELIVERY_OPTIONS.map((option) => ({
146
+ value: option.value,
147
+ title: option.label,
148
+ icon: DELIVERY_ICONS[option.value],
149
+ preview: /* @__PURE__ */ jsx(DeliveryDemo, {
150
+ delivery: option.value,
151
+ on: option.value === delivery
152
+ }),
153
+ description: /* @__PURE__ */ jsxs(Fragment, { children: [option.description, /* @__PURE__ */ jsx(Tradeoff, {
154
+ unlocks: MESSAGE_DELIVERY_TRADEOFFS[option.value].unlocks,
155
+ prevents: MESSAGE_DELIVERY_TRADEOFFS[option.value].prevents
156
+ })] })
157
+ }))
158
+ })]
117
159
  })
118
160
  ]
119
161
  })
@@ -22,6 +22,9 @@ function CommandPalette({ controller, extraGroups, busy = false, ...rest }) {
22
22
  nested: controller.nested,
23
23
  onBack: controller.back,
24
24
  title: controller.title,
25
+ scope: controller.scope ?? void 0,
26
+ onScopeNext: controller.scopes.length > 0 ? controller.cycleScope : void 0,
27
+ onScopeClear: controller.clearScope,
25
28
  placeholder: controller.placeholder,
26
29
  settled: controller.settled,
27
30
  loading: controller.loading,
@@ -34,16 +34,20 @@ function PaletteDialog({ context, sessions = NO_SESSIONS, archive, rows, onInser
34
34
  useEffect(() => {
35
35
  if (!isOpen) modalClose(PALETTE_MODAL_ID);
36
36
  }, [isOpen, modalClose]);
37
+ const searchesConversations = Boolean(usePaletteHost()?.searchConversations);
38
+ const conversationsGroup = labels.paletteConversationsGroup;
39
+ const extraScopes = useMemo(() => searchesConversations ? [conversationsGroup] : void 0, [searchesConversations, conversationsGroup]);
37
40
  const controller = usePaletteController({
38
41
  context,
39
42
  onInsert,
40
43
  onPrompt,
41
- recentIdOf: paletteRecentIdOf
44
+ recentIdOf: paletteRecentIdOf,
45
+ extraScopes
42
46
  });
43
- const { ranked, query, nested } = controller;
47
+ const { ranked, query, nested, scope } = controller;
44
48
  const listed = useMemo(() => new Set(ranked.flatMap((r) => r.item.source === "builtin:sessions" ? [sessionKeyOfItem(r.item.id)] : [])), [ranked]);
45
49
  const conversations = useConversationSearch(query, {
46
- enabled: !nested,
50
+ enabled: !nested && (scope === null || scope === conversationsGroup),
47
51
  sessions,
48
52
  listed,
49
53
  archive
@@ -13,6 +13,8 @@ interface PaletteControllerOptions {
13
13
  onPrompt?: (text: string) => void;
14
14
  /** The id Recent remembers for a run root item. Default: the item's own id. */
15
15
  recentIdOf?: (item: PaletteItem) => string;
16
+ /** Sections the app lists itself (its own groups), offered as scopes after the root items' groups. Keep it stable. */
17
+ extraScopes?: readonly string[];
16
18
  }
17
19
  /** The palette's state and handlers, for {@link CommandPalette}. */
18
20
  interface PaletteController {
@@ -26,6 +28,14 @@ interface PaletteController {
26
28
  setCursor: (index: number) => void;
27
29
  /** Whether a picker's level is shown. */
28
30
  nested: boolean;
31
+ /** The section the root search is scoped to; `null` searches every section. */
32
+ scope: string | null;
33
+ /** The sections a scope can be: the root items' groups in order, then `extraScopes`. */
34
+ scopes: readonly string[];
35
+ /** Scopes the root search to the next section; after the last, back to every section. Stable while `scopes` holds. */
36
+ cycleScope: () => void;
37
+ /** Searches every section again. Stable. */
38
+ clearScope: () => void;
29
39
  /** The nested level's title. */
30
40
  title: string | undefined;
31
41
  /** The query field's placeholder. */
@@ -11,7 +11,7 @@ const NO_RECENTS = [];
11
11
  * @param options - The context and where agent-bound results go.
12
12
  */
13
13
  function usePaletteController(options) {
14
- const { context, onInsert, onPrompt, recentIdOf } = options;
14
+ const { context, onInsert, onPrompt, recentIdOf, extraScopes } = options;
15
15
  const palette = usePalette();
16
16
  const labels = usePaletteLabels();
17
17
  const { sources, version, recents, markRecent, close } = palette;
@@ -21,6 +21,7 @@ function usePaletteController(options) {
21
21
  const [cursor, setCursor] = useState(0);
22
22
  const [notice, setNotice] = useState(null);
23
23
  const [running, setRunning] = useState(false);
24
+ const [scope, setScope] = useState(null);
24
25
  const inputRef = useRef(null);
25
26
  const asked = useDeferredValue(true, false);
26
27
  useEffect(() => {
@@ -40,10 +41,16 @@ function usePaletteController(options) {
40
41
  context
41
42
  ]);
42
43
  const root = useMemo(() => bySource ? sources.flatMap((s) => bySource.get(s.id) ?? []) : null, [bySource, sources]);
44
+ const scopes = useMemo(() => {
45
+ const groups = new Set(root?.map((item) => item.group));
46
+ for (const extra of extraScopes ?? []) groups.add(extra);
47
+ return [...groups];
48
+ }, [root, extraScopes]);
49
+ const scoped = useMemo(() => root && scope ? root.filter((item) => item.group === scope) : root, [root, scope]);
43
50
  const level = stack.at(-1);
44
- const items = level?.items ?? root ?? [];
51
+ const items = level?.items ?? scoped ?? [];
45
52
  const nested = stack.length > 0;
46
- const levelRecents = nested ? NO_RECENTS : recents;
53
+ const levelRecents = nested || scope ? NO_RECENTS : recents;
47
54
  const { rows: ranked, settled } = useRankedItems(items, query, levelRecents);
48
55
  const sections = useMemo(() => groupPaletteRows(ranked, query, levelRecents), [
49
56
  ranked,
@@ -119,6 +126,17 @@ function usePaletteController(options) {
119
126
  runRowRef.current = runRow;
120
127
  });
121
128
  const run = useCallback((row) => void runRowRef.current(row), []);
129
+ const cycleScope = useCallback(() => {
130
+ setScope((current) => {
131
+ const next = current === null ? 0 : scopes.indexOf(current) + 1;
132
+ return scopes[next] ?? null;
133
+ });
134
+ setCursor(0);
135
+ }, [scopes]);
136
+ const clearScope = useCallback(() => {
137
+ setScope(null);
138
+ setCursor(0);
139
+ }, []);
122
140
  const back = useCallback(() => {
123
141
  setStack((s) => s.slice(0, -1));
124
142
  setQuery("");
@@ -130,6 +148,10 @@ function usePaletteController(options) {
130
148
  cursor,
131
149
  setCursor,
132
150
  nested,
151
+ scope,
152
+ scopes,
153
+ cycleScope,
154
+ clearScope,
133
155
  title: level?.title,
134
156
  placeholder: level?.placeholder ?? (nested ? void 0 : labels.paletteSearchPlaceholder),
135
157
  ranked,
@@ -368,7 +368,12 @@ function createSseHandler(options) {
368
368
  if (action === "steer" || action === "follow-up") {
369
369
  const body = await readJson(request);
370
370
  if (!body || typeof body.message !== "string") return json({ error: "message required" }, 400);
371
- const ok = action === "steer" ? engine.steer(sessionId, body.message) : engine.followUp(sessionId, body.message);
371
+ const attachments = attachmentsFromPreviews(body.attachments);
372
+ const message = {
373
+ text: body.message,
374
+ ...attachments.length ? { attachments } : {}
375
+ };
376
+ const ok = action === "steer" ? await engine.steer(sessionId, message) : await engine.followUp(sessionId, message);
372
377
  return json({ ok });
373
378
  }
374
379
  return empty(404);
@@ -16,7 +16,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
16
16
  /**
17
17
  * The Artifacts panel body: what one session produced (pull requests,
18
18
  * branches, commits, recorded files, extension kinds), flat rows under
19
- * small-caps kind labels, a single accent (the state word) per row. The row
19
+ * sentence-case kind labels, a single accent (the state word) per row. The row
20
20
  * is the link; copy, reveal and remove live in its right-click menu.
21
21
  *
22
22
  * Rows arrive rendered by the host (`artifacts.groups`), so unknown kinds
@@ -239,12 +239,11 @@ function SideChat({ parentId, cwd, renderTranscript, renderPickers, requests, cl
239
239
  className: "shrink-0 p-2",
240
240
  children: /* @__PURE__ */ jsx(Composer, {
241
241
  ref: composer,
242
- onSend: send,
242
+ onSend: (input) => input.delivery ? resetWhileRunning(input) : send(input),
243
243
  running,
244
244
  ...chat.interrupt ? { onStop: () => {
245
245
  if (sideId) chat.interrupt(sideId);
246
246
  } } : {},
247
- onQueue: resetWhileRunning,
248
247
  commands,
249
248
  attachments: true,
250
249
  footer: pick && renderPickers ? renderPickers(pick, ensureSide) : void 0,
@@ -82,7 +82,7 @@ function UsageGroup({ label, children }) {
82
82
  return /* @__PURE__ */ jsxs("section", {
83
83
  className: "flex flex-col gap-1.5",
84
84
  children: [label && /* @__PURE__ */ jsx("h3", {
85
- className: "zg-meta m-0 px-1 text-zg-meta uppercase tracking-wide",
85
+ className: "zg-meta m-0 px-1 text-zg-meta",
86
86
  children: label
87
87
  }), /* @__PURE__ */ jsx("ul", {
88
88
  className: "zg-tray rounded-zg-lg flex flex-col p-1 m-0 list-none",
@@ -1,7 +1,7 @@
1
1
  import { Readable } from "../../chat/headless/store.js";
2
2
  import { ProviderResetOutcome, ProviderResetTarget, ProviderUsageSnapshot as ProviderUsageSnapshot$1, UsageRange, UsageSummary } from "./usage.js";
3
3
  import { ExtensionArtifactRowFact, ExtensionBadgeIcon, ExtensionBadgeTone, Schedule, ScheduleFire, ScheduleInput, SchedulePatch, SecretTtl } from "zidane/chat/pure";
4
- import { ActivePlanSummary, PlanEditOp, PlanStep, PlanView, PlansSnapshot, PromptAttachment, QueuedAttachment, TodoItem } from "zidane/chat";
4
+ import { ActivePlanSummary, MessageDelivery, PlanEditOp, PlanStep, PlanView, PlansSnapshot, PromptAttachment, QueuedAttachment, TodoItem } from "zidane/chat";
5
5
  import { IpcResult, RunningWorkItem } from "zidane/ipc";
6
6
  import { SessionArtifact } from "zidane";
7
7
  import { SessionTurn } from "zidane/types";
@@ -27,6 +27,8 @@ interface QueueAddOptions {
27
27
  activatedSkills?: string[];
28
28
  /** Attachments with their bytes. */
29
29
  attachments?: PromptAttachment[];
30
+ /** While a run works: `steer` hands it to the run, `queue` holds it for the run's end. Absent: the host's setting. */
31
+ delivery?: MessageDelivery;
30
32
  }
31
33
  /** An artifact's row, rendered by the backend (the kind registry lives there). */
32
34
  interface SessionArtifactRowView {
@@ -1,3 +1,4 @@
1
+ import { createSideRequests, parseSideCommand } from "./side.js";
1
2
  import { createKeyedState } from "./keyed.js";
2
3
  import { countArtifacts, createArtifactsState, groupArtifactRows, plainArtifactRow } from "./artifacts.js";
3
4
  import { createQueueState, toQueuedMessages } from "./queue.js";
@@ -6,12 +7,11 @@ import { canKeepSchedule, createSchedulesState, isScheduleFinished, readReminder
6
7
  import { createPlansState, displayedPlan, inboxPlans, planTally } from "./plans.js";
7
8
  import { createSecretsState, sortSecrets } from "./secrets.js";
8
9
  import { DEFAULT_SESSION_LABELS } from "./labels.js";
9
- import { createSideRequests, parseSideCommand } from "./side.js";
10
10
  import { buildDiffTree, fileOrder, relativeTo, visibleRows } from "./diff-tree.js";
11
11
  import { collectSessionDiffs, fileDiffCounts, groupByPath } from "./session-diffs.js";
12
- import { formatTokens, localDayString } from "./usage-format.js";
13
12
  import { EMPTY_HOME_PREFS, arrangeHomeBlocks, hideHomeBlock, homeBlocksOf, homeRows, moveHomeBlock, parseHomePrefs, placeHomeBlock, setHomeBlockView, setHomeBlockWidth, showHomeBlock } from "./home-layout.js";
14
13
  import { USAGE_RANGES, USAGE_SNAPSHOT_KEY, createProviderUsageState, createUsageSummaryState, isUsageSummary, pickUsageSummary } from "./usage.js";
15
14
  import { attachmentsKey, stagedToWire, wireToStaged } from "./queue-attachments.js";
15
+ import { formatTokens, localDayString } from "./usage-format.js";
16
16
  import { createSessionActions, sessionKeyCommands } from "./session-actions.js";
17
17
  export { DEFAULT_SESSION_LABELS, EMPTY_HOME_PREFS, USAGE_RANGES, USAGE_SNAPSHOT_KEY, arrangeHomeBlocks, attachmentsKey, buildDiffTree, canKeepSchedule, collectSessionDiffs, countArtifacts, createArtifactsState, createKeyedState, createPlansState, createProviderUsageState, createQueueState, createRunningWorkState, createSchedulesState, createSecretsState, createSessionActions, createSideRequests, createUsageSummaryState, displayedPlan, fileDiffCounts, fileOrder, formatTokens, groupArtifactRows, groupByPath, hideHomeBlock, homeBlocksOf, homeRows, inboxPlans, isScheduleFinished, isUsageSummary, localDayString, moveHomeBlock, parseHomePrefs, parseSideCommand, pickUsageSummary, placeHomeBlock, plainArtifactRow, planTally, readReminderWhen, relativeTo, remindersSummary, sameRunningWork, sessionKeyCommands, setHomeBlockView, setHomeBlockWidth, showHomeBlock, sortSchedules, sortSecrets, stagedToWire, toQueuedMessages, upcomingSchedules, visibleRows, wireToStaged };
@@ -0,0 +1,25 @@
1
+ import { CSSProperties, ReactNode } from "react";
2
+ //#region src/settings/SettingsRestricted.d.ts
3
+ /** Whether this connection may not change the host's settings (`writable` offered and false). */
4
+ declare function useSettingsRestricted(): boolean;
5
+ /** Props for {@link SettingsRestricted}. */
6
+ interface SettingsRestrictedProps {
7
+ /** What it wraps. */
8
+ children: ReactNode;
9
+ /** Restricted for another reason the section knows (a refused read). Default: {@link useSettingsRestricted}. */
10
+ restricted?: boolean;
11
+ /** Wrap inline content (a button) instead of a block. */
12
+ inline?: boolean;
13
+ /** Classes merged on the root while restricted. */
14
+ className?: string;
15
+ /** Inline styles on the root while restricted. */
16
+ style?: CSSProperties;
17
+ }
18
+ /**
19
+ * Renders `children` dimmed and inert with the "Admin only" tooltip while restricted; else as they are.
20
+ *
21
+ * @param props - {@link SettingsRestrictedProps}.
22
+ */
23
+ declare function SettingsRestricted({ children, restricted, inline, className, style }: SettingsRestrictedProps): import("react").JSX.Element;
24
+ //#endregion
25
+ export { SettingsRestricted, SettingsRestrictedProps, useSettingsRestricted };
@@ -0,0 +1,44 @@
1
+ import { Restricted } from "../components/Restricted.js";
2
+ import { constant, useReadable } from "../chat/headless/store.js";
3
+ import { useSettingsHost, useSettingsLabels } from "./SettingsProvider.js";
4
+ import { Fragment, jsx } from "react/jsx-runtime";
5
+ import { createContext, useContext } from "react";
6
+ //#region src/settings/SettingsRestricted.tsx
7
+ /**
8
+ * A settings section this connection may not change (a server's chat token):
9
+ * `Restricted` with the settings' "Admin only" reason, restricted while the
10
+ * host says this connection may not write (`SettingsHost.writable`). A
11
+ * host that leaves `writable` out is never restricted. Nested ones draw
12
+ * only the outermost, so a section and the list inside it say it once.
13
+ * Internal to the settings area.
14
+ */
15
+ const ALWAYS = constant(true);
16
+ const InsideRestricted = createContext(false);
17
+ /** Whether this connection may not change the host's settings (`writable` offered and false). */
18
+ function useSettingsRestricted() {
19
+ return !useReadable(useSettingsHost().writable ?? ALWAYS);
20
+ }
21
+ /**
22
+ * Renders `children` dimmed and inert with the "Admin only" tooltip while restricted; else as they are.
23
+ *
24
+ * @param props - {@link SettingsRestrictedProps}.
25
+ */
26
+ function SettingsRestricted({ children, restricted, inline, className, style }) {
27
+ const own = useSettingsRestricted();
28
+ const inside = useContext(InsideRestricted);
29
+ const labels = useSettingsLabels();
30
+ if (!(restricted ?? own) || inside) return /* @__PURE__ */ jsx(Fragment, { children });
31
+ return /* @__PURE__ */ jsx(Restricted, {
32
+ restricted: true,
33
+ reason: labels.settingsAdminOnly,
34
+ ...inline ? { inline } : {},
35
+ ...className ? { className } : {},
36
+ ...style ? { style } : {},
37
+ children: /* @__PURE__ */ jsx(InsideRestricted.Provider, {
38
+ value: true,
39
+ children
40
+ })
41
+ });
42
+ }
43
+ //#endregion
44
+ export { SettingsRestricted, useSettingsRestricted };
@@ -1,8 +1,8 @@
1
1
  import { FormSection, NavRow } from "../components/Form.js";
2
2
  import { LoadError } from "../components/LoadError.js";
3
- import { nextOption } from "./headless/catalog.js";
4
3
  import { useSettingsDocument, useSettingsHost, useSettingsHostName, useSettingsLabels, useSettingsWritable } from "./SettingsProvider.js";
5
4
  import { SettingFocus, SettingsPanel, SettingsPanelBody } from "./section.js";
5
+ import { SettingsRestricted } from "./SettingsRestricted.js";
6
6
  import { describedOn, shown } from "./headless/layout.js";
7
7
  import { SETTINGS_CHOICE_BY_KEY, SETTINGS_TOGGLE_BY_KEY } from "./headless/search.js";
8
8
  import { ChoiceRow, ToggleRow } from "./rows.js";
@@ -83,7 +83,7 @@ function SettingsRowsPage({ page, server = false, spacesOnServer = false, killSw
83
83
  return choice ? focusRow(key, /* @__PURE__ */ jsx(ChoiceRow, {
84
84
  row: choice,
85
85
  value: values[choice.key],
86
- onCycle: () => write({ [choice.key]: nextOption(choice, values[choice.key]) }),
86
+ onChange: (next) => write({ [choice.key]: next }),
87
87
  disabled: !writable,
88
88
  unavailable: choice.key === "durability" && durabilityUnavailable ? labels.settingsDurabilityUnavailable : void 0
89
89
  })) : null;
@@ -91,44 +91,38 @@ function SettingsRowsPage({ page, server = false, spacesOnServer = false, killSw
91
91
  return /* @__PURE__ */ jsx(SettingsPanel, {
92
92
  className,
93
93
  style,
94
- children: /* @__PURE__ */ jsxs(SettingsPanelBody, {
95
- scrollLabel: writable ? void 0 : labels.settingsReadOnly,
96
- children: [!writable && /* @__PURE__ */ jsx("p", {
97
- className: "zg-meta px-1 mt-0 mb-3",
98
- children: labels.settingsReadOnly
99
- }), /* @__PURE__ */ jsx("div", {
100
- className: "space-y-5",
101
- children: page.sections.map((section) => {
102
- if (!shown(section, server, spacesOnServer)) return null;
103
- if ("panel" in section) {
104
- const node = spaces?.();
94
+ children: /* @__PURE__ */ jsx(SettingsPanelBody, { children: /* @__PURE__ */ jsx("div", {
95
+ className: "space-y-5",
96
+ children: page.sections.map((section) => {
97
+ if (!shown(section, server, spacesOnServer)) return null;
98
+ if ("panel" in section) {
99
+ const node = spaces?.();
100
+ return node ? /* @__PURE__ */ jsx(SettingsRestricted, { children: /* @__PURE__ */ jsx(SettingFocus, {
101
+ id: "spaces",
102
+ children: node
103
+ }) }, section.title) : null;
104
+ }
105
+ const rows = section.rows.map((row) => {
106
+ if ("key" in row) return catalogRow(row.key);
107
+ if ("custom" in row) {
108
+ const node = shown(row, server) ? customRows?.[row.custom]?.() : null;
105
109
  return node ? /* @__PURE__ */ jsx(SettingFocus, {
106
- id: "spaces",
110
+ id: row.custom,
107
111
  children: node
108
- }, section.title) : null;
112
+ }, row.custom) : null;
109
113
  }
110
- const rows = section.rows.map((row) => {
111
- if ("key" in row) return catalogRow(row.key);
112
- if ("custom" in row) {
113
- const node = shown(row, server) ? customRows?.[row.custom]?.() : null;
114
- return node ? /* @__PURE__ */ jsx(SettingFocus, {
115
- id: row.custom,
116
- children: node
117
- }, row.custom) : null;
118
- }
119
- const action = actions.find((a) => a.id === row.action);
120
- return action ? /* @__PURE__ */ jsx(SettingFocus, {
121
- id: action.id,
122
- children: /* @__PURE__ */ jsx(NavRow, { action })
123
- }, action.id) : null;
124
- });
125
- return rows.some(Boolean) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FormSection, {
126
- title: section.title,
127
- children: rows
128
- }), section.note && notes?.[section.note]?.()] }, section.title) : null;
129
- })
130
- })]
131
- })
114
+ const action = actions.find((a) => a.id === row.action);
115
+ return action ? /* @__PURE__ */ jsx(SettingFocus, {
116
+ id: action.id,
117
+ children: /* @__PURE__ */ jsx(NavRow, { action })
118
+ }, action.id) : null;
119
+ });
120
+ return rows.some(Boolean) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SettingsRestricted, { children: /* @__PURE__ */ jsx(FormSection, {
121
+ title: section.title,
122
+ children: rows
123
+ }) }), section.note && notes?.[section.note]?.()] }, section.title) : null;
124
+ })
125
+ }) })
132
126
  });
133
127
  }
134
128
  //#endregion
@@ -1,4 +1,4 @@
1
- import { APPROVAL_MODE_OPTIONS, DEFAULT_SETTINGS, DURABILITY_OPTIONS, SETTINGS_TOGGLES as SETTINGS_TOGGLES$1 } from "zidane/chat/pure";
1
+ import { APPROVAL_MODE_OPTIONS, DEFAULT_SETTINGS, DURABILITY_OPTIONS, MESSAGE_DELIVERY_OPTIONS, SETTINGS_TOGGLES as SETTINGS_TOGGLES$1 } from "zidane/chat/pure";
2
2
  //#region src/settings/headless/catalog.ts
3
3
  /**
4
4
  * GUI-only `requires`: these rows only grey out while the browser is off.
@@ -221,11 +221,6 @@ const SETTINGS_TOGGLES = withCanonicalGates([
221
221
  label: "Cache notices",
222
222
  description: "Add a row to the chat when the prompt cache expires or resets, or the provider drops earlier reasoning."
223
223
  },
224
- {
225
- key: "queueMessages",
226
- label: "Queue messages",
227
- description: "Hold messages sent during a run until it ends. When off, they go into the running turn."
228
- },
229
224
  {
230
225
  key: "attachmentsEnabled",
231
226
  label: "Paste attachments",
@@ -391,6 +386,12 @@ const SETTINGS_CHOICES = [
391
386
  description: "Keep a checkpoint of each run so it can continue after a crash. Applies to new runs. Unavailable on stores other than SQLite.",
392
387
  options: DURABILITY_OPTIONS
393
388
  },
389
+ {
390
+ key: "messageDelivery",
391
+ label: "Messages during a run",
392
+ description: "What happens to a message that you send while the agent works. Alt+Enter sends one message the other way.",
393
+ options: MESSAGE_DELIVERY_OPTIONS
394
+ },
394
395
  {
395
396
  key: "sandboxNetwork",
396
397
  label: "Sandbox network",
@@ -24,8 +24,10 @@ declare const DEFAULT_SETTINGS_LABELS: {
24
24
  settingsUnavailable: string;
25
25
  /** Crash recovery on a host whose session store has no durability (memory, file map): the note under it. */
26
26
  settingsDurabilityUnavailable: string;
27
- /** The host offers no write, or this connection may not write. */
28
- settingsReadOnly: string;
27
+ /** A section this connection may read but not change (a chat token): its tooltip and its name. */
28
+ settingsAdminOnly: string;
29
+ /** A section this connection may not even read (a chat token on the logs, the performance figures). */
30
+ settingsRestrictedEmpty: string;
29
31
  /** The settings are being read. */
30
32
  settingsLoading: string;
31
33
  /** The host switcher's menu. */
@@ -23,8 +23,10 @@ const DEFAULT_SETTINGS_LABELS = {
23
23
  settingsUnavailable: "Unavailable",
24
24
  /** Crash recovery on a host whose session store has no durability (memory, file map): the note under it. */
25
25
  settingsDurabilityUnavailable: "Unavailable here: this host's session store is not SQLite, so runs keep no checkpoint.",
26
- /** The host offers no write, or this connection may not write. */
27
- settingsReadOnly: "These settings are read-only here: this connection may not change them.",
26
+ /** A section this connection may read but not change (a chat token): its tooltip and its name. */
27
+ settingsAdminOnly: "Admin only",
28
+ /** A section this connection may not even read (a chat token on the logs, the performance figures). */
29
+ settingsRestrictedEmpty: "Nothing to show here.",
28
30
  /** The settings are being read. */
29
31
  settingsLoading: "Reading settings…",
30
32
  /** The host switcher's menu. */
@@ -232,7 +232,7 @@ const SETTINGS_PAGES = [
232
232
  {
233
233
  title: "Composer",
234
234
  rows: [
235
- { key: "queueMessages" },
235
+ { key: "messageDelivery" },
236
236
  { key: "attachmentsEnabled" },
237
237
  { key: "inlineAutocomplete" },
238
238
  { key: "promptSuggestions" }
@@ -13,6 +13,8 @@ interface SettingsCredential {
13
13
  key?: string;
14
14
  /** An OAuth account's name. */
15
15
  label?: string;
16
+ /** An OAuth account's email, when the host knows it: what tells two accounts apart. */
17
+ email?: string;
16
18
  /** Its stable id (it stays put when another account is promoted): what a failed sign-in names. Absent: not stored, or stored before ids. */
17
19
  id?: string;
18
20
  }
@@ -1,4 +1,4 @@
1
- import { pf as Settings } from "../../dist/index-DqCio7Nd.js";
1
+ import { hf as Settings } from "../../dist/index-Bq87OcGy.js";
2
2
  import { SettingsSearchEntry, SettingsSection } from "./registry.js";
3
3
  import { SettingsChoice, SettingsToggle } from "./catalog.js";
4
4
  import { SettingsActionId, SettingsPage } from "./layout.js";
@@ -37,7 +37,7 @@ import { SettingsProvider, SettingsProviderProps, SettingsValues, useSettings, u
37
37
  import { SettingsRowsPage, SettingsRowsPageProps } from "./SettingsRowsPage.js";
38
38
  import { SettingsFrame, SettingsFrameProps, SettingsShell, SettingsShellProps } from "./SettingsShell.js";
39
39
  import { SettingsTutorial, SettingsTutorialProps } from "./SettingsTutorial.js";
40
- import { ChoiceRow, ChoiceRowProps, ToggleRow, ToggleRowProps, ValueChip, ValueChipProps } from "./rows.js";
40
+ import { ChoiceRow, ChoiceRowProps, SelectRow, SelectRowOption, SelectRowProps, ToggleRow, ToggleRowProps, ValueChip, ValueChipProps } from "./rows.js";
41
41
  import { SettingFocus, SettingFocusProps, SettingsPanel, SettingsPanelActions, SettingsPanelActionsProps, SettingsPanelBody, SettingsPanelBodyProps, SettingsPanelProps, SettingsSectionState, useSettingsSection } from "./section.js";
42
42
  import { KEYBINDING_ROW_COUNT, KEYBINDING_SECTIONS, KeybindingGroup, KeybindingRow } from "./sections/keybindings/rows.js";
43
43
  import { ExtensionOptionsSection, ExtensionOptionsSectionProps, useExtensionOptionsSearch } from "./sections/extensions/ExtensionOptionsSection.js";
@@ -61,4 +61,4 @@ import { ApprovalModeRow, ApprovalModeRowProps, CompactionModelRow, CompactionMo
61
61
  import { SpacesDefaultsSection, SpacesDefaultsSectionProps, spaceDefaults, withSpaceDefaults } from "./sections/models/SpacesDefaultsSection.js";
62
62
  import { ModelTestButton, ModelTestButtonProps, ModelTestLine, ModelTestLineProps, ModelTestState, useModelRowsLabels, useModelTest } from "./sections/models/model-test.js";
63
63
  import "./sections/index.js";
64
- export { AccountsConfirm, AccountsSectionLabels, AgentDefaultsRows, AgentDefaultsRowsProps, AgentDefaultsValue, AppearanceSection, AppearanceSectionLabels, AppearanceSectionProps, ApprovalModeRow, ApprovalModeRowProps, CatalogSharedLabels, ChoiceRow, ChoiceRowProps, ClaudeImportDialog, ClaudeImportDialogProps, ClaudeImportLabels, CompactionModelRow, CompactionModelRowProps, ConversationPresetsRow, ConversationPresetsRowProps, CreateExtensionDialog, CreateExtensionDialogProps, CreateExtensionLabels, DEFAULT_ACCOUNTS_SECTION_LABELS, DEFAULT_APPEARANCE_SECTION_LABELS, DEFAULT_CATALOG_SHARED_LABELS, DEFAULT_CLAUDE_IMPORT_LABELS, DEFAULT_CREATE_EXTENSION_LABELS, DEFAULT_EDITOR_SECTION_LABELS, DEFAULT_ENABLED_LIST_SECTION_LABELS, DEFAULT_ENVIRONMENTS_SECTION_LABELS, DEFAULT_EXTENSIONS_SECTION_LABELS, DEFAULT_EXTENSION_OPTIONS_LABELS, DEFAULT_HOST_CATALOG_LABELS, DEFAULT_INSTRUCTIONS_SECTION_LABELS, DEFAULT_KEYBINDINGS_SECTION_LABELS, DEFAULT_LOGS_SECTION_LABELS, DEFAULT_MCP_SECTION_LABELS, DEFAULT_MODEL_ROWS_LABELS, DEFAULT_PERFORMANCE_SECTION_LABELS, DEFAULT_PLUGINS_SECTION_LABELS, DEFAULT_SKILLS_SECTION_LABELS, DecisionModelRow, DecisionModelRowProps, EditorDiagnosticsTool, EditorLanguageServer, EditorOpenIn, EditorSection, EditorSectionLabels, EditorSectionProps, EnabledListSection, EnabledListSectionLabels, EnabledListSectionProps, EnvironmentsSection, EnvironmentsSectionLabels, EnvironmentsSectionProps, ExtensionActionRow, ExtensionActionRowProps, ExtensionActions, ExtensionConfigRow, ExtensionConfigRowProps, ExtensionConfigValue, ExtensionList, ExtensionOptionsLabels, ExtensionOptionsSection, ExtensionOptionsSectionProps, ExtensionPick, ExtensionSourceBrowser, ExtensionSourceBrowserProps, ExtensionsSection, ExtensionsSectionLabels, ExtensionsSectionProps, HostCatalogLabels, HostCatalogSection, HostCatalogSectionKind, HostCatalogSectionProps, InstructionsSection, InstructionsSectionLabels, InstructionsSectionProps, KEYBINDING_ROW_COUNT, KEYBINDING_SECTIONS, KeybindingGroup, KeybindingRow, KeybindingsSection, KeybindingsSectionLabelKey, KeybindingsSectionLabels, KeybindingsSectionProps, LogsSection, LogsSectionLabels, LogsSectionProps, McpSection, McpSectionLabels, McpSectionProps, ModelListEntry, ModelListPicker, ModelListPickerProps, ModelPickField, ModelPickFieldProps, ModelRowsLabels, ModelTestButton, ModelTestButtonProps, ModelTestLine, ModelTestLineProps, ModelTestState, PerfSparkline, PerfSparklineProps, PerformanceHud, PerformanceHudProps, PerformanceSection, PerformanceSectionLabels, PerformanceSectionProps, PluginList, PluginsSection, PluginsSectionLabels, PluginsSectionProps, PreferenceSectionOverrides, ProvidersSection, ProvidersSectionProps, ServerProvidersSection, ServerProvidersSectionProps, ServerSignIn, ServerSignInProps, SettingFocus, type SettingFocusProps, SettingsFrame, SettingsFrameProps, SettingsHeadingText, SettingsHeadingTextProps, SettingsHostSwitcher, SettingsHostSwitcherProps, SettingsNav, SettingsNavProps, SettingsPanel, SettingsPanelActions, type SettingsPanelActionsProps, SettingsPanelBody, type SettingsPanelBodyProps, type SettingsPanelProps, SettingsProvider, SettingsProviderProps, SettingsRowsPage, SettingsRowsPageProps, type SettingsSearchEntry, type SettingsSection, type SettingsSectionState, SettingsShell, SettingsShellProps, SettingsTutorial, SettingsTutorialProps, SettingsValues, SkillsSection, SkillsSectionLabels, SkillsSectionProps, SpacesDefaultsSection, SpacesDefaultsSectionProps, TextModelRow, TextModelRowProps, ToggleRow, ToggleRowProps, ValueChip, ValueChipProps, agentDefaultsOf, agentDefaultsPatch, appearanceSettingsSection, automaticTextModel, editorSettingsSection, enabledListSettingsSection, environmentsSettingsSection, extensionConfigValue, extensionPickOf, extensionsSettingsSection, filterModelList, hostCatalogSettingsSection, instructionsSettingsSection, keybindingsSettingsSection, logsSettingsSection, mcpSettingsSection, modelPickLabel, navOrder, performanceSettingsSection, pluginsSettingsSection, providersSettingsSection, serverProvidersSettingsSection, skillsSettingsSection, spaceDefaults, useAccountsSectionLabels, useAppearanceSectionLabels, useClaudeImportAvailable, useClaudeImportLabels, useCreateExtensionLabels, useEditorSectionLabels, useEnabledListSectionLabels, useEnvironmentsSectionLabels, useExtensionOptionsLabels, useExtensionOptionsSearch, useExtensionsSectionLabels, useHostCatalogLabels, useInstructionsSectionLabels, useKeybindingsSectionLabels, useLogsSectionLabels, useMcpSectionLabels, useModelRowsLabels, useModelTest, usePerformanceSectionLabels, usePluginsSectionLabels, useSettings, useSettingsDocument, useSettingsHost, useSettingsHostName, useSettingsLabels, useSettingsSection, useSettingsWritable, useSkillsSectionLabels, withSpaceDefaults };
64
+ export { AccountsConfirm, AccountsSectionLabels, AgentDefaultsRows, AgentDefaultsRowsProps, AgentDefaultsValue, AppearanceSection, AppearanceSectionLabels, AppearanceSectionProps, ApprovalModeRow, ApprovalModeRowProps, CatalogSharedLabels, ChoiceRow, ChoiceRowProps, ClaudeImportDialog, ClaudeImportDialogProps, ClaudeImportLabels, CompactionModelRow, CompactionModelRowProps, ConversationPresetsRow, ConversationPresetsRowProps, CreateExtensionDialog, CreateExtensionDialogProps, CreateExtensionLabels, DEFAULT_ACCOUNTS_SECTION_LABELS, DEFAULT_APPEARANCE_SECTION_LABELS, DEFAULT_CATALOG_SHARED_LABELS, DEFAULT_CLAUDE_IMPORT_LABELS, DEFAULT_CREATE_EXTENSION_LABELS, DEFAULT_EDITOR_SECTION_LABELS, DEFAULT_ENABLED_LIST_SECTION_LABELS, DEFAULT_ENVIRONMENTS_SECTION_LABELS, DEFAULT_EXTENSIONS_SECTION_LABELS, DEFAULT_EXTENSION_OPTIONS_LABELS, DEFAULT_HOST_CATALOG_LABELS, DEFAULT_INSTRUCTIONS_SECTION_LABELS, DEFAULT_KEYBINDINGS_SECTION_LABELS, DEFAULT_LOGS_SECTION_LABELS, DEFAULT_MCP_SECTION_LABELS, DEFAULT_MODEL_ROWS_LABELS, DEFAULT_PERFORMANCE_SECTION_LABELS, DEFAULT_PLUGINS_SECTION_LABELS, DEFAULT_SKILLS_SECTION_LABELS, DecisionModelRow, DecisionModelRowProps, EditorDiagnosticsTool, EditorLanguageServer, EditorOpenIn, EditorSection, EditorSectionLabels, EditorSectionProps, EnabledListSection, EnabledListSectionLabels, EnabledListSectionProps, EnvironmentsSection, EnvironmentsSectionLabels, EnvironmentsSectionProps, ExtensionActionRow, ExtensionActionRowProps, ExtensionActions, ExtensionConfigRow, ExtensionConfigRowProps, ExtensionConfigValue, ExtensionList, ExtensionOptionsLabels, ExtensionOptionsSection, ExtensionOptionsSectionProps, ExtensionPick, ExtensionSourceBrowser, ExtensionSourceBrowserProps, ExtensionsSection, ExtensionsSectionLabels, ExtensionsSectionProps, HostCatalogLabels, HostCatalogSection, HostCatalogSectionKind, HostCatalogSectionProps, InstructionsSection, InstructionsSectionLabels, InstructionsSectionProps, KEYBINDING_ROW_COUNT, KEYBINDING_SECTIONS, KeybindingGroup, KeybindingRow, KeybindingsSection, KeybindingsSectionLabelKey, KeybindingsSectionLabels, KeybindingsSectionProps, LogsSection, LogsSectionLabels, LogsSectionProps, McpSection, McpSectionLabels, McpSectionProps, ModelListEntry, ModelListPicker, ModelListPickerProps, ModelPickField, ModelPickFieldProps, ModelRowsLabels, ModelTestButton, ModelTestButtonProps, ModelTestLine, ModelTestLineProps, ModelTestState, PerfSparkline, PerfSparklineProps, PerformanceHud, PerformanceHudProps, PerformanceSection, PerformanceSectionLabels, PerformanceSectionProps, PluginList, PluginsSection, PluginsSectionLabels, PluginsSectionProps, PreferenceSectionOverrides, ProvidersSection, ProvidersSectionProps, SelectRow, SelectRowOption, SelectRowProps, ServerProvidersSection, ServerProvidersSectionProps, ServerSignIn, ServerSignInProps, SettingFocus, type SettingFocusProps, SettingsFrame, SettingsFrameProps, SettingsHeadingText, SettingsHeadingTextProps, SettingsHostSwitcher, SettingsHostSwitcherProps, SettingsNav, SettingsNavProps, SettingsPanel, SettingsPanelActions, type SettingsPanelActionsProps, SettingsPanelBody, type SettingsPanelBodyProps, type SettingsPanelProps, SettingsProvider, SettingsProviderProps, SettingsRowsPage, SettingsRowsPageProps, type SettingsSearchEntry, type SettingsSection, type SettingsSectionState, SettingsShell, SettingsShellProps, SettingsTutorial, SettingsTutorialProps, SettingsValues, SkillsSection, SkillsSectionLabels, SkillsSectionProps, SpacesDefaultsSection, SpacesDefaultsSectionProps, TextModelRow, TextModelRowProps, ToggleRow, ToggleRowProps, ValueChip, ValueChipProps, agentDefaultsOf, agentDefaultsPatch, appearanceSettingsSection, automaticTextModel, editorSettingsSection, enabledListSettingsSection, environmentsSettingsSection, extensionConfigValue, extensionPickOf, extensionsSettingsSection, filterModelList, hostCatalogSettingsSection, instructionsSettingsSection, keybindingsSettingsSection, logsSettingsSection, mcpSettingsSection, modelPickLabel, navOrder, performanceSettingsSection, pluginsSettingsSection, providersSettingsSection, serverProvidersSettingsSection, skillsSettingsSection, spaceDefaults, useAccountsSectionLabels, useAppearanceSectionLabels, useClaudeImportAvailable, useClaudeImportLabels, useCreateExtensionLabels, useEditorSectionLabels, useEnabledListSectionLabels, useEnvironmentsSectionLabels, useExtensionOptionsLabels, useExtensionOptionsSearch, useExtensionsSectionLabels, useHostCatalogLabels, useInstructionsSectionLabels, useKeybindingsSectionLabels, useLogsSectionLabels, useMcpSectionLabels, useModelRowsLabels, useModelTest, usePerformanceSectionLabels, usePluginsSectionLabels, useSettings, useSettingsDocument, useSettingsHost, useSettingsHostName, useSettingsLabels, useSettingsSection, useSettingsWritable, useSkillsSectionLabels, withSpaceDefaults };
@@ -13,7 +13,7 @@ import { SettingsTutorial } from "./SettingsTutorial.js";
13
13
  import { SettingsHeadingText } from "./SettingsHeadingText.js";
14
14
  import { SettingsHostSwitcher } from "./SettingsHostSwitcher.js";
15
15
  import { SettingsNav, navOrder } from "./SettingsNav.js";
16
- import { ChoiceRow, ToggleRow, ValueChip } from "./rows.js";
16
+ import { ChoiceRow, SelectRow, ToggleRow, ValueChip } from "./rows.js";
17
17
  import { SettingsRowsPage } from "./SettingsRowsPage.js";
18
18
  import { SettingsFrame, SettingsShell } from "./SettingsShell.js";
19
19
  import { DEFAULT_APPEARANCE_SECTION_LABELS } from "./sections/appearance/labels.js";
@@ -59,4 +59,4 @@ import { ModelPickField, modelPickLabel } from "./sections/models/ModelPickField
59
59
  import { AgentDefaultsRows, agentDefaultsOf, agentDefaultsPatch } from "./sections/models/AgentDefaults.js";
60
60
  import { ApprovalModeRow, CompactionModelRow, ConversationPresetsRow, DecisionModelRow, TextModelRow, automaticTextModel } from "./sections/models/ModelRows.js";
61
61
  import { SpacesDefaultsSection, spaceDefaults, withSpaceDefaults } from "./sections/models/SpacesDefaultsSection.js";
62
- export { AgentDefaultsRows, AppearanceSection, ApprovalModeRow, ChoiceRow, ClaudeImportDialog, CompactionModelRow, ConversationPresetsRow, CreateExtensionDialog, DEFAULT_ACCOUNTS_SECTION_LABELS, DEFAULT_APPEARANCE_SECTION_LABELS, DEFAULT_CATALOG_SHARED_LABELS, DEFAULT_CLAUDE_IMPORT_LABELS, DEFAULT_CREATE_EXTENSION_LABELS, DEFAULT_EDITOR_SECTION_LABELS, DEFAULT_ENABLED_LIST_SECTION_LABELS, DEFAULT_ENVIRONMENTS_SECTION_LABELS, DEFAULT_EXTENSIONS_SECTION_LABELS, DEFAULT_EXTENSION_OPTIONS_LABELS, DEFAULT_HOST_CATALOG_LABELS, DEFAULT_INSTRUCTIONS_SECTION_LABELS, DEFAULT_KEYBINDINGS_SECTION_LABELS, DEFAULT_LOGS_SECTION_LABELS, DEFAULT_MCP_SECTION_LABELS, DEFAULT_MODEL_ROWS_LABELS, DEFAULT_PERFORMANCE_SECTION_LABELS, DEFAULT_PLUGINS_SECTION_LABELS, DEFAULT_SKILLS_SECTION_LABELS, DecisionModelRow, EditorSection, EnabledListSection, EnvironmentsSection, ExtensionActionRow, ExtensionActions, ExtensionConfigRow, ExtensionList, ExtensionOptionsSection, ExtensionSourceBrowser, ExtensionsSection, HostCatalogSection, InstructionsSection, KEYBINDING_ROW_COUNT, KEYBINDING_SECTIONS, KeybindingsSection, LogsSection, McpSection, ModelListPicker, ModelPickField, ModelTestButton, ModelTestLine, PerfSparkline, PerformanceHud, PerformanceSection, PluginList, PluginsSection, ProvidersSection, ServerProvidersSection, ServerSignIn, SettingFocus, SettingsFrame, SettingsHeadingText, SettingsHostSwitcher, SettingsNav, SettingsPanel, SettingsPanelActions, SettingsPanelBody, SettingsProvider, SettingsRowsPage, SettingsShell, SettingsTutorial, SkillsSection, SpacesDefaultsSection, TextModelRow, ToggleRow, ValueChip, agentDefaultsOf, agentDefaultsPatch, appearanceSettingsSection, automaticTextModel, editorSettingsSection, enabledListSettingsSection, environmentsSettingsSection, extensionConfigValue, extensionPickOf, extensionsSettingsSection, filterModelList, hostCatalogSettingsSection, instructionsSettingsSection, keybindingsSettingsSection, logsSettingsSection, mcpSettingsSection, modelPickLabel, navOrder, performanceSettingsSection, pluginsSettingsSection, providersSettingsSection, serverProvidersSettingsSection, skillsSettingsSection, spaceDefaults, useAccountsSectionLabels, useAppearanceSectionLabels, useClaudeImportAvailable, useClaudeImportLabels, useCreateExtensionLabels, useEditorSectionLabels, useEnabledListSectionLabels, useEnvironmentsSectionLabels, useExtensionOptionsLabels, useExtensionOptionsSearch, useExtensionsSectionLabels, useHostCatalogLabels, useInstructionsSectionLabels, useKeybindingsSectionLabels, useLogsSectionLabels, useMcpSectionLabels, useModelRowsLabels, useModelTest, usePerformanceSectionLabels, usePluginsSectionLabels, useSettings, useSettingsDocument, useSettingsHost, useSettingsHostName, useSettingsLabels, useSettingsSection, useSettingsWritable, useSkillsSectionLabels, withSpaceDefaults };
62
+ export { AgentDefaultsRows, AppearanceSection, ApprovalModeRow, ChoiceRow, ClaudeImportDialog, CompactionModelRow, ConversationPresetsRow, CreateExtensionDialog, DEFAULT_ACCOUNTS_SECTION_LABELS, DEFAULT_APPEARANCE_SECTION_LABELS, DEFAULT_CATALOG_SHARED_LABELS, DEFAULT_CLAUDE_IMPORT_LABELS, DEFAULT_CREATE_EXTENSION_LABELS, DEFAULT_EDITOR_SECTION_LABELS, DEFAULT_ENABLED_LIST_SECTION_LABELS, DEFAULT_ENVIRONMENTS_SECTION_LABELS, DEFAULT_EXTENSIONS_SECTION_LABELS, DEFAULT_EXTENSION_OPTIONS_LABELS, DEFAULT_HOST_CATALOG_LABELS, DEFAULT_INSTRUCTIONS_SECTION_LABELS, DEFAULT_KEYBINDINGS_SECTION_LABELS, DEFAULT_LOGS_SECTION_LABELS, DEFAULT_MCP_SECTION_LABELS, DEFAULT_MODEL_ROWS_LABELS, DEFAULT_PERFORMANCE_SECTION_LABELS, DEFAULT_PLUGINS_SECTION_LABELS, DEFAULT_SKILLS_SECTION_LABELS, DecisionModelRow, EditorSection, EnabledListSection, EnvironmentsSection, ExtensionActionRow, ExtensionActions, ExtensionConfigRow, ExtensionList, ExtensionOptionsSection, ExtensionSourceBrowser, ExtensionsSection, HostCatalogSection, InstructionsSection, KEYBINDING_ROW_COUNT, KEYBINDING_SECTIONS, KeybindingsSection, LogsSection, McpSection, ModelListPicker, ModelPickField, ModelTestButton, ModelTestLine, PerfSparkline, PerformanceHud, PerformanceSection, PluginList, PluginsSection, ProvidersSection, SelectRow, ServerProvidersSection, ServerSignIn, SettingFocus, SettingsFrame, SettingsHeadingText, SettingsHostSwitcher, SettingsNav, SettingsPanel, SettingsPanelActions, SettingsPanelBody, SettingsProvider, SettingsRowsPage, SettingsShell, SettingsTutorial, SkillsSection, SpacesDefaultsSection, TextModelRow, ToggleRow, ValueChip, agentDefaultsOf, agentDefaultsPatch, appearanceSettingsSection, automaticTextModel, editorSettingsSection, enabledListSettingsSection, environmentsSettingsSection, extensionConfigValue, extensionPickOf, extensionsSettingsSection, filterModelList, hostCatalogSettingsSection, instructionsSettingsSection, keybindingsSettingsSection, logsSettingsSection, mcpSettingsSection, modelPickLabel, navOrder, performanceSettingsSection, pluginsSettingsSection, providersSettingsSection, serverProvidersSettingsSection, skillsSettingsSection, spaceDefaults, useAccountsSectionLabels, useAppearanceSectionLabels, useClaudeImportAvailable, useClaudeImportLabels, useCreateExtensionLabels, useEditorSectionLabels, useEnabledListSectionLabels, useEnvironmentsSectionLabels, useExtensionOptionsLabels, useExtensionOptionsSearch, useExtensionsSectionLabels, useHostCatalogLabels, useInstructionsSectionLabels, useKeybindingsSectionLabels, useLogsSectionLabels, useMcpSectionLabels, useModelRowsLabels, useModelTest, usePerformanceSectionLabels, usePluginsSectionLabels, useSettings, useSettingsDocument, useSettingsHost, useSettingsHostName, useSettingsLabels, useSettingsSection, useSettingsWritable, useSkillsSectionLabels, withSpaceDefaults };