@songsid/agend 2.3.0-beta.1 → 2.3.0-beta.10

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 (351) hide show
  1. package/dist/agent-cli-instructions.md +5 -2
  2. package/dist/agent-cli.js +43 -7
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-endpoint.js +4 -0
  5. package/dist/agent-endpoint.js.map +1 -1
  6. package/dist/agent-file-read.d.ts +14 -6
  7. package/dist/agent-file-read.js +207 -19
  8. package/dist/agent-file-read.js.map +1 -1
  9. package/dist/agent-whats-new.d.ts +11 -0
  10. package/dist/agent-whats-new.js +29 -15
  11. package/dist/agent-whats-new.js.map +1 -1
  12. package/dist/auth-api.d.ts +30 -1
  13. package/dist/auth-api.js +45 -13
  14. package/dist/auth-api.js.map +1 -1
  15. package/dist/authority/authority-state.d.ts +38 -0
  16. package/dist/authority/authority-state.js +114 -0
  17. package/dist/authority/authority-state.js.map +1 -0
  18. package/dist/authority/session-authorizations.d.ts +43 -0
  19. package/dist/authority/session-authorizations.js +102 -0
  20. package/dist/authority/session-authorizations.js.map +1 -0
  21. package/dist/authority/web-authority.d.ts +120 -0
  22. package/dist/authority/web-authority.js +157 -0
  23. package/dist/authority/web-authority.js.map +1 -0
  24. package/dist/backend/claude-code.d.ts +2 -2
  25. package/dist/backend/claude-code.js +10 -5
  26. package/dist/backend/claude-code.js.map +1 -1
  27. package/dist/backend/types.d.ts +14 -0
  28. package/dist/backend/types.js +25 -0
  29. package/dist/backend/types.js.map +1 -1
  30. package/dist/backend-availability.d.ts +120 -0
  31. package/dist/backend-availability.js +396 -0
  32. package/dist/backend-availability.js.map +1 -0
  33. package/dist/backend-command.d.ts +21 -3
  34. package/dist/backend-command.js +23 -4
  35. package/dist/backend-command.js.map +1 -1
  36. package/dist/bundled-skills.d.ts +14 -0
  37. package/dist/bundled-skills.js +29 -0
  38. package/dist/bundled-skills.js.map +1 -0
  39. package/dist/cache-analysis.d.ts +47 -1
  40. package/dist/cache-analysis.js +68 -8
  41. package/dist/cache-analysis.js.map +1 -1
  42. package/dist/cache-ledger.d.ts +16 -3
  43. package/dist/cache-ledger.js +33 -13
  44. package/dist/cache-ledger.js.map +1 -1
  45. package/dist/cache-report-tool.d.ts +17 -0
  46. package/dist/cache-report-tool.js +40 -0
  47. package/dist/cache-report-tool.js.map +1 -0
  48. package/dist/cache-service.d.ts +70 -3
  49. package/dist/cache-service.js +178 -17
  50. package/dist/cache-service.js.map +1 -1
  51. package/dist/channel/adapters/discord.d.ts +7 -0
  52. package/dist/channel/adapters/discord.js +35 -0
  53. package/dist/channel/adapters/discord.js.map +1 -1
  54. package/dist/channel/mcp-tools.js +22 -10
  55. package/dist/channel/mcp-tools.js.map +1 -1
  56. package/dist/channel/types.d.ts +6 -0
  57. package/dist/classic-channel-manager.d.ts +10 -5
  58. package/dist/classic-channel-manager.js +12 -9
  59. package/dist/classic-channel-manager.js.map +1 -1
  60. package/dist/cli.js +130 -31
  61. package/dist/cli.js.map +1 -1
  62. package/dist/config-validator.js +103 -4
  63. package/dist/config-validator.js.map +1 -1
  64. package/dist/daemon.d.ts +7 -0
  65. package/dist/daemon.js +63 -16
  66. package/dist/daemon.js.map +1 -1
  67. package/dist/decision-list.d.ts +25 -0
  68. package/dist/decision-list.js +30 -0
  69. package/dist/decision-list.js.map +1 -0
  70. package/dist/delivery-outbox.d.ts +10 -0
  71. package/dist/delivery-outbox.js +12 -1
  72. package/dist/delivery-outbox.js.map +1 -1
  73. package/dist/fleet-context.d.ts +10 -0
  74. package/dist/fleet-manager.d.ts +417 -11
  75. package/dist/fleet-manager.js +1387 -109
  76. package/dist/fleet-manager.js.map +1 -1
  77. package/dist/fleet-traffic.d.ts +74 -0
  78. package/dist/fleet-traffic.js +196 -0
  79. package/dist/fleet-traffic.js.map +1 -0
  80. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +20 -5
  81. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -1
  82. package/dist/general-knowledge/skills/multi-channel/SKILL.md +3 -2
  83. package/dist/general-knowledge/skills/persona-emoji/SKILL.md +1 -1
  84. package/dist/general-knowledge/skills/web-appearance/SKILL.md +257 -23
  85. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +476 -0
  86. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
  87. package/dist/human-delivery-receipts.d.ts +24 -1
  88. package/dist/human-delivery-receipts.js +64 -11
  89. package/dist/human-delivery-receipts.js.map +1 -1
  90. package/dist/instance-config-impact.js +3 -1
  91. package/dist/instance-config-impact.js.map +1 -1
  92. package/dist/instance-names.d.ts +4 -0
  93. package/dist/instance-names.js +12 -0
  94. package/dist/instance-names.js.map +1 -0
  95. package/dist/instructions.d.ts +12 -1
  96. package/dist/instructions.js +13 -2
  97. package/dist/instructions.js.map +1 -1
  98. package/dist/locale.js +100 -8
  99. package/dist/locale.js.map +1 -1
  100. package/dist/ls-attach-resolve.d.ts +95 -0
  101. package/dist/ls-attach-resolve.js +174 -0
  102. package/dist/ls-attach-resolve.js.map +1 -0
  103. package/dist/memory-hogs.d.ts +27 -0
  104. package/dist/memory-hogs.js +124 -0
  105. package/dist/memory-hogs.js.map +1 -0
  106. package/dist/outbound-handlers.d.ts +10 -0
  107. package/dist/outbound-handlers.js +122 -2
  108. package/dist/outbound-handlers.js.map +1 -1
  109. package/dist/outbound-schemas.d.ts +164 -4
  110. package/dist/outbound-schemas.js +99 -3
  111. package/dist/outbound-schemas.js.map +1 -1
  112. package/dist/public-web-gateway.js +8 -2
  113. package/dist/public-web-gateway.js.map +1 -1
  114. package/dist/public-web-link.d.ts +9 -0
  115. package/dist/public-web-link.js +8 -0
  116. package/dist/public-web-link.js.map +1 -1
  117. package/dist/quickstart-api.d.ts +10 -1
  118. package/dist/quickstart-api.js +12 -4
  119. package/dist/quickstart-api.js.map +1 -1
  120. package/dist/reply-buttons-controller.d.ts +4 -0
  121. package/dist/reply-buttons-controller.js +2 -2
  122. package/dist/reply-buttons-controller.js.map +1 -1
  123. package/dist/restart-progress.d.ts +65 -1
  124. package/dist/restart-progress.js +236 -10
  125. package/dist/restart-progress.js.map +1 -1
  126. package/dist/rollout-index.d.ts +5 -0
  127. package/dist/rollout-index.js +26 -5
  128. package/dist/rollout-index.js.map +1 -1
  129. package/dist/scheduler/scheduler.d.ts +12 -0
  130. package/dist/scheduler/scheduler.js +83 -10
  131. package/dist/scheduler/scheduler.js.map +1 -1
  132. package/dist/service-installer.d.ts +2 -1
  133. package/dist/service-installer.js +18 -3
  134. package/dist/service-installer.js.map +1 -1
  135. package/dist/settings-api.d.ts +19 -0
  136. package/dist/settings-api.js +137 -2
  137. package/dist/settings-api.js.map +1 -1
  138. package/dist/settings-change.js +104 -0
  139. package/dist/settings-change.js.map +1 -1
  140. package/dist/settings-effect.js +17 -1
  141. package/dist/settings-effect.js.map +1 -1
  142. package/dist/tmux-manager.d.ts +5 -0
  143. package/dist/tmux-manager.js +16 -0
  144. package/dist/tmux-manager.js.map +1 -1
  145. package/dist/tool-permissions.d.ts +4 -6
  146. package/dist/tool-permissions.js +53 -5
  147. package/dist/tool-permissions.js.map +1 -1
  148. package/dist/topic-commands.d.ts +7 -1
  149. package/dist/topic-commands.js +18 -4
  150. package/dist/topic-commands.js.map +1 -1
  151. package/dist/types.d.ts +48 -1
  152. package/dist/ui/app-effects.js +77 -31
  153. package/dist/ui/chat-ambient.js +307 -0
  154. package/dist/ui/chat-effect-posters.js +8 -8
  155. package/dist/ui/chat-effects.js +101 -13
  156. package/dist/ui/chat-render.js +5 -2
  157. package/dist/ui/chat-strings.js +59 -6
  158. package/dist/ui/chat-thread.js +149 -21
  159. package/dist/ui/effect-trial-controller.js +13 -8
  160. package/dist/ui/effect-trial-panel.js +19 -16
  161. package/dist/ui/fleet-cache.js +23 -1
  162. package/dist/ui/fleet-canvas-layout.js +111 -0
  163. package/dist/ui/fleet-canvas.js +525 -0
  164. package/dist/ui/fleet-org.js +27 -12
  165. package/dist/ui/fleet-traffic.js +343 -0
  166. package/dist/ui/fleet-usage.js +401 -0
  167. package/dist/ui/panel-chat.js +127 -49
  168. package/dist/ui/panel-details.js +2 -1
  169. package/dist/ui/panel-fleet.js +41 -16
  170. package/dist/ui/panel-settings.js +26 -8
  171. package/dist/ui/preview.js +3 -2
  172. package/dist/ui/settings-appearance.js +42 -18
  173. package/dist/ui/settings-catalog.js +92 -0
  174. package/dist/ui/settings-dialogs.js +40 -12
  175. package/dist/ui/settings-effects.js +4 -3
  176. package/dist/ui/settings-guests.js +117 -0
  177. package/dist/ui/settings-learn.js +25 -0
  178. package/dist/ui/settings-model.js +15 -6
  179. package/dist/ui/settings-mods.js +23 -9
  180. package/dist/ui/settings-owner-effects.js +9 -9
  181. package/dist/ui/settings-strings.js +120 -42
  182. package/dist/ui/settings-web-authority.js +91 -0
  183. package/dist/ui/shared/agend-auth.js +1 -1
  184. package/dist/ui/shared/app-i18n.js +4 -2
  185. package/dist/ui/shared/app-prefs.js +5 -4
  186. package/dist/ui/shared/app-route.js +1 -1
  187. package/dist/ui/shared/app-session.js +2 -0
  188. package/dist/ui/shared/app-shell.js +75 -9
  189. package/dist/ui/shared/app-store.js +26 -1
  190. package/dist/ui/shared/app-stream.js +3 -1
  191. package/dist/ui/shared/app-themes.js +24 -6
  192. package/dist/ui/shared/app.css +364 -16
  193. package/dist/ui/shared/app.js +21 -14
  194. package/dist/ui/shared/card-strings.js +4 -0
  195. package/dist/ui/shared/effect-app-runtime.js +68 -19
  196. package/dist/ui/shared/effect-chat-runtime.js +16 -3
  197. package/dist/ui/shared/effect-frame.js +26 -7
  198. package/dist/ui/shared/effect-geometry.js +24 -9
  199. package/dist/ui/shared/effect-policy.js +21 -7
  200. package/dist/ui/shared/effect-profiler.js +31 -9
  201. package/dist/ui/shared/effect-registry.js +87 -48
  202. package/dist/ui/shared/effect-stock-snapshot.js +9 -0
  203. package/dist/ui/shared/effect-stock-trust.js +62 -10
  204. package/dist/ui/shared/effect-trial-shadow.js +62 -0
  205. package/dist/ui/shared/effect-trial-source.js +1 -1
  206. package/dist/ui/shared/effect-trial-stage.js +54 -31
  207. package/dist/ui/shared/effect-trial.css +40 -0
  208. package/dist/ui/shared/fx-motion.js +67 -0
  209. package/dist/ui/shared/identity-card.js +75 -4
  210. package/dist/ui/shared/identity-color.js +3 -3
  211. package/dist/ui/shared/instance-nav.js +194 -28
  212. package/dist/ui/shared/panel-view.js +24 -4
  213. package/dist/ui/shared/tokens.css +9 -3
  214. package/dist/ui/shared/ui-icons.js +1 -0
  215. package/dist/ui/shared/usage-dialog.js +22 -2
  216. package/dist/ui/shared/view-strings.js +68 -2
  217. package/dist/ui/shared/web-authorize.js +151 -0
  218. package/dist/ui/signin.html +1 -1
  219. package/dist/ui/web-terminal/terminal.css +4 -4
  220. package/dist/usage/providers.d.ts +28 -0
  221. package/dist/usage/providers.js +126 -36
  222. package/dist/usage/providers.js.map +1 -1
  223. package/dist/usage-report.d.ts +158 -0
  224. package/dist/usage-report.js +226 -0
  225. package/dist/usage-report.js.map +1 -0
  226. package/dist/usage-rollup.d.ts +51 -0
  227. package/dist/usage-rollup.js +168 -0
  228. package/dist/usage-rollup.js.map +1 -0
  229. package/dist/view-api.d.ts +39 -0
  230. package/dist/view-api.js +65 -4
  231. package/dist/view-api.js.map +1 -1
  232. package/dist/web-ambient.d.ts +72 -0
  233. package/dist/web-ambient.js +161 -0
  234. package/dist/web-ambient.js.map +1 -0
  235. package/dist/web-api.d.ts +69 -5
  236. package/dist/web-api.js +362 -45
  237. package/dist/web-api.js.map +1 -1
  238. package/dist/web-appearance-policy.d.ts +4 -6
  239. package/dist/web-appearance-policy.js +5 -12
  240. package/dist/web-appearance-policy.js.map +1 -1
  241. package/dist/web-appearance-tools.d.ts +3 -0
  242. package/dist/web-appearance-tools.js +22 -3
  243. package/dist/web-appearance-tools.js.map +1 -1
  244. package/dist/web-appearance-view.d.ts +27 -2
  245. package/dist/web-appearance-view.js +129 -14
  246. package/dist/web-appearance-view.js.map +1 -1
  247. package/dist/web-appearance.d.ts +17 -3
  248. package/dist/web-appearance.js +82 -7
  249. package/dist/web-appearance.js.map +1 -1
  250. package/dist/web-asset-parts.d.ts +5 -10
  251. package/dist/web-asset-parts.js +3 -3
  252. package/dist/web-asset-parts.js.map +1 -1
  253. package/dist/web-auth.js +3 -1
  254. package/dist/web-auth.js.map +1 -1
  255. package/dist/web-card.d.ts +14 -0
  256. package/dist/web-card.js +40 -6
  257. package/dist/web-card.js.map +1 -1
  258. package/dist/web-channel-echo.d.ts +7 -1
  259. package/dist/web-channel-echo.js +6 -2
  260. package/dist/web-channel-echo.js.map +1 -1
  261. package/dist/web-chat-history.d.ts +46 -0
  262. package/dist/web-chat-history.js +80 -3
  263. package/dist/web-chat-history.js.map +1 -1
  264. package/dist/web-commands.d.ts +1 -0
  265. package/dist/web-effect-bootstrap.d.ts +12 -0
  266. package/dist/web-effect-bootstrap.js +49 -0
  267. package/dist/web-effect-bootstrap.js.map +1 -0
  268. package/dist/web-effect-bundle.js +46 -1
  269. package/dist/web-effect-bundle.js.map +1 -1
  270. package/dist/web-effect-playback.d.ts +30 -0
  271. package/dist/web-effect-playback.js +71 -0
  272. package/dist/web-effect-playback.js.map +1 -0
  273. package/dist/web-effect-profiles.d.ts +4 -4
  274. package/dist/web-effect-service.d.ts +11 -4
  275. package/dist/web-effect-service.js +28 -5
  276. package/dist/web-effect-service.js.map +1 -1
  277. package/dist/web-effect-tools.d.ts +1 -0
  278. package/dist/web-effect-tools.js +8 -5
  279. package/dist/web-effect-tools.js.map +1 -1
  280. package/dist/web-effect-trials.d.ts +4 -4
  281. package/dist/web-effect-trials.js +6 -6
  282. package/dist/web-effect-trials.js.map +1 -1
  283. package/dist/web-effect-upload.d.ts +2 -4
  284. package/dist/web-effect-upload.js +3 -8
  285. package/dist/web-effect-upload.js.map +1 -1
  286. package/dist/web-effect-worker.d.ts +1 -1
  287. package/dist/web-effect-worker.js +2 -2
  288. package/dist/web-effect-worker.js.map +1 -1
  289. package/dist/web-effect.d.ts +14 -0
  290. package/dist/web-effect.js +21 -0
  291. package/dist/web-effect.js.map +1 -1
  292. package/dist/web-guest-access.d.ts +125 -0
  293. package/dist/web-guest-access.js +234 -0
  294. package/dist/web-guest-access.js.map +1 -0
  295. package/dist/web-guest-rooms.d.ts +82 -0
  296. package/dist/web-guest-rooms.js +135 -0
  297. package/dist/web-guest-rooms.js.map +1 -0
  298. package/dist/web-identity-color.d.ts +1 -1
  299. package/dist/web-identity-color.js +2 -2
  300. package/dist/web-identity-color.js.map +1 -1
  301. package/dist/web-identity-palette.d.ts +1 -1
  302. package/dist/web-identity-palette.js +2 -2
  303. package/dist/web-identity-palette.js.map +1 -1
  304. package/dist/web-login.d.ts +47 -0
  305. package/dist/web-login.js +115 -0
  306. package/dist/web-login.js.map +1 -1
  307. package/dist/web-mod-agent.d.ts +1 -1
  308. package/dist/web-mod-agent.js +12 -8
  309. package/dist/web-mod-agent.js.map +1 -1
  310. package/dist/web-mod-bundle.d.ts +14 -1
  311. package/dist/web-mod-bundle.js +68 -3
  312. package/dist/web-mod-bundle.js.map +1 -1
  313. package/dist/web-mod-export.d.ts +9 -0
  314. package/dist/web-mod-export.js +21 -0
  315. package/dist/web-mod-export.js.map +1 -1
  316. package/dist/web-mod-store.d.ts +7 -1
  317. package/dist/web-mod-store.js +21 -7
  318. package/dist/web-mod-store.js.map +1 -1
  319. package/dist/web-prefs.d.ts +14 -0
  320. package/dist/web-prefs.js +24 -4
  321. package/dist/web-prefs.js.map +1 -1
  322. package/dist/web-preview.d.ts +6 -2
  323. package/dist/web-preview.js +4 -2
  324. package/dist/web-preview.js.map +1 -1
  325. package/dist/web-returning-device.d.ts +41 -0
  326. package/dist/web-returning-device.js +57 -5
  327. package/dist/web-returning-device.js.map +1 -1
  328. package/dist/web-session-authorization.d.ts +132 -0
  329. package/dist/web-session-authorization.js +193 -0
  330. package/dist/web-session-authorization.js.map +1 -0
  331. package/dist/web-session.d.ts +70 -10
  332. package/dist/web-session.js +137 -22
  333. package/dist/web-session.js.map +1 -1
  334. package/dist/web-settings-patch.d.ts +49 -2
  335. package/dist/web-settings-patch.js +145 -1
  336. package/dist/web-settings-patch.js.map +1 -1
  337. package/dist/web-settings-tools.d.ts +89 -0
  338. package/dist/web-settings-tools.js +270 -0
  339. package/dist/web-settings-tools.js.map +1 -0
  340. package/dist/web-shell-routes.d.ts +1 -1
  341. package/dist/web-shell-routes.js +1 -1
  342. package/dist/web-shell-routes.js.map +1 -1
  343. package/dist/web-theme-store.d.ts +39 -0
  344. package/dist/web-theme-store.js +122 -11
  345. package/dist/web-theme-store.js.map +1 -1
  346. package/dist/web-theme.d.ts +2 -0
  347. package/dist/web-theme.js +10 -1
  348. package/dist/web-theme.js.map +1 -1
  349. package/dist/workflow-templates/default.md +1 -1
  350. package/package.json +1 -1
  351. package/templates/systemd.service.ejs +8 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: web-appearance
3
- description: How you look on the AgEnD web dashboard — check it, change your own theme, identity card and widgets, preview the result, share it as a mod
4
- roles: [worker]
3
+ description: How you look on the AgEnD web dashboard — check it, change your own theme, identity card, identity colour and widgets, set an ambient effect (falling petals, click stars), play Canvas Worker effects in your chat (and offer a Try), preview the result, share it as a mod; and, for General, changing Settings → Web appearance for the user
4
+ roles: [general, worker, classic]
5
5
  ---
6
6
 
7
7
  ## What it is
@@ -16,12 +16,49 @@ can shape how you look there — **only your own look, and only on the surfaces
16
16
  | Your chat | theme: colours, accent, bubbles, font, background picture, working label | `set_web_theme`, `set_web_theme_asset` |
17
17
  | Your face and ring | theme picture and accent | `set_web_theme`, `set_web_theme_asset` |
18
18
  | Your identity card | portrait, banner, tagline, bio | `set_web_theme` (`card.*`), `set_web_theme_asset` |
19
+ | Your identity colour | the colour people find you by in the sidebar, and where it shows (name, bar, ring) | `set_web_theme` (`identity`) |
19
20
  | Your chat header strip and Details page | widgets: small panels of facts the dashboard draws | `set_web_widget`, `remove_web_widget` |
21
+ | An ambient effect in your chat | falling petals, snow, rising lanterns, twinkles, stars where a person clicks — data only, drawn by the dashboard | `set_web_ambient`, `clear_web_ambient` |
20
22
  | A file of your look | a mod: export yours, or propose one for a person | `export_web_mod`, `propose_web_mod` |
23
+ | Effects in your chat | Canvas Worker animations, and Try cards an admin outside the public link may start | `upload_web_effect`, `apply_web_effect`, `preview_web_effect`, … (see Effects) |
21
24
 
22
25
  None of these tools takes a target: they always act on you. You can't change another instance, the dashboard's own
23
26
  chrome, a person's sidebar widget, or a person's custom CSS.
24
27
 
28
+ ## For the user: Settings → Web appearance (General, coordinators, full)
29
+
30
+ If you are General (or a coordinator or full profile), you can change the user's **Settings → Web appearance** for
31
+ them, exactly as the page changes it: the same checks, the same refusals. Custom CSS keeps its safe rules: no remote
32
+ URLs, assets only as `url("asset:<id>")`, at most 64 KiB. Other instances can't; they shape only their own look (the rest
33
+ of this skill).
34
+
35
+ 1. **Read first:** `get_web_settings` returns a `summary` in plain words (tell the user from it), the values, and
36
+ `people`: the host operator and everyone who has signed in. Host settings are everyone's on this host. Custom CSS and
37
+ effect slots are one person's own: pass `person` as the entry whose id is the user's (`person:<adapter>:<their id>`),
38
+ else the host operator's are changed.
39
+ 2. **One change per call:** `set_web_settings({ person?, change })`, where `change.what` is one of:
40
+
41
+ | `what` | Changes | Example |
42
+ |---|---|---|
43
+ | `host` | `themes_shown`, `card_size` (s/m/l), `card_sizes` ({instance: s/m/l}), `colour_places` (name/bar/ring), `colours_off`, `sidebar_widget` ({spec, data}) — null puts one back to its default | `{ what: "host", set: { colour_places: ["name","ring"] } }` |
44
+ | `agent_colour` | one agent's colour (`preset:<name>` or `#rrggbb`) and places; null resets each | `{ what: "agent_colour", instance: "atlas", colour: "preset:teal" }` |
45
+ | `banner_focus` | which part of one agent's cropped card banner stays in view: `focus` 0 (top) … 100 (bottom), 50 the centre; it wins over the agent's own `card.bannerFocus`; null follows the agent's again | `{ what: "banner_focus", instance: "atlas", focus: 20 }` |
46
+ | `custom_css` | `save` (with `text`): goes **on trial** on their screens (it goes back by itself unless kept); `keep` (the trial), `revert` (the trial), `use` (with `version`: an earlier saved one, at once), `off` | `{ what: "custom_css", action: "save", text: "…" }`; ask how it looks, then `keep` only when they say so |
47
+ | `mod` | an agent's proposal: `review` (instance → `stage`, `plan`, `plan_hash`), then `install` (stage, plan_hash, `include`: the parts, `target`: the agent); `cancel`, `dismiss`, `uninstall` (id) | review, show the user the plan, install only what they asked for — never custom CSS unasked. A person has one review open at a time: while theirs is open (`mod_review_open`) ask them to finish it; a mod they imported from a file is theirs to install (`mod_not_from_an_agent`) |
48
+ | `effect` | `apply` (instance, id, params?) or `remove` (instance, id?) an effect on a chat | |
49
+ | `ambient` | one agent's ambient effect, set for the user: `ambient` is the same spec as `set_web_ambient`'s (it replaces the one of its kind, and the agent can't change it after); `ambient: null` clears (`which`: `loop` or `click`, default both) | `{ what: "ambient", instance: "atlas", ambient: { preset: "fall", glyphs: ["🌸","❀","✿"] } }` |
50
+ | `effect_slot` | a person's `sidebar` / `header` / `page` / `box` / `cursor` effect (an id, or null) | |
51
+ | `restore_defaults` | the host settings back to their defaults, and the person's custom CSS off | |
52
+
53
+ 3. **Say what changed** in the user's words (read again if unsure). A refusal says why: the same words the page would
54
+ show.
55
+
56
+ **Only the person can do these, on the page:**
57
+ - choose a file from their computer: import a mod file, upload an effect folder, add a CSS asset or a card picture;
58
+ - this browser's own switches: custom CSS off on this device, pausing effect playback;
59
+ - download an export;
60
+ - the card upload limits (fleet configuration; a raise waits for an admin's confirmation).
61
+
25
62
  ## Look first
26
63
 
27
64
  - `get_web_appearance` — how you appear **now**, resolved exactly as the dashboard resolves it: your face and where it
@@ -37,7 +74,7 @@ chrome, a person's sidebar widget, or a person's custom CSS.
37
74
  (`avatar.png`, `portrait.png`, …), and returns both lists of paths. Read the SVGs for exact colours, geometry and
38
75
  text, and the pictures as images. Only your own pictures are there.
39
76
  - `get_web_theme` — your stored theme, the token defaults it is drawn over, your uploaded pictures (`id`, `slot`), and
40
- `limits` (changes and uploads left, each picture slot's size limits, your picture quota).
77
+ `limits` (changes left, each picture slot's size limits, your picture quota).
41
78
 
42
79
  ## What wins over what
43
80
 
@@ -67,7 +104,7 @@ Typed values only; anything else is refused with `{ errors: [{ path, problem }]
67
104
  - `identity`: `{ color?, show? }`: your identity colour and where it shows.
68
105
  - `color` is a preset (`red`, `orange`, `amber`, `lime`, `green`, `teal`, `cyan`, `blue`, `indigo`, `violet`, `pink`,
69
106
  `slate`, each readable in light and dark) or `#rrggbb`.
70
- - `show` is a list of `name`, `bar` and `ring` (`[]` for nowhere). Left out, the host's default applies (ring and bar).
107
+ - `show` is a list of `name`, `bar` and `ring` (`[]` for nowhere). Left out, the host's default applies (name, bar and ring).
71
108
  - A person's choice for you in the dashboard always wins, field by field, and their Reset brings yours back.
72
109
  `get_web_appearance` says which is in force.
73
110
  - `bubble`: `{ radius: 0..24, border: "none" | "thin" | "accent" }`.
@@ -75,7 +112,7 @@ Typed values only; anything else is refused with `{ errors: [{ path, problem }]
75
112
  - `background`: `{ image: <asset id>, fit: "cover" | "contain", opacity: 0.05..1 }`.
76
113
  - `avatar`: an asset id — your face (below a person's upload).
77
114
  - `workingLabel`: 1..24 characters on one line, shown while you work instead of "is working…".
78
- - `card`: `{ portrait?, banner?, tagline?, bio? }` — see below.
115
+ - `card`: `{ portrait?, banner?, tagline?, bio?, bannerFocus? }` — see below.
79
116
 
80
117
  Example:
81
118
 
@@ -98,6 +135,7 @@ the id is the hash of what is kept, so the same picture is the same id.
98
135
  | `avatar` | png, jpeg, webp, gif | 256 KiB, 4096 px a side |
99
136
  | `portrait` | png, jpeg, webp | set by the fleet (default 1024×1536, 1.5 MiB) |
100
137
  | `banner` | png, jpeg, webp | set by the fleet (default 1600×600, 768 KiB) |
138
+ | `glyph` | png, webp, gif | 64 KiB, 128 px a side; at most 4 (for `set_web_ambient`'s `glyphs`) |
101
139
 
102
140
  A picture holds one slot: upload it again for another slot only if it is a different picture. `get_web_theme`'s
103
141
  `limits.asset_slots` has the limits in force and `limits.asset_quota` how many pictures you may keep. A picture your
@@ -109,6 +147,32 @@ theme stops naming is deleted.
109
147
  `card.banner` (asset ids uploaded for those slots). Text is shown as text — never markup or links. A person may set
110
148
  their own version of any field; theirs is shown instead of yours.
111
149
 
150
+ The card goes **inside `set`**: `set_web_theme({ set: { card: { tagline, bio, portrait, banner } } })` (a top-level
151
+ `card` argument is refused).
152
+
153
+ **Your banner is cropped: never drawn wider than 5 : 1** (on a wider screen it is centred over a blurred copy) **nor
154
+ narrower than 9 : 4** (which crops the sides). Make it **1600×600** (the default limit) and keep faces and text
155
+ inside the **safe area: the middle 84% of the width × 53% of the height — 1350×320** — which every card shows on every
156
+ screen and layout. `card.bannerFocus` (0 top … 100 bottom; default 50, the centre) moves that area up or down: put a face
157
+ near the top at `bannerFocus: 0`. A person's focus (Edit profile, or General's `set_web_settings { what: "banner_focus" }`)
158
+ wins over yours. `preview_web_appearance` draws the banner cropped at its focus, as the page does (an M card).
159
+
160
+ ## Your identity colour
161
+
162
+ The colour people find you by in the sidebar, drawn on your name, a bar at your row's left edge and/or the ring around
163
+ your picture. Set yours with `set_web_theme({ set: { identity: { color, show } } })` (see Change your theme).
164
+
165
+ - **Which colour shows**, first match wins: a **person's** pick for you (⋯ → Colour… or View's Edit profile, also from a
166
+ temporary public link) > **yours** (`identity.color`, else your theme's `accent`; only for a viewer who shows agents'
167
+ themes) > your own bot's Discord **role** colour > an **automatic** soft colour chosen from your name (two instances
168
+ may share one).
169
+ - **Where it shows**: a person's choice for you > yours (`identity.show`; again only while themes are shown) > the
170
+ host's default (Settings → Web appearance; name, bar and ring unless changed).
171
+ - The host can **turn colours off** for everyone: nothing is drawn, and every pick, yours included, is kept for when
172
+ they come back.
173
+ - `get_web_appearance`'s `identity_color` shows what is in force: `color`, `source` (`person`, `agent`, `role`, `auto`),
174
+ `light` / `dark`, `show`, `show_source` (`person`, `agent`, `host`) and `off`.
175
+
112
176
  ## Widgets
113
177
 
114
178
  A widget is a small panel of facts the dashboard draws **with its own components**: you send what to show and the
@@ -153,6 +217,42 @@ in it can be clicked or focused.
153
217
 
154
218
  Then, as you go: `set_web_widget { "slot": "chat_header", "data": { "tests": 75 } }`.
155
219
 
220
+ ## Ambient effects
221
+
222
+ An ambient effect is **data only**: you choose a preset and its glyphs, the dashboard draws them. No code runs, so it
223
+ needs no Try, no preview consent and no measurement — use it for petals, snow, lanterns, sparkles and stars on a click.
224
+ Use a Canvas Worker effect (below) only for what a preset can't express.
225
+
226
+ `set_web_ambient { preset, glyphs, colors?, count?, duration?, size?, sway?, spread?, rotate?, opacity? }`:
227
+
228
+ | `preset` | What it draws | `count` | `duration` (seconds, [min, max]) |
229
+ |---|---|---|---|
230
+ | `fall` | glyphs drifting down behind your chat, endlessly | 1..24 particles (default 12) | 4..30 (default [9, 19]) |
231
+ | `rise` | the same, drifting up | 1..24 (12) | 4..30 ([9, 19]) |
232
+ | `twinkle` | glyphs pulsing in place | 1..24 (12) | 1..10 ([2, 5]) |
233
+ | `burst-on-click` | glyphs scattering from where a person clicks or taps in your chat | 4..16 per click (10) | 0.3..2 ([0.5, 0.9]) |
234
+
235
+ - `glyphs`: 1..4, picked at random per particle — a string of 1..2 characters (an emoji, `✦`, `❀`), or `{ "asset": id }`,
236
+ a picture you uploaded with `set_web_theme_asset` to the `glyph` slot.
237
+ - `colors`: 0..5 `#rrggbb` for text glyphs (default: your accent). `size`: [min, max] px, 10..40 (default [14, 22]).
238
+ `sway`: sideways drift for fall and rise, 0..80 px (40). `spread`: how far a burst scatters, [min, max] 20..120 px
239
+ ([34, 90]). `rotate`: 0..720 degrees over a run (300). `opacity`: [start, peak, end], each 0..1 ([0, 0.85, 0.15]).
240
+ - Your chat holds **one looping ambient** (`fall`, `rise` or `twinkle`) **and one `burst-on-click`**: setting one
241
+ replaces only its own kind. `clear_web_ambient { which? }` clears `loop`, `click`, or both.
242
+ - It is drawn **behind your messages** and never takes a click (a burst shows over them for a moment, then is gone).
243
+ - Who sees it: everyone who shows agents' looks, the public link included. Not with "Show agents' themes, effects and
244
+ widgets" off, `?safe=1`, or on a device that chose to follow the system's reduced-motion setting while
245
+ the system asks for it. A hidden tab pauses it.
246
+ - Like a theme: a change for the rate limit, refused while a person locked your look; one a person set is theirs
247
+ (`person_placed`). A person's Reset of your theme clears it. `get_web_appearance` shows it, and
248
+ `preview_web_appearance` draws the looping one, still, behind the bubbles.
249
+
250
+ ```json
251
+ { "preset": "fall", "glyphs": ["🌸", "❀", "✿"], "colors": ["#f4a7b9", "#ffd1dc"], "count": 12, "duration": [9, 19] }
252
+ ```
253
+
254
+ Then stars on a click, alongside: `set_web_ambient { "preset": "burst-on-click", "glyphs": ["✦", "✧"] }`.
255
+
156
256
  ## Mods
157
257
 
158
258
  A mod is one file, `<name>-<version>.agendmod.json`, that carries a look: a theme with its pictures, card text,
@@ -162,28 +262,34 @@ everything in a mod and ticks what to apply.
162
262
  - `export_web_mod { name, version, title? }` writes **your own** look to `.agend/mods/<name>-<version>.agendmod.json`
163
263
  in your working directory and returns `{ path, bytes }`. It carries your theme with its pictures, the effects your
164
264
  theme places (with their params) when they are yours or shared with you, your own card text (not a person's card
165
- fields), and the widgets you placed. A person's private effect placed on you stays out (`effects_omitted` counts it).
265
+ fields), the widgets and ambient effects you set yourself. A person's private effect placed on you stays out (`effects_omitted` counts it).
166
266
  It never carries custom CSS or the sidebar widget, which are a person's. `name` is a-z, 0-9 and -, `version` is
167
267
  MAJOR.MINOR.PATCH.
168
268
  - `propose_web_mod { file }` sends a mod file from your working directory (at most 8 MiB) for a person to review. It
169
269
  is checked whole and answers with its problems if it isn't valid. **A mod carrying custom CSS is refused**
170
270
  (`owner_css_not_from_agent`). A muted line in your chat says it was proposed. Nothing changes until a person
171
- installs it. One proposal at a time: a new one replaces yours. It counts as an upload.
271
+ installs it. One proposal at a time: a new one replaces yours.
172
272
  - A widget a person placed from a mod is theirs: you may give it values (`set_web_widget` with `data`), but not replace
173
273
  or remove it (`person_placed`).
174
274
 
175
275
  The file format: `{ "format": "agend-mod", "v": 1, "manifest": { name, version, title, description?, author?,
176
- requires?: { agend: ">=X.Y.Z" }, contents: { theme?, identity?, widgets?: { chat_header?, details? }, effects? } },
276
+ requires?: { agend: ">=X.Y.Z" }, contents: { theme?, identity?, widgets?: { chat_header?, details? }, ambient?, effects? } },
177
277
  "files": { "<path>": { "sha256", "b64" } } }`. Every file is listed with its sha256 and used by exactly one part, paths
178
- are lowercase with no `..`, and a theme names its pictures by path. The easiest way to get one right is to set your look
278
+ are lowercase with no `..`, and a theme names its pictures by path (an ambient's glyph pictures too: `{ "asset": "<path>" }`). The easiest way to get one right is to set your look
179
279
  with the tools above, then `export_web_mod`.
180
280
 
181
281
  ## Limits
182
282
 
183
- - At least **30 s** between changes, at most **10 changes an hour**, at most **3 picture uploads an hour** — refused
184
- with `rate_limited` and `retry_after_s`. Only an accepted change counts; a refused or invalid one costs nothing.
283
+ - At least **30 s** between changes, at most **10 changes an hour** — refused with `rate_limited` and
284
+ `retry_after_s`. Only an accepted change counts; a refused or invalid one costs nothing.
285
+ - Uploads (pictures, effects, proposed mods) are not counted. Each picture slot's size limits, your picture quota and
286
+ each file's own caps still apply; using a picture in your theme is a change.
185
287
  - Widget values (`set_web_widget` with `data` only): at least **10 s** apart, at most **180 an hour**, apart from the
186
288
  above.
289
+ - `set_web_ambient` and `clear_web_ambient` are changes.
290
+ - Effects: `apply_web_effect` and `remove_web_effect` are changes; `upload_web_effect` and `propose_web_mod` are not
291
+ counted.
292
+ At most 10 effects and 8 MiB of your own, at most two placed in your chat.
187
293
  - Plan the whole look, check it in one `set_web_theme`, then preview — don't iterate change by change.
188
294
 
189
295
  ## A good workflow
@@ -195,9 +301,135 @@ with the tools above, then `export_web_mod`.
195
301
 
196
302
  From a shell: `agend-agent theme get|set key=value…|set --json '<patch>'|clear <path>…|asset <slot> <file>|reset`,
197
303
  `agend-agent appearance`, `agend-agent appearance preview [light|dark]`, and
198
- `agend-agent widget set <slot> '<spec json>' ['<data json>']|data <slot> '<data json>'|remove [slot]`, and
304
+ `agend-agent widget set <slot> '<spec json>' ['<data json>']|data <slot> '<data json>'|remove [slot]`,
305
+ `agend-agent ambient set '<spec json>'|clear [loop|click]`, and
199
306
  `agend-agent mod export <name> <version> [title]|propose <file>`.
200
307
 
308
+ ## Files in your working directory
309
+
310
+ Asset uploads, effect directories and mod proposals must be inside your working directory. For an external project,
311
+ use files there as before. For your own AgEnD-managed workspace under `~/.agend/workspaces/`, ordinary files there
312
+ also work; no staging folder is required. This includes the standard `<your-instance-name>` folder (ClassicBot and
313
+ instances without a project directory) and an exclusively configured folder with another name, such as instance
314
+ `alpha` with `working_directory: ~/.agend/workspaces/alpha-home` in `fleet.yaml`. Its canonical configured path must
315
+ not overlap another instance's configured or standard workspace, including persisted ClassicBot peers that are
316
+ stopped or paused. The `workspaces/` root itself is not a workspace.
317
+
318
+ General, adapter-specific General (such as `general-telegram`), and other configured working directories elsewhere
319
+ inside the AgEnD state directory must stage inputs under **`web-assets/` or `web-effects/`**. For example, put a banner at
320
+ `web-assets/banner.png` or an effect package at `web-effects/sparks/`, relative to that working directory. Its root
321
+ and backend configuration folders are not upload areas. Generated previews and exported mods still use the fixed
322
+ `.agend/appearance/` and `.agend/mods/` directories and can be read back or proposed there.
323
+
324
+ The daemon uses its launch identity and configuration; the CLI resolves `AGEND_INSTANCE_NAME` against `fleet.yaml`.
325
+ These checks require a canonical, exclusively owned directory: the state root, shared or overlapping configured
326
+ working directories, another instance's directory, and the host's state stores never qualify. No tool argument can
327
+ select an identity or working directory. Missing or unreadable ownership evidence refuses in-state access.
328
+
329
+ Inside all admitted in-state areas, `.env`, databases and their WAL/SHM/journal files, `instances/`,
330
+ `credential-profiles/`, `inbox/`, `web-files/`, `web-chat.json`, `chat-logs/`, backend credential/session/config files,
331
+ and hidden files or folders are refused. The only hidden-directory exception is the two generated `.agend/`
332
+ output directories above; their contents still undergo the sensitive-name checks. Hard-linked state files are also
333
+ refused. Copy an intended asset into staging as a new regular file; do not link a private state file there.
334
+
335
+ Paths are checked after resolving symlinks. A symlink named after General or a workspace, or in its managed parent
336
+ path, cannot widen access; uploaded files themselves must not be symlinks. Containment still applies to relative and
337
+ absolute paths and to each file in an effect package. The CLI name and current directory are controlled by its shell:
338
+ these local checks prevent accidental uploads, but do not isolate shells running as the same OS user.
339
+
340
+ ## Effects
341
+
342
+ A Canvas Worker effect is a small animation drawn by code that runs in an isolated Worker: no page, no DOM, no
343
+ network. For petals, snow or stars on a click, an ambient effect (above) is simpler and plays without a Try. You place
344
+ effects **only in your own chat**; a person can place them in the regions an effect's manifest
345
+ allows. None of these tools takes a target.
346
+
347
+ **The package** (CW1): a directory in your working directory with `effect.json` and `worker.js`, optionally
348
+ `poster.png`, `cursor.png` and `assets/*.png|jpg|jpeg|webp|gif`. No HTML or CSS, at most 20 files and 16 assets. The
349
+ smallest valid `effect.json`:
350
+
351
+ ```json
352
+ { "v": 1, "kind": "effect", "runtime": "canvas-worker-v1", "worker": "worker.js", "name": "spark", "title": "Spark", "regions": ["chat"], "layer": "behind", "wants": [] }
353
+ ```
354
+
355
+ - Optional fields: `description`, `poster` (`"poster.png"`), `box`, `cursor` (its `hotspot` inside the image) and
356
+ `params`.
357
+ - `name`: 1..32 characters, starting with a-z or 0-9, then a-z, 0-9 and -.
358
+ - `title` (1..40) and `description` (up to 200): one line each, counted in characters as people see them.
359
+ - `regions`: 1–5 of `chat`, `sidebar`, `header`, `page`, `box`. **Include `chat` to place it in a chat**: applying
360
+ one without it is refused (`effect_region`), and so is a mod placing it. The other regions are ones a person may
361
+ choose it for.
362
+ - `layer`: `behind` (under the content) or `front` (over it).
363
+ - `wants`: up to 5 of `pointer`, `state`, `reply`, `mention`, `theme`. **`mention` is reserved and never fires in
364
+ 2.3.0** (see Effect event availability).
365
+ - `params`: up to 16 typed parameters (`number`, `int`, `bool`, `enum`, `color`) a placement may set.
366
+ - `worker.js` (at most 1 MiB, a classic script: static `import` / `export` are refused) draws through the `agend` API:
367
+ `canvas`, `params`, `asset()`, `on()`, `frame()` and `ready()`. Call `ready()` within 10 s, or it is stopped. Network
368
+ and dynamic imports are blocked at run time; the upload may warn `network_or_import_api_unsupported`, but don't rely
369
+ on the warning to catch every use.
370
+ - Size: `effect.json` at most 64 KiB; the whole effect at most 8 MiB as uploaded and **1 MiB normalized**. Pictures:
371
+ at most 4096 px a side, and **8,388,608 pixels in total** across the assets, poster and cursor together. A cursor is
372
+ a square PNG of at most 64 px and 32 KiB (after metadata is stripped).
373
+
374
+ **Reusable pointer example:** [`docs/examples/click-sparks`](https://github.com/songsid/AgEnD/blob/main/docs/examples/click-sparks.md) has a small two-file CW1 package: click for a burst, hold the primary button and move for a trail. Copy it into your working directory before uploading. Protected controls receive no pointer input; samples are coalesced (up to 60 Hz, 30 at reduced quality), so do not use it as a required click or drag control.
375
+
376
+ **The tools:**
377
+
378
+ - `upload_web_effect { dir }` → `{ id, warnings }`. Uploads are not counted; the effect's own size caps apply.
379
+ **Your own** copies are at most **10 effects and 8 MiB**; effects a person shared with you don't count.
380
+ - `list_web_effects` — your own effects and those a person shared with you: `id`, `name`, `title`, `regions`, `layer`,
381
+ `bytes`, `latest_profile`. A currently placed effect also has `playback`: `status: "reported_blocked"` with closed
382
+ `reasons`, or `status: "unknown"`. `get_web_appearance.effects` lists your current placements with the same projection.
383
+ This means **some recent viewers reported blocked**, not all viewers and not a live permission or health check.
384
+ Observations expire after five minutes and stay in memory. Agents receive no viewer identifiers, counts, device/OS,
385
+ text, URLs or observation timestamps. Unknown means unknown; do not keep reapplying to bypass a viewer's choice.
386
+ - `apply_web_effect { id, params? }` places one in your chat, **at most two at a time**, with the declared `params`
387
+ (unknown or out of range → `effect_params`; regions without `chat` → `effect_region`). `remove_web_effect { id? }`
388
+ takes one out, or all of them. Both are changes (30 s apart, 10 an hour), and are refused while a person has locked
389
+ your theme (`locked`) or when the fleet turned agent changes off (`theme_editing_off`).
390
+ - `delete_web_effect { id }` deletes your own copy once nothing uses it; a placement, mod, stage or Try offer gives
391
+ `effect_in_use`. Another's copy is never removed.
392
+ - `profile_web_effect { id }` — how it ran on viewers' pages, per device class: `unmeasured`, or `reported` with
393
+ records carrying a `verdict` (`ok`, `degraded`, `paused`, `off`) and a `reason` (`host_budget`, `hidden`,
394
+ `reduced_motion`, `save_data`, `viewer_off`, `clock_unavailable`, `gates_unknown`, or none).
395
+ `list_web_effects`' `latest_profile` has the latest one. These are best-effort reports of what happened, not live
396
+ notices. No measurement means unknown, never healthy.
397
+ - `preview_web_effect { id }` offers a Try card in your chat (see Try below).
398
+ - **Sharing is a person's act.** You can't share an effect. You may use one a person shared with you (list, apply,
399
+ Try, profile, put in a mod) while it is shared. When they unshare it, a placement already in your chat stays
400
+ eligible for playback (subject to the viewer's and the safety rules); applying, Try, listing, profiling or exporting
401
+ it again needs your own copy or another share, else `not_found`. A placement is never a grant to export it.
402
+
403
+ **On a viewer's page:**
404
+
405
+ - At most **3** effects play at once, at most **2** of them `front` (1 and 1 on a constrained device); the rest wait
406
+ (`frame_limit`, `front_limit`).
407
+ - CW uses an opaque isolated document on the dashboard listener: no HTML-preview consent, separate preview port or
408
+ localhost requirement. Signed-in public/guest viewers may read and play only current effects in chats they can see;
409
+ this grants no library management, personal-slot, private-image, Trial or profile access. Their Chat header has a
410
+ browser-local show/off switch, including on phones, and an inline recovery action. It never writes host preferences.
411
+ - Playback starts without an empty-page FPS calibration. Safe mode, hidden tabs and the viewer's show switch still
412
+ stop it. **Effects: follow the system's reduced-motion setting** is device-local and **off by default**, shared with
413
+ ambient effects. The OS request alone does not block playback; data saver is informational. A one-time chat note
414
+ offers to follow reduced motion, and a motion refusal offers **Play effects anyway** right there, including public/guest
415
+ viewers. Safe mode offers **Leave safe mode**. A poster may replace unsupported playback or a chosen motion block
416
+ (see Static Chat fallback). Menus/dialogs stop `front` effects temporarily.
417
+ - A layout refusal keeps its local code in the Chat notice and Effects dialog (for example `stock_order_unknown`);
418
+ the browser console also names it. Report that code rather than repeatedly applying the effect. A failed Try leaves
419
+ its stop code on the offer card. Pointer-leave does not stop Try; window blur, closing, navigation or lost stage proof do.
420
+ Agent playback summaries still contain only the closed reporting reasons, never raw local diagnostics.
421
+ - **Safety pause** — it measures the page's responsiveness, not your Worker's CPU. Host rAF observations learn a live
422
+ cadence during warm-up, then fix the mount's floor at 90% of a faster observed cadence, capped at 55 fps (50 on a
423
+ constrained device). A steady 30 Hz display has a 27 fps floor. This is not an empty-page health certificate; uniformly
424
+ slow startup can look like a low-refresh display. Where reported, long tasks may take at most 50 ms a second (25 ms
425
+ constrained); unknown observations never count as free. Overlapping 2-second windows are judged at most once a second
426
+ after warm-up, and three bad judgements in a row pause the effect (`host_budget`).
427
+ - Only a viewer's explicit **Resume** restarts a safety-paused effect, and it doesn't clear the history: three such
428
+ pauses within 24 hours turn the effect **off** for that viewer's browser and device class, across tabs and reloads,
429
+ and Resume then refuses. It doesn't come back by itself after 24 hours.
430
+ - **Your `front` effects are paused while the viewer's custom CSS is on, loading or unknown**; `behind` effects play
431
+ once the page's stock layout is proven. A person's placement is exempt. Don't keep re-applying (see below).
432
+
201
433
  ## Owner-level effect selections
202
434
 
203
435
  The five owner keys `fx.sidebar`, `fx.header`, `fx.page`, `fx.box` and `fx.cursor` are a signed-in person's web
@@ -212,25 +444,27 @@ from being collected until cleared. This is deliberately stricter than chat plac
212
444
  a personal choice keeps following its person's current own/shared access, while a chat preserves the exact effect
213
445
  placed there. A reference is not a sharing or export grant. Do not keep retrying a denied personal selection.
214
446
 
215
- Owner selectors are available in Settings → Web appearance. With effects and preview consent enabled, personal
216
- page/header/sidebar/box choices play across supported stock pages in the same pool as local signed-in Chat.
217
- Appearance offers slot Pause/Resume and unavailable/Clear controls. The personal cursor uses a static PNG on the host shell after the same consent: no Worker/code read or frame slot. It preserves explicit pointer/text/resize cursors, falls back while dragging or on failure, and has status/Clear rather than Worker Pause/Resume. Before revealing paint, the host must prove stock content
447
+ Owner selectors are available in Settings → Web appearance. With effects enabled, personal page/header/sidebar/box choices play across supported stock pages in the same pool
448
+ as signed-in Chat. HTML-preview consent and its service are not involved.
449
+ Web appearance offers slot Pause/Resume and unavailable/Clear controls. The personal cursor uses a static PNG on the host shell without HTML-preview consent: no Worker/code read or frame slot. It preserves explicit pointer/text/resize cursors, falls back while dragging or on failure, and has status/Clear rather than Worker Pause/Resume. Before revealing paint, the host must prove stock content
218
450
  ordering and trust paint coverage. Agent front effects must remain paused when custom CSS is active, loading or
219
451
  unknown; a person sees the reason and can open the causing setting. Human placements retain their exemption from
220
452
  that agent restriction, and behind effects still require proven ordering. Saving a placement alone is not proof of
221
453
  playback.
222
454
 
223
- Visible menus, dialogs, Keep/tour notices and focused inputs suppress all foreground effects; a human placement
224
- does not bypass those host safety gates. Unknown stock layout refuses admission. A trusted foreground plane is
455
+ Visible menus, dialogs and Keep/tour notices suppress foreground effects; a human placement does not bypass them.
456
+ Editable focus suppresses pointer signals, not unrelated drawing. Protected controls stay clipped out of front paint;
457
+ keyboard events never enter the Worker. Unknown stock layout refuses admission. A trusted foreground plane is
225
458
  deferred to #1940; do not keep reapplying an agent front while custom CSS is on, loading or unknown.
226
459
 
227
- ### Try: offer first, local admin click to start
460
+ ### Try: offer first, signed-in admin click to start
228
461
 
229
462
  `preview_web_effect({id})` posts a volatile Try card in your own web chat, using your current own/shared read rights. It starts nothing and changes no appearance. The sample is physically clipped inside its own host panel or sheet. Only an explicit
230
- click by a signed-in **local admin** may start it; never an agent, public link, header token or automatic action.
463
+ click by a signed-in **admin outside the public link** may start it (localhost is not required); never an agent, public link, header token or automatic action.
231
464
  The host owns a visible Trial label and Stop control. Closing the panel/sheet, navigating, window blur, or another
232
- menu/dialog stops it. Custom CSS must be off (on/loading/unknown denies), and the same caps, profiler and safety
233
- stops apply. Ordinary foreground effects stay suppressed. A volatile offer lasts at most ten minutes; every read
465
+ menu/dialog stops it. The explicit Try click consents to this sample only; no global HTML-preview opt-in is needed or changed.
466
+ The host isolates the Trial controls and clipped stage in a closed Shadow DOM with fixed styles and reset typography.
467
+ Custom CSS stays active elsewhere. The same caps, profiler and safety stops apply. Ordinary foreground effects stay suppressed. A volatile offer lasts at most ten minutes (offering the same effect again keeps that offer and its expiry; a different effect replaces it); every read
234
468
  rechecks the originating agent's current own/shared access, with the trial bound to the admin's session and epoch.
235
469
  There is no saved placement, claim, share, export or new saved profile record. Cards are memory-only and become inert when expired; a restart never restores them. Try uses manifest defaults and the existing app pool, not a second runtime. Do not treat an offer id or ordinary reply button
236
470
  as permission to run or fetch an effect, and do not keep retrying an unavailable Try.
@@ -238,12 +472,12 @@ as permission to run or fetch an effect, and do not keep retrying an unavailable
238
472
 
239
473
  ## Static Chat fallback
240
474
 
241
- When preview is unavailable, consent is missing, motion/data settings prevent playback, or the page is a public link,
475
+ When Worker/transport support is unavailable, the chosen motion preference prevents playback, or the page has no playback session,
242
476
  a current chat placement with a poster can show its static PNG **behind** the content; a front declaration does not
243
477
  make its poster foreground. No poster means nothing is drawn. Safe mode and the viewer's show switch hide posters
244
478
  too; unknown stock ordering refuses paint. Explicit Pause, queued effects and a failed live read are not replaced by
245
479
  this surface fallback. A failed static read/decode stops its poster pool until a changed revision or page reload;
246
- there is no automatic network retry. The public link offers no Effects playback controls or Worker code.
480
+ there is no automatic network retry. Public viewers can read current Chat Worker code, with fresh session/exposure/placement checks; they acquire no library or personal-slot grant. They have no placement-management or Try controls.
247
481
 
248
482
  The public-link show switch is this browser's choice, kept separately from boot-cached host defaults; it never writes
249
483
  a host preference. The ordinary signed-in switch keeps its existing host preference. Do not depend on decoration to