@hanzo/app 0.2.58 → 0.2.60

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 (86) hide show
  1. package/dist/App.js +1 -4
  2. package/dist/Board.js +37 -121
  3. package/dist/Boxes.js +12 -16
  4. package/dist/CalScheduler.js +40 -81
  5. package/dist/Chat.js +87 -78
  6. package/dist/Chrome.d.ts +2 -14
  7. package/dist/Chrome.js +7 -44
  8. package/dist/Column.js +6 -2
  9. package/dist/Contents.d.ts +1 -1
  10. package/dist/Contents.js +2 -1
  11. package/dist/Drive.js +100 -121
  12. package/dist/Inbox.js +7 -7
  13. package/dist/Market.js +10 -15
  14. package/dist/Meet.js +48 -78
  15. package/dist/Orgs.js +10 -9
  16. package/dist/Palette.d.ts +1 -1
  17. package/dist/Palette.js +2 -1
  18. package/dist/Rail.d.ts +1 -1
  19. package/dist/Rail.js +4 -4
  20. package/dist/Schedule.js +11 -15
  21. package/dist/Settings.d.ts +1 -1
  22. package/dist/SettingsPane.js +2 -2
  23. package/dist/Shared.js +11 -16
  24. package/dist/Shell.js +1 -1
  25. package/dist/Talk.js +4 -4
  26. package/dist/Terminals.js +1 -3
  27. package/dist/Top.js +1 -1
  28. package/dist/Usage.js +3 -3
  29. package/dist/WindowControls.js +3 -5
  30. package/dist/Work.js +28 -51
  31. package/dist/bots/Bots.js +73 -129
  32. package/dist/bots/runtime.js +41 -103
  33. package/dist/cast.d.ts +1 -1
  34. package/dist/cast.js +1 -1
  35. package/dist/failure.d.ts +1 -1
  36. package/dist/failure.js +1 -1
  37. package/dist/ground.d.ts +21 -0
  38. package/dist/ground.js +21 -0
  39. package/dist/lib/limits.d.ts +1 -1
  40. package/dist/lib/limits.js +1 -1
  41. package/dist/lib/org.d.ts +3 -3
  42. package/dist/lib/org.js +5 -4
  43. package/dist/lib/orgname.d.ts +1 -1
  44. package/dist/lib/orgname.js +1 -1
  45. package/dist/lib/pay.d.ts +2 -6
  46. package/dist/lib/pay.js +2 -15
  47. package/dist/lib/plans.d.ts +1 -1
  48. package/dist/lib/plans.js +1 -1
  49. package/dist/lib/tier.d.ts +2 -2
  50. package/dist/lib/tier.js +6 -6
  51. package/dist/look.js +8 -10
  52. package/dist/recent.d.ts +1 -1
  53. package/dist/recent.js +2 -1
  54. package/dist/say.d.ts +4 -0
  55. package/dist/say.js +7 -0
  56. package/dist/thread.js +1 -1
  57. package/package.json +3 -3
  58. package/assets/memoji/art.svg +0 -22
  59. package/assets/memoji/cyber.svg +0 -22
  60. package/assets/memoji/data.svg +0 -22
  61. package/assets/memoji/des.svg +0 -22
  62. package/assets/memoji/dev.svg +0 -22
  63. package/assets/memoji/doc.svg +0 -22
  64. package/assets/memoji/edu.svg +0 -22
  65. package/assets/memoji/fin.svg +0 -22
  66. package/assets/memoji/gov.svg +0 -22
  67. package/assets/memoji/huma.svg +0 -22
  68. package/assets/memoji/lang.svg +0 -22
  69. package/assets/memoji/law.svg +0 -22
  70. package/assets/memoji/mana.svg +0 -22
  71. package/assets/memoji/mark.svg +0 -22
  72. package/assets/memoji/mu.svg +0 -22
  73. package/assets/memoji/opera.svg +0 -22
  74. package/assets/memoji/rev.svg +0 -22
  75. package/assets/memoji/sal.svg +0 -22
  76. package/assets/memoji/sci.svg +0 -22
  77. package/assets/memoji/su.svg +0 -22
  78. package/assets/memoji/vi.svg +0 -22
  79. package/dist/TeamPreview.d.ts +0 -9
  80. package/dist/TeamPreview.js +0 -305
  81. package/dist/TeamStory.d.ts +0 -49
  82. package/dist/TeamStory.js +0 -67
  83. package/dist/preview.d.ts +0 -84
  84. package/dist/preview.js +0 -120
  85. package/dist/workday.d.ts +0 -247
  86. package/dist/workday.js +0 -642
package/dist/TeamStory.js DELETED
@@ -1,67 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { ArrowUpRight } from 'lucide-react';
4
- import { phrase } from '@hanzo/i18n';
5
- import { useI18n } from '@hanzo/i18n/react';
6
- import { Text, View, XStack, YStack } from '@hanzo/ui';
7
- /**
8
- * Hanzo Team's story, told once for both pages that tell it: hanzo.team's
9
- * landing and hanzo.ai/team. Each draws it in its own chrome (its bar, its
10
- * bands, its heading type) around `TeamPreview`; the words, the three points and
11
- * where each one leads are here, so the two cannot drift.
12
- *
13
- * Every sentence states something the product does: organizations and channels
14
- * (the switcher, the rooms), agents with roles and spending limits (an agent's
15
- * settings: a period cap and the most one task may spend, docs "Budgets"),
16
- * agents handing work to agents (Hanzo Bot's multi-agent sessions), and the
17
- * approval mode (Auto, which the app also calls autonomous, or Manual,
18
- * supervised). The preview is sample data and says so (`TEAM.note`).
19
- */
20
- const CONTACT = 'https://hanzo.ai/contact-sales';
21
- export const TEAM = {
22
- name: 'Hanzo Team',
23
- /** The page's one heading: the owner's words on hanzo.team. */
24
- title: phrase('The playground for humans + AI'),
25
- lede: phrase('Your people and your AI agents plan, build, and ship together — in one connected workspace.'),
26
- line: phrase('Agents pass work to each other in your channels and bring a person in only when a decision is theirs.'),
27
- /** Where a reader who wants a person goes. */
28
- contact: { label: phrase('Talk to us'), href: CONTACT },
29
- /** Under the preview: what it is, so nobody reads sample data as a claim. */
30
- note: phrase('Illustrative preview: a sample workspace with sample people, agents and companies. Nothing in it runs.'),
31
- how: {
32
- eyebrow: phrase('How it works'),
33
- title: phrase('Agents do the work. People make the calls.'),
34
- sub: phrase('Every agent works for the people who hand it work. They share your channels, pass work along, and stop for a person when a decision is theirs.'),
35
- },
36
- points: [
37
- {
38
- title: phrase('A team that works for you'),
39
- body: phrase('Each agent has a name, a role and its own spending limits, and works in your channels beside the people who hand it work.'),
40
- link: { label: phrase('Meet the AI teammates'), href: 'https://hanzo.team/agents' },
41
- },
42
- {
43
- title: phrase('Handoffs without a meeting'),
44
- body: phrase('One agent hands work to another with a message, so the channel is the record. Routine back-and-forth never waits on a person.'),
45
- link: { label: phrase('How agents work together'), href: 'https://docs.hanzo.bot/docs/concepts/multi-agent' },
46
- },
47
- {
48
- title: phrase('Only the decisions that need you'),
49
- body: phrase('Choose autonomous, where agents run tools on their own and stop for anything risky, or supervised, where they ask first. Budgets hold either way.'),
50
- link: { label: phrase('Budgets in the docs'), href: 'https://docs.hanzo.ai/docs/concepts/budgets' },
51
- },
52
- ],
53
- close: {
54
- title: phrase('One place for your team and its agents.'),
55
- line: phrase('Every organization you belong to, every channel, every agent, on one rail.'),
56
- },
57
- };
58
- /** The three points, numbered, each ending in where to read more. */
59
- export function TeamPoints() {
60
- const { t } = useI18n();
61
- return (_jsx(View, { render: "ol", display: "grid", gridTemplateColumns: "minmax(0, 1fr)", gap: 32, m: 0, p: 0, $md: { gridTemplateColumns: 'repeat(3, minmax(0, 1fr))', gap: 24 }, "$platform-web": { listStyle: 'none', textAlign: 'start' }, children: TEAM.points.map((p, i) => (_jsxs(YStack, { render: "li", gap: 10, pt: 16, borderTopWidth: 1, borderColor: "$edge", children: [_jsx(Text, { fontFamily: "$mono", fontSize: "$2", color: "$soft", "data-i18n-ltr": true, children: String(i + 1).padStart(2, '0') }), _jsx(Text, { render: "h3", m: 0, fontSize: "$6", lineHeight: "$6", fontWeight: "600", color: "$ink", children: t(p.title) }), _jsx(Text, { render: "p", m: 0, fontSize: "$3", lineHeight: "$4", color: "$soft", children: t(p.body) }), _jsxs(XStack, { render: _jsx("a", { href: p.link.href }), items: "center", gap: 6, mt: 4, self: "flex-start", hoverStyle: { opacity: 0.8 }, "$platform-web": { textDecoration: 'none' }, children: [_jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$ink", children: t(p.link.label) }), _jsx(ArrowUpRight, { size: 14, color: "var(--foreground)", "aria-hidden": true, "data-i18n-mirror": true })] })] }, p.title))) }));
62
- }
63
- /** The line under the preview that says it is sample data. */
64
- export function TeamNote() {
65
- const { t } = useI18n();
66
- return (_jsx(Text, { render: "p", m: 0, mt: 12, fontSize: "$1", lineHeight: "$2", color: "$soft", "$platform-web": { textAlign: 'center' }, children: t(TEAM.note) }));
67
- }
package/dist/preview.d.ts DELETED
@@ -1,84 +0,0 @@
1
- import type { GuiElement } from '@hanzo/ui';
2
- /** Whether the reader asked for less motion. The server and the first paint assume so, so nothing moves before the page knows. */
3
- export declare function useStill(): boolean;
4
- /** A beat of a script: how long after the one before it it arrives. */
5
- export type Beat = {
6
- wait: number;
7
- };
8
- /** How long a whole script holds before it plays again. */
9
- export declare const REST = 4200;
10
- /**
11
- * Where a preview stands: whether it has been on screen (`seen`), whether it is
12
- * now (`visible`), whether the pointer is over it (`held`, kept by the `hold`
13
- * handlers the preview spreads on its box), and how wide and tall it is
14
- * (`width`, `height`, 0 until measured), which is how a preview decides its own
15
- * layout wherever it is placed.
16
- */
17
- export declare function useStage(): {
18
- box: import("react").RefObject<GuiElement>;
19
- seen: boolean;
20
- width: number;
21
- height: number;
22
- visible: import("react").RefObject<boolean>;
23
- held: import("react").RefObject<boolean>;
24
- hold: {
25
- onPointerEnter: () => any;
26
- onPointerLeave: () => any;
27
- };
28
- };
29
- /**
30
- * How many of `beats` are drawn. All of them until `run`; then none, and one
31
- * more after each beat's wait while the preview is `visible`, `live` (its host
32
- * has not paused it) and, for a loop, while the pointer is elsewhere (`held`).
33
- * When the script reaches its end, `end` is called and the last frame holds
34
- * (the host moves on from it); with no `end`, a loop starts again after
35
- * `REST`. `loop` is read as it stands, so a reader taking over mid-script lets
36
- * it finish rather than start over. Bumping `replay` plays it again.
37
- */
38
- export declare function usePlay<B extends Beat>(beats: B[], run: boolean, replay: number, gate: {
39
- visible: {
40
- current: boolean;
41
- };
42
- held: {
43
- current: boolean;
44
- };
45
- loop: {
46
- current: boolean;
47
- };
48
- live: {
49
- current: boolean;
50
- };
51
- end: {
52
- current: (() => void) | undefined;
53
- };
54
- }): number;
55
- /** What a page or a host (the landing's hero) tells a preview. */
56
- export interface PreviewProps {
57
- /** Plays while true, the default; false holds the frame it is on. */
58
- play?: boolean;
59
- /**
60
- * Called when the script has played to its end, which then holds its last
61
- * frame; mount it again (a new key) to replay. Never called under reduced
62
- * motion, which plays nothing.
63
- */
64
- onEnd?: () => void;
65
- /** Fills the box it is given (a device's screen) and lays itself out by its own width rather than the window's. */
66
- compact?: boolean;
67
- /** Draws the phone app whatever the width. */
68
- phone?: boolean;
69
- }
70
- /** The host's `play` and `onEnd`, as the refs `usePlay` reads. */
71
- export declare function useHost({ play, onEnd }: PreviewProps): {
72
- live: import("react").RefObject<boolean>;
73
- end: import("react").RefObject<() => void>;
74
- };
75
- /**
76
- * Whether the desktop app is drawn: always or never once the preview is told
77
- * (`phone`) or measures itself (`compact`), and by the window otherwise
78
- * (`null`: from 768px, through `md`).
79
- */
80
- export declare function useDesk(width: number, { compact, phone }: PreviewProps): boolean | null;
81
- /** A style for the desktop app: from 768px when the window decides, always or never when the preview does. */
82
- export declare const md: <S extends object>(desk: boolean | null, style: S) => S | {
83
- $md: S;
84
- } | Record<string, never>;
package/dist/preview.js DELETED
@@ -1,120 +0,0 @@
1
- 'use client';
2
- import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
3
- /**
4
- * The clock the product previews play on: a script of beats, each arriving
5
- * `wait` ms after the one before it, played while the preview is on screen.
6
- * Hanzo Team's (`@hanzo/app/TeamPreview`) and Hanzo Bot's (hanzo.ai) play on
7
- * it, on their pages' heroes and inside the landing's.
8
- */
9
- const REDUCE = '(prefers-reduced-motion: reduce)';
10
- const listen = (on) => {
11
- const q = window.matchMedia(REDUCE);
12
- q.addEventListener('change', on);
13
- return () => q.removeEventListener('change', on);
14
- };
15
- /** Whether the reader asked for less motion. The server and the first paint assume so, so nothing moves before the page knows. */
16
- export function useStill() {
17
- return useSyncExternalStore(listen, () => window.matchMedia(REDUCE).matches, () => true);
18
- }
19
- /** How long a whole script holds before it plays again. */
20
- export const REST = 4200;
21
- /**
22
- * Where a preview stands: whether it has been on screen (`seen`), whether it is
23
- * now (`visible`), whether the pointer is over it (`held`, kept by the `hold`
24
- * handlers the preview spreads on its box), and how wide and tall it is
25
- * (`width`, `height`, 0 until measured), which is how a preview decides its own
26
- * layout wherever it is placed.
27
- */
28
- export function useStage() {
29
- const box = useRef(null);
30
- const [seen, setSeen] = useState(false);
31
- const [{ width, height }, setSize] = useState({ width: 0, height: 0 });
32
- const visible = useRef(false);
33
- const held = useRef(false);
34
- useEffect(() => {
35
- const el = box.current;
36
- if (!el || typeof IntersectionObserver === 'undefined')
37
- return;
38
- const io = new IntersectionObserver(([e]) => {
39
- visible.current = !!e?.isIntersecting;
40
- if (e?.isIntersecting)
41
- setSeen(true);
42
- }, { threshold: 0.25 });
43
- io.observe(el);
44
- const fit = new ResizeObserver(([e]) => setSize({ width: Math.round(e?.contentRect.width ?? 0), height: Math.round(e?.contentRect.height ?? 0) }));
45
- fit.observe(el);
46
- return () => {
47
- io.disconnect();
48
- fit.disconnect();
49
- };
50
- }, []);
51
- const hold = useMemo(() => ({ onPointerEnter: () => void (held.current = true), onPointerLeave: () => void (held.current = false) }), []);
52
- return { box, seen, width, height, visible, held, hold };
53
- }
54
- /**
55
- * How many of `beats` are drawn. All of them until `run`; then none, and one
56
- * more after each beat's wait while the preview is `visible`, `live` (its host
57
- * has not paused it) and, for a loop, while the pointer is elsewhere (`held`).
58
- * When the script reaches its end, `end` is called and the last frame holds
59
- * (the host moves on from it); with no `end`, a loop starts again after
60
- * `REST`. `loop` is read as it stands, so a reader taking over mid-script lets
61
- * it finish rather than start over. Bumping `replay` plays it again.
62
- */
63
- export function usePlay(beats, run, replay, gate) {
64
- const [state, setState] = useState(null);
65
- const { visible, held, loop, live, end } = gate;
66
- useEffect(() => {
67
- if (!run)
68
- return;
69
- let i = 0;
70
- let t = 0;
71
- const step = () => {
72
- if (!visible.current || !live.current || (loop.current && held.current))
73
- return void (t = window.setTimeout(step, 250));
74
- if (i >= beats.length) {
75
- // A host that listens for the end moves on from the last frame, so it holds.
76
- if (end.current)
77
- return void end.current();
78
- if (!loop.current)
79
- return;
80
- i = 0;
81
- setState({ beats, replay, at: 0 });
82
- return void (t = window.setTimeout(step, beats[0].wait));
83
- }
84
- i += 1;
85
- setState({ beats, replay, at: i });
86
- t = window.setTimeout(step, i < beats.length ? beats[i].wait : REST);
87
- };
88
- t = window.setTimeout(step, beats[0].wait);
89
- return () => window.clearTimeout(t);
90
- }, [beats, run, replay, visible, held, loop, live, end]);
91
- if (!run)
92
- return beats.length;
93
- return state && state.beats === beats && state.replay === replay ? state.at : 0;
94
- }
95
- /** The host's `play` and `onEnd`, as the refs `usePlay` reads. */
96
- export function useHost({ play = true, onEnd }) {
97
- const live = useRef(play);
98
- const end = useRef(onEnd);
99
- useEffect(() => {
100
- live.current = play;
101
- end.current = onEnd;
102
- }, [play, onEnd]);
103
- return { live, end };
104
- }
105
- /** The width from which a compact preview draws the desktop app rather than the phone's. */
106
- const DESK = 600;
107
- /**
108
- * Whether the desktop app is drawn: always or never once the preview is told
109
- * (`phone`) or measures itself (`compact`), and by the window otherwise
110
- * (`null`: from 768px, through `md`).
111
- */
112
- export function useDesk(width, { compact, phone }) {
113
- if (phone)
114
- return false;
115
- if (compact)
116
- return width ? width >= DESK : null;
117
- return null;
118
- }
119
- /** A style for the desktop app: from 768px when the window decides, always or never when the preview does. */
120
- export const md = (desk, style) => (desk === null ? { $md: style } : desk ? style : {});
package/dist/workday.d.ts DELETED
@@ -1,247 +0,0 @@
1
- /**
2
- * A working day in Hanzo Team, as data: what `TeamPreview` plays. It opens on
3
- * the morning hopping across the organizations a person belongs to — Acme (a
4
- * sample company), Orbit (an open-source project Acme's people and others
5
- * maintain together), Friday Club (friends) — before it settles at Acme, where
6
- * people and their agents fix a bug, answer a customer, clear the inbox, raise
7
- * a round, review a design, hire and launch; in the evening the switcher flips
8
- * to Friday Club, where friends build a recipe app and book game night.
9
- *
10
- * The script is events, each a room's (`org/channel`): a message, someone
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.
18
- *
19
- * Every authored word is `phrase`d; a person's or agent's name, a channel, a
20
- * file and a repository stay as written. Nothing here is a measurement: the
21
- * company, the people and the numbers in a card are sample copy.
22
- */
23
- export type Mark = 'thumbs' | 'heart' | 'flame' | 'rocket' | 'eyes' | 'laugh' | 'party' | 'check';
24
- export type Card =
25
- /** A pull request: under review, its checks passed, merged. */
26
- {
27
- kind: 'pr';
28
- repo: string;
29
- number: number;
30
- title: string;
31
- add: number;
32
- del: number;
33
- state: 'review' | 'passed' | 'merged';
34
- reviewer?: string;
35
- }
36
- /** A reply drafted for a person to approve: an email or a support answer. */
37
- | {
38
- kind: 'draft';
39
- to: string;
40
- body: string;
41
- sent?: boolean;
42
- approver?: string;
43
- } | {
44
- kind: 'file';
45
- name: string;
46
- type: 'doc' | 'deck' | 'sheet' | 'image';
47
- detail?: string;
48
- } | {
49
- kind: 'meeting';
50
- title: string;
51
- when: string;
52
- } | {
53
- kind: 'list';
54
- title: string;
55
- items: string[];
56
- done?: number[];
57
- }
58
- /** A question an agent stops to ask, with its answers; `picked` once a person answers. */
59
- | {
60
- kind: 'ask';
61
- options: string[];
62
- picked?: number;
63
- asks?: string;
64
- }
65
- /** Design directions side by side, one picked. */
66
- | {
67
- kind: 'options';
68
- file: string;
69
- options: string[];
70
- picked?: number;
71
- };
72
- type Base = {
73
- wait?: number;
74
- };
75
- export type Event = Base & ({
76
- kind: 'open';
77
- room: string;
78
- time: number;
79
- } | {
80
- kind: 'say';
81
- room: string;
82
- who: string;
83
- text: string;
84
- id?: string;
85
- card?: Card;
86
- } | {
87
- kind: 'typing';
88
- room: string;
89
- who: string;
90
- } | {
91
- kind: 'react';
92
- to: string;
93
- mark: Mark;
94
- n: number;
95
- } | {
96
- kind: 'reply';
97
- to: string;
98
- who: string;
99
- text: string;
100
- }
101
- /** A card changes: a pull request merges, a draft is sent, an answer is picked. */
102
- | {
103
- kind: 'card';
104
- to: string;
105
- patch: Partial<Card>;
106
- }
107
- /** The thread beside the channel opens on a message, or closes (`to: null`). */
108
- | {
109
- kind: 'thread';
110
- to: string | null;
111
- }
112
- /** A huddle starts in a room with these people, or ends (`who: []`). */
113
- | {
114
- kind: 'huddle';
115
- room: string;
116
- who: string[];
117
- }
118
- /** A step of an org's mission is done. */
119
- | {
120
- kind: 'step';
121
- org: string;
122
- n: number;
123
- });
124
- export type Beat = Event & {
125
- wait: number;
126
- };
127
- export type Who = {
128
- name: string;
129
- role?: string;
130
- };
131
- /** People wear their initials; agents wear the crew's memoji (`/memoji/<id>.svg`). */
132
- export declare const PEOPLE: Record<string, Who>;
133
- export declare const AGENTS: Record<string, Who>;
134
- export declare const agent: (id: string) => boolean;
135
- export declare const who: (id: string) => Who;
136
- export type Channel = {
137
- id: string;
138
- topic: string;
139
- };
140
- export type Org = {
141
- id: string;
142
- name: string;
143
- /** The org's tile on the rail: its initial. */
144
- mark: string;
145
- channels: Channel[];
146
- /** Direct messages: people, and an agent or two someone talks to one to one. */
147
- people: string[];
148
- agents: string[];
149
- };
150
- export declare const ORGS: Org[];
151
- /** What each organization is working toward this week: a title and its steps, done as the day goes. */
152
- export declare const MISSIONS: Record<string, {
153
- title: string;
154
- steps: string[];
155
- }>;
156
- export declare const orgOf: (room: string) => Org;
157
- export declare const channelOf: (room: string) => string;
158
- /** A message as the screen draws it. */
159
- export interface Message {
160
- id: string;
161
- who: string;
162
- text: string;
163
- time: number;
164
- card?: Card;
165
- reactions: {
166
- mark: Mark;
167
- n: number;
168
- }[];
169
- replies: {
170
- who: string;
171
- text: string;
172
- time: number;
173
- }[];
174
- }
175
- /** Rooms with news before the day starts: their channel is bold, their org's tile marked. */
176
- export declare const UNREAD: Record<string, number>;
177
- /**
178
- * How long each event waits from the one before it: long enough to read what
179
- * came before (a message, and a card under it), to watch someone type, to
180
- * take in a room just opened.
181
- */
182
- export declare function pace(events: Event[]): Beat[];
183
- /** The whole day, paced. */
184
- export declare const DAY: Beat[];
185
- /** Every room's own scene, paced, for a reader who opens it. */
186
- export declare const SCENE: Record<string, Beat[]>;
187
- /** The room an org opens on when its tile is pressed. */
188
- export declare const HOME: Record<string, string>;
189
- /**
190
- * The frame a reader who asked for less motion sees, and the first paint: the
191
- * end of #eng — the pull request merged, its thread and its reactions — with
192
- * the next ticket waiting in #support.
193
- */
194
- export declare const STILL: number;
195
- /** How long the day plays before it starts again, in milliseconds (`REST` held at the end not counted). */
196
- export declare const LENGTH: number;
197
- /** What the screen shows: the room in view and everything each room holds by then. */
198
- export interface Frame {
199
- room: string;
200
- rooms: Record<string, Message[]>;
201
- unread: Record<string, number>;
202
- /** Who is typing, and where. */
203
- typing: {
204
- room: string;
205
- who: string;
206
- } | null;
207
- /** The message whose thread stands beside the channel. */
208
- thread: string | null;
209
- huddle: Record<string, string[]>;
210
- /** The steps of each org's mission done so far. */
211
- steps: Record<string, number[]>;
212
- /** Work handed from one teammate to another by a mention, newest last. */
213
- handoffs: Handoff[];
214
- }
215
- /** One teammate handing work to another by mentioning them. */
216
- export interface Handoff {
217
- from: string;
218
- to: string;
219
- room: string;
220
- time: number;
221
- text: string;
222
- }
223
- /** Folds the first `at` events into a frame. */
224
- export declare function frame(events: Event[], at: number): Frame;
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
- export interface Ask {
227
- id: string;
228
- room: string;
229
- /** The person it waits on. */
230
- who: string;
231
- /** What the agent asked for, as a phrase with `{what}` filled from the card. */
232
- say: string;
233
- what: string;
234
- }
235
- /**
236
- * What waits on a person in a frame. Always: a draft not yet sent, a question
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).
240
- */
241
- export declare function waiting(f: Frame, supervised: boolean): Ask[];
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). */
243
- export declare const LIMITS: Record<string, {
244
- week: number;
245
- task: number;
246
- }>;
247
- export {};