@hanzo/app 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/App.js CHANGED
@@ -273,5 +273,7 @@ function Window({ bar, betas }) {
273
273
  };
274
274
  return (_jsx(AiProvider, { client: client ?? undefined, children: _jsx(HostProvider, { host: host, children: _jsx(PrefsProvider, { children: _jsxs(YStack, { ref: windowRef, "data-slot": "window", ...(bar ? floor : null), flex: 1, minW: 0, height: bar ? '100%' : '100dvh', overflow: "hidden", rounded: bar ? '$3' : undefined, "$max-md": { position: 'fixed', t: TOP, l: 0, r: 0, height: HEIGHT, ...{ overflow: 'clip' } }, children: [bar ? (_jsxs(XStack, { "data-slot": "title-bar", height: BAR, shrink: 0, items: "center", gap: 2, pl: (bar.inset ?? 0) + 6, pr: "$2", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, ...bar.drag, children: [_jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(Toggle, { open: !closed, onPress: flip }) }), _jsx(XStack, { $md: { display: 'none' }, children: _jsx(Toggle, { open: drawer.state === 'open', onPress: drawer.open, label: t('Open sidebar') }) }), _jsx(Mark, { label: t('Back'), "data-slot": "back", onPress: () => router.back(), children: _jsx(ArrowLeft, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Mark, { label: t('Forward'), "data-slot": "forward", onPress: () => router.forward(), children: _jsx(ArrowRight, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(XStack, { flex: 1, self: "stretch", ...bar.drag }), bar.controls !== undefined ? (bar.controls) : !bar.inset ? (_jsx(WindowControls, {})) : null] })) : null, _jsxs(XStack, { ref: drawer.pane, "data-room": "", "data-app": mode, "data-slot": "frame", ...(bar ? null : floor), ...(drawer.slide ? RAISED : null),
275
275
  // inline-style: the slide, a transform with no logical form whose sign and distance the drawer writes on the element itself, a drag every frame (Drawer.tsx).
276
- style: drawer.slide ?? undefined, flex: 1, minW: 0, minH: 0, paddingInlineEnd: "var(--pane-gap)", pb: "var(--pane-gap)", pt: 0, "$max-md": { p: 0 }, children: [drawer.slide ? _jsx(Lift, {}) : null, _jsx(YStack, { height: "100%", "$max-md": { display: 'none' }, children: _jsx(Rail, { host: host, mode: mode, at: where, open: !closed, toggle: bar ? undefined : flip, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }) }), closed || alone ? null : (_jsx(YStack, { "$max-md": { display: 'none' }, children: _jsx(Column, { host: host, mode: mode, thread: thread, go: move, onShut: () => setClosed(true), onSeek: seek, onBack: back, places: sidebar }) })), _jsxs(YStack, { "data-slot": "stage", flex: 1, minW: 0, minH: 0, marginInlineStart: closed || alone ? 0 : 'var(--pane-gap)', "$max-md": { marginInlineStart: 0, pb: FOOT }, children: [bar ? null : _jsx(Top, { host: host, mode: mode, places: sidebar, open: drawer.state !== 'shut', go: move, onMenu: drawer.open, onChat: toChat, onDev: toDev }), _jsx(XStack, { "data-slot": "panes", flex: 1, minW: 0, minH: 0, children: mode === 'chat' ? (_jsx(Paned, { framed: true, children: _jsx(Chat, {}) })) : mode === 'tabs' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(Suspense, { fallback: null, children: _jsx(Terminals, {}) }) })) : mode === 'studio' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(YStack, { flex: 1, minH: 0, height: "100%", children: _jsx(Suspense, { fallback: null, children: _jsx(Studio, { host: maker, rail: false }) }) }) })) : mode === 'beta' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflowY: "auto", overflowX: "hidden", flex: 1, minW: 0, minH: 0, p: "$4", $md: { p: '$6' }, children: betas ?? (_jsx(Suspense, { fallback: null, children: _jsx(Betas, { go: move }) })) })) : (_jsx(YStack, { render: "main", "data-slot": "pane", ...(run ? null : { ...pane(), overflow: 'hidden' }), flex: 1, minW: 0, minH: 0, children: plans ? null : _jsx(Builder, { host: host, rail: false }) })) })] })] }), drawer.state === 'shut' ? null : (_jsx(Layer, { drawer: drawer, top: bar ? BAR : 0, children: _jsx(Column, { host: host, mode: mode, thread: thread, go: move, onShut: shut, onSeek: seek, onBack: back, drawer: true, places: sidebar, rail: _jsx(Rail, { host: host, mode: mode, at: where, open: true, rows: true, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }), foot: _jsx(Foot, { host: host, onChat: fresh, onOrg: org }) }) })), finding ? _jsx(Palette, { go: move, onClose: found, mode: mode, host: host }) : null, learning ? _jsx(Learning, { open: true, onClose: () => setLearning(false) }) : null] }) }) }) }));
276
+ style: drawer.slide ?? undefined, flex: 1, minW: 0, minH: 0, paddingInlineEnd: "var(--pane-gap)", pb: "var(--pane-gap)",
277
+ // The gap above the pane is the gap at its end and foot; a window's own bar above it is that gap.
278
+ pt: bar ? 0 : 'var(--pane-gap)', "$max-md": { p: 0 }, children: [drawer.slide ? _jsx(Lift, {}) : null, _jsx(YStack, { height: "100%", "$max-md": { display: 'none' }, children: _jsx(Rail, { host: host, mode: mode, at: where, open: !closed, toggle: bar ? undefined : flip, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }) }), closed || alone ? null : (_jsx(YStack, { "$max-md": { display: 'none' }, children: _jsx(Column, { host: host, mode: mode, thread: thread, go: move, onShut: () => setClosed(true), onSeek: seek, onBack: back, places: sidebar }) })), _jsxs(YStack, { "data-slot": "stage", flex: 1, minW: 0, minH: 0, marginInlineStart: closed || alone ? 0 : 'var(--pane-gap)', "$max-md": { marginInlineStart: 0, pb: `max(var(--pane-gap), ${FOOT})` }, children: [bar ? null : _jsx(Top, { host: host, mode: mode, places: sidebar, open: drawer.state !== 'shut', go: move, onMenu: drawer.open, onChat: toChat, onDev: toDev }), _jsx(XStack, { "data-slot": "panes", flex: 1, minW: 0, minH: 0, children: mode === 'chat' ? (_jsx(Paned, { framed: true, children: _jsx(Chat, {}) })) : mode === 'tabs' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(Suspense, { fallback: null, children: _jsx(Terminals, {}) }) })) : mode === 'studio' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(YStack, { flex: 1, minH: 0, height: "100%", children: _jsx(Suspense, { fallback: null, children: _jsx(Studio, { host: maker, rail: false }) }) }) })) : mode === 'beta' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflowY: "auto", overflowX: "hidden", flex: 1, minW: 0, minH: 0, p: "$4", $md: { p: '$6' }, children: betas ?? (_jsx(Suspense, { fallback: null, children: _jsx(Betas, { go: move }) })) })) : (_jsx(YStack, { render: "main", "data-slot": "pane", ...(run ? null : { ...pane(), overflow: 'hidden' }), flex: 1, minW: 0, minH: 0, children: plans ? null : _jsx(Builder, { host: host, rail: false }) })) })] })] }), drawer.state === 'shut' ? null : (_jsx(Layer, { drawer: drawer, top: bar ? BAR : 0, children: _jsx(Column, { host: host, mode: mode, thread: thread, go: move, onShut: shut, onSeek: seek, onBack: back, drawer: true, places: sidebar, rail: _jsx(Rail, { host: host, mode: mode, at: where, open: true, rows: true, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }), foot: _jsx(Foot, { host: host, onChat: fresh, onOrg: org }) }) })), finding ? _jsx(Palette, { go: move, onClose: found, mode: mode, host: host }) : null, learning ? _jsx(Learning, { open: true, onClose: () => setLearning(false) }) : null] }) }) }) }));
277
279
  }
package/dist/Chat.js CHANGED
@@ -74,6 +74,7 @@ import { enter, LOGIN } from './lib/destination.js';
74
74
  import { first } from './lib/first.js';
75
75
  import { BAD } from "./lib/mix.js";
76
76
  import { brand } from './where.js';
77
+ import { BAND } from './ground.js';
77
78
  import { ThinkingEffort } from './ThinkingEffort.js';
78
79
  import { shared, useChatPreferences } from './lib/chatPreferences.js';
79
80
  // NO REASONING PANEL HERE. Every assistant turn opened a "Thinking" disclosure
@@ -1508,7 +1509,7 @@ function Thread({ placeholder = message(), initial, anonymous = false, heading,
1508
1509
  }, children: [_jsx(Schedule, { open: plan !== null, onOpenChange: (open) => {
1509
1510
  if (!open)
1510
1511
  setPlan(null);
1511
- }, prompt: plan ?? "", model: model, models: models.map((m) => ({ id: m.id, name: nameOf(m.id, listed) })) }), dragging ? (_jsx(YStack, { "aria-hidden": true, position: "absolute", t: 0, r: 0, b: 0, l: 0, z: 10, items: "center", justify: "center", bg: "var(--surface-scrim)", borderWidth: 2, borderStyle: "dashed", borderColor: "$borderColor", rounded: "var(--pane-round)", pointerEvents: "none", children: _jsxs(XStack, { items: "center", gap: "$2", px: "$4", py: "$2.5", rounded: "$10", bg: "$background", borderWidth: 1, borderColor: "$borderColor", children: [_jsx(Paperclip, { size: 15, "aria-hidden": true }), _jsx(Text, { fontSize: "$4", color: "$ink", children: t("Drop files to attach") })] }) })) : null, _jsxs(XStack, { "data-slot": "conversation-head", height: 52, items: "center", justify: "space-between", gap: "$3", paddingInlineStart: "$4", paddingInlineEnd: "$2", shrink: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, "$max-md": !mine && !room.length ? { display: 'none' } : undefined, children: [_jsxs(XStack, { items: "center", gap: "$2", minW: 0, flex: 1, children: [mine ? (_jsx(Text, { fontSize: 15, lineHeight: 20, color: "$ink", numberOfLines: 1, shrink: 1, minW: 0, children: tidy(mine.title) })) : null, room.length ? (_jsx(XStack, { role: "list", "aria-label": t("Agents in this chat"), items: "center", gap: "$1.5", minW: 0, overflowX: "auto", "$platform-web": { scrollbarWidth: "none" }, children: room.map((name) => (_jsxs(XStack, { role: "listitem", items: "center", gap: "$1.5", paddingInlineStart: "$1", paddingInlineEnd: "$0.5", py: "$0.5", rounded: 999, borderWidth: 1, borderColor: "$borderColor", shrink: 0, children: [_jsx(Face, { src: faces[name]?.avatar ?? (name === withWhom ? portrait : undefined), emoji: faces[name]?.emoji ?? (name === withWhom ? persona?.emoji : undefined), name: name, size: 22 }), _jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$color", numberOfLines: 1, display: "none", $sm: { display: "flex" }, children: name }), _jsx(Box, { render: "button", onClick: () => openAgent(name), "aria-label": t("Remove {name} from this chat", { name }), title: t("Remove {name}", { name }), width: 24, height: 24, rounded: 999, items: "center", justify: "center", hoverStyle: { bg: "$hover" }, children: _jsx(X, { size: 13, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }) })] }, name))) })) : null] }), _jsxs(XStack, { "data-slot": "conversation-controls", "data-tauri-drag-region": "false", items: "center", gap: 4, shrink: 0, children: [free ? (_jsxs(Button, { size: "xs", variant: "outline", "data-slot": "header-upgrade", gap: "$1.5", px: "$2.5", py: "$1", rounded: "$4", cursor: "pointer", hoverStyle: { bg: 'var(--white-10)' }, onPress: () => window.location.assign(payUrl('/cart', { org: org(), returnUrl: window.location.href })), "aria-label": t("Upgrade plan"), children: [_jsx(Sparkles, { size: 13, color: "var(--primary)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", fontWeight: "600", color: "$ink", children: t("Upgrade plan") })] })) : null, open ? _jsx(Share, { thread: open }) : null, mine ? (_jsx(ConversationMenu, { threads: alone, active: open, onSchedule: anonymous ? undefined : () => setPlan(lastAsked()), children: _jsx(XStack, { children: _jsx(ThreadMore, { t: mine }) }) })) : null, _jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(Summary, { sections: sections, onOpen: () => setPanel(true), label: t("Summary") }) }), _jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(PanelToggle, { open: panel, onToggle: () => setPanel(!panel) }) })] })] }), wide && aside !== null ? (_jsx(Beside, { children: _jsx(Panel, { side: deck, kinds: NONE, onHide: () => setPanel(false), label: t("Tabs"), ...browsing }) })) : null, !wide && panel ? _jsx(Panel, { side: deck, kinds: NONE, sheet: true, onHide: () => setPanel(false), label: t("Tabs"), ...browsing }) : null, _jsx(ChatSurface, { ...chat, messages: shown, send: guarded,
1512
+ }, prompt: plan ?? "", model: model, models: models.map((m) => ({ id: m.id, name: nameOf(m.id, listed) })) }), dragging ? (_jsx(YStack, { "aria-hidden": true, position: "absolute", t: 0, r: 0, b: 0, l: 0, z: 10, items: "center", justify: "center", bg: "var(--surface-scrim)", borderWidth: 2, borderStyle: "dashed", borderColor: "$borderColor", rounded: "var(--pane-round)", pointerEvents: "none", children: _jsxs(XStack, { items: "center", gap: "$2", px: "$4", py: "$2.5", rounded: "$10", bg: "$background", borderWidth: 1, borderColor: "$borderColor", children: [_jsx(Paperclip, { size: 15, "aria-hidden": true }), _jsx(Text, { fontSize: "$4", color: "$ink", children: t("Drop files to attach") })] }) })) : null, _jsxs(XStack, { "data-slot": "conversation-head", height: BAND, items: "center", justify: "space-between", gap: "$3", paddingInlineStart: "$4", paddingInlineEnd: "$2", shrink: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, "$max-md": !mine && !room.length ? { display: 'none' } : undefined, children: [_jsxs(XStack, { items: "center", gap: "$2", minW: 0, flex: 1, children: [mine ? (_jsx(Text, { fontSize: 15, lineHeight: 20, color: "$ink", numberOfLines: 1, shrink: 1, minW: 0, children: tidy(mine.title) })) : null, room.length ? (_jsx(XStack, { role: "list", "aria-label": t("Agents in this chat"), items: "center", gap: "$1.5", minW: 0, overflowX: "auto", "$platform-web": { scrollbarWidth: "none" }, children: room.map((name) => (_jsxs(XStack, { role: "listitem", items: "center", gap: "$1.5", paddingInlineStart: "$1", paddingInlineEnd: "$0.5", py: "$0.5", rounded: 999, borderWidth: 1, borderColor: "$borderColor", shrink: 0, children: [_jsx(Face, { src: faces[name]?.avatar ?? (name === withWhom ? portrait : undefined), emoji: faces[name]?.emoji ?? (name === withWhom ? persona?.emoji : undefined), name: name, size: 22 }), _jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$color", numberOfLines: 1, display: "none", $sm: { display: "flex" }, children: name }), _jsx(Box, { render: "button", onClick: () => openAgent(name), "aria-label": t("Remove {name} from this chat", { name }), title: t("Remove {name}", { name }), width: 24, height: 24, rounded: 999, items: "center", justify: "center", hoverStyle: { bg: "$hover" }, children: _jsx(X, { size: 13, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }) })] }, name))) })) : null] }), _jsxs(XStack, { "data-slot": "conversation-controls", "data-tauri-drag-region": "false", items: "center", gap: 4, shrink: 0, children: [free ? (_jsxs(Button, { size: "xs", variant: "outline", "data-slot": "header-upgrade", gap: "$1.5", px: "$2.5", py: "$1", rounded: "$4", cursor: "pointer", hoverStyle: { bg: 'var(--white-10)' }, onPress: () => window.location.assign(payUrl('/cart', { org: org(), returnUrl: window.location.href })), "aria-label": t("Upgrade plan"), children: [_jsx(Sparkles, { size: 13, color: "var(--primary)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", fontWeight: "600", color: "$ink", children: t("Upgrade plan") })] })) : null, open ? _jsx(Share, { thread: open }) : null, mine ? (_jsx(ConversationMenu, { threads: alone, active: open, onSchedule: anonymous ? undefined : () => setPlan(lastAsked()), children: _jsx(XStack, { children: _jsx(ThreadMore, { t: mine }) }) })) : null, _jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(Summary, { sections: sections, onOpen: () => setPanel(true), label: t("Summary") }) }), _jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(PanelToggle, { open: panel, onToggle: () => setPanel(!panel) }) })] })] }), wide && aside !== null ? (_jsx(Beside, { children: _jsx(Panel, { side: deck, kinds: NONE, onHide: () => setPanel(false), label: t("Tabs"), ...browsing }) })) : null, !wide && panel ? _jsx(Panel, { side: deck, kinds: NONE, sheet: true, onHide: () => setPanel(false), label: t("Tabs"), ...browsing }) : null, _jsx(ChatSurface, { ...chat, messages: shown, send: guarded,
1512
1513
  // AN EMPTY ROOM CENTRES ITS COMPOSER on a laptop. While nothing has been
1513
1514
  // said the opening (the heading) and the composer sit as one group in the
1514
1515
  // middle of the height; the moment a turn exists the transcript takes the
package/dist/Column.js CHANGED
@@ -37,7 +37,7 @@ import { Sidebar, SidebarIconButton, SidebarItem, StatusDot } from '@hanzo/ui/ch
37
37
  import { useId } from 'react';
38
38
  import { Made } from './Me.js';
39
39
  import { Recents } from './Recents.js';
40
- import { raised } from './Rail.js';
40
+ import { MARK, raised } from './Rail.js';
41
41
  import { Setup } from './Setup.js';
42
42
  import { ago, UNTITLED_RUN } from './recent.js';
43
43
  import { empty } from './open.js';
@@ -47,6 +47,7 @@ import { talk } from './lib/host.js';
47
47
  import { payUrl } from './lib/pay.js';
48
48
  import { brand, wordmark } from './where.js';
49
49
  import { dragWindow, toggleWindowMaximize } from './WindowControls.js';
50
+ import { BAND } from './ground.js';
50
51
  /** The sidebar fills the column. Its `width` is typed in px alone, though its frame takes any gui size — the type is
51
52
  * @hanzo/ui's to widen. */
52
53
  const FILL = { width: '100%' };
@@ -118,7 +119,9 @@ export function Column({ host, mode, thread, go, onShut, onSeek, onBack, drawer
118
119
  };
119
120
  return (_jsxs(YStack, { "data-slot": "app-column", ref: drawer ? undefined : span.ref,
120
121
  // inline-style: `--span`, the width a drag rewrites on the element itself (span.ts); no prop sets a variable.
121
- style: drawer ? undefined : span.style, position: "relative", flex: drawer ? 1 : undefined, shrink: drawer ? 1 : 0, minW: 0, height: "100%", width: drawer ? undefined : 'var(--span)', children: [_jsxs(Sidebar, { "data-slot": "app-rail", role: "navigation", "aria-label": brand(), bg: "transparent", borderWidth: 0, ...FILL, px: "$2", pt: drawer ? '$2' : 0, pb: "$2", gap: "$0", children: [at ? (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: 2, paddingInlineEnd: 2, height: 52, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(SidebarIconButton, { label: t('Back'), "data-slot": "place-back", "data-tauri-drag-region": "false", onPress: onBack, ...HEAD, children: _jsx(ArrowLeft, { size: 16, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Text, { flex: 1, minW: 0, fontSize: 18, lineHeight: 24, fontWeight: "600", color: "$ink", numberOfLines: 1, "data-slot": "place-name", children: t(TITLE[at]) })] })) : (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: "$2", paddingInlineEnd: 2, height: 52, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(Text, { flex: 1, minW: 0, fontSize: drawer ? 20 : 18, lineHeight: 24, fontWeight: drawer ? '700' : '600', color: "$ink", numberOfLines: 1, children: wordmark(mode) }), drawer ? null : _jsx(Activity, { host: host }), _jsx(SidebarIconButton, { label: t('Search'), "data-tauri-drag-region": "false", onPress: onSeek, "aria-haspopup": "dialog", ...(drawer
122
+ style: drawer ? undefined : span.style, position: "relative", flex: drawer ? 1 : undefined, shrink: drawer ? 1 : 0, minW: 0, height: "100%", width: drawer ? undefined : 'var(--span)', children: [_jsxs(Sidebar, { "data-slot": "app-rail", role: "navigation", "aria-label": brand(), bg: "transparent", borderWidth: 0, ...FILL, px: "$2", pt: drawer ? 'var(--pane-gap)' : 0,
123
+ // In the drawer the menu's own foot padding is the gap; its foot row stands on it.
124
+ pb: drawer ? 0 : '$2', gap: "$0", children: [at ? (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: 2, paddingInlineEnd: 2, height: BAND, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(SidebarIconButton, { label: t('Back'), "data-slot": "place-back", "data-tauri-drag-region": "false", onPress: onBack, ...HEAD, children: _jsx(ArrowLeft, { size: 16, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Text, { flex: 1, minW: 0, fontSize: 18, lineHeight: 24, fontWeight: "600", color: "$ink", numberOfLines: 1, "data-slot": "place-name", children: t(TITLE[at]) })] })) : (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: "$2", paddingInlineEnd: 2, height: BAND, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(Text, { flex: 1, minW: 0, fontSize: drawer ? 20 : 18, lineHeight: 24, fontWeight: drawer ? '700' : '600', color: "$ink", numberOfLines: 1, children: wordmark(mode) }), drawer ? null : _jsx(Activity, { host: host }), _jsx(SidebarIconButton, { label: t('Search'), "data-tauri-drag-region": "false", onPress: onSeek, "aria-haspopup": "dialog", ...(drawer
122
125
  ? {
123
126
  width: 40,
124
127
  height: 40,
@@ -127,5 +130,5 @@ export function Column({ host, mode, thread, go, onShut, onSeek, onBack, drawer
127
130
  borderColor: 'var(--border-strong)',
128
131
  bg: 'var(--pane-fill)',
129
132
  }
130
- : HEAD), children: _jsx(Search, { size: drawer ? 18 : 16, "aria-hidden": true }) })] })), mode === 'chat' ? (_jsx(YStack, { role: "list", gap: 2, shrink: 0, children: _jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { "data-slot": "app-new", ...ROW, active: !thread, bg: "transparent", hoverStyle: { bg: '$hover' }, icon: _jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(SquarePen, { size: 16, "aria-hidden": true }) }), onPress: create, ...keys(create), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('New chat') }) }) }) })) : (_jsx(YStack, { "data-slot": "app-places", shrink: 0, children: groups.map((g, i) => (_jsxs(YStack, { pt: i ? '$2' : 0, children: [i && g.label ? (_jsx(Text, { id: `${uid}-${g.id}`, paddingInlineStart: "$2", pb: 2, fontSize: "$3", color: "$soft", children: g.label })) : null, _jsx(YStack, { role: "list", "aria-labelledby": i && g.label ? `${uid}-${g.id}` : undefined, "aria-label": i && g.label ? undefined : g.label || (at ? t(TITLE[at]) : g.id), gap: 1, children: g.links.map((link) => (_jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { ...ROW, ...(link.id === NEW ? { 'data-slot': 'app-new' } : {}), active: link.active, icon: link.id === NEW ? (_jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(SquarePen, { size: 16, "aria-hidden": true }) })) : link.icon ? (_jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: link.icon })) : null, onPress: link.onPress, ...keys(() => link.onPress?.()), children: _jsx(Text, { fontSize: "$3", color: link.active ? '$ink' : '$quiet', children: link.label }) }) }, link.id))) })] }, g.id))) })), rail, mode === 'studio' || mode === 'tabs' || mode === 'beta' || at ? null : _jsx(Recents, { host: host, mode: mode, thread: thread, onOpen: open, onNew: create }), at ? null : (_jsxs(YStack, { gap: "$2", pt: "$2", shrink: 0, children: [_jsx(Made, {}), _jsx(Setup, { go: go })] })), free ? (_jsx(YStack, { role: "list", gap: 2, shrink: 0, pt: "$2", children: _jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { ...ROW, "data-slot": "column-upgrade", icon: _jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(Sparkles, { size: 16, "aria-hidden": true, color: "var(--primary)" }) }), onPress: () => window.location.assign(payUrl('/cart', { returnUrl: window.location.href })), ...keys(() => window.location.assign(payUrl('/cart', { returnUrl: window.location.href }))), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Upgrade plan') }) }) }) })) : null, foot] }), drawer ? null : (_jsx(Gutter, { side: dir === 'rtl' ? 'right' : 'left', span: span.span, floor: FLOOR, ceil: CEIL, reset: WIDTH, onSpan: span.move, onKeep: span.keep, onShut: onShut, label: t('Resize sidebar') }))] }));
133
+ : HEAD), children: _jsx(Search, { size: drawer ? 18 : 16, "aria-hidden": true }) })] })), mode === 'chat' ? (_jsx(YStack, { role: "list", gap: 2, shrink: 0, children: _jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { "data-slot": "app-new", ...ROW, active: !thread, bg: "transparent", hoverStyle: { bg: '$hover' }, icon: _jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(SquarePen, { size: 16, "aria-hidden": true }) }), onPress: create, ...keys(create), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('New chat') }) }) }) })) : (_jsx(YStack, { "data-slot": "app-places", shrink: 0, children: groups.map((g, i) => (_jsxs(YStack, { pt: i ? '$2' : 0, children: [i && g.label ? (_jsx(Text, { id: `${uid}-${g.id}`, paddingInlineStart: "$2", pb: 2, fontSize: "$3", color: "$soft", children: g.label })) : null, _jsx(YStack, { role: "list", "aria-labelledby": i && g.label ? `${uid}-${g.id}` : undefined, "aria-label": i && g.label ? undefined : g.label || (at ? t(TITLE[at]) : g.id), gap: 1, children: g.links.map((link) => (_jsx(YStack, { role: "listitem", children: _jsx(SidebarItem, { ...ROW, ...(link.id === NEW ? { 'data-slot': 'app-new' } : {}), active: link.active, icon: link.id === NEW ? (_jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(SquarePen, { size: 16, "aria-hidden": true }) })) : link.icon ? (_jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: link.icon })) : null, onPress: link.onPress, ...keys(() => link.onPress?.()), children: _jsx(Text, { fontSize: "$3", color: link.active ? '$ink' : '$quiet', children: link.label }) }) }, link.id))) })] }, g.id))) })), rail, mode === 'studio' || mode === 'tabs' || mode === 'beta' || at ? _jsx(YStack, { flex: 1, minH: 0 }) : _jsx(Recents, { host: host, mode: mode, thread: thread, onOpen: open, onNew: create }), at ? null : (_jsxs(YStack, { gap: "$2", pt: "$2", shrink: 0, children: [_jsx(Made, {}), _jsx(Setup, { go: go })] })), free ? (_jsx(YStack, { role: "list", gap: 2, shrink: 0, pt: "$2", children: _jsx(YStack, { role: "listitem", minH: MARK, justify: "center", children: _jsx(SidebarItem, { ...ROW, "data-slot": "column-upgrade", icon: _jsx(XStack, { width: 20, height: 20, items: "center", justify: "center", shrink: 0, children: _jsx(Sparkles, { size: 16, "aria-hidden": true, color: "var(--primary)" }) }), onPress: () => window.location.assign(payUrl('/cart', { returnUrl: window.location.href })), ...keys(() => window.location.assign(payUrl('/cart', { returnUrl: window.location.href }))), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Upgrade plan') }) }) }) })) : null, foot] }), drawer ? null : (_jsx(Gutter, { side: dir === 'rtl' ? 'right' : 'left', span: span.span, floor: FLOOR, ceil: CEIL, reset: WIDTH, onSpan: span.move, onKeep: span.keep, onShut: onShut, label: t('Resize sidebar') }))] }));
131
134
  }
package/dist/Directory.js CHANGED
@@ -21,7 +21,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
21
21
  // install flow — one `+` everywhere, branching internally.
22
22
  //
23
23
  // TWO TABS, and the channels are tiles. A channel is a provider the org can
24
- // hold an account with, read from `/v1/integrations` — which says whether this
24
+ // hold an account with, read from `/v1/provider` — which says whether this
25
25
  // deployment can open a connection and whether this org has one — and every
26
26
  // tile's button is a call to that registry. The Inbox's "Connect an app" opens
27
27
  // this same directory on this tab; there is no second grid. Skills, plugins and
@@ -36,7 +36,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
36
36
  //
37
37
  // SIGNED IN, EACH TAB READS ITS OWN REGISTRY. Apps is this site's public catalog
38
38
  // AND the org's connected accounts; Channels is the org's own list at
39
- // `/v1/integrations`. That one needs the bearer, so signed-out asks the reader to
39
+ // `/v1/provider`. That one needs the bearer, so signed-out asks the reader to
40
40
  // sign in rather than drawing a catalogue nobody can connect from, and a
41
41
  // registry that cannot be reached says so rather than claiming the list is
42
42
  // empty. Nothing stands in for an answer: no row is drawn that the registry did
@@ -65,7 +65,7 @@ const TABS = [
65
65
  { id: 'channels', label: phrase('Channels') },
66
66
  ];
67
67
  /** The org-plane catalogue: every provider the platform can connect an account to, with THIS org's connection and whether the deployment can open one. */
68
- const CHANNELS = '/v1/integrations';
68
+ const CHANNELS = '/v1/provider';
69
69
  /**
70
70
  * Under a channel's name, what the registry knows, in the reader's order of
71
71
  * interest: the account connected, else whether a connection can be opened here
@@ -173,7 +173,7 @@ export function Catalog({ tab }) {
173
173
  if (auth) {
174
174
  Promise.all([
175
175
  apps(),
176
- fetch(`${api()}/v1/integrations/connectors`, { headers: auth }).then((r) => (r.ok ? r.json() : null)),
176
+ fetch(`${api()}/v1/connection`, { headers: auth }).then((r) => (r.ok ? r.json() : null)),
177
177
  ])
178
178
  .then(([list, j]) => {
179
179
  if (!live || !j?.connectors)
@@ -263,7 +263,7 @@ function Channel({ row, onChange }) {
263
263
  setBusy(true);
264
264
  setWrong(null);
265
265
  try {
266
- const r = await fetch(`${api()}/v1/integrations/${encodeURIComponent(row.id)}/${verb}`, {
266
+ const r = await fetch(`${api()}/v1/provider/${encodeURIComponent(row.id)}/${verb}`, {
267
267
  method: 'POST',
268
268
  headers: { ...scope(), 'Content-Type': 'application/json' },
269
269
  body: '{}',
package/dist/Rail.d.ts CHANGED
@@ -3,6 +3,8 @@ import { type Host } from '@hanzo/build';
3
3
  import { type Place } from './lib/host.js';
4
4
  /** The rail's width, px. */
5
5
  export declare const RAIL = 44;
6
+ /** A mark, px: a 36px square on a 44px pitch. */
7
+ export declare const MARK = 36;
6
8
  /** The places the rail holds beside the products, by the builder address each opens. */
7
9
  export declare const RAISED: {
8
10
  readonly library: '-/artifacts';
package/dist/Rail.js CHANGED
@@ -44,11 +44,14 @@ import { BetasDialog, useBetas } from './Betas.js';
44
44
  import { out } from './help.js';
45
45
  import { BETAS } from './lib/betas.js';
46
46
  import { Me } from './Me.js';
47
+ import { BAND } from './ground.js';
47
48
  import { app, WORKSPACE } from './lib/host.js';
48
49
  /** The rail's width, px. */
49
50
  export const RAIL = 44;
50
51
  /** A mark, px: a 36px square on a 44px pitch. */
51
- const MARK = 36;
52
+ export const MARK = 36;
53
+ /** A mark on a touch screen, px: a thumb's 44. */
54
+ const TOUCH = 44;
52
55
  /** The places the rail holds beside the products, by the builder address each opens. */
53
56
  export const RAISED = { library: '-/artifacts', scheduled: '-/automations', customize: '-/customize' };
54
57
  /** Which of them a builder address stands on, if any, and so takes the sidebar: an agent's page is Customize's, an automation Scheduled tasks'. */
@@ -68,7 +71,7 @@ export function raised(at) {
68
71
  export function Mark({ label, on = false, onPress, children, ...rest }) {
69
72
  return (_jsx(XStack, { render: "button", "aria-label": label, ...{ title: label }, "aria-current": on ? 'page' : undefined, onPress: onPress, width: MARK, height: MARK, rounded: "$4", items: "center", justify: "center", shrink: 0, cursor: "pointer", opacity: on ? 1 : 0.62, bg: on ? '$edge' : 'transparent', hoverStyle: { bg: on ? '$edge' : '$hover', opacity: 1 }, pressStyle: { bg: '$raised' }, focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor' },
70
73
  // A thumb's 44px on a touch screen.
71
- $touchable: { width: 44, height: 44 }, ...rest, children: children }));
74
+ $touchable: { width: TOUCH, height: TOUCH }, ...rest, children: children }));
72
75
  }
73
76
  /** A place as a phone's menu lists it (`label`, already in the reader's language): a row on the sidebar's pitch, a thumb's 44 on a touch screen, lit where the reader is. */
74
77
  function Row({ label, on = false, onPress, icon, ...rest }) {
@@ -117,7 +120,9 @@ export function Rail({ host, mode, at, open, toggle, rows = false, onChat, onDev
117
120
  const betasDialog = _jsx(BetasDialog, { open: betas, onOpenChange: setBetas, go: out });
118
121
  if (rows)
119
122
  return (_jsxs(YStack, { "data-slot": "places", render: "nav", "aria-label": t('Products'), pt: "$2", shrink: 0, children: [_jsxs(YStack, { role: "list", gap: 2, children: [_jsx(YStack, { role: "listitem", children: _jsx(Row, { label: "Studio", on: mode === 'studio', onPress: onStudio, "data-slot": "place-studio", icon: _jsx(WandSparkles, { size: 16, "aria-hidden": true }) }) }), _jsx(YStack, { role: "listitem", children: _jsx(Row, { label: "Tabs", on: mode === 'tabs', onPress: onTabs, "data-slot": "place-tabs", icon: _jsx(SquareTerminal, { size: 16, "aria-hidden": true }) }) }), _jsx(YStack, { role: "listitem", children: _jsx(DropdownMenu, { placement: "bottom-start", minWidth: 220, trigger: _jsx(Row, { label: t('More'), "data-slot": "place-more", "aria-haspopup": "menu", icon: _jsx(Ellipsis, { size: 16, "aria-hidden": true }) }), items: rest }) })] }), betasDialog] }));
120
- return (_jsxs(YStack, { "data-slot": "rail", render: "nav", "aria-label": t('Products'), width: RAIL, flex: 1, pt: 4, pb: 4, gap: 4, shrink: 0, items: "center", children: [toggle ? (_jsx(YStack, { pb: 4, children: _jsx(Toggle, { open: open, onPress: toggle }) })) : null, _jsx(Mark, { label: t('Chat'), on: mode === 'chat', onPress: onChat, "data-slot": "rail-chat", children: _jsx(MessageSquare, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Dev", on: mode === 'dev' && !here, onPress: onDev, "data-slot": "rail-dev", children: _jsx(Code2, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Studio", on: mode === 'studio', onPress: onStudio, "data-slot": "rail-studio", children: _jsx(WandSparkles, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Tabs", on: mode === 'tabs', onPress: onTabs, "data-slot": "rail-tabs", children: _jsx(SquareTerminal, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Library'), on: here === 'library', onPress: to(RAISED.library), "data-slot": "rail-library", children: _jsx(Library, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Scheduled tasks'), on: here === 'scheduled', onPress: to(RAISED.scheduled), "data-slot": "rail-scheduled", children: _jsx(Clock, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Customize'), on: here === 'customize', onPress: to(RAISED.customize), "data-slot": "rail-customize", children: _jsx(Puzzle, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Betas'), on: mode === 'beta', onPress: () => go('/beta'), "data-slot": "rail-betas", children: _jsx(FlaskConical, { size: 18, "aria-hidden": true }) }), betasDialog, rest.length ? (_jsx(DropdownMenu
123
+ return (_jsxs(YStack, { "data-slot": "rail", render: "nav", "aria-label": t('Products'), width: RAIL, flex: 1,
124
+ // The first mark centred on the head band beside it (BAND), the account on the sidebar's foot (Column's `pb`).
125
+ pt: (BAND - MARK) / 2, pb: "$2", gap: 4, shrink: 0, items: "center", $touchable: { pt: (BAND - TOUCH) / 2 }, children: [toggle ? (_jsx(YStack, { pb: 4, children: _jsx(Toggle, { open: open, onPress: toggle }) })) : null, _jsx(Mark, { label: t('Chat'), on: mode === 'chat', onPress: onChat, "data-slot": "rail-chat", children: _jsx(MessageSquare, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Dev", on: mode === 'dev' && !here, onPress: onDev, "data-slot": "rail-dev", children: _jsx(Code2, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Studio", on: mode === 'studio', onPress: onStudio, "data-slot": "rail-studio", children: _jsx(WandSparkles, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: "Tabs", on: mode === 'tabs', onPress: onTabs, "data-slot": "rail-tabs", children: _jsx(SquareTerminal, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Library'), on: here === 'library', onPress: to(RAISED.library), "data-slot": "rail-library", children: _jsx(Library, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Scheduled tasks'), on: here === 'scheduled', onPress: to(RAISED.scheduled), "data-slot": "rail-scheduled", children: _jsx(Clock, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Customize'), on: here === 'customize', onPress: to(RAISED.customize), "data-slot": "rail-customize", children: _jsx(Puzzle, { size: 18, "aria-hidden": true }) }), _jsx(Mark, { label: t('Betas'), on: mode === 'beta', onPress: () => go('/beta'), "data-slot": "rail-betas", children: _jsx(FlaskConical, { size: 18, "aria-hidden": true }) }), betasDialog, rest.length ? (_jsx(DropdownMenu
121
126
  // Toward the content: right of the rail, left of it right to left.
122
127
  , {
123
128
  // Toward the content: right of the rail, left of it right to left.
package/dist/RightPane.js CHANGED
@@ -132,7 +132,7 @@ const Note = ({ children }) => (_jsx(DropdownMenuLabel, { children: _jsx(Text, {
132
132
  * EVERY ROW DOES SOMETHING. Files come off the reader's own disk. Skills are
133
133
  * `GET /v1/tools/skills` and toggling one is `PUT /v1/tools/activation`, the
134
134
  * one write path that turns skills, plugins and connectors into callable tools.
135
- * Services are `GET /v1/integrations/connectors/providers`, connected by the
135
+ * Services are `GET /v1/connection/providers`, connected by the
136
136
  * device flow their cards declare. One panel, not flyouts: it hangs off the
137
137
  * right edge of the window, where a submenu has no room to open.
138
138
  */
package/dist/Setup.js CHANGED
@@ -89,10 +89,10 @@ export function Setup({ go } = {}) {
89
89
  let live = true;
90
90
  const auth = scope();
91
91
  Promise.all([
92
- fetch(`${api()}/v1/integrations`, { headers: auth })
92
+ fetch(`${api()}/v1/provider`, { headers: auth })
93
93
  .then((r) => (r.ok ? r.json() : null))
94
94
  .catch(() => null),
95
- fetch(`${api()}/v1/integrations/connectors`, { headers: auth })
95
+ fetch(`${api()}/v1/connection`, { headers: auth })
96
96
  .then((r) => (r.ok ? r.json() : null))
97
97
  .catch(() => null),
98
98
  fetch(`${api()}/v1/tool/plugins/authored`, { headers: auth })
@@ -235,7 +235,7 @@ export function Setup({ go } = {}) {
235
235
  }
236
236
  return;
237
237
  }
238
- const res = await fetch(`${api()}/v1/integrations/${provider}/connect`, {
238
+ const res = await fetch(`${api()}/v1/provider/${provider}/connect`, {
239
239
  method: 'POST',
240
240
  headers: { ...scope(), 'Content-Type': 'application/json' },
241
241
  body: '{}',
package/dist/Top.js CHANGED
@@ -22,7 +22,7 @@ import { SquarePen } from 'lucide-react';
22
22
  import { Text, XStack } from '@hanzo/gui';
23
23
  import { nav, NEW } from '@hanzo/build';
24
24
  import { ToggleGroup, ToggleGroupItem } from '@hanzo/ui';
25
- import { pane } from './ground.js';
25
+ import { BAND, pane } from './ground.js';
26
26
  import { empty } from './open.js';
27
27
  import { talk } from './lib/host.js';
28
28
  /** A button, px: a thumb's 44. */
@@ -63,5 +63,5 @@ export function Top({ host, mode, places, open = false, go, onMenu, onChat, onDe
63
63
  },
64
64
  }
65
65
  : { label: made?.label ?? t('New'), onPress: made?.onPress };
66
- return (_jsxs(XStack, { "data-slot": "app-bar", height: `calc(${LINE}px + var(--safe-top))`, pt: "var(--safe-top)", px: "$4.5", items: "center", justify: "space-between", shrink: 0, $md: { display: 'none' }, children: [_jsx(Round, { label: t('Open sidebar'), "data-slot": "bar-menu", onPress: onMenu, pointerEvents: open ? 'none' : 'auto', children: _jsx(Lines, {}) }), _jsx(XStack, { "data-slot": "bar-mode", ...GLASS, height: LINE, p: "$1", items: "center", children: _jsxs(ToggleGroup, { type: "single", "aria-label": t('App'), value: mode === 'chat' || mode === 'dev' ? mode : '', disableDeactivation: true, onValueChange: (v) => (v === 'chat' ? onChat() : v === 'dev' ? onDev() : undefined), children: [_jsx(Side, { value: "chat", children: t('Chat') }), _jsx(Side, { value: "dev", children: "Dev" })] }) }), fresh.onPress ? (_jsx(Round, { label: fresh.label, "data-slot": "bar-new", onPress: fresh.onPress, children: _jsx(SquarePen, { size: 20, "aria-hidden": true }) })) : (_jsx(XStack, { width: 44, height: 44, "aria-hidden": true }))] }));
66
+ return (_jsxs(XStack, { "data-slot": "app-bar", height: `calc(${BAND}px + var(--safe-top) + var(--pane-gap))`, pt: "calc(var(--safe-top) + var(--pane-gap))", px: "$4.5", items: "center", justify: "space-between", shrink: 0, $md: { display: 'none' }, children: [_jsx(Round, { label: t('Open sidebar'), "data-slot": "bar-menu", onPress: onMenu, pointerEvents: open ? 'none' : 'auto', children: _jsx(Lines, {}) }), _jsx(XStack, { "data-slot": "bar-mode", ...GLASS, height: LINE, p: "$1", items: "center", children: _jsxs(ToggleGroup, { type: "single", "aria-label": t('App'), value: mode === 'chat' || mode === 'dev' ? mode : '', disableDeactivation: true, onValueChange: (v) => (v === 'chat' ? onChat() : v === 'dev' ? onDev() : undefined), children: [_jsx(Side, { value: "chat", children: t('Chat') }), _jsx(Side, { value: "dev", children: "Dev" })] }) }), fresh.onPress ? (_jsx(Round, { label: fresh.label, "data-slot": "bar-new", onPress: fresh.onPress, children: _jsx(SquarePen, { size: 20, "aria-hidden": true }) })) : (_jsx(XStack, { width: 44, height: 44, "aria-hidden": true }))] }));
67
67
  }
@@ -98,7 +98,7 @@ export interface Secret {
98
98
  scheme?: string;
99
99
  }
100
100
  export declare const secrets: (c: Client, path: string, signal?: AbortSignal) => Promise<Secret[]>;
101
- /** A connector as `/v1/integrations/connectors` answers it. Held by the PERSON
101
+ /** A connector as `/v1/connection` answers it. Held by the PERSON
102
102
  * who signed in to it: the contract publishes no per-agent binding. */
103
103
  export interface Connector {
104
104
  id: string;
package/dist/bots/api.js CHANGED
@@ -71,5 +71,5 @@ export const call = (c, name, op, input = {}) => rpc(c, 'tools/call', { name, ar
71
71
  export const workOn = (c, params) => c.http.json({ method: 'POST', path: '/v1/agents/coding', body: params });
72
72
  export const projects = (c, signal) => c.http.json({ path: '/v1/project', signal });
73
73
  export const secrets = (c, path, signal) => c.http.collection('secrets', { path: '/v1/kms/secrets', query: { path }, signal });
74
- export const connectors = (c, signal) => c.http.collection('connectors', { path: '/v1/integrations/connectors', signal });
74
+ export const connectors = (c, signal) => c.http.collection('connectors', { path: '/v1/connection', signal });
75
75
  export const grant = (c, id, kind) => c.http.json({ method: 'POST', path: `/v1/sandbox/${encodeURIComponent(id)}/${kind}/ticket` });
@@ -312,7 +312,7 @@ function Secrets({ bot, keys, why }) {
312
312
  * The one thing that is NOT this Bot's.
313
313
  *
314
314
  * A connector is held by the person who signed in to it.
315
- * `/v1/integrations/connectors` answers one set for the caller and no route in
315
+ * `/v1/connection` answers one set for the caller and no route in
316
316
  * the contract narrows it to one agent — so it is listed as what it is, and
317
317
  * there is no switch to press.
318
318
  */
package/dist/connect.d.ts CHANGED
@@ -21,7 +21,7 @@ export interface Device {
21
21
  *
22
22
  * THE PANE STARTS IT AND DOES NOT WATCH IT. Polling belongs where the result is
23
23
  * used — the connector appears in the Directory's own list, which reads
24
- * `/v1/integrations/connectors` — and a menu that closes the moment the reader
24
+ * `/v1/connection` — and a menu that closes the moment the reader
25
25
  * leaves for the provider's page has nowhere to put a result anyway. Starting
26
26
  * the flow, showing the code and opening the page is the whole of this control's
27
27
  * job; `flow` is returned so a surface that does want to watch has the id.
package/dist/connect.js CHANGED
@@ -51,13 +51,13 @@ export async function activate(name, on) {
51
51
  *
52
52
  * THE PANE STARTS IT AND DOES NOT WATCH IT. Polling belongs where the result is
53
53
  * used — the connector appears in the Directory's own list, which reads
54
- * `/v1/integrations/connectors` — and a menu that closes the moment the reader
54
+ * `/v1/connection` — and a menu that closes the moment the reader
55
55
  * leaves for the provider's page has nowhere to put a result anyway. Starting
56
56
  * the flow, showing the code and opening the page is the whole of this control's
57
57
  * job; `flow` is returned so a surface that does want to watch has the id.
58
58
  */
59
59
  export async function startDevice(provider) {
60
- const begun = await ask(`/v1/integrations/connectors/${encodeURIComponent(provider)}/device`, {});
60
+ const begun = await ask(`/v1/connection/${encodeURIComponent(provider)}/device`, {});
61
61
  if (!begun.userCode || !begun.verifyUrl)
62
62
  throw new Error('This service did not start a sign-in.');
63
63
  return { userCode: begun.userCode, verifyUrl: begun.verifyUrl, flow: begun.flow ?? '' };
package/dist/ground.d.ts CHANGED
@@ -20,6 +20,11 @@ export declare const pane: (fill?: string) => {
20
20
  readonly backdropFilter: 'var(--pane-blur)';
21
21
  readonly boxShadow: 'var(--shadow-sheet-1)';
22
22
  };
23
+ /**
24
+ * One head row, px: the sidebar's title row, a pane's top bar and a phone's bar
25
+ * are this high and stand on one line, so the marks in them share a centerline.
26
+ */
27
+ export declare const BAND = 52;
23
28
  /**
24
29
  * THE FLOOR under the app's frame (app/_web.tsx, components/settings/Frame.tsx):
25
30
  * design's top light falling off down the window over the faint lamps of
package/dist/ground.js CHANGED
@@ -20,6 +20,11 @@ export const pane = (fill = 'var(--pane-fill)') => ({
20
20
  backdropFilter: 'var(--pane-blur)',
21
21
  boxShadow: 'var(--shadow-sheet-1)',
22
22
  });
23
+ /**
24
+ * One head row, px: the sidebar's title row, a pane's top bar and a phone's bar
25
+ * are this high and stand on one line, so the marks in them share a centerline.
26
+ */
27
+ export const BAND = 52;
23
28
  /**
24
29
  * THE FLOOR under the app's frame (app/_web.tsx, components/settings/Frame.tsx):
25
30
  * design's top light falling off down the window over the faint lamps of
package/dist/lib/gmail.js CHANGED
@@ -146,7 +146,7 @@ export function buildGoogleWorkspaceAuthorizeUrl(origin, clientId = DEFAULT_GOOG
146
146
  async function authorizeUrl() {
147
147
  let clientId = DEFAULT_GOOGLE_CLIENT_ID;
148
148
  try {
149
- const res = await fetch(`${api()}/v1/integrations/google/connect`, {
149
+ const res = await fetch(`${api()}/v1/provider/google/connect`, {
150
150
  method: 'POST',
151
151
  headers: { ...scope(), 'Content-Type': 'application/json' },
152
152
  body: '{}',
@@ -188,7 +188,7 @@ async function complete(accessToken, granted, expiresIn) {
188
188
  /* an unnamed account is kept as `default` */
189
189
  }
190
190
  keep(email, { accessToken, scope: granted || GOOGLE_WORKSPACE_SCOPES, expiresIn });
191
- fetch(`${api()}/v1/integrations/google/connect`, {
191
+ fetch(`${api()}/v1/provider/google/connect`, {
192
192
  method: 'POST',
193
193
  headers: { ...scope(), 'Content-Type': 'application/json' },
194
194
  body: JSON.stringify({ token: accessToken, accountId: email }),
package/dist/lib/home.js CHANGED
@@ -50,6 +50,6 @@ export async function projects(client, signal) {
50
50
  * counts rather than being told a number.
51
51
  */
52
52
  export async function apps(client, signal) {
53
- const out = await client.http.json({ path: '/v1/integrations', signal });
53
+ const out = await client.http.json({ path: '/v1/provider', signal });
54
54
  return out?.providers ?? [];
55
55
  }
package/dist/tools.js CHANGED
@@ -3,7 +3,7 @@
3
3
  //
4
4
  // TWO READS, AND THEY ARE NOT THE SAME LIST. `/v1/tools/skills` is what THIS
5
5
  // org's agents already know how to do, each with the flag saying whether it is
6
- // switched on; `/v1/integrations/connectors/providers` is the catalogue of what
6
+ // switched on; `/v1/connection/providers` is the catalogue of what
7
7
  // a person could connect that they have not. One answers "use something", the
8
8
  // other "connect something", which is why the menu has two rows and not one
9
9
  // list with a mixed meaning in it.
@@ -147,5 +147,5 @@ export function useSkills() {
147
147
  }
148
148
  /** What this account could connect and has not. */
149
149
  export function useProviders() {
150
- return useList('/v1/integrations/connectors/providers', asProviders);
150
+ return useList('/v1/connection/providers', asProviders);
151
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/app",
3
- "version": "0.2.33",
3
+ "version": "0.2.35",
4
4
  "description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",