@hanzo/app 0.3.86 → 0.3.88

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
@@ -94,8 +94,8 @@ import { Bar } from './Bar.js';
94
94
  import { FOOT, HEIGHT, TOP, useView } from './view.js';
95
95
  import { dragWindow, toggleWindowMaximize, WindowControls } from './WindowControls.js';
96
96
  import { AppContextMenu } from './ContextMenu.js';
97
- const directorNav = studioPkg.directorNav ?? places;
98
- const flowNav = studioPkg.flowNav ?? places;
97
+ const directorNav = Reflect.get(studioPkg, 'directorNav') ?? places;
98
+ const flowNav = Reflect.get(studioPkg, 'flowNav') ?? places;
99
99
  /** Studio, fetched the first time the reader stands in it. */
100
100
  const Studio = lazy(() => import('@hanzo/studio').then((m) => ({ default: m.Studio })));
101
101
  const DirectorStudio = lazy(() => import('@hanzo/studio').then((m) => ({
package/dist/Recents.js CHANGED
@@ -26,7 +26,7 @@ import { ConversationMenu, ThreadRow, useThreadList } from './thread.js';
26
26
  * 0.1.11): this browser's store, shared with Studio's panes. An older Studio has
27
27
  * none, and Design then lists nothing here, never Chat's.
28
28
  */
29
- const useMade = studio.useRecent;
29
+ const useMade = Reflect.get(studio, 'useRecent');
30
30
  /** The menu's items: each section a heading and its options (recent.ts's phrases, drawn through `t`), the one in force checked; Select multiple where the rows carry a menu. */
31
31
  function items(mode, view, set, t, select) {
32
32
  const m = MENUS[mode];
@@ -166,7 +166,7 @@ export function ComputerDialog({ open, onOpenChange, bot, box, onUpdated, }) {
166
166
  void openStream(box.id, mode);
167
167
  }, children: _jsx(RefreshCw, { size: 14, color: INK, "aria-hidden": true }) }), frameUrl ? (_jsx(XStack, { ...ROUND, width: 32, height: 32, "aria-label": t('Open in new tab'), onClick: () => window.open(frameUrl, '_blank', 'noopener,noreferrer'), children: _jsx(ExternalLink, { size: 14, color: INK, "aria-hidden": true }) })) : null, _jsxs(XStack, { ...PILL, height: 32, px: 12, disabled: busy, onClick: () => void handlePark(), children: [_jsx(Pause, { size: 12, color: INK, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 16, fontWeight: "500", color: INK, children: t('Park') })] })] })) : (_jsxs(XStack, { ...PILL, height: 32, px: 13, bg: INK, borderColor: INK, disabled: busy || waking, opacity: busy || waking ? 0.5 : 1, onClick: () => void startComputer(), children: [_jsx(Play, { size: 12, color: "var(--background)", "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 16, fontWeight: "500", color: "var(--background)", children: busy || waking ? t('Waking…') : t('Wake Desktop') })] })), _jsx(XStack, { ...ROUND, width: 32, height: 32, "aria-label": t('Close'), onClick: () => onOpenChange(false), children: _jsx(X, { size: 15, color: INK, "aria-hidden": true }) })] })] }), _jsx(YStack, { height: 470, bg: "var(--pure-black)", items: "center", justify: "center", position: "relative", overflow: "hidden", children: snapDataUrl ? (_jsxs(YStack, { width: "100%", height: "100%", items: "center", justify: "center", position: "relative", children: [_jsx(YStack, { render: "img", src: snapDataUrl, alt: `${displayName} desktop screenshot`, maxW: "100%", maxH: "100%", objectFit: "contain" }), _jsx(XStack, { position: "absolute", t: 12, r: 12, children: _jsx(XStack, { ...PILL, height: 30, px: 12, onClick: () => setSnapDataUrl(null), children: _jsx(Text, { fontSize: 12, lineHeight: 16, color: INK, children: t('Back to live stream') }) }) })] })) : awake && frameUrl ? (_jsx(YStack, { render: "iframe", src: frameUrl,
168
168
  title: `${displayName} desktop ${mode}`,
169
- allow: 'clipboard-read; clipboard-write; fullscreen', width: "100%", height: "100%", borderWidth: 0 })) : (_jsxs(YStack, { maxW: 460, px: 24, items: "center", gap: 14, children: [_jsx(YStack, { width: 56, height: 56, rounded: 16, bg: RAISED, borderWidth: 1, borderColor: LINE, items: "center", justify: "center", children: _jsx(Monitor, { size: 24, color: INK, "aria-hidden": true }) }), _jsx(Text, { fontSize: 17, lineHeight: 23, fontWeight: "600", color: INK, text: "center", children: waking ? t('Booting X11 Desktop Sandbox…') : t('Dedicated Desktop Sandbox Computer') }), _jsx(Text, { fontSize: 13, lineHeight: 19, color: DIM, text: "center", children: t('Every bot gets its own isolated Linux GUI desktop with Chromium, persistent workspace disk ({disk}), and full Computer Use — mouse clicks, drags, keyboard typing, live screenshots, and shell execution.', { disk: disk(bot.name) }) }), _jsxs(XStack, { ...PILL, bg: INK, borderColor: INK, disabled: busy || waking, opacity: busy || waking ? 0.5 : 1, onClick: () => void startComputer(), children: [_jsx(Play, { size: 14, color: "var(--background)", "aria-hidden": true }), _jsx(Text, { ...WORD, color: "var(--background)", children: busy || waking ? t('Starting computer…') : t('Start Desktop Computer') })] })] })) }), _jsxs(YStack, { px: 18, py: 12, gap: 10, bg: FLOOR, borderTopWidth: 1, borderColor: LINE, children: [error ? (_jsx(Text, { role: "alert", fontSize: 12, lineHeight: 17, color: DIM, children: error })) : null, lastAnswer ? (_jsx(YStack, { px: 12, py: 9, rounded: 10, bg: RAISED, borderWidth: 1, borderColor: LINE, maxH: 96, overflowY: "auto", children: _jsx(Text, { fontSize: 12, lineHeight: 17, color: INK, children: lastAnswer }) })) : null, _jsxs(XStack, { render: "form", onSubmit: (e) => void submitComputerTask(e), gap: 8, items: "center", children: [_jsx(Input, { unstyled: true, value: task, onChange: (e) => setTask(e.target.value), placeholder: t('Ask {name} to use its computer (open a URL, click UI, inspect logs, run tests…)', {
169
+ allow: 'clipboard-read; clipboard-write; fullscreen', width: "100%", height: "100%", borderWidth: 0 })) : (_jsxs(YStack, { maxW: 460, px: 24, items: "center", gap: 14, children: [_jsx(YStack, { width: 56, height: 56, rounded: 16, bg: RAISED, borderWidth: 1, borderColor: LINE, items: "center", justify: "center", children: _jsx(Monitor, { size: 24, color: INK, "aria-hidden": true }) }), _jsx(Text, { fontSize: 17, lineHeight: 23, fontWeight: "600", color: "var(--pure-white)", text: "center", children: waking ? t('Booting X11 Desktop Sandbox…') : t('Dedicated Desktop Sandbox Computer') }), _jsx(Text, { fontSize: 13, lineHeight: 19, color: "var(--pure-white)", opacity: 0.72, text: "center", children: t('Every bot gets its own isolated Linux GUI desktop with Chromium, persistent workspace disk ({disk}), and full Computer Use — mouse clicks, drags, keyboard typing, live screenshots, and shell execution.', { disk: disk(bot.name) }) }), _jsxs(XStack, { ...PILL, bg: "var(--pure-white)", borderColor: "var(--pure-white)", disabled: busy || waking, opacity: busy || waking ? 0.5 : 1, onClick: () => void startComputer(), children: [_jsx(Play, { size: 14, color: "var(--pure-black)", "aria-hidden": true }), _jsx(Text, { ...WORD, color: "var(--pure-black)", children: busy || waking ? t('Starting computer…') : t('Start Desktop Computer') })] })] })) }), _jsxs(YStack, { px: 18, py: 12, gap: 10, bg: FLOOR, borderTopWidth: 1, borderColor: LINE, children: [error ? (_jsx(Text, { role: "alert", fontSize: 12, lineHeight: 17, color: DIM, children: error })) : null, lastAnswer ? (_jsx(YStack, { px: 12, py: 9, rounded: 10, bg: RAISED, borderWidth: 1, borderColor: LINE, maxH: 96, overflowY: "auto", children: _jsx(Text, { fontSize: 12, lineHeight: 17, color: INK, children: lastAnswer }) })) : null, _jsxs(XStack, { render: "form", onSubmit: (e) => void submitComputerTask(e), gap: 8, items: "center", children: [_jsx(Input, { unstyled: true, value: task, onChange: (e) => setTask(e.target.value), placeholder: t('Ask {name} to use its computer (open a URL, click UI, inspect logs, run tests…)', {
170
170
  name: displayName,
171
171
  }), "aria-label": t('Computer Use directive'), flex: 1, height: 38, px: 14, rounded: 999, bg: RAISED, borderWidth: 1, borderColor: LINE, color: INK, fontSize: 13, placeholderTextColor: "$placeholderColor" }), _jsxs(XStack, { ...PILL, type: 'submit', height: 38, px: 15, bg: INK, borderColor: INK, disabled: !task.trim() || runningTask, opacity: !task.trim() || runningTask ? 0.45 : 1, children: [_jsx(Send, { size: 13, color: "var(--background)", "aria-hidden": true }), _jsx(Text, { ...WORD, fontSize: 13, color: "var(--background)", children: runningTask ? t('Working…') : t('Computer Use') })] })] }), _jsxs(XStack, { items: "center", gap: 6, flexWrap: "wrap", children: [_jsx(Text, { fontSize: 11, lineHeight: 15, color: DIM, children: t('Quick actions:') }), [
172
172
  { label: t('Open hanzo.ai in browser'), prompt: 'Navigate to https://hanzo.ai on the desktop browser, take a screenshot, and summarize what is visible.' },
@@ -349,5 +349,5 @@ export function ConnectorsCatalog({ defaultFilter = 'all', embedded = false, onC
349
349
  : t('No connectors match “{query}”.', { query }) }) })) : null] })] }));
350
350
  }
351
351
  export function ConnectorsDialog({ open, onOpenChange, defaultFilter = 'all', onConnected, }) {
352
- return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsx(DialogContent, { width: "94vw", maxW: 880, p: 0, showCloseButton: false, bg: GROUND, borderWidth: 1, borderColor: LINE, rounded: 16, overflow: "hidden", children: _jsx(YStack, { maxH: "86vh", bg: GROUND, children: _jsx(ConnectorsCatalog, { defaultFilter: defaultFilter, onClose: () => onOpenChange(false), onConnected: onConnected }) }) }) }));
352
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsx(DialogContent, { width: "94vw", maxW: 880, p: 0, showCloseButton: false, bg: GROUND, borderWidth: 1, borderColor: LINE, rounded: 16, overflow: "hidden", children: _jsx(YStack, { height: "82vh", maxH: "86vh", bg: GROUND, children: _jsx(ConnectorsCatalog, { defaultFilter: defaultFilter, onClose: () => onOpenChange(false), onConnected: onConnected }) }) }) }));
353
353
  }
@@ -220,10 +220,12 @@ export function GroupThread({ group, bots, side, onSide, onBack, onEdit, onPickB
220
220
  ? t('Lux Quasar Finalized · {profile}', { profile: quasar.profile.toUpperCase() })
221
221
  : t('Lux Quasar Escalated to Primary ({to})', { to: res.escalatedTo || PRIMARY_BOT }) })] }), _jsx(Text, { fontSize: 11, lineHeight: 15, color: DIM, children: `Support ${Math.round((quasar.support || 0) * 100)}% · Rounds ${quasar.rounds}/${quasar.beta} · k=${quasar.sampleK}` })] }), _jsx(Text, { ...CLIP, fontSize: 11, lineHeight: 15, color: DIM, children: `SHA3-384 Cert: ${quasar.checkpointDigest.slice(0, 24)}… · Threshold: ${quasar.thresholdCommitment.slice(0, 20)}…` })] })) : null, _jsxs(YStack, { "data-parity-key": "bots.theirs", px: 16, py: 13, rounded: 16, bg: RAISED, borderWidth: 1, borderColor: LINE, gap: 8, children: [_jsx(Text, { fontSize: 14, lineHeight: 21, color: INK, whiteSpace: "pre-wrap", children: res.output }), res.proposals?.length ? (_jsxs(YStack, { pt: 6, borderTopWidth: 1, borderColor: LINE, gap: 8, children: [_jsxs(XStack, { render: "button", type: 'button', onClick: () => setExpanded((prev) => ({ ...prev, [turn.id]: !showProps })), items: "center", gap: 5, bg: "transparent", borderWidth: 0, p: 0, cursor: "pointer", children: [_jsx(ChevronRight, { size: 13, color: DIM, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 16, color: DIM, children: showProps
222
222
  ? t('Hide {n} bot proposals', { n: res.proposals.length })
223
- : t('Inspect {n} bot proposals & verdicts ({ms}ms)', {
224
- n: res.proposals.length,
225
- ms: res.durationMs,
226
- }) })] }), showProps ? (_jsx(YStack, { gap: 6, children: res.proposals.map((p) => (_jsxs(YStack, { p: 10, rounded: 10, bg: GROUND, borderWidth: 1, borderColor: LINE, gap: 4, children: [_jsxs(XStack, { items: "center", justify: "space-between", children: [_jsx(Text, { fontSize: 12, lineHeight: 16, fontWeight: "600", color: INK, children: `${called(p.agent)} (Layer ${p.layer})` }), _jsx(Text, { fontSize: 11, lineHeight: 15, color: DIM, children: `Verdict: ${p.verdict || 'propose'} · Conf ${Math.round((p.confidence || 0) * 100)}%` })] }), _jsx(Text, { fontSize: 12, lineHeight: 17, color: DIM, whiteSpace: "pre-wrap", children: p.output || p.error || '' })] }, p.agent))) })) : null] })) : null] })] })) : null] }, turn.id));
223
+ : res.durationMs
224
+ ? t('Inspect {n} bot proposals & verdicts ({ms}ms)', {
225
+ n: res.proposals.length,
226
+ ms: res.durationMs,
227
+ })
228
+ : t('Inspect {n} bot proposals & verdicts', { n: res.proposals.length }) })] }), showProps ? (_jsx(YStack, { gap: 6, children: res.proposals.map((p) => (_jsxs(YStack, { p: 10, rounded: 10, bg: GROUND, borderWidth: 1, borderColor: LINE, gap: 4, children: [_jsxs(XStack, { items: "center", justify: "space-between", children: [_jsx(Text, { fontSize: 12, lineHeight: 16, fontWeight: "600", color: INK, children: `${called(p.agent)} (Layer ${p.layer})` }), _jsx(Text, { fontSize: 11, lineHeight: 15, color: DIM, children: `Verdict: ${p.verdict || 'propose'} · Conf ${Math.round((p.confidence || 0) * 100)}%` })] }), _jsx(Text, { fontSize: 12, lineHeight: 17, color: DIM, whiteSpace: "pre-wrap", children: p.output || p.error || '' })] }, p.agent))) })) : null] })) : null] })] })) : null] }, turn.id));
227
229
  })] }), _jsx(YStack, { "data-parity-key": "bots.composer", px: 16, pb: 16, pt: 8, borderTopWidth: 1, borderColor: LINE, children: _jsxs(XStack, { render: "form", onSubmit: (e) => void send(e), maxW: 760, width: "100%", self: "center", gap: 8, items: "center", children: [_jsx(Input, { unstyled: true, value: input, onChange: (e) => setInput(e.target.value), placeholder: t('Direct {group} ({policy})…', { group: group.name, policy: policyBadge(group.policy) }), "aria-label": t('Message {group}', { group: group.name }), flex: 1, height: 42, px: 16, rounded: 999, bg: RAISED, borderWidth: 1, borderColor: LINE, color: INK, fontSize: 14, placeholderTextColor: "$placeholderColor" }), _jsxs(XStack, { ...PILL, type: 'submit', height: 42, px: 16, bg: INK, borderColor: INK, disabled: !input.trim() || running, opacity: !input.trim() || running ? 0.45 : 1, children: [_jsx(Send, { size: 14, color: "var(--background)", "aria-hidden": true }), _jsx(Text, { ...WORD, color: "var(--background)", children: running ? t('Coordinating…') : t('Run Group') })] })] }) })] }));
228
230
  }
229
231
  export function GroupPanel({ group, groups, bots, onClose, onEdit, onDelete, onPickBot, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/app",
3
- "version": "0.3.86",
3
+ "version": "0.3.88",
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",