@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.
Files changed (129) hide show
  1. package/README.md +8 -8
  2. package/dist/{Me.d.ts → Account.d.ts} +1 -1
  3. package/dist/{Me.js → Account.js} +3 -3
  4. package/dist/App.d.ts +2 -2
  5. package/dist/App.js +16 -16
  6. package/dist/{Top.d.ts → Bar.d.ts} +1 -1
  7. package/dist/{Top.js → Bar.js} +3 -3
  8. package/dist/Betas.js +1 -1
  9. package/dist/Board.js +4 -4
  10. package/dist/Chat.d.ts +4 -4
  11. package/dist/Chat.js +96 -96
  12. package/dist/Contacts.js +17 -15
  13. package/dist/Directory.js +7 -21
  14. package/dist/Drive.js +6 -6
  15. package/dist/{Orgs.d.ts → Gate.d.ts} +1 -1
  16. package/dist/{Orgs.js → Gate.js} +32 -32
  17. package/dist/{Chrome.d.ts → Header.d.ts} +1 -1
  18. package/dist/{Chrome.js → Header.js} +1 -1
  19. package/dist/Home.d.ts +3 -3
  20. package/dist/Home.js +30 -30
  21. package/dist/Inbox.js +29 -33
  22. package/dist/Meet.js +22 -22
  23. package/dist/Rail.js +6 -6
  24. package/dist/RightPane.js +2 -2
  25. package/dist/{Palette.d.ts → Search.d.ts} +1 -1
  26. package/dist/{Palette.js → Search.js} +1 -1
  27. package/dist/Settings.d.ts +3 -3
  28. package/dist/Settings.js +5 -5
  29. package/dist/SettingsPane.d.ts +2 -2
  30. package/dist/SettingsPane.js +5 -5
  31. package/dist/Setup.js +2 -2
  32. package/dist/Shell.d.ts +22 -31
  33. package/dist/Shell.js +167 -114
  34. package/dist/{Column.d.ts → Sidebar.d.ts} +1 -1
  35. package/dist/{Column.js → Sidebar.js} +5 -5
  36. package/dist/Support.js +2 -2
  37. package/dist/Talk.d.ts +3 -3
  38. package/dist/Talk.js +18 -18
  39. package/dist/TeamPreview.js +26 -26
  40. package/dist/TeamStory.js +1 -1
  41. package/dist/Usage.js +2 -2
  42. package/dist/Work.js +2 -2
  43. package/dist/bots/Bots.js +2 -2
  44. package/dist/bots/Lights.d.ts +1 -1
  45. package/dist/bots/Lights.js +1 -1
  46. package/dist/bots/api.d.ts +8 -7
  47. package/dist/bots/api.js +4 -4
  48. package/dist/bots/ink.js +3 -3
  49. package/dist/bots/kit.d.ts +2 -2
  50. package/dist/bots/kit.js +4 -4
  51. package/dist/bots/runtime.js +12 -12
  52. package/dist/cast.d.ts +14 -14
  53. package/dist/cast.js +12 -12
  54. package/dist/channels.d.ts +132 -0
  55. package/dist/{rooms.js → channels.js} +56 -55
  56. package/dist/conversations.d.ts +8 -8
  57. package/dist/conversations.js +18 -17
  58. package/dist/crew.d.ts +1 -1
  59. package/dist/crew.js +12 -12
  60. package/dist/dev.js +6 -6
  61. package/dist/failure.d.ts +2 -2
  62. package/dist/failure.js +6 -6
  63. package/dist/ground.d.ts +1 -1
  64. package/dist/ground.js +1 -1
  65. package/dist/help.d.ts +1 -1
  66. package/dist/help.js +2 -2
  67. package/dist/hint.d.ts +1 -1
  68. package/dist/hint.js +1 -1
  69. package/dist/host.d.ts +15 -15
  70. package/dist/host.js +13 -13
  71. package/dist/index.d.ts +5 -5
  72. package/dist/index.js +4 -4
  73. package/dist/lib/ai.js +1 -1
  74. package/dist/lib/api.d.ts +1 -1
  75. package/dist/lib/api.js +1 -1
  76. package/dist/lib/destination.d.ts +3 -3
  77. package/dist/lib/destination.js +3 -3
  78. package/dist/lib/home.d.ts +2 -2
  79. package/dist/lib/home.js +2 -2
  80. package/dist/lib/host.d.ts +17 -16
  81. package/dist/lib/host.js +19 -18
  82. package/dist/lib/hostname.d.ts +1 -1
  83. package/dist/lib/hostname.js +1 -1
  84. package/dist/lib/list.d.ts +1 -1
  85. package/dist/lib/list.js +1 -1
  86. package/dist/lib/models.js +1 -1
  87. package/dist/lib/org.d.ts +1 -1
  88. package/dist/lib/org.js +1 -1
  89. package/dist/lib/orgname.d.ts +1 -1
  90. package/dist/lib/orgname.js +1 -1
  91. package/dist/lib/session.d.ts +4 -4
  92. package/dist/lib/session.js +6 -6
  93. package/dist/lib/tier.d.ts +4 -4
  94. package/dist/lib/tier.js +5 -5
  95. package/dist/lib/tiers.d.ts +1 -1
  96. package/dist/lib/tiers.js +10 -10
  97. package/dist/lib/web.d.ts +1 -1
  98. package/dist/lib/web.js +1 -1
  99. package/dist/look.js +7 -9
  100. package/dist/network.d.ts +18 -18
  101. package/dist/network.js +28 -28
  102. package/dist/open.d.ts +24 -22
  103. package/dist/open.js +19 -19
  104. package/dist/pane.d.ts +6 -6
  105. package/dist/pane.js +10 -10
  106. package/dist/roster.d.ts +2 -2
  107. package/dist/roster.js +1 -1
  108. package/dist/seek.js +1 -1
  109. package/dist/slide.d.ts +1 -1
  110. package/dist/slide.js +1 -1
  111. package/dist/span.js +1 -1
  112. package/dist/stars.d.ts +4 -4
  113. package/dist/stars.js +8 -10
  114. package/dist/tabs.d.ts +1 -1
  115. package/dist/tabs.js +1 -1
  116. package/dist/team.js +1 -1
  117. package/dist/thread.d.ts +3 -3
  118. package/dist/thread.js +4 -4
  119. package/dist/ui.d.ts +1 -1
  120. package/dist/ui.js +1 -1
  121. package/dist/where.d.ts +7 -7
  122. package/dist/where.js +2 -2
  123. package/dist/workday.d.ts +26 -26
  124. package/dist/workday.js +187 -187
  125. package/package.json +8 -8
  126. package/dist/Room.d.ts +0 -8
  127. package/dist/Room.js +0 -51
  128. package/dist/rooms.d.ts +0 -131
  129. /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 rooms derive it from the page's host. */
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 rooms' Home: `/home` beside the app, `/` on hanzo.team. */
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 rooms print it: the sidebar's wordmark,
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 rooms read the access token, its expiry and its claims from it.
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 rooms are hanzo.team's: every room is behind the per-seat Team plan,
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 rooms are drawn.
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 rooms are mounted. */
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 rooms are drawn.
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 rooms are mounted. */
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 room's (`org/channel`): a message, someone
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 room. A
13
- * message to a room out of view leaves it unread, which is what the next room
14
- * is opened by. `pace` sets how long each event waits from what came before
15
- * it: the reading time of the message before, the typing, the pause after a
16
- * room opens. `frame` folds the events up to a point into what the screen
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
- room: string;
77
+ channel: string;
78
78
  time: number;
79
79
  } | {
80
80
  kind: 'say';
81
- room: string;
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
- room: string;
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 room with these people, or ends (`who: []`). */
112
+ /** A huddle starts in a channel with these people, or ends (`who: []`). */
113
113
  | {
114
114
  kind: 'huddle';
115
- room: string;
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: (room: string) => Org;
157
- export declare const channelOf: (room: string) => string;
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
- /** Rooms with news before the day starts: their channel is bold, their org's tile marked. */
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 room just opened.
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 room's own scene, paced, for a reader who opens it. */
185
+ /** Every channel's own scene, paced, for a reader who opens it. */
186
186
  export declare const SCENE: Record<string, Beat[]>;
187
- /** The room an org opens on when its tile is pressed. */
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 room in view and everything each room holds by then. */
197
+ /** What the screen shows: the channel in view and everything each channel holds by then. */
198
198
  export interface Frame {
199
- room: string;
200
- rooms: Record<string, Message[]>;
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
- room: string;
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
- room: string;
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
- room: string;
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 room: an agent asks before
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). */