zidane-ui 9.2.2 → 9.2.3

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 (207) hide show
  1. package/dist/adapters/browser-keybindings-host.js +3 -1
  2. package/dist/adapters/server-settings-host.js +30 -3
  3. package/dist/adapters/server-settings-sections.js +23 -1
  4. package/dist/adapters/server-sidebar-host.d.ts +3 -1
  5. package/dist/adapters/server-sidebar-host.js +10 -1
  6. package/dist/app/ModalProvider.js +1 -1
  7. package/dist/approvals/ApprovalShell.js +1 -1
  8. package/dist/chat/DaemonOrb.d.ts +29 -1
  9. package/dist/chat/DaemonOrb.js +25 -12
  10. package/dist/chat/StatusDot.js +8 -2
  11. package/dist/chat/Transcript.js +11 -4
  12. package/dist/chat/headless/index.d.ts +3 -2
  13. package/dist/chat/headless/index.js +11 -10
  14. package/dist/chat/headless/labels.d.ts +13 -0
  15. package/dist/chat/headless/labels.js +12 -0
  16. package/dist/chat/headless/session-list.d.ts +10 -0
  17. package/dist/chat/headless/sidebar/directory.d.ts +8 -1
  18. package/dist/chat/headless/sidebar/directory.js +40 -4
  19. package/dist/chat/headless/sidebar/environment.d.ts +5 -2
  20. package/dist/chat/headless/sidebar/environment.js +11 -2
  21. package/dist/chat/headless/sidebar/host.d.ts +15 -0
  22. package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
  23. package/dist/chat/headless/sidebar/inbox.js +18 -9
  24. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  25. package/dist/chat/headless/sidebar/index.js +2 -2
  26. package/dist/chat/headless/sidebar/labels.d.ts +28 -2
  27. package/dist/chat/headless/sidebar/labels.js +16 -0
  28. package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
  29. package/dist/chat/headless/transcript/fold-actions.js +16 -0
  30. package/dist/chat/headless/transcript/fold.d.ts +2 -1
  31. package/dist/chat/headless/transcript/fold.js +22 -2
  32. package/dist/chat/headless/transcript/index.d.ts +2 -1
  33. package/dist/chat/headless/transcript/index.js +2 -1
  34. package/dist/chat/headless/transcript/rail.d.ts +93 -0
  35. package/dist/chat/headless/transcript/rail.js +148 -0
  36. package/dist/chat/headless/transcript/rows.d.ts +6 -0
  37. package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
  38. package/dist/chat/headless/transcript/run-failures.js +29 -1
  39. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  40. package/dist/chat/headless/turn-labels.d.ts +1 -0
  41. package/dist/chat/headless/turn-labels.js +2 -1
  42. package/dist/chat/index.d.ts +4 -3
  43. package/dist/chat/index.js +14 -13
  44. package/dist/chat/interactions/ElicitationCard.js +1 -1
  45. package/dist/chat/interactions/InteractionCard.js +1 -1
  46. package/dist/chat/interactions/PlanCard.js +3 -3
  47. package/dist/chat/interactions/QuestionField.js +4 -4
  48. package/dist/chat/interactions/QuestionForm.js +3 -3
  49. package/dist/chat/interactions/SecretInput.js +1 -1
  50. package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
  51. package/dist/chat/sidebar/ProjectIcon.js +1 -1
  52. package/dist/chat/sidebar/RowChips.d.ts +3 -2
  53. package/dist/chat/sidebar/RowChips.js +6 -3
  54. package/dist/chat/sidebar/SessionSidebar.js +13 -14
  55. package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
  56. package/dist/chat/sidebar/SidebarFrame.js +5 -2
  57. package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
  58. package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
  59. package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
  60. package/dist/chat/sidebar/SpacesSection.js +34 -13
  61. package/dist/chat/sidebar/index.d.ts +2 -2
  62. package/dist/chat/sidebar/session-menu.d.ts +11 -2
  63. package/dist/chat/sidebar/session-menu.js +50 -5
  64. package/dist/chat/sidebar/sidebar-live.js +1 -1
  65. package/dist/chat/sidebar/useInboxRows.js +43 -2
  66. package/dist/chat/sidebar/useInboxTriage.js +19 -14
  67. package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
  68. package/dist/chat/testing/fixture-sidebar-host.js +12 -0
  69. package/dist/chat/testing/sidebar.contract.d.ts +6 -0
  70. package/dist/chat/testing/sidebar.contract.js +24 -0
  71. package/dist/chat/transcript/InteractionToolBody.js +1 -1
  72. package/dist/chat/transcript/SelectCursor.d.ts +11 -1
  73. package/dist/chat/transcript/SelectCursor.js +10 -5
  74. package/dist/chat/transcript/TranscriptRail.d.ts +86 -0
  75. package/dist/chat/transcript/TranscriptRail.js +421 -0
  76. package/dist/chat/transcript/TranscriptRow.js +5 -2
  77. package/dist/chat/transcript/actions.d.ts +6 -2
  78. package/dist/chat/transcript/fold.js +19 -1
  79. package/dist/chat/transcript/index.d.ts +3 -2
  80. package/dist/chat/transcript/index.js +3 -2
  81. package/dist/chat/transcript/notices.d.ts +23 -1
  82. package/dist/chat/transcript/notices.js +108 -27
  83. package/dist/chat/transcript/prose.js +1 -0
  84. package/dist/chat/transcript/receipt-parts.d.ts +22 -0
  85. package/dist/chat/transcript/receipt-parts.js +87 -0
  86. package/dist/chat/transcript/run-rows.js +3 -76
  87. package/dist/chat/transcript/script-input.d.ts +1 -1
  88. package/dist/chat/transcript/scroll-clamp.js +1 -1
  89. package/dist/chat/transcript/useSettledReveal.js +15 -3
  90. package/dist/chat/transcript/useStickToBottom.js +2 -1
  91. package/dist/components/ChoiceCards.js +1 -1
  92. package/dist/components/ConfirmDialog.js +1 -1
  93. package/dist/components/CopyValue.d.ts +33 -0
  94. package/dist/components/CopyValue.js +54 -0
  95. package/dist/components/Form.js +1 -1
  96. package/dist/components/HowItWorks.js +1 -1
  97. package/dist/components/Menu.js +1 -1
  98. package/dist/components/StepFrame.js +2 -2
  99. package/dist/components/SwatchPicker.js +1 -1
  100. package/dist/components/ToggleCard.js +1 -1
  101. package/dist/components/floating/HoverCard.js +2 -3
  102. package/dist/components/floating/hover-delay.d.ts +4 -0
  103. package/dist/components/floating/hover-delay.js +6 -0
  104. package/dist/core.css +14 -12
  105. package/dist/dist/index-De9AbmxS.d.ts +1 -0
  106. package/dist/dist/{index-Betz0OWq.d.ts → index-E1Z0aPmi.d.ts} +20 -2
  107. package/dist/dist/index.d.ts +5 -5
  108. package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
  109. package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
  110. package/dist/extensions/ExtensionDialogHost.js +1 -1
  111. package/dist/files/TreeColumn.js +3 -1
  112. package/dist/files/headless/host.d.ts +2 -2
  113. package/dist/git/ImportRepoDialog.js +1 -1
  114. package/dist/git/MoveSessionDialog.js +2 -2
  115. package/dist/git/SandboxManager.d.ts +42 -0
  116. package/dist/git/SandboxManager.js +297 -0
  117. package/dist/git/SyncChip.js +1 -1
  118. package/dist/git/headless/index.d.ts +2 -1
  119. package/dist/git/headless/index.js +2 -1
  120. package/dist/git/headless/labels.d.ts +29 -0
  121. package/dist/git/headless/labels.js +34 -1
  122. package/dist/git/headless/sandboxes.d.ts +43 -0
  123. package/dist/git/headless/sandboxes.js +52 -0
  124. package/dist/git/index.d.ts +2 -1
  125. package/dist/git/index.js +2 -1
  126. package/dist/index.d.ts +2 -1
  127. package/dist/index.js +2 -1
  128. package/dist/keybindings/headless/catalog.d.ts +1 -1
  129. package/dist/keybindings/headless/catalog.js +12 -0
  130. package/dist/machines/HostsSection.d.ts +1 -1
  131. package/dist/machines/headless/labels.js +2 -2
  132. package/dist/motion/flip-list.js +3 -10
  133. package/dist/motion/presence.d.ts +10 -0
  134. package/dist/motion/presence.js +20 -1
  135. package/dist/motion/swap.d.ts +8 -2
  136. package/dist/motion/swap.js +5 -2
  137. package/dist/onboarding/conversation.js +27 -15
  138. package/dist/onboarding/demos/how-it-works.js +1 -1
  139. package/dist/onboarding/skills/parts.js +4 -4
  140. package/dist/onboarding/sources/SourceBrowser.js +1 -1
  141. package/dist/onboarding/steps/ReadyStep.js +1 -1
  142. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  143. package/dist/palette/headless/app-sources.js +20 -0
  144. package/dist/palette/headless/labels.js +2 -0
  145. package/dist/session/PlanTracker.js +3 -3
  146. package/dist/session/SecretsPanel.js +1 -1
  147. package/dist/session/SessionHeader.d.ts +18 -6
  148. package/dist/session/SessionHeader.js +67 -12
  149. package/dist/session/SessionPlaceMenu.d.ts +35 -0
  150. package/dist/session/SessionPlaceMenu.js +299 -0
  151. package/dist/session/SessionShell.js +1 -1
  152. package/dist/session/TurnDetailsDialog.js +1 -1
  153. package/dist/session/headless/index.d.ts +2 -1
  154. package/dist/session/headless/index.js +2 -1
  155. package/dist/session/headless/labels.d.ts +73 -0
  156. package/dist/session/headless/labels.js +73 -0
  157. package/dist/session/headless/place.d.ts +49 -0
  158. package/dist/session/headless/place.js +57 -0
  159. package/dist/session/index.d.ts +2 -1
  160. package/dist/session/index.js +2 -1
  161. package/dist/settings/ConversationPresetsCard.js +1 -1
  162. package/dist/settings/SettingCard.js +2 -2
  163. package/dist/settings/SettingsRowsPage.js +1 -1
  164. package/dist/settings/headless/fixture-sections.js +7 -0
  165. package/dist/settings/headless/labels.d.ts +1 -1
  166. package/dist/settings/headless/labels.js +1 -1
  167. package/dist/settings/headless/layout.d.ts +4 -4
  168. package/dist/settings/headless/layout.js +1 -1
  169. package/dist/settings/headless/search.d.ts +2 -2
  170. package/dist/settings/headless/sections-host.d.ts +20 -2
  171. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
  172. package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
  173. package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
  174. package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
  175. package/dist/settings/sections/environments/labels.d.ts +15 -0
  176. package/dist/settings/sections/environments/labels.js +18 -3
  177. package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
  178. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  179. package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
  180. package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
  181. package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
  182. package/dist/settings/sections/keybindings/labels.d.ts +2 -0
  183. package/dist/settings/sections/keybindings/labels.js +2 -0
  184. package/dist/settings/sections/keybindings/rows.js +8 -0
  185. package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
  186. package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
  187. package/dist/settings/sections/skills/SkillGroups.js +1 -1
  188. package/dist/settings/server-app.d.ts +4 -2
  189. package/dist/settings/server-app.js +7 -3
  190. package/dist/settings/testing/sections.contract.d.ts +7 -1
  191. package/dist/settings/testing/sections.contract.js +37 -0
  192. package/dist/styles.css +212 -19
  193. package/dist/terminal/TerminalDrawer.js +3 -1
  194. package/dist/workspace/SidePanel.js +3 -1
  195. package/package.json +2 -2
  196. package/src/styles/base.css +13 -0
  197. package/src/styles/chat.css +30 -0
  198. package/src/styles/components.css +0 -10
  199. package/src/styles/files.css +5 -0
  200. package/src/styles/sidebar.css +29 -7
  201. package/src/styles/terminal.css +6 -0
  202. package/src/styles/tokens.css +5 -0
  203. package/src/styles/transcript.css +107 -0
  204. package/src/styles/workspace.css +6 -0
  205. package/dist/dist/index-QcFzZlao.d.ts +0 -1
  206. package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
  207. /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
@@ -0,0 +1,297 @@
1
+ import { toast } from "../app/toast.js";
2
+ import { useOptionalConfirm } from "../app/useConfirm.js";
3
+ import { StatusOrb } from "../chat/DaemonOrb.js";
4
+ import { relativeTime } from "../chat/headless/session-list.js";
5
+ import { useChatLabels } from "../chat/useChatLabels.js";
6
+ import { buttonClass } from "../components/button.js";
7
+ import { CopyValue } from "../components/CopyValue.js";
8
+ import { FormSection, MetaChip } from "../components/Form.js";
9
+ import { IconButton } from "../components/IconButton.js";
10
+ import { Notice } from "../components/Notice.js";
11
+ import { errorMessage } from "../components/report-error.js";
12
+ import { Segmented } from "../components/Segmented.js";
13
+ import { useTooltip } from "../components/Tooltip.js";
14
+ import { useGitLabels } from "./GitProvider.js";
15
+ import { sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes } from "./headless/sandboxes.js";
16
+ import { memo, useCallback, useEffect, useMemo, useState } from "react";
17
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
18
+ // src/git/SandboxManager.tsx
19
+ /** A fact's badge: the sidebar rows' (`RowChips`), so a sandbox's facts read like a session's. */
20
+ const BADGE = "zg-row-badge inline-flex items-center gap-1 h-[18px] px-1.5 rounded-zg-sm text-zg-meta leading-zg-meta whitespace-nowrap";
21
+ const LOADING = { loading: true };
22
+ const ALL = "";
23
+ const SandboxRow = memo(({ entry, source, onChanged, onOpenSession }) => {
24
+ const labels = useGitLabels();
25
+ const chatLabels = useChatLabels();
26
+ const confirm = useOptionalConfirm();
27
+ const [busy, setBusy] = useState(false);
28
+ const { session, provider, readAt } = entry;
29
+ const kind = provider.kind;
30
+ const replacedTip = useTooltip(session && !session.current ? labels.sandboxReplacedHint(session.title) : null);
31
+ const linked = session?.current === true;
32
+ const stateWord = entry.state === "other" && entry.providerState ? entry.providerState : labels.sandboxStates[entry.state];
33
+ const age = entry.createdAt !== void 0 && readAt ? relativeTime(entry.createdAt, readAt, chatLabels) : void 0;
34
+ const act = (run, failed) => {
35
+ setBusy(true);
36
+ run().catch((err) => toast.error(failed(errorMessage(err)))).finally(() => {
37
+ setBusy(false);
38
+ onChanged(kind);
39
+ });
40
+ };
41
+ const pause = source.pause;
42
+ const remove = source.remove;
43
+ return /* @__PURE__ */ jsxs("div", {
44
+ className: "group zg-press-subtle relative flex items-center gap-3 px-3 py-2.5 rounded-zg-sm transition-colors hover:before:bg-[var(--zg-row-hover)]",
45
+ "data-testid": "sandbox-row",
46
+ "data-sandbox": entry.id,
47
+ "data-kind": kind,
48
+ children: [
49
+ /* @__PURE__ */ jsx(StatusOrb, {
50
+ state: entry.state === "other" ? "connecting" : "idle",
51
+ shape: "cube",
52
+ size: 12,
53
+ className: entry.state === "paused" ? "opacity-50 shrink-0" : "shrink-0"
54
+ }),
55
+ /* @__PURE__ */ jsxs("div", {
56
+ className: "flex-1 min-w-0",
57
+ children: [/* @__PURE__ */ jsxs("div", {
58
+ className: "flex items-center gap-1.5 min-w-0",
59
+ children: [
60
+ session ? onOpenSession ? /* @__PURE__ */ jsx("button", {
61
+ type: "button",
62
+ "aria-label": labels.sandboxOpenSession(session.title),
63
+ className: `${buttonClass({
64
+ variant: "ghost",
65
+ size: "xs",
66
+ flush: "start"
67
+ })} !text-zg-ui !text-[var(--zg-text)] min-w-0 max-w-full`,
68
+ onClick: () => onOpenSession(session.id),
69
+ children: /* @__PURE__ */ jsx("span", {
70
+ className: "truncate",
71
+ children: session.title
72
+ })
73
+ }) : /* @__PURE__ */ jsx("span", {
74
+ className: "text-zg-ui text-[var(--zg-text)] truncate",
75
+ children: session.title
76
+ }) : /* @__PURE__ */ jsx("span", {
77
+ className: "text-zg-ui text-[var(--zg-text-muted)] truncate",
78
+ children: labels.sandboxUnlinked
79
+ }),
80
+ /* @__PURE__ */ jsx(MetaChip, {
81
+ tone: entry.state === "running" ? "success" : entry.state === "other" ? "warn" : "muted",
82
+ className: "ml-0.5",
83
+ children: stateWord
84
+ }),
85
+ session && !session.current && /* @__PURE__ */ jsxs("span", {
86
+ ...replacedTip.anchorProps,
87
+ className: "inline-flex",
88
+ children: [/* @__PURE__ */ jsx("span", {
89
+ className: BADGE,
90
+ children: labels.sandboxReplaced
91
+ }), replacedTip.tip]
92
+ })
93
+ ]
94
+ }), /* @__PURE__ */ jsxs("div", {
95
+ className: "flex flex-wrap items-center gap-1 min-w-0 mt-1",
96
+ children: [
97
+ /* @__PURE__ */ jsxs("span", {
98
+ className: `${BADGE} !text-[var(--zg-text)]`,
99
+ children: [provider.icon && /* @__PURE__ */ jsx("span", {
100
+ "aria-hidden": true,
101
+ className: `${provider.icon} shrink-0`
102
+ }), provider.label]
103
+ }),
104
+ sandboxSpecs(entry, labels).map((fact) => /* @__PURE__ */ jsx("span", {
105
+ className: `${BADGE} font-mono`,
106
+ children: fact
107
+ }, fact)),
108
+ age && /* @__PURE__ */ jsx("span", {
109
+ className: `${BADGE} font-mono`,
110
+ children: age
111
+ }),
112
+ /* @__PURE__ */ jsx(CopyValue, {
113
+ text: entry.id,
114
+ label: labels.sandboxCopyId,
115
+ copiedLabel: labels.sandboxCopied,
116
+ glyph: "always",
117
+ className: `${BADGE} shrink min-w-0`
118
+ })
119
+ ]
120
+ })]
121
+ }),
122
+ /* @__PURE__ */ jsx("div", {
123
+ className: "zg-reveal group-focus-within:opacity-100 flex items-center gap-1 shrink-0",
124
+ "data-pinned": busy ? "" : void 0,
125
+ children: busy ? /* @__PURE__ */ jsx("span", {
126
+ "aria-hidden": true,
127
+ className: "i-ph-circle-notch animate-spin text-zg-label text-[var(--zg-text-muted)] mx-2"
128
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [pause && entry.state === "running" && /* @__PURE__ */ jsx("button", {
129
+ type: "button",
130
+ className: buttonClass({
131
+ variant: "ghost",
132
+ size: "xs"
133
+ }),
134
+ onClick: () => act(() => pause(kind, entry.id), labels.sandboxPauseFailed),
135
+ children: labels.sandboxPause
136
+ }), remove && confirm && /* @__PURE__ */ jsx("button", {
137
+ type: "button",
138
+ className: buttonClass({
139
+ variant: "danger",
140
+ size: "xs"
141
+ }),
142
+ onClick: () => void confirm({
143
+ title: labels.sandboxDeleteTitle,
144
+ message: linked ? labels.sandboxDeleteLinked : labels.sandboxDeleteUnlinked,
145
+ confirmLabel: labels.sandboxDeleteConfirm,
146
+ destructive: true
147
+ }).then((ok) => ok && act(() => remove(kind, entry.id), labels.sandboxDeleteFailed)),
148
+ children: labels.sandboxDelete
149
+ })] })
150
+ })
151
+ ]
152
+ });
153
+ });
154
+ SandboxRow.displayName = "SandboxRow";
155
+ /**
156
+ * Renders the kinds' sandboxes.
157
+ *
158
+ * @param props - {@link SandboxManagerProps}.
159
+ */
160
+ function SandboxManager({ kinds, source, onOpenSession, className = "", style }) {
161
+ const labels = useGitLabels();
162
+ const [filter, setFilter] = useState("all");
163
+ const [providerFilter, setProviderFilter] = useState(ALL);
164
+ const [byKind, setByKind] = useState({});
165
+ const list = source.list;
166
+ const load = useCallback((kind) => {
167
+ setByKind((prev) => ({
168
+ ...prev,
169
+ [kind]: {
170
+ ...prev[kind] ?? {},
171
+ loading: true
172
+ }
173
+ }));
174
+ list(kind).then((items) => setByKind((prev) => ({
175
+ ...prev,
176
+ [kind]: {
177
+ loading: false,
178
+ items,
179
+ readAt: Date.now()
180
+ }
181
+ }))).catch((err) => setByKind((prev) => ({
182
+ ...prev,
183
+ [kind]: {
184
+ ...prev[kind],
185
+ loading: false,
186
+ error: errorMessage(err)
187
+ }
188
+ })));
189
+ }, [list]);
190
+ const readable = useMemo(() => kinds.filter((k) => !k.unavailable), [kinds]);
191
+ const kindIds = readable.map((k) => k.kind).join("\n");
192
+ useEffect(() => {
193
+ for (const kind of kindIds.split("\n").filter(Boolean)) load(kind);
194
+ }, [kindIds, load]);
195
+ const entries = useMemo(() => sortSandboxes(readable.flatMap((provider) => {
196
+ const state = byKind[provider.kind];
197
+ return (state?.items ?? []).map((sandbox) => ({
198
+ ...sandbox,
199
+ provider,
200
+ readAt: state?.readAt ?? 0
201
+ }));
202
+ })), [readable, byKind]);
203
+ const ofProvider = providerFilter === ALL ? entries : entries.filter((e) => e.provider.kind === providerFilter);
204
+ const counts = sandboxCounts(ofProvider);
205
+ const shown = ofProvider.filter((e) => sandboxMatches(e, filter));
206
+ const loading = readable.some((k) => (byKind[k.kind] ?? LOADING).loading);
207
+ const firstRead = readable.length > 0 && readable.every((k) => !byKind[k.kind]?.items && !byKind[k.kind]?.error);
208
+ return /* @__PURE__ */ jsxs("div", {
209
+ className: `space-y-4 ${className}`.trimEnd(),
210
+ style,
211
+ "data-testid": "sandbox-manager",
212
+ children: [
213
+ /* @__PURE__ */ jsxs("div", {
214
+ className: "flex flex-wrap items-center gap-2 px-1",
215
+ children: [
216
+ /* @__PURE__ */ jsx(Segmented, {
217
+ value: filter,
218
+ onChange: setFilter,
219
+ ariaLabel: labels.sandboxesFilter,
220
+ options: [
221
+ "all",
222
+ "linked",
223
+ "unlinked"
224
+ ].map((value) => ({
225
+ value,
226
+ label: /* @__PURE__ */ jsxs("span", {
227
+ className: "inline-flex items-center gap-1.5",
228
+ children: [{
229
+ all: labels.sandboxesFilterAll,
230
+ linked: labels.sandboxesFilterLinked,
231
+ unlinked: labels.sandboxesFilterUnlinked
232
+ }[value], /* @__PURE__ */ jsx("span", {
233
+ className: "zg-meta",
234
+ children: counts[value]
235
+ })]
236
+ })
237
+ }))
238
+ }),
239
+ readable.length > 1 && /* @__PURE__ */ jsx(Segmented, {
240
+ value: providerFilter,
241
+ onChange: setProviderFilter,
242
+ ariaLabel: labels.sandboxesProvider,
243
+ options: [{
244
+ value: ALL,
245
+ label: labels.sandboxesProviderAll
246
+ }, ...readable.map((k) => ({
247
+ value: k.kind,
248
+ label: k.label,
249
+ ...k.icon ? { icon: k.icon } : {}
250
+ }))]
251
+ }),
252
+ /* @__PURE__ */ jsx(IconButton, {
253
+ className: "ml-auto",
254
+ icon: /* @__PURE__ */ jsx("span", {
255
+ "aria-hidden": true,
256
+ className: `i-ph-arrow-clockwise ${loading ? "animate-spin" : ""}`
257
+ }),
258
+ label: labels.sandboxesRefresh,
259
+ disabled: loading || readable.length === 0,
260
+ onClick: () => readable.forEach((k) => load(k.kind))
261
+ })
262
+ ]
263
+ }),
264
+ kinds.map((k) => k.unavailable ? /* @__PURE__ */ jsx(Notice, {
265
+ tone: "info",
266
+ compact: true,
267
+ children: labels.sandboxesUnavailable(k.label, k.unavailable)
268
+ }, k.kind) : byKind[k.kind]?.error ? /* @__PURE__ */ jsx(Notice, {
269
+ tone: "error",
270
+ compact: true,
271
+ detail: byKind[k.kind].error,
272
+ children: labels.sandboxesListFailed(k.label)
273
+ }, k.kind) : null),
274
+ readable.length > 0 && /* @__PURE__ */ jsxs(FormSection, {
275
+ "data-testid": "sandbox-list",
276
+ trailing: void 0,
277
+ children: [
278
+ firstRead && /* @__PURE__ */ jsx("p", {
279
+ className: "m-0 px-3 py-2.5 text-xs text-[var(--zg-text-muted)]",
280
+ children: labels.sandboxesLoading
281
+ }),
282
+ !firstRead && shown.length === 0 && /* @__PURE__ */ jsx("p", {
283
+ className: "m-0 px-3 py-2.5 text-xs text-[var(--zg-text-muted)]",
284
+ children: ofProvider.length === 0 ? labels.sandboxesEmpty : labels.sandboxesEmptyFiltered
285
+ }),
286
+ shown.map((entry) => /* @__PURE__ */ jsx(SandboxRow, {
287
+ entry,
288
+ source,
289
+ onChanged: load,
290
+ onOpenSession
291
+ }, `${entry.provider.kind}:${entry.id}`))
292
+ ]
293
+ })
294
+ ]
295
+ });
296
+ }
297
+ export { SandboxManager };
@@ -168,7 +168,7 @@ function SyncChip({ status, cwd, sessionId, running, onSynced, confirm = true, o
168
168
  className: "font-medium",
169
169
  children: action === "publish" ? labels.gitPublishBranch(status.branch) : labels.gitSyncWith(status.upstream)
170
170
  }), /* @__PURE__ */ jsxs("span", {
171
- className: "text-[var(--zg-text-muted)] zg-pretty",
171
+ className: "text-[var(--zg-text-muted)]",
172
172
  children: [syncSummary(status, labels), status.changes.files > 0 ? labels.gitSyncKeepsChanges : ""]
173
173
  })]
174
174
  }), /* @__PURE__ */ jsxs("div", {
@@ -3,6 +3,7 @@ import { GitActionResult, GitBranch, GitBranchPullRequest, GitCheckoutResult, Gi
3
3
  import { DEFAULT_GIT_LABELS, GitLabels, gitErrorText } from "./labels.js";
4
4
  import { MoveChoice, MoveSessionSubject, leavesWorktree, moveChoices, moveListingCwd, moveSubject } from "./move.js";
5
5
  import { DraftRemoteClone, resolveRemoteClone } from "./remote-clone.js";
6
+ import { SandboxFilter, SandboxesSource, sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes } from "./sandboxes.js";
6
7
  import { SWITCHER_SECTIONS, SwitcherCache, SwitcherEntry, SwitcherSection, SwitcherSectionId, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, prMatches, readPullRequests, switcherCacheOf, switcherCreates, switcherKey, switcherSections } from "./switcher.js";
7
8
  import { GitSyncAction, syncAction, syncSummary, syncTooltip } from "./sync.js";
8
- export { DEFAULT_GIT_LABELS, DraftEnvironment, DraftRemoteClone, EnvironmentMachine, GitActionResult, GitBranch, GitBranchPullRequest, GitCheckoutResult, GitCheckoutTarget, GitClone, GitCloneProgress, GitCloneResult, GitCreateFolderQuery, GitCreateFolderResult, GitEnvironmentQuery, GitFolderAllows, GitFolderEntry, GitFolderListing, GitFolderQuery, GitFolderResult, GitFolderSearchQuery, GitFolderSearchResult, GitHost, GitHostError, GitLabels, GitMoveResult, GitMoveTarget, GitPullRequest, GitPullRequestList, GitPullRequestQuery, GitRepoInfo, GitRepoSpec, GitStatus, GitSyncAction, GitSyncResult, MoveChoice, MoveSessionSubject, SWITCHER_SECTIONS, SwitcherCache, SwitcherEntry, SwitcherSection, SwitcherSectionId, WithMachinesOptions, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, environmentBaseKind, environmentKindIcon, environmentMachineName, folderName, gitErrorText, leavesWorktree, machineEnvironmentKind, machinesOf, moveChoices, moveListingCwd, moveSubject, newChatPlaceKind, prMatches, readPullRequests, resolveDraftDescriptor, resolveDraftEnvironment, resolveRemoteClone, switcherCacheOf, switcherCreates, switcherKey, switcherSections, syncAction, syncSummary, syncTooltip, withMachines };
9
+ export { DEFAULT_GIT_LABELS, DraftEnvironment, DraftRemoteClone, EnvironmentMachine, GitActionResult, GitBranch, GitBranchPullRequest, GitCheckoutResult, GitCheckoutTarget, GitClone, GitCloneProgress, GitCloneResult, GitCreateFolderQuery, GitCreateFolderResult, GitEnvironmentQuery, GitFolderAllows, GitFolderEntry, GitFolderListing, GitFolderQuery, GitFolderResult, GitFolderSearchQuery, GitFolderSearchResult, GitHost, GitHostError, GitLabels, GitMoveResult, GitMoveTarget, GitPullRequest, GitPullRequestList, GitPullRequestQuery, GitRepoInfo, GitRepoSpec, GitStatus, GitSyncAction, GitSyncResult, MoveChoice, MoveSessionSubject, SWITCHER_SECTIONS, SandboxFilter, SandboxesSource, SwitcherCache, SwitcherEntry, SwitcherSection, SwitcherSectionId, WithMachinesOptions, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, environmentBaseKind, environmentKindIcon, environmentMachineName, folderName, gitErrorText, leavesWorktree, machineEnvironmentKind, machinesOf, moveChoices, moveListingCwd, moveSubject, newChatPlaceKind, prMatches, readPullRequests, resolveDraftDescriptor, resolveDraftEnvironment, resolveRemoteClone, sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes, switcherCacheOf, switcherCreates, switcherKey, switcherSections, syncAction, syncSummary, syncTooltip, withMachines };
@@ -2,6 +2,7 @@ import { environmentBaseKind, environmentKindIcon, environmentMachineName, folde
2
2
  import { DEFAULT_GIT_LABELS, gitErrorText } from "./labels.js";
3
3
  import { leavesWorktree, moveChoices, moveListingCwd, moveSubject } from "./move.js";
4
4
  import { resolveRemoteClone } from "./remote-clone.js";
5
+ import { sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes } from "./sandboxes.js";
5
6
  import { SWITCHER_SECTIONS, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, prMatches, readPullRequests, switcherCacheOf, switcherCreates, switcherKey, switcherSections } from "./switcher.js";
6
7
  import { syncAction, syncSummary, syncTooltip } from "./sync.js";
7
- export { DEFAULT_GIT_LABELS, SWITCHER_SECTIONS, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, environmentBaseKind, environmentKindIcon, environmentMachineName, folderName, gitErrorText, leavesWorktree, machineEnvironmentKind, machinesOf, moveChoices, moveListingCwd, moveSubject, newChatPlaceKind, prMatches, readPullRequests, resolveDraftDescriptor, resolveDraftEnvironment, resolveRemoteClone, switcherCacheOf, switcherCreates, switcherKey, switcherSections, syncAction, syncSummary, syncTooltip, withMachines };
8
+ export { DEFAULT_GIT_LABELS, SWITCHER_SECTIONS, ageIsDuration, clockTime, compactCount, countInLabel, createSwitcherCache, environmentBaseKind, environmentKindIcon, environmentMachineName, folderName, gitErrorText, leavesWorktree, machineEnvironmentKind, machinesOf, moveChoices, moveListingCwd, moveSubject, newChatPlaceKind, prMatches, readPullRequests, resolveDraftDescriptor, resolveDraftEnvironment, resolveRemoteClone, sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes, switcherCacheOf, switcherCreates, switcherKey, switcherSections, syncAction, syncSummary, syncTooltip, withMachines };
@@ -200,6 +200,35 @@ export declare const DEFAULT_GIT_LABELS: {
200
200
  gitFolderListFailed: string;
201
201
  gitFolderSearchFailed: string;
202
202
  gitFolderCreateFailed: string;
203
+ sandboxesFilter: string;
204
+ sandboxesFilterAll: string;
205
+ sandboxesFilterLinked: string;
206
+ sandboxesFilterUnlinked: string;
207
+ sandboxesRefresh: string;
208
+ sandboxesLoading: string;
209
+ sandboxesEmpty: string;
210
+ sandboxesEmptyFiltered: string;
211
+ sandboxesListFailed: (provider: string) => string;
212
+ sandboxesUnavailable: (provider: string, reason: string) => string;
213
+ sandboxesProvider: string;
214
+ sandboxesProviderAll: string;
215
+ sandboxUnlinked: string;
216
+ sandboxReplaced: string;
217
+ sandboxReplacedHint: (title: string) => string;
218
+ sandboxOpenSession: (title: string) => string;
219
+ sandboxStates: Record<"running" | "paused" | "other", string>;
220
+ sandboxCpu: (count: number) => string;
221
+ sandboxMemory: (mib: number) => string;
222
+ sandboxCopyId: string;
223
+ sandboxCopied: string;
224
+ sandboxPause: string;
225
+ sandboxDelete: string;
226
+ sandboxDeleteTitle: string;
227
+ sandboxDeleteLinked: string;
228
+ sandboxDeleteUnlinked: string;
229
+ sandboxDeleteConfirm: string;
230
+ sandboxPauseFailed: (message: string) => string;
231
+ sandboxDeleteFailed: (message: string) => string;
203
232
  };
204
233
  /** The shape of the git label dictionary. */
205
234
  export type GitLabels = typeof DEFAULT_GIT_LABELS;
@@ -195,7 +195,40 @@ const DEFAULT_GIT_LABELS = {
195
195
  gitFolderCancel: "Cancel",
196
196
  gitFolderListFailed: "Couldn't read this folder.",
197
197
  gitFolderSearchFailed: "Couldn't search the folders.",
198
- gitFolderCreateFailed: "Couldn't create the folder."
198
+ gitFolderCreateFailed: "Couldn't create the folder.",
199
+ sandboxesFilter: "Show sandboxes",
200
+ sandboxesFilterAll: "All",
201
+ sandboxesFilterLinked: "In a session",
202
+ sandboxesFilterUnlinked: "Not linked",
203
+ sandboxesRefresh: "Refresh",
204
+ sandboxesLoading: "Reading sandboxes…",
205
+ sandboxesEmpty: "No sandboxes in this account",
206
+ sandboxesEmptyFiltered: "None here",
207
+ sandboxesListFailed: (provider) => `Couldn't list the ${provider} sandboxes`,
208
+ sandboxesUnavailable: (provider, reason) => `${provider}: ${reason}`,
209
+ sandboxesProvider: "Show provider",
210
+ sandboxesProviderAll: "All providers",
211
+ sandboxUnlinked: "Not linked to a session",
212
+ sandboxReplaced: "Replaced",
213
+ sandboxReplacedHint: (title) => `Replaced by "Set up again" in ${title}`,
214
+ sandboxOpenSession: (title) => `Open ${title}`,
215
+ sandboxStates: {
216
+ running: "Running",
217
+ paused: "Paused",
218
+ other: "Unknown"
219
+ },
220
+ sandboxCpu: (count) => `${count} CPU`,
221
+ sandboxMemory: (mib) => mib >= 1024 ? `${Math.round(mib / 1024 * 10) / 10} GiB` : `${mib} MiB`,
222
+ sandboxCopyId: "Copy sandbox id",
223
+ sandboxCopied: "Copied",
224
+ sandboxPause: "Pause",
225
+ sandboxDelete: "Delete",
226
+ sandboxDeleteTitle: "Delete this sandbox?",
227
+ sandboxDeleteLinked: "Work not pushed or saved at its last pause is lost. Its session stays, and its next prompt sets up a new sandbox.",
228
+ sandboxDeleteUnlinked: "It and what it holds are deleted at the provider.",
229
+ sandboxDeleteConfirm: "Delete",
230
+ sandboxPauseFailed: (message) => `Couldn't pause the sandbox: ${message}`,
231
+ sandboxDeleteFailed: (message) => `Couldn't delete the sandbox: ${message}`
199
232
  };
200
233
  /**
201
234
  * A host error in words: the host's own message, or {@link DEFAULT_GIT_LABELS.gitUnavailable}.
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The model behind `SandboxManager`: a kind's sandboxes at its provider (`EnvironmentSandboxSummary`), where
3
+ * they come from, and how a list of them filters, sorts and reads.
4
+ */
5
+ import { GitLabels } from "./labels.js";
6
+ import { EnvironmentSandboxSummary } from "zidane/chat";
7
+ /** Where the sandboxes come from, and what can be done to one. A missing action hides its button. */
8
+ export interface SandboxesSource {
9
+ /** A kind's sandboxes, each with the session it belongs to. Rejects with the provider's reason. */
10
+ list: (kind: string) => Promise<readonly EnvironmentSandboxSummary[]>;
11
+ /** Pauses one. */
12
+ pause?: (kind: string, sandboxId: string) => Promise<void>;
13
+ /** Deletes one (a session's: the session stays, and sets up a new one on its next prompt). */
14
+ remove?: (kind: string, sandboxId: string) => Promise<void>;
15
+ }
16
+ /** Which sandboxes show: all, the ones a session holds, or the ones none does (left behind). */
17
+ export type SandboxFilter = 'all' | 'linked' | 'unlinked';
18
+ /**
19
+ * Whether `sandbox` shows under `filter`. One "Set up again" replaced counts as not linked: no session runs in it.
20
+ *
21
+ * @param sandbox - The sandbox.
22
+ * @param filter - The filter.
23
+ */
24
+ export declare function sandboxMatches(sandbox: EnvironmentSandboxSummary, filter: SandboxFilter): boolean;
25
+ /**
26
+ * How many of `sandboxes` show under each filter.
27
+ *
28
+ * @param sandboxes - The sandboxes.
29
+ */
30
+ export declare function sandboxCounts(sandboxes: readonly EnvironmentSandboxSummary[]): Record<SandboxFilter, number>;
31
+ /**
32
+ * Running first (they cost), then paused, then the rest; a session's before a stray one; newest first.
33
+ *
34
+ * @param sandboxes - The sandboxes.
35
+ */
36
+ export declare function sortSandboxes<S extends EnvironmentSandboxSummary>(sandboxes: readonly S[]): S[];
37
+ /**
38
+ * Its facts as machine values, in reading order: what it was made from, CPUs, memory, region.
39
+ *
40
+ * @param sandbox - The sandbox.
41
+ * @param labels - The git labels.
42
+ */
43
+ export declare function sandboxSpecs(sandbox: EnvironmentSandboxSummary, labels: Pick<GitLabels, 'sandboxCpu' | 'sandboxMemory'>): string[];
@@ -0,0 +1,52 @@
1
+ // src/git/headless/sandboxes.ts
2
+ /**
3
+ * Whether `sandbox` shows under `filter`. One "Set up again" replaced counts as not linked: no session runs in it.
4
+ *
5
+ * @param sandbox - The sandbox.
6
+ * @param filter - The filter.
7
+ */
8
+ function sandboxMatches(sandbox, filter) {
9
+ const linked = sandbox.session?.current === true;
10
+ return filter === "all" || filter === "linked" === linked;
11
+ }
12
+ /**
13
+ * How many of `sandboxes` show under each filter.
14
+ *
15
+ * @param sandboxes - The sandboxes.
16
+ */
17
+ function sandboxCounts(sandboxes) {
18
+ const linked = sandboxes.filter((s) => sandboxMatches(s, "linked")).length;
19
+ return {
20
+ all: sandboxes.length,
21
+ linked,
22
+ unlinked: sandboxes.length - linked
23
+ };
24
+ }
25
+ const STATE_ORDER = {
26
+ running: 0,
27
+ paused: 1,
28
+ other: 2
29
+ };
30
+ /**
31
+ * Running first (they cost), then paused, then the rest; a session's before a stray one; newest first.
32
+ *
33
+ * @param sandboxes - The sandboxes.
34
+ */
35
+ function sortSandboxes(sandboxes) {
36
+ return [...sandboxes].sort((a, b) => STATE_ORDER[a.state] - STATE_ORDER[b.state] || Number(b.session?.current === true) - Number(a.session?.current === true) || (b.createdAt ?? 0) - (a.createdAt ?? 0) || a.id.localeCompare(b.id));
37
+ }
38
+ /**
39
+ * Its facts as machine values, in reading order: what it was made from, CPUs, memory, region.
40
+ *
41
+ * @param sandbox - The sandbox.
42
+ * @param labels - The git labels.
43
+ */
44
+ function sandboxSpecs(sandbox, labels) {
45
+ return [
46
+ ...sandbox.template ? [sandbox.template] : [],
47
+ ...sandbox.cpu !== void 0 ? [labels.sandboxCpu(sandbox.cpu)] : [],
48
+ ...sandbox.memoryMB !== void 0 ? [labels.sandboxMemory(sandbox.memoryMB)] : [],
49
+ ...sandbox.region ? [sandbox.region] : []
50
+ ];
51
+ }
52
+ export { sandboxCounts, sandboxMatches, sandboxSpecs, sortSandboxes };
@@ -4,9 +4,10 @@ import { GitProvider, GitProviderProps, useGitHost, useGitLabels } from "./GitPr
4
4
  import { ImportRepoDialog, ImportRepoDialogProps, ImportRepoTarget, useImportRepo } from "./ImportRepoDialog.js";
5
5
  import { MoveSessionDialog, MoveSessionDialogProps, useMoveSession } from "./MoveSessionDialog.js";
6
6
  import { RemoteFolderBrowser, RemoteFolderBrowserProps, RemoteFolderPicker, RemoteFolderPickerProps } from "./RemoteFolderPicker.js";
7
+ import { SandboxManager, SandboxManagerKind, SandboxManagerProps } from "./SandboxManager.js";
7
8
  import { GIT_BAR_ITEM, SyncChip, SyncChipProps } from "./SyncChip.js";
8
9
  import { useEnvironmentChoices } from "./useEnvironmentChoices.js";
9
10
  import { GitBarState, useGitBar } from "./useGitBar.js";
10
11
  import { StartFromPanelDraft, StartFromPanelResult, useStartFromPanel } from "./useStartFromPanel.js";
11
12
  import { WhereMenu, WhereMenuProps, WherePicker, WherePickerProps } from "./WherePicker.js";
12
- export { BranchMenu, BranchMenuProps, BranchMenuWorktree, GIT_BAR_ITEM, GitBar, GitBarBranchMenuProps, GitBarProps, GitBarState, GitProvider, GitProviderProps, ImportRepoDialog, ImportRepoDialogProps, ImportRepoTarget, MoveSessionDialog, MoveSessionDialogProps, RemoteFolderBrowser, RemoteFolderBrowserProps, RemoteFolderPicker, RemoteFolderPickerProps, StartFromPanelDraft, StartFromPanelResult, SyncChip, SyncChipProps, WhereMenu, WhereMenuProps, WherePicker, WherePickerProps, useEnvironmentChoices, useGitBar, useGitHost, useGitLabels, useImportRepo, useMoveSession, useStartFromPanel };
13
+ export { BranchMenu, BranchMenuProps, BranchMenuWorktree, GIT_BAR_ITEM, GitBar, GitBarBranchMenuProps, GitBarProps, GitBarState, GitProvider, GitProviderProps, ImportRepoDialog, ImportRepoDialogProps, ImportRepoTarget, MoveSessionDialog, MoveSessionDialogProps, RemoteFolderBrowser, RemoteFolderBrowserProps, RemoteFolderPicker, RemoteFolderPickerProps, SandboxManager, SandboxManagerKind, SandboxManagerProps, StartFromPanelDraft, StartFromPanelResult, SyncChip, SyncChipProps, WhereMenu, WhereMenuProps, WherePicker, WherePickerProps, useEnvironmentChoices, useGitBar, useGitHost, useGitLabels, useImportRepo, useMoveSession, useStartFromPanel };
package/dist/git/index.js CHANGED
@@ -4,9 +4,10 @@ import { GitProvider, useGitHost, useGitLabels } from "./GitProvider.js";
4
4
  import { ImportRepoDialog, useImportRepo } from "./ImportRepoDialog.js";
5
5
  import { MoveSessionDialog, useMoveSession } from "./MoveSessionDialog.js";
6
6
  import { RemoteFolderBrowser, RemoteFolderPicker } from "./RemoteFolderPicker.js";
7
+ import { SandboxManager } from "./SandboxManager.js";
7
8
  import { GIT_BAR_ITEM, SyncChip } from "./SyncChip.js";
8
9
  import { useEnvironmentChoices } from "./useEnvironmentChoices.js";
9
10
  import { useGitBar } from "./useGitBar.js";
10
11
  import { useStartFromPanel } from "./useStartFromPanel.js";
11
12
  import { WhereMenu, WherePicker } from "./WherePicker.js";
12
- export { BranchMenu, GIT_BAR_ITEM, GitBar, GitProvider, ImportRepoDialog, MoveSessionDialog, RemoteFolderBrowser, RemoteFolderPicker, SyncChip, WhereMenu, WherePicker, useEnvironmentChoices, useGitBar, useGitHost, useGitLabels, useImportRepo, useMoveSession, useStartFromPanel };
13
+ export { BranchMenu, GIT_BAR_ITEM, GitBar, GitProvider, ImportRepoDialog, MoveSessionDialog, RemoteFolderBrowser, RemoteFolderPicker, SandboxManager, SyncChip, WhereMenu, WherePicker, useEnvironmentChoices, useGitBar, useGitHost, useGitLabels, useImportRepo, useMoveSession, useStartFromPanel };
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ import { CodeFrame, CodeFrameProps, CodeWrapProvider, CodeWrapProviderProps } fr
31
31
  import { Compare, CompareProps, CompareRow, CompareVerdict, compareBars } from "./components/Compare.js";
32
32
  import { CONFIRM_TITLE_ID, ConfirmDialog, ConfirmDialogProps, ConfirmOptions } from "./components/ConfirmDialog.js";
33
33
  import { CopyButton, CopyButtonProps } from "./components/CopyButton.js";
34
+ import { CopyValue, CopyValueProps } from "./components/CopyValue.js";
34
35
  import { EditableTitle, EditableTitleProps } from "./components/EditableTitle.js";
35
36
  import { ErrorBoundary, ErrorBoundaryProps, ErrorDetails, ErrorDetailsProps, ErrorFallback, ErrorFallbackFrameProps, ErrorFallbackProps } from "./components/ErrorBoundary.js";
36
37
  import { FloatingSurface, FloatingSurfaceProps } from "./components/floating/FloatingSurface.js";
@@ -116,4 +117,4 @@ import { IconCollection, RuntimeIconsOptions, watchRuntimeIcons } from "./theme/
116
117
  import { themeCssVars, themeStylesheet } from "./theme/stylesheet.js";
117
118
  import { BUILTIN_THEMES, DEFAULT_THEME, SyntaxStyles, SyntaxTokenStyle, Theme, ThemeColors, ThemeDiff, ThemeSelect, ThemeSurfaces, resolveTheme } from "./theme/themes.js";
118
119
  import { withoutTransitions } from "./theme/without-transitions.js";
119
- export { ACCENT_PRESETS, AccentPreset, Accordion, AccordionItem, AccordionProps, AddressBar, AddressBarProps, Align, Anchor, Appearance, ApplyMotionOptions, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BadgeTone, BrandMark, BrandMarkData, BrandMarkPath, BrandMarkProps, BrandMarkSize, Breadcrumb, BreadcrumbProps, Breakdown, BreakdownPart, BreakdownProps, BreakdownSlice, BrowserSignIn, BrowserSignInProps, BrowserSignInState, ButtonVariant, CONFIRM_TITLE_ID, CONTRAST, Callout, CalloutProps, CalloutTone, CalloutVariant, Checkbox, CheckboxProps, Checklist, ChecklistGroup, ChecklistItem, ChecklistProps, ChecklistStatus, ChipColors, ChipKind, ChoiceCardOption, ChoiceCards, ChoiceCardsProps, CodeFrame, CodeFrameProps, CodeHighlightProvider, CodeHighlightProviderProps, CodeHighlighter, CodeHighlighterOptions, CodePanel, CodePanelProps, CodeWrapProvider, CodeWrapProviderProps, Compare, CompareProps, CompareRow, CompareVerdict, ConfirmDialog, ConfirmDialogProps, ConfirmOptions, CopyButton, CopyButtonProps, CountBadge, CountBadgeProps, CountTone, Crossfade, CrossfadeProps, CssVarMap, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DeltaProps, DeltaTone, DiffColors, DiffCounts, DiffCountsProps, DismissHandlers, DotColors, EditableTitle, EditableTitleProps, EditorEnvironment, EditorEnvironmentProvider, EditorEnvironmentProviderProps, EditorSettings, EmptyState, EmptyStateProps, ErrorBoundary, ErrorBoundaryProps, ErrorDetails, ErrorDetailsProps, ErrorFallback, ErrorFallbackFrameProps, ErrorFallbackProps, ErrorNote, ErrorNoteProps, ErrorReport, ErrorReportOptions, ErrorReportSink, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipLanding, FlipList, FlipListOptions, FlipMode, FlipSnapshot, FlipSnapshotProps, FloatingSurface, FloatingSurfaceProps, FormCard, FormCardProps, FormSection, FormSectionProps, Grow, GrowPresence, GrowProps, HOVER_MOTION, HeldWidth, HeldWidthProps, HighlightRequest, HighlightResponse, Highlighted, HighlightedCode, HighlightedCodeProps, HighlightedProps, HostRow, HostRowProps, HoverCard, HoverCardProps, HoverCardTriggerProps, HowItWorks, HowItWorksProps, HowItWorksStep, INPUT_CLASS, INSTANT, IconButton, IconButtonLook, IconButtonProps, IconButtonRenderProps, IconButtonSize, IconCollection, IconToggle, IconToggleProps, KeyCombo, KeyComboProps, KeyValue, KeyValueItem, KeyValueProps, Keycap, KeycapProps, KeyedStore, LabelOverrides, Labels, LabelsProvider, LabelsProviderProps, LayerOptions, LightboxItem, LoadError, LoadErrorProps, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MatchedTitleProps, MediaNav, type MediaNavProps, Menu, MenuNote, MenuNoteProps, MenuProps, MenuRow, MenuRowProps, MenuRowRenderProps, MenuSection, MenuSectionProps, MenuSeparator, MenuSeparatorProps, MenuSwitch, MenuSwitchProps, Meta, MetaChip, MetaChipProps, MetaProps, MotionLevel, MotionName, MotionPrefs, MotionProvider, MotionProviderProps, NavButton, NavButtonProps, NavRow, NavRowProps, Notice, NoticeProps, NoticeTone, NumberFormats, Oklch, OpLine, OpLineProps, Overlay, OverlayProps, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteEntry, PaletteIcon, PaletteIconProps, PaletteKeys, PaletteList, PaletteListProps, PaletteNotice, PaletteOption, PaletteOptionProps, PalettePanel, PalettePanelProps, PaletteRow, PaletteRowData, PaletteRowProps, PaletteSection, PanelEmpty, PanelEmptyProps, PanelLoading, PanelLoadingProps, PathDisplay, PathDisplayProvider, PathDisplayProviderProps, PathDisplayScope, PathDisplayScopeProps, Placement, Popover, PopoverProps, PopoverState, PopoverTriggerProps, Presence, type Presence$1 as PresenceHandle, type PresenceOptions, PresenceProps, type PresenceState, PreviewWindow, PreviewWindowProps, Progress, ProgressProps, ProgressTone, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, RaisedProps, Rect, ReorderTabState, ReorderTabs, ReorderTabsProps, ResizeDrag, ResizeDragHandleProps, ResizeDragOptions, ResolvedPalette, Restricted, RestrictedProps, Rgb, RollDirection, RollingText, RollingTextProps, RowActionItem, RowActionsMenu, RowActionsMenuProps, RowBadge, RowBadgeProps, RowMenuButton, RowMenuButtonProps, RowText, RowTextProps, RuntimeIconsOptions, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SectionLabelProps, SegmentSpinner, SegmentSpinnerProps, Segmented, SegmentedOption, SegmentedProps, SegmentedRow, SegmentedRowProps, Side, Skeleton, SkeletonProps, SliderRow, SliderRowProps, SmoothHeight, SmoothHeightProps, SmoothWidth, SmoothWidthProps, SphereShading, Stat, StatProps, StatRow, StatRowProps, StatSize, StatTone, StepActions, StepActionsProps, StepFrame, StepFrameProps, StepStatus, Stepper, StepperProps, StepperStep, Steps, StepsItem, StepsProps, SurfaceLadder, SwapIcon, SwapIconProps, Swatch, SwatchPicker, SwatchPickerProps, Switch, SwitchGlyph, SwitchGlyphProps, SwitchProps, SwitchRow, SwitchRowProps, SyntaxStyles, SyntaxTokenStyle, TEXTAREA_CLASS, TabDragBounds, TabPill, TabPillProps, Table, TableCellValue, TableColumn, TableFilterBar, TableProps, TableSort, Tabs, TabsItem, TabsProps, Theme, ThemeColors, ThemeDiff, ThemeSeed, ThemeSelect, ThemeSurfaces, ThemeThumb, ThemeThumbProps, TitleText, TitleTextProps, ToggleCard, ToggleCardProps, ToggleSwitch, ToggleSwitchProps, Tooltip, type TooltipProps, Tray, TrayProps, UseFlipList, UseFlipListOptions, type UseTooltip, type UseTooltipOptions, WaapiTiming, ZidaneMark, ZidaneMarkProps, ZoomableImage, type ZoomableImageHandle, type ZoomableImageProps, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
120
+ export { ACCENT_PRESETS, AccentPreset, Accordion, AccordionItem, AccordionProps, AddressBar, AddressBarProps, Align, Anchor, Appearance, ApplyMotionOptions, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BadgeTone, BrandMark, BrandMarkData, BrandMarkPath, BrandMarkProps, BrandMarkSize, Breadcrumb, BreadcrumbProps, Breakdown, BreakdownPart, BreakdownProps, BreakdownSlice, BrowserSignIn, BrowserSignInProps, BrowserSignInState, ButtonVariant, CONFIRM_TITLE_ID, CONTRAST, Callout, CalloutProps, CalloutTone, CalloutVariant, Checkbox, CheckboxProps, Checklist, ChecklistGroup, ChecklistItem, ChecklistProps, ChecklistStatus, ChipColors, ChipKind, ChoiceCardOption, ChoiceCards, ChoiceCardsProps, CodeFrame, CodeFrameProps, CodeHighlightProvider, CodeHighlightProviderProps, CodeHighlighter, CodeHighlighterOptions, CodePanel, CodePanelProps, CodeWrapProvider, CodeWrapProviderProps, Compare, CompareProps, CompareRow, CompareVerdict, ConfirmDialog, ConfirmDialogProps, ConfirmOptions, CopyButton, CopyButtonProps, CopyValue, CopyValueProps, CountBadge, CountBadgeProps, CountTone, Crossfade, CrossfadeProps, CssVarMap, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DeltaProps, DeltaTone, DiffColors, DiffCounts, DiffCountsProps, DismissHandlers, DotColors, EditableTitle, EditableTitleProps, EditorEnvironment, EditorEnvironmentProvider, EditorEnvironmentProviderProps, EditorSettings, EmptyState, EmptyStateProps, ErrorBoundary, ErrorBoundaryProps, ErrorDetails, ErrorDetailsProps, ErrorFallback, ErrorFallbackFrameProps, ErrorFallbackProps, ErrorNote, ErrorNoteProps, ErrorReport, ErrorReportOptions, ErrorReportSink, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipLanding, FlipList, FlipListOptions, FlipMode, FlipSnapshot, FlipSnapshotProps, FloatingSurface, FloatingSurfaceProps, FormCard, FormCardProps, FormSection, FormSectionProps, Grow, GrowPresence, GrowProps, HOVER_MOTION, HeldWidth, HeldWidthProps, HighlightRequest, HighlightResponse, Highlighted, HighlightedCode, HighlightedCodeProps, HighlightedProps, HostRow, HostRowProps, HoverCard, HoverCardProps, HoverCardTriggerProps, HowItWorks, HowItWorksProps, HowItWorksStep, INPUT_CLASS, INSTANT, IconButton, IconButtonLook, IconButtonProps, IconButtonRenderProps, IconButtonSize, IconCollection, IconToggle, IconToggleProps, KeyCombo, KeyComboProps, KeyValue, KeyValueItem, KeyValueProps, Keycap, KeycapProps, KeyedStore, LabelOverrides, Labels, LabelsProvider, LabelsProviderProps, LayerOptions, LightboxItem, LoadError, LoadErrorProps, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MatchedTitleProps, MediaNav, type MediaNavProps, Menu, MenuNote, MenuNoteProps, MenuProps, MenuRow, MenuRowProps, MenuRowRenderProps, MenuSection, MenuSectionProps, MenuSeparator, MenuSeparatorProps, MenuSwitch, MenuSwitchProps, Meta, MetaChip, MetaChipProps, MetaProps, MotionLevel, MotionName, MotionPrefs, MotionProvider, MotionProviderProps, NavButton, NavButtonProps, NavRow, NavRowProps, Notice, NoticeProps, NoticeTone, NumberFormats, Oklch, OpLine, OpLineProps, Overlay, OverlayProps, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteEntry, PaletteIcon, PaletteIconProps, PaletteKeys, PaletteList, PaletteListProps, PaletteNotice, PaletteOption, PaletteOptionProps, PalettePanel, PalettePanelProps, PaletteRow, PaletteRowData, PaletteRowProps, PaletteSection, PanelEmpty, PanelEmptyProps, PanelLoading, PanelLoadingProps, PathDisplay, PathDisplayProvider, PathDisplayProviderProps, PathDisplayScope, PathDisplayScopeProps, Placement, Popover, PopoverProps, PopoverState, PopoverTriggerProps, Presence, type Presence$1 as PresenceHandle, type PresenceOptions, PresenceProps, type PresenceState, PreviewWindow, PreviewWindowProps, Progress, ProgressProps, ProgressTone, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, RaisedProps, Rect, ReorderTabState, ReorderTabs, ReorderTabsProps, ResizeDrag, ResizeDragHandleProps, ResizeDragOptions, ResolvedPalette, Restricted, RestrictedProps, Rgb, RollDirection, RollingText, RollingTextProps, RowActionItem, RowActionsMenu, RowActionsMenuProps, RowBadge, RowBadgeProps, RowMenuButton, RowMenuButtonProps, RowText, RowTextProps, RuntimeIconsOptions, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SectionLabelProps, SegmentSpinner, SegmentSpinnerProps, Segmented, SegmentedOption, SegmentedProps, SegmentedRow, SegmentedRowProps, Side, Skeleton, SkeletonProps, SliderRow, SliderRowProps, SmoothHeight, SmoothHeightProps, SmoothWidth, SmoothWidthProps, SphereShading, Stat, StatProps, StatRow, StatRowProps, StatSize, StatTone, StepActions, StepActionsProps, StepFrame, StepFrameProps, StepStatus, Stepper, StepperProps, StepperStep, Steps, StepsItem, StepsProps, SurfaceLadder, SwapIcon, SwapIconProps, Swatch, SwatchPicker, SwatchPickerProps, Switch, SwitchGlyph, SwitchGlyphProps, SwitchProps, SwitchRow, SwitchRowProps, SyntaxStyles, SyntaxTokenStyle, TEXTAREA_CLASS, TabDragBounds, TabPill, TabPillProps, Table, TableCellValue, TableColumn, TableFilterBar, TableProps, TableSort, Tabs, TabsItem, TabsProps, Theme, ThemeColors, ThemeDiff, ThemeSeed, ThemeSelect, ThemeSurfaces, ThemeThumb, ThemeThumbProps, TitleText, TitleTextProps, ToggleCard, ToggleCardProps, ToggleSwitch, ToggleSwitchProps, Tooltip, type TooltipProps, Tray, TrayProps, UseFlipList, UseFlipListOptions, type UseTooltip, type UseTooltipOptions, WaapiTiming, ZidaneMark, ZidaneMarkProps, ZoomableImage, type ZoomableImageHandle, type ZoomableImageProps, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ import { CodeFrame, CodeWrapProvider } from "./components/CodeFrame.js";
18
18
  import { Compare, compareBars } from "./components/Compare.js";
19
19
  import { CONFIRM_TITLE_ID, ConfirmDialog } from "./components/ConfirmDialog.js";
20
20
  import { CopyButton } from "./components/CopyButton.js";
21
+ import { CopyValue } from "./components/CopyValue.js";
21
22
  import { EditableTitle } from "./components/EditableTitle.js";
22
23
  import { ErrorBoundary, ErrorDetails, ErrorFallback } from "./components/ErrorBoundary.js";
23
24
  import { FloatingSurface } from "./components/floating/FloatingSurface.js";
@@ -103,4 +104,4 @@ import { watchRuntimeIcons } from "./theme/runtime-icons.js";
103
104
  import { themeCssVars, themeStylesheet } from "./theme/stylesheet.js";
104
105
  import { BUILTIN_THEMES, DEFAULT_THEME, resolveTheme } from "./theme/themes.js";
105
106
  import { withoutTransitions } from "./theme/without-transitions.js";
106
- export { ACCENT_PRESETS, Accordion, AddressBar, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, Breakdown, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Callout, Checkbox, Checklist, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, Compare, ConfirmDialog, CopyButton, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipSnapshot, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, KeyValue, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, Notice, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, Progress, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowMenuButton, RowText, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, Skeleton, SliderRow, SmoothHeight, SmoothWidth, Stat, StatRow, StepActions, StepFrame, Stepper, Steps, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, Table, Tabs, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
107
+ export { ACCENT_PRESETS, Accordion, AddressBar, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, Breakdown, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Callout, Checkbox, Checklist, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, Compare, ConfirmDialog, CopyButton, CopyValue, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipSnapshot, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, KeyValue, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, Notice, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, Progress, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowMenuButton, RowText, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, Skeleton, SliderRow, SmoothHeight, SmoothWidth, Stat, StatRow, StepActions, StepFrame, Stepper, Steps, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, Table, Tabs, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ParsedBinding, bindingAlternatives, parseBindingSpec, parseBindingSpecs } from "zidane/chat/pure";
13
13
  /** Every action a key binding can fire. */
14
- export type KeyAction = 'openSettings' | 'openSessionDetails' | 'openModelPicker' | 'openEffortPicker' | 'openTodos' | 'openArtifacts' | 'openMainSession' | 'openUsagePanel' | 'newSession' | 'openKeybindings' | 'openPalette' | 'cancelToolCall' | 'cycleAgent' | 'enterSelectTurnMode' | 'toggleSidebar' | 'navigateBack' | 'navigateForward' | 'sessionGenerateTitle' | 'sessionCompact' | 'sessionExportMarkdown' | 'sessionExportJson' | 'sessionDelete' | 'sessionCopyId' | 'sessionFavorite' | 'zoomIn' | 'zoomOut' | 'zoomReset' | 'panelNext' | 'panelPrev' | 'tabNext' | 'tabPrev' | 'closeTab' | 'toggleTerminal' | 'newTerminal' | 'annotatePage' | 'splitTabRight' | 'splitTabDown';
14
+ export type KeyAction = 'openSettings' | 'openSessionDetails' | 'openModelPicker' | 'openEffortPicker' | 'openTodos' | 'openArtifacts' | 'openMainSession' | 'openUsagePanel' | 'newSession' | 'openKeybindings' | 'openPalette' | 'cancelToolCall' | 'cycleAgent' | 'enterSelectTurnMode' | 'previousPrompt' | 'nextPrompt' | 'toggleSidebar' | 'navigateBack' | 'navigateForward' | 'sessionGenerateTitle' | 'sessionCompact' | 'sessionExportMarkdown' | 'sessionExportJson' | 'sessionDelete' | 'sessionCopyId' | 'sessionFavorite' | 'zoomIn' | 'zoomOut' | 'zoomReset' | 'panelNext' | 'panelPrev' | 'tabNext' | 'tabPrev' | 'closeTab' | 'toggleTerminal' | 'newTerminal' | 'annotatePage' | 'splitTabRight' | 'splitTabDown';
15
15
  /** One action of the catalog. */
16
16
  export interface KeyBindingDef {
17
17
  /** The action. */
@@ -97,6 +97,18 @@ const KEYBINDING_DEFS = [
97
97
  description: "enter select-turn mode to navigate previous messages",
98
98
  urgent: true
99
99
  },
100
+ {
101
+ action: "previousPrompt",
102
+ default: "cmd+alt+[",
103
+ label: "previous message",
104
+ description: "scroll the conversation to your previous message"
105
+ },
106
+ {
107
+ action: "nextPrompt",
108
+ default: "cmd+alt+]",
109
+ label: "next message",
110
+ description: "scroll the conversation to your next message, or past the last one to the end"
111
+ },
100
112
  {
101
113
  action: "toggleSidebar",
102
114
  default: "cmd+b",