@hanzo/app 0.2.55 → 0.2.57
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/Board.js +121 -37
- package/dist/Boxes.js +16 -12
- package/dist/CalScheduler.js +81 -40
- package/dist/Chat.js +1 -2
- package/dist/Chrome.d.ts +4 -3
- package/dist/Chrome.js +7 -6
- package/dist/Contents.d.ts +1 -1
- package/dist/Contents.js +1 -2
- package/dist/Drive.js +121 -100
- package/dist/Inbox.js +7 -7
- package/dist/Market.js +15 -10
- package/dist/Meet.js +78 -48
- package/dist/Orgs.js +9 -10
- package/dist/Palette.d.ts +1 -1
- package/dist/Palette.js +1 -2
- package/dist/Schedule.js +15 -11
- package/dist/Settings.d.ts +1 -1
- package/dist/SettingsPane.js +2 -2
- package/dist/Shared.js +16 -11
- package/dist/Talk.js +4 -4
- package/dist/Terminals.js +3 -1
- package/dist/Usage.js +3 -3
- package/dist/WindowControls.js +5 -3
- package/dist/Work.js +51 -28
- package/dist/bots/Bots.js +129 -73
- package/dist/bots/runtime.js +103 -41
- package/dist/cast.d.ts +1 -1
- package/dist/cast.js +1 -1
- package/dist/failure.d.ts +1 -1
- package/dist/failure.js +1 -1
- package/dist/lib/limits.d.ts +1 -1
- package/dist/lib/limits.js +1 -1
- package/dist/lib/org.d.ts +3 -3
- package/dist/lib/org.js +4 -5
- package/dist/lib/orgname.d.ts +1 -1
- package/dist/lib/orgname.js +1 -1
- package/dist/lib/pay.d.ts +6 -2
- package/dist/lib/pay.js +15 -2
- package/dist/lib/plans.d.ts +1 -1
- package/dist/lib/plans.js +1 -1
- package/dist/lib/tier.d.ts +2 -2
- package/dist/lib/tier.js +6 -6
- package/dist/look.js +10 -8
- package/dist/recent.d.ts +1 -1
- package/dist/recent.js +1 -2
- package/dist/thread.js +1 -1
- package/package.json +3 -3
- package/dist/say.d.ts +0 -4
- package/dist/say.js +0 -7
package/dist/CalScheduler.js
CHANGED
|
@@ -2,97 +2,127 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import { Calendar as CalendarIcon, Plus, Bot, Video, ExternalLink, Zap, Trash2, X, } from 'lucide-react';
|
|
5
|
+
import { phrase } from '@hanzo/i18n';
|
|
5
6
|
import { Text, View, XStack, YStack } from '@hanzo/gui';
|
|
6
7
|
import { Button } from '@hanzo/ui';
|
|
8
|
+
import { useI18n } from '@hanzo/i18n/react';
|
|
7
9
|
const DEFAULT_EVENTS = [
|
|
8
10
|
{
|
|
9
11
|
id: 'evt-1',
|
|
10
|
-
title: 'Daily Morning AI Intelligence Digest',
|
|
12
|
+
title: phrase('Daily Morning AI Intelligence Digest'),
|
|
11
13
|
type: 'bot_automation',
|
|
12
14
|
date: '2026-09-04',
|
|
13
15
|
time: '09:00',
|
|
14
|
-
duration: '15m',
|
|
16
|
+
duration: phrase('15m'),
|
|
15
17
|
botName: 'Chief',
|
|
16
18
|
cronPattern: '0 9 * * 1-5',
|
|
17
|
-
description: 'Scrape breaking frontier AI papers, benchmark shifts, and repo PRs into team Slack.',
|
|
19
|
+
description: phrase('Scrape breaking frontier AI papers, benchmark shifts, and repo PRs into team Slack.'),
|
|
18
20
|
status: 'scheduled',
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
id: 'evt-2',
|
|
22
|
-
title: 'Platform Architecture & Inference Sync',
|
|
24
|
+
title: phrase('Platform Architecture & Inference Sync'),
|
|
23
25
|
type: 'meeting',
|
|
24
26
|
date: '2026-09-04',
|
|
25
27
|
time: '18:00',
|
|
26
|
-
duration: '45m',
|
|
28
|
+
duration: phrase('45m'),
|
|
27
29
|
meetUrl: 'https://meet.hanzo.ai/platform-architecture',
|
|
28
30
|
botName: 'Hanzo Coder (Bot Co-pilot)',
|
|
29
|
-
description: 'Sync on port 9005 drive server performance and ingress routing.',
|
|
31
|
+
description: phrase('Sync on port 9005 drive server performance and ingress routing.'),
|
|
30
32
|
status: 'scheduled',
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
35
|
id: 'evt-3',
|
|
34
|
-
title: 'Autonomous Outbound Prospecting Run',
|
|
36
|
+
title: phrase('Autonomous Outbound Prospecting Run'),
|
|
35
37
|
type: 'bot_automation',
|
|
36
38
|
date: '2026-09-04',
|
|
37
39
|
time: '11:00',
|
|
38
|
-
duration: '60m',
|
|
40
|
+
duration: phrase('60m'),
|
|
39
41
|
botName: 'Sales Outbound',
|
|
40
42
|
cronPattern: '0 11 * * 1-5',
|
|
41
|
-
description: 'Extract 50 lookalike enterprise leads and prepare personalized drafts.',
|
|
43
|
+
description: phrase('Extract 50 lookalike enterprise leads and prepare personalized drafts.'),
|
|
42
44
|
status: 'scheduled',
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
47
|
id: 'evt-4',
|
|
46
|
-
title: 'Hourly GitHub PR & Typecheck Review',
|
|
48
|
+
title: phrase('Hourly GitHub PR & Typecheck Review'),
|
|
47
49
|
type: 'agent_query',
|
|
48
50
|
date: '2026-09-04',
|
|
49
51
|
time: '14:00',
|
|
50
|
-
duration: '20m',
|
|
52
|
+
duration: phrase('20m'),
|
|
51
53
|
botName: 'Hanzo Coder',
|
|
52
54
|
cronPattern: '0 * * * *',
|
|
53
|
-
description: 'Verify type safety and lint across all open PRs in hanzoai organization.',
|
|
55
|
+
description: phrase('Verify type safety and lint across all open PRs in hanzoai organization.'),
|
|
54
56
|
status: 'scheduled',
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
id: 'evt-5',
|
|
58
|
-
title: 'Research Review',
|
|
60
|
+
title: phrase('Research Review'),
|
|
59
61
|
type: 'meeting',
|
|
60
62
|
date: '2026-09-04',
|
|
61
63
|
time: '20:00',
|
|
62
|
-
duration: '60m',
|
|
64
|
+
duration: phrase('60m'),
|
|
63
65
|
meetUrl: 'https://meet.hanzo.ai/research-review',
|
|
64
66
|
botName: 'Hanzo Researcher',
|
|
65
|
-
description: 'Review datasets and proofs for the week’s research runs.',
|
|
67
|
+
description: phrase('Review datasets and proofs for the week’s research runs.'),
|
|
66
68
|
status: 'scheduled',
|
|
67
69
|
},
|
|
68
70
|
];
|
|
69
71
|
/** The public booking pages, one card each on the Booker tab. */
|
|
70
72
|
const BOOKINGS = [
|
|
71
73
|
{
|
|
72
|
-
title: 'Quick Sync',
|
|
73
|
-
duration: '15m',
|
|
74
|
+
title: phrase('Quick Sync'),
|
|
75
|
+
duration: phrase('15m'),
|
|
74
76
|
slug: '15min',
|
|
75
|
-
description: 'Fast 15-minute alignment or triage call on Hanzo Meet.',
|
|
77
|
+
description: phrase('Fast 15-minute alignment or triage call on Hanzo Meet.'),
|
|
76
78
|
},
|
|
77
79
|
{
|
|
78
|
-
title: 'Technical Deep Dive',
|
|
79
|
-
duration: '30m',
|
|
80
|
+
title: phrase('Technical Deep Dive'),
|
|
81
|
+
duration: phrase('30m'),
|
|
80
82
|
slug: '30min',
|
|
81
|
-
description: 'In-depth architectural review, bug diagnosis, or sprint planning.',
|
|
83
|
+
description: phrase('In-depth architectural review, bug diagnosis, or sprint planning.'),
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
|
-
title: 'AI Pair Programming',
|
|
85
|
-
duration: '45m',
|
|
86
|
+
title: phrase('AI Pair Programming'),
|
|
87
|
+
duration: phrase('45m'),
|
|
86
88
|
slug: 'pair-ai',
|
|
87
|
-
description: 'Interactive coding session with Hanzo Coder assisting in the terminal.',
|
|
89
|
+
description: phrase('Interactive coding session with Hanzo Coder assisting in the terminal.'),
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
|
-
title: 'Executive & Strategy Sync',
|
|
91
|
-
duration: '60m',
|
|
92
|
+
title: phrase('Executive & Strategy Sync'),
|
|
93
|
+
duration: phrase('60m'),
|
|
92
94
|
slug: '60min',
|
|
93
|
-
description: 'Quarterly roadmap sync, partnerships, and leadership decision forum.',
|
|
95
|
+
description: phrase('Quarterly roadmap sync, partnerships, and leadership decision forum.'),
|
|
94
96
|
},
|
|
95
97
|
];
|
|
98
|
+
/** Demo titles and descriptions. A reader's own event is drawn as they wrote it. */
|
|
99
|
+
const AUTHORED = new Set(DEFAULT_EVENTS.flatMap((event) => [event.title, event.description].filter((line) => Boolean(line))));
|
|
100
|
+
const TYPE_LABEL = {
|
|
101
|
+
meeting: phrase('meeting'),
|
|
102
|
+
bot_automation: phrase('bot automation'),
|
|
103
|
+
agent_query: phrase('agent query'),
|
|
104
|
+
};
|
|
105
|
+
/** A bot's label. Names stay as written; a role this screen authors is translated. */
|
|
106
|
+
function botLabel(name, t) {
|
|
107
|
+
switch (name) {
|
|
108
|
+
case 'Sales Outbound':
|
|
109
|
+
return t('Sales Outbound');
|
|
110
|
+
case 'Inbox Manager':
|
|
111
|
+
return t('Inbox Manager');
|
|
112
|
+
case 'Account Manager':
|
|
113
|
+
return t('Account Manager');
|
|
114
|
+
case 'Talent Scout':
|
|
115
|
+
return t('Talent Scout');
|
|
116
|
+
case 'Expense Manager':
|
|
117
|
+
return t('Expense Manager');
|
|
118
|
+
case 'Offsite crew':
|
|
119
|
+
return t('Offsite crew');
|
|
120
|
+
case 'Hanzo Coder (Bot Co-pilot)':
|
|
121
|
+
return t('{name} (Bot Co-pilot)', { name: 'Hanzo Coder' });
|
|
122
|
+
default:
|
|
123
|
+
return name;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
96
126
|
/** design's smallest rung (`--text-floor`, 10px), below gui's `$1`; gui's font size takes a rung or a number. */
|
|
97
127
|
const FLOOR = 10;
|
|
98
128
|
const MODAL = 'var(--z-modal)';
|
|
@@ -110,6 +140,7 @@ const FIELD = {
|
|
|
110
140
|
/** A dialog label. */
|
|
111
141
|
const LABEL = { render: 'label', fontSize: '$1', color: '$soft', mb: 4, display: 'block' };
|
|
112
142
|
export function CalScheduler() {
|
|
143
|
+
const { t, locale } = useI18n();
|
|
113
144
|
const [events, setEvents] = useState(() => {
|
|
114
145
|
if (typeof window !== 'undefined') {
|
|
115
146
|
try {
|
|
@@ -177,20 +208,30 @@ export function CalScheduler() {
|
|
|
177
208
|
const handleDeleteEvent = (id) => {
|
|
178
209
|
setEvents((prev) => prev.filter((e) => e.id !== id));
|
|
179
210
|
};
|
|
180
|
-
return (_jsxs(YStack, { width: "100%", height: "100%", bg: "$background", overflowX: "auto", overflowY: "auto", children: [_jsxs(XStack, { minH: 56, px: 24, py: 8, gap: 10, flexWrap: "wrap", bg: "$panel", borderBottomWidth: 1, borderBottomColor: "$borderColor", items: "center", justify: "space-between", children: [_jsxs(XStack, { items: "center", gap: 12, shrink: 1, minW: "auto", children: [_jsx(XStack, { width: 32, height: 32, rounded: 8, bg: "$raised", items: "center", justify: "center", shrink: 1, minW: "auto", children: _jsx(CalendarIcon, { size: 18, color: "var(--foreground)" }) }), _jsxs(YStack, { shrink: 1, minW: "auto", children: [_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", children:
|
|
181
|
-
{ id: 'scheduler', label: 'Master Schedule' },
|
|
182
|
-
{ id: 'automations', label: 'Bot Crons' },
|
|
183
|
-
{ id: 'booker', label: 'Public Booker' },
|
|
184
|
-
].map((tab) => (_jsx(Button, { size: "sm", variant: activeTab === tab.id ? 'primary' : 'ghost', ...(activeTab === tab.id ? null : { color: '$soft' }), "aria-pressed": activeTab === tab.id, onClick: () => setActiveTab(tab.id), children: tab.label }, tab.id))) }), _jsxs(Button, { variant: "primary", size: "sm", onClick: () => setShowModal(true), children: [_jsx(Plus, { size: 14 }),
|
|
211
|
+
return (_jsxs(YStack, { width: "100%", height: "100%", bg: "$background", overflowX: "auto", overflowY: "auto", children: [_jsxs(XStack, { minH: 56, px: 24, py: 8, gap: 10, flexWrap: "wrap", bg: "$panel", borderBottomWidth: 1, borderBottomColor: "$borderColor", items: "center", justify: "space-between", children: [_jsxs(XStack, { items: "center", gap: 12, shrink: 1, minW: "auto", children: [_jsx(XStack, { width: 32, height: 32, rounded: 8, bg: "$raised", items: "center", justify: "center", shrink: 1, minW: "auto", children: _jsx(CalendarIcon, { size: 18, color: "var(--foreground)" }) }), _jsxs(YStack, { shrink: 1, minW: "auto", children: [_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", children: t('Hanzo Calendar & Scheduler') }), _jsx(Text, { fontSize: FLOOR, fontWeight: "700", bg: "$hover", color: "$soft", borderWidth: 1, borderColor: "$borderColor", px: 6, py: 1, rounded: 4, children: "cal.hanzo.ai" })] }), _jsx(Text, { fontSize: "$1", color: "$soft", children: t('Full unified scheduler across meetings, bot routines, automated crons, and query triggers') })] })] }), _jsxs(XStack, { items: "center", gap: 10, shrink: 1, minW: "auto", flexWrap: "wrap", children: [_jsx(XStack, { items: "center", gap: 2, bg: "$hover", rounded: 8, p: 2, borderWidth: 1, borderColor: "$borderColor", shrink: 1, minW: "auto", children: [
|
|
212
|
+
{ id: 'scheduler', label: t('Master Schedule') },
|
|
213
|
+
{ id: 'automations', label: t('Bot Crons') },
|
|
214
|
+
{ id: 'booker', label: t('Public Booker') },
|
|
215
|
+
].map((tab) => (_jsx(Button, { size: "sm", variant: activeTab === tab.id ? 'primary' : 'ghost', ...(activeTab === tab.id ? null : { color: '$soft' }), "aria-pressed": activeTab === tab.id, onClick: () => setActiveTab(tab.id), children: tab.label }, tab.id))) }), _jsxs(Button, { variant: "primary", size: "sm", onClick: () => setShowModal(true), children: [_jsx(Plus, { size: 14 }), t('Schedule Event / Routine')] })] })] }), activeTab === 'booker' ? (_jsxs(YStack, { flex: 1, p: 28, overflowY: "auto", gap: 20, children: [_jsxs(YStack, { gap: 4, children: [_jsx(Text, { fontSize: "$7", fontWeight: "800", color: "$ink", children: t('Public Booking Pages') }), _jsx(Text, { fontSize: "$2", color: "$soft", children: t('Shareable links powered by the Cal.com fork at {link}. Allows teammates, clients, and automated agents to book dedicated time slots.', {
|
|
216
|
+
link: (_jsx(Text, { render: _jsx("a", { href: "https://cal.hanzo.ai", target: "_blank", rel: "noopener noreferrer" }), color: "$ink", textDecorationLine: "underline", children: "cal.hanzo.ai" })),
|
|
217
|
+
}) })] }), _jsx(View, { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))", gap: 16, children: BOOKINGS.map((card) => (_jsxs(YStack, { bg: "$panel", borderWidth: 1, borderColor: "$borderColor", rounded: 10, p: 18, gap: 12, children: [_jsxs(XStack, { items: "center", justify: "space-between", children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", children: t(card.title) }), _jsx(Text, { fontSize: "$1", fontWeight: "700", bg: "$hover", px: 8, py: 2, rounded: 4, color: "$soft", children: t(card.duration) })] }), _jsx(Text, { fontSize: "$2", color: "$soft", lineHeight: "$2", children: t(card.description) }), _jsxs(Text, { px: 10, py: 8, bg: "$sunken", rounded: 6, fontSize: "$1", fontFamily: "$mono", color: "$soft", children: ["https://cal.hanzo.ai/alex/", card.slug] }), _jsxs(XStack, { gap: 8, mt: 4, children: [_jsx(Button, { size: "sm", flex: 1, onClick: () => {
|
|
185
218
|
navigator.clipboard.writeText(`https://cal.hanzo.ai/alex/${card.slug}`);
|
|
186
|
-
}, children:
|
|
187
|
-
{ id: 'all', label: 'All Items' },
|
|
188
|
-
{ id: 'meeting', label: 'Human Meetings', icon: Video },
|
|
189
|
-
{ id: 'bot_automation', label: 'Bot Routines', icon: Bot },
|
|
190
|
-
{ id: 'agent_query', label: 'Agent Queries', icon: Zap },
|
|
191
|
-
].map((f) => (_jsxs(Button, { size: "sm", variant: filterType === f.id ? 'secondary' : 'ghost', color: filterType === f.id ? '$ink' : '$soft', "aria-pressed": filterType === f.id, onClick: () => setFilterType(f.id), children: ['icon' in f ? _jsx(f.icon, { size: 13, "aria-hidden": true }) : null, f.label] }, f.id)))] }),
|
|
219
|
+
}, children: t('Copy Link') }), _jsx(Button, { asChild: true, variant: "primary", size: "sm", children: _jsxs("a", { href: `https://cal.hanzo.ai/alex/${card.slug}`, target: "_blank", rel: "noopener noreferrer", children: [t('Open'), _jsx(ExternalLink, { size: 12 })] }) })] })] }, card.slug))) })] })) : (_jsxs(YStack, { flex: 1, overflow: "hidden", children: [_jsxs(XStack, { px: 24, py: 12, bg: "$panel", borderBottomWidth: 1, borderBottomColor: "$borderColor", items: "center", justify: "space-between", flexWrap: "wrap", gap: 8, children: [_jsxs(XStack, { items: "center", gap: 8, shrink: 1, minW: "auto", flexWrap: "wrap", children: [_jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$soft", children: t('Filter:') }), [
|
|
220
|
+
{ id: 'all', label: t('All Items') },
|
|
221
|
+
{ id: 'meeting', label: t('Human Meetings'), icon: Video },
|
|
222
|
+
{ id: 'bot_automation', label: t('Bot Routines'), icon: Bot },
|
|
223
|
+
{ id: 'agent_query', label: t('Agent Queries'), icon: Zap },
|
|
224
|
+
].map((f) => (_jsxs(Button, { size: "sm", variant: filterType === f.id ? 'secondary' : 'ghost', color: filterType === f.id ? '$ink' : '$soft', "aria-pressed": filterType === f.id, onClick: () => setFilterType(f.id), children: ['icon' in f ? _jsx(f.icon, { size: 13, "aria-hidden": true }) : null, f.label] }, f.id)))] }), _jsx(Text, { fontSize: "$1", color: "$faint", children: t('Showing {count} scheduled events & routines', {
|
|
225
|
+
count: filteredEvents.length.toLocaleString(locale),
|
|
226
|
+
}) })] }), _jsx(YStack, { flex: 1, overflowY: "auto", px: 24, py: 20, gap: 10, children: filteredEvents.map((evt) => {
|
|
192
227
|
const isMeeting = evt.type === 'meeting';
|
|
193
228
|
const isAutomation = evt.type === 'bot_automation';
|
|
194
|
-
return (_jsxs(XStack, { bg: "$panel", borderWidth: 1, borderColor: "$borderColor", rounded: 10, px: 20, py: 16, items: "center", justify: "space-between", flexWrap: "wrap", gap: 16, children: [_jsxs(XStack, { items: "center", gap: 16, minW: 180, shrink: 1, children: [_jsx(XStack, { width: 40, height: 40, rounded: 8, bg: "$raised", items: "center", justify: "center", children: isMeeting ? _jsx(Video, { size: 20, color: "var(--foreground)" }) : isAutomation ? _jsx(Bot, { size: 20, color: "var(--foreground)" }) : _jsx(Zap, { size: 20, color: "var(--foreground)" }) }), _jsxs(YStack, { shrink: 1, minW: "auto", children: [_jsx(Text, { fontSize: "$3", fontWeight: "700", color: "$ink", children: evt.time }),
|
|
195
|
-
|
|
229
|
+
return (_jsxs(XStack, { bg: "$panel", borderWidth: 1, borderColor: "$borderColor", rounded: 10, px: 20, py: 16, items: "center", justify: "space-between", flexWrap: "wrap", gap: 16, children: [_jsxs(XStack, { items: "center", gap: 16, minW: 180, shrink: 1, children: [_jsx(XStack, { width: 40, height: 40, rounded: 8, bg: "$raised", items: "center", justify: "center", children: isMeeting ? _jsx(Video, { size: 20, color: "var(--foreground)" }) : isAutomation ? _jsx(Bot, { size: 20, color: "var(--foreground)" }) : _jsx(Zap, { size: 20, color: "var(--foreground)" }) }), _jsxs(YStack, { shrink: 1, minW: "auto", children: [_jsx(Text, { fontSize: "$3", fontWeight: "700", color: "$ink", children: evt.time }), _jsx(Text, { fontSize: "$1", color: "$faint", children: t('{date} · {duration}', { date: evt.date, duration: t(evt.duration) }) })] })] }), _jsxs(View, { flex: 1, minW: 240, display: "block", children: [_jsxs(XStack, { items: "center", gap: 8, mb: 2, children: [_jsx(Text, { fontSize: "$3", fontWeight: "600", color: "$ink", children: AUTHORED.has(evt.title) ? t(evt.title) : evt.title }), _jsx(Text, { fontSize: FLOOR, fontWeight: "700", bg: "$hover", color: "$soft", px: 6, py: 1, rounded: 4, textTransform: "uppercase", children: t(TYPE_LABEL[evt.type]) })] }), _jsx(Text, { display: "block", fontSize: "$2", color: "$soft", mb: 4, children: evt.description && AUTHORED.has(evt.description) ? t(evt.description) : evt.description }), _jsxs(XStack, { items: "center", gap: 12, children: [evt.botName ? (_jsx(Text, { fontSize: "$1", color: "$faint", children: t('Bot: {name}', {
|
|
230
|
+
name: (_jsx(Text, { render: "strong", fontSize: "$1", color: "$quiet", children: botLabel(evt.botName, t) })),
|
|
231
|
+
}) })) : null, evt.cronPattern ? (_jsx(Text, { fontSize: "$1", color: "$faint", children: t('Cron: {pattern}', {
|
|
232
|
+
pattern: (_jsx(Text, { render: "code", color: "$ink", children: evt.cronPattern })),
|
|
233
|
+
}) })) : null, evt.meetUrl ? (_jsx(Text, { fontSize: "$1", color: "$faint", children: t('Link: {url}', {
|
|
234
|
+
url: (_jsx(Text, { render: "code", color: "$ink", children: evt.meetUrl })),
|
|
235
|
+
}) })) : null] })] }), _jsxs(XStack, { items: "center", gap: 8, shrink: 1, minW: "auto", children: [isMeeting ? (_jsx(Button, { asChild: true, variant: "primary", size: "sm", children: _jsxs("a", { href: "/meet", children: [_jsx(Video, { size: 13 }), t('Join /meet')] }) })) : (_jsx(Button, { asChild: true, variant: "primary", size: "sm", children: _jsxs("a", { href: "/bots", children: [_jsx(Bot, { size: 13 }), t('View /bots')] }) })), _jsx(Button, { variant: "ghost", size: "icon-sm", color: "$soft", onClick: () => handleDeleteEvent(evt.id), "aria-label": t('Remove schedule'), title: t('Remove schedule'), children: _jsx(Trash2, { size: 14 }) })] })] }, evt.id));
|
|
236
|
+
}) })] })), showModal ? (_jsx(XStack, { position: "fixed", inset: 0, bg: "var(--surface-scrim)", backdropFilter: "blur(8px)", items: "center", justify: "center", z: MODAL, children: _jsxs(YStack, { width: "100%", maxW: 460, bg: "var(--popover)", borderWidth: 1, borderColor: "var(--border-control)", rounded: 12, p: 24, gap: 16, boxShadow: "var(--shadow-floating)", children: [_jsxs(XStack, { items: "center", justify: "space-between", children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", children: t('Schedule Event or Bot Routine') }), _jsx(Button, { type: "button", variant: "ghost", size: "icon-sm", mr: -8, onClick: () => setShowModal(false), "aria-label": t('Close'), children: _jsx(X, { size: 16, "aria-hidden": true }) })] }), _jsxs(YStack, { render: "form", onSubmit: handleCreateEvent, gap: 12, children: [_jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Title') }), _jsx(Text, { render: _jsx("input", { type: "text", value: newEvent.title, onChange: (e) => setNewEvent({ ...newEvent, title: e.target.value }), placeholder: t('e.g. Daily Security Audit / Team Sync'), required: true }), ...FIELD, px: 12 })] }), _jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Schedule Type') }), _jsxs(Text, { render: _jsx("select", { value: newEvent.type, onChange: (e) => setNewEvent({ ...newEvent, type: e.target.value }) }), ...FIELD, px: 12, children: [_jsx("option", { value: "bot_automation", children: t('Automated Bot Cron Routine') }), _jsx("option", { value: "meeting", children: t('Human Video Meeting (/meet)') }), _jsx("option", { value: "agent_query", children: t('Recurring Agent Query') })] })] }), _jsxs(View, { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 10, children: [_jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Date') }), _jsx(Text, { render: _jsx("input", { type: "date", value: newEvent.date, onChange: (e) => setNewEvent({ ...newEvent, date: e.target.value }) }), ...FIELD, px: 8 })] }), _jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Time') }), _jsx(Text, { render: _jsx("input", { type: "time", value: newEvent.time, onChange: (e) => setNewEvent({ ...newEvent, time: e.target.value }) }), ...FIELD, px: 8 })] })] }), _jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Assigned Bot') }), _jsxs(Text, { render: _jsx("select", { value: newEvent.botName, onChange: (e) => setNewEvent({ ...newEvent, botName: e.target.value }) }), ...FIELD, px: 12, children: [_jsx("option", { value: "Chief", children: "Chief" }), _jsx("option", { value: "Sales Outbound", children: t('Sales Outbound') }), _jsx("option", { value: "Inbox Manager", children: t('Inbox Manager') }), _jsx("option", { value: "Account Manager", children: t('Account Manager') }), _jsx("option", { value: "Talent Scout", children: t('Talent Scout') }), _jsx("option", { value: "Expense Manager", children: t('Expense Manager') }), _jsx("option", { value: "Offsite crew", children: t('Offsite crew') })] })] }), _jsxs(View, { display: "block", children: [_jsx(Text, { ...LABEL, children: t('Description / Instruction') }), _jsx(Text, { render: _jsx("textarea", { value: newEvent.description, onChange: (e) => setNewEvent({ ...newEvent, description: e.target.value }), placeholder: t('Details or cron automation prompt...'), rows: 3 }), ...FIELD, px: 12, "$platform-web": { resize: 'none' } })] }), _jsxs(XStack, { justify: "flex-end", gap: 8, mt: 8, children: [_jsx(Button, { type: "button", onClick: () => setShowModal(false), children: t('Cancel') }), _jsx(Button, { type: "submit", variant: "primary", children: t('Save Schedule') })] })] })] }) })) : null] }));
|
|
196
237
|
}
|
package/dist/Chat.js
CHANGED
|
@@ -28,10 +28,9 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
28
28
|
// belongs in the thread where the reader can see it, not in a caption that
|
|
29
29
|
// pre-emptively refuses on the gateway's behalf.
|
|
30
30
|
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
31
|
-
import { isolate, phrase } from "@hanzo/i18n";
|
|
31
|
+
import { english, isolate, phrase } from "@hanzo/i18n";
|
|
32
32
|
import { useI18n } from "@hanzo/i18n/react";
|
|
33
33
|
import { billed, detail, familyOf, planRequired, plainly, refused } from "./failure.js";
|
|
34
|
-
import { english } from "./say.js";
|
|
35
34
|
import { Prose } from "./Prose.js";
|
|
36
35
|
import { useAgent, useAi, useChat, } from "@hanzo/ai/react";
|
|
37
36
|
import { Chat as ChatSurface, EFFORTS, Failure, MEASURE, Parts, useFamilies, words } from "@hanzo/ui/chat";
|
package/dist/Chrome.d.ts
CHANGED
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
* pill whose 12px of padding the bar takes back with a -12px start margin, the
|
|
16
16
|
* shape hanzo.ai's own bar gives it. So the name's first letter is at the gutter
|
|
17
17
|
* on every page of every host, the focused ones and the marketing ones alike.
|
|
18
|
-
* Under a pointer or keyboard focus the pill takes the
|
|
19
|
-
*
|
|
20
|
-
* back to the site.
|
|
18
|
+
* Under a pointer or keyboard focus the pill takes the bar's one highlight, the
|
|
19
|
+
* `$hover` ground and no outline or border, as every control on hanzo.ai's bar
|
|
20
|
+
* does, and an arrow opens before the name: this goes back to the site.
|
|
21
|
+
* Keyboard focus keeps its ring as well.
|
|
21
22
|
*
|
|
22
23
|
* Being another account, and adding one, write this page down first
|
|
23
24
|
* (destination.ts `rememberDestination`), so the sign-in that follows comes back
|
package/dist/Chrome.js
CHANGED
|
@@ -17,9 +17,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
* pill whose 12px of padding the bar takes back with a -12px start margin, the
|
|
18
18
|
* shape hanzo.ai's own bar gives it. So the name's first letter is at the gutter
|
|
19
19
|
* on every page of every host, the focused ones and the marketing ones alike.
|
|
20
|
-
* Under a pointer or keyboard focus the pill takes the
|
|
21
|
-
*
|
|
22
|
-
* back to the site.
|
|
20
|
+
* Under a pointer or keyboard focus the pill takes the bar's one highlight, the
|
|
21
|
+
* `$hover` ground and no outline or border, as every control on hanzo.ai's bar
|
|
22
|
+
* does, and an arrow opens before the name: this goes back to the site.
|
|
23
|
+
* Keyboard focus keeps its ring as well.
|
|
23
24
|
*
|
|
24
25
|
* Being another account, and adding one, write this page down first
|
|
25
26
|
* (destination.ts `rememberDestination`), so the sign-in that follows comes back
|
|
@@ -46,8 +47,8 @@ const HEIGHT = 60;
|
|
|
46
47
|
const GUTTER = 'var(--page-gutter, 20px)';
|
|
47
48
|
/** The name's pill: its padding, which the bar takes back so the name's first letter is at the gutter. */
|
|
48
49
|
const PAD = 12;
|
|
49
|
-
/** The pill lit: the
|
|
50
|
-
const
|
|
50
|
+
/** The pill lit: the bar's one highlight, a ground and no outline. */
|
|
51
|
+
const LIT = '$hover';
|
|
51
52
|
/** The arrow that opens before the name, and the space after it. */
|
|
52
53
|
const CUE = 14;
|
|
53
54
|
const CUE_GAP = 6;
|
|
@@ -104,5 +105,5 @@ function Home() {
|
|
|
104
105
|
if (typeof document !== 'undefined' && document.documentElement.getAttribute('data-desktop') === 'true') {
|
|
105
106
|
e.preventDefault();
|
|
106
107
|
}
|
|
107
|
-
}, onPointerEnter: point(true), onPointerLeave: point(false), onFocus: focus, onBlur: () => setLit(false) }), "data-slot": "home", display: "flex", items: "center", shrink: 0, height: 34, marginInlineStart: -PAD, paddingInline: PAD, rounded: 999, color: "var(--foreground)", textDecorationLine: "none",
|
|
108
|
+
}, onPointerEnter: point(true), onPointerLeave: point(false), onFocus: focus, onBlur: () => setLit(false) }), "data-slot": "home", display: "flex", items: "center", shrink: 0, height: 34, marginInlineStart: -PAD, paddingInline: PAD, rounded: 999, color: "var(--foreground)", textDecorationLine: "none", bg: lit ? LIT : 'transparent', focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor', outlineOffset: 2 }, transition: "quickest", "data-tauri-drag-region": "deep", children: [_jsx(View, { "aria-hidden": true, display: "flex", items: "center", overflow: "hidden", width: lit ? CUE : 0, marginInlineEnd: lit ? CUE_GAP : 0, opacity: lit ? 1 : 0, transition: "quickest", children: _jsx(Arrow, { size: CUE, strokeWidth: 2.2 }) }), _jsx(HanzoWordmark, { label: brand(), size: 22, "data-tauri-drag-region": "deep" })] }));
|
|
108
109
|
}
|
package/dist/Contents.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type Say } from '@hanzo/i18n';
|
|
1
2
|
import { type Api, type Passage, type WorkFile } from './lib/files.js';
|
|
2
|
-
import { type Say } from './say.js';
|
|
3
3
|
/** How far a file's ingest has got, as Drive's badge and this pane's head say it, in the reader's words given their `t`. */
|
|
4
4
|
export declare function standing(f: WorkFile, t?: Say): string;
|
|
5
5
|
/** The badge a Drive row wears for its index state. */
|
package/dist/Contents.js
CHANGED
|
@@ -10,12 +10,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
// tree `retrieve` reads before it picks where to look, so what a person browses
|
|
11
11
|
// here is what an answer cites.
|
|
12
12
|
import { useEffect, useState } from 'react';
|
|
13
|
-
import { phrase } from '@hanzo/i18n';
|
|
13
|
+
import { phrase, english } from '@hanzo/i18n';
|
|
14
14
|
import { useI18n } from '@hanzo/i18n/react';
|
|
15
15
|
import { ArrowLeft, MessageSquare, X } from 'lucide-react';
|
|
16
16
|
import { Box, Button, Text, XStack, YStack } from '@hanzo/ui';
|
|
17
17
|
import { pct, section as openSection, toc } from './lib/files.js';
|
|
18
|
-
import { english } from './say.js';
|
|
19
18
|
import { BAD } from './lib/mix.js';
|
|
20
19
|
/** What each stage of a file's ingest is doing, as a person reads it: authored English, drawn through `t`. */
|
|
21
20
|
const STAGE = {
|