agentpeeps 0.0.0-stage → 0.1.0

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 (231) hide show
  1. package/.agents/plugins/marketplace.json +11 -0
  2. package/.claude-plugin/marketplace.json +12 -0
  3. package/.claude-plugin/plugin.json +9 -0
  4. package/.codex-plugin/plugin.json +39 -0
  5. package/LICENSE +21 -0
  6. package/README.md +251 -2
  7. package/avatars/free/capybaras/capybara-bee-animated.webp +0 -0
  8. package/avatars/free/capybaras/capybara-bee.webp +0 -0
  9. package/avatars/free/capybaras/capybara-duck-animated.webp +0 -0
  10. package/avatars/free/capybaras/capybara-duck.webp +0 -0
  11. package/avatars/free/capybaras/capybara-friends-animated.webp +0 -0
  12. package/avatars/free/capybaras/capybara-friends.webp +0 -0
  13. package/avatars/free/capybaras/capybara-glasses-animated.webp +0 -0
  14. package/avatars/free/capybaras/capybara-glasses.webp +0 -0
  15. package/avatars/free/capybaras/capybara-hair-rollers-animated.webp +0 -0
  16. package/avatars/free/capybaras/capybara-hair-rollers.webp +0 -0
  17. package/avatars/free/capybaras/capybara-harness-animated.webp +0 -0
  18. package/avatars/free/capybaras/capybara-harness.webp +0 -0
  19. package/avatars/free/capybaras/capybara-in-a-dress-animated.webp +0 -0
  20. package/avatars/free/capybaras/capybara-in-a-dress.webp +0 -0
  21. package/avatars/free/capybaras/capybara-rose-animated.webp +0 -0
  22. package/avatars/free/capybaras/capybara-rose.webp +0 -0
  23. package/avatars/free/cats/cat-big-eyes-animated.webp +0 -0
  24. package/avatars/free/cats/cat-big-eyes.webp +0 -0
  25. package/avatars/free/cats/cat-big-yawn-animated.webp +0 -0
  26. package/avatars/free/cats/cat-big-yawn.webp +0 -0
  27. package/avatars/free/cats/cat-curious-kitten-animated.webp +0 -0
  28. package/avatars/free/cats/cat-curious-kitten.webp +0 -0
  29. package/avatars/free/cats/cat-fluffy-round-animated.webp +0 -0
  30. package/avatars/free/cats/cat-fluffy-round.webp +0 -0
  31. package/avatars/free/cats/cat-french-fries-animated.webp +0 -0
  32. package/avatars/free/cats/cat-french-fries.webp +0 -0
  33. package/avatars/free/cats/cat-grumpy-animated.webp +0 -0
  34. package/avatars/free/cats/cat-grumpy.webp +0 -0
  35. package/avatars/free/cats/cat-in-a-banana-animated.webp +0 -0
  36. package/avatars/free/cats/cat-in-a-banana.webp +0 -0
  37. package/avatars/free/cats/cat-long-neck-animated.webp +0 -0
  38. package/avatars/free/cats/cat-long-neck.webp +0 -0
  39. package/avatars/free/cats/cat-lying-down-animated.webp +0 -0
  40. package/avatars/free/cats/cat-lying-down.webp +0 -0
  41. package/avatars/free/cats/cat-on-its-back-animated.webp +0 -0
  42. package/avatars/free/cats/cat-on-its-back.webp +0 -0
  43. package/avatars/free/cats/cat-open-mouth-animated.webp +0 -0
  44. package/avatars/free/cats/cat-open-mouth.webp +0 -0
  45. package/avatars/free/cats/cat-orange-costume-animated.webp +0 -0
  46. package/avatars/free/cats/cat-orange-costume.webp +0 -0
  47. package/avatars/free/cats/cat-orange-kitten-animated.webp +0 -0
  48. package/avatars/free/cats/cat-orange-kitten.webp +0 -0
  49. package/avatars/free/cats/cat-pizza-animated.webp +0 -0
  50. package/avatars/free/cats/cat-pizza.webp +0 -0
  51. package/avatars/free/cats/cat-pointy-ears-animated.webp +0 -0
  52. package/avatars/free/cats/cat-pointy-ears.webp +0 -0
  53. package/avatars/free/cats/cat-round-face-animated.webp +0 -0
  54. package/avatars/free/cats/cat-round-face.webp +0 -0
  55. package/avatars/free/cats/cat-round-profile-animated.webp +0 -0
  56. package/avatars/free/cats/cat-round-profile.webp +0 -0
  57. package/avatars/free/cats/cat-smirk-animated.webp +0 -0
  58. package/avatars/free/cats/cat-smirk.webp +0 -0
  59. package/avatars/free/cats/cat-squinting-animated.webp +0 -0
  60. package/avatars/free/cats/cat-squinting.webp +0 -0
  61. package/avatars/free/cats/cat-standing-kitten-animated.webp +0 -0
  62. package/avatars/free/cats/cat-standing-kitten.webp +0 -0
  63. package/avatars/free/cats/cat-standing-up-animated.webp +0 -0
  64. package/avatars/free/cats/cat-standing-up.webp +0 -0
  65. package/avatars/free/cats/cat-sunglasses-animated.webp +0 -0
  66. package/avatars/free/cats/cat-sunglasses.webp +0 -0
  67. package/avatars/free/cats/cat-tabby-animated.webp +0 -0
  68. package/avatars/free/cats/cat-tabby-pile-animated.webp +0 -0
  69. package/avatars/free/cats/cat-tabby-pile.webp +0 -0
  70. package/avatars/free/cats/cat-tabby-stare-animated.webp +0 -0
  71. package/avatars/free/cats/cat-tabby-stare.webp +0 -0
  72. package/avatars/free/cats/cat-tabby.webp +0 -0
  73. package/avatars/free/cats/cat-white-side-eye-animated.webp +0 -0
  74. package/avatars/free/cats/cat-white-side-eye.webp +0 -0
  75. package/avatars/free/color-blobs/blob-black-orb.webp +0 -0
  76. package/avatars/free/color-blobs/blob-blue-triangle.webp +0 -0
  77. package/avatars/free/color-blobs/blob-brown-clover.webp +0 -0
  78. package/avatars/free/color-blobs/blob-gray-pebble.webp +0 -0
  79. package/avatars/free/color-blobs/blob-green-capsule.webp +0 -0
  80. package/avatars/free/color-blobs/blob-orange-cloud.webp +0 -0
  81. package/avatars/free/costume-cats/banana-cat.webp +0 -0
  82. package/avatars/free/costume-cats/blanket-cat.webp +0 -0
  83. package/avatars/free/costume-cats/blueberry-cat.webp +0 -0
  84. package/avatars/free/costume-cats/fish-snack-cat.webp +0 -0
  85. package/avatars/free/costume-cats/frog-hood-cat.webp +0 -0
  86. package/avatars/free/costume-cats/headphone-cat.webp +0 -0
  87. package/avatars/free/costume-cats/shark-hood-cat.webp +0 -0
  88. package/avatars/free/critters/hamster-paws-animated.webp +0 -0
  89. package/avatars/free/critters/hamster-paws.webp +0 -0
  90. package/avatars/free/critters/pigeon-hop-animated.webp +0 -0
  91. package/avatars/free/critters/t-rex-guitar-animated.webp +0 -0
  92. package/avatars/free/critters/t-rex-guitar.webp +0 -0
  93. package/avatars/free/critters/teary-pink-blob.webp +0 -0
  94. package/avatars/free/flame-expressions/flame-angry.webp +0 -0
  95. package/avatars/free/flame-expressions/flame-confusion.webp +0 -0
  96. package/avatars/free/flame-expressions/flame-friendly.webp +0 -0
  97. package/avatars/free/flame-expressions/flame-gusto.webp +0 -0
  98. package/avatars/free/flame-expressions/flame-joy.webp +0 -0
  99. package/avatars/free/flame-expressions/flame-sly.webp +0 -0
  100. package/avatars/free/flame-expressions/flame-upset.webp +0 -0
  101. package/avatars/free/flame-expressions/flame-walk.webp +0 -0
  102. package/avatars/free/flame-expressions/flame-watching.webp +0 -0
  103. package/avatars/free/fruit-cats/cherry-cat.webp +0 -0
  104. package/avatars/free/fruit-cats/kiwi-cat.webp +0 -0
  105. package/avatars/free/fruit-cats/orange-cat.webp +0 -0
  106. package/avatars/free/fruit-cats/pineapple-cat.webp +0 -0
  107. package/avatars/free/fruit-cats/strawberry-cat.webp +0 -0
  108. package/avatars/free/fruit-cats/watermelon-cat.webp +0 -0
  109. package/avatars/free/gradient-icons/gradient-cat-skull.webp +0 -0
  110. package/avatars/free/gradient-icons/gradient-chef.webp +0 -0
  111. package/avatars/free/gradient-icons/gradient-eyed-shadow.webp +0 -0
  112. package/avatars/free/gradient-icons/gradient-flame.webp +0 -0
  113. package/avatars/free/gradient-icons/gradient-rabbit-shadow.webp +0 -0
  114. package/avatars/free/gradient-icons/gradient-sleepy-ghost.webp +0 -0
  115. package/avatars/free/manga-faces/manga-bangs-smile.webp +0 -0
  116. package/avatars/free/manga-faces/manga-bob-side-eye.webp +0 -0
  117. package/avatars/free/manga-faces/manga-closed-eyes-frown.webp +0 -0
  118. package/avatars/free/manga-faces/manga-glasses-headset.webp +0 -0
  119. package/avatars/free/manga-faces/manga-glasses-wink.webp +0 -0
  120. package/avatars/free/manga-faces/manga-short-hair-smile.webp +0 -0
  121. package/avatars/free/manga-faces/manga-side-part-wink.webp +0 -0
  122. package/avatars/free/manga-faces/manga-side-swept-smile.webp +0 -0
  123. package/avatars/free/manga-faces/manga-tousled-grin.webp +0 -0
  124. package/avatars/free/monster-icons/monster-amber-chick.webp +0 -0
  125. package/avatars/free/monster-icons/monster-aqua-frog.webp +0 -0
  126. package/avatars/free/monster-icons/monster-coral-alien.webp +0 -0
  127. package/avatars/free/monster-icons/monster-indigo-boar.webp +0 -0
  128. package/avatars/free/monster-icons/monster-lavender-bunny.webp +0 -0
  129. package/avatars/free/monster-icons/monster-navy-cyclops.webp +0 -0
  130. package/avatars/free/monster-icons/monster-orange-fish.webp +0 -0
  131. package/avatars/free/monster-icons/monster-pink-sleepy-cat.webp +0 -0
  132. package/avatars/free/monster-icons/monster-purple-octopus.webp +0 -0
  133. package/avatars/free/monster-icons/monster-red-stalk-eyes.webp +0 -0
  134. package/avatars/free/monster-icons/monster-rose-bat.webp +0 -0
  135. package/avatars/free/monster-icons/monster-teal-crocodile.webp +0 -0
  136. package/avatars/free/pixel-food/pixel-astronaut.webp +0 -0
  137. package/avatars/free/pixel-food/pixel-block-sprout.webp +0 -0
  138. package/avatars/free/pixel-food/pixel-blue-hair.webp +0 -0
  139. package/avatars/free/pixel-food/pixel-blue-horned.webp +0 -0
  140. package/avatars/free/pixel-food/pixel-cat-glasses.webp +0 -0
  141. package/avatars/free/pixel-food/pixel-cone-hat.webp +0 -0
  142. package/avatars/free/pixel-food/pixel-maroon-creature.webp +0 -0
  143. package/avatars/free/pixel-food/pixel-orange-creature.webp +0 -0
  144. package/avatars/free/pixel-food/pixel-orange-sprout.webp +0 -0
  145. package/avatars/free/pixel-food/pixel-red-hood.webp +0 -0
  146. package/avatars/free/pixel-food/pixel-watermelon.webp +0 -0
  147. package/avatars/free/pixel-food/pixel-white-bunny.webp +0 -0
  148. package/avatars/free/plush-blobs/plush-blue-alarmed.webp +0 -0
  149. package/avatars/free/plush-blobs/plush-green-surprised.webp +0 -0
  150. package/avatars/free/plush-blobs/plush-pink-smile.webp +0 -0
  151. package/avatars/free/plush-blobs/plush-red-angry.webp +0 -0
  152. package/avatars/free/plush-blobs/plush-yellow-frustrated.webp +0 -0
  153. package/avatars/free/retro-windows/retro-arrow-cursor.webp +0 -0
  154. package/avatars/free/retro-windows/retro-blank-window.webp +0 -0
  155. package/avatars/free/retro-windows/retro-cyan-notepad.webp +0 -0
  156. package/avatars/free/retro-windows/retro-desktop-computer.webp +0 -0
  157. package/avatars/free/retro-windows/retro-dialog-stack.webp +0 -0
  158. package/avatars/free/retro-windows/retro-eye-warning.webp +0 -0
  159. package/avatars/free/retro-windows/retro-gear-document.webp +0 -0
  160. package/avatars/free/retro-windows/retro-hand-cursor.webp +0 -0
  161. package/avatars/free/retro-windows/retro-heart-pet.webp +0 -0
  162. package/avatars/free/retro-windows/retro-music-cd.webp +0 -0
  163. package/avatars/free/retro-windows/retro-paint-palette.webp +0 -0
  164. package/avatars/free/retro-windows/retro-pen-notepad.webp +0 -0
  165. package/avatars/free/retro-windows/retro-pixel-tree.webp +0 -0
  166. package/avatars/free/retro-windows/retro-recycle-bin.webp +0 -0
  167. package/avatars/free/retro-windows/retro-warning-triangle.webp +0 -0
  168. package/avatars/free/retro-windows/retro-yellow-folder.webp +0 -0
  169. package/avatars/free/seals-and-sea-lions/otter-tongue-out-animated.webp +0 -0
  170. package/avatars/free/seals-and-sea-lions/otter-tongue-out.webp +0 -0
  171. package/avatars/free/seals-and-sea-lions/sea-lion-curious-face-animated.webp +0 -0
  172. package/avatars/free/seals-and-sea-lions/sea-lion-curious-face.webp +0 -0
  173. package/avatars/free/seals-and-sea-lions/sea-lion-gliding-animated.webp +0 -0
  174. package/avatars/free/seals-and-sea-lions/sea-lion-gliding.webp +0 -0
  175. package/avatars/free/seals-and-sea-lions/sea-lion-green-hood-animated.webp +0 -0
  176. package/avatars/free/seals-and-sea-lions/sea-lion-green-hood.webp +0 -0
  177. package/avatars/free/seals-and-sea-lions/sea-lion-mid-flip-animated.webp +0 -0
  178. package/avatars/free/seals-and-sea-lions/sea-lion-mid-flip.webp +0 -0
  179. package/avatars/free/seals-and-sea-lions/sea-lion-nose-boop-animated.webp +0 -0
  180. package/avatars/free/seals-and-sea-lions/sea-lion-nose-boop.webp +0 -0
  181. package/avatars/free/seals-and-sea-lions/sea-lion-on-a-rock-animated.webp +0 -0
  182. package/avatars/free/seals-and-sea-lions/sea-lion-on-a-rock.webp +0 -0
  183. package/avatars/free/seals-and-sea-lions/sea-lion-raised-flipper-animated.webp +0 -0
  184. package/avatars/free/seals-and-sea-lions/sea-lion-raised-flipper.webp +0 -0
  185. package/avatars/free/seals-and-sea-lions/sea-lion-sitting-profile-animated.webp +0 -0
  186. package/avatars/free/seals-and-sea-lions/sea-lion-sitting-profile.webp +0 -0
  187. package/avatars/free/seals-and-sea-lions/seal-big-whiskers-animated.webp +0 -0
  188. package/avatars/free/seals-and-sea-lions/seal-big-whiskers.webp +0 -0
  189. package/avatars/free/seals-and-sea-lions/seal-blinking-pup-animated.webp +0 -0
  190. package/avatars/free/seals-and-sea-lions/seal-blinking-pup.webp +0 -0
  191. package/avatars/free/seals-and-sea-lions/seal-blue-flipper-animated.webp +0 -0
  192. package/avatars/free/seals-and-sea-lions/seal-blue-flipper.webp +0 -0
  193. package/avatars/free/seals-and-sea-lions/seal-bunny-ears-animated.webp +0 -0
  194. package/avatars/free/seals-and-sea-lions/seal-bunny-ears.webp +0 -0
  195. package/avatars/free/seals-and-sea-lions/seal-heart-sunglasses-animated.webp +0 -0
  196. package/avatars/free/seals-and-sea-lions/seal-heart-sunglasses.webp +0 -0
  197. package/avatars/free/seals-and-sea-lions/seal-looking-back-animated.webp +0 -0
  198. package/avatars/free/seals-and-sea-lions/seal-looking-back.webp +0 -0
  199. package/avatars/free/seals-and-sea-lions/seal-side-eye-animated.webp +0 -0
  200. package/avatars/free/seals-and-sea-lions/seal-side-eye.webp +0 -0
  201. package/avatars/free/seals-and-sea-lions/seal-smiling-pup-animated.webp +0 -0
  202. package/avatars/free/seals-and-sea-lions/seal-smiling-pup.webp +0 -0
  203. package/avatars/free/seals-and-sea-lions/seal-upside-down-animated.webp +0 -0
  204. package/avatars/free/seals-and-sea-lions/seal-upside-down.webp +0 -0
  205. package/avatars/free/veggie-doodles/veggie-bok-choy.webp +0 -0
  206. package/avatars/free/veggie-doodles/veggie-broccoli.webp +0 -0
  207. package/avatars/free/veggie-doodles/veggie-cabbage.webp +0 -0
  208. package/avatars/free/veggie-doodles/veggie-eggplant.webp +0 -0
  209. package/avatars/free/veggie-doodles/veggie-garlic.webp +0 -0
  210. package/avatars/free/veggie-doodles/veggie-ginger.webp +0 -0
  211. package/avatars/free/veggie-doodles/veggie-leek.webp +0 -0
  212. package/avatars/free/veggie-doodles/veggie-potato.webp +0 -0
  213. package/avatars/free/veggie-doodles/veggie-purple-tomato.webp +0 -0
  214. package/avatars/free/veggie-doodles/veggie-scallion.webp +0 -0
  215. package/avatars/free/veggie-doodles/veggie-squash.webp +0 -0
  216. package/avatars/free/veggie-doodles/veggie-tomato.webp +0 -0
  217. package/avatars/terminal.json +1 -0
  218. package/cli.js +529 -0
  219. package/hooks/claude.json +14 -0
  220. package/logo.png +0 -0
  221. package/logo.svg +8 -0
  222. package/overlay/agents/antigravity.svg +1 -0
  223. package/overlay/agents/claude.svg +1 -0
  224. package/overlay/agents/codex.svg +1 -0
  225. package/overlay/agents/copilot.svg +1 -0
  226. package/overlay/control.html +528 -0
  227. package/overlay/index.html +365 -0
  228. package/overlay/main.js +361 -0
  229. package/overlay/preload.js +21 -0
  230. package/package.json +50 -4
  231. package/skills/agent-presence/SKILL.md +33 -0
@@ -0,0 +1,365 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src file: data:; style-src 'unsafe-inline'; script-src 'unsafe-inline'">
6
+ <title>Agent Peeps</title>
7
+ <style>
8
+ :root { --main: 52px; --sub: 32px; --op: 1; --bfs: 12px;
9
+ --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
10
+ --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; }
11
+ html, body { margin: 0; height: 100%; background: transparent; overflow: hidden; user-select: none; font: 500 12px/1.35 var(--sans); }
12
+ body.size-medium { --main: 68px; --sub: 40px; }
13
+ body.size-large { --main: 88px; --sub: 52px; }
14
+ body.bs-small { --bfs: 11px; }
15
+ body.bs-large { --bfs: 13.5px; }
16
+
17
+ /* bubble colors: light theme = dark text, dark theme = white text; "th-*" forces one; a custom text color overrides --bt */
18
+ body { --bb: rgba(255,255,255,.97); --bt: #0b0b0c; --bl: rgba(0,0,0,.14); --bsh: 0 0 2px #fff, 0 0 7px rgba(255,255,255,.95); }
19
+ @media (prefers-color-scheme: dark) {
20
+ body:not(.th-light) { --bb: rgba(17,18,22,.95); --bt: #f5f5f6; --bl: rgba(255,255,255,.16); --bsh: 0 1px 2px rgba(0,0,0,.9), 0 0 7px rgba(0,0,0,.65); }
21
+ }
22
+ body.th-dark { --bb: rgba(17,18,22,.95); --bt: #f5f5f6; --bl: rgba(255,255,255,.16); --bsh: 0 1px 2px rgba(0,0,0,.9), 0 0 7px rgba(0,0,0,.65); }
23
+ body { --bm: color-mix(in srgb, var(--bt) 62%, transparent); }
24
+
25
+ /* groups that were never dragged line up here, bottom-right; dragged ones sit where they were dropped */
26
+ #dock { position: fixed; right: 20px; bottom: 14px; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 14px; }
27
+ .group { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 4px; opacity: var(--op); transition: opacity .2s; }
28
+ .group:hover { opacity: 1; }
29
+ .group.placed { position: fixed; }
30
+ .group.resting, .group.off { display: none; }
31
+
32
+ /* helpers: joined to their agent by a line (default), in a dashed pod, or just beside it */
33
+ .subs { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 4px; }
34
+ .subs:empty, body.no-subs .subs { display: none; }
35
+ .hl-pod .subs { padding: 3px 5px; margin-bottom: 4px; border-radius: 999px; background: color-mix(in srgb, var(--agent) 28%, transparent); border: 1.5px dashed var(--agent); }
36
+ .hl-line .subs, .hl-none .subs { margin-bottom: calc((var(--main) - var(--sub)) / 2); gap: 8px; padding-right: 6px; }
37
+ .hl-line .subs::before { content: ""; position: absolute; z-index: -1; left: calc(var(--sub) / 2); right: -6px; top: calc(50% - 1px); height: 2px; border-radius: 2px;
38
+ background: linear-gradient(90deg, color-mix(in srgb, var(--agent) 35%, transparent), var(--agent)); }
39
+ .hl-line .subs::after { content: ""; position: absolute; right: -8px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--agent); }
40
+
41
+ .chibi { position: relative; cursor: grab; }
42
+ .sticker { display: block; width: var(--main); height: var(--main); object-fit: contain; -webkit-user-drag: none; box-sizing: border-box;
43
+ filter: drop-shadow(0 3px 4px rgba(40,20,10,.28)); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
44
+ .sticker.logo { background: #fff; border-radius: 50%; padding: 20%; }
45
+ .sub .sticker { width: var(--sub); height: var(--sub); }
46
+ .sub .sticker.logo { box-shadow: 0 0 0 2px var(--agent); }
47
+ .chibi:hover .sticker { transform: translateY(-3px) scale(1.06); }
48
+ .hl-pod .sub::after { content: attr(data-parent); position: absolute; left: -3px; top: -3px; width: 14px; height: 14px; border-radius: 50%;
49
+ background: var(--agent); color: #2b2020; font: 800 9px/14px var(--sans); text-align: center; box-shadow: 0 0 0 1.5px #fff; }
50
+
51
+ /* status: a line icon with a white die-cut outline, like the stickers */
52
+ .icon { position: absolute; top: -5px; right: -6px; width: 18px; height: 18px; pointer-events: none; }
53
+ .sub .icon { width: 14px; height: 14px; top: -4px; right: -5px; }
54
+ .no-icon .icon { display: none; }
55
+ .icon svg { width: 100%; height: 100%; overflow: visible; }
56
+ .icon .halo { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
57
+ .icon .ink { fill: none; stroke: var(--ic, #33262a); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
58
+ .icon .dots .ink { stroke-width: 4; }
59
+ .s-waiting .icon { --ic: #e5483b; animation: nudge 1.4s ease-in-out infinite; }
60
+ .s-done .icon { --ic: #2f9e5b; }
61
+
62
+ /* speech bubble: hover, click a sticker to pin it, opens by itself when an agent needs you (b-auto), Peek opens all */
63
+ .info { display: none; position: absolute; bottom: 100%; right: 0; z-index: 5; padding-bottom: 9px; }
64
+ .info.left { right: auto; left: 0; }
65
+ .chibi:hover .info, .chibi.pinned .info, .b-auto .chibi.s-waiting .info, .peek .info, .chibi.force-hover .info { display: block; }
66
+ .chibi:hover .info { z-index: 6; } /* the one you point at wins over an auto-opened neighbor */
67
+ .b-off .info, .b-off .line { display: none !important; }
68
+ .card { position: relative; min-width: 140px; max-width: 300px; padding: 7px 10px 8px; border-radius: 11px; color: var(--bt); background: var(--bb);
69
+ border: 1px solid var(--bl); box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: var(--bfs); white-space: nowrap; animation: rise .16s ease-out; }
70
+ .card::after { content: ""; position: absolute; bottom: -5px; right: calc(var(--main) / 2 - 5px); width: 8px; height: 8px; background: var(--bb);
71
+ border-right: 1px solid var(--bl); border-bottom: 1px solid var(--bl); transform: rotate(45deg); }
72
+ .sub .card::after { right: calc(var(--sub) / 2 - 5px); }
73
+ .left .card::after { right: auto; left: calc(var(--main) / 2 - 5px); }
74
+ .sub .left .card::after { left: calc(var(--sub) / 2 - 5px); }
75
+ .b-noborder .card, .b-noborder .card::after { border-color: transparent; }
76
+ .b-text .card { background: none; border-color: transparent; box-shadow: none; padding: 0; text-shadow: var(--bsh); }
77
+ .b-text .card::after { display: none; }
78
+ .pinned .card { box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 0 0 2px var(--agent); }
79
+ .b-text .pinned .card { box-shadow: none; }
80
+
81
+ .hd { display: flex; align-items: baseline; gap: 6px; }
82
+ .who { font-weight: 700; }
83
+ .meta { color: var(--bm); font-size: .9em; overflow: hidden; text-overflow: ellipsis; }
84
+ .what { display: flex; align-items: center; gap: 6px; margin-top: 3px; overflow: hidden; }
85
+ .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #9ca3af); }
86
+ .verb { font-weight: 600; }
87
+ .obj { font: 500 .92em var(--mono); color: var(--bm); overflow: hidden; text-overflow: ellipsis; }
88
+ .files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
89
+ .files:empty { display: none; }
90
+ .files button { border: 1px solid var(--bl); background: none; color: var(--bm); border-radius: 6px; padding: 1px 6px; font: 500 .85em var(--mono);
91
+ cursor: pointer; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
92
+ .files button:hover { color: var(--bt); border-color: var(--bt); }
93
+ .b-text .files button { border-color: transparent; padding: 0; text-shadow: var(--bsh); }
94
+ .stats { margin-top: 5px; color: var(--bm); font: 500 .82em var(--mono); }
95
+ .b-nostats .stats { display: none; }
96
+ .s-thinking { --dot: #a78bfa; } .s-reading { --dot: #60a5fa; } .s-writing { --dot: #f59e0b; } .s-running { --dot: #34d399; }
97
+ .s-delegating { --dot: #f472b6; } .s-browsing { --dot: #38bdf8; } .s-working { --dot: #fbbf24; } .s-waiting { --dot: #ef4444; } .s-done { --dot: #22c55e; }
98
+
99
+ /* Details: Always -> one short line under each sticker */
100
+ .line { display: none; }
101
+ body.details-always .line { display: block; width: max-content; max-width: 130px; margin: 3px auto 0; padding: 1px 7px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
102
+ font-size: 10.5px; color: var(--bt); background: var(--bb); border: 1px solid var(--bl); }
103
+ body.details-always .sub .line { font-size: 9.5px; max-width: 84px; }
104
+ body.details-always.b-noborder .line { border-color: transparent; }
105
+ body.details-always.b-text .line { background: none; border-color: transparent; text-shadow: var(--bsh); }
106
+ body.details-always .chibi:hover .line { visibility: hidden; }
107
+
108
+ /* motion: calm = slow loops while working; lively adds a pulse ring when it needs you, a hop on each step and a bounce when done */
109
+ .s-thinking .sticker { animation: sway 3s ease-in-out infinite; }
110
+ .s-reading .sticker { animation: tilt 2.4s ease-in-out infinite; }
111
+ .s-writing .sticker { animation: wiggle .6s ease-in-out infinite; }
112
+ .s-running .sticker, .s-waiting .sticker { animation: hop 1.2s ease-in-out infinite; }
113
+ .s-delegating .sticker, .s-browsing .sticker, .s-working .sticker { animation: pulse 1.8s ease-in-out infinite; }
114
+ .s-idle .sticker, .s-done .sticker { opacity: .85; }
115
+ .mo-lively .s-waiting .sticker { border-radius: 50%; animation: hop 1.2s ease-in-out infinite, ring 1.6s ease-out infinite; }
116
+ .mo-lively .bump .sticker { animation: bump .35s cubic-bezier(.3, 1.6, .5, 1); }
117
+ .mo-lively .yay .sticker { animation: yay .9s cubic-bezier(.3, 1.6, .5, 1); opacity: 1; }
118
+ .mo-lively .s-reading .dot, .mo-lively .s-writing .dot, .mo-lively .s-running .dot, .mo-lively .s-working .dot,
119
+ .mo-lively .s-delegating .dot, .mo-lively .s-browsing .dot, .mo-lively .s-waiting .dot { animation: blink 1.2s ease-in-out infinite; }
120
+ .mo-off *, .mo-off *::before, .mo-off *::after { animation: none !important; transition: none !important; }
121
+ .enter { animation: pop .4s cubic-bezier(.3, 1.5, .5, 1); }
122
+ .leave { animation: leave .25s ease-in forwards; }
123
+
124
+ #toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; padding: 7px 13px; border-radius: 10px; background: rgba(17,18,22,.94); color: #f5f5f6;
125
+ border: 1px solid rgba(255,255,255,.14); font: 600 12px var(--mono); box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s, translate .2s; pointer-events: none; }
126
+ #toast.on { opacity: 1; translate: -50% -6px; }
127
+
128
+ @keyframes sway { 50% { transform: rotate(3deg); } }
129
+ @keyframes tilt { 50% { transform: rotate(-4deg); } }
130
+ @keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
131
+ @keyframes hop { 40% { transform: translateY(-4px); } }
132
+ @keyframes pulse { 50% { transform: scale(1.04); } }
133
+ @keyframes nudge { 50% { transform: scale(1.2); } }
134
+ @keyframes ring { from { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } to { box-shadow: 0 0 0 14px rgba(239,68,68,0); } }
135
+ @keyframes bump { 40% { transform: translateY(-5px) scale(1.08); } }
136
+ @keyframes yay { 25% { transform: translateY(-12px) rotate(-10deg) scale(1.12); } 55% { transform: translateY(0) rotate(8deg); } 75% { transform: rotate(-4deg); } }
137
+ @keyframes blink { 50% { opacity: .35; } }
138
+ @keyframes rise { from { opacity: 0; transform: translateY(4px); } }
139
+ @keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
140
+ @keyframes leave { to { transform: scale(.4); opacity: 0; } }
141
+
142
+ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
143
+ </style>
144
+ </head>
145
+ <body class="size-small hl-line mo-lively b-auto">
146
+ <div id="dock"></div>
147
+ <div id="toast"></div>
148
+ <script>
149
+ const dock = document.getElementById('dock');
150
+ const agents = new Map(); // key -> { el, e, files, group?, subs?, main, since, tools, touched }
151
+ let cfg = { avatars: {}, names: {}, size: 'small', details: 'hover', show: 'working', agents: {}, helpers: 'line', motion: 'lively', bubble: {} };
152
+ let peek = false;
153
+
154
+ // 24px line icons (drawn twice: white outline, then ink)
155
+ const ICON = {
156
+ thinking: ['M5 12h.01M12 12h.01M19 12h.01', 'dots'],
157
+ reading: ['M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12zM12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'],
158
+ writing: ['M15.5 4.5l4 4L8 20H4v-4zM13 7l4 4'],
159
+ running: ['M4 17l6-5-6-5M12.5 19H20'],
160
+ delegating: ['M6 4v10M6 14a4 4 0 0 0 4 4h4M18 6a2.5 2.5 0 1 0 0 .01M16.5 18a2.5 2.5 0 1 0 5 0 2.5 2.5 0 0 0-5 0M18 8.5c0 4-4 5.5-8 5.5'],
161
+ browsing: ['M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18'],
162
+ working: ['M13 3L5 13.5h6L10 21l8-10.5h-6z'],
163
+ waiting: ['M12 7v6M12 17.5h.01'],
164
+ done: ['M5 12.5l4.5 4.5L19 7'],
165
+ };
166
+ const VERB = { thinking: 'thinking', reading: 'reading', writing: 'writing', running: 'running', delegating: 'handing off', browsing: 'browsing',
167
+ working: 'working', waiting: 'needs you', done: 'done', idle: 'waiting for a prompt' };
168
+ const TOOL = new Set(['reading', 'writing', 'running', 'delegating', 'browsing', 'working']);
169
+ const COLOR = { claude: '#f6a983', codex: '#8fdcc6', copilot: '#8cc8f5', antigravity: '#f7a8c8' };
170
+ const LOGO = { claude: 1, codex: 1, copilot: 1, antigravity: 1 };
171
+ const STALE = 15 * 60e3, REST_MS = { done: 15e3, idle: 6e3 };
172
+ const base = p => String(p).split(/[\\/]/).filter(Boolean).pop() || String(p);
173
+ const cap = s => (s ? s[0].toUpperCase() + s.slice(1) : '');
174
+ const nameOf = e => (cfg.names || {})[e.agent] || cap(e.agent);
175
+ const hash = s => [...String(s)].reduce((h, c) => (h * 31 + c.charCodeAt(0)) >>> 0, 7);
176
+ const colorOf = agent => COLOR[agent] || '#e8dccf';
177
+ const LETTER = { claude: 'C', codex: 'X', copilot: 'P', antigravity: 'A' };
178
+ const letterOf = agent => LETTER[agent] || cap(agent)[0];
179
+ const plural = (n, w) => n + ' ' + w + (n === 1 ? '' : 's');
180
+ const dur = ms => { const s = Math.max(0, Math.round(ms / 1000)); return s < 60 ? s + 's' : s < 3600 ? Math.floor(s / 60) + 'm ' + (s % 60) + 's' : Math.floor(s / 3600) + 'h ' + Math.floor(s / 60) % 60 + 'm'; };
181
+ // unknown agents: colored disc + initial
182
+ const disc = (letter, fill, ring = '#fff') => 'data:image/svg+xml,' + encodeURIComponent(
183
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="28" fill="${fill}" stroke="${ring}" stroke-width="5"/>`
184
+ + `<text x="32" y="42.5" font-family="Segoe UI,system-ui,sans-serif" font-size="29" font-weight="800" text-anchor="middle" fill="#2b2020">${letter}</text></svg>`);
185
+
186
+ function make(e) {
187
+ const el = document.createElement('div');
188
+ el.className = 'chibi' + (e.sub ? ' sub' : '');
189
+ if (e.sub) el.dataset.parent = letterOf(e.agent);
190
+ el.innerHTML = '<div class="enter"><div class="info"><div class="card"><div class="hd"><span class="who"></span><span class="meta"></span></div>'
191
+ + '<div class="what"><i class="dot"></i><span class="verb"></span><span class="obj"></span></div><div class="files"></div><div class="stats"></div></div></div>'
192
+ + '<img class="sticker" alt=""><div class="icon"></div><div class="line"></div></div>';
193
+ el.addEventListener('contextmenu', ev => { ev.preventDefault(); ap.menu({ agent: e.agent, subType: e.sub ? (e.subType || '') : null }); });
194
+ el.addEventListener('mouseenter', () => side(el));
195
+ return el;
196
+ }
197
+ const side = el => el.querySelector('.info').classList.toggle('left', el.getBoundingClientRect().left < 320);
198
+
199
+ // "model:opus" rules: the longest one contained in the session's model wins.
200
+ const byModel = (av, model) => {
201
+ const m = String(model || '').toLowerCase();
202
+ const k = m && Object.keys(av).filter(k => k.startsWith('model:') && m.includes(k.slice(6).toLowerCase())).sort((x, y) => y.length - x.length)[0];
203
+ return k ? av[k] : null;
204
+ };
205
+ // A list of stickers per key: each session (or helper) keeps one, picked from its id. Default: the agent's own logo.
206
+ function avatar(a) {
207
+ const img = a.el.querySelector('.sticker'), av = cfg.avatars || {}, e = a.e;
208
+ const set = e.sub ? av[e.subType] || av[e.agent + '-subagent'] || av.subagent : byModel(av, a.model) || av[e.agent];
209
+ img.classList.toggle('logo', !set && !!LOGO[e.agent]);
210
+ img.src = set ? set[hash(e.session + (e.sub || '')) % set.length]
211
+ : LOGO[e.agent] ? 'agents/' + e.agent + '.svg'
212
+ : e.sub ? disc((e.subType || 'S')[0].toUpperCase(), '#fff', colorOf(e.agent)) : disc(letterOf(e.agent), colorOf(e.agent));
213
+ }
214
+
215
+ function icon(state) {
216
+ const i = ICON[state];
217
+ if (!i) return '';
218
+ return `<svg viewBox="0 0 24 24"${i[1] ? ` class="${i[1]}"` : ''}><path class="halo" d="${i[0]}"/><path class="ink" d="${i[0]}"/>`
219
+ + (state === 'waiting' ? '<circle class="halo" cx="12" cy="12" r="9.5"/><circle class="ink" cx="12" cy="12" r="9.5"/><path class="ink" d="M12 7v6M12 17.5h.01"/>' : '') + '</svg>';
220
+ }
221
+
222
+ const stats = a => a.el.querySelector('.stats').textContent = plural(a.tools, 'tool') + ' · ' + plural(a.touched.size, 'file') + ' · ' + dur(Date.now() - a.since);
223
+
224
+ function paint(a) {
225
+ const e = a.e, state = e.state, q = s => a.el.querySelector(s);
226
+ a.el.className = a.el.className.replace(/\s*s-\w+/g, '') + ' s-' + state;
227
+ const what = state === 'running' || state === 'browsing' || state === 'delegating' ? e.detail || (e.file && base(e.file)) : e.file ? base(e.file) : e.detail;
228
+ q('.icon').innerHTML = icon(state);
229
+ q('.who').textContent = e.sub ? (e.subType || 'helper') : nameOf(e);
230
+ q('.meta').textContent = e.sub ? 'helping ' + nameOf(e) : [a.model, e.cwd && base(e.cwd)].filter(Boolean).join(' · ');
231
+ q('.verb').textContent = VERB[state] || state;
232
+ q('.obj').textContent = state === 'waiting' ? (e.detail && e.detail !== 'needs you' ? e.detail : '') : what && state !== 'done' && state !== 'idle' ? what : '';
233
+ q('.line').textContent = state === 'waiting' ? 'needs you' : state === 'done' || state === 'idle' ? nameOf(e) : what || VERB[state] || '';
234
+ stats(a);
235
+ if (state === 'waiting') side(a.el);
236
+ }
237
+
238
+ function renderFiles(a) {
239
+ a.el.querySelector('.files').replaceChildren(...a.files.slice(0, 4).map(f => {
240
+ const btn = document.createElement('button');
241
+ btn.textContent = base(f); btn.title = 'Show in folder: ' + f;
242
+ btn.addEventListener('click', () => ap.reveal(f, a.e.cwd));
243
+ return btn;
244
+ }));
245
+ }
246
+
247
+ // Which groups to show: "working" hides an agent a few seconds after it finishes, "alerts" only shows the ones that need you.
248
+ function refresh(m) {
249
+ const members = [m, ...[...agents.values()].filter(s => s.main === m)];
250
+ const now = Date.now();
251
+ const busy = members.some(s => !REST_MS[s.e.state] || now - s.e.t < REST_MS[s.e.state]);
252
+ const show = peek || cfg.show === 'always' || (cfg.show === 'alerts' ? members.some(s => s.e.state === 'waiting') : busy);
253
+ m.group.classList.toggle('resting', !show);
254
+ m.group.classList.toggle('off', (cfg.agents || {})[m.e.agent] === false);
255
+ }
256
+
257
+ function remove(key) {
258
+ const a = agents.get(key);
259
+ if (!a) return;
260
+ for (const [k, s] of agents) if (s.main === a) agents.delete(k);
261
+ agents.delete(key);
262
+ const node = a.group || a.el;
263
+ a.el.firstChild.className = 'leave';
264
+ setTimeout(() => { node.remove(); if (a.main) refresh(a.main); }, 260);
265
+ }
266
+
267
+ // one-shot animation class (lively motion only, live events only)
268
+ const flash = (a, cls, ms) => { a.el.classList.remove('bump', 'yay'); void a.el.offsetWidth; a.el.classList.add(cls); setTimeout(() => a.el.classList.remove(cls), ms); };
269
+
270
+ function upsert(e) {
271
+ const mainKey = e.agent + ':' + e.session;
272
+ const key = e.sub ? mainKey + ':' + e.sub : mainKey;
273
+ if (e.state === 'gone') return remove(key);
274
+ if (Date.now() - e.t > STALE) return;
275
+ if (e.sub && !agents.has(mainKey)) upsert({ ...e, sub: null, subType: null, state: 'delegating', file: null, detail: null });
276
+
277
+ let a = agents.get(key);
278
+ if (!a) {
279
+ a = { el: make(e), files: [], e, since: e.t, tools: 0, touched: new Set() };
280
+ if (e.sub) { a.main = agents.get(mainKey); a.main.subs.prepend(a.el); }
281
+ else {
282
+ a.group = document.createElement('div'); a.group.className = 'group';
283
+ a.group.style.setProperty('--agent', colorOf(e.agent));
284
+ a.group.dataset.agent = e.agent;
285
+ a.subs = document.createElement('div'); a.subs.className = 'subs';
286
+ a.group.append(a.el, a.subs);
287
+ place(a.group);
288
+ }
289
+ agents.set(key, a);
290
+ avatar(a);
291
+ }
292
+ const prev = a.e.state, live = Date.now() - e.t < 5000;
293
+ a.e = e;
294
+ if (TOOL.has(e.state)) a.tools += 1;
295
+ if (e.file) a.touched.add(e.file);
296
+ if (e.model && e.model !== a.model) { a.model = e.model; avatar(a); } // models arrive on SessionStart only
297
+ if (e.file && a.files[0] !== e.file) { a.files = [e.file, ...a.files.filter(f => f !== e.file)].slice(0, 5); renderFiles(a); }
298
+ paint(a);
299
+ if (live && prev !== e.state && cfg.motion === 'lively') e.state === 'done' ? flash(a, 'yay', 900) : TOOL.has(e.state) && flash(a, 'bump', 350);
300
+ refresh(a.main || a);
301
+ }
302
+
303
+ setInterval(() => {
304
+ for (const [k, a] of agents) if (Date.now() - a.e.t > STALE) remove(k);
305
+ for (const a of agents.values()) { if (a.group) refresh(a); stats(a); }
306
+ }, 1000);
307
+
308
+ // ---- positions: each agent remembers where you dropped it (per agent name), anchored bottom-right ----
309
+ const posKey = g => 'pos:' + g.dataset.agent;
310
+ const clamp = (v, max) => Math.max(0, Math.min(v, max));
311
+ function put(g, r, b) { g.classList.add('placed'); g.style.right = clamp(r, innerWidth - 60) + 'px'; g.style.bottom = clamp(b, innerHeight - 60) + 'px'; document.body.append(g); }
312
+ function place(g) {
313
+ let p = null; try { p = JSON.parse(localStorage.getItem(posKey(g))); } catch {}
314
+ const taken = [...document.querySelectorAll('.group.placed')].some(o => o.dataset.agent === g.dataset.agent);
315
+ if (p && !taken) put(g, p.r, p.b); else dock.append(g); // a 2nd session of the same agent joins the dock
316
+ }
317
+ // drag a sticker to move its agent; a click without moving pins (or unpins) its bubble
318
+ document.addEventListener('mousedown', ev => {
319
+ const g = ev.button === 0 && ev.target.classList.contains('sticker') && ev.target.closest('.group');
320
+ if (!g) return;
321
+ ev.preventDefault();
322
+ const chibi = ev.target.closest('.chibi'), x0 = ev.clientX, y0 = ev.clientY;
323
+ const r = g.getBoundingClientRect(), dx = ev.clientX - r.right, dy = ev.clientY - r.bottom;
324
+ let moved = false;
325
+ const move = m => { if (!moved && Math.hypot(m.clientX - x0, m.clientY - y0) < 4) return; moved = true; put(g, innerWidth - (m.clientX - dx), innerHeight - (m.clientY - dy)); };
326
+ const up = () => {
327
+ removeEventListener('mousemove', move); removeEventListener('mouseup', up);
328
+ if (!moved) { chibi.classList.toggle('pinned'); side(chibi); return; }
329
+ if (g.classList.contains('placed')) try { localStorage.setItem(posKey(g), JSON.stringify({ r: parseFloat(g.style.right), b: parseFloat(g.style.bottom) })); } catch {}
330
+ };
331
+ addEventListener('mousemove', move); addEventListener('mouseup', up);
332
+ });
333
+ function resetPositions() {
334
+ for (const k of Object.keys(localStorage)) if (k.startsWith('pos:')) localStorage.removeItem(k);
335
+ for (const g of document.querySelectorAll('.group.placed')) { g.classList.remove('placed'); g.style.right = g.style.bottom = ''; dock.append(g); }
336
+ }
337
+
338
+ // clicks pass through the window except while the pointer is over a sticker or its text
339
+ let over = false;
340
+ document.addEventListener('mousemove', ev => { const now = !!ev.target.closest('.chibi, .subs'); if (now !== over) ap.mouse(over = now); });
341
+
342
+ function classes() {
343
+ const c = cfg, b = c.bubble || {};
344
+ document.body.className = ['size-' + (c.size || 'small'), c.details === 'always' && 'details-always', (c.agents || {}).subagent === false && 'no-subs',
345
+ 'hl-' + (c.helpers || 'line'), 'mo-' + (c.motion || 'lively'), c.icon === false && 'no-icon', 'th-' + (b.theme || 'auto'), 'bs-' + (b.size || 'medium'),
346
+ b.on === false && 'b-off', b.style === 'text' && 'b-text', b.border === false && 'b-noborder', b.auto !== false && 'b-auto', b.stats === false && 'b-nostats',
347
+ peek && 'peek'].filter(Boolean).join(' ');
348
+ document.body.style.setProperty('--op', (c.opacity || 100) / 100);
349
+ if (b.text && b.text !== 'auto') document.body.style.setProperty('--bt', b.text); else document.body.style.removeProperty('--bt');
350
+ }
351
+
352
+ let toastTimer;
353
+ ap.onCmd(m => {
354
+ if ('peek' in m) { peek = m.peek; classes(); for (const a of agents.values()) { side(a.el); if (a.group) refresh(a); } }
355
+ if (m.toast) { const t = document.getElementById('toast'); t.textContent = m.toast; t.classList.add('on'); clearTimeout(toastTimer); toastTimer = setTimeout(() => t.classList.remove('on'), 1400); }
356
+ });
357
+ ap.onConfig(c => {
358
+ cfg = c; classes();
359
+ for (const a of agents.values()) { avatar(a); paint(a); if (a.group) refresh(a); }
360
+ });
361
+ ap.onEvent(upsert);
362
+ ap.onResetPositions(resetPositions);
363
+ </script>
364
+ </body>
365
+ </html>