@hanzo/app 0.2.0 → 0.2.2
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/Column.js +3 -3
- package/dist/Palette.js +5 -5
- package/dist/Top.js +1 -1
- package/dist/agents.d.ts +1 -0
- package/dist/agents.js +5 -4
- package/package.json +8 -3
package/dist/Column.js
CHANGED
|
@@ -100,12 +100,12 @@ export function Column({ host, mode, thread, go, onShut, onSeek, onBack, drawer
|
|
|
100
100
|
const scheduled = useScheduled(host, dev, at === 'scheduled');
|
|
101
101
|
const groups = places ??
|
|
102
102
|
(at === 'customize'
|
|
103
|
-
? tabs(host, dev)
|
|
103
|
+
? tabs(host, dev, t)
|
|
104
104
|
: at === 'library'
|
|
105
|
-
? library(host, dev)
|
|
105
|
+
? library(host, dev, t)
|
|
106
106
|
: at === 'scheduled'
|
|
107
107
|
? scheduled
|
|
108
|
-
: own(host, dev));
|
|
108
|
+
: own(host, dev, t));
|
|
109
109
|
const open = (row) => (row.kind === 'chat' ? go(talk(row.id)) : dev(row.id));
|
|
110
110
|
// Chat's New; Dev's is the first of its places.
|
|
111
111
|
const create = () => {
|
package/dist/Palette.js
CHANGED
|
@@ -79,7 +79,7 @@ export function places(host, go, t = english) {
|
|
|
79
79
|
{ id: 'studio', label: 'Studio', icon: _jsx(WandSparkles, { ...ICON }), run: () => go(studio('')) },
|
|
80
80
|
{ id: 'tabs', label: 'Tabs', icon: _jsx(SquareTerminal, { ...ICON }), run: () => go(TERMINALS) },
|
|
81
81
|
...(host ? [{ id: 'team', label: 'Team', icon: _jsx(Users, { ...ICON }), keywords: ['workspace'], run: () => out(WORKSPACE) }] : []),
|
|
82
|
-
...(host ? rows(nav(host, builder).map((g) => ({ links: g.links.filter((l) => l.id !== NEW) })), '', 'dev') : []),
|
|
82
|
+
...(host ? rows(nav(host, builder, t).map((g) => ({ links: g.links.filter((l) => l.id !== NEW) })), '', 'dev') : []),
|
|
83
83
|
{ id: 'settings', label: t('Settings'), icon: _jsx(Settings, { ...ICON }), shortcut: ['Mod', ','], run: () => go(settings()) },
|
|
84
84
|
// The site's own pages, outside the app: the browser loads them.
|
|
85
85
|
{ id: 'referral', label: t('Referral'), icon: _jsx(Gift, { ...ICON }), keywords: ['invite', 'share'], run: () => window.location.assign(site('/referral')) },
|
|
@@ -92,9 +92,9 @@ export function places(host, go, t = english) {
|
|
|
92
92
|
const deep = [
|
|
93
93
|
...(host
|
|
94
94
|
? [
|
|
95
|
-
...rows(sections(host, builder).map((g) => ({ links: g.links.filter((l) => paged(l.id)) })), t('Settings'), 'settings'),
|
|
96
|
-
...rows(tabs(host, builder), t('Customize'), 'customize'),
|
|
97
|
-
...rows(library(host, builder).slice(1), t('Library'), 'library'),
|
|
95
|
+
...rows(sections(host, builder, t).map((g) => ({ links: g.links.filter((l) => paged(l.id)) })), t('Settings'), 'settings'),
|
|
96
|
+
...rows(tabs(host, builder, t), t('Customize'), 'customize'),
|
|
97
|
+
...rows(library(host, builder, t).slice(1), t('Library'), 'library'),
|
|
98
98
|
...rows(made(host, (p) => go(studio(p))), 'Studio', 'studio').filter((a) => a.id !== `studio-${NEW}`),
|
|
99
99
|
]
|
|
100
100
|
: []),
|
|
@@ -127,7 +127,7 @@ function tune(go) {
|
|
|
127
127
|
}
|
|
128
128
|
/** The palette's actions, named through `t`; a host that cannot do one (no theme to change, no org to pick) is not offered it. */
|
|
129
129
|
export function actions(host, go, signOut, keys, t = english) {
|
|
130
|
-
const upload = host ? library(host, (p) => go(app(p)))[0]?.links.find((l) => l.id === 'upload') : undefined;
|
|
130
|
+
const upload = host ? library(host, (p) => go(app(p)), t)[0]?.links.find((l) => l.id === 'upload') : undefined;
|
|
131
131
|
const list = [
|
|
132
132
|
{ id: 'new-chat', label: t('New chat'), icon: _jsx(SquarePen, { ...ICON }), run: () => (empty(), go(talk())) },
|
|
133
133
|
{ id: 'new-task', label: t('New Dev task'), icon: _jsx(Code2, { ...ICON }), keywords: ['run'], run: () => go(app('')) },
|
package/dist/Top.js
CHANGED
|
@@ -47,7 +47,7 @@ function Side({ value, children }) {
|
|
|
47
47
|
}
|
|
48
48
|
export function Top({ host, mode, places, go, onMenu, onChat, onDev, }) {
|
|
49
49
|
const { t } = useI18n();
|
|
50
|
-
const made = mode === 'chat' ? null : (places ?? nav(host, (p) => host.go(p))).flatMap((g) => g.links).find((l) => l.id === NEW);
|
|
50
|
+
const made = mode === 'chat' ? null : (places ?? nav(host, (p) => host.go(p), t)).flatMap((g) => g.links).find((l) => l.id === NEW);
|
|
51
51
|
const fresh = mode === 'chat'
|
|
52
52
|
? {
|
|
53
53
|
label: t('New chat'),
|
package/dist/agents.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const MEMOJI = "memoji style 3D emoji portrait, head and shoulder
|
|
|
12
12
|
* The default agents an org adds in one press (Customize › Agents, @hanzo/build
|
|
13
13
|
* `hire`): the core team, each as its persona writes it, then QA, Ops and
|
|
14
14
|
* Support. An org starts with none of them and loads none until it adds them.
|
|
15
|
+
* Browse lists them under Team, by the name each goes by.
|
|
15
16
|
*/
|
|
16
17
|
export declare const CAST: NonNullable<Host['cast']>;
|
|
17
18
|
/**
|
package/dist/agents.js
CHANGED
|
@@ -14,12 +14,13 @@ export const MEMOJI = 'memoji style 3D emoji portrait, head and shoulders, cente
|
|
|
14
14
|
* The default agents an org adds in one press (Customize › Agents, @hanzo/build
|
|
15
15
|
* `hire`): the core team, each as its persona writes it, then QA, Ops and
|
|
16
16
|
* Support. An org starts with none of them and loads none until it adds them.
|
|
17
|
+
* Browse lists them under Team, by the name each goes by.
|
|
17
18
|
*/
|
|
18
19
|
export const CAST = [
|
|
19
|
-
...TEAM.map((one) => ({ name: one.id, description: `${one.name} — ${one.role}`, model: one.model, instructions: one.instructions, avatar: `/agents/${one.id}.png` })),
|
|
20
|
-
{ name: 'qa', description: 'QA — Automated Testing & Verification', model: 'enso-auto', instructions: '' },
|
|
21
|
-
{ name: 'ops', description: 'Ops — Site Reliability & Cloud Infrastructure', model: 'enso-auto', instructions: '' },
|
|
22
|
-
{ name: 'support', description: 'Support — Customer Support & Triage Specialist', model: 'enso-auto', instructions: '' },
|
|
20
|
+
...TEAM.map((one) => ({ name: one.id, title: one.name, category: 'Team', description: `${one.name} — ${one.role}`, model: one.model, instructions: one.instructions, avatar: `/agents/${one.id}.png` })),
|
|
21
|
+
{ name: 'qa', title: 'QA', category: 'Team', description: 'QA — Automated Testing & Verification', model: 'enso-auto', instructions: '' },
|
|
22
|
+
{ name: 'ops', title: 'Ops', category: 'Team', description: 'Ops — Site Reliability & Cloud Infrastructure', model: 'enso-auto', instructions: '' },
|
|
23
|
+
{ name: 'support', title: 'Support', category: 'Team', description: 'Support — Customer Support & Triage Specialist', model: 'enso-auto', instructions: '' },
|
|
23
24
|
];
|
|
24
25
|
const RANK = new Map(TEAM.map((one, i) => [one.id, i]));
|
|
25
26
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@hanzo/ai": ">=0.6.23",
|
|
51
51
|
"@hanzo/appearance": ">=0.2.6",
|
|
52
|
-
"@hanzo/build": ">=0.2.
|
|
52
|
+
"@hanzo/build": ">=0.2.81",
|
|
53
53
|
"@hanzo/composer": ">=0.2.0",
|
|
54
54
|
"@hanzo/event": ">=0.3.56",
|
|
55
55
|
"@hanzo/gui": "^8.3.5",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@hanzo/ai": "0.6.23",
|
|
71
71
|
"@hanzo/appearance": "0.2.8",
|
|
72
|
-
"@hanzo/build": "0.2.
|
|
72
|
+
"@hanzo/build": "0.2.81",
|
|
73
73
|
"@hanzo/composer": "0.2.0",
|
|
74
74
|
"@hanzo/design": "0.5.34",
|
|
75
75
|
"@hanzo/event": "0.3.56",
|
|
@@ -105,6 +105,11 @@
|
|
|
105
105
|
"engines": {
|
|
106
106
|
"node": ">=22.18"
|
|
107
107
|
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"@hanzo/tabs": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
108
113
|
"scripts": {
|
|
109
114
|
"gen": "node scripts/team.mjs",
|
|
110
115
|
"build": "rm -rf dist && node scripts/team.mjs && tsc -p tsconfig.build.json && node scripts/specifiers.mjs",
|