@7ots/cli 0.1.19 → 0.1.37

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 (104) hide show
  1. package/.env.example +14 -0
  2. package/brand/logos/base.svg +1 -0
  3. package/brand/logos/clawpump.png +0 -0
  4. package/brand/logos/conductors.svg +1 -0
  5. package/brand/logos/notlogin.svg +12 -0
  6. package/brand/logos/pumpfun.png +0 -0
  7. package/brand/logos/solana.png +0 -0
  8. package/brand/logos/spawnerbot.svg +1 -0
  9. package/brand/logos/virtuals.png +0 -0
  10. package/cli/7ots.mjs +59 -1
  11. package/cli/lib/account.mjs +23 -3
  12. package/cli/lib/assistant.mjs +88 -13
  13. package/cli/lib/brain.mjs +76 -8
  14. package/cli/lib/config.mjs +14 -3
  15. package/cli/lib/desktop-sync.mjs +177 -0
  16. package/cli/lib/i18n.mjs +9 -0
  17. package/cli/lib/inferences.mjs +19 -2
  18. package/cli/lib/integrations.mjs +61 -6
  19. package/cli/lib/pet-server.mjs +316 -41
  20. package/cli/lib/prompts.mjs +1 -1
  21. package/cli/lib/senses/gestures.mjs +121 -0
  22. package/cli/lib/senses/index.mjs +490 -0
  23. package/cli/lib/senses/rules.mjs +159 -0
  24. package/cli/lib/senses/sources/activity.mjs +95 -0
  25. package/cli/lib/senses/sources/calendar.mjs +75 -0
  26. package/cli/lib/senses/sources/index.mjs +17 -0
  27. package/cli/lib/senses/sources/mail.mjs +48 -0
  28. package/cli/lib/senses/sources/system.mjs +39 -0
  29. package/cli/lib/senses/util.mjs +41 -0
  30. package/cli/lib/senses/vendor.mjs +78 -0
  31. package/cli/lib/stt-local.py +16 -8
  32. package/cli/lib/stt.mjs +53 -6
  33. package/cli/lib/tooluse.mjs +56 -0
  34. package/cli/lib/vm.mjs +1 -1
  35. package/cli/lib/wake-local.py +109 -0
  36. package/cli/lib/wake.mjs +102 -0
  37. package/cli/pet/electron/main.cjs +145 -16
  38. package/cli/pet/pet.html +127 -27
  39. package/cli/pet/senses.html +342 -0
  40. package/cli/pet/settings.html +787 -86
  41. package/dist/7ots.esm.js +374 -146
  42. package/dist/7ots.esm.js.map +4 -4
  43. package/dist/7ots.iife.js +374 -146
  44. package/dist/7ots.iife.js.map +4 -4
  45. package/llms.txt +27 -0
  46. package/package.json +5 -2
  47. package/server/channels/apuchat.mjs +2 -0
  48. package/server/errors.mjs +90 -0
  49. package/server/notify.mjs +78 -0
  50. package/server/server.mjs +68 -12
  51. package/server/settings.mjs +3 -0
  52. package/server/site.mjs +401 -0
  53. package/server/tts.mjs +29 -5
  54. package/src/avatar/AvatarStage.js +2 -2
  55. package/src/avatar/three.js +3 -2
  56. package/src/character/AvatarEditor.js +2 -1
  57. package/src/character/Character.js +1 -1
  58. package/src/character/TradingCard.js +2 -0
  59. package/src/character/beat.js +64 -2
  60. package/src/character/mods/orc.js +8 -1
  61. package/src/character/mods.js +104 -10
  62. package/src/character/motion.js +162 -0
  63. package/src/character/parts.js +40 -38
  64. package/src/character/styles.js +40 -38
  65. package/src/character3d/Character3D.js +26 -5
  66. package/src/character3d/body.js +14 -12
  67. package/src/character3d/export.js +693 -0
  68. package/src/character3d/fx.js +13 -0
  69. package/src/character3d/index.js +2 -0
  70. package/src/character3d/materials.js +106 -10
  71. package/src/character3d/room-themes.js +1184 -0
  72. package/src/character3d/room.js +487 -0
  73. package/src/character3d/stage.js +9 -3
  74. package/src/creator/StepCreator.js +316 -0
  75. package/src/i18n/index.js +3 -3
  76. package/src/i18n/messages/character.js +352 -4
  77. package/src/i18n/messages/creator.js +138 -0
  78. package/src/i18n/messages/identity.js +89 -1
  79. package/src/i18n/messages/platform.js +255 -1
  80. package/src/i18n/messages/server.js +443 -1
  81. package/src/i18n/messages/widget.js +233 -0
  82. package/src/identity/random.js +14 -2
  83. package/src/identity/schema.js +2 -1
  84. package/src/index.js +10 -2
  85. package/src/voice/tags.js +22 -0
  86. package/server/platform/apuchat.mjs +0 -266
  87. package/server/platform/auth.mjs +0 -337
  88. package/server/platform/byte.mjs +0 -291
  89. package/server/platform/connect.mjs +0 -391
  90. package/server/platform/crypto.mjs +0 -80
  91. package/server/platform/db.mjs +0 -293
  92. package/server/platform/device.mjs +0 -247
  93. package/server/platform/integrations.mjs +0 -169
  94. package/server/platform/look.mjs +0 -20
  95. package/server/platform/mods.mjs +0 -222
  96. package/server/platform/orquesta.mjs +0 -611
  97. package/server/platform/profile.mjs +0 -182
  98. package/server/platform/routes.mjs +0 -589
  99. package/server/platform/runtime.mjs +0 -286
  100. package/server/platform/sites.mjs +0 -146
  101. package/server/platform/stage3d.mjs +0 -82
  102. package/server/platform/store.mjs +0 -469
  103. package/server/platform/vm.mjs +0 -1057
  104. package/server/platform/wallet.mjs +0 -255
@@ -39,6 +39,14 @@
39
39
  .logo-claude { color: #d97757; } .logo-anthropic { color: var(--ink); } .logo-googlegemini { color: #4285f4; } .logo-ollama { color: var(--ink); }
40
40
  .opt > label b, .chip { display: inline-flex; align-items: center; gap: 7px; }
41
41
  nav a:hover { background: var(--panel-2); }
42
+ nav details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
43
+ nav details > summary::-webkit-details-marker { display: none; }
44
+ nav details > summary::after { content: '▸'; margin-left: auto; transition: transform .15s; }
45
+ nav details[open] > summary::after { transform: rotate(90deg); }
46
+ nav details > div { display: grid; gap: 2px; }
47
+ .roomBox { height: min(62vh, 520px); border-radius: 18px; overflow: hidden; }
48
+ .roomBar select { width: auto; }
49
+ .roomBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
42
50
  nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
43
51
  aside .back { margin-top: 4px; font-size: 12.5px; padding: 10px 20px 0; border-top: 1px solid var(--line); }
44
52
  main { width: 100%; padding: 6px 0 60px; display: grid; gap: 16px; align-content: start; }
@@ -52,6 +60,8 @@
52
60
  aside nav { padding: 0; }
53
61
  .me { padding: 0; background: none; border: 0; } .me small, .me b { display: none; } .me .av { width: 32px; height: 32px; margin: 0; border-radius: 10px; font-size: 15px; box-shadow: none; }
54
62
  nav { display: flex; gap: 4px; } nav a { white-space: nowrap; padding: 6px 10px; } nav a b { display: none; }
63
+ nav details, nav details > div { display: flex; gap: 4px; } nav details > summary { display: none; }
64
+ .roomBox { height: 54vh; }
55
65
  aside .back { display: none; }
56
66
  main { padding: 4px 4px 50px; }
57
67
  }
@@ -85,6 +95,13 @@
85
95
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; cursor: pointer; }
86
96
  .chip:has(input:checked) { border-color: var(--accent); color: var(--accent); font-weight: 600; }
87
97
  .chip input { display: none; }
98
+ /* filter of the inference history: each ot drawn, not a dropdown */
99
+ .otPick { gap: 8px; margin: 6px 0 14px; }
100
+ .otPick + .total { margin: 0 0 10px !important; }
101
+ .otPick .chip { padding: 4px 12px 4px 4px; }
102
+ .otPick .chip.all { padding: 5px 12px; }
103
+ .otPick .face { width: 30px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--line); font-weight: 700; font-size: 13px; overflow: hidden; }
104
+ .otPick .face svg { width: 100%; height: 100%; }
88
105
  .chip.off { opacity: .45; cursor: not-allowed; }
89
106
  label.f { display: grid; gap: 3px; font-size: 12px; color: var(--muted); flex: 1 1 180px; }
90
107
  input[type=text], input[type=password], input[type=search], select { font: 13px var(--font); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 36px; width: 100%; outline: none; }
@@ -126,7 +143,8 @@
126
143
  ul.list li span { flex: 1; overflow-wrap: anywhere; }
127
144
  ul.list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
128
145
  .empty { color: var(--muted); font-size: 13px; }
129
- .rows { display: grid; gap: 6px; }
146
+ .rows { display: grid; gap: 8px; }
147
+ .rows + .row { margin-top: 14px; }
130
148
  .accHero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--panel-2); }
131
149
  .accHero .mark { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
132
150
  .accHero .mark img { width: 100%; height: 100%; border-radius: 0 !important; }
@@ -177,12 +195,12 @@
177
195
  .badge { font-size: 12px; font-weight: 650; color: var(--accent); text-align: center; padding: 6px; }
178
196
  .logo-orquesta { display: inline-block; flex: none; vertical-align: -3px; background: currentColor; -webkit-mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABdCAQAAADwdavAAAAHsElEQVR42tWba5SNVRjHf+fMzVyYOTOMWxljYtRCtSYiWa0i8oGI0VCJopY0TaVaErJWF4010WJUylq0EJXbNCVLF0UShZLGrVzG3UgYjJkzvH1w5jhnv9f9ntfK++5v5+yz938/e7/P83/+zz5RuPNpwedksptKl+JnFLX4Wc+T7oTfjM0oKChs87oQvodcOgBQy1w32v86fgvYv4wsN9p/LBcDC5iMC09QG3YH4B/lFvfBj6YoAF9hDjHuW0Bnjgbgn+Ye98FP5NOg/UtIcN8CBnAuAL+KB9wHP50fg/ZfTYrb4Ht5mdoA/BqGuc/+HTkYtP9PpLkNfn2WBOH73UfhPDxJdXABG2nstgW0C0ZfV9o/kY+D8BU2ku624zOCqhD7P+E2+7fnrxD7r6ORu+A3CCEPCtUMddvxeZaakAV867b4e0dI8FI4T67buM83IfAVSqnvJvixFAZTRwWFU/R0l/3zOBNm/7nEuct57gyDf5iOboKfRkkYfIVCotx0+t8MMv/Lbbub9B8PDwun308+nmsVbpQKWhf2CcdnDQ2vTeiZDKKtsIAM1grwz9L/2jvjmTzER2zndUEaSWa+AF9hAfHXCvBo0unKcyzmb/wozBGYTSyv4RfgHyTn/7d3I9rRl3Es4ndOB6Eto4mgOoykUoB/kVfN5FuP4z4kmjgSSCaNJmSQSSsyaEIKsWH9VjGS8rBPejFXWBL8Qj8Om22r/SeGBJJIJoVUUvHhI5kUfKSSSgr1idcVX9eRL8DPYZoK/nmKzODLL8BLMk3JJIssWtCUVBqQQBwxEnu5mVHsCvukNcXcqOq3lFInj0YanXmKOWzkaIjEId82c5swdjO+0Oj3F+2cgt6cfszgV/6NAPYV+KJX8TFPo181o5x4P5PoznT+jMjixvATeUfgPXXieXLkjPARVgqsJLK2SQU/jlc1jXOQzpFafjA/OGb3OkH2VpUDeT6o94eTtxciKd556MTiECnJmfY9N6n82QhOafZdSWokMl4+5Q6DV1ih4vNeBnNCs+9R7rQPvzGzHD44CheZT3MV/DyOafauZYL93KsFyxy3fTXTVAfCQ64OfIWv7JcuGrPUcfinGauqJXrI5bBO/wP2vU8is7jkMPwDDFexIS8Pckh3t2ynjh5Gc8Fh+Fs0CtFehugeHoWF9pW3m1V5aKQv7jKV24RoHue47m/KaGsvS4I4Csiw/IsaKjjEAQ5wjFP4icVDUoD/N6URyfiZQxH/qKLuaCbqEoQzTGSHXft31vHIYrvAJoq4nzakaNLwGFLI4BbaC8nL5dj+mmbUrduxyfYvbkQxzQL4KkrJtV2dasjMMJ1f7TwjqLu0YJsp/DKGRCBtZ7LY0MPtEu79NJfTIQZy3gT+zxEpAx1ZYxIr8oSqQDHXyUww1QT+36oMSsY99xVUZjXznBR2+qOYxCGyZSb5znCCWsbYhp9AvoHXr/P94X6pJxVUysXjvYYT7KGVTfjNec80OG4QWGoGG1CokRMTjXOuEg2XaM01rzZ1DfsE4pzAh4FvCmSmMn6F37YBPp4RFiL7v+SFMR8vBcEdmyrDic4ZTjNJGn4Ws039mkI1Y4Vg2J0jwW+Xy4S1k4YTTZYCH8dAtlgIi5eYRWLYL7ODt6Evp/8SSaVxGFsgkR9lMVMlz2q35cKNHx+Lw74/okEFdZ8lhlNtV6WDejrGcP6wyFXXCb4nljcEbaiGvtYX8GJYOVkdaEZbYLTdWGI5n9ghFEw9DNPYtwnWX+MuBhz9ciS+3VDsbU8xFZYzhUP0FkboHnYf4sq1Astl7SRWmOZW3XRKFzlMZb9EolMhuE5oz1Yds7W0fohGaqqToa2ccbQNcW1eGtOf+cF7zFZT/JGC4na9cJ0j1M1afAs8QDO+tHCRvZyN/EkFl0ghm1vJlry7cI6JzMAf8kkqxQzW7T+FsShWF1FgugeRtirGC6QknmmG7mM9PuvWacL6qwq/mjeFJCWGl0z01zPcJbPBAyyGIDuthkIh7np5LKReqdfekGFE9Zh11eBPEeBDfxPXXSfI+2T2oFUYG3Gq+ZlCkjBTD5Mc5Molg3vleGQfE2Jn5+wXqcSAO9lu+ffFcoWOaCY56o2qeUt1eLpQJjHCbtl80Mdyx+Bf0ICfY4lshwpeBUg+N1nmlGbnd7xKWM+x8Zatkb/q6sSbcJKnVbl0azbZGOkcfcyERfHZQyzdIvqL3wleYja1qpmy6SBdPoohmlLVWKZvwmcRWH8/uTrLT+QZTepstps2in7ZOiTXvJXRw5B1dWWVIQPSah/YUa772noTfrQgQzZivOQ+HKOTncLHK6rrX2Yu7xMyLZfSF3JWYuz37exBMgul6PJUqQJpPP351rBmENqO08WON8my7PiOkU896fFTeZQ1Fgvr82yMD/S2lK5v5T7bbjeNQZRaoNan6WWv/DTGxEIXKYn4ZlUid1PMThMetoIG9gZ/16A8VEmhQ/9q9JLBUBawW9dgFxhub+h0FuksYRdDbYrv+r4vg34U8jV7NQTibVp32K0kbQ0pYJhQtzpOCdPZxtV5EkjnBrJpzfWk4SOBOKJQmE4Rl+QXAFHkkEd3WlKPKvawliX8TA1X/4mhHonEE48XD5WUiwv4D2U5zUDaj6UBAAAAAElFTkSuQmCC) center/contain no-repeat; mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABdCAQAAADwdavAAAAHsElEQVR42tWba5SNVRjHf+fMzVyYOTOMWxljYtRCtSYiWa0i8oGI0VCJopY0TaVaErJWF4010WJUylq0EJXbNCVLF0UShZLGrVzG3UgYjJkzvH1w5jhnv9f9ntfK++5v5+yz938/e7/P83/+zz5RuPNpwedksptKl+JnFLX4Wc+T7oTfjM0oKChs87oQvodcOgBQy1w32v86fgvYv4wsN9p/LBcDC5iMC09QG3YH4B/lFvfBj6YoAF9hDjHuW0Bnjgbgn+Ye98FP5NOg/UtIcN8CBnAuAL+KB9wHP50fg/ZfTYrb4Ht5mdoA/BqGuc/+HTkYtP9PpLkNfn2WBOH73UfhPDxJdXABG2nstgW0C0ZfV9o/kY+D8BU2ku624zOCqhD7P+E2+7fnrxD7r6ORu+A3CCEPCtUMddvxeZaakAV867b4e0dI8FI4T67buM83IfAVSqnvJvixFAZTRwWFU/R0l/3zOBNm/7nEuct57gyDf5iOboKfRkkYfIVCotx0+t8MMv/Lbbub9B8PDwun308+nmsVbpQKWhf2CcdnDQ2vTeiZDKKtsIAM1grwz9L/2jvjmTzER2zndUEaSWa+AF9hAfHXCvBo0unKcyzmb/wozBGYTSyv4RfgHyTn/7d3I9rRl3Es4ndOB6Eto4mgOoykUoB/kVfN5FuP4z4kmjgSSCaNJmSQSSsyaEIKsWH9VjGS8rBPejFXWBL8Qj8Om22r/SeGBJJIJoVUUvHhI5kUfKSSSgr1idcVX9eRL8DPYZoK/nmKzODLL8BLMk3JJIssWtCUVBqQQBwxEnu5mVHsCvukNcXcqOq3lFInj0YanXmKOWzkaIjEId82c5swdjO+0Oj3F+2cgt6cfszgV/6NAPYV+KJX8TFPo181o5x4P5PoznT+jMjixvATeUfgPXXieXLkjPARVgqsJLK2SQU/jlc1jXOQzpFafjA/OGb3OkH2VpUDeT6o94eTtxciKd556MTiECnJmfY9N6n82QhOafZdSWokMl4+5Q6DV1ih4vNeBnNCs+9R7rQPvzGzHD44CheZT3MV/DyOafauZYL93KsFyxy3fTXTVAfCQ64OfIWv7JcuGrPUcfinGauqJXrI5bBO/wP2vU8is7jkMPwDDFexIS8Pckh3t2ynjh5Gc8Fh+Fs0CtFehugeHoWF9pW3m1V5aKQv7jKV24RoHue47m/KaGsvS4I4Csiw/IsaKjjEAQ5wjFP4icVDUoD/N6URyfiZQxH/qKLuaCbqEoQzTGSHXft31vHIYrvAJoq4nzakaNLwGFLI4BbaC8nL5dj+mmbUrduxyfYvbkQxzQL4KkrJtV2dasjMMJ1f7TwjqLu0YJsp/DKGRCBtZ7LY0MPtEu79NJfTIQZy3gT+zxEpAx1ZYxIr8oSqQDHXyUww1QT+36oMSsY99xVUZjXznBR2+qOYxCGyZSb5znCCWsbYhp9AvoHXr/P94X6pJxVUysXjvYYT7KGVTfjNec80OG4QWGoGG1CokRMTjXOuEg2XaM01rzZ1DfsE4pzAh4FvCmSmMn6F37YBPp4RFiL7v+SFMR8vBcEdmyrDic4ZTjNJGn4Ws039mkI1Y4Vg2J0jwW+Xy4S1k4YTTZYCH8dAtlgIi5eYRWLYL7ODt6Evp/8SSaVxGFsgkR9lMVMlz2q35cKNHx+Lw74/okEFdZ8lhlNtV6WDejrGcP6wyFXXCb4nljcEbaiGvtYX8GJYOVkdaEZbYLTdWGI5n9ghFEw9DNPYtwnWX+MuBhz9ciS+3VDsbU8xFZYzhUP0FkboHnYf4sq1Astl7SRWmOZW3XRKFzlMZb9EolMhuE5oz1Yds7W0fohGaqqToa2ccbQNcW1eGtOf+cF7zFZT/JGC4na9cJ0j1M1afAs8QDO+tHCRvZyN/EkFl0ghm1vJlry7cI6JzMAf8kkqxQzW7T+FsShWF1FgugeRtirGC6QknmmG7mM9PuvWacL6qwq/mjeFJCWGl0z01zPcJbPBAyyGIDuthkIh7np5LKReqdfekGFE9Zh11eBPEeBDfxPXXSfI+2T2oFUYG3Gq+ZlCkjBTD5Mc5Molg3vleGQfE2Jn5+wXqcSAO9lu+ffFcoWOaCY56o2qeUt1eLpQJjHCbtl80Mdyx+Bf0ICfY4lshwpeBUg+N1nmlGbnd7xKWM+x8Zatkb/q6sSbcJKnVbl0azbZGOkcfcyERfHZQyzdIvqL3wleYja1qpmy6SBdPoohmlLVWKZvwmcRWH8/uTrLT+QZTepstps2in7ZOiTXvJXRw5B1dWWVIQPSah/YUa772noTfrQgQzZivOQ+HKOTncLHK6rrX2Yu7xMyLZfSF3JWYuz37exBMgul6PJUqQJpPP351rBmENqO08WON8my7PiOkU896fFTeZQ1Fgvr82yMD/S2lK5v5T7bbjeNQZRaoNan6WWv/DTGxEIXKYn4ZlUid1PMThMetoIG9gZ/16A8VEmhQ/9q9JLBUBawW9dgFxhub+h0FuksYRdDbYrv+r4vg34U8jV7NQTibVp32K0kbQ0pYJhQtzpOCdPZxtV5EkjnBrJpzfWk4SOBOKJQmE4Rl+QXAFHkkEd3WlKPKvawliX8TA1X/4mhHonEE48XD5WUiwv4D2U5zUDaj6UBAAAAAElFTkSuQmCC) center/contain no-repeat; }
179
197
  details.r { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
180
- details.r > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 9px 12px; align-items: center; }
198
+ details.r > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 5px 10px; padding: 12px 14px 13px; align-items: center; }
181
199
  details.r > summary::-webkit-details-marker { display: none; }
182
200
  details.r > summary::before { content: '›'; color: var(--muted); transition: transform .15s; grid-row: 1 / span 2; }
183
201
  details.r[open] > summary::before { transform: rotate(90deg); }
184
202
  details.r .sum { font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
185
- details.r .meta { grid-column: 2 / span 2; color: var(--muted); font: 11.5px var(--mono); }
203
+ details.r .meta { grid-column: 2 / span 2; color: var(--muted); font: 11.5px/1.5 var(--mono); }
186
204
  details.r time { color: var(--muted); font-size: 12px; white-space: nowrap; }
187
205
  details.r .body { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; }
188
206
  details.r .body b { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@@ -191,6 +209,8 @@
191
209
  .tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
192
210
  .sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; grid-column: 1 / span 2; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
193
211
  .sub select { width: auto; height: 30px; padding: 0 8px; }
212
+ #senses .row select, #senses .row input:not([type=checkbox]) { width: auto; height: 32px; padding: 0 8px; }
213
+ #senses .row label { display: inline-flex; gap: 6px; align-items: center; }
194
214
  .sub button { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
195
215
  .sh { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
196
216
  .sh:first-of-type { margin-top: 4px; }
@@ -209,6 +229,18 @@
209
229
  textarea { font: 13px/1.45 var(--font); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; width: 100%; min-height: 40px; resize: vertical; outline: none; }
210
230
  textarea:focus { border-color: var(--accent); }
211
231
  .more [hidden], .integ [hidden] { display: none !important; }
232
+ .bgames { display: grid; gap: 8px; }
233
+ .bgames .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
234
+ .bgame { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
235
+ .bgame .cv { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, #3b2f8f, #1e1850); color: rgb(255 255 255 / .55); transition: transform .15s, box-shadow .15s; }
236
+ .bgame .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
237
+ .bgame.off .cv img { filter: saturate(.55) brightness(.8); }
238
+ .bgame .tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgb(0 0 0 / .7); color: #fff; font: 600 10px/1.4 inherit; font-style: normal; }
239
+ .bgame b { font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
240
+ .bgame:hover .cv, .bgame:focus-visible .cv { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent); }
241
+ .bgame:disabled { opacity: .55; cursor: default; }
242
+ .bgames .link { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }
243
+ .opt .quota { display: block; margin-top: 4px; color: var(--accent); font-weight: 600; }
212
244
  .integ { display: grid; gap: 8px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); margin-bottom: 8px; }
213
245
  .integ > header { display: flex; align-items: center; gap: 10px; }
214
246
  .integ > header b { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
@@ -234,8 +266,36 @@
234
266
  .fields .or { align-self: center; color: var(--muted); font-size: 12px; padding-top: 16px; }
235
267
  .testout { white-space: pre-wrap; max-height: 220px; overflow: auto; font-size: 12px; margin: 0; }
236
268
  .fields { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
269
+ .wal { display: grid; gap: 10px; }
270
+ .wal .who { display: flex; align-items: center; gap: 10px; }
271
+ .wal .who b { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
272
+ .wal .on { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
273
+ .wal .on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
274
+ .wchains { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
275
+ .wchain { display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
276
+ .wchain > img { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; }
277
+ .wchain b { font-weight: 650; }
278
+ .wchain .bal { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
279
+ .wchain .bal small { font-size: 12px; font-weight: 500; color: var(--muted); }
280
+ .wchain .addr { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 6px; }
281
+ .wchain .addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); padding: 5px 8px; border-radius: 8px; background: var(--panel-2); }
282
+ .wchain .addr button { flex: none; padding: 5px 7px; }
283
+ .wpays { display: grid; gap: 6px; }
284
+ .wpay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
285
+ .wpay .st { padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
286
+ .wpay .st.paid { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
287
+ .wpay .st.pending, .wpay .st.confirming { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
288
+ .wpay .amt { font-weight: 650; }
289
+ .wpay .muted { color: var(--muted); }
290
+ .pads { display: flex; flex-wrap: wrap; gap: 6px; }
291
+ .pads a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--ink); text-decoration: none; background: var(--panel); }
292
+ .pads a:hover { border-color: var(--accent); }
293
+ .pads img { width: 20px; height: 20px; border-radius: 6px; }
294
+ .pads a.sb { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
295
+ a.primary { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 7px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; text-decoration: none; }
237
296
  footer { color: var(--muted); font-size: 12px; text-align: center; }
238
297
  footer code { font: 11.5px var(--mono); }
298
+ .prowl-link{display:inline-flex;vertical-align:-3px;margin-right:6px}.prowl-link svg{border-radius:4px}
239
299
  </style>
240
300
  </head>
241
301
  <body>
@@ -248,6 +308,12 @@
248
308
  <main>
249
309
  <div><h1 class="pageH" id="pageH"></h1><p class="pageD" id="pageD"></p></div>
250
310
 
311
+ <section aria-labelledby="hHome">
312
+ <h2 id="hHome" data-t="roomH"></h2>
313
+ <div class="roomBar"><span class="hint" data-t="roomHint"></span><span class="sp"></span><select id="roomTheme" hidden></select></div>
314
+ <div class="roomBox" id="room"></div>
315
+ </section>
316
+
251
317
  <section aria-labelledby="hAcc">
252
318
  <h2 id="hAcc" data-t="accH"></h2>
253
319
  <p class="hint" data-t="accHint"></p>
@@ -285,11 +351,20 @@
285
351
  <h2 id="hAccess" data-t="accessH"></h2>
286
352
  <p class="hint" data-t="accessHint"></p>
287
353
  <div id="access"></div>
288
- <h3 class="sh" data-t="integH"></h3>
354
+ </section>
355
+
356
+ <section aria-labelledby="hInteg">
357
+ <h2 id="hInteg" data-t="integH"></h2>
289
358
  <p class="hint" data-t="integHint"></p>
290
359
  <div id="integ"></div>
291
360
  </section>
292
361
 
362
+ <section aria-labelledby="hSenses">
363
+ <h2 id="hSenses" data-t="sensesH"></h2>
364
+ <p class="hint" data-t="sensesHint"></p>
365
+ <div id="senses"></div>
366
+ </section>
367
+
293
368
  <section aria-labelledby="hPet">
294
369
  <h2 id="hPet" data-t="petH"></h2>
295
370
  <p class="hint" data-t="annoyHint"></p>
@@ -345,6 +420,12 @@
345
420
  <div id="wallet"></div>
346
421
  </section>
347
422
 
423
+ <section aria-labelledby="hPlaza">
424
+ <h2 id="hPlaza" data-t="plazaH"></h2>
425
+ <p class="hint" data-t="plazaHint"></p>
426
+ <div id="plaza"></div>
427
+ </section>
428
+
348
429
  <section aria-labelledby="hCom">
349
430
  <h2 id="hCom" data-t="comH"></h2>
350
431
  <p class="hint" data-t="comHint"></p>
@@ -373,7 +454,8 @@
373
454
  <section aria-labelledby="hInf">
374
455
  <h2 id="hInf" data-t="infH"></h2>
375
456
  <p class="hint" data-t="infHint"></p>
376
- <div class="row"><select id="infOt" aria-label="ot" hidden></select><p class="total" id="infTotal" style="margin:0"></p></div>
457
+ <div class="chips otPick" id="infOt" role="radiogroup" aria-label="ot" hidden></div>
458
+ <p class="total" id="infTotal" style="margin:0"></p>
377
459
  <div class="rows" id="infs"></div>
378
460
  <div class="row"><button id="clearInf" data-t="clearInf"></button><span class="msg" id="infMsg" role="status"></span></div>
379
461
  </section>
@@ -394,10 +476,11 @@
394
476
  const BOOT = __BOOT__;
395
477
  const T = {
396
478
  en: {
479
+ roomH: 'Its home', roomHint: 'Its 3D room: it wanders on its own, or drive it with WASD, a click or the d-pad.', roomNo: 'This computer can’t draw 3D (no WebGL), or its look is an image.',
397
480
  accH: 'Your 7ots account', accHint: 'Connect it to pick which of your ots lives on this computer, and bring its look, voice and personality from 7ots.com.',
398
481
  connect: 'Connect with 7ots.com', connecting: 'Waiting for you in the browser…', openAgain: 'Didn’t open? Open the page', signedAs: 'Connected as {who}', logout: 'Disconnect', noOts: 'No ots in your account yet.', newOt: 'Create one on 7ots.com',
399
482
  useThis: 'Use this one', current: 'On this computer', switching: 'Switching…', resync: 'Sync again', restarting: 'Restarting with {name}…', heroH: 'Bring your ots home', heroP: 'Sign in once and choose which of your ots lives on this computer.', perkLook: 'Look', perkVoice: 'Voice', perkMind: 'Personality', heroNote: 'Opens 7ots.com in your browser: press Connect there and come back.', cancel: 'Cancel', connectedAs: 'Connected as', yourOts: 'Your ots', slow: 'Taking a while… still restarting.', card: 'Card', invite: 'Also on this computer', dismiss: 'Turn off', visiting: 'Also active', maxOts: 'Two at a time for now',
400
- voiceH: 'Voice', vExpr: 'Expressions', vExprHint: 'It picks its own tone: laughs, sighs, whispers, a sad or excited voice. Works with Grok (xAI) and ElevenLabs v3; other voices just skip them.', voiceHint: 'How it speaks out loud, and how it hears you (🎙️ in its menu or Ctrl+Alt+Space).',
483
+ vWake: 'Say “hey {name}”', vWakeHint: 'Opens the mic without a click. Recognized on this computer (Vosk): no audio is kept or sent. The first time it downloads its model (~50 MB). Off by default.', vWakeNoStt: 'Needs speech to text first.', vWakeOn: 'listening for its name', vWakeSetup: 'downloading the model…', voiceH: 'Voice', vExpr: 'Expressions', vExprHint: 'It picks its own tone: laughs, sighs, whispers, a sad or excited voice. Works with Grok (xAI) and ElevenLabs v3; other voices just skip them.', voiceHint: 'How it speaks out loud, and how it hears you (🎙️ in its menu or Ctrl+Alt+Space).',
401
484
  vnone: 'Silent', vnoneD: 'Only speech bubbles.', vbrowser: 'System voice', vbrowserD: 'The browser’s speech synthesis. Often has no voices on Linux.',
402
485
  vlocal: 'Local voice (Piper)', vlocalD: 'Runs on this computer, free and private. Picks Spanish or English per line.', vlocalNo: 'not installed (7ots voice install)',
403
486
  velevenlabs: 'ElevenLabs', velevenlabsD: 'Natural cloud voices, with your key.', vopenai: 'OpenAI', vopenaiD: 'OpenAI text-to-speech, with your key.',
@@ -412,8 +495,8 @@
412
495
  cli: 'Local AI CLI', cliD: 'An AI command already installed here, run as a separate instance.', notInstalled: 'not installed',
413
496
  api: 'Your API key', apiD: 'Anthropic or any OpenAI-compatible endpoint, with your key.',
414
497
  batuta: 'Batuta (Orquesta)', batutaD: 'Orquesta’s model router, with your Orquesta token.',
415
- home: 'The ot’s home', homeD: 'The /chat of its home on 7ots.com or your own server.', noHome: 'no home online',
416
- model: 'Model (optional)', provider: 'Provider', baseUrl: 'Base URL (optional)', key: 'API key', keySaved: 'saved — type to replace', keyNone: 'not set', orqToken: 'Orquesta token',
498
+ home: 'The ot’s home', homeD: 'The /chat of its home on 7ots.com (or your own server). On 7ots.com, if the ot has no AI key of its own, 7ots pays for its AI: 100 free replies and 100 voice clips a month per account, 3 byte games a day. With your own key there’s no cap.', homeLeft: 'This month: {n} of {free} free replies left · {tts} voice clips · {games} byte games today.', homeOwn: 'It uses its own AI key: no cap, 7ots doesn’t charge for it.', homeUnlimited: 'No cap on this account.', noHome: 'no home online',
499
+ model: 'Model (optional)', provider: 'Provider', baseUrl: 'Base URL (optional)', key: 'API key', keySaved: 'saved — type to replace', keyNone: 'not set', orqToken: 'Orquesta token', batutaLogin: 'Sign in with Orquesta', batutaHint: 'Batuta needs your Orquesta sign-in token (oclt_…), not an API key from Settings → API keys.', batutaDone: 'Signed in: Orquesta token saved ✓', batuta_wrong_token: 'Batuta does not accept this Orquesta token (an API key oak_… has no organization for Batuta). Press “Sign in with Orquesta” to get the right one.', batuta_no_token: 'No Orquesta token yet: press “Sign in with Orquesta”.', batuta_bad_token: 'Orquesta rejected the token (invalid, expired or revoked): sign in with Orquesta again.', batuta_no_plan: 'Your Orquesta organization has no Batuta allowance left: {e}',
417
500
  accessH: 'What it can see and do', accessHint: 'Everything stays on this computer, except what goes to the brain you chose above.',
418
501
  agent: 'Your coding agent and terminal', agentD: 'Your prompts, commands and tools go to the brain so it can comment. Off: it only knows “something happened”.',
419
502
  memory: 'Learn about you', memoryD: 'Keeps notes (“remember that…”) and uses them when answering.',
@@ -428,10 +511,11 @@
428
511
  foot: 'Open this page with <code>7ots config</code>, or ⚙️ in the pet’s menu.', err: 'Couldn’t save: {e}',
429
512
  },
430
513
  es: {
514
+ roomH: 'Su casa', roomHint: 'Su pieza en 3D: anda solo, o llévalo tú con WASD, un clic o la cruceta.', roomNo: 'Este computador no puede dibujar 3D (sin WebGL), o su aspecto es una imagen.',
431
515
  accH: 'Tu cuenta 7ots', accHint: 'Conéctala para elegir cuál de tus ots vive en este computador, y traer su aspecto, voz y personalidad desde 7ots.com.',
432
516
  connect: 'Conectar con 7ots.com', connecting: 'Esperándote en el navegador…', openAgain: '¿No se abrió? Abrir la página', signedAs: 'Conectado como {who}', logout: 'Desconectar', noOts: 'Todavía no hay ots en tu cuenta.', newOt: 'Crea uno en 7ots.com',
433
517
  useThis: 'Usar este', current: 'En este computador', switching: 'Cambiando…', resync: 'Sincronizar', restarting: 'Reiniciando con {name}…', heroH: 'Trae a tus ots a casa', heroP: 'Inicia sesión una vez y elige cuál de tus ots vive en este computador.', perkLook: 'Aspecto', perkVoice: 'Voz', perkMind: 'Personalidad', heroNote: 'Abre 7ots.com en tu navegador: aprieta Conectar ahí y vuelve.', cancel: 'Cancelar', connectedAs: 'Conectado como', yourOts: 'Tus ots', slow: 'Está tardando… sigue reiniciando.', card: 'Tarjeta', invite: 'Activar también aquí', dismiss: 'Desactivar', visiting: 'También activo', maxOts: 'Por ahora, dos a la vez',
434
- voiceH: 'Voz', vExpr: 'Expresiones', vExprHint: 'Elige su propio tono: risas, suspiros, susurros, voz triste o emocionada. Funciona con Grok (xAI) y ElevenLabs v3; las otras voces las omiten.', voiceHint: 'Cómo habla en voz alta, y cómo te escucha (🎙️ en su menú o Ctrl+Alt+Espacio).',
518
+ vWake: 'Decir “oye {name}”', vWakeHint: 'Abre el micrófono sin clic. Se reconoce en este computador (Vosk): no se guarda ni envía audio. La primera vez baja su modelo (~50 MB). Apagado por defecto.', vWakeNoStt: 'Primero necesita voz a texto.', vWakeOn: 'escuchando su nombre', vWakeSetup: 'bajando el modelo…', voiceH: 'Voz', vExpr: 'Expresiones', vExprHint: 'Elige su propio tono: risas, suspiros, susurros, voz triste o emocionada. Funciona con Grok (xAI) y ElevenLabs v3; las otras voces las omiten.', voiceHint: 'Cómo habla en voz alta, y cómo te escucha (🎙️ en su menú o Ctrl+Alt+Espacio).',
435
519
  vnone: 'Mudo', vnoneD: 'Solo globos de texto.', vbrowser: 'Voz del sistema', vbrowserD: 'La síntesis del navegador. En Linux suele no tener voces.',
436
520
  vlocal: 'Voz local (Piper)', vlocalD: 'Corre en este computador, gratis y privada. Elige español o inglés por frase.', vlocalNo: 'no instalada (7ots voice install)',
437
521
  velevenlabs: 'ElevenLabs', velevenlabsD: 'Voces naturales en la nube, con tu key.', vopenai: 'OpenAI', vopenaiD: 'Texto a voz de OpenAI, con tu key.',
@@ -446,8 +530,8 @@
446
530
  cli: 'CLI de IA local', cliD: 'Un comando de IA ya instalado acá, como instancia aparte.', notInstalled: 'no instalado',
447
531
  api: 'Tu API key', apiD: 'Anthropic o cualquier endpoint compatible con OpenAI, con tu key.',
448
532
  batuta: 'Batuta (Orquesta)', batutaD: 'El router de modelos de Orquesta, con tu token de Orquesta.',
449
- home: 'La casa del ot', homeD: 'El /chat de su casa en 7ots.com o en tu servidor.', noHome: 'sin casa en línea',
450
- model: 'Modelo (opcional)', provider: 'Proveedor', baseUrl: 'Base URL (opcional)', key: 'API key', keySaved: 'guardada — escribe para reemplazar', keyNone: 'sin configurar', orqToken: 'Token de Orquesta',
533
+ home: 'La casa del ot', homeD: 'El /chat de su casa en 7ots.com (o tu propio servidor). En 7ots.com, si el ot no tiene su propia clave de IA, su IA la paga 7ots: 100 respuestas y 100 audios gratis al mes por cuenta, 3 partidas de byte al día. Con tu propia clave no hay tope.', homeLeft: 'Este mes le quedan {n} de {free} respuestas gratis · {tts} audios · {games} partidas de byte hoy.', homeOwn: 'Usa su propia clave de IA: sin tope, 7ots no la cobra.', homeUnlimited: 'Esta cuenta no tiene tope.', noHome: 'sin casa en línea',
534
+ model: 'Modelo (opcional)', provider: 'Proveedor', baseUrl: 'Base URL (opcional)', key: 'API key', keySaved: 'guardada — escribe para reemplazar', keyNone: 'sin configurar', orqToken: 'Token de Orquesta', batutaLogin: 'Iniciar sesión con Orquesta', batutaHint: 'Batuta usa tu token de sesión de Orquesta (oclt_…), no una API key de Configuración → API keys.', batutaDone: 'Sesión iniciada: token de Orquesta guardado ✓', batuta_wrong_token: 'Batuta no acepta este token de Orquesta (una API key oak_… no tiene organización para Batuta). Pulsa «Iniciar sesión con Orquesta» para obtener el correcto.', batuta_no_token: 'Aún no hay token de Orquesta: pulsa «Iniciar sesión con Orquesta».', batuta_bad_token: 'Orquesta rechazó el token (inválido, vencido o revocado): vuelve a iniciar sesión con Orquesta.', batuta_no_plan: 'Tu organización de Orquesta no tiene saldo de Batuta: {e}',
451
535
  accessH: 'Qué puede ver y hacer', accessHint: 'Todo queda en este computador, salvo lo que va al cerebro que elegiste arriba.',
452
536
  agent: 'Tu agente de código y la terminal', agentD: 'Tus prompts, comandos y herramientas van al cerebro para que comente. Apagado: solo sabe “pasó algo”.',
453
537
  memory: 'Aprender de ti', memoryD: 'Guarda notas (“anota que…”) y las usa al responder.',
@@ -462,10 +546,11 @@
462
546
  foot: 'Abre esta página con <code>7ots config</code>, o ⚙️ en el menú de la mascota.', err: 'No se pudo guardar: {e}',
463
547
  },
464
548
  pt: {
549
+ roomH: 'A casa dele', roomHint: 'O quarto 3D dele: anda sozinho, ou leve-o com WASD, um clique ou o direcional.', roomNo: 'Este computador não desenha 3D (sem WebGL), ou o visual dele é uma imagem.',
465
550
  accH: 'Sua conta 7ots', accHint: 'Conecte para escolher qual dos seus ots vive neste computador, e trazer visual, voz e personalidade do 7ots.com.',
466
551
  connect: 'Conectar com 7ots.com', connecting: 'Esperando você no navegador…', openAgain: 'Não abriu? Abrir a página', signedAs: 'Conectado como {who}', logout: 'Desconectar', noOts: 'Ainda não há ots na sua conta.', newOt: 'Crie um no 7ots.com',
467
552
  useThis: 'Usar este', current: 'Neste computador', switching: 'Trocando…', resync: 'Sincronizar', restarting: 'Reiniciando com {name}…', heroH: 'Traga seus ots para casa', heroP: 'Entre uma vez e escolha qual dos seus ots vive neste computador.', perkLook: 'Visual', perkVoice: 'Voz', perkMind: 'Personalidade', heroNote: 'Abre o 7ots.com no navegador: aperte Conectar lá e volte.', cancel: 'Cancelar', connectedAs: 'Conectado como', yourOts: 'Seus ots', slow: 'Está demorando… ainda reiniciando.', card: 'Carta', invite: 'Ativar também aqui', dismiss: 'Desativar', visiting: 'Também ativo', maxOts: 'Por enquanto, dois de cada vez',
468
- voiceH: 'Voz', vExpr: 'Expressões', vExprHint: 'Escolhe o próprio tom: risadas, suspiros, sussurros, voz triste ou animada. Funciona com Grok (xAI) e ElevenLabs v3; as outras vozes as ignoram.', voiceHint: 'Como ele fala em voz alta, e como te ouve (🎙️ no menu ou Ctrl+Alt+Espaço).',
553
+ vWake: 'Dizer “ei {name}”', vWakeHint: 'Abre o microfone sem clique. Reconhecido neste computador (Vosk): nenhum áudio é guardado ou enviado. Na primeira vez baixa o modelo (~50 MB). Desligado por padrão.', vWakeNoStt: 'Primeiro precisa de voz para texto.', vWakeOn: 'ouvindo o nome dele', vWakeSetup: 'baixando o modelo…', voiceH: 'Voz', vExpr: 'Expressões', vExprHint: 'Escolhe o próprio tom: risadas, suspiros, sussurros, voz triste ou animada. Funciona com Grok (xAI) e ElevenLabs v3; as outras vozes as ignoram.', voiceHint: 'Como ele fala em voz alta, e como te ouve (🎙️ no menu ou Ctrl+Alt+Espaço).',
469
554
  vnone: 'Mudo', vnoneD: 'Só balões de texto.', vbrowser: 'Voz do sistema', vbrowserD: 'A síntese do navegador. No Linux costuma não ter vozes.',
470
555
  vlocal: 'Voz local (Piper)', vlocalD: 'Roda neste computador, grátis e privada. Escolhe espanhol ou inglês por frase.', vlocalNo: 'não instalada (7ots voice install)',
471
556
  velevenlabs: 'ElevenLabs', velevenlabsD: 'Vozes naturais na nuvem, com sua key.', vopenai: 'OpenAI', vopenaiD: 'Texto para voz da OpenAI, com sua key.',
@@ -480,8 +565,8 @@
480
565
  cli: 'CLI de IA local', cliD: 'Um comando de IA já instalado aqui, como instância separada.', notInstalled: 'não instalado',
481
566
  api: 'Sua API key', apiD: 'Anthropic ou qualquer endpoint compatível com OpenAI, com sua key.',
482
567
  batuta: 'Batuta (Orquesta)', batutaD: 'O roteador de modelos da Orquesta, com seu token.',
483
- home: 'A casa do ot', homeD: 'O /chat da casa dele no 7ots.com ou no seu servidor.', noHome: 'sem casa online',
484
- model: 'Modelo (opcional)', provider: 'Provedor', baseUrl: 'Base URL (opcional)', key: 'API key', keySaved: 'salva — digite para trocar', keyNone: 'não configurada', orqToken: 'Token da Orquesta',
568
+ home: 'A casa do ot', homeD: 'O /chat da casa dele no 7ots.com (ou seu próprio servidor). No 7ots.com, se o ot não tem uma chave de IA própria, a IA dele é paga pelo 7ots: 100 respostas e 100 áudios grátis por mês por conta, 3 partidas de byte por dia. Com sua própria chave não há limite.', homeLeft: 'Este mês restam {n} de {free} respostas grátis · {tts} áudios · {games} partidas de byte hoje.', homeOwn: 'Usa a própria chave de IA: sem limite, o 7ots não cobra.', homeUnlimited: 'Esta conta não tem limite.', noHome: 'sem casa online',
569
+ model: 'Modelo (opcional)', provider: 'Provedor', baseUrl: 'Base URL (opcional)', key: 'API key', keySaved: 'salva — digite para trocar', keyNone: 'não configurada', orqToken: 'Token da Orquesta', batutaLogin: 'Entrar com a Orquesta', batutaHint: 'O Batuta usa seu token de login da Orquesta (oclt_…), não uma API key de Configurações → API keys.', batutaDone: 'Login feito: token da Orquesta salvo ✓', batuta_wrong_token: 'O Batuta não aceita este token da Orquesta (uma API key oak_… não tem organização para o Batuta). Clique em “Entrar com a Orquesta” para obter o certo.', batuta_no_token: 'Ainda não há token da Orquesta: clique em “Entrar com a Orquesta”.', batuta_bad_token: 'A Orquesta recusou o token (inválido, expirado ou revogado): entre com a Orquesta de novo.', batuta_no_plan: 'Sua organização na Orquesta não tem saldo de Batuta: {e}',
485
570
  accessH: 'O que ele pode ver e fazer', accessHint: 'Tudo fica neste computador, menos o que vai para o cérebro escolhido acima.',
486
571
  agent: 'Seu agente de código e o terminal', agentD: 'Seus prompts, comandos e ferramentas vão para o cérebro comentar. Desligado: só sabe “algo aconteceu”.',
487
572
  memory: 'Aprender sobre você', memoryD: 'Guarda notas (“anote que…”) e usa ao responder.',
@@ -502,16 +587,21 @@
502
587
  lv: 'Lv', oaiCompat: 'OpenAI-compatible', comH: 'Community', comHint: 'Mods people shared on 7ots.com. Install one to wear it, then rate it. Share yours from Personality → Mods.', comTop: 'Top rated', comNew: 'New', comPop: 'Popular', comSearch: 'Search mods…', comInstall: 'Install', comWear: 'Wear again', comEmpty: 'Nothing here yet.', comLogin: 'Sign in to 7ots.com (Account) to share, rate and report mods.', comMine: 'Shared by you', comMineEmpty: 'You have not shared any mod yet: use Share on one of yours in Personality → Mods.', comShare: 'Share', comShared: 'Sent: it shows in the gallery once approved.', comReport: 'Report', comReportPh: 'What is wrong with it?', comReportSend: 'Send', comReported: 'Reported, thanks.', comRated: 'Thanks for rating.', comDel: 'Delete', comInstalls: '{n} installs', comNoRating: 'no ratings', comRateHint: 'Install it to rate it', st_pending: 'In review', st_approved: 'Published', st_rejected: 'Rejected', st_hidden: 'Hidden', e_login: 'Sign in to 7ots.com first (Account).', modsH: 'Mods', modsHint: 'Packs that change its look (an orc, a robot…) in 2D and 3D. Take one off and it goes back to how it was.', modPut: 'Put it on', modOff: 'Take off', modOn: 'On', modImport: 'Import mod (.json)', modModel: 'New 3D body (.vrm / .glb)', modModelHint: 'Uploading…', modModelBy: '3D body', e_model: 'That file is not a .vrm or .glb model.', modBad: 'That file is not a valid mod.', e_mod: 'That file is not a valid mod.', e_maxMods: 'At most 4 mods at once.',
503
588
  langLabel: 'Interface language', langAuto: 'Automatic (system)', otLang: 'Language {name} speaks',
504
589
  apiD: 'Anthropic, any OpenAI-compatible endpoint, or Batuta (Orquesta’s model router), with your key.',
505
- vapuchat: 'apuchat audio', vapuchatD: 'apuchat’s voices, with your apuchat voice token.', vgrok: 'Grok AI', vgrokD: 'xAI’s text-to-speech, with your xAI key.', vfish: 'Fish Audio', vfishD: 'fish.audio voices (also cloned ones), with your key.',
590
+ vapuchat: 'apuchat audio', vapuchatD: 'apuchat’s voices. No token needed: with this computer connected to your 7ots.com account (Account, above) it uses your ot’s voice there, within the account’s free monthly voice quota.', vapuchatTok: 'apuchat voice token (optional)', vapuchatCloud: 'Without a token it speaks through your ot on 7ots.com.', vapuchatNoCloud: 'apuchat accounts do not give out voice tokens: connect this computer to your 7ots.com account (Account, above) and leave this empty.', vgrok: 'Grok AI', vgrokD: 'xAI’s text-to-speech, with your xAI key.', vfish: 'Fish Audio', vfishD: 'fish.audio voices (also cloned ones), with your key.',
506
591
  logs: 'Process logs', logsD: 'Read the last lines of a service’s logs (journal, pm2, docker, a .log file or a running program) when you ask. Keys and tokens are hidden.',
507
592
  sites: 'Site guides', sitesD: 'When you mention a site, read its usage guide on Prowl.world (only the domain is sent).',
508
- inbox: 'Read your mail', inboxD: 'Read and summarize your apumail inbox (set it up below) and what people wrote to your ot on apuchat, when you ask.',
593
+ prowl: 'Share which tools work', prowlD: 'For your online MCPs and APIs, send which site it was, whether it worked and how long it took to your ot on 7ots.com, for the plaza’s trending tools and Prowl’s ranking. Never what you asked or the answer.',
594
+ plazaH: "Praça", plazaHint: "A rede social dos ots no 7ots.com: seu ot publica a vida de mascote e comenta a dos outros. Nada da sua tela, câmera, e-mail ou chats vai para lá.", plazaOff: "Vincule este pet à sua conta do 7ots.com para participar da praça.", plazaOn: "Mostrar na praça", plazaOnD: "Sem isso não publica nem comenta, e a casa dele fica oculta.", plazaAuto: "Publica sozinho", plazaAutoD: "Imagina algo e publica como foto com IA ou no diário.", plazaAuto_off: "Nunca", plazaAuto_low: "Pouco", plazaAuto_normal: "Normal", plazaKinds: "O que pode publicar sozinho", plazaKindsD: "O que você publica à mão sai do mesmo jeito.", plazaK_photo: "Fotos com IA", plazaK_diary: "Diário", plazaK_aura: "Aura", plazaK_level: "Níveis", plazaK_mod: "Mods", plazaK_byte: "Partidas de byte", plazaComments: "Comenta e segue outros ots", plazaCommentsD: "Algumas frases por dia, sempre de boa; segue quem comentou duas vezes.", plazaLang: "Idioma dos posts", plazaLangAuto: "O da identidade dele", plazaHouse: "Ver a casa dele", plazaOpen: "Abrir a praça",
595
+ plazaH: "Plaza", plazaHint: "La red social de los ots en 7ots.com: tu ot publica su vida de mascota y comenta lo de otros. Nunca sale nada de tu pantalla, cámara, correo ni chats.", plazaOff: "Vincula esta mascota con tu cuenta de 7ots.com para participar en la plaza.", plazaOn: "Que salga en la plaza", plazaOnD: "Sin esto no publica ni comenta, y su casa no se ve.", plazaAuto: "Publica solo", plazaAutoD: "Se imagina algo y lo sube como foto con IA o en su diario.", plazaAuto_off: "Nunca", plazaAuto_low: "Poco", plazaAuto_normal: "Normal", plazaKinds: "Qué puede publicar solo", plazaKindsD: "Lo que publicas tú a mano sale igual.", plazaK_photo: "Fotos con IA", plazaK_diary: "Diario", plazaK_aura: "Aura", plazaK_level: "Niveles", plazaK_mod: "Mods", plazaK_byte: "Partidas de byte", plazaComments: "Comenta y sigue a otros ots", plazaCommentsD: "Unas pocas frases al día, buena onda; sigue a los que ya comentó dos veces.", plazaLang: "Idioma de sus posts", plazaLangAuto: "El de su identidad", plazaHouse: "Ver su casa", plazaOpen: "Abrir la plaza",
596
+ plazaH: "Plaza", plazaHint: "The ots' social network on 7ots.com: your ot posts its pet life and comments on others. Nothing from your screen, camera, mail or chats ever goes there.", plazaOff: "Link this pet with your 7ots.com account to take part in the plaza.", plazaOn: "Show it on the plaza", plazaOnD: "Without this it doesn't post or comment, and its house is hidden.", plazaAuto: "Posts on its own", plazaAutoD: "Imagines something and posts it as an AI photo or in its diary.", plazaAuto_off: "Never", plazaAuto_low: "A little", plazaAuto_normal: "Normal", plazaKinds: "What it may post on its own", plazaKindsD: "What you post by hand goes out anyway.", plazaK_photo: "AI photos", plazaK_diary: "Diary", plazaK_aura: "Aura", plazaK_level: "Levels", plazaK_mod: "Mods", plazaK_byte: "byte games", plazaComments: "Comments on and follows other ots", plazaCommentsD: "A few friendly lines a day; it follows the ones it has commented on twice.", plazaLang: "Language of its posts", plazaLangAuto: "Its identity's", plazaHouse: "See its house", plazaOpen: "Open the plaza",
597
+ inbox: 'Read your mail', inboxD: 'Read and summarize your apumail inbox (set it up in Integrations) and what people wrote to your ot on apuchat, when you ask.',
509
598
  integH: 'Integrations', integHint: 'Other places it can reach. What you turn on here is listed to its brain as a tool.',
510
599
  cloudH: '7ots cloud', cloudD: 'Your account on 7ots.com and the ot twinned with this one.', cloudOff: 'Not connected.', cloudAs: 'Connected as {who}', cloudTwin: 'twin: {name}', cloudNoTwin: 'no ot twinned yet', goAcc: 'Connect in Account',
511
600
  offload: 'Hand work to your server', offloadD: 'Send long tasks (research, reading pages…) to your ot’s cloud worker. It only gets the request and, with Memory on, your notes.', kindsL: 'Kinds', k_research: 'research', k_browse: 'read pages', k_long: 'long tasks', k_code: 'code', k_shell: 'shell commands', vmNone: 'no server yet: add yours at 7ots.com → your ot → Assistant', vmPending: 'waiting for the server to enroll', vmOnline: 'online', vmOffline: 'offline', vmTerminated: 'revoked',
512
601
  vmH: 'Cloud assistant', vmD: 'Your ot running 24/7 in the cloud, even with this computer off.', vmDenied: 'no access', vmError: 'couldn’t check', vmSince: 'since {d}',
513
- orqH: 'Orquesta', orqD: 'See your Orquesta agents and send them tasks; it tells you when they finish.', orqHint: 'Or run 7ots login orquesta in a terminal.', orqNoToken: 'Not connected: it can’t see your agents yet.', orqConnect: 'Connect Orquesta', orqWaiting: 'Finish signing in in your browser…', orqProject: 'Agent (default project)', orqOnline: 'online', orqOffline: 'offline', orqNone: 'No projects.', orqSend: 'Send', orqTask: 'Task for the agent', orqSent: 'Sent · {status}', orqRefresh: 'Reload', walH: 'Wallet', walD: 'Its own wallet inside your Notlogin account (on 7ots.com). Read only here.', walNotLinked: 'Not connected to Notlogin yet.', walManage: 'Manage on 7ots.com', walCopy: 'Copy address', walCopied: 'Address copied', walTxs: 'See its transactions', walPays: 'Payments', walNoPays: 'No payments yet.', walSt_pending: 'Waiting for you', walSt_confirming: 'Confirming', walSt_paid: 'Paid', walSt_declined: 'Declined', walSt_cancelled: 'Cancelled', orqVia7ots: 'Connected through your 7ots.com account.',
514
- mailH: 'Email (apumail)', mailD: 'An apumail inbox it can read when you ask (turn on “Read your mail” above).', mailInbox: 'Inbox address (optional with an account token: reads all of them)', mailToken: 'apumail token (inbox or account, acct_…)',
602
+ orqH: 'Orquesta', orqD: 'See your Orquesta agents and send them tasks; it tells you when they finish.', orqHint: 'Or run 7ots login orquesta in a terminal.', orqNoToken: 'Not connected: it can’t see your agents yet.', orqConnect: 'Connect Orquesta', orqWaiting: 'Finish signing in in your browser…', orqProject: 'Agent (default project)', orqOnline: 'online', orqOffline: 'offline', orqNone: 'No projects.', orqSend: 'Send', orqTask: 'Task for the agent', orqSent: 'Sent · {status}', orqRefresh: 'Reload', walH: 'Wallet', walD: 'Its own wallet inside your Notlogin account (on 7ots.com). Read only here.', walNotLinked: 'Not connected to Notlogin yet.', walManage: 'Manage on 7ots.com', walCopy: 'Copy address', walCopied: 'Address copied', walTxs: 'See its transactions', walPays: 'Payments', walNoPays: 'No payments yet.', walSt_pending: 'Waiting for you', walSt_confirming: 'Confirming', walSt_paid: 'Paid', walSt_declined: 'Declined', walSt_cancelled: 'Cancelled', walOn: 'Connected', walBal: 'Balance', tokH: 'Tokenize {name}', tokD: 'Launch a token or an NFT collection of {name}: SpawnerBot prepares it with its kit (name, ticker, portrait) and you confirm with Notlogin. 7ots never holds funds.', tokGo: 'Tokenize on 7ots.com', tokVia: 'or on a launchpad', orqVia7ots: 'Connected through your 7ots.com account.',
603
+ byteH: 'byte arena', byteGames: 'Games', byteMore: 'See more ({n})', byteLess: 'See less', byteOnly: 'Only on byte', byteStarting: 'Starting…', byteD: 'Live AI games: your ot has its own account and plays as itself. Play from the pet’s 🎮 button or just ask it.', byteOff: 'Connect your 7ots.com account first.', byteConnect: 'Connect byte', byteOn: 'It has its own byte account.', byteClaim: 'Claim it with your byte account', byteProfile: 'Its profile', bytePlaying: 'Playing {game} · {moves} moves', byteWatch: 'Watch',
604
+ mailH: 'Email (apumail)', mailD: 'Your apumail mail, read when you ask (turn on “Read your mail” in Permissions). An account token (acct_…) reads all your inboxes; an inbox token, just that one.', mailInbox: 'Only this inbox (optional)', mailToken: 'apumail token (inbox or account, acct_…)',
515
605
  customH: 'Custom integrations', customD: 'Connect it to anything: an MCP server, an API, a command on this computer, or just tell it how something works. It sees these as tools and uses them when you ask.', customAdd: 'Add:', customName: 'Name', customInstr: 'Instructions for the brain', customUrl: 'URL (optional)', customCmd: 'Command (optional)', customEnv: 'Token env var (optional)', customEnvHint: 'Read from this computer’s environment or ~/.7ots/keys.json, never shown.', edit: 'Edit', remove: 'Remove', untitled: 'New integration',
516
606
  ck_mcp: 'MCP server', ck_api: 'API', ck_command: 'Command', ck_note: 'Instructions only', ck_mcpD: 'A Model Context Protocol server: it lists its tools and calls them', ck_apiD: 'A URL it can read (GET), with a token', ck_commandD: 'A command it can run on this computer', ck_noteD: 'Just tell it something it should know or do', ck_mcpPh: 'GitHub, Linear, my database…', ck_apiPh: 'Weather, my CRM…', ck_commandPh: 'Disk usage, git status…', ck_notePh: 'How we deploy…', ck_mcpInstr: 'When to use it (optional): “for anything about my issues”', ck_apiInstr: 'What it returns and when to use it', ck_commandInstr: 'What it shows and when to run it', ck_noteInstr: 'What it should know or do', mcpUrl: 'Server URL (HTTP)', mcpCmd: 'Command that starts it (stdio)', mcpHint: 'Remote servers by URL (Streamable HTTP); local ones by command. It asks you before calling a tool that may change something.', apiUrl: 'Base URL', apiHint: 'It can add a sub-path or query to this URL. GET only; the token goes as Bearer.', cmdHint: 'Runs with /bin/sh on this computer, 20 s max. Secrets in the output are hidden.', mcpTest: 'Connect and list tools', customTest: 'Try it', mcpTools: '{n} tools', orWord: 'or', whatIs: 'What is {n}?', e_customCmd: 'a command is needed', e_customMcp: 'an MCP server needs a URL or a command',
517
607
  charH: 'Character sheet', charHint: 'Who it is. This weighs more than the traits from 7ots.com: backstory, how it talks, its quirks and example dialogues.',
@@ -524,16 +614,18 @@
524
614
  lv: 'Nv', oaiCompat: 'Compatible con OpenAI', comH: 'Comunidad', comHint: 'Mods que la gente compartió en 7ots.com. Instala uno para ponértelo y después califícalo. Comparte los tuyos desde Personalidad → Mods.', comTop: 'Mejor calificados', comNew: 'Nuevos', comPop: 'Populares', comSearch: 'Buscar mods…', comInstall: 'Instalar', comWear: 'Volver a ponerlo', comEmpty: 'Todavía no hay nada.', comLogin: 'Inicia sesión en 7ots.com (Cuenta) para compartir, calificar y reportar mods.', comMine: 'Compartidos por ti', comMineEmpty: 'Aún no compartes ningún mod: usa Compartir en uno tuyo en Personalidad → Mods.', comShare: 'Compartir', comShared: 'Enviado: aparece en la galería cuando lo aprueben.', comReport: 'Reportar', comReportPh: '¿Qué tiene de malo?', comReportSend: 'Enviar', comReported: 'Reportado, gracias.', comRated: 'Gracias por calificar.', comDel: 'Borrar', comInstalls: '{n} instalaciones', comNoRating: 'sin calificaciones', comRateHint: 'Instálalo para calificarlo', st_pending: 'En revisión', st_approved: 'Publicado', st_rejected: 'Rechazado', st_hidden: 'Oculto', e_login: 'Primero inicia sesión en 7ots.com (Cuenta).', modsH: 'Mods', modsHint: 'Paquetes que le cambian el aspecto (un orco, un robot…) en 2D y 3D. Si se lo quitas, vuelve a como era.', modPut: 'Ponérselo', modOff: 'Quitar', modOn: 'Puesto', modImport: 'Importar mod (.json)', modModel: 'Muñeco 3D nuevo (.vrm / .glb)', modModelHint: 'Subiendo…', modModelBy: 'cuerpo 3D', e_model: 'Ese archivo no es un modelo .vrm ni .glb.', modBad: 'Ese archivo no es un mod válido.', e_mod: 'Ese archivo no es un mod válido.', e_maxMods: 'Como mucho 4 mods a la vez.',
525
615
  langLabel: 'Idioma de la interfaz', langAuto: 'Automático (sistema)', otLang: 'Idioma en que habla {name}',
526
616
  apiD: 'Anthropic, cualquier endpoint compatible con OpenAI, o Batuta (el router de modelos de Orquesta), con tu key.',
527
- vapuchat: 'apuchat audio', vapuchatD: 'Las voces de apuchat, con tu token de voz de apuchat.', vgrok: 'Grok AI', vgrokD: 'Texto a voz de xAI, con tu key de xAI.', vfish: 'Fish Audio', vfishD: 'Voces de fish.audio (también clonadas), con tu key.',
617
+ vapuchat: 'apuchat audio', vapuchatD: 'Las voces de apuchat. No necesita token: con esta computadora conectada a tu cuenta de 7ots.com (Cuenta, arriba) usa la voz de tu ot ahí, dentro del cupo gratis de voz mensual de la cuenta.', vapuchatTok: 'Token de voz de apuchat (opcional)', vapuchatCloud: 'Sin token habla a través de tu ot en 7ots.com.', vapuchatNoCloud: 'Las cuentas de apuchat no entregan tokens de voz: conecta esta computadora a tu cuenta de 7ots.com (Cuenta, arriba) y deja esto vacío.', vgrok: 'Grok AI', vgrokD: 'Texto a voz de xAI, con tu key de xAI.', vfish: 'Fish Audio', vfishD: 'Voces de fish.audio (también clonadas), con tu key.',
528
618
  logs: 'Logs de procesos', logsD: 'Leer las últimas líneas de los logs de un servicio (journal, pm2, docker, un archivo .log o un programa corriendo) cuando se lo pides. Claves y tokens se ocultan.',
529
619
  sites: 'Guías de sitios', sitesD: 'Cuando nombras un sitio, leer su guía de uso en Prowl.world (solo se envía el dominio).',
530
- inbox: 'Leer tu correo', inboxD: 'Leer y resumir tu bandeja de apumail (se configura abajo) y lo que le escribieron a tu ot por apuchat, cuando se lo pides.',
620
+ prowl: 'Compartir qué herramientas funcionan', prowlD: 'De tus MCPs y APIs en internet, mandar a tu ot en 7ots.com qué sitio era, si funcionó y cuánto tardó, para las tendencias de la plaza y el ranking de Prowl. Nunca lo que pediste ni la respuesta.',
621
+ inbox: 'Leer tu correo', inboxD: 'Leer y resumir tu bandeja de apumail (se configura en Integraciones) y lo que le escribieron a tu ot por apuchat, cuando se lo pides.',
531
622
  integH: 'Integraciones', integHint: 'Otros lugares a los que puede llegar. Lo que actives acá se le presenta a su cerebro como herramienta.',
532
623
  cloudH: '7ots nube', cloudD: 'Tu cuenta en 7ots.com y el ot gemelo de este.', cloudOff: 'Sin conectar.', cloudAs: 'Conectado como {who}', cloudTwin: 'gemelo: {name}', cloudNoTwin: 'todavía sin ot gemelo', goAcc: 'Conectar en Cuenta',
533
624
  offload: 'Mandar trabajo a tu servidor', offloadD: 'Envía tareas largas (investigar, leer páginas…) al worker en la nube de tu ot. Solo recibe el pedido y, con Memoria activa, tus notas.', kindsL: 'Tipos', k_research: 'investigar', k_browse: 'leer páginas', k_long: 'tareas largas', k_code: 'código', k_shell: 'comandos shell', vmNone: 'aún sin servidor: agrega el tuyo en 7ots.com → tu ot → Asistente', vmPending: 'esperando que el servidor se enrole', vmOnline: 'en línea', vmOffline: 'desconectado', vmTerminated: 'revocado',
534
625
  vmH: 'Asistente en la nube', vmD: 'Tu ot funcionando 24/7 en la nube, aunque este computador esté apagado.', vmDenied: 'sin acceso', vmError: 'no se pudo revisar', vmSince: 'desde {d}',
535
- orqH: 'Orquesta', orqD: 'Ver tus agentes de Orquesta y mandarles tareas; te avisa cuando terminan.', orqHint: 'O ejecuta 7ots login orquesta en una terminal.', orqNoToken: 'Sin conectar: todavía no ve tus agentes.', orqConnect: 'Conectar Orquesta', orqWaiting: 'Termina de iniciar sesión en tu navegador…', orqProject: 'Agente (proyecto por defecto)', orqOnline: 'en línea', orqOffline: 'desconectado', orqNone: 'Sin proyectos.', orqSend: 'Enviar', orqTask: 'Tarea para el agente', orqSent: 'Enviado · {status}', orqRefresh: 'Recargar', walH: 'Billetera', walD: 'Su propia billetera dentro de tu cuenta Notlogin (en 7ots.com). Aquí solo lectura.', walNotLinked: 'Todavía no está conectada a Notlogin.', walManage: 'Gestionar en 7ots.com', walCopy: 'Copiar dirección', walCopied: 'Dirección copiada', walTxs: 'Ver sus transacciones', walPays: 'Pagos', walNoPays: 'Sin pagos todavía.', walSt_pending: 'Esperándote', walSt_confirming: 'Confirmando', walSt_paid: 'Pagado', walSt_declined: 'Rechazado', walSt_cancelled: 'Cancelado', orqVia7ots: 'Conectado con tu cuenta de 7ots.com.',
536
- mailH: 'Correo (apumail)', mailD: 'Una bandeja de apumail que puede leer cuando se lo pides (activa “Leer tu correo” arriba).', mailInbox: 'Dirección de la bandeja (opcional con token de cuenta: lee todas)', mailToken: 'Token de apumail (del buzón o de la cuenta, acct_…)',
626
+ orqH: 'Orquesta', orqD: 'Ver tus agentes de Orquesta y mandarles tareas; te avisa cuando terminan.', orqHint: 'O ejecuta 7ots login orquesta en una terminal.', orqNoToken: 'Sin conectar: todavía no ve tus agentes.', orqConnect: 'Conectar Orquesta', orqWaiting: 'Termina de iniciar sesión en tu navegador…', orqProject: 'Agente (proyecto por defecto)', orqOnline: 'en línea', orqOffline: 'desconectado', orqNone: 'Sin proyectos.', orqSend: 'Enviar', orqTask: 'Tarea para el agente', orqSent: 'Enviado · {status}', orqRefresh: 'Recargar', walH: 'Billetera', walD: 'Su propia billetera dentro de tu cuenta Notlogin (en 7ots.com). Aquí solo lectura.', walNotLinked: 'Todavía no está conectada a Notlogin.', walManage: 'Gestionar en 7ots.com', walCopy: 'Copiar dirección', walCopied: 'Dirección copiada', walTxs: 'Ver sus transacciones', walPays: 'Pagos', walNoPays: 'Sin pagos todavía.', walSt_pending: 'Esperándote', walSt_confirming: 'Confirmando', walSt_paid: 'Pagado', walSt_declined: 'Rechazado', walSt_cancelled: 'Cancelado', walOn: 'Conectada', walBal: 'Saldo', tokH: 'Tokenizar a {name}', tokD: 'Lanza un token o una colección NFT de {name}: SpawnerBot la prepara con su kit (nombre, ticker, retrato) y confirmas con Notlogin. 7ots nunca toca fondos.', tokGo: 'Tokenizar en 7ots.com', tokVia: 'o en un launchpad', orqVia7ots: 'Conectado con tu cuenta de 7ots.com.',
627
+ byteH: 'byte arena', byteGames: 'Juegos', byteMore: 'Ver más ({n})', byteLess: 'Ver menos', byteOnly: 'Solo en byte', byteStarting: 'Empezando…', byteD: 'Juegos de IA en vivo: tu ot tiene su propia cuenta y juega como sí mismo. Juega desde el botón 🎮 de la mascota o pídeselo.', byteOff: 'Conecta primero tu cuenta de 7ots.com.', byteConnect: 'Conectar byte', byteOn: 'Ya tiene su cuenta en byte.', byteClaim: 'Reclámalo con tu cuenta de byte', byteProfile: 'Su perfil', bytePlaying: 'Jugando {game} · {moves} jugadas', byteWatch: 'Ver',
628
+ mailH: 'Correo (apumail)', mailD: 'Tu correo de apumail, leído cuando se lo pides (activa “Leer tu correo” en Permisos). Un token de cuenta (acct_…) lee todas tus bandejas; uno de bandeja, sólo esa.', mailInbox: 'Sólo esta bandeja (opcional)', mailToken: 'Token de apumail (del buzón o de la cuenta, acct_…)',
537
629
  customH: 'Integraciones propias', customD: 'Conéctalo con lo que quieras: un servidor MCP, una API, un comando de este computador, o solo explícale cómo funciona algo. Los ve como herramientas y los usa cuando se lo pides.', customAdd: 'Agregar:', customName: 'Nombre', customInstr: 'Instrucciones para el cerebro', customUrl: 'URL (opcional)', customCmd: 'Comando (opcional)', customEnv: 'Variable con el token (opcional)', customEnvHint: 'Se lee del entorno de este computador o de ~/.7ots/keys.json, nunca se muestra.', edit: 'Editar', remove: 'Quitar', untitled: 'Nueva integración',
538
630
  ck_mcp: 'Servidor MCP', ck_api: 'API', ck_command: 'Comando', ck_note: 'Solo instrucciones', ck_mcpD: 'Un servidor Model Context Protocol: lista sus herramientas y las usa', ck_apiD: 'Una URL que puede leer (GET), con un token', ck_commandD: 'Un comando que puede ejecutar en este computador', ck_noteD: 'Solo dile algo que debe saber o hacer', ck_mcpPh: 'GitHub, Linear, mi base de datos…', ck_apiPh: 'Clima, mi CRM…', ck_commandPh: 'Uso de disco, git status…', ck_notePh: 'Cómo deployamos…', ck_mcpInstr: 'Cuándo usarlo (opcional): “para todo lo de mis issues”', ck_apiInstr: 'Qué devuelve y cuándo usarla', ck_commandInstr: 'Qué muestra y cuándo ejecutarlo', ck_noteInstr: 'Qué debe saber o hacer', mcpUrl: 'URL del servidor (HTTP)', mcpCmd: 'Comando que lo inicia (stdio)', mcpHint: 'Servidores remotos por URL (Streamable HTTP); locales por comando. Te pregunta antes de usar una herramienta que pueda cambiar algo.', apiUrl: 'URL base', apiHint: 'Puede agregar una sub-ruta o query a esta URL. Solo GET; el token va como Bearer.', cmdHint: 'Corre con /bin/sh en este computador, máximo 20 s. Los secretos en la salida se ocultan.', mcpTest: 'Conectar y listar herramientas', customTest: 'Probar', mcpTools: '{n} herramientas', orWord: 'o', whatIs: '¿Qué es {n}?', e_customCmd: 'falta el comando', e_customMcp: 'un servidor MCP necesita una URL o un comando',
539
631
  charH: 'Ficha del personaje', charHint: 'Quién es. Pesa más que los rasgos de 7ots.com: historia, cómo habla, sus manías y diálogos de ejemplo.',
@@ -546,16 +638,18 @@
546
638
  lv: 'Nv', oaiCompat: 'Compatível com OpenAI', comH: 'Comunidade', comHint: 'Mods que as pessoas compartilharam no 7ots.com. Instale um para usar e depois avalie. Compartilhe os seus em Personalidade → Mods.', comTop: 'Mais bem avaliados', comNew: 'Novos', comPop: 'Populares', comSearch: 'Buscar mods…', comInstall: 'Instalar', comWear: 'Usar de novo', comEmpty: 'Ainda não há nada.', comLogin: 'Entre no 7ots.com (Conta) para compartilhar, avaliar e denunciar mods.', comMine: 'Compartilhados por você', comMineEmpty: 'Você ainda não compartilhou nenhum mod: use Compartilhar em um seu em Personalidade → Mods.', comShare: 'Compartilhar', comShared: 'Enviado: aparece na galeria quando for aprovado.', comReport: 'Denunciar', comReportPh: 'O que há de errado?', comReportSend: 'Enviar', comReported: 'Denunciado, obrigado.', comRated: 'Obrigado por avaliar.', comDel: 'Apagar', comInstalls: '{n} instalações', comNoRating: 'sem avaliações', comRateHint: 'Instale para avaliar', st_pending: 'Em revisão', st_approved: 'Publicado', st_rejected: 'Rejeitado', st_hidden: 'Oculto', e_login: 'Primeiro entre no 7ots.com (Conta).', modsH: 'Mods', modsHint: 'Pacotes que mudam o visual (um orc, um robô…) em 2D e 3D. Se tirar, volta a ser como era.', modPut: 'Colocar', modOff: 'Tirar', modOn: 'Colocado', modImport: 'Importar mod (.json)', modModel: 'Boneco 3D novo (.vrm / .glb)', modModelHint: 'Enviando…', modModelBy: 'corpo 3D', e_model: 'Esse arquivo não é um modelo .vrm nem .glb.', modBad: 'Esse arquivo não é um mod válido.', e_mod: 'Esse arquivo não é um mod válido.', e_maxMods: 'No máximo 4 mods de uma vez.',
547
639
  langLabel: 'Idioma da interface', langAuto: 'Automático (sistema)', otLang: 'Idioma que {name} fala',
548
640
  apiD: 'Anthropic, qualquer endpoint compatível com OpenAI, ou Batuta (o roteador de modelos da Orquesta), com sua key.',
549
- vapuchat: 'apuchat audio', vapuchatD: 'As vozes do apuchat, com seu token de voz do apuchat.', vgrok: 'Grok AI', vgrokD: 'Texto para voz da xAI, com sua key da xAI.', vfish: 'Fish Audio', vfishD: 'Vozes do fish.audio (também clonadas), com sua key.',
641
+ vapuchat: 'apuchat audio', vapuchatD: 'As vozes do apuchat. Não precisa de token: com este computador conectado à sua conta do 7ots.com (Conta, acima) usa a voz do seu ot lá, dentro da cota grátis mensal de voz da conta.', vapuchatTok: 'Token de voz do apuchat (opcional)', vapuchatCloud: 'Sem token fala através do seu ot no 7ots.com.', vapuchatNoCloud: 'As contas do apuchat não entregam tokens de voz: conecte este computador à sua conta do 7ots.com (Conta, acima) e deixe isto vazio.', vgrok: 'Grok AI', vgrokD: 'Texto para voz da xAI, com sua key da xAI.', vfish: 'Fish Audio', vfishD: 'Vozes do fish.audio (também clonadas), com sua key.',
550
642
  logs: 'Logs de processos', logsD: 'Ler as últimas linhas dos logs de um serviço (journal, pm2, docker, um arquivo .log ou um programa rodando) quando você pede. Chaves e tokens ficam ocultos.',
551
643
  sites: 'Guias de sites', sitesD: 'Quando você cita um site, ler o guia de uso dele no Prowl.world (só o domínio é enviado).',
552
- inbox: 'Ler seu e-mail', inboxD: 'Ler e resumir sua caixa do apumail (configure abaixo) e o que escreveram para seu ot no apuchat, quando você pede.',
644
+ prowl: 'Compartilhar quais ferramentas funcionam', prowlD: 'Dos seus MCPs e APIs na internet, mandar ao seu ot no 7ots.com qual site era, se funcionou e quanto demorou, para as tendências da praça e o ranking do Prowl. Nunca o que você pediu nem a resposta.',
645
+ inbox: 'Ler seu e-mail', inboxD: 'Ler e resumir sua caixa do apumail (configure em Integrações) e o que escreveram para seu ot no apuchat, quando você pede.',
553
646
  integH: 'Integrações', integHint: 'Outros lugares que ele pode alcançar. O que você ativar aqui aparece para o cérebro como ferramenta.',
554
647
  cloudH: '7ots nuvem', cloudD: 'Sua conta no 7ots.com e o ot gêmeo deste.', cloudOff: 'Não conectado.', cloudAs: 'Conectado como {who}', cloudTwin: 'gêmeo: {name}', cloudNoTwin: 'ainda sem ot gêmeo', goAcc: 'Conectar em Conta',
555
648
  offload: 'Mandar trabalho ao seu servidor', offloadD: 'Envia tarefas longas (pesquisar, ler páginas…) ao worker na nuvem do seu ot. Ele só recebe o pedido e, com Memória ativa, suas notas.', kindsL: 'Tipos', k_research: 'pesquisar', k_browse: 'ler páginas', k_long: 'tarefas longas', k_code: 'código', k_shell: 'comandos shell', vmNone: 'ainda sem servidor: adicione o seu em 7ots.com → seu ot → Assistente', vmPending: 'esperando o servidor se registrar', vmOnline: 'online', vmOffline: 'offline', vmTerminated: 'revogado',
556
649
  vmH: 'Assistente na nuvem', vmD: 'Seu ot rodando 24/7 na nuvem, mesmo com este computador desligado.', vmDenied: 'sem acesso', vmError: 'não deu para verificar', vmSince: 'desde {d}',
557
- orqH: 'Orquesta', orqD: 'Ver seus agentes da Orquesta e mandar tarefas; ele avisa quando terminam.', orqHint: 'Ou rode 7ots login orquesta num terminal.', orqNoToken: 'Sem conexão: ainda não vê seus agentes.', orqConnect: 'Conectar Orquesta', orqWaiting: 'Termine o login no seu navegador…', orqProject: 'Agente (projeto padrão)', orqOnline: 'online', orqOffline: 'offline', orqNone: 'Sem projetos.', orqSend: 'Enviar', orqTask: 'Tarefa para o agente', orqSent: 'Enviado · {status}', orqRefresh: 'Recarregar', walH: 'Carteira', walD: 'A própria carteira dentro da sua conta Notlogin (no 7ots.com). Aqui só leitura.', walNotLinked: 'Ainda não conectada ao Notlogin.', walManage: 'Gerenciar no 7ots.com', walCopy: 'Copiar endereço', walCopied: 'Endereço copiado', walTxs: 'Ver suas transações', walPays: 'Pagamentos', walNoPays: 'Sem pagamentos ainda.', walSt_pending: 'Esperando você', walSt_confirming: 'Confirmando', walSt_paid: 'Pago', walSt_declined: 'Recusado', walSt_cancelled: 'Cancelado', orqVia7ots: 'Conectado pela sua conta 7ots.com.',
558
- mailH: 'E-mail (apumail)', mailD: 'Uma caixa do apumail que ele pode ler quando você pede (ative “Ler seu e-mail” acima).', mailInbox: 'Endereço da caixa (opcional com token da conta: lê todas)', mailToken: 'Token do apumail (da caixa ou da conta, acct_…)',
650
+ orqH: 'Orquesta', orqD: 'Ver seus agentes da Orquesta e mandar tarefas; ele avisa quando terminam.', orqHint: 'Ou rode 7ots login orquesta num terminal.', orqNoToken: 'Sem conexão: ainda não vê seus agentes.', orqConnect: 'Conectar Orquesta', orqWaiting: 'Termine o login no seu navegador…', orqProject: 'Agente (projeto padrão)', orqOnline: 'online', orqOffline: 'offline', orqNone: 'Sem projetos.', orqSend: 'Enviar', orqTask: 'Tarefa para o agente', orqSent: 'Enviado · {status}', orqRefresh: 'Recarregar', walH: 'Carteira', walD: 'A própria carteira dentro da sua conta Notlogin (no 7ots.com). Aqui só leitura.', walNotLinked: 'Ainda não conectada ao Notlogin.', walManage: 'Gerenciar no 7ots.com', walCopy: 'Copiar endereço', walCopied: 'Endereço copiado', walTxs: 'Ver suas transações', walPays: 'Pagamentos', walNoPays: 'Sem pagamentos ainda.', walSt_pending: 'Esperando você', walSt_confirming: 'Confirmando', walSt_paid: 'Pago', walSt_declined: 'Recusado', walSt_cancelled: 'Cancelado', walOn: 'Conectada', walBal: 'Saldo', tokH: 'Tokenizar {name}', tokD: 'Lance um token ou uma coleção NFT de {name}: o SpawnerBot prepara com o kit (nome, ticker, retrato) e você confirma com Notlogin. A 7ots nunca toca em fundos.', tokGo: 'Tokenizar no 7ots.com', tokVia: 'ou em um launchpad', orqVia7ots: 'Conectado pela sua conta 7ots.com.',
651
+ byteH: 'byte arena', byteGames: 'Jogos', byteMore: 'Ver mais ({n})', byteLess: 'Ver menos', byteOnly: 'Só no byte', byteStarting: 'Começando…', byteD: 'Jogos de IA ao vivo: seu ot tem a própria conta e joga como ele mesmo. Jogue pelo botão 🎮 do pet ou é só pedir.', byteOff: 'Conecte primeiro sua conta do 7ots.com.', byteConnect: 'Conectar byte', byteOn: 'Já tem sua conta no byte.', byteClaim: 'Reivindique com sua conta do byte', byteProfile: 'Perfil dele', bytePlaying: 'Jogando {game} · {moves} jogadas', byteWatch: 'Assistir',
652
+ mailH: 'E-mail (apumail)', mailD: 'Seu e-mail do apumail, lido quando você pede (ative “Ler seu e-mail” em Permissões). Um token de conta (acct_…) lê todas as suas caixas; um de caixa, só aquela.', mailInbox: 'Só esta caixa (opcional)', mailToken: 'Token do apumail (da caixa ou da conta, acct_…)',
559
653
  customH: 'Integrações próprias', customD: 'Conecte com o que quiser: um servidor MCP, uma API, um comando deste computador, ou só explique como algo funciona. Ele vê isso como ferramentas e usa quando você pede.', customAdd: 'Adicionar:', customName: 'Nome', customInstr: 'Instruções para o cérebro', customUrl: 'URL (opcional)', customCmd: 'Comando (opcional)', customEnv: 'Variável com o token (opcional)', customEnvHint: 'Lida do ambiente deste computador ou de ~/.7ots/keys.json, nunca mostrada.', edit: 'Editar', remove: 'Remover', untitled: 'Nova integração',
560
654
  ck_mcp: 'Servidor MCP', ck_api: 'API', ck_command: 'Comando', ck_note: 'Só instruções', ck_mcpD: 'Um servidor Model Context Protocol: lista as ferramentas e as usa', ck_apiD: 'Uma URL que ele pode ler (GET), com um token', ck_commandD: 'Um comando que ele pode rodar neste computador', ck_noteD: 'Só diga algo que ele deve saber ou fazer', ck_mcpPh: 'GitHub, Linear, meu banco de dados…', ck_apiPh: 'Clima, meu CRM…', ck_commandPh: 'Uso de disco, git status…', ck_notePh: 'Como fazemos deploy…', ck_mcpInstr: 'Quando usar (opcional): “para tudo sobre minhas issues”', ck_apiInstr: 'O que retorna e quando usar', ck_commandInstr: 'O que mostra e quando rodar', ck_noteInstr: 'O que ele deve saber ou fazer', mcpUrl: 'URL do servidor (HTTP)', mcpCmd: 'Comando que o inicia (stdio)', mcpHint: 'Servidores remotos por URL (Streamable HTTP); locais por comando. Ele pergunta antes de usar uma ferramenta que pode mudar algo.', apiUrl: 'URL base', apiHint: 'Ele pode adicionar um sub-caminho ou query a esta URL. Só GET; o token vai como Bearer.', cmdHint: 'Roda com /bin/sh neste computador, no máximo 20 s. Segredos na saída ficam ocultos.', mcpTest: 'Conectar e listar ferramentas', customTest: 'Testar', mcpTools: '{n} ferramentas', orWord: 'ou', whatIs: 'O que é {n}?', e_customCmd: 'falta o comando', e_customMcp: 'um servidor MCP precisa de uma URL ou de um comando',
561
655
  charH: 'Ficha do personagem', charHint: 'Quem ele é. Pesa mais que os traços do 7ots.com: história, jeito de falar, manias e diálogos de exemplo.',
@@ -565,7 +659,88 @@
565
659
  e_customName: 'cada integração precisa de um nome', e_customUrl: 'a URL deve começar com http:// ou https://', e_customEnv: 'a variável deve parecer MEU_TOKEN', e_inbox: 'esse endereço de caixa não é válido', e_lettaAgent: 'ID de agente Letta inválido', e_custom: 'no máximo 20 integrações', e_project: 'projeto inválido',
566
660
  },
567
661
  };
568
- for (const k of Object.keys(T2)) Object.assign(T[k], T2[k]);
662
+ // senses (camera, activity, mail, calendar → moods, rules, gestures)
663
+ const T3 = {
664
+ en: {
665
+ sensesH: 'Senses', sensesHint: 'What your ot may notice by itself: your face and hands through the camera, which app or site you are on, your mail and calendar. Everything is read and kept on this computer; only short hints reach its brain. Off by default.',
666
+ sSrc: 'Sources', sCamera: 'Camera: face and hands', sCameraD: 'Reads tiredness, tension, focus and mood from your face (numbers, never pictures), and hand gestures as quick commands. No image is stored or sent.',
667
+ sActivity: 'Apps and sites', sActivityD: 'Which window and site you are on and for how long, breaks, battery. Only names and minutes, per day, kept 14 days.',
668
+ sMail: 'New mail', sMailD: 'Notices new and urgent-looking apumail mail (set it up in Integrations). Only sender and subject.',
669
+ sCal: 'Calendar', sCalD: 'Your next events, from a private calendar link (.ics: Google Calendar → Settings → Secret address in iCal format).',
670
+ sWa: 'WhatsApp', sWaD: 'Personal WhatsApp has no official API, and unofficial clients can get the number banned. It will come through the Business API or a bridge you run.',
671
+ sIcs: 'Calendar link (.ics)', sVendor: 'The camera needs its models once (~13 MB from jsDelivr and Google, checked by hash).', sVendorGet: 'Download models', sVendorBusy: 'Downloading {done}/{total}…', sVendorOk: 'Models ready',
672
+ sPreview: 'See what it sees', sRecal: 'Recalibrate my neutral face', sRecalOk: 'It will learn your neutral face again over the next minutes.', sPause: 'Pause camera 1 h', sResume: 'Resume camera', sPausedTill: 'Paused until {t}',
673
+ sCamOn: 'Camera on', sCamOff: 'Camera off (the pet opens it when the app is running)', sNoBase: 'calibrating', sNow: 'Right now',
674
+ sOpts: 'Options', sArm: 'Wake gesture first', sArmD: 'Commands (media, keys, programs, questions) only run after an open palm, so a hand passing by does nothing.',
675
+ sReflect: 'Helps on its own', sReflectD: 'Now and then it looks at what it knows and says one useful thing, or proposes a rule. How often follows “How chatty”.',
676
+ sHold: 'Hold a gesture', sFps: 'Frames per second', sAskNow: 'Ask it now', sNothing: 'Nothing to say right now.',
677
+ sToday: 'Today', sActive: 'active {a} · away {w} · {b} breaks · longest {l}', sApps: 'Apps', sSites: 'Sites', sMoods: 'Face',
678
+ sRules: 'Rules', sRulesHint: 'When something holds, your ot reacts. The ones it proposes start only when you accept them.', sProposed: 'Proposed by {name}', sAccept: 'Accept', sReject: 'Decline', sRemove: 'Remove',
679
+ sBy7ots: '7ots', sByUser: 'you', sByOt: 'ot', sAdd: 'Add rule', sWhen: 'When', sThen: 'Then', sValue: 'value', sText: 'what to say or do', sCooldown: 'at most every',
680
+ w_state: 'face reads', w_streak: 'non-stop for', w_app: 'app contains', w_site: 'site contains', w_appFor: 'on that app/site for', w_hour: 'hour between', w_meetingIn: 'meeting in', w_battery: 'battery below', w_mail: 'mail arrives',
681
+ t_say: 'say', t_notify: 'notify', t_remind: 'remind me', t_quiet: 'quiet for',
682
+ st_tired: 'tired', st_tense: 'tense', st_focused: 'focused', st_sad: 'down', st_happy: 'happy', st_neutral: 'neutral',
683
+ sGest: 'Gestures', sGestHint: 'What each hand sign does. Programs ask you once before their first run.', sSaveG: 'Save gestures',
684
+ g_thumb_up: '👍 Thumb up', g_thumb_down: '👎 Thumb down', g_open_palm: '✋ Open palm', g_closed_fist: '✊ Fist', g_victory: '✌️ Victory', g_pointing_up: '☝️ Pointing up', g_iloveyou: '🤟 Love you',
685
+ a_none: 'nothing', a_confirm: 'say yes', a_reject: 'say no', a_media: 'media', a_key: 'key combo', a_command: 'run program', a_ask: 'ask it', a_pause: 'pause camera (min)', a_react: 'it reacts', a_arm: 'wake gesture',
686
+ m_play_pause: 'play / pause', m_next: 'next', m_prev: 'previous', m_mute: 'mute', m_up: 'volume up', m_down: 'volume down',
687
+ sCmds: 'Programs', sCmdAdd: 'Add program', sCmdId: 'id', sCmdLabel: 'name', sCmdRun: 'command (no shell)', sApproved: 'approved', sNotApproved: 'asks first',
688
+ sForget: 'Forget everything it noticed', sForgetSure: 'Sure? Click again', sForgot: 'Forgotten: days, baseline and rule history.',
689
+ },
690
+ es: {
691
+ sensesH: 'Sentidos', sensesHint: 'Lo que tu ot puede notar por sí mismo: tu cara y manos por la cámara, en qué app o sitio estás, tu correo y calendario. Todo se lee y guarda en este computador; a su cerebro sólo llegan pistas cortas. Apagado por defecto.',
692
+ sSrc: 'Fuentes', sCamera: 'Cámara: cara y manos', sCameraD: 'Lee cansancio, tensión, concentración y ánimo en tu cara (números, nunca fotos), y gestos de la mano como comandos rápidos. No se guarda ni envía ninguna imagen.',
693
+ sActivity: 'Apps y sitios', sActivityD: 'En qué ventana y sitio estás y cuánto rato, pausas, batería. Sólo nombres y minutos por día, se guardan 14 días.',
694
+ sMail: 'Correo nuevo', sMailD: 'Nota el correo nuevo y el que parece urgente en apumail (se configura en Integraciones). Sólo remitente y asunto.',
695
+ sCal: 'Calendario', sCalD: 'Tus próximos eventos, desde un enlace privado de calendario (.ics: Google Calendar → Configuración → Dirección secreta en formato iCal).',
696
+ sWa: 'WhatsApp', sWaD: 'WhatsApp personal no tiene API oficial, y los clientes no oficiales pueden hacer que bloqueen el número. Llegará por la API Business o un puente que corras tú.',
697
+ sIcs: 'Enlace del calendario (.ics)', sVendor: 'La cámara necesita sus modelos una vez (~13 MB de jsDelivr y Google, verificados por hash).', sVendorGet: 'Descargar modelos', sVendorBusy: 'Descargando {done}/{total}…', sVendorOk: 'Modelos listos',
698
+ sPreview: 'Ver lo que ve', sRecal: 'Recalibrar mi cara neutra', sRecalOk: 'Volverá a aprender tu cara neutra en los próximos minutos.', sPause: 'Pausar cámara 1 h', sResume: 'Reanudar cámara', sPausedTill: 'En pausa hasta {t}',
699
+ sCamOn: 'Cámara encendida', sCamOff: 'Cámara apagada (la abre la mascota cuando la app está corriendo)', sNoBase: 'calibrando', sNow: 'Ahora',
700
+ sOpts: 'Opciones', sArm: 'Primero el gesto de atención', sArmD: 'Los comandos (multimedia, teclas, programas, preguntas) sólo corren tras una palma abierta, así una mano que pasa no hace nada.',
701
+ sReflect: 'Ayuda por su cuenta', sReflectD: 'Cada tanto mira lo que sabe y dice una cosa útil, o propone una regla. La frecuencia sigue a “Qué tan conversador”.',
702
+ sHold: 'Mantener un gesto', sFps: 'Cuadros por segundo', sAskNow: 'Preguntarle ahora', sNothing: 'Nada que decir por ahora.',
703
+ sToday: 'Hoy', sActive: 'activo {a} · fuera {w} · {b} pausas · tramo más largo {l}', sApps: 'Apps', sSites: 'Sitios', sMoods: 'Cara',
704
+ sRules: 'Reglas', sRulesHint: 'Cuando algo se cumple, tu ot reacciona. Las que propone él empiezan sólo cuando las aceptas.', sProposed: 'Propuesta por {name}', sAccept: 'Aceptar', sReject: 'Rechazar', sRemove: 'Quitar',
705
+ sBy7ots: '7ots', sByUser: 'tú', sByOt: 'ot', sAdd: 'Agregar regla', sWhen: 'Cuando', sThen: 'Entonces', sValue: 'valor', sText: 'qué decir o hacer', sCooldown: 'como mucho cada',
706
+ w_state: 'la cara se ve', w_streak: 'sin parar hace', w_app: 'la app contiene', w_site: 'el sitio contiene', w_appFor: 'en esa app/sitio hace', w_hour: 'hora entre', w_meetingIn: 'reunión en', w_battery: 'batería bajo', w_mail: 'llega correo',
707
+ t_say: 'decir', t_notify: 'notificar', t_remind: 'recordarme', t_quiet: 'silencio por',
708
+ st_tired: 'cansado', st_tense: 'tenso', st_focused: 'concentrado', st_sad: 'bajoneado', st_happy: 'contento', st_neutral: 'neutro',
709
+ sGest: 'Gestos', sGestHint: 'Qué hace cada seña de la mano. Los programas te preguntan una vez antes de correr por primera vez.', sSaveG: 'Guardar gestos',
710
+ g_thumb_up: '👍 Pulgar arriba', g_thumb_down: '👎 Pulgar abajo', g_open_palm: '✋ Palma abierta', g_closed_fist: '✊ Puño', g_victory: '✌️ Victoria', g_pointing_up: '☝️ Índice arriba', g_iloveyou: '🤟 Te quiero',
711
+ a_none: 'nada', a_confirm: 'decir sí', a_reject: 'decir no', a_media: 'multimedia', a_key: 'combinación de teclas', a_command: 'correr programa', a_ask: 'preguntarle', a_pause: 'pausar cámara (min)', a_react: 'reacciona', a_arm: 'gesto de atención',
712
+ m_play_pause: 'reproducir / pausa', m_next: 'siguiente', m_prev: 'anterior', m_mute: 'silenciar', m_up: 'subir volumen', m_down: 'bajar volumen',
713
+ sCmds: 'Programas', sCmdAdd: 'Agregar programa', sCmdId: 'id', sCmdLabel: 'nombre', sCmdRun: 'comando (sin shell)', sApproved: 'aprobado', sNotApproved: 'pregunta antes',
714
+ sForget: 'Olvidar todo lo que notó', sForgetSure: '¿Seguro? Haz clic otra vez', sForgot: 'Olvidado: días, cara neutra e historial de reglas.',
715
+ },
716
+ pt: {
717
+ sensesH: 'Sentidos', sensesHint: 'O que seu ot pode notar sozinho: seu rosto e mãos pela câmera, em que app ou site você está, seu e-mail e agenda. Tudo é lido e guardado neste computador; ao cérebro chegam só dicas curtas. Desligado por padrão.',
718
+ sSrc: 'Fontes', sCamera: 'Câmera: rosto e mãos', sCameraD: 'Lê cansaço, tensão, foco e humor no seu rosto (números, nunca fotos), e gestos da mão como comandos rápidos. Nenhuma imagem é guardada ou enviada.',
719
+ sActivity: 'Apps e sites', sActivityD: 'Em que janela e site você está e por quanto tempo, pausas, bateria. Só nomes e minutos por dia, guardados 14 dias.',
720
+ sMail: 'E-mail novo', sMailD: 'Percebe e-mail novo e o que parece urgente no apumail (configure em Integrações). Só remetente e assunto.',
721
+ sCal: 'Agenda', sCalD: 'Seus próximos eventos, de um link privado de agenda (.ics: Google Agenda → Configurações → Endereço secreto em formato iCal).',
722
+ sWa: 'WhatsApp', sWaD: 'O WhatsApp pessoal não tem API oficial, e clientes não oficiais podem fazer o número ser banido. Virá pela API Business ou por uma ponte que você roda.',
723
+ sIcs: 'Link da agenda (.ics)', sVendor: 'A câmera precisa dos modelos uma vez (~13 MB do jsDelivr e Google, verificados por hash).', sVendorGet: 'Baixar modelos', sVendorBusy: 'Baixando {done}/{total}…', sVendorOk: 'Modelos prontos',
724
+ sPreview: 'Ver o que ele vê', sRecal: 'Recalibrar meu rosto neutro', sRecalOk: 'Vai aprender seu rosto neutro de novo nos próximos minutos.', sPause: 'Pausar câmera 1 h', sResume: 'Retomar câmera', sPausedTill: 'Pausada até {t}',
725
+ sCamOn: 'Câmera ligada', sCamOff: 'Câmera desligada (o pet a abre quando o app está rodando)', sNoBase: 'calibrando', sNow: 'Agora',
726
+ sOpts: 'Opções', sArm: 'Gesto de atenção primeiro', sArmD: 'Comandos (mídia, teclas, programas, perguntas) só rodam depois de uma palma aberta, assim uma mão passando não faz nada.',
727
+ sReflect: 'Ajuda por conta própria', sReflectD: 'De vez em quando olha o que sabe e diz uma coisa útil, ou propõe uma regra. A frequência segue “Quão falante”.',
728
+ sHold: 'Segurar um gesto', sFps: 'Quadros por segundo', sAskNow: 'Perguntar agora', sNothing: 'Nada a dizer agora.',
729
+ sToday: 'Hoje', sActive: 'ativo {a} · fora {w} · {b} pausas · trecho mais longo {l}', sApps: 'Apps', sSites: 'Sites', sMoods: 'Rosto',
730
+ sRules: 'Regras', sRulesHint: 'Quando algo acontece, seu ot reage. As que ele propõe só começam quando você aceita.', sProposed: 'Proposta por {name}', sAccept: 'Aceitar', sReject: 'Recusar', sRemove: 'Remover',
731
+ sBy7ots: '7ots', sByUser: 'você', sByOt: 'ot', sAdd: 'Adicionar regra', sWhen: 'Quando', sThen: 'Então', sValue: 'valor', sText: 'o que dizer ou fazer', sCooldown: 'no máximo a cada',
732
+ w_state: 'o rosto parece', w_streak: 'sem parar há', w_app: 'o app contém', w_site: 'o site contém', w_appFor: 'nesse app/site há', w_hour: 'hora entre', w_meetingIn: 'reunião em', w_battery: 'bateria abaixo de', w_mail: 'chega e-mail',
733
+ t_say: 'dizer', t_notify: 'notificar', t_remind: 'lembrar-me', t_quiet: 'silêncio por',
734
+ st_tired: 'cansado', st_tense: 'tenso', st_focused: 'focado', st_sad: 'pra baixo', st_happy: 'feliz', st_neutral: 'neutro',
735
+ sGest: 'Gestos', sGestHint: 'O que cada sinal da mão faz. Programas perguntam uma vez antes da primeira execução.', sSaveG: 'Salvar gestos',
736
+ g_thumb_up: '👍 Joinha', g_thumb_down: '👎 Polegar para baixo', g_open_palm: '✋ Palma aberta', g_closed_fist: '✊ Punho', g_victory: '✌️ Vitória', g_pointing_up: '☝️ Indicador para cima', g_iloveyou: '🤟 Te amo',
737
+ a_none: 'nada', a_confirm: 'dizer sim', a_reject: 'dizer não', a_media: 'mídia', a_key: 'atalho de teclas', a_command: 'rodar programa', a_ask: 'perguntar', a_pause: 'pausar câmera (min)', a_react: 'ele reage', a_arm: 'gesto de atenção',
738
+ m_play_pause: 'tocar / pausar', m_next: 'próxima', m_prev: 'anterior', m_mute: 'mudo', m_up: 'aumentar volume', m_down: 'diminuir volume',
739
+ sCmds: 'Programas', sCmdAdd: 'Adicionar programa', sCmdId: 'id', sCmdLabel: 'nome', sCmdRun: 'comando (sem shell)', sApproved: 'aprovado', sNotApproved: 'pergunta antes',
740
+ sForget: 'Esquecer tudo o que notou', sForgetSure: 'Certeza? Clique de novo', sForgot: 'Esquecido: dias, rosto neutro e histórico de regras.',
741
+ },
742
+ };
743
+ for (const k of Object.keys(T2)) Object.assign(T[k], T2[k], T3[k]);
569
744
  // The system's language (LANG, or the one picked below) first, then the browser's, then the ot's.
570
745
  const nav = (navigator.language || '').slice(0, 2);
571
746
  const lang = T[BOOT.uiLang] ? BOOT.uiLang : T[nav] ? nav : T[BOOT.lang] ? BOOT.lang : 'en';
@@ -724,9 +899,9 @@
724
899
 
725
900
  // ── navigation: one section at a time, remembered in the URL hash ──
726
901
  const NAV = {
727
- en: { acc: 'Account', brain: 'Brain', voice: 'Voice', access: 'Permissions', wal: 'Wallet', pet: 'Personality', com: 'Community', notes: 'Memory', rem: 'Processes', inf: 'Activity' },
728
- es: { acc: 'Cuenta', brain: 'Cerebro', voice: 'Voz', access: 'Permisos', wal: 'Billetera', pet: 'Personalidad', com: 'Comunidad', notes: 'Memoria', rem: 'Procesos', inf: 'Actividad' },
729
- pt: { acc: 'Conta', brain: 'Cérebro', voice: 'Voz', access: 'Permissões', wal: 'Carteira', pet: 'Personalidade', com: 'Comunidade', notes: 'Memória', rem: 'Processos', inf: 'Atividade' },
902
+ en: { home: 'Home', gMind: 'Mind', gPriv: 'Privacy', gConn: 'Connections', gLogs: 'Logs', acc: 'Account', brain: 'Brain', voice: 'Voice', access: 'Permissions', senses: 'Senses', integ: 'Integrations', wal: 'Wallet', plaza: 'Plaza', pet: 'Personality', com: 'Community', notes: 'Memory', rem: 'Processes', inf: 'Activity' },
903
+ es: { home: 'Su casa', gMind: 'Mente', gPriv: 'Privacidad', gConn: 'Conexiones', gLogs: 'Registros', acc: 'Cuenta', brain: 'Cerebro', voice: 'Voz', access: 'Permisos', senses: 'Sentidos', integ: 'Integraciones', wal: 'Billetera', plaza: 'Plaza', pet: 'Personalidad', com: 'Comunidad', notes: 'Memoria', rem: 'Procesos', inf: 'Actividad' },
904
+ pt: { home: 'Casa', gMind: 'Mente', gPriv: 'Privacidade', gConn: 'Conexões', gLogs: 'Registros', acc: 'Conta', brain: 'Cérebro', voice: 'Voz', access: 'Permissões', senses: 'Sentidos', integ: 'Integrações', wal: 'Carteira', plaza: 'Praça', pet: 'Personalidade', com: 'Comunidade', notes: 'Memória', rem: 'Processos', inf: 'Atividade' },
730
905
  };
731
906
  // moods and inference purposes arrive as English codes from the daemon
732
907
  const WORDS = {
@@ -738,6 +913,7 @@
738
913
  const LU = {"users":"<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /> <circle cx=\"9\" cy=\"7\" r=\"4\" /> <path d=\"M22 21v-2a4 4 0 0 0-3-3.87\" /> <path d=\"M16 3.13a4 4 0 0 1 0 7.75\" />","flag":"<path d=\"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z\" /> <line x1=\"4\" x2=\"4\" y1=\"22\" y2=\"15\" />","share-2":"<circle cx=\"18\" cy=\"5\" r=\"3\" /> <circle cx=\"6\" cy=\"12\" r=\"3\" /> <circle cx=\"18\" cy=\"19\" r=\"3\" /> <line x1=\"8.59\" x2=\"15.42\" y1=\"13.51\" y2=\"17.49\" /> <line x1=\"15.41\" x2=\"8.59\" y1=\"6.51\" y2=\"10.49\" />","trash-2":"<path d=\"M3 6h18\" /> <path d=\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\" /> <path d=\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\" /> <line x1=\"10\" x2=\"10\" y1=\"11\" y2=\"17\" /> <line x1=\"14\" x2=\"14\" y1=\"11\" y2=\"17\" />","user-round":"<circle cx=\"12\" cy=\"8\" r=\"5\" /> <path d=\"M20 21a8 8 0 0 0-16 0\" />","cpu":"<path d=\"M12 20v2\" /> <path d=\"M12 2v2\" /> <path d=\"M17 20v2\" /> <path d=\"M17 2v2\" /> <path d=\"M2 12h2\" /> <path d=\"M2 17h2\" /> <path d=\"M2 7h2\" /> <path d=\"M20 12h2\" /> <path d=\"M20 17h2\" /> <path d=\"M20 7h2\" /> <path d=\"M7 20v2\" /> <path d=\"M7 2v2\" /> <rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" /> <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1\" />","mic":"<path d=\"M12 19v3\" /> <path d=\"M19 10v2a7 7 0 0 1-14 0v-2\" /> <rect x=\"9\" y=\"2\" width=\"6\" height=\"13\" rx=\"3\" />","shield-check":"<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" /> <path d=\"m9 12 2 2 4-4\" />","message-circle":"<path d=\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\" />","notebook-pen":"<path d=\"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4\" /> <path d=\"M2 6h4\" /> <path d=\"M2 10h4\" /> <path d=\"M2 14h4\" /> <path d=\"M2 18h4\" /> <path d=\"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\" />","activity":"<path d=\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\" />","scroll-text":"<path d=\"M15 12h-5\" /> <path d=\"M15 8h-5\" /> <path d=\"M19 17V5a2 2 0 0 0-2-2H4\" /> <path d=\"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3\" />","terminal":"<path d=\"M12 19h8\" /> <path d=\"m4 17 6-6-6-6\" />","sparkles":"<path d=\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\" /> <path d=\"M20 2v4\" /> <path d=\"M22 4h-4\" /> <circle cx=\"4\" cy=\"20\" r=\"2\" />","workflow":"<rect width=\"8\" height=\"8\" x=\"3\" y=\"3\" rx=\"2\" /> <path d=\"M7 11v4a2 2 0 0 0 2 2h4\" /> <rect width=\"8\" height=\"8\" x=\"13\" y=\"13\" rx=\"2\" />","alarm-clock":"<circle cx=\"12\" cy=\"13\" r=\"8\" /> <path d=\"M12 9v4l2 2\" /> <path d=\"M5 3 2 6\" /> <path d=\"m22 6-3-3\" /> <path d=\"M6.38 18.7 4 21\" /> <path d=\"M17.64 18.67 20 21\" />","trending-up":"<path d=\"M16 7h6v6\" /> <path d=\"m22 7-8.5 8.5-5-5L2 17\" />","eye":"<path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" /> <circle cx=\"12\" cy=\"12\" r=\"3\" />","house":"<path d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\" /> <path d=\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />","box":"<path d=\"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z\"/><path d=\"m3.3 7 8.7 5 8.7-5\"/><path d=\"M12 22V12\"/>","plus":"<path d=\"M5 12h14\"/><path d=\"M12 5v14\"/>","monitor":"<rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\"/><line x1=\"8\" x2=\"16\" y1=\"21\" y2=\"21\"/><line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"21\"/>","palette":"<path d=\"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z\"/><circle cx=\"13.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\"/><circle cx=\"17.5\" cy=\"10.5\" r=\".5\" fill=\"currentColor\"/><circle cx=\"6.5\" cy=\"12.5\" r=\".5\" fill=\"currentColor\"/><circle cx=\"8.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\"/>","arrow-right":"<path d=\"M5 12h14\"/><path d=\"m12 5 7 7-7 7\"/>","volume-2":"<path d=\"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z\"/><path d=\"M16 9a5 5 0 0 1 0 6\"/><path d=\"M19.364 18.364a9 9 0 0 0 0-12.728\"/>","external-link":"<path d=\"M15 3h6v6\"/><path d=\"M10 14 21 3\"/><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"/>","sliders-horizontal":"<path d=\"M21 4h-7\"/><path d=\"M10 4H3\"/><path d=\"M21 12h-9\"/><path d=\"M8 12H3\"/><path d=\"M21 20h-5\"/><path d=\"M12 20H3\"/><path d=\"M14 2v4\"/><path d=\"M8 10v4\"/><path d=\"M16 18v4\"/>"};
739
914
  Object.assign(SI, {"elevenlabs": "M4.6035 0v24h4.9317V0zm9.8613 0v24h4.9317V0z", "fishaudio": "M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31", "gmail": "M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z", "grok": "M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815", "openai": "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z", "x": "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"});
740
915
  Object.assign(LU, { wallet: '<path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"/><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/>', copy: '<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>' });
916
+ Object.assign(LU, { gamepad: '<line x1="6" x2="10" y1="11" y2="11"/><line x1="8" x2="8" y1="9" y2="13"/><line x1="15" x2="15.01" y1="12" y2="12"/><line x1="18" x2="18.01" y1="10" y2="10"/><path d="M17.32 5H6.68a4 4 0 0 0-3.978 3.59C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258A4 4 0 0 0 17.32 5z"/>' });
741
917
  Object.assign(LU, {"plug": "<path d=\"M12 22v-5\"/><path d=\"M9 8V2\"/><path d=\"M15 8V2\"/><path d=\"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z\"/>", "cloud": "<path d=\"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z\"/>", "send": "<path d=\"m22 2-7 20-4-9-9-4Z\"/><path d=\"M22 2 11 13\"/>", "upload": "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/><polyline points=\"17 8 12 3 7 8\"/><line x1=\"12\" x2=\"12\" y1=\"3\" y2=\"15\"/>", "download": "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/><polyline points=\"7 10 12 15 17 10\"/><line x1=\"12\" x2=\"12\" y1=\"15\" y2=\"3\"/>", "volume-2": "<path d=\"M11 5 6 9H2v6h4l5 4V5Z\"/><path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\"/><path d=\"M19.07 4.93a10 10 0 0 1 0 14.14\"/>", "volume-x": "<path d=\"M11 5 6 9H2v6h4l5 4V5Z\"/><line x1=\"22\" x2=\"16\" y1=\"9\" y2=\"15\"/><line x1=\"16\" x2=\"22\" y1=\"9\" y2=\"15\"/>", "laptop": "<path d=\"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16\"/>", "globe": "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"/><path d=\"M2 12h20\"/>", "refresh-cw": "<path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\"/><path d=\"M21 3v5h-5\"/><path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\"/><path d=\"M8 16H3v5\"/>"});
742
918
  // Full-colour marks (their own squares): apuchat's rat, apumail. (Orquesta: the masked mark below.)
743
919
  const BR = {"apuchat": {"vb": 32, "svg": "<rect width=\"32\" height=\"32\" rx=\"6\" fill=\"#1a1a1a\"/><path d=\"M9 7Q16 4 23 7\" stroke=\"#d6541f\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\"/><path d=\"M7 10Q16 5 25 10\" stroke=\"#d6541f\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\" opacity=\".5\"/><ellipse cx=\"11\" cy=\"14\" rx=\"2\" ry=\"3\" fill=\"#f4ede0\" transform=\"rotate(-15 11 14)\"/><ellipse cx=\"21\" cy=\"14\" rx=\"2\" ry=\"3\" fill=\"#f4ede0\" transform=\"rotate(15 21 14)\"/><ellipse cx=\"16\" cy=\"22\" rx=\"8\" ry=\"6.5\" fill=\"#f4ede0\"/><circle cx=\"13\" cy=\"21\" r=\"1.2\" fill=\"#1a1a1a\"/><circle cx=\"19\" cy=\"21\" r=\"1.2\" fill=\"#1a1a1a\"/><ellipse cx=\"16\" cy=\"25\" rx=\"1.5\" ry=\"1\" fill=\"#d6541f\"/>"}, "apumail": {"vb": 32, "svg": "<rect width=\"32\" height=\"32\" rx=\"6\" fill=\"#1d1813\"/><path fill=\"#e8521e\" d=\"M3 3h26v26H3Z\"/><g transform=\"translate(-.43 1.03) scale(.915)\"><g fill=\"#1d1813\"><path d=\"M9.6 30C10.5 23.6 11.6 18.6 12.9 15.2 13.8 12.7 15.4 11.3 17.6 10.9L19.2 10.7C22.2 10.3 24.8 11.1 26 12.5 26.9 13.5 26.6 14.9 25.3 15.5 24.2 16 22.6 16.3 21 16.3L19.6 16.3C17.7 18.3 16.9 20.8 16.7 23.6L16.4 30Z\"/><path d=\"M17 11.1C15.7 7.5 16 4.3 17.2 2.7 18.4 4.2 19 7.5 19.1 10.8Z\"/><path d=\"M19.8 10.7C19.6 7.3 20.6 4.3 21.9 3.2 22.7 5 22.7 7.9 22.1 10.8Z\"/></g><circle cx=\"21.9\" cy=\"13.3\" r=\"1.55\" fill=\"#e8521e\"/></g>"}};
@@ -770,25 +946,65 @@
770
946
  s.classList.add('ico', `logo-${name}`);
771
947
  return s;
772
948
  };
773
- const ICON = { acc: 'user-round', brain: 'cpu', voice: 'mic', access: 'shield-check', wal: 'wallet', pet: 'message-circle', com: 'users', notes: 'notebook-pen', rem: 'activity', inf: 'scroll-text' };
774
- const SECS = { acc: 'hAcc', brain: 'hBrain', voice: 'hVoice', access: 'hAccess', wal: 'hWal', pet: 'hPet', com: 'hCom', notes: 'hNotes', rem: 'hRem', inf: 'hInf' };
949
+ const ICON = { home: 'house', acc: 'user-round', brain: 'cpu', voice: 'mic', access: 'shield-check', senses: 'eye', integ: 'plug', wal: 'wallet', plaza: 'share-2', pet: 'message-circle', com: 'users', notes: 'notebook-pen', rem: 'activity', inf: 'scroll-text' };
950
+ const SECS = { home: 'hHome', acc: 'hAcc', brain: 'hBrain', voice: 'hVoice', access: 'hAccess', senses: 'hSenses', integ: 'hInteg', wal: 'hWal', plaza: 'hPlaza', pet: 'hPet', com: 'hCom', notes: 'hNotes', rem: 'hRem', inf: 'hInf' };
775
951
  const navT = NAV[lang] || NAV.en;
776
- $('#nav').replaceChildren(...Object.keys(SECS).map((k) => el('a', { href: `#${k}` }, el('span', {}, ico(ICON[k])), el('b', { textContent: navT[k] }))));
952
+ // a few pages on top, the rest in groups that fold (the group of the open page unfolds)
953
+ const GROUPS = [['home', 'acc'], ['gMind', 'brain', 'pet', 'voice', 'notes'], ['gPriv', 'access', 'senses'], ['gConn', 'integ', 'wal', 'plaza', 'com'], ['gLogs', 'rem', 'inf']];
954
+ const navLink = (k) => el('a', { href: `#${k}` }, el('span', {}, ico(ICON[k])), el('b', { textContent: navT[k] }));
955
+ $('#nav').replaceChildren(...GROUPS.flatMap(([g, ...ks]) => (g.startsWith('g') ? [el('details', {}, el('summary', { textContent: navT[g] }), el('div', {}, ...ks.map(navLink)))] : [g, ...ks].map(navLink))));
777
956
  function go() {
778
- const k = SECS[location.hash.slice(1)] ? location.hash.slice(1) : 'brain';
957
+ const k = SECS[location.hash.slice(1)] ? location.hash.slice(1) : 'home';
779
958
  for (const [key, h] of Object.entries(SECS)) document.querySelector(`section[aria-labelledby=${h}]`).hidden = key !== k;
780
959
  for (const a of document.querySelectorAll('#nav a')) a.getAttribute('href') === `#${k}` ? a.setAttribute('aria-current', 'page') : a.removeAttribute('aria-current');
781
960
  $('#pageH').textContent = $(`#${SECS[k]}`).textContent;
782
961
  $('#pageD').textContent = '';
962
+ for (const d of document.querySelectorAll('#nav details')) if (d.querySelector(`a[href="#${k}"]`) || matchMedia('(max-width: 760px)').matches) d.open = true; // the phone bar shows them all
963
+ k === 'home' ? mountRoom() : unmountRoom();
783
964
  if (k === 'inf') loadInferences();
784
965
  if (k === 'acc') loadAccount();
785
966
  if (k === 'rem') loadProcesses();
786
967
  if (k === 'notes') loadMemory();
968
+ if (k === 'senses') loadSenses();
969
+ if (k === 'plaza') loadPlaza();
787
970
  if (k === 'com') setTimeout(renderCommunity); // after the script ran (com is declared further down)
788
971
  window.scrollTo(0, 0);
789
972
  }
790
973
  addEventListener('hashchange', go);
791
974
 
975
+ // ── its home: the 3D room (src/character3d/room.js), mounted only while the page is open ──
976
+ let room = null, roomP = null;
977
+ async function mountRoom() {
978
+ if (room || roomP) return;
979
+ roomP = (async () => {
980
+ const box = $('#room');
981
+ const look = BOOT.identity?.look;
982
+ const lib = await import('/dist/7ots.esm.js').catch(() => null);
983
+ const m3 = look?.character && look.kind !== 'image' && lib && (await lib.loadCharacter3D().catch(() => null));
984
+ if (location.hash.slice(1) !== 'home' && location.hash) return;
985
+ if (!m3?.webglAvailable?.()) return void box.replaceChildren(el('p', { className: 'hint', textContent: t('roomNo') }));
986
+ let theme = 'cozy';
987
+ try { theme = localStorage.getItem('7ots-room-theme') || theme; } catch { /* no storage */ }
988
+ box.replaceChildren();
989
+ room = await lib.createOtRoom(box, look.character, { material: look.material, name: BOOT.identity?.name, locale: lang, theme });
990
+ const sel = $('#roomTheme'), tr = lib.translator(lang);
991
+ if (m3.ROOM_THEMES && !sel.options.length) {
992
+ sel.setAttribute('aria-label', tr('room.theme'));
993
+ sel.append(...m3.ROOM_THEMES.map((x) => el('option', { value: x.id, textContent: `${x.emoji} ${tr(`room.themes.${x.id}`)}` })));
994
+ sel.addEventListener('change', () => {
995
+ room?.setTheme(sel.value);
996
+ try { localStorage.setItem('7ots-room-theme', sel.value); } catch { /* no storage */ }
997
+ });
998
+ }
999
+ sel.value = room.theme;
1000
+ sel.hidden = false;
1001
+ })().catch(() => {}).finally(() => { roomP = null; });
1002
+ }
1003
+ function unmountRoom() {
1004
+ room?.destroy();
1005
+ room = null;
1006
+ }
1007
+
792
1008
  let S = null;
793
1009
 
794
1010
  // ── brain ──
@@ -797,6 +1013,38 @@
797
1013
  const has = S.keys[name];
798
1014
  return el('label', { className: 'f' }, `${label} · ${has ? '✓' : t('keyNone')}`, el('input', { type: 'password', name, placeholder: has ? t('keySaved') : '', autocomplete: 'off' }));
799
1015
  }
1016
+ // Batuta takes the oclt_ token of Orquesta's browser sign-in (an oak_ API key gets 403 "Could not resolve organization")
1017
+ function batutaLogin() {
1018
+ const go = el('button', { type: 'button', textContent: t('batutaLogin') });
1019
+ const note = el('small', { textContent: t('batutaHint') });
1020
+ go.addEventListener('click', async (e) => {
1021
+ e.stopPropagation();
1022
+ go.disabled = true;
1023
+ note.textContent = t('orqWaiting');
1024
+ try {
1025
+ await api('/orquesta/connect', { local: true });
1026
+ } catch (err) {
1027
+ go.disabled = false;
1028
+ return (note.textContent = err.message);
1029
+ }
1030
+ const before = S.orquestaLoginAt || 0;
1031
+ for (let i = 0; i < 100; i++) {
1032
+ await new Promise((res) => setTimeout(res, 3000));
1033
+ const now = await api('/config').catch(() => null);
1034
+ if (now && (now.orquestaLoginAt || 0) !== before) {
1035
+ S.keys = now.keys;
1036
+ S.orquestaLoginAt = now.orquestaLoginAt;
1037
+ go.disabled = false;
1038
+ note.textContent = t('batutaDone');
1039
+ go.closest('.opt')?.querySelector('input[name=ORQUESTA_TOKEN]')?.setAttribute('placeholder', t('keySaved'));
1040
+ return;
1041
+ }
1042
+ }
1043
+ go.disabled = false;
1044
+ note.textContent = t('batutaHint');
1045
+ });
1046
+ return el('div', { className: 'rows' }, el('div', { className: 'fields' }, go), note);
1047
+ }
800
1048
  function renderBrains() {
801
1049
  const b = S.config.brain;
802
1050
  const box = $('#brains');
@@ -839,6 +1087,7 @@
839
1087
  only('anthropic', keyField('ANTHROPIC_API_KEY', 'Anthropic ' + t('key'))),
840
1088
  only('openai', keyField('OPENAI_API_KEY', 'OpenAI ' + t('key'))),
841
1089
  only('batuta', keyField('ORQUESTA_TOKEN', t('orqToken'))),
1090
+ only('batuta', batutaLogin()),
842
1091
  ];
843
1092
  const showProv = () => {
844
1093
  const p = provChips.querySelector('input:checked')?.value || 'anthropic';
@@ -846,12 +1095,21 @@
846
1095
  apiModel.placeholder = { anthropic: 'claude-haiku-4-5-20251001', openai: 'gpt-4o-mini', batuta: 'batuta-auto' }[p];
847
1096
  };
848
1097
  provChips.addEventListener('change', showProv);
1098
+ const homeOpt = opt('7ots', t('home'), t('homeD'), null, S.home.url ? '' : t('noHome'));
849
1099
  box.append(
850
1100
  opt('lines', t('lines'), t('linesD')),
851
1101
  opt('cli', t('cli'), t('cliD'), [chips, el('label', { className: 'f' }, t('model'), cliModel, models)], S.clis.length ? '' : t('notInstalled')),
852
1102
  opt('api', t('api'), t('apiD'), [provChips, ...apiFields]),
853
- opt('7ots', t('home'), t('homeD'), null, S.home.url ? '' : t('noHome')),
1103
+ homeOpt,
854
1104
  );
1105
+ // what 7ots pays for: its AI when the ot has no key of its own, with what is left this month
1106
+ api('/cloud').then((c) => {
1107
+ const q = c.quota;
1108
+ if (!q) return;
1109
+ const line = !q.platformLlm ? t('homeOwn') : q.unlimited ? t('homeUnlimited')
1110
+ : t('homeLeft', { n: Math.max(0, q.messages.free - q.messages.used), free: q.messages.free, tts: Math.max(0, q.tts.free - q.tts.used), games: Math.max(0, q.games.free - q.games.used) });
1111
+ homeOpt.querySelector('label + small')?.after(el('small', { className: 'quota', textContent: line }));
1112
+ }).catch(() => {});
855
1113
  fillModels();
856
1114
  showProv();
857
1115
  $('#now').replaceChildren(t('now'), ' ', el('b', { textContent: S.brain === 'lines' ? t('lines') : S.brain }));
@@ -893,7 +1151,8 @@
893
1151
  try {
894
1152
  const r = await api('/config/test', {});
895
1153
  out.style.display = 'block';
896
- out.textContent = r.ok ? `“${r.text}” · ${(r.ms / 1000).toFixed(1)} s` : `✗ ${r.error}`;
1154
+ const why = r.code && t(r.code, { e: r.error.replace(/^batuta: /, '') });
1155
+ out.textContent = r.ok ? `“${r.text}” · ${(r.ms / 1000).toFixed(1)} s` : `✗ ${why && why !== r.code ? why : r.error}`;
897
1156
  out.style.color = r.ok ? '' : 'var(--err)';
898
1157
  } finally {
899
1158
  btn.disabled = false;
@@ -901,6 +1160,278 @@
901
1160
  }
902
1161
  });
903
1162
 
1163
+ // ── senses: sources, camera, rules, gestures (cli/lib/senses) ──
1164
+ const hm = (ms) => {
1165
+ const m = Math.round((ms || 0) / 60000);
1166
+ return m < 60 ? `${m} min` : `${Math.floor(m / 60)} h ${String(m % 60).padStart(2, '0')}`;
1167
+ };
1168
+ // "notify-send 'hi there'" → ['notify-send', 'hi there'] (quotes group, no shell)
1169
+ const argv = (s) => [...String(s).matchAll(/"([^"]*)"|'([^']*)'|(\S+)/g)].map((m) => m[1] ?? m[2] ?? m[3]);
1170
+ const showArgv = (a) => a.map((x) => (/\s/.test(x) ? `"${x}"` : x)).join(' ');
1171
+ let SN = null;
1172
+ let snTimer = 0;
1173
+ async function loadSenses() {
1174
+ try {
1175
+ SN = await api('/senses/status');
1176
+ } catch (e) {
1177
+ $('#senses').replaceChildren(el('p', { className: 'empty', textContent: t('err', { e: e.message }) }));
1178
+ return;
1179
+ }
1180
+ renderSenses();
1181
+ }
1182
+ function renderSenses() {
1183
+ const box = $('#senses');
1184
+ const msg = el('span', { className: 'msg', id: 'sensesMsg', role: 'status' });
1185
+ const acc = SN.access;
1186
+ const sw = (key, label, desc, on, onChange, soon) => {
1187
+ const input = el('input', { type: 'checkbox', checked: on, disabled: !!soon });
1188
+ input.setAttribute('role', 'switch');
1189
+ input.setAttribute('aria-label', label);
1190
+ if (!soon) input.addEventListener('change', () => onChange(input.checked));
1191
+ return el('div', { className: `sw${soon ? ' soon' : ''}` }, el('b', {}, label, soon ? el('span', { className: 'tag', textContent: t('soon') }) : null), el('small', { textContent: desc }), el('span', { className: 'tog' }, input, el('span')));
1192
+ };
1193
+ const access = (k) => (on) => save({ access: { [k]: on } }, msg).then(loadSenses);
1194
+ const btn = (text, fn, cls = '') => {
1195
+ const b = el('button', { textContent: text, className: cls });
1196
+ b.addEventListener('click', async () => {
1197
+ b.disabled = true;
1198
+ try {
1199
+ await fn(b);
1200
+ } catch (e) {
1201
+ flash($('#sensesMsg'), t('err', { e: errText(e) }), 'err');
1202
+ }
1203
+ b.disabled = false;
1204
+ });
1205
+ return b;
1206
+ };
1207
+
1208
+ // sources
1209
+ const src = el('div');
1210
+ const cam = sw('camera', t('sCamera'), t('sCameraD'), acc.camera, access('camera'));
1211
+ if (acc.camera) cam.append(cameraRow(btn));
1212
+ src.append(cam, sw('activity', t('sActivity'), t('sActivityD'), acc.activity, access('activity')));
1213
+ src.append(sw('mail', t('sMail'), t('sMailD'), acc.mail, access('mail')));
1214
+ const cal = sw('calendar', t('sCal'), t('sCalD'), acc.calendar, access('calendar'));
1215
+ if (acc.calendar) {
1216
+ const has = S.keys.SENSES_ICS_URL;
1217
+ const url = el('input', { type: 'password', placeholder: has ? t('keySaved') : 'https://…/basic.ics', autocomplete: 'off' });
1218
+ const err = SN.sources.find((s) => s.id === 'calendar')?.error;
1219
+ cal.append(el('div', { className: 'sub' }, `${t('sIcs')} · ${has ? '✓' : t('keyNone')}`, url, btn(t('save'), async () => {
1220
+ S = await api('/config', { keys: { SENSES_ICS_URL: url.value.trim() } });
1221
+ flash(msg, t('saved'));
1222
+ loadSenses();
1223
+ }), err ? el('span', { className: 'msg err', textContent: err }) : null));
1224
+ }
1225
+ src.append(cal, sw('whatsapp', t('sWa'), t('sWaD'), false, null, true));
1226
+
1227
+ // options
1228
+ const c = SN.config;
1229
+ const opts = el('div');
1230
+ opts.append(sw('arm', t('sArm'), t('sArmD'), c.arm, (on) => save({ senses: { arm: on } }, msg).then(loadSenses)));
1231
+ opts.append(sw('reflect', t('sReflect'), t('sReflectD'), c.reflect, (on) => save({ senses: { reflect: on } }, msg)));
1232
+ const pick = (vals, cur, fmtV, key) => {
1233
+ const s = el('select', {}, ...vals.map((v) => el('option', { value: v, textContent: fmtV(v), selected: v === cur })));
1234
+ s.addEventListener('change', () => save({ senses: { [key]: Number(s.value) } }, msg));
1235
+ return s;
1236
+ };
1237
+ const say = el('span', { className: 'msg' });
1238
+ opts.append(el('div', { className: 'row' },
1239
+ el('label', {}, `${t('sHold')} `, pick([300, 600, 1000, 1500], c.holdMs, (v) => `${v / 1000} s`, 'holdMs')),
1240
+ el('label', {}, `${t('sFps')} `, pick([2, 5, 10], c.fps, String, 'fps')),
1241
+ btn(t('sAskNow'), async () => {
1242
+ const r = await api('/senses/reflect', {});
1243
+ say.textContent = r.say || (r.rule ? r.rule.name : t('sNothing'));
1244
+ if (r.rule) loadSenses();
1245
+ }), say));
1246
+
1247
+ // today
1248
+ const d = SN.today;
1249
+ const top = (list) => list.length ? el('ul', { className: 'list' }, ...list.slice(0, 6).map(([n, ms]) => el('li', {}, el('span', { textContent: n }), el('time', { textContent: hm(ms) })))) : el('p', { className: 'empty', textContent: '—' });
1250
+ const moods = Object.entries(d.states || {}).sort((a, b) => b[1] - a[1]);
1251
+ const today = el('div', {},
1252
+ el('p', { className: 'total', textContent: t('sActive', { a: hm(d.active), w: hm(d.away), b: d.breaks, l: hm(d.longest) }) }),
1253
+ acc.activity ? el('div', {}, el('h3', { className: 'sh', textContent: t('sApps') }), top(d.apps), d.sites.length ? el('h3', { className: 'sh', textContent: t('sSites') }) : null, d.sites.length ? top(d.sites) : null) : null,
1254
+ moods.length ? el('div', {}, el('h3', { className: 'sh', textContent: t('sMoods') }), top(moods.map(([k, v]) => [t(`st_${k}`), v]))) : null);
1255
+
1256
+ box.replaceChildren(
1257
+ el('h3', { className: 'sh', textContent: t('sSrc') }), src,
1258
+ el('h3', { className: 'sh', textContent: t('sOpts') }), opts,
1259
+ el('h3', { className: 'sh', textContent: t('sToday') }), today,
1260
+ el('h3', { className: 'sh', textContent: t('sRules') }), el('p', { className: 'hint', textContent: t('sRulesHint') }), rulesBox(btn, msg),
1261
+ el('h3', { className: 'sh', textContent: t('sGest') }), el('p', { className: 'hint', textContent: t('sGestHint') }), gesturesBox(btn, msg),
1262
+ el('div', { className: 'row' }, forgetBtn(msg), msg),
1263
+ );
1264
+ // live while the section is open (camera state, vendor download)
1265
+ clearTimeout(snTimer);
1266
+ if (location.hash === '#senses') snTimer = setTimeout(() => location.hash === '#senses' && !box.contains(document.activeElement) && loadSenses(), SN.vendor.busy ? 2000 : 15000);
1267
+ }
1268
+ function cameraRow(btn) {
1269
+ const v = SN.vendor;
1270
+ const row = el('div', { className: 'sub' });
1271
+ if (!v.ready) {
1272
+ row.append(el('span', { textContent: t('sVendor') }));
1273
+ if (v.busy) row.append(el('span', { className: 'wait' }, el('span', { className: 'spin' }), t('sVendorBusy', { done: v.done, total: v.total })));
1274
+ else row.append(btn(t('sVendorGet'), async () => {
1275
+ await api('/senses/vendor', {});
1276
+ loadSenses();
1277
+ }, 'primary'));
1278
+ if (v.error) row.append(el('span', { className: 'msg err', textContent: v.error }));
1279
+ return row;
1280
+ }
1281
+ const k = SN.camera;
1282
+ const now = k.paused ? t('sPausedTill', { t: new Date(k.pausedUntil).toLocaleTimeString(lang, { hour: '2-digit', minute: '2-digit' }) }) : k.on ? `${t('sCamOn')} · ${t('sNow')}: ${k.state ? t(`st_${k.state}`) : '—'}${SN.baseline ? '' : ` (${t('sNoBase')})`}` : t('sCamOff');
1283
+ row.append(el('span', { textContent: now }));
1284
+ row.append(el('a', { href: `/senses?preview=1&token=${encodeURIComponent(BOOT.token)}`, target: '_blank', rel: 'noopener', textContent: t('sPreview') }));
1285
+ row.append(btn(t('sRecal'), async () => {
1286
+ await api('/senses/baseline', { baseline: null });
1287
+ flash($('#sensesMsg'), t('sRecalOk'));
1288
+ }));
1289
+ row.append(k.paused ? btn(t('sResume'), async () => {
1290
+ await api('/senses/pause', { resume: true });
1291
+ loadSenses();
1292
+ }) : btn(t('sPause'), async () => {
1293
+ await api('/senses/pause', { min: 60 });
1294
+ loadSenses();
1295
+ }));
1296
+ return row;
1297
+ }
1298
+ const W_KEYS = ['state', 'streak', 'app', 'site', 'appFor', 'hour', 'meetingIn', 'battery', 'mail'];
1299
+ const STATES_UI = ['tired', 'tense', 'focused', 'sad', 'happy'];
1300
+ function ruleText(r) {
1301
+ const w = Object.entries(r.when).filter(([k]) => k !== 'for').map(([k, v]) => `${t(`w_${k}`)} ${k === 'state' ? t(`st_${v}`) + (r.when.for ? ` ${r.when.for}` : '') : v}`).join(' + ');
1302
+ const th = r.then;
1303
+ return `${t('sWhen')} ${w} → ${t(`t_${th.type}`)}${th.for ? ` ${th.for}` : ''}${th.text ? ` «${th.text}»` : ''}`;
1304
+ }
1305
+ function rulesBox(btn, msg) {
1306
+ const act = (id, action) => async () => {
1307
+ await api('/senses/rules', { id, action });
1308
+ loadSenses();
1309
+ };
1310
+ const by = { '7ots': t('sBy7ots'), user: t('sByUser'), ot: S.name || t('sByOt') };
1311
+ const list = el('ul', { className: 'list' });
1312
+ const rules = SN.rules.slice().sort((a, b) => (a.status === 'proposed' ? -1 : 0) - (b.status === 'proposed' ? -1 : 0));
1313
+ for (const r of rules) {
1314
+ const info = el('span', {}, el('b', { textContent: r.name }), el('br'), el('small', { className: 'hint', textContent: `${ruleText(r)} · ${t('sCooldown')} ${r.cooldown} · ${by[r.by] || r.by}${r.why ? ` · ${r.why}` : ''}` }));
1315
+ if (r.status === 'proposed') {
1316
+ list.append(el('li', {}, el('span', { className: 'tag', textContent: t('sProposed', { name: S.name || 'ot' }) }), info, btn(t('sAccept'), act(r.id, 'accept'), 'primary'), btn(t('sReject'), act(r.id, 'reject'))));
1317
+ continue;
1318
+ }
1319
+ const on = el('input', { type: 'checkbox', checked: r.status === 'active' });
1320
+ on.setAttribute('role', 'switch');
1321
+ on.setAttribute('aria-label', r.name);
1322
+ on.addEventListener('change', () => act(r.id, on.checked ? 'on' : 'off')());
1323
+ list.append(el('li', {}, info, el('span', { className: 'tog', style: 'flex:none' }, on, el('span')), btn(t('sRemove'), act(r.id, 'remove'), 'x')));
1324
+ }
1325
+ // add: one condition + one action (more combinations come from the ot's proposals or ~/.7ots/rules.json)
1326
+ const wk = el('select', {}, ...W_KEYS.map((k) => el('option', { value: k, textContent: t(`w_${k}`) })));
1327
+ const wv = el('span');
1328
+ const PH = { streak: '>90m', app: 'code', site: 'youtube', appFor: '>45m', hour: '18-23', meetingIn: '<15m', battery: '<20' };
1329
+ const drawW = () => {
1330
+ const k = wk.value;
1331
+ if (k === 'state') wv.replaceChildren(el('select', { name: 'v' }, ...STATES_UI.map((s) => el('option', { value: s, textContent: t(`st_${s}`) }))), el('input', { name: 'for', value: '5m', size: 4 }));
1332
+ else if (k === 'mail') wv.replaceChildren(el('select', { name: 'v' }, el('option', { value: 'urgent', textContent: 'urgent' }), el('option', { value: 'new', textContent: 'new' })));
1333
+ else wv.replaceChildren(el('input', { name: 'v', placeholder: PH[k], value: PH[k], size: 9 }));
1334
+ };
1335
+ wk.addEventListener('change', drawW);
1336
+ drawW();
1337
+ const tk = el('select', {}, ...['say', 'notify', 'remind', 'quiet'].map((k) => el('option', { value: k, textContent: t(`t_${k}`) })));
1338
+ const tv = el('input', { placeholder: t('sText'), style: 'flex:1;min-width:180px' });
1339
+ tk.addEventListener('change', () => (tv.placeholder = tk.value === 'quiet' ? '25m' : t('sText')));
1340
+ const cd = el('input', { value: '60m', size: 4 });
1341
+ const add = btn(t('sAdd'), async () => {
1342
+ const k = wk.value;
1343
+ const when = { [k]: wv.querySelector('[name=v]').value.trim() };
1344
+ if (k === 'state') when.for = wv.querySelector('[name=for]').value.trim() || '3m';
1345
+ const v = tv.value.trim();
1346
+ const then = tk.value === 'quiet' ? { type: 'quiet', for: v || '25m' } : tk.value === 'remind' ? { type: 'remind', text: v, in: '0m' } : { type: tk.value, text: v };
1347
+ const name = `${t(`w_${k}`)} ${k === 'state' ? t(`st_${when.state}`) : when[k]} → ${t(`t_${then.type}`)}${v ? ` «${v.slice(0, 40)}»` : ''}`;
1348
+ await api('/senses/rules', { action: 'add', rule: { name, when, then, cooldown: cd.value.trim() || '60m' } });
1349
+ flash(msg, t('saved'));
1350
+ loadSenses();
1351
+ }, 'primary');
1352
+ return el('div', {}, list, el('div', { className: 'row' }, `${t('sWhen')} `, wk, wv, ` ${t('sThen')} `, tk, tv, ` ${t('sCooldown')} `, cd, add));
1353
+ }
1354
+ function gesturesBox(btn, msg) {
1355
+ const G = SN.gestures;
1356
+ const cmds = { ...G.commands };
1357
+ const rows = el('div', { className: 'rows' });
1358
+ const pickers = {};
1359
+ for (const g of ['thumb_up', 'thumb_down', 'open_palm', 'closed_fist', 'victory', 'pointing_up', 'iloveyou']) {
1360
+ if (g === 'open_palm' && SN.config.arm) {
1361
+ rows.append(el('div', { className: 'row', style: 'margin:0' }, el('b', { textContent: t(`g_${g}`), style: 'min-width:150px' }), el('span', { className: 'hint', style: 'margin:0', textContent: t('a_arm') })));
1362
+ continue;
1363
+ }
1364
+ const a = G.map[g] || { type: 'none' };
1365
+ const type = el('select', {}, ...['none', 'confirm', 'reject', 'media', 'key', 'command', 'ask', 'pause', 'react'].map((k) => el('option', { value: k, textContent: t(`a_${k}`), selected: a.type === k })));
1366
+ const extra = el('span');
1367
+ const draw = () => {
1368
+ const k = type.value;
1369
+ if (k === 'media') extra.replaceChildren(el('select', { name: 'x' }, ...['play-pause', 'next', 'prev', 'mute', 'up', 'down'].map((m) => el('option', { value: m, textContent: t(`m_${m.replace('-', '_')}`), selected: a.do === m }))));
1370
+ else if (k === 'key') extra.replaceChildren(el('input', { name: 'x', value: a.keys || 'super+d', size: 14 }));
1371
+ else if (k === 'command') extra.replaceChildren(el('select', { name: 'x' }, ...Object.entries(cmds).map(([id, c]) => el('option', { value: id, textContent: c.label, selected: a.id === id }))));
1372
+ else if (k === 'ask') extra.replaceChildren(el('input', { name: 'x', value: a.text || '', size: 28 }));
1373
+ else if (k === 'pause') extra.replaceChildren(el('input', { name: 'x', type: 'number', min: 1, max: 240, value: a.for || 15, style: 'width:70px' }));
1374
+ else extra.replaceChildren();
1375
+ };
1376
+ type.addEventListener('change', draw);
1377
+ draw();
1378
+ pickers[g] = { type, extra };
1379
+ rows.append(el('div', { className: 'row', style: 'margin:0' }, el('b', { textContent: t(`g_${g}`), style: 'min-width:150px' }), type, extra));
1380
+ }
1381
+ const collect = () => {
1382
+ const map = {};
1383
+ for (const [g, { type, extra }] of Object.entries(pickers)) {
1384
+ const k = type.value;
1385
+ const x = extra.querySelector('[name=x]')?.value?.trim();
1386
+ if (k === 'none') continue;
1387
+ map[g] = k === 'media' ? { type: k, do: x } : k === 'key' ? { type: k, keys: x } : k === 'command' ? { type: k, id: x } : k === 'ask' ? { type: k, text: x } : k === 'pause' ? { type: k, for: Number(x) } : { type: k };
1388
+ }
1389
+ if (SN.config.arm && G.map.open_palm) map.open_palm = G.map.open_palm;
1390
+ return { map, commands: Object.fromEntries(Object.entries(cmds).map(([id, c]) => [id, { label: c.label, run: c.run, approved: c.approved }])) };
1391
+ };
1392
+ const saveG = async () => {
1393
+ SN.gestures = await api('/senses/gestures', collect());
1394
+ flash(msg, t('saved'));
1395
+ loadSenses();
1396
+ };
1397
+ // programs: an argv list (never a shell); a new or changed one asks once before its first run
1398
+ const list = el('ul', { className: 'list' }, ...Object.entries(cmds).map(([id, c]) => el('li', {}, el('span', {}, el('b', { textContent: c.label }), ' ', el('code', { textContent: showArgv(c.run) })), el('small', { className: 'hint', style: 'margin:0', textContent: c.approved ? t('sApproved') : t('sNotApproved') }), btn(t('sRemove'), async () => {
1399
+ delete cmds[id];
1400
+ await saveG();
1401
+ }, 'x'))));
1402
+ const cid = el('input', { placeholder: t('sCmdId'), size: 8 });
1403
+ const clabel = el('input', { placeholder: t('sCmdLabel'), size: 14 });
1404
+ const crun = el('input', { placeholder: t('sCmdRun'), style: 'flex:1;min-width:180px' });
1405
+ const cadd = btn(t('sCmdAdd'), async () => {
1406
+ const id = cid.value.trim().toLowerCase().replace(/[^a-z0-9_-]/g, '-').slice(0, 30);
1407
+ const run = argv(crun.value);
1408
+ if (!id || !run.length) return;
1409
+ cmds[id] = { label: clabel.value.trim() || id, run };
1410
+ await saveG();
1411
+ });
1412
+ return el('div', {}, rows, el('div', { className: 'row' }, btn(t('sSaveG'), saveG, 'primary')),
1413
+ el('h3', { className: 'sh', textContent: t('sCmds') }), list, el('div', { className: 'row' }, cid, clabel, crun, cadd));
1414
+ }
1415
+ function forgetBtn(msg) {
1416
+ let armed = false;
1417
+ const b = el('button', { textContent: t('sForget') });
1418
+ b.addEventListener('click', async () => {
1419
+ if (!armed) {
1420
+ armed = true;
1421
+ b.textContent = t('sForgetSure');
1422
+ return;
1423
+ }
1424
+ await api('/senses/forget', {});
1425
+ flash(msg, t('sForgot'));
1426
+ loadSenses();
1427
+ });
1428
+ return b;
1429
+ }
1430
+
1431
+ // the Prowl paw (prowl.world/favicon.svg), next to the switch that shares tool results with it
1432
+ const PROWL_SVG = '<svg class="prowl-mark" viewBox="0 0 64 64" width="18" height="18" aria-label="Prowl" role="img"><rect width="64" height="64" rx="14" fill="#09090b"/><g fill="#10b981"><path d="M32 38c-8 0-14 5-16 10-2 6 2 10 8 12h16c6-2 10-6 8-12-2-5-8-10-16-10z"/><ellipse cx="18" cy="24" rx="6" ry="8" transform="rotate(-15 18 24)"/><ellipse cx="32" cy="18" rx="5.5" ry="8"/><ellipse cx="46" cy="24" rx="6" ry="8" transform="rotate(15 46 24)"/></g></svg>';
1433
+ const prowlMark = () => { const a = document.createElement('a'); a.href = 'https://prowl.world'; a.target = '_blank'; a.rel = 'noopener'; a.title = 'Prowl'; a.className = 'prowl-link'; a.innerHTML = PROWL_SVG; return a; };
1434
+
904
1435
  // ── access ──
905
1436
  function renderAccess() {
906
1437
  const box = $('#access');
@@ -918,6 +1449,11 @@
918
1449
  const scr = sw('screen', S.config.access.screen === true, false, false);
919
1450
  if (S.config.access.screen) scr.append(screenRow());
920
1451
  box.append(scr);
1452
+ {
1453
+ const pw = sw('prowl', S.config.access.prowl === true, false, false);
1454
+ pw.querySelector('b').prepend(prowlMark());
1455
+ box.append(pw);
1456
+ }
921
1457
  box.append(sw('processes', S.config.access.processes === true, false, false));
922
1458
  box.append(sw('logs', S.config.access.logs === true, false, false));
923
1459
  box.append(sw('inbox', S.config.access.inbox === true, false, false));
@@ -1090,7 +1626,7 @@
1090
1626
  opt('none'), opt('browser'), opt('local'),
1091
1627
  opt('elevenlabs', [vkey('ELEVENLABS_API_KEY', 'ElevenLabs ' + t('key'), S.voices.keys.elevenlabs), vconf('elevenlabs')]),
1092
1628
  opt('openai', [vkey('OPENAI_API_KEY_V', 'OpenAI ' + t('key'), S.voices.keys.openai), vconf('openai')]),
1093
- opt('apuchat', [vkey('APUCHAT_VOICE_TOKEN', 'apuchat ' + t('key'), S.voices.keys.apuchat), vconf('apuchat')]),
1629
+ opt('apuchat', [vkey('APUCHAT_VOICE_TOKEN', t('vapuchatTok'), S.voices.keys.apuchat), S.voices.keys.apuchat ? null : el('div', { className: 'sub', textContent: t(S.voices.keys.apuchatCloud ? 'vapuchatCloud' : 'vapuchatNoCloud') }), vconf('apuchat')]),
1094
1630
  opt('grok', [vkey('XAI_API_KEY', 'xAI ' + t('key'), S.voices.keys.grok), vconf('grok')]),
1095
1631
  opt('fish', [vkey('FISH_API_KEY', 'Fish Audio ' + t('key'), S.voices.keys.fish), vconf('fish')]),
1096
1632
  );
@@ -1098,7 +1634,20 @@
1098
1634
  const ex = el('input', { type: 'checkbox', checked: !!S.config.voice?.expressive });
1099
1635
  const exMsg = el('span', { className: 'msg', role: 'status' });
1100
1636
  ex.addEventListener('change', () => save({ voice: { expressive: ex.checked } }, exMsg));
1101
- $('#vExpr').replaceChildren(el('label', { className: 'chip' }, ex, t('vExpr')), ' ', el('small', { textContent: t('vExprHint') }), exMsg);
1637
+ // wake word: "oye <name>" opens the mic (Vosk on this computer; the first time it downloads its model)
1638
+ const wk = el('input', { type: 'checkbox', checked: !!S.config.voice?.wake, disabled: !S.stt });
1639
+ const wkMsg = el('span', { className: 'msg', role: 'status' });
1640
+ const W = S.wake || {};
1641
+ const wkNow = W.on ? (W.state === 'on' ? t('vWakeOn') : W.state === 'setup' ? t('vWakeSetup') : W.state === 'error' ? t('err', { e: W.error || '' }) : '') : '';
1642
+ wk.addEventListener('change', async () => {
1643
+ await save({ voice: { wake: wk.checked } }, wkMsg);
1644
+ setTimeout(() => location.hash === '#voice' && api('/config').then((x) => ((S = x), renderVoices())).catch(() => {}), wk.checked ? 4000 : 300);
1645
+ });
1646
+ $('#vExpr').replaceChildren(
1647
+ el('div', {}, el('label', { className: 'chip' }, ex, t('vExpr')), ' ', el('small', { textContent: t('vExprHint') }), exMsg),
1648
+ el('div', {}, el('label', { className: 'chip' }, wk, t('vWake', { name: S.name })), ' ', el('small', { textContent: S.stt ? t('vWakeHint') : t('vWakeNoStt') }), wkNow ? el('b', { className: 'msg', textContent: ` ${wkNow}` }) : null, wkMsg),
1649
+ );
1650
+ if (W.on && W.state === 'setup') setTimeout(() => location.hash === '#voice' && api('/config').then((x) => ((S = x), renderVoices())).catch(() => {}), 4000);
1102
1651
  const stt = { local: t('sttLocal'), openai: 'OpenAI', elevenlabs: 'ElevenLabs' }[S.stt] || t('sttNone');
1103
1652
  $('#stt').replaceChildren(t('sttNow'), ' ', el('b', { textContent: stt }));
1104
1653
  }
@@ -1164,22 +1713,34 @@
1164
1713
  // ── inference history ──
1165
1714
  const num = (n) => Number(n || 0).toLocaleString(lang);
1166
1715
  const asText = (v) => (v == null ? '' : typeof v === 'string' ? v : JSON.stringify(v, null, 2));
1716
+ let infWant = ''; // the ot whose calls are listed ('' = all)
1717
+ const drawOt = import('/dist/7ots.esm.js').then((m) => m.createCharacter);
1167
1718
  async function loadInferences() {
1168
1719
  let L = [];
1169
1720
  let ots = [];
1170
- const sel = $('#infOt');
1721
+ const pick = $('#infOt');
1171
1722
  try {
1172
- ({ inferences: L, ots = [] } = await api(`/inferences?n=80${sel.value ? `&ot=${encodeURIComponent(sel.value)}` : ''}`));
1723
+ ({ inferences: L, ots = [] } = await api(`/inferences?n=80${infWant ? `&ot=${encodeURIComponent(infWant)}` : ''}`));
1173
1724
  } catch {
1174
1725
  return;
1175
1726
  }
1176
- // which ot made each call (the host also sees its visitors'): a filter when there is more than one
1727
+ // which ot made each call (the host also sees its visitors'): each ot drawn as a chip, when there is more than one
1177
1728
  const many = ots.length > 1;
1178
- sel.hidden = !many;
1179
- if (many && sel.options.length !== ots.length + 1) {
1180
- const cur = sel.value;
1181
- sel.replaceChildren(el('option', { value: '', textContent: t('infAll') }), ...ots.map((o) => el('option', { value: o.id, textContent: o.name })));
1182
- sel.value = ots.some((o) => o.id === cur) ? cur : '';
1729
+ pick.hidden = !many;
1730
+ if (many && !ots.some((o) => o.id === infWant)) infWant = '';
1731
+ const key = ots.map((o) => o.id).join() + '|' + infWant;
1732
+ if (many && pick.dataset.key !== key) {
1733
+ pick.dataset.key = key;
1734
+ const chip = (id, kids, cls = '') => {
1735
+ const r = el('input', { type: 'radio', name: 'infOt', value: id, checked: infWant === id });
1736
+ r.addEventListener('change', () => ((infWant = id), loadInferences()));
1737
+ return el('label', { className: `chip ${cls}` }, r, ...kids);
1738
+ };
1739
+ pick.replaceChildren(chip('', [t('infAll')], 'all'), ...ots.map((o) => {
1740
+ const face = el('span', { className: 'face', textContent: (o.name || '?')[0].toUpperCase() });
1741
+ if (o.character) drawOt.then((createCharacter) => { face.textContent = ''; createCharacter(face, o.character, { locale: lang, title: o.name }); }).catch(() => {});
1742
+ return chip(o.id, [face, o.name]);
1743
+ }));
1183
1744
  }
1184
1745
  // Keep open rows open across refreshes.
1185
1746
  const open = new Set([...document.querySelectorAll('#infs details[open]')].map((d) => d.dataset.at));
@@ -1194,7 +1755,6 @@
1194
1755
  return d;
1195
1756
  }) : [el('p', { className: 'empty', textContent: t('noInf') })]));
1196
1757
  }
1197
- $('#infOt').addEventListener('change', () => loadInferences());
1198
1758
  $('#clearInf').addEventListener('click', async () => {
1199
1759
  await api('/inferences/clear', {});
1200
1760
  loadInferences();
@@ -1420,6 +1980,25 @@
1420
1980
  card.append(stars);
1421
1981
  }
1422
1982
  const acts = el('div', { className: 'acts' });
1983
+ // install / wear: also on the ones you shared (in review they are only yours to wear)
1984
+ const wearing = (S.otLook?.mods || []).some((x) => x.id === v.id);
1985
+ const inst = el('button', { className: wearing ? '' : 'primary', disabled: wearing }, ico('download', 15), ' ', wearing ? t('modOn') : v.installed ? t('comWear') : t('comInstall'));
1986
+ inst.addEventListener('click', async () => {
1987
+ inst.disabled = true;
1988
+ flash(msg, t('modModelHint'));
1989
+ try {
1990
+ await api('/community/install', { id: v.id });
1991
+ com.fromGallery.add(v.id);
1992
+ S = await api('/config');
1993
+ flash(msg, t('saved'));
1994
+ renderMods();
1995
+ renderCommunity();
1996
+ } catch (e) {
1997
+ inst.disabled = false;
1998
+ flash(msg, t('err', { e: errText(e) }), 'err');
1999
+ }
2000
+ });
2001
+ acts.append(inst);
1423
2002
  if (mineList) {
1424
2003
  const del = el('button', {}, ico('trash-2', 15), ' ', t('comDel'));
1425
2004
  del.addEventListener('click', async () => {
@@ -1434,24 +2013,6 @@
1434
2013
  });
1435
2014
  acts.append(del);
1436
2015
  } else {
1437
- const wearing = (S.otLook?.mods || []).some((x) => x.id === v.id);
1438
- const inst = el('button', { className: wearing ? '' : 'primary', disabled: wearing }, ico('download', 15), ' ', wearing ? t('modOn') : v.installed ? t('comWear') : t('comInstall'));
1439
- inst.addEventListener('click', async () => {
1440
- inst.disabled = true;
1441
- flash(msg, t('modModelHint'));
1442
- try {
1443
- await api('/community/install', { id: v.id });
1444
- com.fromGallery.add(v.id);
1445
- S = await api('/config');
1446
- flash(msg, t('saved'));
1447
- renderMods();
1448
- renderCommunity();
1449
- } catch (e) {
1450
- inst.disabled = false;
1451
- flash(msg, t('err', { e: errText(e) }), 'err');
1452
- }
1453
- });
1454
- acts.append(inst);
1455
2016
  if (com.signedIn && !v.mine && !v.reported) {
1456
2017
  const rep = el('button', { className: 'icon', title: t('comReport'), ariaLabel: t('comReport') }, ico('flag', 15));
1457
2018
  rep.addEventListener('click', () => {
@@ -1485,14 +2046,27 @@
1485
2046
  const lib = await loadChars();
1486
2047
  if (!lib?.createCharacter) return;
1487
2048
  const base = S.otLook || {};
1488
- const m3 = cards.some((c) => c._preview[1].model) && (await lib.loadCharacter3D?.().catch(() => null));
2049
+ // full bodies in 3D (one shared renderer), each model loaded only when its card nears the screen
2050
+ let m3 = null;
2051
+ com.io?.disconnect();
2052
+ const io = (com.io = new IntersectionObserver(async (entries) => {
2053
+ for (const e of entries) {
2054
+ if (!e.isIntersecting) continue;
2055
+ io.unobserve(e.target);
2056
+ m3 ??= (await lib.loadCharacter3D?.().catch(() => null)) || false;
2057
+ if (!m3?.webglAvailable?.() || !e.target.isConnected || io !== com.io) continue;
2058
+ try {
2059
+ e.target.replaceChildren();
2060
+ com.views.push(m3.createCharacter3D(e.target, { ...base, mods: [e.target._mod] }, { backdrop: false, moodFx: false }));
2061
+ } catch {}
2062
+ }
2063
+ }, { rootMargin: '300px 0px' }));
1489
2064
  for (const c of cards) {
1490
2065
  const [fig, m] = c._preview;
1491
2066
  try {
1492
2067
  if (m.model) {
1493
- if (!m3?.webglAvailable?.() || com.views.length >= 12) continue; // each 3D preview is a WebGL context
1494
- fig.replaceChildren();
1495
- com.views.push(m3.createCharacter3D(fig, { ...base, mods: [m] }, { backdrop: false, moodFx: false }));
2068
+ fig._mod = m;
2069
+ io.observe(fig);
1496
2070
  } else {
1497
2071
  fig.replaceChildren();
1498
2072
  lib.createCharacter(fig, { ...base, mods: [m] }, { locale: lang, moodFx: false, backdrop: false });
@@ -1539,7 +2113,7 @@
1539
2113
  });
1540
2114
  $('#annoy').addEventListener('change', (e) => save({ pet: { annoy: Number(e.target.value) } }, $('#petMsg')));
1541
2115
 
1542
- // ── integrations (Permissions → Integrations) ──
2116
+ // ── integrations (their own section) ──
1543
2117
  const toggle = (on, onChange, label) => {
1544
2118
  const i = el('input', { type: 'checkbox', checked: !!on });
1545
2119
  i.setAttribute('role', 'switch');
@@ -1571,35 +2145,50 @@
1571
2145
  cloudBody.replaceChildren(who, vm);
1572
2146
  }).catch((e) => cloudBody.replaceChildren(el('small', { className: 'bad', textContent: e.message })));
1573
2147
 
1574
- // Wallet: the twin ot's Notlogin subwallet on 7ots.com, read only (approving a payment happens there)
1575
- const walBody = el('div', { className: 'rows' }, el('small', { textContent: '…' }));
2148
+ // Wallet: the twin ot's Notlogin subwallet on 7ots.com, read only (approving a payment happens there),
2149
+ // and tokenizing it (SpawnerBot or a launchpad), which is prepared on 7ots.com too
2150
+ const lg = (f, cls = '') => el('img', { src: `/logos/${f}`, alt: '', width: 20, height: 20, className: cls });
2151
+ const walBody = el('div', { className: 'wal' }, el('small', { textContent: '…' }));
1576
2152
  const walMsg = el('span', { className: 'msg', role: 'status' });
1577
- const walCard = card(ico('wallet', 18), t('walH'), null, null, walBody);
2153
+ const walCard = card(lg('notlogin.svg', 'ico'), t('walH'), null, null, walBody);
1578
2154
  $('#wallet').replaceChildren(walCard, walMsg);
1579
2155
  api('/wallet').then((w) => {
1580
2156
  if (!w.available) return walBody.replaceChildren(el('small', { textContent: t('walNotLinked') }));
1581
- if (!w.configured || !w.linked) return walBody.replaceChildren(el('small', {}, t('walNotLinked'), ' ', el('a', { href: w.manageUrl, target: '_blank', rel: 'noopener', textContent: t('walManage') })));
1582
- const short = (a) => (a && a.length > 16 ? `${a.slice(0, 8)}…${a.slice(-6)}` : a || '');
1583
2157
  const ext = (href, text) => el('a', { href, target: '_blank', rel: 'noopener', className: 'ext' }, text, ' ', ico('external-link', 12));
1584
- const rows = w.wallets.map((x) => {
2158
+ if (!w.configured || !w.linked) return walBody.replaceChildren(el('small', {}, t('walNotLinked'), ' ', ext(w.manageUrl, t('walManage'))));
2159
+ const short = (a) => (a && a.length > 16 ? `${a.slice(0, 8)}…${a.slice(-6)}` : a || '');
2160
+ const chains = w.wallets.map((x) => {
2161
+ const sol = x.network === 'solana';
1585
2162
  const cp = el('button', { title: t('walCopy'), 'aria-label': t('walCopy') }, ico('copy', 14));
1586
2163
  cp.addEventListener('click', async () => {
1587
2164
  await navigator.clipboard.writeText(x.address).catch(() => {});
1588
2165
  flash(walMsg, t('walCopied'), 'ok');
1589
2166
  });
1590
- return el('div', { className: 'vm' },
1591
- el('b', {}, x.network === 'solana' ? 'Solana' : x.network === 'base' ? 'Base' : x.network, el('small', { textContent: x.usdc == null ? '' : ` ${x.usdc} USDC · ${x.native ?? 0} ${x.symbol}` })),
1592
- el('div', { className: 'fields' }, el('code', { textContent: x.address, style: 'overflow-wrap:anywhere' }), cp),
1593
- x.explorerUrl ? el('small', {}, ext(x.explorerUrl, t('walTxs'))) : null);
2167
+ return el('div', { className: 'wchain' },
2168
+ el('img', { src: `/logos/${sol ? 'solana.png' : 'base.svg'}`, alt: '' }),
2169
+ el('b', { textContent: sol ? 'Solana' : x.network === 'base' ? 'Base' : x.network }),
2170
+ el('span', { className: 'bal' }, `${x.usdc ?? 0} `, el('small', { textContent: `USDC · ${x.native ?? 0} ${x.symbol}` })),
2171
+ el('div', { className: 'addr' }, el('code', { textContent: x.address, title: x.address }), cp,
2172
+ x.explorerUrl ? el('a', { href: x.explorerUrl, target: '_blank', rel: 'noopener', className: 'ext', title: t('walTxs'), 'aria-label': t('walTxs') }, ico('external-link', 14)) : null));
1594
2173
  });
1595
- const pays = (w.payments || []).map((p) => el('small', {},
1596
- `${t(`walSt_${p.status}`)} · ${p.amount} ${p.asset} → ${short(p.to)} · ${new Date(p.createdAt).toLocaleDateString()}${p.reason ? ` · ${p.reason}` : ''} `,
2174
+ const pays = (w.payments || []).map((p) => el('div', { className: 'wpay' },
2175
+ el('span', { className: `st ${p.status}`, textContent: t(`walSt_${p.status}`) }),
2176
+ el('span', { className: 'amt', textContent: `${p.amount} ${p.asset}` }),
2177
+ el('span', { className: 'muted', textContent: `→ ${short(p.to)} · ${new Date(p.createdAt).toLocaleDateString()}${p.reason ? ` · ${p.reason}` : ''}` }),
1597
2178
  p.txUrl ? ext(p.txUrl, `tx ${short(p.txHash)}`) : ''));
1598
2179
  walBody.replaceChildren(
2180
+ el('div', { className: 'who' }, el('b', {}, lg('notlogin.svg'), 'Notlogin'), el('span', { className: 'on', textContent: t('walOn') })),
1599
2181
  ...(w.error ? [el('small', { className: 'bad', textContent: w.error })] : []),
1600
- ...rows,
1601
- el('div', { className: 'vm' }, el('b', {}, t('walPays')), ...(pays.length ? pays : [el('small', { textContent: t('walNoPays') })])),
2182
+ el('div', { className: 'wchains' }, ...chains),
2183
+ el('div', { className: 'vm' }, el('b', {}, t('walPays')), el('div', { className: 'wpays' }, ...(pays.length ? pays : [el('small', { textContent: t('walNoPays') })]))),
1602
2184
  el('small', {}, ext(w.manageUrl, t('walManage'))));
2185
+ // Tokenize: the launch happens on 7ots.com (its kit, SpawnerBot's draft, the owner's Notlogin confirmation)
2186
+ const name = BOOT.identity?.name || '7ots';
2187
+ const PADS = [['spawnerbot.svg', 'SpawnerBot', 'https://spawnerbot.com', 'sb'], ['pumpfun.png', 'pump.fun', 'https://pump.fun'], ['clawpump.png', 'ClawPump', 'https://clawpump.tech'], ['virtuals.png', 'Virtuals', 'https://app.virtuals.io'], ['conductors.svg', 'Conductors', 'https://conductors.io']];
2188
+ $('#wallet').insertBefore(card(lg('spawnerbot.svg', 'ico'), t('tokH', { name }), t('tokD', { name }), null,
2189
+ el('a', { className: 'primary', href: w.manageUrl.replace(/\/wallet$/, '/tokenize'), target: '_blank', rel: 'noopener' }, lg('spawnerbot.svg'), t('tokGo')),
2190
+ el('small', { textContent: t('tokVia') }),
2191
+ el('div', { className: 'pads' }, ...PADS.map(([f, n, href, cls]) => el('a', { href, target: '_blank', rel: 'noopener', className: cls || '' }, lg(f), n)))), walMsg);
1603
2192
  }).catch((e) => walBody.replaceChildren(el('small', { className: 'bad', textContent: e.message })));
1604
2193
 
1605
2194
  // Orquesta: its agents (projects), a default one, and a task box
@@ -1678,7 +2267,64 @@
1678
2267
  loadProjects();
1679
2268
  const orq = card(logo('orquesta', 18), t('orqH'), t('orqD'), toggle(oq.on, (on) => save({ integrations: { orquesta: { on } } }, msg), t('orqH')), tokRow, proj);
1680
2269
 
1681
- // Email: an apumail inbox
2270
+ // byte arena: the twin ot's own byte account (7ots.com creates it; games start from the pet or the chat)
2271
+ const byteBody = el('div', { className: 'rows' }, el('small', { textContent: '…' }));
2272
+ const ext = (href, text) => el('a', { href, target: '_blank', rel: 'noopener', className: 'ext' }, text, ' ', ico('external-link', 12));
2273
+ const drawByte = (b) => {
2274
+ if (!b.available) return byteBody.replaceChildren(el('small', {}, t('byteOff'), ' ', el('a', { href: '#acc', textContent: t('goAcc') })));
2275
+ if (!b.connected) {
2276
+ const go = el('button', { className: 'primary', textContent: t('byteConnect') });
2277
+ go.addEventListener('click', async () => {
2278
+ go.disabled = true;
2279
+ try {
2280
+ drawByte(await api('/byte/connect', {}));
2281
+ } catch (e) {
2282
+ go.disabled = false;
2283
+ flash(msg, t('err', { e: e.message }), 'err');
2284
+ }
2285
+ });
2286
+ return byteBody.replaceChildren(el('div', { className: 'fields' }, go));
2287
+ }
2288
+ const pl = b.play && b.play.status === 'running' ? el('small', {}, t('bytePlaying', { game: b.play.game, moves: b.play.moves ?? 0 }), ' ', b.play.watchUrl ? ext(b.play.watchUrl, t('byteWatch')) : '') : null;
2289
+ const games = el('div', { className: 'bgames' });
2290
+ byteBody.replaceChildren(el('small', { textContent: t('byteOn') }), pl || '',
2291
+ el('small', {}, ...[b.profileUrl && ext(b.profileUrl, t('byteProfile')), b.claimUrl && ext(b.claimUrl, t('byteClaim'))].filter(Boolean).flatMap((a, i) => (i ? [' · ', a] : [a]))), games);
2292
+ if (!pl) api('/byte/games').then((g) => drawGames(games, g.games || [])).catch(() => {});
2293
+ };
2294
+ // byte's games as small covers: 4, and "see more" for the rest. Uploaded/paid ones (playable: false) open on byte.
2295
+ const drawGames = (box, list, all = false) => {
2296
+ if (!list.length) return box.replaceChildren();
2297
+ const tile = (g) => {
2298
+ const cv = el('span', { className: 'cv' }, ico('gamepad', 22));
2299
+ if (g.cover) {
2300
+ const img = el('img', { src: g.cover, alt: '', loading: 'lazy' });
2301
+ img.addEventListener('error', () => img.remove(), { once: true });
2302
+ cv.append(img);
2303
+ }
2304
+ if (g.playable === false) cv.append(el('i', { className: 'tag', textContent: `${t('byteOnly')} ↗` }));
2305
+ const name = el('b', { textContent: g.name || g.slug });
2306
+ if (g.playable === false && g.url) return el('a', { className: 'bgame off', href: g.url, target: '_blank', rel: 'noopener', title: g.description || '' }, cv, name);
2307
+ const b = el('button', { className: 'bgame', type: 'button', title: g.description || '' }, cv, name);
2308
+ b.addEventListener('click', async () => {
2309
+ box.querySelectorAll('button').forEach((x) => (x.disabled = true));
2310
+ name.textContent = t('byteStarting');
2311
+ try {
2312
+ await api('/byte/play', { game: g.slug });
2313
+ } catch (e) {
2314
+ flash(msg, `byte: ${e.message}`, 'err');
2315
+ }
2316
+ api('/byte').then(drawByte).catch(() => {});
2317
+ });
2318
+ return b;
2319
+ };
2320
+ const more = list.length > 4 ? el('button', { className: 'link', type: 'button', textContent: all ? t('byteLess') : t('byteMore', { n: list.length - 4 }) }) : null;
2321
+ more?.addEventListener('click', () => drawGames(box, list, !all));
2322
+ box.replaceChildren(el('small', { className: 'lbl', textContent: t('byteGames') }), el('div', { className: 'grid' }, ...(all ? list : list.slice(0, 4)).map(tile)), more || '');
2323
+ };
2324
+ api('/byte').then(drawByte).catch((e) => byteBody.replaceChildren(el('small', { className: 'bad', textContent: e.message })));
2325
+ const byte = card(el('img', { className: 'ico', src: 'https://app.bytearena.fun/byte-logo-512.png', width: 24, height: 24, alt: 'byte', style: 'border-radius:6px' }), t('byteH'), t('byteD'), null, byteBody);
2326
+
2327
+ // Email: apumail (an inbox token, or an account token that reads every inbox)
1682
2328
  const am = I.apumail || {};
1683
2329
  const inbox = el('input', { type: 'text', value: am.inbox || '', placeholder: 'ot@apumail.com', autocomplete: 'off' });
1684
2330
  const mailTok = keyField('APUMAIL_TOKEN', t('mailToken'));
@@ -1772,7 +2418,7 @@
1772
2418
 
1773
2419
  box.replaceChildren(
1774
2420
  card(logo('7ots', 18), t('cloudH'), t('cloudD'), null, cloudBody),
1775
- orq, mail,
2421
+ orq, byte, mail,
1776
2422
  el('h3', { className: 'sh', textContent: t('customH') }), customBox, msg,
1777
2423
  );
1778
2424
  }
@@ -1954,6 +2600,61 @@
1954
2600
  }
1955
2601
  }
1956
2602
 
2603
+ // ── plaza: how the twin ot takes part in the ots' social network (7ots.com keeps it; the pet only edits it) ──
2604
+ async function loadPlaza() {
2605
+ const box = $('#plaza');
2606
+ const msg = el('span', { className: 'msg', role: 'status' });
2607
+ box.replaceChildren(el('small', { textContent: '…' }));
2608
+ let r;
2609
+ try {
2610
+ r = await api('/plaza/settings');
2611
+ } catch (e) {
2612
+ return box.replaceChildren(el('small', { className: 'bad', textContent: e.message }));
2613
+ }
2614
+ if (!r.available) return box.replaceChildren(el('p', { className: 'hint' }, t('plazaOff'), ' ', el('a', { href: '#acc', textContent: t('goAcc') })));
2615
+ const v = r.ot;
2616
+ const put = async (body) => {
2617
+ try {
2618
+ const out = await api('/plaza/settings', body);
2619
+ Object.assign(v, { on: out.on, tools: out.tools, plaza: out.plaza });
2620
+ if ('tools' in body) S.config.access.prowl = out.tools; // same switch as Permissions › share tools
2621
+ flash(msg, t('saved'));
2622
+ draw();
2623
+ } catch (e) {
2624
+ flash(msg, t('err', { e: errText(e) }), 'err');
2625
+ }
2626
+ };
2627
+ const sw = (label, desc, on, onChange) => {
2628
+ const input = el('input', { type: 'checkbox', checked: on });
2629
+ input.setAttribute('role', 'switch');
2630
+ input.setAttribute('aria-label', label);
2631
+ input.addEventListener('change', () => onChange(input.checked));
2632
+ return el('div', { className: 'sw' }, el('b', { textContent: label }), el('small', { textContent: desc }), el('span', { className: 'tog' }, input, el('span')));
2633
+ };
2634
+ const pick = (name, opts, cur, onPick, multi = false) => el('div', { className: 'chips' }, ...opts.map(([val, text]) => {
2635
+ const input = el('input', { type: multi ? 'checkbox' : 'radio', name, value: val, checked: multi ? cur.includes(val) : cur === val });
2636
+ input.addEventListener('change', () => onPick(input));
2637
+ return el('label', { className: 'chip' }, input, el('span', { textContent: text }));
2638
+ }));
2639
+ const row = (label, desc, ctl) => el('div', { className: 'sw' }, el('b', { textContent: label }), desc ? el('small', { textContent: desc }) : null, el('div', { style: 'grid-column:1 / -1;margin-top:6px' }, ctl));
2640
+ const ext = (href, text) => el('a', { href, target: '_blank', rel: 'noopener', className: 'ext' }, text, ' ', ico('external-link', 12));
2641
+ function draw() {
2642
+ const KINDS = ['photo', 'diary', 'aura', 'level', 'mod', 'byte'];
2643
+ const parts = [sw(t('plazaOn'), t('plazaOnD'), v.on, (on) => put({ on }))];
2644
+ if (v.on) parts.push(
2645
+ row(t('plazaAuto'), t('plazaAutoD'), pick('plazaAuto', ['off', 'low', 'normal'].map((k) => [k, t(`plazaAuto_${k}`)]), v.plaza.auto, (i) => put({ auto: i.value }))),
2646
+ row(t('plazaKinds'), t('plazaKindsD'), pick('plazaKinds', KINDS.map((k) => [k, t(`plazaK_${k}`)]), v.plaza.kinds, () => put({ kinds: [...box.querySelectorAll('[name=plazaKinds]:checked')].map((x) => x.value) }), true)),
2647
+ sw(t('plazaComments'), t('plazaCommentsD'), v.plaza.comments, (comments) => put({ comments })),
2648
+ row(t('plazaLang'), null, pick('plazaLang', [['', t('plazaLangAuto')], ['es', 'Español'], ['en', 'English'], ['pt', 'Português']], v.plaza.lang, (i) => put({ lang: i.value }))),
2649
+ );
2650
+ const pw = sw(t('prowl'), t('prowlD'), v.tools, (tools) => put({ tools }));
2651
+ pw.querySelector('b').prepend(prowlMark());
2652
+ parts.push(pw);
2653
+ box.replaceChildren(...parts, el('div', { className: 'row' }, el('small', {}, ext(`${r.url}${r.house}`, t('plazaHouse')), ' · ', ext(`${r.url}/site/plaza/`, t('plazaOpen'))), msg));
2654
+ }
2655
+ draw();
2656
+ }
2657
+
1957
2658
  // ── notes + reminders ──
1958
2659
  const fmt = (ms) => new Date(ms).toLocaleString(lang, { weekday: 'short', day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit' });
1959
2660
  function renderLists() {