@hanzo/app 0.2.58 → 0.2.59

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 (85) 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 +84 -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.js +3 -3
  19. package/dist/Schedule.js +11 -15
  20. package/dist/Settings.d.ts +1 -1
  21. package/dist/SettingsPane.js +2 -2
  22. package/dist/Shared.js +11 -16
  23. package/dist/Shell.js +1 -1
  24. package/dist/Talk.js +4 -4
  25. package/dist/Terminals.js +1 -3
  26. package/dist/Top.js +1 -1
  27. package/dist/Usage.js +3 -3
  28. package/dist/WindowControls.js +3 -5
  29. package/dist/Work.js +28 -51
  30. package/dist/bots/Bots.js +73 -129
  31. package/dist/bots/runtime.js +41 -103
  32. package/dist/cast.d.ts +1 -1
  33. package/dist/cast.js +1 -1
  34. package/dist/failure.d.ts +1 -1
  35. package/dist/failure.js +1 -1
  36. package/dist/ground.d.ts +14 -0
  37. package/dist/ground.js +14 -0
  38. package/dist/lib/limits.d.ts +1 -1
  39. package/dist/lib/limits.js +1 -1
  40. package/dist/lib/org.d.ts +3 -3
  41. package/dist/lib/org.js +5 -4
  42. package/dist/lib/orgname.d.ts +1 -1
  43. package/dist/lib/orgname.js +1 -1
  44. package/dist/lib/pay.d.ts +2 -6
  45. package/dist/lib/pay.js +2 -15
  46. package/dist/lib/plans.d.ts +1 -1
  47. package/dist/lib/plans.js +1 -1
  48. package/dist/lib/tier.d.ts +2 -2
  49. package/dist/lib/tier.js +6 -6
  50. package/dist/look.js +8 -10
  51. package/dist/recent.d.ts +1 -1
  52. package/dist/recent.js +2 -1
  53. package/dist/say.d.ts +4 -0
  54. package/dist/say.js +7 -0
  55. package/dist/thread.js +1 -1
  56. package/package.json +3 -3
  57. package/assets/memoji/art.svg +0 -22
  58. package/assets/memoji/cyber.svg +0 -22
  59. package/assets/memoji/data.svg +0 -22
  60. package/assets/memoji/des.svg +0 -22
  61. package/assets/memoji/dev.svg +0 -22
  62. package/assets/memoji/doc.svg +0 -22
  63. package/assets/memoji/edu.svg +0 -22
  64. package/assets/memoji/fin.svg +0 -22
  65. package/assets/memoji/gov.svg +0 -22
  66. package/assets/memoji/huma.svg +0 -22
  67. package/assets/memoji/lang.svg +0 -22
  68. package/assets/memoji/law.svg +0 -22
  69. package/assets/memoji/mana.svg +0 -22
  70. package/assets/memoji/mark.svg +0 -22
  71. package/assets/memoji/mu.svg +0 -22
  72. package/assets/memoji/opera.svg +0 -22
  73. package/assets/memoji/rev.svg +0 -22
  74. package/assets/memoji/sal.svg +0 -22
  75. package/assets/memoji/sci.svg +0 -22
  76. package/assets/memoji/su.svg +0 -22
  77. package/assets/memoji/vi.svg +0 -22
  78. package/dist/TeamPreview.d.ts +0 -9
  79. package/dist/TeamPreview.js +0 -305
  80. package/dist/TeamStory.d.ts +0 -49
  81. package/dist/TeamStory.js +0 -67
  82. package/dist/preview.d.ts +0 -84
  83. package/dist/preview.js +0 -120
  84. package/dist/workday.d.ts +0 -247
  85. package/dist/workday.js +0 -642
@@ -1,22 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="rev">
2
- <defs>
3
- <linearGradient id="g-rev" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fdba74"/><stop offset="1" stop-color="#c2410c"/></linearGradient>
4
- <radialGradient id="f-rev" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#cc9872"/></radialGradient>
5
- <clipPath id="c-rev"><circle cx="128" cy="128" r="128"/></clipPath>
6
- </defs>
7
- <g clip-path="url(#c-rev)">
8
- <rect width="256" height="256" fill="url(#g-rev)"/>
9
- <circle cx="84" cy="64" r="70" fill="#fff" opacity=".13"/>
10
- <path d="M26 256 C30 214 66 196 128 196 C190 196 226 214 230 256 Z" fill="#ea580c"/><path d="M26 256 C30 214 66 196 128 196 C100 214 96 240 98 256 Z" fill="#fc6a1e" opacity=".5"/><path d="M104 196 L128 226 L152 196 Z" fill="#ffedd5"/><circle cx="182" cy="226" r="16" fill="#f8fafc"/><g transform="translate(172 216) scale(.83)" fill="none" stroke="#9a3412" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M14.5 9.5c0-1.2-1.2-2-2.5-2s-2.5.8-2.5 2 1 1.7 2.5 2 2.5.8 2.5 2-1.2 2-2.5 2-2.5-.8-2.5-2M12 5.5v2M12 16.5v2"/></g>
11
- <rect x="110" y="168" width="36" height="36" rx="14" fill="#c7936d"/>
12
- <ellipse cx="68" cy="128" rx="9" ry="13" fill="#d6a27c"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d6a27c"/>
13
- <ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-rev)"/>
14
- <path d="M72 112 C68 64 100 48 128 48 C158 48 190 64 184 112 C172 90 150 80 128 82 C106 80 84 90 72 112 Z" fill="#292524"/>
15
- <g stroke="#312d2c" stroke-width="5" stroke-linecap="round" fill="none"><path d="M90 106 Q104 98 118 104"/><path d="M138 104 Q152 98 166 106"/></g>
16
- <g fill="#1f2937"><ellipse cx="104" cy="126" rx="7.5" ry="9"/><ellipse cx="152" cy="126" rx="7.5" ry="9"/></g><g fill="#fff"><circle cx="107" cy="122" r="2.8"/><circle cx="155" cy="122" r="2.8"/></g>
17
- <ellipse cx="88" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/><ellipse cx="168" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/>
18
- <path d="M126 134 Q132 140 126 144" stroke="#ad7953" stroke-width="3.5" fill="none" stroke-linecap="round" opacity=".7"/>
19
- <path d="M110 154 Q128 172 146 154" stroke="#7c2d12" stroke-width="5" fill="#fff" stroke-linecap="round" stroke-linejoin="round"/>
20
- <g fill="#ffffff22" stroke="#1f2937" stroke-width="5"><circle cx="102" cy="124" r="17"/><circle cx="154" cy="124" r="17"/></g><path d="M119 124 L137 124" stroke="#1f2937" stroke-width="5"/>
21
- </g>
22
- </svg>
@@ -1,22 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="sal">
2
- <defs>
3
- <linearGradient id="g-sal" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fdba74"/><stop offset="1" stop-color="#c2410c"/></linearGradient>
4
- <radialGradient id="f-sal" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#d19169"/><stop offset="1" stop-color="#a3633b"/></radialGradient>
5
- <clipPath id="c-sal"><circle cx="128" cy="128" r="128"/></clipPath>
6
- </defs>
7
- <g clip-path="url(#c-sal)">
8
- <rect width="256" height="256" fill="url(#g-sal)"/>
9
- <circle cx="84" cy="64" r="70" fill="#fff" opacity=".13"/>
10
- <path d="M26 256 C30 214 66 196 128 196 C190 196 226 214 230 256 Z" fill="#ea580c"/><path d="M26 256 C30 214 66 196 128 196 C100 214 96 240 98 256 Z" fill="#fc6a1e" opacity=".5"/><path d="M104 196 L128 226 L152 196 Z" fill="#ffedd5"/><circle cx="182" cy="226" r="16" fill="#f8fafc"/><g transform="translate(172 216) scale(.83)" fill="none" stroke="#9a3412" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4.5"/><circle cx="12" cy="12" r=".8"/></g>
11
- <rect x="110" y="168" width="36" height="36" rx="14" fill="#9e5e36"/>
12
- <ellipse cx="68" cy="128" rx="9" ry="13" fill="#ad6d45"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#ad6d45"/>
13
- <ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-sal)"/>
14
- <path d="M68 118 C62 66 98 42 138 44 C176 46 196 72 186 118 C184 98 170 86 152 84 C126 70 92 84 68 118 Z" fill="#44200f"/><path d="M92 62 C120 44 160 48 180 74" stroke="#583423" stroke-width="5" stroke-linecap="round" fill="none"/>
15
- <g stroke="#4c2817" stroke-width="5" stroke-linecap="round" fill="none"><path d="M90 106 Q104 98 118 104"/><path d="M138 104 Q152 98 166 106"/></g>
16
- <path d="M92 126 Q104 114 116 126" stroke="#1f2937" stroke-width="5" fill="none" stroke-linecap="round"/><path d="M140 126 Q152 114 164 126" stroke="#1f2937" stroke-width="5" fill="none" stroke-linecap="round"/>
17
- <ellipse cx="88" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/><ellipse cx="168" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/>
18
- <path d="M126 134 Q132 140 126 144" stroke="#84441c" stroke-width="3.5" fill="none" stroke-linecap="round" opacity=".7"/>
19
- <path d="M110 154 Q128 172 146 154" stroke="#7c2d12" stroke-width="5" fill="#fff" stroke-linecap="round" stroke-linejoin="round"/>
20
-
21
- </g>
22
- </svg>
@@ -1,22 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="sci">
2
- <defs>
3
- <linearGradient id="g-sci" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5eead4"/><stop offset="1" stop-color="#0f766e"/></linearGradient>
4
- <radialGradient id="f-sci" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#ffedcd"/><stop offset="1" stop-color="#e2bf9f"/></radialGradient>
5
- <clipPath id="c-sci"><circle cx="128" cy="128" r="128"/></clipPath>
6
- </defs>
7
- <g clip-path="url(#c-sci)">
8
- <rect width="256" height="256" fill="url(#g-sci)"/>
9
- <circle cx="84" cy="64" r="70" fill="#fff" opacity=".13"/>
10
- <circle cx="76" cy="92" r="24" fill="#d1d5db"/><circle cx="96" cy="66" r="26" fill="#d1d5db"/><circle cx="128" cy="58" r="28" fill="#d1d5db"/><circle cx="160" cy="66" r="26" fill="#d1d5db"/><circle cx="180" cy="92" r="24" fill="#d1d5db"/><circle cx="70" cy="122" r="18" fill="#d1d5db"/><circle cx="186" cy="122" r="18" fill="#d1d5db"/><path d="M26 256 C30 214 66 196 128 196 C190 196 226 214 230 256 Z" fill="#0f766e"/><path d="M26 256 C30 214 66 196 128 196 C100 214 96 240 98 256 Z" fill="#218880" opacity=".5"/><path d="M104 196 L128 226 L152 196 Z" fill="#ccfbf1"/><circle cx="182" cy="226" r="16" fill="#f8fafc"/><g transform="translate(172 216) scale(.83)" fill="none" stroke="#115e59" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3h6M10 3v6l-5 9a2 2 0 002 3h10a2 2 0 002-3l-5-9V3"/><path d="M8 15h8"/></g>
11
- <rect x="110" y="168" width="36" height="36" rx="14" fill="#ddba9a"/>
12
- <ellipse cx="68" cy="128" rx="9" ry="13" fill="#ecc9a9"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#ecc9a9"/>
13
- <ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-sci)"/>
14
- <path d="M74 108 C80 80 104 70 128 72 C152 70 176 80 182 108 C170 94 150 88 128 90 C106 88 86 94 74 108 Z" fill="#d1d5db"/>
15
- <g stroke="#d9dde3" stroke-width="5" stroke-linecap="round" fill="none"><path d="M90 106 Q104 98 118 104"/><path d="M138 104 Q152 98 166 106"/></g>
16
- <g fill="#1f2937"><ellipse cx="104" cy="126" rx="7.5" ry="9"/><ellipse cx="152" cy="126" rx="7.5" ry="9"/></g><g fill="#fff"><circle cx="107" cy="122" r="2.8"/><circle cx="155" cy="122" r="2.8"/></g>
17
- <ellipse cx="88" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/><ellipse cx="168" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/>
18
- <path d="M126 134 Q132 140 126 144" stroke="#c3a080" stroke-width="3.5" fill="none" stroke-linecap="round" opacity=".7"/>
19
- <path d="M110 154 Q128 172 146 154" stroke="#7c2d12" stroke-width="5" fill="#fff" stroke-linecap="round" stroke-linejoin="round"/>
20
-
21
- </g>
22
- </svg>
@@ -1,22 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="su">
2
- <defs>
3
- <linearGradient id="g-su" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fdba74"/><stop offset="1" stop-color="#c2410c"/></linearGradient>
4
- <radialGradient id="f-su" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#855c40"/><stop offset="1" stop-color="#572e12"/></radialGradient>
5
- <clipPath id="c-su"><circle cx="128" cy="128" r="128"/></clipPath>
6
- </defs>
7
- <g clip-path="url(#c-su)">
8
- <rect width="256" height="256" fill="url(#g-su)"/>
9
- <circle cx="84" cy="64" r="70" fill="#fff" opacity=".13"/>
10
- <circle cx="76" cy="92" r="24" fill="#1c1410"/><circle cx="96" cy="66" r="26" fill="#1c1410"/><circle cx="128" cy="58" r="28" fill="#1c1410"/><circle cx="160" cy="66" r="26" fill="#1c1410"/><circle cx="180" cy="92" r="24" fill="#1c1410"/><circle cx="70" cy="122" r="18" fill="#1c1410"/><circle cx="186" cy="122" r="18" fill="#1c1410"/><path d="M26 256 C30 214 66 196 128 196 C190 196 226 214 230 256 Z" fill="#ea580c"/><path d="M26 256 C30 214 66 196 128 196 C100 214 96 240 98 256 Z" fill="#fc6a1e" opacity=".5"/><path d="M104 196 L128 226 L152 196 Z" fill="#ffedd5"/><circle cx="182" cy="226" r="16" fill="#f8fafc"/><g transform="translate(172 216) scale(.83)" fill="none" stroke="#9a3412" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13v-1a7 7 0 0114 0v1"/><rect x="3.5" y="12.5" width="3.5" height="6" rx="1.5"/><rect x="17" y="12.5" width="3.5" height="6" rx="1.5"/><path d="M18 19c0 1.5-2 2-5 2"/></g>
11
- <rect x="110" y="168" width="36" height="36" rx="14" fill="#52290d"/>
12
- <ellipse cx="68" cy="128" rx="9" ry="13" fill="#61381c"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#61381c"/>
13
- <ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-su)"/>
14
- <path d="M74 108 C80 80 104 70 128 72 C152 70 176 80 182 108 C170 94 150 88 128 90 C106 88 86 94 74 108 Z" fill="#1c1410"/>
15
- <g stroke="#241c18" stroke-width="5" stroke-linecap="round" fill="none"><path d="M90 106 Q104 98 118 104"/><path d="M138 104 Q152 98 166 106"/></g>
16
- <path d="M92 126 Q104 114 116 126" stroke="#1f2937" stroke-width="5" fill="none" stroke-linecap="round"/><path d="M140 126 Q152 114 164 126" stroke="#1f2937" stroke-width="5" fill="none" stroke-linecap="round"/>
17
- <ellipse cx="88" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/><ellipse cx="168" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/>
18
- <path d="M126 134 Q132 140 126 144" stroke="#380f00" stroke-width="3.5" fill="none" stroke-linecap="round" opacity=".7"/>
19
- <path d="M110 154 Q128 172 146 154" stroke="#7c2d12" stroke-width="5" fill="#fff" stroke-linecap="round" stroke-linejoin="round"/>
20
- <path d="M66 122 C60 54 196 54 190 122" stroke="#1f2937" stroke-width="8" fill="none" stroke-linecap="round"/><rect x="54" y="110" width="20" height="32" rx="10" fill="#1f2937"/><path d="M62 140 C66 170 94 176 112 170" stroke="#1f2937" stroke-width="5" fill="none" stroke-linecap="round"/><circle cx="114" cy="170" r="7" fill="#374151"/>
21
- </g>
22
- </svg>
@@ -1,22 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="vi">
2
- <defs>
3
- <linearGradient id="g-vi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#a5b4fc"/><stop offset="1" stop-color="#4338ca"/></linearGradient>
4
- <radialGradient id="f-vi" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#e0a27d"/><stop offset="1" stop-color="#b2744f"/></radialGradient>
5
- <clipPath id="c-vi"><circle cx="128" cy="128" r="128"/></clipPath>
6
- </defs>
7
- <g clip-path="url(#c-vi)">
8
- <rect width="256" height="256" fill="url(#g-vi)"/>
9
- <circle cx="84" cy="64" r="70" fill="#fff" opacity=".13"/>
10
- <path d="M26 256 C30 214 66 196 128 196 C190 196 226 214 230 256 Z" fill="#4338ca"/><path d="M26 256 C30 214 66 196 128 196 C100 214 96 240 98 256 Z" fill="#554adc" opacity=".5"/><path d="M104 196 L128 226 L152 196 Z" fill="#e0e7ff"/><path d="M120 214 L136 214 L142 252 L128 262 L114 252 Z" fill="#ef4444"/><path d="M120 206 L136 206 L132 216 L124 216 Z" fill="#dc2626"/><circle cx="182" cy="226" r="16" fill="#f8fafc"/><g transform="translate(172 216) scale(.83)" fill="none" stroke="#3730a3" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l2 7 7 2-7 2-2 7-2-7-7-2 7-2z"/></g>
11
- <rect x="110" y="168" width="36" height="36" rx="14" fill="#ad6f4a"/>
12
- <ellipse cx="68" cy="128" rx="9" ry="13" fill="#bc7e59"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#bc7e59"/>
13
- <ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-vi)"/>
14
- <path d="M70 116 C64 68 96 44 132 46 C168 48 192 70 186 116 C180 98 168 84 150 80 C130 92 96 90 70 116 Z" fill="#111827"/><path d="M96 66 C118 56 146 56 168 70" stroke="#252c3b" stroke-width="5" stroke-linecap="round" fill="none"/>
15
- <g stroke="#19202f" stroke-width="5" stroke-linecap="round" fill="none"><path d="M90 106 Q104 98 118 104"/><path d="M138 104 Q152 98 166 106"/></g>
16
- <g fill="#1f2937"><ellipse cx="104" cy="126" rx="7.5" ry="9"/><ellipse cx="152" cy="126" rx="7.5" ry="9"/></g><g fill="#fff"><circle cx="107" cy="122" r="2.8"/><circle cx="155" cy="122" r="2.8"/></g>
17
- <ellipse cx="88" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/><ellipse cx="168" cy="146" rx="11" ry="7" fill="#f87171" opacity=".28"/>
18
- <path d="M126 134 Q132 140 126 144" stroke="#935530" stroke-width="3.5" fill="none" stroke-linecap="round" opacity=".7"/>
19
- <path d="M110 154 Q128 172 146 154" stroke="#7c2d12" stroke-width="5" fill="#fff" stroke-linecap="round" stroke-linejoin="round"/>
20
-
21
- </g>
22
- </svg>
@@ -1,9 +0,0 @@
1
- import { type PreviewProps } from './preview.js';
2
- /**
3
- * Hanzo Team's workspace, playing. From 600px of its own width it is the
4
- * desktop app (the rail, the workspace's column, the channel); narrower, or
5
- * told `phone`, the phone app: the channel, with the rail and the column as a
6
- * drawer. A host (the landing's hero) can pause it, hear when it ends, and fit
7
- * it to a device's screen (`PreviewProps`).
8
- */
9
- export declare function TeamPreview(props: PreviewProps): import("react").JSX.Element;
@@ -1,305 +0,0 @@
1
- 'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useEffect, useMemo, useRef, useState } from 'react';
4
- import { AtSign, CalendarCheck, Check, ChevronDown, Eye, FileSpreadsheet, FileText, Flame, GitMerge, GitPullRequest, Hash, Headphones, Heart, Image as Picture, Laugh, Mail, Menu, Mic, PartyPopper, Plus, Presentation, Rocket, Search, SendHorizontal, Smile, SquarePen, ThumbsUp, X, CornerDownRight, ShieldCheck, Target, Wallet, UserRound, } from 'lucide-react';
5
- import { useI18n } from '@hanzo/i18n/react';
6
- import { Avatar as Monogram, Text, View, XStack, YStack } from '@hanzo/ui';
7
- import { Face } from './cast.js';
8
- import { md, useHost, usePlay, useStage, useStill } from './preview.js';
9
- import { DAY, HOME, LIMITS, MISSIONS, ORGS, SCENE, STILL, agent, channelOf, frame, orgOf, pace, waiting, who } from './workday.js';
10
- /**
11
- * Hanzo Team, playing: a working day in the workspace, laid out the way a team
12
- * chat is read. hanzo.team's landing and hanzo.ai's /team open on it, and
13
- * hanzo.ai's hero plays it in its cycle; one component for every host.
14
- *
15
- * Far left, the organizations a person belongs to (one active, "+" under them,
16
- * the reader at the foot); then the workspace's column: its name, Channels
17
- * (bold and counted when unread), Direct messages with who is here, and the
18
- * org's Agents; then the channel: its name and topic, who is in it, the huddle,
19
- * the messages with their cards, reactions and threads, who is typing, and the
20
- * composer. A thread opens beside the channel when there is room, over it when
21
- * not.
22
- *
23
- * The day is `./workday`: more than five minutes of people and agents working
24
- * together before it plays again. It plays while on screen and the pointer is
25
- * elsewhere. Pressing an org or a channel plays that room's own scene, an
26
- * agent's question or a draft answers a press, and from then on the reader
27
- * drives: nothing loops over them. A reader who asked for less motion, the
28
- * server and the first paint get one whole frame: #eng with the pull request
29
- * merged.
30
- *
31
- * People wear their initials (`Face`, as the app draws a person with no
32
- * picture); agents wear the crew's memoji, `/memoji/<id>.svg`, from this
33
- * package's assets. The chrome is monochrome; the faces carry the colour.
34
- */
35
- /** A reaction's mark: monochrome, as the rest of the chrome. */
36
- const MARKS = { thumbs: ThumbsUp, heart: Heart, flame: Flame, rocket: Rocket, eyes: Eye, laugh: Laugh, party: PartyPopper, check: Check };
37
- /** A file's mark, by what it is. */
38
- const FILES = { doc: FileText, deck: Presentation, sheet: FileSpreadsheet, image: Picture };
39
- /** A button drawn as one of the workspace's rows: the press, the hover, the focus ring. */
40
- const ROW = {
41
- borderWidth: 0,
42
- cursor: 'pointer',
43
- hoverStyle: { bg: '$hover' },
44
- focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: 'var(--ring)', outlineOffset: -2 },
45
- };
46
- /** The fade a list takes where it runs out of room. */
47
- const TOP = { maskImage: 'linear-gradient(to bottom, transparent, black 48px)', WebkitMaskImage: 'linear-gradient(to bottom, transparent, black 48px)' };
48
- const FOOT = { maskImage: 'linear-gradient(to bottom, black 82%, transparent)', WebkitMaskImage: 'linear-gradient(to bottom, black 82%, transparent)' };
49
- /** The reader, at the rail's foot. */
50
- const ME = 'ada';
51
- /** How wide the preview must be to draw the workspace's column (below: the phone app). */
52
- const DESK = 560;
53
- /** The workspace's column: narrower while the preview is. */
54
- const breadth = (width) => (width && width < 700 ? 176 : width && width < 820 ? 200 : 232);
55
- /** How tall a phone's preview must be to list the channels under the orgs (a short one, a landing's card, leaves them to the drawer). */
56
- const LIST = 560;
57
- /** How wide the preview must be for the channel's header to show who is in it. */
58
- const FACES = 900;
59
- /** "1 reply", "3 replies". */
60
- const replies = (t, n) => (n === 1 ? t('1 reply') : t('{count} replies', { count: n }));
61
- /** How wide it must be for a thread to stand beside the channel rather than over it. */
62
- const ROOM = 1000;
63
- /** A person's initials or an agent's memoji. */
64
- function Avatar({ id, size }) {
65
- if (!agent(id))
66
- return _jsx(Face, { name: who(id).name, size: size, person: true });
67
- return (_jsx(View, { render: _jsx("img", { src: `/memoji/${id}.svg`, alt: "", width: size, height: size, loading: "lazy", decoding: "async" }), width: size, height: size, shrink: 0, rounded: 9999, display: "block", "$platform-web": { borderRadius: '9999px' } }));
68
- }
69
- /** A dot that says someone is here now; hollow when away, pulsing while they work. */
70
- function Here({ away, busy }) {
71
- return (_jsx(View, { "data-motion": busy ? 'pulse' : undefined, width: 8, height: 8, shrink: 0, rounded: 9999, borderWidth: away ? 1.5 : 0, borderColor: "$soft", bg: away ? 'transparent' : 'var(--state-online)', "$platform-web": { borderRadius: '9999px' } }));
72
- }
73
- /** A line of a message with its mentions set apart: `@dev` reads as the agent's name. */
74
- function Said({ text }) {
75
- return (_jsx(_Fragment, { children: text.split(/(@[a-z]+)/).map((part, i) => /^@[a-z]+$/.test(part) ? (_jsx(Text, { render: "span", fontWeight: "600", color: "$ink", bg: "$raised", px: 3, rounded: 4, "$platform-web": { borderRadius: '4px' }, children: `@${who(part.slice(1)).name}` }, i)) : (part)) }));
76
- }
77
- /** The frame every card in a message stands in. */
78
- function Frame({ children }) {
79
- return (_jsx(YStack, { "data-motion": "rise", self: "flex-start", width: "100%", maxW: 420, mt: 4, gap: 8, p: 12, rounded: 12, borderWidth: 1, borderColor: "$edge", bg: "$panel", "$platform-web": { borderRadius: '12px' }, children: children }));
80
- }
81
- /** A small round state: a check once done, an empty ring before. */
82
- function Tick({ done }) {
83
- return (_jsx(XStack, { width: 16, height: 16, shrink: 0, rounded: 9999, items: "center", justify: "center", borderWidth: 1, borderColor: done ? '$ink' : '$edge', bg: done ? '$ink' : 'transparent', "$platform-web": { borderRadius: '9999px', transition: 'background-color 260ms ease, border-color 260ms ease' }, children: done ? _jsx(Check, { size: 10, strokeWidth: 3, color: "var(--background)", "aria-hidden": true }) : null }));
84
- }
85
- /** A pill-shaped control a card offers; inked once it is the answer. */
86
- function Choice({ on, faded, label, onPress }) {
87
- return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, onClick: onPress }), items: "center", gap: 6, px: 12, py: 5, rounded: 9999, borderWidth: 1, borderColor: on ? '$ink' : '$edge', bg: on ? '$ink' : 'transparent', opacity: faded ? 0.5 : 1, cursor: "pointer", hoverStyle: { borderColor: '$ink' }, focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '9999px', transition: 'background-color 240ms ease, border-color 240ms ease, opacity 240ms ease' }, children: [on ? _jsx(Check, { size: 12, color: "var(--background)", strokeWidth: 2.6, "aria-hidden": true }) : null, _jsx(Text, { fontSize: "$1", fontWeight: "500", color: on ? '$background' : '$ink', children: label })] }));
88
- }
89
- /** What a message carries: a pull request, a draft, a file, a meeting, a list, a question, design options. */
90
- function Attachment({ card, onPick }) {
91
- const { t } = useI18n();
92
- switch (card.kind) {
93
- case 'pr': {
94
- const merged = card.state === 'merged';
95
- const Mark = merged ? GitMerge : GitPullRequest;
96
- const state = merged ? t('Merged') : card.state === 'passed' ? t('Checks passed') : t('Review requested');
97
- return (_jsxs(Frame, { children: [_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Mark, { size: 15, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontFamily: "$mono", fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: `${card.repo} #${card.number}` })] }), _jsx(Text, { fontSize: "$2", lineHeight: "$3", fontWeight: "600", color: "$ink", children: t(card.title) }), _jsxs(XStack, { items: "center", gap: 10, flexWrap: "wrap", children: [_jsx(Text, { fontFamily: "$mono", fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: `+${card.add} −${card.del}` }), _jsxs(XStack, { "data-motion": "rise", items: "center", gap: 5, px: 8, py: 2, rounded: 9999, borderWidth: 1, borderColor: card.state === 'review' ? '$edge' : '$ink', bg: merged ? '$ink' : 'transparent', "$platform-web": { borderRadius: '9999px' }, children: [card.state === 'review' ? null : _jsx(Check, { size: 11, strokeWidth: 3, color: merged ? 'var(--background)' : 'var(--foreground)', "aria-hidden": true }), _jsx(Text, { fontSize: 11, lineHeight: 16, fontWeight: "600", color: merged ? '$background' : '$ink', children: state })] }, card.state)] })] }));
98
- }
99
- case 'draft':
100
- return (_jsxs(Frame, { children: [_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Mail, { size: 14, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: "$soft", numberOfLines: 1, children: t('To: {to}', { to: t(card.to) }) }), _jsx(Text, { fontSize: 11, fontWeight: "600", color: card.sent ? '$ink' : '$soft', children: card.sent ? t('Sent') : t('Draft') })] }), _jsx(Text, { "data-motion": "rise", fontSize: "$2", lineHeight: "$3", color: "$ink", children: t(card.body) }, card.body), card.sent ? null : (_jsx(XStack, { gap: 8, children: _jsx(Choice, { on: false, faded: false, label: t('Send'), onPress: () => onPick({ sent: true }) }) }))] }));
101
- case 'file': {
102
- const Mark = FILES[card.type];
103
- return (_jsx(Frame, { children: _jsxs(XStack, { items: "center", gap: 10, children: [_jsx(XStack, { width: 36, height: 36, shrink: 0, rounded: 8, items: "center", justify: "center", bg: "$raised", "$platform-web": { borderRadius: '8px' }, children: _jsx(Mark, { size: 17, color: "var(--foreground)", "aria-hidden": true }) }), _jsxs(YStack, { flex: 1, minW: 0, children: [_jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$ink", numberOfLines: 1, "data-i18n-ltr": true, children: card.name }), card.detail ? (_jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: t(card.detail) })) : null] })] }) }));
104
- }
105
- case 'meeting':
106
- return (_jsx(Frame, { children: _jsxs(XStack, { items: "center", gap: 10, children: [_jsx(XStack, { width: 36, height: 36, shrink: 0, rounded: 8, items: "center", justify: "center", bg: "$ink", "$platform-web": { borderRadius: '8px' }, children: _jsx(CalendarCheck, { size: 17, color: "var(--background)", "aria-hidden": true }) }), _jsxs(YStack, { flex: 1, minW: 0, children: [_jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$ink", numberOfLines: 1, children: t(card.title) }), _jsx(Text, { fontSize: "$1", lineHeight: 16, color: "$soft", children: t('{when} · on everyone’s calendar', { when: t(card.when) }) })] })] }) }));
107
- case 'list':
108
- return (_jsxs(Frame, { children: [_jsx(Text, { fontSize: "$1", fontWeight: "700", color: "$ink", children: t(card.title) }), _jsx(YStack, { gap: 6, children: card.items.map((item, i) => (_jsxs(XStack, { items: "center", gap: 8, children: [card.done ? _jsx(Tick, { done: card.done.includes(i) }) : _jsx(View, { width: 5, height: 5, shrink: 0, rounded: 9999, bg: "$soft", mx: 5, "$platform-web": { borderRadius: '9999px' } }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$2", lineHeight: "$2", color: "$ink", children: t(item) })] }, item))) })] }));
109
- case 'ask':
110
- return (_jsx(Frame, { children: _jsx(XStack, { gap: 8, flexWrap: "wrap", children: card.options.map((o, i) => (_jsx(Choice, { on: card.picked === i, faded: card.picked !== undefined && card.picked !== i, label: t(o), onPress: () => onPick({ picked: i }) }, o))) }) }));
111
- case 'options':
112
- return (_jsxs(Frame, { children: [_jsx(Text, { fontFamily: "$mono", fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: card.file }), _jsx(XStack, { gap: 8, children: card.options.map((o, i) => {
113
- const on = card.picked === i;
114
- return (_jsxs(YStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": t('Option {name}', { name: o }), onClick: () => onPick({ picked: i }) }), flex: 1, gap: 5, p: 8, rounded: 8, borderWidth: on ? 2 : 1, borderColor: on ? '$ink' : '$edge', bg: "$background", opacity: card.picked !== undefined && !on ? 0.55 : 1, cursor: "pointer", focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '8px', transition: 'opacity 240ms ease, border-color 240ms ease' }, children: [_jsxs(XStack, { items: "center", justify: "space-between", children: [_jsx(Text, { fontSize: "$1", fontWeight: "700", color: "$ink", "data-i18n-ltr": true, children: o }), on ? _jsx(Check, { size: 12, strokeWidth: 3, color: "var(--foreground)", "aria-hidden": true }) : null] }), _jsx(XStack, { gap: 4, children: [0, 1, 2].map((c) => (_jsxs(YStack, { flex: 1, gap: 3, p: 4, rounded: 4, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '4px' }, children: [_jsx(View, { height: 4, width: "70%", rounded: 2, bg: "$raised" }), Array.from({ length: i ? 2 : 4 }, (_, k) => (_jsx(View, { height: 3, width: "90%", rounded: 2, bg: "$hover" }, k)))] }, c))) })] }, o));
115
- }) })] }));
116
- }
117
- }
118
- /** The reactions under a message; a count that changes lands again. */
119
- function Reactions({ list }) {
120
- return (_jsx(XStack, { gap: 6, mt: 4, flexWrap: "wrap", children: list.map((r) => {
121
- const Mark = MARKS[r.mark];
122
- return (_jsxs(XStack, { "data-motion": "rise", items: "center", gap: 4, px: 8, py: 2, rounded: 9999, borderWidth: 1, borderColor: "$edge", bg: "$hover", "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Mark, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", fontWeight: "600", color: "$ink", "data-i18n-ltr": true, children: r.n })] }, `${r.mark}:${r.n}`));
123
- }) }));
124
- }
125
- /** A message's name line: the name, an agent's tag, the time. */
126
- function Byline({ id, time }) {
127
- const { t } = useI18n();
128
- return (_jsxs(XStack, { items: "center", gap: 6, minW: 0, children: [_jsx(Text, { fontSize: "$2", fontWeight: "700", color: "$ink", numberOfLines: 1, children: who(id).name }), agent(id) ? (_jsx(Text, { fontSize: 10, lineHeight: 15, fontWeight: "600", px: 5, rounded: 4, bg: "$raised", color: "$soft", "$platform-web": { borderRadius: '4px' }, children: t('Agent') })) : null, _jsx(Text, { fontSize: 11, color: "$faint", "data-i18n-ltr": true, children: time })] }));
129
- }
130
- /** "9:41 AM", in the reader's language, for a minute of the sample day. */
131
- function useClock() {
132
- const { locale } = useI18n();
133
- const time = useMemo(() => new Intl.DateTimeFormat(locale, { hour: 'numeric', minute: '2-digit' }), [locale]);
134
- return (minute) => time.format(new Date(2026, 9, 29, Math.floor(minute / 60), minute % 60));
135
- }
136
- /** One message: the face (or nothing, under the same author's last), the words, its card, reactions and thread. */
137
- function Post({ m, grouped, onThread, onPick }) {
138
- const { t } = useI18n();
139
- const clock = useClock();
140
- const last = m.replies[m.replies.length - 1];
141
- const faces = [...new Set(m.replies.map((r) => r.who))].slice(0, 3);
142
- return (_jsxs(XStack, { "data-motion": "rise", gap: 10, items: "flex-start", pt: grouped ? 0 : 8, children: [_jsx(View, { width: 34, shrink: 0, items: "center", children: grouped ? null : _jsx(Avatar, { id: m.who, size: 34 }) }), _jsxs(YStack, { flex: 1, minW: 0, gap: 2, children: [grouped ? null : _jsx(Byline, { id: m.who, time: clock(m.time) }), _jsx(Text, { fontSize: "$2", lineHeight: "$3", color: "$ink", children: _jsx(Said, { text: t(m.text) }) }), m.card ? _jsx(Attachment, { card: m.card, onPick: onPick }) : null, m.reactions.length ? _jsx(Reactions, { list: m.reactions }) : null, m.replies.length ? (_jsxs(XStack, { render: _jsx("button", { type: "button", onClick: onThread, "aria-label": t('Open the thread: {replies}', { replies: replies(t, m.replies.length) }) }), self: "flex-start", items: "center", gap: 6, mt: 4, px: 4, py: 3, rounded: 8, bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: [_jsx(XStack, { children: faces.map((f, i) => (_jsx(View, { marginInlineStart: i ? -5 : 0, rounded: 9999, borderWidth: 1.5, borderColor: "var(--background)", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Avatar, { id: f, size: 18 }) }, f))) }), _jsx(Text, { fontSize: "$1", fontWeight: "700", color: "$ink", children: replies(t, m.replies.length) }), _jsx(Text, { fontSize: "$1", color: "$faint", numberOfLines: 1, children: last ? t('Last reply {time}', { time: clock(last.time) }) : null })] })) : null] })] }));
143
- }
144
- /** A count of what is unread, inked. */
145
- function Count({ n }) {
146
- return (_jsx(Text, { "data-motion": "rise", fontSize: 10, lineHeight: 16, minW: 18, px: 5, rounded: 9999, bg: "$ink", color: "$background", fontWeight: "700", text: "center", "$platform-web": { borderRadius: '9999px' }, "data-i18n-ltr": true, children: n }, n));
147
- }
148
- /**
149
- * An organization's tile: its initial in its own hue, as the app's org chooser
150
- * draws it (@hanzo/ui `Avatar`, seeded on the org's id). The active one wears a
151
- * ring in that hue; the others what is unread there.
152
- */
153
- function Tile({ org, on, n, size, onPress }) {
154
- const { t } = useI18n();
155
- return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": n ? t('Open {org}, {count} unread', { org: org.name, count: n }) : t('Open {org}', { org: org.name }), onClick: onPress }), position: "relative", shrink: 0, p: 2, rounded: 10, borderWidth: 2, borderColor: on ? '$ink' : 'transparent', bg: "transparent", cursor: "pointer", opacity: on ? 1 : 0.8, hoverStyle: { opacity: 1 }, focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '10px', transition: 'opacity 200ms ease, border-color 260ms ease' }, children: [_jsx(Monogram, { size: size, shape: "rounded", name: org.name, colorSeed: org.id, variant: on ? 'outline' : 'soft' }), n ? (_jsx(View, { position: "absolute", t: -7, insetInlineEnd: -8, children: _jsx(Count, { n: n }) })) : null] }));
156
- }
157
- /** One of the panel's boxes: a title (and what stands at its end), then what it holds. */
158
- function Box({ icon: Icon, title, aside, children }) {
159
- return (_jsxs(YStack, { gap: 8, p: 12, rounded: 12, borderWidth: 1, borderColor: "$edge", bg: "$panel", "$platform-web": { borderRadius: '12px' }, children: [_jsxs(XStack, { items: "center", gap: 6, children: [_jsx(Icon, { size: 13, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", fontWeight: "700", color: "$ink", numberOfLines: 1, children: title }), aside] }), children] }));
160
- }
161
- /**
162
- * The approval mode, as the app's settings hold it: autonomous (agents run
163
- * tools on their own and stop for anything risky) or supervised (they ask
164
- * before each tool, connector or site). Spending limits hold either way.
165
- */
166
- function Mode({ supervised, onSet, small = false }) {
167
- const { t } = useI18n();
168
- return (_jsx(XStack, { role: "radiogroup", "aria-label": t('How agents act'), p: 2, gap: 2, rounded: 9999, borderWidth: 1, borderColor: "$edge", bg: "$background", self: "flex-start", "$platform-web": { borderRadius: '9999px' }, children: [
169
- { on: false, label: t('Autonomous') },
170
- { on: true, label: t('Supervised') },
171
- ].map((m) => {
172
- const active = m.on === supervised;
173
- return (_jsx(XStack, { render: _jsx("button", { type: "button", role: "radio", "aria-checked": active, onClick: () => onSet(m.on) }), px: small ? 9 : 11, height: small ? 24 : 26, items: "center", rounded: 9999, borderWidth: 0, bg: active ? '$ink' : 'transparent', cursor: "pointer", focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '9999px', transition: 'background-color 200ms ease' }, children: _jsx(Text, { fontSize: small ? 11 : '$1', fontWeight: "600", color: active ? '$background' : '$soft', children: m.label }) }, m.label));
174
- }) }));
175
- }
176
- /** A bar of how much of a whole is done. */
177
- function Progress({ done, total }) {
178
- return (_jsx(View, { height: 6, rounded: 9999, bg: "$raised", overflow: "hidden", "$platform-web": { borderRadius: '9999px' }, children: _jsx(View, { height: "100%", width: `${total ? Math.round((done / total) * 100) : 0}%`, bg: "$ink", rounded: 9999, "$platform-web": { borderRadius: '9999px', transition: 'width 600ms cubic-bezier(0.2, 0.7, 0.2, 1)' } }) }));
179
- }
180
- /**
181
- * The column beside the channel, from 1000px of the preview's own width: how
182
- * agents act here, what waits on a person, the org's mission and how far it
183
- * has come, who handed what to whom, and the agents' spending limits.
184
- */
185
- function Panel({ org, supervised, onMode, asks, done, handoffs, onOpen }) {
186
- const { t } = useI18n();
187
- const clock = useClock();
188
- const mission = MISSIONS[org];
189
- // The four steps shown: the last two done, then what is next.
190
- const from = mission ? Math.max(0, Math.min(done.length - 2, mission.steps.length - 4)) : 0;
191
- const agents = ORGS.find((o) => o.id === org)?.agents.filter((a) => LIMITS[a]).slice(0, 3) ?? [];
192
- return (_jsxs(YStack, { flex: 1, minH: 0, overflow: "hidden", gap: 10, p: 12, bg: "$sunken", "$platform-web": FOOT, children: [_jsxs(Box, { icon: ShieldCheck, title: t('How agents act'), children: [_jsx(Mode, { supervised: supervised, onSet: onMode }), _jsx(Text, { fontSize: "$1", lineHeight: 16, color: "$soft", children: supervised ? t('Agents ask before each tool, connector or site. Spending limits stay on.') : t('Agents run tools on their own and stop for anything risky. Spending limits stay on.') })] }), _jsx(Box, { icon: UserRound, title: t('Needs a person'), aside: _jsx(Text, { "data-motion": "rise", fontSize: "$1", fontWeight: "700", color: "$ink", "data-i18n-ltr": true, children: asks.length }, asks.length), children: asks.length ? (asks.slice(0, 3).map((a) => (_jsxs(XStack, { "data-motion": "rise", render: _jsx("button", { type: "button", "aria-label": t('Open #{channel}', { channel: channelOf(a.room) }), onClick: () => onOpen(a.room) }), items: "center", gap: 8, p: 4, rounded: 8, bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px', textAlign: 'start' }, children: [_jsx(Avatar, { id: a.who, size: 20 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", lineHeight: 16, color: "$ink", numberOfLines: 2, children: t(a.say, { what: t(a.what) }) })] }, a.id)))) : (_jsx(Text, { fontSize: "$1", color: "$soft", children: t('Nothing right now.') })) }), mission ? (_jsxs(Box, { icon: Target, title: t(mission.title), aside: _jsx(Text, { fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), children: [_jsx(Progress, { done: done.length, total: mission.steps.length }), _jsx(YStack, { gap: 5, children: mission.steps.map((step, i) => ({ step, i })).slice(from, from + 4).map(({ step, i }) => (_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Tick, { done: done.includes(i) }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: done.includes(i) ? '$ink' : '$soft', numberOfLines: 1, children: t(step) })] }, step))) })] })) : null, _jsx(Box, { icon: CornerDownRight, title: t('Handoffs'), children: handoffs.length ? ([...handoffs]
193
- .reverse()
194
- .slice(0, 4)
195
- .map((h) => (_jsxs(XStack, { "data-motion": "rise", items: "center", gap: 6, children: [_jsx(Avatar, { id: h.from, size: 18 }), _jsx(CornerDownRight, { size: 11, color: "var(--muted-foreground)", "aria-hidden": true, "data-i18n-mirror": true }), _jsx(Avatar, { id: h.to, size: 18 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: "$ink", numberOfLines: 1, children: t('{from} to {to}', { from: who(h.from).name, to: who(h.to).name }) }), _jsx(Text, { fontSize: 11, color: "$faint", "data-i18n-ltr": true, children: clock(h.time) })] }, `${h.time}/${h.from}/${h.to}`)))) : (_jsx(Text, { fontSize: "$1", color: "$soft", children: t('No handoffs yet today.') })) }), agents.length ? (_jsx(Box, { icon: Wallet, title: t('Spending limits'), children: agents.map((a) => (_jsxs(XStack, { items: "center", gap: 8, children: [_jsx(Avatar, { id: a, size: 18 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$1", color: "$ink", numberOfLines: 1, children: who(a).name }), _jsx(Text, { fontSize: 11, color: "$soft", "data-i18n-ltr": true, children: t('{week} a week · {task} a task', { week: `$${LIMITS[a].week}`, task: `$${LIMITS[a].task}` }) })] }, a))) })) : null] }));
196
- }
197
- /** Three dots that take turns, beside who is typing. */
198
- function Dots() {
199
- return (_jsx(XStack, { gap: 3, "aria-hidden": true, children: ['0ms', '200ms', '400ms'].map((delay) => (_jsx(View, { "data-motion": "pulse", width: 4, height: 4, rounded: 9999, bg: "$soft", "$platform-web": { borderRadius: '9999px', animationDelay: delay } }, delay))) }));
200
- }
201
- /**
202
- * Hanzo Team's workspace, playing. From 600px of its own width it is the
203
- * desktop app (the rail, the workspace's column, the channel); narrower, or
204
- * told `phone`, the phone app: the channel, with the rail and the column as a
205
- * drawer. A host (the landing's hero) can pause it, hear when it ends, and fit
206
- * it to a device's screen (`PreviewProps`).
207
- */
208
- export function TeamPreview(props) {
209
- const { compact, phone } = props;
210
- const { t } = useI18n();
211
- const still = useStill();
212
- const { box, seen, width, height, visible, held, hold } = useStage();
213
- const { live, end } = useHost(props);
214
- // It always lays itself out by its own width, so it fits a page's column, a
215
- // hero's half and a device's screen alike; the window decides only before it
216
- // is measured (the server's render and the first paint).
217
- const desk = phone ? false : width ? width >= DESK : null;
218
- const roomy = desk !== false && width >= ROOM;
219
- const [driven, setDriven] = useState(false);
220
- const loop = useRef(true);
221
- const [replay, setReplay] = useState(0);
222
- // The room the reader opened, the rooms they have read, and what they set by hand.
223
- const [opened, setOpened] = useState(null);
224
- const [read, setRead] = useState([]);
225
- const [hand, setHand] = useState({});
226
- const [threadHand, setThreadHand] = useState(undefined);
227
- const [drawer, setDrawer] = useState(false);
228
- // How agents act: autonomous (the app's Auto approval) or supervised (Manual).
229
- const [supervised, setSupervised] = useState(false);
230
- useEffect(() => {
231
- loop.current = !driven;
232
- }, [driven]);
233
- const lines = useMemo(() => (opened ? (SCENE[opened] ?? pace([{ kind: 'open', room: opened, time: 9 * 60 }])) : DAY), [opened]);
234
- const run = seen && !still;
235
- const at = usePlay(lines, run, replay, { visible, held, loop, live, end });
236
- // Before it plays, and under reduced motion, the day stands at its still frame.
237
- const upto = opened || run ? at : STILL;
238
- const f = useMemo(() => frame(lines, upto), [lines, upto]);
239
- const here = f.room;
240
- const o = orgOf(here);
241
- const channel = channelOf(here);
242
- const topic = o.channels.find((c) => c.id === channel)?.topic ?? '';
243
- const messages = (f.rooms[here] ?? []).map((m) => (hand[m.id] && m.card ? { ...m, card: { ...m.card, ...hand[m.id] } } : m));
244
- const thread = threadHand === undefined ? f.thread : threadHand;
245
- const parent = thread ? messages.find((m) => m.id === thread) : undefined;
246
- const typing = f.typing;
247
- const huddle = f.huddle[here] ?? [];
248
- const unread = (room) => (room === here || read.includes(room) ? 0 : (f.unread[room] ?? 0));
249
- /** What is unread across an org's channels. */
250
- const news = (org) => ORGS.find((x) => x.id === org)?.channels.reduce((n, c) => n + unread(`${org}/${c.id}`), 0) ?? 0;
251
- const members = [...o.people.slice(0, 2), ...o.agents.slice(0, 2)];
252
- const asks = waiting(f, supervised).filter((a) => orgOf(a.room).id === o.id);
253
- const done = f.steps[o.id] ?? [];
254
- const handoffs = f.handoffs.filter((h) => orgOf(h.room).id === o.id);
255
- const mission = MISSIONS[o.id];
256
- /** The reader takes over: nothing loops over what they set. */
257
- const go = (room) => {
258
- setDriven(true);
259
- setDrawer(false);
260
- setThreadHand(undefined);
261
- setOpened(room);
262
- setRead((r) => (r.includes(room) ? r : [...r, room]));
263
- setReplay((n) => n + 1);
264
- };
265
- const pick = (id) => (patch) => {
266
- setDriven(true);
267
- setHand((h) => ({ ...h, [id]: { ...h[id], ...patch } }));
268
- };
269
- const openThread = (id) => {
270
- setDriven(true);
271
- setThreadHand(id);
272
- };
273
- /** The organizations a person belongs to: the active one marked, "+" under them, the reader at the foot. */
274
- const rail = (_jsxs(YStack, { items: "center", gap: 12, py: 12, width: 60, height: "100%", shrink: 0, borderColor: "$edge", borderInlineEndWidth: 1, bg: "$sunken", children: [ORGS.map((x) => {
275
- const on = x.id === o.id;
276
- return (_jsxs(XStack, { position: "relative", items: "center", justify: "center", children: [_jsx(View, { position: "absolute", insetInlineStart: -8, width: 4, height: on ? 28 : 0, rounded: 9999, bg: "$ink", "$platform-web": { borderRadius: '9999px', transition: still ? 'none' : 'height 260ms ease' } }), _jsx(Tile, { org: x, on: on, n: on ? 0 : news(x.id), size: "xl", onPress: () => go(HOME[x.id]) })] }, x.id));
277
- }), _jsx(XStack, { width: 32, height: 32, rounded: 8, items: "center", justify: "center", borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '8px' }, children: _jsx(Plus, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }) }), _jsx(View, { flex: 1 }), _jsxs(View, { position: "relative", children: [_jsx(Avatar, { id: ME, size: 30 }), _jsx(View, { position: "absolute", b: -1, insetInlineEnd: -1, rounded: 9999, borderWidth: 2, borderColor: "$sunken", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Here, {}) })] })] }));
278
- const heading = (label) => (_jsxs(XStack, { items: "center", gap: 4, px: 8, pt: 12, pb: 3, children: [_jsx(ChevronDown, { size: 12, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", fontWeight: "600", color: "$soft", children: label })] }));
279
- /** The workspace's column: its name, search, the channels, the direct messages and the agents. */
280
- const column = (_jsxs(YStack, { "data-motion": "rise", flex: 1, minH: 0, overflow: "hidden", px: 8, py: 10, "$platform-web": FOOT, children: [_jsxs(XStack, { items: "center", gap: 6, px: 8, pb: 10, children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", numberOfLines: 1, children: o.name }), _jsx(ChevronDown, { size: 14, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(View, { flex: 1 }), _jsx(XStack, { width: 28, height: 28, rounded: 8, items: "center", justify: "center", bg: "$raised", "$platform-web": { borderRadius: '8px' }, children: _jsx(SquarePen, { size: 14, color: "var(--foreground)", "aria-hidden": true }) })] }), _jsxs(XStack, { items: "center", gap: 6, mx: 4, mb: 4, px: 10, height: 28, rounded: 8, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '8px' }, children: [_jsx(Search, { size: 12, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", color: "$faint", numberOfLines: 1, children: t('Search {org}', { org: o.name }) })] }), heading(t('Channels')), o.channels.map((c) => {
281
- const room = `${o.id}/${c.id}`;
282
- const on = room === here;
283
- const n = unread(room);
284
- return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": t('Open #{channel}', { channel: c.id }), onClick: () => go(room) }), items: "center", gap: 6, px: 10, py: 4, rounded: 8, bg: on ? '$raised' : 'transparent', ...ROW, "$platform-web": { borderRadius: '8px', textAlign: 'start' }, children: [_jsx(Hash, { size: 13, color: on || n ? 'var(--foreground)' : 'var(--muted-foreground)', "aria-hidden": true }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$2", lineHeight: 20, fontWeight: on || n ? '700' : '400', color: on || n ? '$ink' : '$soft', numberOfLines: 1, "data-i18n-ltr": true, children: c.id }), n ? _jsx(Count, { n: n }) : null] }, c.id));
285
- }), heading(t('Direct messages')), o.people.map((p, i) => (_jsxs(XStack, { items: "center", gap: 8, px: 10, py: 3, children: [_jsx(Avatar, { id: p, size: 20 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$2", color: "$soft", numberOfLines: 1, children: who(p).name }), _jsx(Here, { away: i === o.people.length - 1, busy: typing?.who === p })] }, p))), heading(t('Agents')), o.agents.map((a) => (_jsxs(XStack, { items: "center", gap: 8, px: 10, py: 3, children: [_jsx(Avatar, { id: a, size: 20 }), _jsx(Text, { flex: 1, minW: 0, fontSize: "$2", color: "$soft", numberOfLines: 1, children: t('{name} · {role}', { name: who(a).name, role: t(who(a).role ?? '') }) }), _jsx(Here, { busy: typing?.who === a })] }, a)))] }, o.id));
286
- const title = (_jsxs(YStack, { flex: 1, minW: 0, children: [_jsxs(XStack, { items: "center", gap: 3, children: [_jsx(Hash, { size: 15, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$3", fontWeight: "700", color: "$ink", numberOfLines: 1, "data-i18n-ltr": true, children: channel }), _jsx(ChevronDown, { size: 13, color: "var(--muted-foreground)", "aria-hidden": true })] }), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: t(topic) })] }));
287
- /** A conversation's messages, the oldest leaving the top; a run of one author's lines shares one face. */
288
- const list = (items, threads) => (_jsx(YStack, { flex: 1, minH: 0, overflow: "hidden", justify: "flex-end", gap: 6, px: 16, pt: 8, pb: 4, "$platform-web": TOP, children: items.map((m, i) => {
289
- const before = items[i - 1];
290
- const grouped = !!before && before.who === m.who && !before.card && !before.replies.length && m.time - before.time < 5;
291
- return _jsx(Post, { m: m, grouped: grouped, onThread: threads ? () => openThread(m.id) : undefined, onPick: pick(m.id) }, m.id);
292
- }) }));
293
- const composer = (placeholder) => (_jsxs(YStack, { mx: 12, mb: 12, gap: 8, px: 12, py: 10, rounded: 12, borderWidth: 1, borderColor: "$edge", bg: "$panel", "$platform-web": { borderRadius: '12px' }, children: [_jsx(Text, { fontSize: "$2", color: "$faint", numberOfLines: 1, children: placeholder }), _jsxs(XStack, { items: "center", gap: 12, children: [_jsx(Plus, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(AtSign, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Smile, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Mic, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(View, { flex: 1 }), _jsx(SendHorizontal, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true, "data-i18n-mirror": true })] })] }));
294
- /** The thread a message started: the message, its replies, a reply box. */
295
- const side = parent ? (_jsxs(YStack, { flex: 1, minH: 0, bg: "var(--background)", children: [_jsxs(XStack, { items: "center", gap: 8, px: 14, minH: 52, borderBottomWidth: 1, borderColor: "$edge", children: [_jsxs(YStack, { flex: 1, minW: 0, children: [_jsx(Text, { fontSize: "$3", fontWeight: "700", color: "$ink", children: t('Thread') }), _jsx(Text, { fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: `#${channel}` })] }), _jsx(XStack, { render: _jsx("button", { type: "button", "aria-label": t('Close the thread'), onClick: () => openThread(null) }), width: 28, height: 28, rounded: 8, items: "center", justify: "center", bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: _jsx(X, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }) })] }), _jsxs(YStack, { flex: 1, minH: 0, overflow: "hidden", justify: "flex-end", gap: 6, px: 14, pt: 8, pb: 4, "$platform-web": TOP, children: [_jsx(Post, { m: { ...parent, replies: [] }, grouped: false, onPick: pick(parent.id) }), _jsxs(XStack, { items: "center", gap: 8, py: 6, children: [_jsx(Text, { fontSize: "$1", color: "$soft", children: replies(t, parent.replies.length) }), _jsx(View, { flex: 1, height: 1, bg: "$edge" })] }), parent.replies.map((r, i) => (_jsx(Post, { m: { id: `${parent.id}/${i}`, who: r.who, text: r.text, time: r.time, reactions: [], replies: [] }, grouped: false, onPick: () => undefined }, i)))] }), composer(t('Reply…'))] }, parent.id)) : null;
296
- return (_jsxs(View, { ref: box, "data-slot": "team-preview", role: "group", "aria-label": t('Hanzo Team, playing a sample workspace'), ...hold, display: "grid", position: "relative", height: compact ? '100%' : 620, overflow: "hidden", bg: "var(--background)", gridTemplateColumns: "minmax(0, 1fr)", ...md(desk, {
297
- height: compact ? '100%' : 640,
298
- gridTemplateColumns: `60px ${breadth(width)}px minmax(0, 1fr)${roomy ? ' 290px' : ''}`,
299
- }), "$platform-web": { textAlign: 'start' }, children: [_jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, children: rail }), _jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, borderColor: "$edge", borderInlineEndWidth: 1, bg: "$sunken", children: column }), _jsxs(YStack, { minW: 0, minH: 0, position: "relative", children: [_jsxs(XStack, { items: "center", gap: 10, px: 14, minH: 52, borderBottomWidth: 1, borderColor: "$edge", children: [_jsx(XStack, { ...md(desk, { display: 'none' }), children: _jsx(XStack, { render: _jsx("button", { type: "button", "aria-expanded": drawer, "aria-label": t('Channels in {org}', { org: o.name }), onClick: () => setDrawer(!drawer) }), width: 32, height: 32, rounded: 8, items: "center", justify: "center", bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: _jsx(Menu, { size: 17, color: "var(--foreground)", "aria-hidden": true }) }) }), title, _jsxs(XStack, { display: "none", ...(width >= FACES ? { display: 'flex' } : {}), items: "center", children: [members.map((p, i) => (_jsx(View, { marginInlineStart: i ? -6 : 0, rounded: 9999, borderWidth: 2, borderColor: "var(--background)", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Avatar, { id: p, size: 22 }) }, p))), _jsx(Text, { fontSize: "$1", color: "$soft", marginInlineStart: 6, "data-i18n-ltr": true, children: o.people.length + o.agents.length })] }), _jsxs(XStack, { "data-motion": "rise", items: "center", gap: 6, px: 10, height: 30, rounded: 8, borderWidth: 1, borderColor: huddle.length ? '$ink' : '$edge', bg: huddle.length ? '$ink' : 'transparent', "$platform-web": { borderRadius: '8px' }, children: [huddle.length ? _jsx(View, { "data-motion": "pulse", width: 7, height: 7, rounded: 9999, bg: "var(--state-online)", "$platform-web": { borderRadius: '9999px' } }) : null, _jsx(Headphones, { size: 14, color: huddle.length ? 'var(--background)' : 'var(--foreground)', "aria-hidden": true }), _jsx(Text, { display: "none", ...md(desk, { display: 'flex' }), fontSize: "$1", fontWeight: "600", color: huddle.length ? '$background' : '$ink', children: huddle.length ? t('Huddle · {count}', { count: huddle.length }) : t('Huddle') })] }, huddle.length ? 'on' : 'off')] }), _jsxs(YStack, { ...md(desk, { display: 'none' }), gap: 8, pt: 10, pb: 8, borderBottomWidth: 1, borderColor: "$edge", children: [_jsxs(XStack, { items: "center", gap: 10, px: 12, children: [ORGS.map((x) => (_jsx(Tile, { org: x, on: x.id === o.id, n: x.id === o.id ? 0 : news(x.id), size: "lg", onPress: () => go(HOME[x.id]) }, x.id))), _jsx(Text, { "data-motion": "rise", flex: 1, minW: 0, fontSize: "$3", fontWeight: "700", color: "$ink", numberOfLines: 1, marginInlineStart: 4, children: o.name }, o.id)] }), _jsx(XStack, { flexWrap: "wrap", gap: 6, px: 12, display: height && height < LIST ? 'none' : 'flex', children: o.channels.map((c) => {
300
- const room = `${o.id}/${c.id}`;
301
- const on = room === here;
302
- const n = unread(room);
303
- return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": t('Open #{channel}', { channel: c.id }), onClick: () => go(room) }), shrink: 0, items: "center", gap: 5, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: on ? '$ink' : '$edge', bg: on ? '$ink' : 'transparent', cursor: "pointer", focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Text, { fontSize: "$1", fontWeight: on || n ? '700' : '500', color: on ? '$background' : n ? '$ink' : '$soft', "data-i18n-ltr": true, children: `#${c.id}` }), n && !on ? _jsx(Count, { n: n }) : null] }, c.id));
304
- }) })] }), list(messages, true), _jsx(XStack, { items: "center", gap: 6, px: 18, minH: 20, children: typing && typing.room === here ? (_jsxs(_Fragment, { children: [_jsx(Dots, {}), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: t('{name} is typing…', { name: who(typing.who).name }) })] })) : null }), roomy || (height && height < LIST) ? null : (_jsxs(XStack, { flexWrap: "wrap", items: "center", gap: 8, px: 12, pb: 8, children: [_jsx(Mode, { supervised: supervised, onSet: setSupervised, small: true }), _jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: asks.length ? '$ink' : '$edge', "$platform-web": { borderRadius: '9999px' }, children: [_jsx(UserRound, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { "data-motion": "rise", fontSize: 11, fontWeight: "600", color: "$ink", children: asks.length ? t('{count} need a person', { count: asks.length }) : t('Nothing needs a person') }, asks.length)] }), mission ? (_jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Target, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: 11, fontWeight: "600", color: "$ink", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), _jsx(View, { width: 36, children: _jsx(Progress, { done: done.length, total: mission.steps.length }) })] })) : null] })), composer(t('Message #{channel}', { channel })), side && !roomy ? (_jsx(YStack, { "data-motion": "rise", position: "absolute", t: 0, b: 0, insetInlineEnd: 0, width: "100%", maxW: 420, borderColor: "$edge", borderInlineStartWidth: 1, bg: "var(--background)", boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", children: side })) : null, drawer && desk !== true ? (_jsxs(XStack, { "data-motion": "rise", position: "absolute", t: 0, b: 0, insetInlineStart: 0, width: "88%", maxW: 340, bg: "var(--background)", borderColor: "$edge", borderInlineEndWidth: 1, boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", ...md(desk, { display: 'none' }), children: [rail, _jsx(YStack, { flex: 1, minW: 0, bg: "$sunken", children: column })] })) : null] }), roomy ? (_jsx(YStack, { minW: 0, minH: 0, borderColor: "$edge", borderInlineStartWidth: 1, children: side ?? _jsx(Panel, { org: o.id, supervised: supervised, onMode: setSupervised, asks: asks, done: done, handoffs: handoffs, onOpen: go }) })) : null] }));
305
- }
@@ -1,49 +0,0 @@
1
- export declare const TEAM: {
2
- readonly name: 'Hanzo Team';
3
- /** The page's one heading: the owner's words on hanzo.team. */
4
- readonly title: string;
5
- readonly lede: string;
6
- readonly line: string;
7
- /** Where a reader who wants a person goes. */
8
- readonly contact: {
9
- readonly label: string;
10
- readonly href: "https://hanzo.ai/contact-sales";
11
- };
12
- /** Under the preview: what it is, so nobody reads sample data as a claim. */
13
- readonly note: string;
14
- readonly how: {
15
- readonly eyebrow: string;
16
- readonly title: string;
17
- readonly sub: string;
18
- };
19
- readonly points: readonly [{
20
- readonly title: string;
21
- readonly body: string;
22
- readonly link: {
23
- readonly label: string;
24
- readonly href: 'https://hanzo.team/agents';
25
- };
26
- }, {
27
- readonly title: string;
28
- readonly body: string;
29
- readonly link: {
30
- readonly label: string;
31
- readonly href: 'https://docs.hanzo.bot/docs/concepts/multi-agent';
32
- };
33
- }, {
34
- readonly title: string;
35
- readonly body: string;
36
- readonly link: {
37
- readonly label: string;
38
- readonly href: 'https://docs.hanzo.ai/docs/concepts/budgets';
39
- };
40
- }];
41
- readonly close: {
42
- readonly title: string;
43
- readonly line: string;
44
- };
45
- };
46
- /** The three points, numbered, each ending in where to read more. */
47
- export declare function TeamPoints(): import("react").JSX.Element;
48
- /** The line under the preview that says it is sample data. */
49
- export declare function TeamNote(): import("react").JSX.Element;