@hanzo/app 0.2.58 → 0.3.1
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/README.md +8 -8
- package/dist/{Me.d.ts → Account.d.ts} +1 -1
- package/dist/{Me.js → Account.js} +3 -3
- package/dist/App.d.ts +2 -2
- package/dist/App.js +16 -16
- package/dist/{Top.d.ts → Bar.d.ts} +1 -1
- package/dist/{Top.js → Bar.js} +3 -3
- package/dist/Betas.js +1 -1
- package/dist/Board.js +4 -4
- package/dist/Chat.d.ts +4 -4
- package/dist/Chat.js +96 -96
- package/dist/Contacts.js +17 -15
- package/dist/Directory.js +7 -21
- package/dist/Drive.js +6 -6
- package/dist/{Orgs.d.ts → Gate.d.ts} +1 -1
- package/dist/{Orgs.js → Gate.js} +32 -32
- package/dist/{Chrome.d.ts → Header.d.ts} +1 -1
- package/dist/{Chrome.js → Header.js} +1 -1
- package/dist/Home.d.ts +3 -3
- package/dist/Home.js +30 -30
- package/dist/Inbox.js +29 -33
- package/dist/Meet.js +22 -22
- package/dist/Rail.js +6 -6
- package/dist/RightPane.js +2 -2
- package/dist/{Palette.d.ts → Search.d.ts} +1 -1
- package/dist/{Palette.js → Search.js} +1 -1
- package/dist/Settings.d.ts +3 -3
- package/dist/Settings.js +5 -5
- package/dist/SettingsPane.d.ts +2 -2
- package/dist/SettingsPane.js +5 -5
- package/dist/Setup.js +2 -2
- package/dist/Shell.d.ts +22 -31
- package/dist/Shell.js +167 -114
- package/dist/{Column.d.ts → Sidebar.d.ts} +1 -1
- package/dist/{Column.js → Sidebar.js} +5 -5
- package/dist/Support.js +2 -2
- package/dist/Talk.d.ts +3 -3
- package/dist/Talk.js +18 -18
- package/dist/TeamPreview.js +26 -26
- package/dist/TeamStory.js +1 -1
- package/dist/Usage.js +2 -2
- package/dist/Work.js +2 -2
- package/dist/bots/Bots.js +2 -2
- package/dist/bots/Lights.d.ts +1 -1
- package/dist/bots/Lights.js +1 -1
- package/dist/bots/api.d.ts +8 -7
- package/dist/bots/api.js +4 -4
- package/dist/bots/ink.js +3 -3
- package/dist/bots/kit.d.ts +2 -2
- package/dist/bots/kit.js +4 -4
- package/dist/bots/runtime.js +12 -12
- package/dist/cast.d.ts +14 -14
- package/dist/cast.js +12 -12
- package/dist/channels.d.ts +132 -0
- package/dist/{rooms.js → channels.js} +56 -55
- package/dist/conversations.d.ts +8 -8
- package/dist/conversations.js +18 -17
- package/dist/crew.d.ts +1 -1
- package/dist/crew.js +12 -12
- package/dist/dev.js +6 -6
- package/dist/failure.d.ts +2 -2
- package/dist/failure.js +6 -6
- package/dist/ground.d.ts +1 -1
- package/dist/ground.js +1 -1
- package/dist/help.d.ts +1 -1
- package/dist/help.js +2 -2
- package/dist/hint.d.ts +1 -1
- package/dist/hint.js +1 -1
- package/dist/host.d.ts +15 -15
- package/dist/host.js +13 -13
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/lib/ai.js +1 -1
- package/dist/lib/api.d.ts +1 -1
- package/dist/lib/api.js +1 -1
- package/dist/lib/destination.d.ts +3 -3
- package/dist/lib/destination.js +3 -3
- package/dist/lib/home.d.ts +2 -2
- package/dist/lib/home.js +2 -2
- package/dist/lib/host.d.ts +17 -16
- package/dist/lib/host.js +19 -18
- package/dist/lib/hostname.d.ts +1 -1
- package/dist/lib/hostname.js +1 -1
- package/dist/lib/list.d.ts +1 -1
- package/dist/lib/list.js +1 -1
- package/dist/lib/models.js +1 -1
- package/dist/lib/org.d.ts +1 -1
- package/dist/lib/org.js +1 -1
- package/dist/lib/orgname.d.ts +1 -1
- package/dist/lib/orgname.js +1 -1
- package/dist/lib/session.d.ts +4 -4
- package/dist/lib/session.js +6 -6
- package/dist/lib/tier.d.ts +4 -4
- package/dist/lib/tier.js +5 -5
- package/dist/lib/tiers.d.ts +1 -1
- package/dist/lib/tiers.js +10 -10
- package/dist/lib/web.d.ts +1 -1
- package/dist/lib/web.js +1 -1
- package/dist/look.js +7 -9
- package/dist/network.d.ts +18 -18
- package/dist/network.js +28 -28
- package/dist/open.d.ts +24 -22
- package/dist/open.js +19 -19
- package/dist/pane.d.ts +6 -6
- package/dist/pane.js +10 -10
- package/dist/roster.d.ts +2 -2
- package/dist/roster.js +1 -1
- package/dist/seek.js +1 -1
- package/dist/slide.d.ts +1 -1
- package/dist/slide.js +1 -1
- package/dist/span.js +1 -1
- package/dist/stars.d.ts +4 -4
- package/dist/stars.js +8 -10
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/team.js +1 -1
- package/dist/thread.d.ts +3 -3
- package/dist/thread.js +4 -4
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1 -1
- package/dist/where.d.ts +7 -7
- package/dist/where.js +2 -2
- package/dist/workday.d.ts +26 -26
- package/dist/workday.js +187 -187
- package/package.json +8 -8
- package/dist/Room.d.ts +0 -8
- package/dist/Room.js +0 -51
- package/dist/rooms.d.ts +0 -131
- /package/dist/lib/{rooms.json → routes.json} +0 -0
package/dist/where.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { ComponentType } from 'react';
|
|
|
11
11
|
import type { BillingPlan } from './lib/plans.js';
|
|
12
12
|
/** The addresses a host serves from, which plain modules read. */
|
|
13
13
|
export interface Addresses {
|
|
14
|
-
/** The gateway's origin. Absent, the
|
|
14
|
+
/** The gateway's origin. Absent, the apps derive it from the page's host. */
|
|
15
15
|
api?: string;
|
|
16
16
|
/** IAM's origin. Absent, hanzo.id. */
|
|
17
17
|
iam?: string;
|
|
@@ -20,12 +20,12 @@ export interface Addresses {
|
|
|
20
20
|
* Empty on the site that serves them; `https://hanzo.ai` on hanzo.team.
|
|
21
21
|
*/
|
|
22
22
|
site: string;
|
|
23
|
-
/** The
|
|
23
|
+
/** The shell's Home: `/home` beside the app, `/` on hanzo.team. */
|
|
24
24
|
home: string;
|
|
25
25
|
/** Where a new account starts: `/signup`, or hanzo.team's `/start`. */
|
|
26
26
|
signUp: string;
|
|
27
27
|
/**
|
|
28
|
-
* The product's name, wherever the
|
|
28
|
+
* The product's name, wherever the apps print it: the sidebar's wordmark,
|
|
29
29
|
* Home's and Chat's titles, the composer's placeholder, the setup. The host's
|
|
30
30
|
* brand by hostname (`@hanzogui/shell/registry`'s `brandName`): `Hanzo Team`
|
|
31
31
|
* on hanzo.team. Default `Hanzo AI`, hanzo.ai's.
|
|
@@ -36,7 +36,7 @@ export interface Addresses {
|
|
|
36
36
|
/**
|
|
37
37
|
* Where the IAM session is kept when it is not this page's `localStorage`:
|
|
38
38
|
* the `storage` the host hands its IamProvider (Hanzo Desktop's keychain).
|
|
39
|
-
* The
|
|
39
|
+
* The apps read the access token, its expiry and its claims from it.
|
|
40
40
|
*/
|
|
41
41
|
session?: Storage;
|
|
42
42
|
/** The plan catalogue as the host's build last read it: the first paint. */
|
|
@@ -51,7 +51,7 @@ export interface Addresses {
|
|
|
51
51
|
}>;
|
|
52
52
|
Signup?: ComponentType;
|
|
53
53
|
/**
|
|
54
|
-
* The
|
|
54
|
+
* The apps are hanzo.team's: every app is behind the per-seat Team plan,
|
|
55
55
|
* and an organization is founded through the team's setup, never the create
|
|
56
56
|
* dialog a person on hanzo.ai uses.
|
|
57
57
|
*/
|
|
@@ -66,7 +66,7 @@ export interface Addresses {
|
|
|
66
66
|
/**
|
|
67
67
|
* State the host's addresses, at module scope, before anything renders. Each
|
|
68
68
|
* call adds to what is stated, so a host can name its cheap addresses at its
|
|
69
|
-
* root and the heavier ones only where the
|
|
69
|
+
* root and the heavier ones only where the apps are drawn.
|
|
70
70
|
*/
|
|
71
71
|
export declare function configure(given: Partial<Addresses>): void;
|
|
72
72
|
/** The host's addresses, for code that runs outside a component. */
|
|
@@ -75,5 +75,5 @@ export declare const where: () => Addresses;
|
|
|
75
75
|
export declare const brand: () => string;
|
|
76
76
|
/** The product's name in each mode of the app: the host's brand in Chat (Hanzo AI, Hanzo Team), Hanzo Dev in Dev. */
|
|
77
77
|
export declare const wordmark: (mode: 'chat' | 'dev' | 'studio' | 'tabs' | 'beta' | 'hosted') => string;
|
|
78
|
-
/** A page of the app's own, from wherever the
|
|
78
|
+
/** A page of the app's own, from wherever the apps are mounted. */
|
|
79
79
|
export declare const site: (path: string) => string;
|
package/dist/where.js
CHANGED
|
@@ -2,7 +2,7 @@ let addresses = { site: '', home: '/home', signUp: '/signup' };
|
|
|
2
2
|
/**
|
|
3
3
|
* State the host's addresses, at module scope, before anything renders. Each
|
|
4
4
|
* call adds to what is stated, so a host can name its cheap addresses at its
|
|
5
|
-
* root and the heavier ones only where the
|
|
5
|
+
* root and the heavier ones only where the apps are drawn.
|
|
6
6
|
*/
|
|
7
7
|
export function configure(given) {
|
|
8
8
|
addresses = { ...addresses, ...given };
|
|
@@ -13,5 +13,5 @@ export const where = () => addresses;
|
|
|
13
13
|
export const brand = () => addresses.brand ?? 'Hanzo AI';
|
|
14
14
|
/** The product's name in each mode of the app: the host's brand in Chat (Hanzo AI, Hanzo Team), Hanzo Dev in Dev. */
|
|
15
15
|
export const wordmark = (mode) => (mode === 'dev' ? 'Hanzo Dev' : mode === 'studio' ? 'Hanzo Studio' : mode === 'tabs' ? 'Hanzo Tabs' : mode === 'beta' ? 'Hanzo Betas' : brand());
|
|
16
|
-
/** A page of the app's own, from wherever the
|
|
16
|
+
/** A page of the app's own, from wherever the apps are mounted. */
|
|
17
17
|
export const site = (path) => `${addresses.site}${path}`;
|
package/dist/workday.d.ts
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* a round, review a design, hire and launch; in the evening the switcher flips
|
|
8
8
|
* to Friday Club, where friends build a recipe app and book game night.
|
|
9
9
|
*
|
|
10
|
-
* The script is events, each a
|
|
10
|
+
* The script is events, each a channel's (`org/channel`): a message, someone
|
|
11
11
|
* typing, a reaction, a thread reply, a card changing state (a pull request
|
|
12
|
-
* merged, a draft sent), a huddle, and the view moving to another
|
|
13
|
-
* message to a
|
|
14
|
-
* is opened by. `pace` sets how long each event waits from what came
|
|
15
|
-
* it: the reading time of the message before, the typing, the pause
|
|
16
|
-
*
|
|
17
|
-
* shows, so any beat is a whole frame and the script holds no state.
|
|
12
|
+
* merged, a draft sent), a huddle, and the view moving to another channel. A
|
|
13
|
+
* message to a channel out of view leaves it unread, which is what the next
|
|
14
|
+
* channel is opened by. `pace` sets how long each event waits from what came
|
|
15
|
+
* before it: the reading time of the message before, the typing, the pause
|
|
16
|
+
* after a channel opens. `frame` folds the events up to a point into what the
|
|
17
|
+
* screen shows, so any beat is a whole frame and the script holds no state.
|
|
18
18
|
*
|
|
19
19
|
* Every authored word is `phrase`d; a person's or agent's name, a channel, a
|
|
20
20
|
* file and a repository stay as written. Nothing here is a measurement: the
|
|
@@ -74,18 +74,18 @@ type Base = {
|
|
|
74
74
|
};
|
|
75
75
|
export type Event = Base & ({
|
|
76
76
|
kind: 'open';
|
|
77
|
-
|
|
77
|
+
channel: string;
|
|
78
78
|
time: number;
|
|
79
79
|
} | {
|
|
80
80
|
kind: 'say';
|
|
81
|
-
|
|
81
|
+
channel: string;
|
|
82
82
|
who: string;
|
|
83
83
|
text: string;
|
|
84
84
|
id?: string;
|
|
85
85
|
card?: Card;
|
|
86
86
|
} | {
|
|
87
87
|
kind: 'typing';
|
|
88
|
-
|
|
88
|
+
channel: string;
|
|
89
89
|
who: string;
|
|
90
90
|
} | {
|
|
91
91
|
kind: 'react';
|
|
@@ -109,10 +109,10 @@ export type Event = Base & ({
|
|
|
109
109
|
kind: 'thread';
|
|
110
110
|
to: string | null;
|
|
111
111
|
}
|
|
112
|
-
/** A huddle starts in a
|
|
112
|
+
/** A huddle starts in a channel with these people, or ends (`who: []`). */
|
|
113
113
|
| {
|
|
114
114
|
kind: 'huddle';
|
|
115
|
-
|
|
115
|
+
channel: string;
|
|
116
116
|
who: string[];
|
|
117
117
|
}
|
|
118
118
|
/** A step of an org's mission is done. */
|
|
@@ -153,8 +153,8 @@ export declare const MISSIONS: Record<string, {
|
|
|
153
153
|
title: string;
|
|
154
154
|
steps: string[];
|
|
155
155
|
}>;
|
|
156
|
-
export declare const orgOf: (
|
|
157
|
-
export declare const channelOf: (
|
|
156
|
+
export declare const orgOf: (channel: string) => Org;
|
|
157
|
+
export declare const channelOf: (channel: string) => string;
|
|
158
158
|
/** A message as the screen draws it. */
|
|
159
159
|
export interface Message {
|
|
160
160
|
id: string;
|
|
@@ -172,19 +172,19 @@ export interface Message {
|
|
|
172
172
|
time: number;
|
|
173
173
|
}[];
|
|
174
174
|
}
|
|
175
|
-
/**
|
|
175
|
+
/** Channels with news before the day starts: their name is bold, their org's tile marked. */
|
|
176
176
|
export declare const UNREAD: Record<string, number>;
|
|
177
177
|
/**
|
|
178
178
|
* How long each event waits from the one before it: long enough to read what
|
|
179
179
|
* came before (a message, and a card under it), to watch someone type, to
|
|
180
|
-
* take in a
|
|
180
|
+
* take in a channel just opened.
|
|
181
181
|
*/
|
|
182
182
|
export declare function pace(events: Event[]): Beat[];
|
|
183
183
|
/** The whole day, paced. */
|
|
184
184
|
export declare const DAY: Beat[];
|
|
185
|
-
/** Every
|
|
185
|
+
/** Every channel's own scene, paced, for a reader who opens it. */
|
|
186
186
|
export declare const SCENE: Record<string, Beat[]>;
|
|
187
|
-
/** The
|
|
187
|
+
/** The channel an org opens on when its tile is pressed. */
|
|
188
188
|
export declare const HOME: Record<string, string>;
|
|
189
189
|
/**
|
|
190
190
|
* The frame a reader who asked for less motion sees, and the first paint: the
|
|
@@ -194,14 +194,14 @@ export declare const HOME: Record<string, string>;
|
|
|
194
194
|
export declare const STILL: number;
|
|
195
195
|
/** How long the day plays before it starts again, in milliseconds (`REST` held at the end not counted). */
|
|
196
196
|
export declare const LENGTH: number;
|
|
197
|
-
/** What the screen shows: the
|
|
197
|
+
/** What the screen shows: the channel in view and everything each channel holds by then. */
|
|
198
198
|
export interface Frame {
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
channel: string;
|
|
200
|
+
channels: Record<string, Message[]>;
|
|
201
201
|
unread: Record<string, number>;
|
|
202
202
|
/** Who is typing, and where. */
|
|
203
203
|
typing: {
|
|
204
|
-
|
|
204
|
+
channel: string;
|
|
205
205
|
who: string;
|
|
206
206
|
} | null;
|
|
207
207
|
/** The message whose thread stands beside the channel. */
|
|
@@ -216,7 +216,7 @@ export interface Frame {
|
|
|
216
216
|
export interface Handoff {
|
|
217
217
|
from: string;
|
|
218
218
|
to: string;
|
|
219
|
-
|
|
219
|
+
channel: string;
|
|
220
220
|
time: number;
|
|
221
221
|
text: string;
|
|
222
222
|
}
|
|
@@ -225,7 +225,7 @@ export declare function frame(events: Event[], at: number): Frame;
|
|
|
225
225
|
/** Something an agent left for a person: a reply to send, a question to answer, a pull request to review, or (supervised) a step to approve. */
|
|
226
226
|
export interface Ask {
|
|
227
227
|
id: string;
|
|
228
|
-
|
|
228
|
+
channel: string;
|
|
229
229
|
/** The person it waits on. */
|
|
230
230
|
who: string;
|
|
231
231
|
/** What the agent asked for, as a phrase with `{what}` filled from the card. */
|
|
@@ -235,8 +235,8 @@ export interface Ask {
|
|
|
235
235
|
/**
|
|
236
236
|
* What waits on a person in a frame. Always: a draft not yet sent, a question
|
|
237
237
|
* not yet answered, a pull request still under review. Supervised, also every
|
|
238
|
-
* agent's work a person has not answered yet in its
|
|
239
|
-
* each tool, connector or site (the app's Manual approval).
|
|
238
|
+
* agent's work a person has not answered yet in its channel: an agent asks
|
|
239
|
+
* before each tool, connector or site (the app's Manual approval).
|
|
240
240
|
*/
|
|
241
241
|
export declare function waiting(f: Frame, supervised: boolean): Ask[];
|
|
242
242
|
/** Each agent's spending limits, as the agent's settings hold them: a weekly cap and the most one task may spend (sample values). */
|