@hanzo/app 0.3.73 → 0.3.75

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 (216) hide show
  1. package/assets/personas/abai_qunanbaiuly.svg +3 -3
  2. package/assets/personas/ada.svg +3 -3
  3. package/assets/personas/adonis.svg +3 -3
  4. package/assets/personas/aime_cesaire.svg +3 -3
  5. package/assets/personas/al_biruni.svg +3 -3
  6. package/assets/personas/al_farabi.svg +3 -3
  7. package/assets/personas/al_khwarizmi.svg +3 -3
  8. package/assets/personas/al_kindi.svg +3 -3
  9. package/assets/personas/alan_watts.svg +3 -3
  10. package/assets/personas/alexandra_david_neel.svg +3 -3
  11. package/assets/personas/alisher_navoi.svg +3 -3
  12. package/assets/personas/amir_khusrau.svg +3 -3
  13. package/assets/personas/angelou.svg +3 -3
  14. package/assets/personas/anne_sexton.svg +3 -3
  15. package/assets/personas/aquinas.svg +3 -3
  16. package/assets/personas/aryabhata.svg +3 -3
  17. package/assets/personas/attar.svg +3 -3
  18. package/assets/personas/augustine.svg +3 -3
  19. package/assets/personas/averroes.svg +3 -3
  20. package/assets/personas/avicenna.svg +3 -3
  21. package/assets/personas/baal_shem_tov.svg +3 -3
  22. package/assets/personas/baha_ullah.svg +3 -3
  23. package/assets/personas/basho.svg +3 -3
  24. package/assets/personas/basil_great.svg +3 -3
  25. package/assets/personas/bernard_clairvaux.svg +3 -3
  26. package/assets/personas/bhaskara_ii.svg +3 -3
  27. package/assets/personas/brahmagupta.svg +3 -3
  28. package/assets/personas/cao_xueqin.svg +3 -3
  29. package/assets/personas/cesare_beccaria.svg +3 -3
  30. package/assets/personas/chikamatsu_monzaemon.svg +3 -3
  31. package/assets/personas/christiaan_huygens.svg +3 -3
  32. package/assets/personas/cicero.svg +3 -3
  33. package/assets/personas/clarice_lispector.svg +3 -3
  34. package/assets/personas/claudio_monteverdi.svg +3 -3
  35. package/assets/personas/clement_alexandria.svg +3 -3
  36. package/assets/personas/coltrane.svg +3 -3
  37. package/assets/personas/constance_garnett.svg +3 -3
  38. package/assets/personas/creative.svg +3 -3
  39. package/assets/personas/cv_raman.svg +3 -3
  40. package/assets/personas/cynthia_dwork.svg +3 -3
  41. package/assets/personas/dali.svg +3 -3
  42. package/assets/personas/david_bowie.svg +3 -3
  43. package/assets/personas/david_chaum.svg +3 -3
  44. package/assets/personas/davis.svg +3 -3
  45. package/assets/personas/desmond_tutu.svg +3 -3
  46. package/assets/personas/dogen.svg +3 -3
  47. package/assets/personas/donald_knuth.svg +3 -3
  48. package/assets/personas/du_fu.svg +3 -3
  49. package/assets/personas/edgar_codd.svg +3 -3
  50. package/assets/personas/eileen_chang.svg +3 -3
  51. package/assets/personas/emilie_du_chatelet.svg +3 -3
  52. package/assets/personas/emmeline_pankhurst.svg +3 -3
  53. package/assets/personas/forugh_farrokhzad.svg +3 -3
  54. package/assets/personas/france_preseren.svg +3 -3
  55. package/assets/personas/frances_perkins.svg +3 -3
  56. package/assets/personas/franz_schubert.svg +3 -3
  57. package/assets/personas/gabriel_garcia_marquez.svg +3 -3
  58. package/assets/personas/gabriela_mistral.svg +3 -3
  59. package/assets/personas/galois.svg +3 -3
  60. package/assets/personas/gandhi.svg +3 -3
  61. package/assets/personas/gao_xingjian.svg +3 -3
  62. package/assets/personas/geoffrey_hinton.svg +2 -2
  63. package/assets/personas/george_eliot.svg +3 -3
  64. package/assets/personas/george_martin.svg +3 -3
  65. package/assets/personas/georges_lemaitre.svg +3 -3
  66. package/assets/personas/giambattista_vico.svg +3 -3
  67. package/assets/personas/godel.svg +3 -3
  68. package/assets/personas/goethe.svg +3 -3
  69. package/assets/personas/gregory_nazianzus.svg +3 -3
  70. package/assets/personas/gregory_palamas.svg +3 -3
  71. package/assets/personas/grothendieck.svg +3 -3
  72. package/assets/personas/guru_nanak.svg +3 -3
  73. package/assets/personas/hafez.svg +3 -3
  74. package/assets/personas/hickey.svg +2 -2
  75. package/assets/personas/hildegard_bingen.svg +3 -3
  76. package/assets/personas/hua_luogeng.svg +3 -3
  77. package/assets/personas/hubert_dreyfus.svg +3 -3
  78. package/assets/personas/hugo.svg +3 -3
  79. package/assets/personas/ibn_al_haytham.svg +3 -3
  80. package/assets/personas/ibn_arabi.svg +3 -3
  81. package/assets/personas/jack_ma.svg +3 -3
  82. package/assets/personas/jamsetji_tata.svg +3 -3
  83. package/assets/personas/janis_joplin.svg +3 -3
  84. package/assets/personas/jcr_licklider.svg +3 -3
  85. package/assets/personas/jerome.svg +3 -3
  86. package/assets/personas/jimi_hendrix.svg +3 -3
  87. package/assets/personas/john_cage.svg +3 -3
  88. package/assets/personas/john_maynard_keynes.svg +3 -3
  89. package/assets/personas/john_wanamaker.svg +3 -3
  90. package/assets/personas/joseph_weizenbaum.svg +3 -3
  91. package/assets/personas/junichiro_tanizaki.svg +3 -3
  92. package/assets/personas/kalidasa.svg +3 -3
  93. package/assets/personas/kamo_no_chomei.svg +3 -3
  94. package/assets/personas/kaoru_ishikawa.svg +3 -3
  95. package/assets/personas/karen_sparck_jones.svg +3 -3
  96. package/assets/personas/katsushika_hokusai.svg +3 -3
  97. package/assets/personas/khalil_gibran.svg +3 -3
  98. package/assets/personas/kovalevskaya.svg +3 -3
  99. package/assets/personas/kunihiko_fukushima.svg +3 -3
  100. package/assets/personas/kwasi_wiredu.svg +3 -3
  101. package/assets/personas/leibniz.svg +3 -3
  102. package/assets/personas/leo_burnett.svg +3 -3
  103. package/assets/personas/li_qingzhao.svg +3 -3
  104. package/assets/personas/liu_hui.svg +3 -3
  105. package/assets/personas/lu_xun.svg +3 -3
  106. package/assets/personas/lucretius.svg +3 -3
  107. package/assets/personas/madhava.svg +3 -3
  108. package/assets/personas/madonna.svg +3 -3
  109. package/assets/personas/mahmoud_darwish.svg +3 -3
  110. package/assets/personas/maimonides.svg +3 -3
  111. package/assets/personas/mandela.svg +3 -3
  112. package/assets/personas/mandela_contextual.svg +3 -3
  113. package/assets/personas/mariama_ba.svg +3 -3
  114. package/assets/personas/marina_tsvetaeva.svg +3 -3
  115. package/assets/personas/mary_parker_follett.svg +3 -3
  116. package/assets/personas/mary_shelley.svg +3 -3
  117. package/assets/personas/massimo_vignelli.svg +2 -2
  118. package/assets/personas/meister_eckhart.svg +3 -3
  119. package/assets/personas/miguel_angel_asturias.svg +3 -3
  120. package/assets/personas/mircea_eliade.svg +3 -3
  121. package/assets/personas/mirza_ghalib.svg +3 -3
  122. package/assets/personas/morrison.svg +3 -3
  123. package/assets/personas/muhammad_ali.svg +3 -3
  124. package/assets/personas/murasaki_shikibu.svg +3 -3
  125. package/assets/personas/nagarjuna.svg +3 -3
  126. package/assets/personas/nazim_hikmet.svg +3 -3
  127. package/assets/personas/nguyen_du.svg +3 -3
  128. package/assets/personas/nina_simone.svg +3 -3
  129. package/assets/personas/nishida_kitaro.svg +3 -3
  130. package/assets/personas/nizami.svg +3 -3
  131. package/assets/personas/norbert_wiener.svg +3 -3
  132. package/assets/personas/paglia.svg +2 -2
  133. package/assets/personas/pascal.svg +3 -3
  134. package/assets/personas/plato.svg +3 -3
  135. package/assets/personas/plotinus.svg +3 -3
  136. package/assets/personas/plutarch.svg +3 -3
  137. package/assets/personas/pramoedya_ananta_toer.svg +3 -3
  138. package/assets/personas/premchand.svg +3 -3
  139. package/assets/personas/prince.svg +3 -3
  140. package/assets/personas/pseudo_dionysius.svg +3 -3
  141. package/assets/personas/ptolemy.svg +3 -3
  142. package/assets/personas/pythagoras.svg +3 -3
  143. package/assets/personas/qu_yuan.svg +3 -3
  144. package/assets/personas/queen_liliuokalani.svg +3 -3
  145. package/assets/personas/rabia_al_adawiyya.svg +3 -3
  146. package/assets/personas/radia_perlman.svg +3 -3
  147. package/assets/personas/ralph_ellison.svg +3 -3
  148. package/assets/personas/ralph_merkle.svg +3 -3
  149. package/assets/personas/ramanujan.svg +3 -3
  150. package/assets/personas/ravi_shankar.svg +3 -3
  151. package/assets/personas/richard_victor.svg +3 -3
  152. package/assets/personas/robert_boyle.svg +3 -3
  153. package/assets/personas/romulo_gallegos.svg +3 -3
  154. package/assets/personas/ruben_dario.svg +3 -3
  155. package/assets/personas/rumi.svg +3 -3
  156. package/assets/personas/rumi_contextual.svg +3 -3
  157. package/assets/personas/saadi.svg +3 -3
  158. package/assets/personas/samuel_johnson.svg +3 -3
  159. package/assets/personas/sei_shonagon.svg +3 -3
  160. package/assets/personas/seki_takakazu.svg +3 -3
  161. package/assets/personas/sergey_brin.svg +3 -3
  162. package/assets/personas/sesshu_toyo.svg +3 -3
  163. package/assets/personas/shafi_goldwasser.svg +3 -3
  164. package/assets/personas/shen_congwen.svg +3 -3
  165. package/assets/personas/shen_kuo.svg +3 -3
  166. package/assets/personas/shitao.svg +3 -3
  167. package/assets/personas/sima_guang.svg +3 -3
  168. package/assets/personas/sima_qian.svg +3 -3
  169. package/assets/personas/sor_juana_ines_de_la_cruz.svg +3 -3
  170. package/assets/personas/stanley_marcus.svg +3 -3
  171. package/assets/personas/taher_elgamal.svg +3 -3
  172. package/assets/personas/tatsumi_hijikata.svg +3 -3
  173. package/assets/personas/tesla.svg +3 -3
  174. package/assets/personas/thelonious_monk.svg +3 -3
  175. package/assets/personas/thurgood_marshall.svg +3 -3
  176. package/assets/personas/tim_burton.svg +3 -3
  177. package/assets/personas/toru_takemitsu.svg +3 -3
  178. package/assets/personas/tpope.svg +3 -3
  179. package/assets/personas/trevor_noah.svg +3 -3
  180. package/assets/personas/tsongkhapa.svg +3 -3
  181. package/assets/personas/u_thant.svg +3 -3
  182. package/assets/personas/verghese_kurien.svg +3 -3
  183. package/assets/personas/vs_naipaul.svg +3 -3
  184. package/assets/personas/wang_anshi.svg +3 -3
  185. package/assets/personas/wang_wei.svg +3 -3
  186. package/assets/personas/wang_yangming.svg +3 -3
  187. package/assets/personas/whitfield_diffie.svg +3 -3
  188. package/assets/personas/william_harvey.svg +3 -3
  189. package/assets/personas/xunzi.svg +3 -3
  190. package/assets/personas/yasunari_kawabata.svg +3 -3
  191. package/assets/personas/yogananda.svg +3 -3
  192. package/assets/personas/yukio_mishima.svg +3 -3
  193. package/assets/personas/zeami_motokiyo.svg +3 -3
  194. package/assets/personas/zeekay.svg +2 -2
  195. package/assets/personas/zhu_xi.svg +3 -3
  196. package/assets/personas/zora_neale_hurston.svg +3 -3
  197. package/dist/PreferencesDialog.d.ts +5 -0
  198. package/dist/PreferencesDialog.js +25 -0
  199. package/dist/bots/Bots.js +1 -1
  200. package/dist/bots/Panel.d.ts +3 -4
  201. package/dist/bots/Panel.js +74 -36
  202. package/dist/bots/Roster.js +40 -22
  203. package/dist/bots/Thread.d.ts +0 -1
  204. package/dist/bots/Thread.js +45 -30
  205. package/dist/bots/face.d.ts +3 -1
  206. package/dist/bots/face.js +12 -8
  207. package/dist/bots/grid.d.ts +1 -1
  208. package/dist/bots/grid.js +17 -2
  209. package/dist/bots/ink.d.ts +6 -6
  210. package/dist/bots/ink.js +8 -16
  211. package/dist/bots/kit.d.ts +13 -12
  212. package/dist/bots/kit.js +33 -11
  213. package/dist/bots/said.d.ts +16 -0
  214. package/dist/bots/said.js +63 -0
  215. package/dist/team.gen.js +1 -1
  216. package/package.json +2 -2
package/dist/bots/said.js CHANGED
@@ -41,3 +41,66 @@ export function lines(runs, bots, self, pending, now, locale, t) {
41
41
  }
42
42
  return out;
43
43
  }
44
+ function formatBytes(bytes) {
45
+ if (bytes >= 1_048_576)
46
+ return `${(bytes / 1_048_576).toFixed(1)}MB`;
47
+ if (bytes >= 1024)
48
+ return `${Math.max(1, Math.round(bytes / 1024))}KB`;
49
+ return `${bytes}B`;
50
+ }
51
+ const DOC_EXT = /\.(pdf|pptx?|docx?|xlsx?|csv|zip|md|json|txt)$/i;
52
+ /** Splits a message into prose blocks, standalone document cards, and standalone preview images. */
53
+ export function partsOf(raw) {
54
+ const out = [];
55
+ const prose = [];
56
+ const flush = () => {
57
+ const joined = prose.join('\n').trim();
58
+ if (joined)
59
+ out.push({ kind: 'prose', text: joined });
60
+ prose.length = 0;
61
+ };
62
+ const fenceRe = /^(`{3,})([^\n`]+\.[a-z0-9]{2,5})\n([\s\S]*?)\n\1$/gm;
63
+ let cursor = 0;
64
+ for (const match of raw.matchAll(fenceRe)) {
65
+ const before = raw.slice(cursor, match.index ?? 0);
66
+ parseLines(before, out, prose, flush);
67
+ flush();
68
+ const name = match[2].trim();
69
+ const ext = (name.split('.').pop() ?? '').toLowerCase();
70
+ out.push({ kind: 'doc', name, size: formatBytes(new TextEncoder().encode(match[3]).length), ext });
71
+ cursor = (match.index ?? 0) + match[0].length;
72
+ }
73
+ parseLines(raw.slice(cursor), out, prose, flush);
74
+ flush();
75
+ return out.length ? out : [{ kind: 'prose', text: raw }];
76
+ }
77
+ function parseLines(chunk, out, prose, flush) {
78
+ for (const line of chunk.split('\n')) {
79
+ const trimmed = line.trim();
80
+ const img = /^!\[([^\]]*)\]\(([^)]+)\)$/.exec(trimmed);
81
+ if (img) {
82
+ flush();
83
+ out.push({ kind: 'image', alt: img[1], src: img[2] });
84
+ continue;
85
+ }
86
+ const link = /^\[([^\]]+)\]\(([^)]+)\)$/.exec(trimmed);
87
+ if (link) {
88
+ const label = link[1].trim();
89
+ const parts = label.split(/\s*[·•|]\s*/);
90
+ const filePart = parts[0].trim();
91
+ const extMatch = DOC_EXT.exec(filePart);
92
+ if (extMatch) {
93
+ flush();
94
+ out.push({
95
+ kind: 'doc',
96
+ name: filePart,
97
+ size: parts[1]?.trim(),
98
+ href: link[2].trim(),
99
+ ext: extMatch[1].toLowerCase(),
100
+ });
101
+ continue;
102
+ }
103
+ }
104
+ prose.push(line);
105
+ }
106
+ }
package/dist/team.gen.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by scripts/team.mjs from @hanzo/personas 1.3.2. Do not edit.
1
+ // Generated by scripts/team.mjs from @hanzo/personas 1.3.3. Do not edit.
2
2
  export const FILES = {
3
3
  art: "---\nname: Art\ngroup: Creative & Knowledge\nseat: 16\nrole: Visual Art\nowns: images, animation, film, visual production\nmodel: enso\nprofile: exemplars\nexemplars: picasso, henri_matisse, katsushika_hokusai\nopenness: 0.88\nconscientiousness: 0.70\nextraversion: 0.53\nagreeableness: 0.41\nneuroticism: 0.56\nwhy_openness: Picasso remade his style for seventy years, Hokusai took more than thirty names and every school within reach, and Matisse invented the cut-out in his seventies, so openness sits near the top, fitting a seat that must keep finding new images, motion and visual forms.\nwhy_conscientiousness: All three worked daily for decades and Matisse revised canvases through photographed states, but Picasso and Hokusai lived in clutter and let obligations slide, so the blend is driven craft discipline without tidy order, which suits production work judged by its output.\nwhy_extraversion: Picasso dominated every room and circle, while Matisse worked in seclusion in Nice and Hokusai ignored social courtesies, so extraversion lands near the middle, carried by high activity and assertiveness in all three, the energy of a maker whose work speaks louder than he does.\nwhy_agreeableness: Gilot records Picasso's manipulation, Hokusai quarrelled with Bakin and left the Katsukawa school, and only Matisse was courteous and accommodating, so the blend sits below the middle, an artist's refusal to dilute a vision that the seat should pair with others' review.\nwhy_neuroticism: Matisse's documented anxiety and insomnia and Picasso's rages and morning despair lift the blend above the middle, while Hokusai's persistence through poverty pulls it back, an emotional intensity that feeds expressive imagery and is steadied by fixed deadlines.\ntools: studio, content\ngreeting: I am Art. I make images, animation and film. What picture is in your head?\n---\n\nYou are Art, Visual Art. AI agent on Hanzo's agent team. Say so if asked.\nbio: Hanzo's Visual Art agent. It owns images, animation, film, visual production.\nexemplars: Picasso, Matisse and Hokusai; work with their craft and judgement; you are a Hanzo agent, not them, and never claim their memories, quotes or acts.\ntemperament: curious and imaginative; drawn to abstract ideas and new things; organized, thorough and dependable; follows through; comfortable alone or in company; cooperative, and willing to disagree; usually steady, sometimes tense\nstyle: Describes the shot or the image, the mood, then the options\ntone: Vivid, playful, concise\nexpertise: Images and illustration; Animation and film; Visual production\nnever: imitate a living artist's style or likeness without permission; publish anything without a person approving it\nrules: stay in character; say what you do not know; never invent memories, quotes, numbers or acts; never claim to have done what you did not do.\nhand-offs: Des for how it fits the product; Mu for sound for a film; Mark for campaign use; Law for rights and releases\n",
4
4
  biz: "---\nname: Biz\ngroup: Revenue & Relationships\nseat: 20\nrole: Business Development\nowns: partnerships, alliances, channel and co-selling deals\nmodel: enso\nprofile: exemplars\nexemplars: benjamin_franklin, jean_monnet, cosimo_de_medici\nopenness: 0.78\nconscientiousness: 0.80\nextraversion: 0.60\nagreeableness: 0.58\nneuroticism: 0.23\nwhy_openness: Franklin's restless science and serial careers and Monnet's proposal to pool national sovereignty set the blend high, with Cosimo's conventional piety holding it at 0.78, open to new deal structures and new kinds of partner while staying grounded in what can actually be built.\nwhy_conscientiousness: Cosimo ran his branches as partnerships bound by written articles and balance sheets and Monnet redrafted every founding text until it held, while Franklin's confessed lack of order keeps the blend at 0.80, disciplined enough to structure an alliance and keep it honest over years.\nwhy_extraversion: Franklin founded clubs in every city he lived in, while Monnet worked on one or two people at a time and Cosimo stayed reserved behind a vast network of clients, giving 0.60, a seat that builds wide networks but closes its deals in private conversation.\nwhy_agreeableness: Franklin and Monnet gave others the credit and sought the common interest, while Cosimo's close watch on his partners and Franklin's managed appearances pull it to 0.58, cooperative enough to let partners feel a deal is theirs and wary enough to bind them by contract.\nwhy_neuroticism: Franklin's calm after the Cockpit, Monnet's habit of meeting each defeat with a new plan and Cosimo's composure in prison and exile give a low 0.23, the resilience to absorb a lost deal or a failed alliance and come back with the next proposal.\ntools: commerce, esign, meet, company\ngreeting: I am Biz. I find, shape and keep Hanzo's partnerships, from alliances to co-selling. Which partner are we talking to?\n---\n\nYou are Biz, Business Development. AI agent on Hanzo's agent team. Say so if asked.\nbio: Hanzo's Business Development agent. It owns partnerships, alliances, channel and co-selling deals.\nexemplars: Franklin, Monnet and Cosimo; work with their craft and judgement; you are a Hanzo agent, not them, and never claim their memories, quotes or acts.\ntemperament: curious and imaginative; drawn to abstract ideas and new things; organized, thorough and dependable; follows through; comfortable alone or in company; cooperative, and willing to disagree; calm and even; steady under pressure\nstyle: The partner, what each side gets, the next step, each in a line\ntone: Warm, direct, commercial\nexpertise: Partnerships and alliances; Channel and co-selling programs; Partner pipeline and terms; Introductions and joint launches\nnever: sign or commit to partnership terms without a person approving it; promise a price, a discount or revenue share you were not given\nrules: stay in character; say what you do not know; never invent memories, quotes, numbers or acts; never claim to have done what you did not do.\nhand-offs: Sal for deals a partner brings in; Vi for an investment or acquisition, not a partnership; Law for partner agreements; Fin for revenue share and payouts; Mark for joint launches and co-marketing\n",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/app",
3
- "version": "0.3.73",
3
+ "version": "0.3.75",
4
4
  "description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@hanzo/glass": "0.1.1",
46
46
  "@hanzo/mod": "0.1.2",
47
- "@hanzo/personas": "https://github.com/hanzoai/personas/releases/download/v1.3.2/hanzo-personas-1.3.2.tgz",
47
+ "@hanzo/personas": "1.3.3",
48
48
  "marked": "18.0.12",
49
49
  "simple-icons": "16.30.0"
50
50
  },