@songsid/agend 2.4.0-beta.24 → 2.4.0-beta.26

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 (488) hide show
  1. package/README.md +1 -1
  2. package/README.zh-TW.md +1 -1
  3. package/dist/agend-home.js +5 -5
  4. package/dist/agend-home.js.map +1 -1
  5. package/dist/agent-endpoint.js +10 -0
  6. package/dist/agent-endpoint.js.map +1 -1
  7. package/dist/agent-file-read.js +1 -1
  8. package/dist/agent-file-read.js.map +1 -1
  9. package/dist/agent-workspace.d.ts +18 -2
  10. package/dist/agent-workspace.js +15 -4
  11. package/dist/agent-workspace.js.map +1 -1
  12. package/dist/auth-api.js +3 -1
  13. package/dist/auth-api.js.map +1 -1
  14. package/dist/backend/antigravity.js +8 -6
  15. package/dist/backend/antigravity.js.map +1 -1
  16. package/dist/backend/claude-code.js +17 -0
  17. package/dist/backend/claude-code.js.map +1 -1
  18. package/dist/backend/claude-usage-credits.d.ts +8 -0
  19. package/dist/backend/claude-usage-credits.js +121 -0
  20. package/dist/backend/claude-usage-credits.js.map +1 -0
  21. package/dist/backend/types.d.ts +30 -0
  22. package/dist/backend/types.js.map +1 -1
  23. package/dist/build-provenance.json +1 -1
  24. package/dist/channel/adapters/discord.js +7 -1
  25. package/dist/channel/adapters/discord.js.map +1 -1
  26. package/dist/channel/mcp-tools.js +1 -1
  27. package/dist/channel/mcp-tools.js.map +1 -1
  28. package/dist/channel/tool-router.js +1 -0
  29. package/dist/channel/tool-router.js.map +1 -1
  30. package/dist/cli-audited.js +9 -4
  31. package/dist/cli-audited.js.map +1 -1
  32. package/dist/cli.js +184 -21
  33. package/dist/cli.js.map +1 -1
  34. package/dist/config-validator.js +11 -1
  35. package/dist/config-validator.js.map +1 -1
  36. package/dist/config.js +2 -0
  37. package/dist/config.js.map +1 -1
  38. package/dist/contact-auth-store.d.ts +18 -0
  39. package/dist/contact-auth-store.js +55 -8
  40. package/dist/contact-auth-store.js.map +1 -1
  41. package/dist/contact-auth-types.d.ts +3 -0
  42. package/dist/contact-auth-types.js.map +1 -1
  43. package/dist/contact-change-proposals.d.ts +34 -0
  44. package/dist/contact-change-proposals.js +1 -1
  45. package/dist/contact-change-proposals.js.map +1 -1
  46. package/dist/cross-instance-notice.d.ts +1 -0
  47. package/dist/cross-instance-notice.js +9 -8
  48. package/dist/cross-instance-notice.js.map +1 -1
  49. package/dist/daemon.d.ts +35 -0
  50. package/dist/daemon.js +234 -19
  51. package/dist/daemon.js.map +1 -1
  52. package/dist/delivery-outbox.d.ts +42 -1
  53. package/dist/delivery-outbox.js +198 -21
  54. package/dist/delivery-outbox.js.map +1 -1
  55. package/dist/fleet-context.d.ts +8 -0
  56. package/dist/fleet-lock.d.ts +83 -2
  57. package/dist/fleet-lock.js +276 -2
  58. package/dist/fleet-lock.js.map +1 -1
  59. package/dist/fleet-manager.d.ts +183 -7
  60. package/dist/fleet-manager.js +1279 -78
  61. package/dist/fleet-manager.js.map +1 -1
  62. package/dist/fleet-windows-runtime.d.ts +20 -1
  63. package/dist/fleet-windows-runtime.js +98 -18
  64. package/dist/fleet-windows-runtime.js.map +1 -1
  65. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +13 -1
  66. package/dist/general-knowledge/skills/hub/SKILL.md +12 -1
  67. package/dist/general-knowledge/skills/web-appearance/SKILL.md +3 -1
  68. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +21 -4
  69. package/dist/home-update-lock.d.ts +35 -0
  70. package/dist/home-update-lock.js +81 -0
  71. package/dist/home-update-lock.js.map +1 -0
  72. package/dist/hub/client.js +7 -0
  73. package/dist/hub/client.js.map +1 -1
  74. package/dist/hub/compose/member.d.ts +5 -1
  75. package/dist/hub/compose/member.js +15 -6
  76. package/dist/hub/compose/member.js.map +1 -1
  77. package/dist/hub/compose/server.d.ts +1 -0
  78. package/dist/hub/compose/server.js +3 -2
  79. package/dist/hub/compose/server.js.map +1 -1
  80. package/dist/hub/http/compose.js +3 -2
  81. package/dist/hub/http/compose.js.map +1 -1
  82. package/dist/hub/http/deps.d.ts +1 -0
  83. package/dist/hub/member/room-ask.d.ts +12 -8
  84. package/dist/hub/member/room-ask.js +95 -29
  85. package/dist/hub/member/room-ask.js.map +1 -1
  86. package/dist/hub/member/room-mention-feedback.d.ts +2 -0
  87. package/dist/hub/member/room-mention-feedback.js +1 -1
  88. package/dist/hub/member/room-mention-feedback.js.map +1 -1
  89. package/dist/hub/member/room-post-answers.d.ts +2 -0
  90. package/dist/hub/member/room-post-answers.js +1 -1
  91. package/dist/hub/member/room-post-answers.js.map +1 -1
  92. package/dist/hub/member/room-post.d.ts +5 -0
  93. package/dist/hub/member/room-post.js +4 -1
  94. package/dist/hub/member/room-post.js.map +1 -1
  95. package/dist/hub/member/room-reaction-acks.d.ts +12 -0
  96. package/dist/hub/member/room-reaction-acks.js +44 -0
  97. package/dist/hub/member/room-reaction-acks.js.map +1 -0
  98. package/dist/hub/member/updates.d.ts +7 -1
  99. package/dist/hub/member/updates.js +7 -1
  100. package/dist/hub/member/updates.js.map +1 -1
  101. package/dist/hub/protocol.d.ts +4 -0
  102. package/dist/hub/protocol.js +2 -2
  103. package/dist/hub/protocol.js.map +1 -1
  104. package/dist/hub/representative.d.ts +7 -0
  105. package/dist/hub/representative.js +38 -5
  106. package/dist/hub/representative.js.map +1 -1
  107. package/dist/hub/roles/audit-details.d.ts +2 -0
  108. package/dist/hub/roles/audit-details.js +1 -1
  109. package/dist/hub/roles/audit-details.js.map +1 -1
  110. package/dist/hub/roles/authority.d.ts +8 -3
  111. package/dist/hub/roles/authority.js +144 -102
  112. package/dist/hub/roles/authority.js.map +1 -1
  113. package/dist/hub/roles/delegation.js +2 -2
  114. package/dist/hub/roles/delegation.js.map +1 -1
  115. package/dist/hub/roles/model.d.ts +5 -2
  116. package/dist/hub/roles/model.js +5 -4
  117. package/dist/hub/roles/model.js.map +1 -1
  118. package/dist/hub/roles/review.js +2 -2
  119. package/dist/hub/roles/review.js.map +1 -1
  120. package/dist/hub/room-react-ack-model.d.ts +2 -0
  121. package/dist/hub/room-react-ack-model.js +3 -0
  122. package/dist/hub/room-react-ack-model.js.map +1 -0
  123. package/dist/hub/rooms/admin.d.ts +6 -0
  124. package/dist/hub/rooms/admin.js +33 -0
  125. package/dist/hub/rooms/admin.js.map +1 -1
  126. package/dist/hub/rooms/agents.d.ts +2 -0
  127. package/dist/hub/rooms/agents.js +44 -3
  128. package/dist/hub/rooms/agents.js.map +1 -1
  129. package/dist/hub/rooms/service.d.ts +5 -1
  130. package/dist/hub/rooms/service.js +76 -24
  131. package/dist/hub/rooms/service.js.map +1 -1
  132. package/dist/hub/rooms/types.d.ts +2 -0
  133. package/dist/hub/server.js +6 -1
  134. package/dist/hub/server.js.map +1 -1
  135. package/dist/hub/types.d.ts +2 -0
  136. package/dist/install-lock.d.ts +15 -1
  137. package/dist/install-lock.js +16 -8
  138. package/dist/install-lock.js.map +1 -1
  139. package/dist/install-ownership.d.ts +165 -0
  140. package/dist/install-ownership.js +404 -0
  141. package/dist/install-ownership.js.map +1 -0
  142. package/dist/instance-config-impact.js +2 -0
  143. package/dist/instance-config-impact.js.map +1 -1
  144. package/dist/instructions.d.ts +4 -0
  145. package/dist/instructions.js +4 -0
  146. package/dist/instructions.js.map +1 -1
  147. package/dist/local-pane-endpoint.d.ts +4 -1
  148. package/dist/local-pane-endpoint.js +12 -2
  149. package/dist/local-pane-endpoint.js.map +1 -1
  150. package/dist/locale.js +162 -6
  151. package/dist/locale.js.map +1 -1
  152. package/dist/native-agent-admission.d.ts +7 -0
  153. package/dist/native-agent-admission.js +46 -3
  154. package/dist/native-agent-admission.js.map +1 -1
  155. package/dist/native-mcp.d.ts +16 -1
  156. package/dist/native-mcp.js +38 -5
  157. package/dist/native-mcp.js.map +1 -1
  158. package/dist/native-pane-lifecycle.d.ts +9 -0
  159. package/dist/native-pane-lifecycle.js +23 -0
  160. package/dist/native-pane-lifecycle.js.map +1 -1
  161. package/dist/native-pane-manager.d.ts +19 -6
  162. package/dist/native-pane-manager.js +79 -4
  163. package/dist/native-pane-manager.js.map +1 -1
  164. package/dist/needs-you.d.ts +8 -0
  165. package/dist/needs-you.js +1 -0
  166. package/dist/needs-you.js.map +1 -1
  167. package/dist/outbound-handlers.d.ts +12 -0
  168. package/dist/outbound-handlers.js +30 -2
  169. package/dist/outbound-handlers.js.map +1 -1
  170. package/dist/package-preimage.js +4 -0
  171. package/dist/package-preimage.js.map +1 -1
  172. package/dist/pane-port.d.ts +1 -0
  173. package/dist/plist-args.d.ts +9 -0
  174. package/dist/plist-args.js +22 -0
  175. package/dist/plist-args.js.map +1 -0
  176. package/dist/public-preview.d.ts +4 -6
  177. package/dist/public-preview.js +5 -2
  178. package/dist/public-preview.js.map +1 -1
  179. package/dist/public-web-gateway.js +10 -3
  180. package/dist/public-web-gateway.js.map +1 -1
  181. package/dist/public-web-link.d.ts +13 -1
  182. package/dist/public-web-link.js +28 -1
  183. package/dist/public-web-link.js.map +1 -1
  184. package/dist/recover.cjs +2638 -0
  185. package/dist/remote-card-prompt.d.ts +6 -2
  186. package/dist/remote-card-prompt.js +12 -3
  187. package/dist/remote-card-prompt.js.map +1 -1
  188. package/dist/reply-draft.d.ts +12 -0
  189. package/dist/reply-draft.js +81 -0
  190. package/dist/reply-draft.js.map +1 -0
  191. package/dist/request-contact-api.d.ts +15 -0
  192. package/dist/request-contact-api.js +120 -0
  193. package/dist/request-contact-api.js.map +1 -0
  194. package/dist/request-contact-card.d.ts +36 -0
  195. package/dist/request-contact-card.js +206 -0
  196. package/dist/request-contact-card.js.map +1 -0
  197. package/dist/request-contact-gate.d.ts +79 -0
  198. package/dist/request-contact-gate.js +262 -0
  199. package/dist/request-contact-gate.js.map +1 -0
  200. package/dist/request-contact-native.d.ts +52 -0
  201. package/dist/request-contact-native.js +87 -0
  202. package/dist/request-contact-native.js.map +1 -0
  203. package/dist/request-contact-types.d.ts +86 -0
  204. package/dist/request-contact-types.js +7 -0
  205. package/dist/request-contact-types.js.map +1 -0
  206. package/dist/request-context-call-protocol.d.ts +12 -0
  207. package/dist/request-context-call-protocol.js +14 -0
  208. package/dist/request-context-call-protocol.js.map +1 -0
  209. package/dist/request-context-call.d.ts +22 -0
  210. package/dist/request-context-call.js +35 -0
  211. package/dist/request-context-call.js.map +1 -0
  212. package/dist/request-context-drain.d.ts +39 -0
  213. package/dist/request-context-drain.js +159 -0
  214. package/dist/request-context-drain.js.map +1 -0
  215. package/dist/request-context-fence.d.ts +28 -0
  216. package/dist/request-context-fence.js +58 -0
  217. package/dist/request-context-fence.js.map +1 -0
  218. package/dist/request-context-migration.d.ts +64 -0
  219. package/dist/request-context-migration.js +158 -0
  220. package/dist/request-context-migration.js.map +1 -0
  221. package/dist/request-context-pane.d.ts +25 -0
  222. package/dist/request-context-pane.js +48 -0
  223. package/dist/request-context-pane.js.map +1 -0
  224. package/dist/request-context-policy.d.ts +74 -0
  225. package/dist/request-context-policy.js +116 -0
  226. package/dist/request-context-policy.js.map +1 -0
  227. package/dist/request-context-recovery.d.ts +14 -0
  228. package/dist/request-context-recovery.js +56 -0
  229. package/dist/request-context-recovery.js.map +1 -0
  230. package/dist/request-context-relay.d.ts +19 -0
  231. package/dist/request-context-relay.js +63 -0
  232. package/dist/request-context-relay.js.map +1 -0
  233. package/dist/request-context-returns.d.ts +67 -0
  234. package/dist/request-context-returns.js +211 -0
  235. package/dist/request-context-returns.js.map +1 -0
  236. package/dist/request-context-store.d.ts +2 -1
  237. package/dist/request-context-store.js +8 -1
  238. package/dist/request-context-store.js.map +1 -1
  239. package/dist/request-context-turns.d.ts +99 -0
  240. package/dist/request-context-turns.js +215 -0
  241. package/dist/request-context-turns.js.map +1 -0
  242. package/dist/request-context-view.d.ts +33 -0
  243. package/dist/request-context-view.js +36 -0
  244. package/dist/request-context-view.js.map +1 -0
  245. package/dist/request-hub-context.d.ts +130 -0
  246. package/dist/request-hub-context.js +89 -0
  247. package/dist/request-hub-context.js.map +1 -0
  248. package/dist/request-hub-output.d.ts +11 -0
  249. package/dist/request-hub-output.js +21 -0
  250. package/dist/request-hub-output.js.map +1 -0
  251. package/dist/runtime-cli-install.js +13 -11
  252. package/dist/runtime-cli-install.js.map +1 -1
  253. package/dist/runtime-client.d.ts +2 -0
  254. package/dist/runtime-client.js +17 -4
  255. package/dist/runtime-client.js.map +1 -1
  256. package/dist/runtime-coordinator.d.ts +4 -1
  257. package/dist/runtime-coordinator.js +10 -3
  258. package/dist/runtime-coordinator.js.map +1 -1
  259. package/dist/runtime-pane-assets.d.ts +1 -1
  260. package/dist/runtime-pane-assets.js +1 -1
  261. package/dist/runtime-pane-assets.js.map +1 -1
  262. package/dist/runtime-pane-host.d.ts +3 -0
  263. package/dist/runtime-pane-host.js +39 -21
  264. package/dist/runtime-pane-host.js.map +1 -1
  265. package/dist/runtime-pane-link.d.ts +6 -2
  266. package/dist/runtime-pane-link.js +17 -4
  267. package/dist/runtime-pane-link.js.map +1 -1
  268. package/dist/runtime-pane-mcp-relay.d.ts +11 -1
  269. package/dist/runtime-pane-mcp-relay.js +69 -3
  270. package/dist/runtime-pane-mcp-relay.js.map +1 -1
  271. package/dist/runtime-pane-mcp.d.ts +28 -1
  272. package/dist/runtime-pane-mcp.js +92 -15
  273. package/dist/runtime-pane-mcp.js.map +1 -1
  274. package/dist/runtime-pane-port.d.ts +6 -0
  275. package/dist/runtime-pane-port.js +23 -4
  276. package/dist/runtime-pane-port.js.map +1 -1
  277. package/dist/runtime-pane-protocol.d.ts +4 -0
  278. package/dist/runtime-pane-protocol.js +11 -4
  279. package/dist/runtime-pane-protocol.js.map +1 -1
  280. package/dist/runtime-pane-service.d.ts +1 -0
  281. package/dist/runtime-pane-service.js +25 -9
  282. package/dist/runtime-pane-service.js.map +1 -1
  283. package/dist/runtime-pane-stdio-protocol.d.ts +4 -0
  284. package/dist/runtime-pane-stdio-protocol.js +12 -5
  285. package/dist/runtime-pane-stdio-protocol.js.map +1 -1
  286. package/dist/runtime-pane-stdio.js +5 -5
  287. package/dist/runtime-pane-stdio.js.map +1 -1
  288. package/dist/runtime-protocol.d.ts +3 -0
  289. package/dist/runtime-protocol.js.map +1 -1
  290. package/dist/scheduler/scheduler.d.ts +15 -0
  291. package/dist/scheduler/scheduler.js +45 -1
  292. package/dist/scheduler/scheduler.js.map +1 -1
  293. package/dist/scheduler/scheduler.test.js +17 -0
  294. package/dist/scheduler/scheduler.test.js.map +1 -1
  295. package/dist/scheduler/task-board.d.ts +4 -0
  296. package/dist/scheduler/task-board.js +6 -0
  297. package/dist/scheduler/task-board.js.map +1 -1
  298. package/dist/scheduler/types.d.ts +1 -1
  299. package/dist/service-activation.js +3 -13
  300. package/dist/service-activation.js.map +1 -1
  301. package/dist/service-lock.d.ts +28 -0
  302. package/dist/service-lock.js +85 -0
  303. package/dist/service-lock.js.map +1 -0
  304. package/dist/settings-api.d.ts +6 -0
  305. package/dist/settings-api.js +107 -0
  306. package/dist/settings-api.js.map +1 -1
  307. package/dist/settings-change.js +14 -1
  308. package/dist/settings-change.js.map +1 -1
  309. package/dist/settings-effect.js +11 -1
  310. package/dist/settings-effect.js.map +1 -1
  311. package/dist/state-lease.d.ts +24 -0
  312. package/dist/state-lease.js +103 -0
  313. package/dist/state-lease.js.map +1 -0
  314. package/dist/tmux-binary.js +1 -1
  315. package/dist/tmux-binary.js.map +1 -1
  316. package/dist/tool-receipt-output.d.ts +2 -0
  317. package/dist/topic-commands.js +21 -1
  318. package/dist/topic-commands.js.map +1 -1
  319. package/dist/transcript-monitor.js +3 -0
  320. package/dist/transcript-monitor.js.map +1 -1
  321. package/dist/tunnel/named-link-test.d.ts +27 -0
  322. package/dist/tunnel/named-link-test.js +41 -0
  323. package/dist/tunnel/named-link-test.js.map +1 -1
  324. package/dist/types.d.ts +7 -0
  325. package/dist/ui/chat-store.js +5 -4
  326. package/dist/ui/contact-auth-strings.js +7 -2
  327. package/dist/ui/contact-permissions.js +10 -2
  328. package/dist/ui/fleet-office-card.js +15 -2
  329. package/dist/ui/fleet-office-pack.d.ts +2 -2
  330. package/dist/ui/fleet-office-pack.js +25 -8
  331. package/dist/ui/fleet-office-skin.js +33 -9
  332. package/dist/ui/fleet-office-vehicles.js +28 -11
  333. package/dist/ui/fleet-office-zones.js +10 -5
  334. package/dist/ui/fleet-office.js +158 -20
  335. package/dist/ui/fleet-task-files.js +1 -1
  336. package/dist/ui/hub-admin-rooms-strings.js +6 -2
  337. package/dist/ui/hub-admin-rooms.js +3 -1
  338. package/dist/ui/hub-group-search.js +2 -2
  339. package/dist/ui/hub-notify-keep.js +49 -0
  340. package/dist/ui/hub-role-view.js +1 -1
  341. package/dist/ui/hub-roles-strings.js +14 -10
  342. package/dist/ui/hub-roles.js +1 -1
  343. package/dist/ui/hub-room-notify.js +2 -1
  344. package/dist/ui/hub-room-strings.js +3 -3
  345. package/dist/ui/hub-room-thread.js +9 -4
  346. package/dist/ui/panel-chat.js +15 -2
  347. package/dist/ui/panel-hub.js +3 -2
  348. package/dist/ui/panel-needs.js +35 -7
  349. package/dist/ui/panel-settings.js +22 -8
  350. package/dist/ui/settings-preview-address.js +156 -0
  351. package/dist/ui/settings-registry.js +2 -0
  352. package/dist/ui/settings-strings.js +6 -6
  353. package/dist/ui/settings-update.js +13 -0
  354. package/dist/ui/shared/app-install.js +123 -0
  355. package/dist/ui/shared/app-shell.js +4 -2
  356. package/dist/ui/shared/app-update.js +16 -2
  357. package/dist/ui/shared/app.css +119 -2
  358. package/dist/ui/shared/app.js +3 -0
  359. package/dist/ui/shared/chat-strings.js +6 -2
  360. package/dist/ui/shared/chat-thread.js +7 -1
  361. package/dist/ui/shared/hub-chat.css +6 -0
  362. package/dist/ui/shared/preview-panel.js +1 -1
  363. package/dist/ui/shared/preview.js +11 -2
  364. package/dist/ui/shared/tokens.css +18 -3
  365. package/dist/ui/shared/ui-confirm.js +7 -5
  366. package/dist/ui/shared/ui-icons.js +2 -0
  367. package/dist/ui/shared/update-card-ui.js +419 -0
  368. package/dist/ui/shared/workspace.css +7 -0
  369. package/dist/ui/usage-credits-card.js +84 -0
  370. package/dist/ui/workspace-ignored-strings.js +16 -0
  371. package/dist/ui/workspace-panel.js +15 -6
  372. package/dist/update-abandon.d.ts +26 -0
  373. package/dist/update-abandon.js +111 -0
  374. package/dist/update-abandon.js.map +1 -0
  375. package/dist/update-card.d.ts +193 -0
  376. package/dist/update-card.js +620 -0
  377. package/dist/update-card.js.map +1 -0
  378. package/dist/update-dispatch.d.ts +16 -1
  379. package/dist/update-dispatch.js +12 -4
  380. package/dist/update-dispatch.js.map +1 -1
  381. package/dist/update-forward.d.ts +59 -0
  382. package/dist/update-forward.js +227 -0
  383. package/dist/update-forward.js.map +1 -0
  384. package/dist/update-goback.d.ts +90 -0
  385. package/dist/update-goback.js +260 -0
  386. package/dist/update-goback.js.map +1 -0
  387. package/dist/update-idle.d.ts +1 -0
  388. package/dist/update-idle.js +12 -3
  389. package/dist/update-idle.js.map +1 -1
  390. package/dist/update-install.d.ts +2 -1
  391. package/dist/update-install.js +18 -10
  392. package/dist/update-install.js.map +1 -1
  393. package/dist/update-journal.d.ts +359 -0
  394. package/dist/update-journal.js +723 -0
  395. package/dist/update-journal.js.map +1 -0
  396. package/dist/update-launch.js +1 -1
  397. package/dist/update-launch.js.map +1 -1
  398. package/dist/update-npm-env.d.ts +45 -12
  399. package/dist/update-npm-env.js +48 -0
  400. package/dist/update-npm-env.js.map +1 -1
  401. package/dist/update-package-restore.d.ts +84 -0
  402. package/dist/update-package-restore.js +329 -0
  403. package/dist/update-package-restore.js.map +1 -0
  404. package/dist/update-quiescence.d.ts +221 -0
  405. package/dist/update-quiescence.js +370 -0
  406. package/dist/update-quiescence.js.map +1 -0
  407. package/dist/update-readiness-host.d.ts +61 -0
  408. package/dist/update-readiness-host.js +297 -0
  409. package/dist/update-readiness-host.js.map +1 -0
  410. package/dist/update-readiness.d.ts +83 -0
  411. package/dist/update-readiness.js +459 -0
  412. package/dist/update-readiness.js.map +1 -0
  413. package/dist/update-recovery/kit.d.ts +35 -0
  414. package/dist/update-recovery/kit.js +99 -0
  415. package/dist/update-recovery/kit.js.map +1 -0
  416. package/dist/update-recovery/pre-start.d.ts +34 -0
  417. package/dist/update-recovery/pre-start.js +103 -0
  418. package/dist/update-recovery/pre-start.js.map +1 -0
  419. package/dist/update-recovery/recover-main.d.ts +1 -0
  420. package/dist/update-recovery/recover-main.js +4 -0
  421. package/dist/update-recovery/recover-main.js.map +1 -0
  422. package/dist/update-recovery/recover.d.ts +22 -0
  423. package/dist/update-recovery/recover.js +134 -0
  424. package/dist/update-recovery/recover.js.map +1 -0
  425. package/dist/update-recovery/route.d.ts +53 -0
  426. package/dist/update-recovery/route.js +262 -0
  427. package/dist/update-recovery/route.js.map +1 -0
  428. package/dist/update-recovery/runner.d.ts +62 -0
  429. package/dist/update-recovery/runner.js +229 -0
  430. package/dist/update-recovery/runner.js.map +1 -0
  431. package/dist/update-recovery/service-manager.d.ts +39 -0
  432. package/dist/update-recovery/service-manager.js +57 -0
  433. package/dist/update-recovery/service-manager.js.map +1 -0
  434. package/dist/update-restore.d.ts +50 -0
  435. package/dist/update-restore.js +360 -0
  436. package/dist/update-restore.js.map +1 -0
  437. package/dist/update-retained.d.ts +65 -0
  438. package/dist/update-retained.js +116 -0
  439. package/dist/update-retained.js.map +1 -0
  440. package/dist/update-rollback.d.ts +74 -0
  441. package/dist/update-rollback.js +221 -0
  442. package/dist/update-rollback.js.map +1 -0
  443. package/dist/update-settings.d.ts +63 -0
  444. package/dist/update-settings.js +162 -0
  445. package/dist/update-settings.js.map +1 -0
  446. package/dist/update-snapshot-manifest.d.ts +32 -0
  447. package/dist/update-snapshot-manifest.js +65 -0
  448. package/dist/update-snapshot-manifest.js.map +1 -0
  449. package/dist/update-snapshot-scope.d.ts +67 -0
  450. package/dist/update-snapshot-scope.js +173 -0
  451. package/dist/update-snapshot-scope.js.map +1 -0
  452. package/dist/update-snapshot.d.ts +34 -0
  453. package/dist/update-snapshot.js +246 -0
  454. package/dist/update-snapshot.js.map +1 -0
  455. package/dist/update-writers.d.ts +71 -0
  456. package/dist/update-writers.js +235 -0
  457. package/dist/update-writers.js.map +1 -0
  458. package/dist/web-api.d.ts +3 -0
  459. package/dist/web-api.js +43 -8
  460. package/dist/web-api.js.map +1 -1
  461. package/dist/web-chat-history.d.ts +7 -0
  462. package/dist/web-chat-history.js +15 -0
  463. package/dist/web-chat-history.js.map +1 -1
  464. package/dist/web-icons.d.ts +11 -0
  465. package/dist/web-icons.js +14 -2
  466. package/dist/web-icons.js.map +1 -1
  467. package/dist/web-mentions.d.ts +27 -8
  468. package/dist/web-mentions.js +108 -1
  469. package/dist/web-mentions.js.map +1 -1
  470. package/dist/web-office-acts.js +3 -0
  471. package/dist/web-office-acts.js.map +1 -1
  472. package/dist/web-preview.d.ts +5 -0
  473. package/dist/web-preview.js +1 -1
  474. package/dist/web-preview.js.map +1 -1
  475. package/dist/web-update.d.ts +6 -0
  476. package/dist/windows-agents.d.ts +12 -0
  477. package/dist/windows-agents.js +5 -0
  478. package/dist/windows-agents.js.map +1 -1
  479. package/launcher/agend +4 -1
  480. package/launcher/agend-agent +4 -1
  481. package/launcher/agend-install.cjs +16 -8
  482. package/launcher/install-admission.d.cts +8 -0
  483. package/launcher/npm-allow-scripts.cjs +72 -0
  484. package/launcher/npm-global-prefix.cjs +81 -0
  485. package/launcher/postinstall.cjs +9 -8
  486. package/launcher/runtime-select.cjs +8 -2
  487. package/package.json +4 -3
  488. package/scripts/preinstall-guard.cjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"named-link-test.js","sourceRoot":"","sources":["../../src/tunnel/named-link-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,YAAY,EAAe,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MA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ACrJ,IAAI,IAAI,GAAqB,KAAK,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACpE,IAAI,GAAG,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC,KAAK,EAAE,GAAuB,CAAC,CAAC;QAC9D,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAClD,IAAI,GAAG,OAAO,CAAC;QACf,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,WAAW,QAAQ,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1I,OAAO,IAAI,CAAC,OAAO,EAAE,KAAyB,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,IAAI,CAAC,IAAI,EAAE,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACnG,CAAC;YAAS,CAAC;QAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;AACnC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -439,6 +439,8 @@ export interface WebConfig {
439
439
  tunnel_token_env?: string;
440
440
  origin_port?: number;
441
441
  auto_open?: boolean;
442
+ /** M-3814: a second hostname on the same named tunnel, routed to the preview port: the fixed link's previews. */
443
+ preview_hostname?: string;
442
444
  };
443
445
  /** Echo web chat to the owning fleet topic (default true); never ClassicBot rooms. */
444
446
  echo_to_channel?: boolean;
@@ -735,6 +737,11 @@ export interface FleetConfig {
735
737
  remote_runtime?: boolean;
736
738
  max_agents_per_machine?: number;
737
739
  };
740
+ /**
741
+ * M-3762: one update offer. `mode` auto-when-idle is stored and not acted on until Phase 5.
742
+ * `pause` days are 0 (Sunday) through 6. `pin` set means nothing is offered. `maxIdleWait` is hours (default 24).
743
+ */
744
+ updates?: import("./update-settings.js").UpdatesSettings;
738
745
  }
739
746
  /**
740
747
  * User-authored fleet.yaml before defaults are merged into instances.
@@ -9,6 +9,7 @@
9
9
  // navigation — it counts as use, as the old click did). Coming back to it reads nothing; the stream keeps it current.
10
10
  import "/assets/chat-render.js";
11
11
  import { createLiveAgentReplies } from "./chat-live-replies.js";
12
+ import { usageCreditsActions } from "./usage-credits-card.js";
12
13
  /** A message's identity on this page (ids restart with each fleet process; the boot makes them unique). */
13
14
  const msgKeyOf = (m) => `${m.boot}-${m.id}`;
14
15
 
@@ -236,7 +237,7 @@ export function createChatStore(deps) {
236
237
  // A prompt already held (being answered, or claimed from Needs you) keeps its busy/answered state: a repeat of it
237
238
  // only refreshes its text and buttons (#1463 review).
238
239
  if (!had) s.prompts[p.nonce] = { ...p, resolved: false, busy: false };
239
- else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, expiresAt: p.expiresAt });
240
+ else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, view: p.view, expiresAt: p.expiresAt });
240
241
  if (shown().has(p.instance)) changed(p.instance);
241
242
  else if (fresh) deps.toast(tf("chat.promptFor", p.instance, p.text), false);
242
243
  }
@@ -248,7 +249,7 @@ export function createChatStore(deps) {
248
249
  for (const p of list) {
249
250
  const had = s.prompts[p.nonce];
250
251
  if (!had) s.prompts[p.nonce] = { ...p, resolved: false, busy: false };
251
- else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, expiresAt: p.expiresAt });
252
+ else if (!had.resolved) Object.assign(had, { text: p.text, links: p.links, actions: p.actions, view: p.view, expiresAt: p.expiresAt });
252
253
  }
253
254
  for (const n of Object.keys(s.prompts)) if (!s.prompts[n].resolved && !open.has(n)) s.prompts[n].resolved = true;
254
255
  changed(null);
@@ -264,7 +265,7 @@ export function createChatStore(deps) {
264
265
  /** `text`: #2675 — the typed answer, for an action the prompt shows a text box for. */
265
266
  async function answerPrompt(p, action, text) {
266
267
  if (p.busy || p.resolved) return;
267
- const confirmation = p.actions?.find(a => a.id === action)?.confirmation;
268
+ const confirmation = (p.view && p.view.kind === "usage-credits" ? usageCreditsActions(p.view, p.actions) : p.actions)?.find(a => a.id === action)?.confirmation;
268
269
  p.busy = true; p.confirming = !!confirmation; changed(p.instance);
269
270
  if (confirmation) {
270
271
  const yes = deps.confirm ? await deps.confirm({ ...confirmation, danger: true }) : false;
@@ -291,7 +292,7 @@ export function createChatStore(deps) {
291
292
  function answerByNonce(item, action) {
292
293
  if (!item || typeof item.nonce !== "string") return Promise.resolve();
293
294
  let p = s.prompts[item.nonce];
294
- if (!p) p = s.prompts[item.nonce] = { instance: item.instance, nonce: item.nonce, text: item.text || item.detail || "", actions: item.actions || [], resolved: false, busy: false };
295
+ if (!p) p = s.prompts[item.nonce] = { instance: item.instance, nonce: item.nonce, text: item.text || item.detail || "", actions: item.actions || [], ...(item.view ? { view: item.view } : {}), resolved: false, busy: false };
295
296
  return answerPrompt(p, action);
296
297
  }
297
298
  /** A claim taken elsewhere before this store existed (Needs you, before Chat booted): held here from now on. */
@@ -74,9 +74,12 @@ register("contactAuth", {
74
74
  originTitle: "Retained origin", originClear: "Clear retained origin", originCleared: "Retained origin cleared.",
75
75
  originKind_none: "No retained origin", originKind_human: "One known person", originKind_mixed: "Multiple known people", originKind_unknown: "Unknown origin",
76
76
  originPeople: "Originating people", originPeopleNone: "No known person.", originChain: "Agent hops", originChainNone: "No retained hops",
77
- originReceipts: "{0} retained receipts", originLastCleared: "Last cleared by {0} at {1}",
77
+ originReceipts: "{0} retained receipts", originReceipt: "{0} retained receipt", originLastCleared: "Last cleared by {0} at {1}",
78
+ originClearWho: "Only this agent's managing admins ({0}) or the verified host operator can clear it.", originClearWhoHost: "Only the verified host operator can clear it.", originNameSep: ", ",
78
79
  originRetainedNote: "Origins stay with this agent, including work inherited from other agents. Only a managing administrator can explicitly clear them; idle, compaction and later admin messages do not.",
79
80
  originClearConfirm: "Clear this agent's retained origin? You accept its current conversation as your own work. Earlier text is not erased. New non-admin requests will require approval again. Other agents, existing tickets and grants are unchanged.",
81
+ // M-3830: a fleet agent's own topic is not recorded, so only work it later inherits restricts it again.
82
+ originClearConfirmAgent: "Clear this agent's retained origin? You accept its current conversation as your own work. Earlier text is not erased. Work it later receives from a restricted room or an agent that needs approval will need approval again. Other agents, existing tickets and grants are unchanged.",
80
83
  // History
81
84
  historyTitle: "History", historyNone: "Nothing yet.",
82
85
  "action_origin-clear": "Retained origin cleared",
@@ -200,9 +203,11 @@ register("contactAuth", {
200
203
  originTitle: "保留的來源", originClear: "清除保留的來源", originCleared: "已清除保留的來源。",
201
204
  originKind_none: "沒有保留的來源", originKind_human: "一位已知提問者", originKind_mixed: "多位已知提問者", originKind_unknown: "來源不明",
202
205
  originPeople: "最初提問者", originPeopleNone: "沒有已知提問者。", originChain: "Agent 轉交路徑", originChainNone: "沒有保留的轉交路徑",
203
- originReceipts: "保留 {0} 筆來源紀錄", originLastCleared: "最後由 {0} 於 {1} 清除",
206
+ originReceipts: "保留 {0} 筆來源紀錄", originReceipt: "保留 {0} 筆來源紀錄", originLastCleared: "最後由 {0} 於 {1} 清除",
207
+ originClearWho: "只有管理這個 Agent 的管理員({0})或已驗證的主機操作者能清除。", originClearWhoHost: "只有已驗證的主機操作者能清除。", originNameSep: "、",
204
208
  originRetainedNote: "來源會跟著這個 Agent 保留,包含從其他 Agent 接手的工作。只有具管理權限的管理員能明確清除;閒置、壓縮對話或後來的管理員訊息都不會清除。",
205
209
  originClearConfirm: "清除此 Agent 保留的來源?這表示你接受目前對話作為自己的工作,先前文字不會刪除。新的非管理員請求仍會再次需要核准。其他 Agent、既有申請與授權都不變。",
210
+ originClearConfirmAgent: "清除此 Agent 保留的來源?這表示你接受目前對話作為自己的工作,先前文字不會刪除。之後從受限房間或需要核准的 Agent 接手的工作,仍會再次需要核准。其他 Agent、既有申請與授權都不變。",
206
211
  "action_origin-clear": "已清除保留的來源",
207
212
  historyTitle: "紀錄", historyNone: "目前沒有紀錄。",
208
213
  action_policy: "設定已變更", action_approve: "已核准", action_decline: "已拒絕", "action_grant-add": "已加入常用轉交", "action_grant-remove": "已移除常用轉交",
@@ -36,6 +36,13 @@ const GUARD_TONE = { ready: "ok", "restart-required": "warn", "not-covered": "wa
36
36
  /** The guard's state as said — anything the contract doesn't name is never shown as ready. */
37
37
  const guardState = (g) => (g && ["ready", "restart-required", "not-covered", "failed"].includes(g.state) ? g.state : "failed");
38
38
  const personLabel = (p) => (p && (p.label || p.userId)) || "";
39
+ /** M-3818: who may clear a retained origin, said when this viewer can't — the agent's managing admins (its eligible
40
+ * approvers, the server's list) and the verified host operator, who manages every local agent. */
41
+ const isOperator = (x) => x?.platform === "host" && x.adapterId === "host" && x.userId === "operator";
42
+ const clearWho = (people) => {
43
+ const names = (people || []).filter((x) => !isOperator(x)).map(personLabel).filter(Boolean);
44
+ return names.length ? ca("originClearWho", names.join(ca("originNameSep"))) : ca("originClearWhoHost");
45
+ };
39
46
 
40
47
  /** Keep `name`'s permissions read: once, on its contact-auth frame (a newer revision), and when the page is shown again. */
41
48
  export function usePermissions(name) {
@@ -135,7 +142,7 @@ export function ContactPermissionsPanel({ name }) {
135
142
  const clearRetainedOrigin = async () => {
136
143
  if (busy || !p.originState?.canClear) return;
137
144
  setBusy(true);
138
- const confirmed = await confirmDialog({ title: ca("originClear"), message: ca("originClearConfirm"),
145
+ const confirmed = await confirmDialog({ title: ca("originClear"), message: ca(p.classicRoom ? "originClearConfirm" : "originClearConfirmAgent"),
139
146
  confirmLabel: ca("originClear"), danger: true });
140
147
  if (!confirmed) { setBusy(false); return; }
141
148
  const r = await clearOrigin(name, { revision: p.revision, originRevision: p.originState.revision, generation: p.originState.generation });
@@ -238,9 +245,10 @@ export function ContactPermissionsPanel({ name }) {
238
245
  ${p.originState.people.length ? html`<ul class="contact-list contact-origin-people">${p.originState.people.map((person) => html`<li key=${`${person.platform}:${person.adapterId}:${person.userId}`}>
239
246
  <strong>${personLabel(person)}</strong> <span class="muted">${person.platform} · ${person.adapterId} · ${person.userId}</span></li>`)}</ul>` : html`<p class="note">${ca("originPeopleNone")}</p>`}
240
247
  <p class="contact-origin-chain">${ca("originChain")}: ${p.originState.chain.length ? p.originState.chain.join(" → ") : ca("originChainNone")}</p>
241
- <p class="note">${ca("originReceipts", p.originState.receiptCount)}</p>
248
+ <p class="note">${ca(p.originState.receiptCount === 1 ? "originReceipt" : "originReceipts", p.originState.receiptCount)}</p>
242
249
  ${p.originState.lastCleared ? html`<p class="contact-origin-last">${ca("originLastCleared", personLabel(p.originState.lastCleared.actor), when(p.originState.lastCleared.at))}</p>` : null}
243
250
  ${p.originState.canClear ? html`<button type="button" class="btn btn-sm btn-danger contact-origin-clear" disabled=${busy} onClick=${() => void clearRetainedOrigin()}>${ca("originClear")}</button>` : null}
251
+ ${!p.originState.canClear && p.originState.kind !== "none" ? html`<p class="note contact-origin-who">${clearWho(p.eligibleApprovers)}</p>` : null}
244
252
  </section>` : null}
245
253
  <section class="card contact-history">
246
254
  <h3>${ca("historyTitle")}</h3>
@@ -32,15 +32,23 @@ register("ocard", {
32
32
  today: "Today", todayN: "{0} work tokens · {1} requests", firstSeen: "First seen", day: "Day {0}", now: "Now", nowLabel: "Now: ", find: "Find in office", chat: "Chat", pat: "Pat", feed: "Feed", tell: "Tell {0} (with their next message)", tellNote: "Off: only you see it. On: a line like “[Office] <your name> patted your head ×3” rides the next message they get anyway — it never wakes them.",
33
33
  chatWindow: "Open {0}’s chat in a new window",
34
34
  close: "Close", xp: "Progress to Lv {0}", rename: "Rename (only you see it)", renameField: "Name you see",
35
+ previewPose: "Preview pose", previewOff: "Off", replay: "Replay", poseOption: "{0} ({1})",
36
+ pose_idle: "Idle", pose_working: "Working", pose_paused: "Paused", pose_needs: "Needs a person", pose_walkDown: "Walk down", pose_walkUp: "Walk up",
37
+ pose_walkSide: "Walk sideways", pose_walkLeft: "Walk left", pose_eat: "Eat", pose_pat: "Patted", pose_dragged: "Dragged", pose_stand: "Card pose",
35
38
  },
36
39
  "zh-TW": {
37
40
  card: "{0} 的名片", level: "Lv {0}", work: "{0} 工作 token", estimated: "估算", toNext: "再 {0} 到 Lv {1}", office: "辦公室", model: "模型", backend: "後端",
38
41
  today: "今天", todayN: "{0} 工作 token · {1} 次請求", firstSeen: "首次出現", day: "第 {0} 天", now: "現在", nowLabel: "現在:", find: "在辦公室找它", chat: "聊天", pat: "摸頭", feed: "餵點心", tell: "讓 {0} 知道(隨下一則訊息)", tellNote: "關閉:只有你看得到。開啟:下一則本來就會送給它的訊息會附上一行,例如「[Office] <你的名字> patted your head ×3」,不會叫醒它。",
39
42
  chatWindow: "在新視窗開啟 {0} 的聊天",
40
43
  close: "關閉", xp: "升到 Lv {0} 的進度", rename: "改名(只有你看得到)", renameField: "你看到的名字",
44
+ previewPose: "預覽動作", previewOff: "關閉", replay: "重播", poseOption: "{0}({1})",
45
+ pose_idle: "閒置", pose_working: "工作", pose_paused: "暫停", pose_needs: "呼叫人", pose_walkDown: "向下走", pose_walkUp: "向上走",
46
+ pose_walkSide: "側著走", pose_walkLeft: "向左走", pose_eat: "吃點心", pose_pat: "被摸頭", pose_dragged: "被拖著", pose_stand: "名片站姿",
41
47
  },
42
48
  });
43
49
  const tc = (k, ...v) => t(`ocard.${k}`, ...v);
50
+ /** #4508 review: a pose's name in the viewer's language, with the strip key a pack author looks for ("Walk up (walkUp)"). */
51
+ export const poseName = (key) => { const k = `pose_${key}`, label = tc(k); return label && label !== `ocard.${k}` ? tc("poseOption", label, key) : key; };
44
52
 
45
53
  /** The days from `first` (YYYY-MM-DD, the fleet's zone) to today on this device's clock, counting the first as day 1. */
46
54
  export function dayOf(first, nowMs = Date.now()) {
@@ -352,7 +360,11 @@ function CardName({ name, rename }) {
352
360
  aria-label=${tc("rename")} title=${tc("rename")} onClick=${() => setEditing(true)}>✎</button></span>`;
353
361
  }
354
362
 
355
- export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onClose, onReact = null, tell = null, rename = null, packCard = null, picture = null, portrait = null, packScale = 2, action = null, photo = null }) {
363
+ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onClose, onReact = null, tell = null, rename = null, preview = null, packCard = null, picture = null, portrait = null, packScale = 2, action = null, photo = null }) {
364
+ // #4504: a skin pack's pose preview (`preview` = { poses, pose, set, replay }): the person plays the picked pose in place.
365
+ const previewRow = preview ? html`<div key="preview" class="oo-card-preview"><label>${tc("previewPose")}
366
+ <select value=${preview.pose} onChange=${(e) => preview.set(e.target.value)}><option value="">${tc("previewOff")}</option>${preview.poses.map((p) => html`<option value=${p}>${poseName(p)}</option>`)}</select></label>
367
+ <button type="button" class="btn btn-sm oo-card-replay" disabled=${!preview.pose} onClick=${preview.replay}>${tc("replay")}</button></div>` : null;
356
368
  // `action`: one, or a list (M-3565: a Hub room's "@ it" and "Chat with it one-to-one"); the first is the primary button.
357
369
  const actions = Array.isArray(action) ? action.filter(Boolean) : action ? [action] : [];
358
370
  const actionButtons = actions.map((a, i) => html`<button key=${i} type="button" class=${`btn btn-sm ${i === 0 ? "btn-primary " : ""}oo-card-action`} title=${a.title || undefined} aria-label=${a.title || undefined} onClick=${a.run}>${a.label}</button>`);
@@ -482,6 +494,7 @@ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onC
482
494
  ${m.now ? html`<div class="oo-card-now"><span class="muted">${tc("nowLabel")}</span>${m.now}</div>` : null}
483
495
  ${tell ? html`<label class="check oo-card-tell" title=${tc("tellNote")}><input type="checkbox" checked=${tell.on} onChange=${(e) => tell.set(e.target.checked)} />
484
496
  <span>${tc("tell", m.name)}</span></label>` : null}
497
+ ${previewRow}
485
498
  <div class="oo-card-actions">
486
499
  ${onReact ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-pat" onClick=${() => onReact("pat")}>${tc("pat")}</button>
487
500
  <button type="button" class="btn btn-sm btn-ghost oo-card-feed" onClick=${() => onReact("feed")}>${tc("feed")}</button>` : null}
@@ -540,7 +553,7 @@ export function OfficeCard({ model: m, avatar, sheet, place, onChat, onFind, onC
540
553
  <span>${tc("tell", m.name)}</span></label>`;
541
554
  }
542
555
  if (sec === "actions") {
543
- return html`<div key="actions" class="oo-card-actions">
556
+ return html`${previewRow}<div key="actions" class="oo-card-actions">
544
557
  ${onReact ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-pat" onClick=${() => onReact("pat")}>${tc("pat")}</button>
545
558
  <button type="button" class="btn btn-sm btn-ghost oo-card-feed" onClick=${() => onReact("feed")}>${tc("feed")}</button>` : null}
546
559
  ${onFind ? html`<button type="button" class="btn btn-sm btn-ghost oo-card-find" onClick=${onFind}>${tc("find")}</button>` : null}
@@ -19,7 +19,7 @@ export interface PackStrip {
19
19
  }
20
20
  export interface PackPoint { x: number; y: number }
21
21
  /** #2691: a seat reserved for `for` (lent while they are all elsewhere when `lend`); a plain seat has neither. */
22
- export interface PackSeat extends PackPoint { for?: string[]; lend?: boolean }
22
+ export interface PackSeat extends PackPoint { for?: string[]; lend?: boolean; standFacing?: "up" | "down" | "left" | "right" }
23
23
  export interface PackArea { name: string; rect: { x: number; y: number; w: number; h: number }; seats: PackSeat[] }
24
24
  /** `label` (#2574): its name tag, or null. `activeOn`/`hides` (#2698): when it turns active, and whether it hides its people then. */
25
25
  export interface PackFurniture { id: string; sprite: PackStrip; x: number; y: number; depth: number | "y"; activeWhen: string[] | null; activeSprite: PackStrip | null;
@@ -156,6 +156,6 @@ export function stripBox(st: PackStrip, x: number, y: number, mirror?: boolean):
156
156
  export interface PackVehicle {
157
157
  id: string; label?: string; sprite: PackStrip | null; sprites?: Partial<Record<"right" | "left" | "up" | "down", PackStrip>>;
158
158
  fronts?: Partial<Record<"right" | "left" | "up" | "down", PackStrip>>;
159
- path: PackPoint[]; speed: number; stops: Array<{ at: number; seconds: number; platform: PackPoint }>; seats: Array<{ dx: number; dy: number }>;
159
+ path: PackPoint[]; speed: number; stops: Array<{ at: number; seconds: number; platform: PackPoint; queue?: PackPoint[] }>; seats: Array<{ dx: number; dy: number; worker?: string }>;
160
160
  }
161
161
  export const VEHICLE_LIMITS: { vehicles: number; path: number; stops: number; seats: number; minSpeed: number; maxSpeed: number; defaultSpeed: number; maxSeconds: number; defaultSeconds: number; offset: number };
@@ -31,7 +31,9 @@
31
31
  // of them comes to the area takes it first, and nobody else does
32
32
  // unless "lend" (default false) lends it while they are all
33
33
  // elsewhere (a borrower moves off when one comes). A checked
34
- // seat is { x, y } — plus, reserved, `for` and `lend`
34
+ // seat is { x, y } — plus, reserved, `for` and `lend`; (#4503)
35
+ // "standFacing": "up" | "down" | "left" | "right" makes it a
36
+ // standing desk: whoever works there stands facing that way
35
37
  // "stateZones": { "working": "desks", "idle": "lounge", "needs": "alert", "default": "lounge" },
36
38
  // the org chart's states (fleet-org.js ORG_STATES) → an area; a
37
39
  // state it does not name goes to "default", else the first area
@@ -405,15 +407,20 @@ function owners(v, at, empty = false) {
405
407
  /**
406
408
  * A seat (#2691): [x, y], or { x, y, for, lend } — reserved for `for` (lent to anyone while they are all elsewhere when
407
409
  * `lend`). Checked: { x, y }, with `for` and `lend` only when reserved, so a plain seat is what it always was.
410
+ * `standFacing` (#4503): a standing desk — whoever works there stands facing that way (their walk strip's first frame).
408
411
  */
409
412
  function seatOf(v, at, rect) {
410
413
  let p = null, extra = {};
411
414
  if (isObj(v)) {
412
- keys(v, ["x", "y", "for", "lend"], at);
415
+ keys(v, ["x", "y", "for", "lend", "standFacing"], at);
413
416
  p = { x: num(v.x, 0, C.w, `${at}.x`), y: num(v.y, 0, C.h, `${at}.y`) };
414
417
  if (v.lend !== undefined && typeof v.lend !== "boolean") throw new Refused(`${at}.lend`, "true or false");
415
418
  if (v.lend !== undefined && v.for === undefined) throw new Refused(`${at}.lend`, "only with for");
416
419
  if (v.for !== undefined) extra = { for: owners(v.for, `${at}.for`), lend: v.lend === true };
420
+ if (v.standFacing !== undefined) {
421
+ if (!HEADINGS.includes(v.standFacing)) throw new Refused(`${at}.standFacing`, "up, down, left or right");
422
+ extra.standFacing = v.standFacing;
423
+ }
417
424
  } else p = point(v, at);
418
425
  if (p.x < rect.x || p.x > rect.x + rect.w || p.y < rect.y || p.y > rect.y + rect.h) throw new Refused(at, "outside its area's rect");
419
426
  return { ...p, ...extra };
@@ -700,13 +707,16 @@ function snackLabelOf(v, at) {
700
707
  * heading right (`dx` along the car, `dy` across it; fleet-office-vehicles.js seatAt places them for each heading).
701
708
  * `sprite` (its picture heading right; mirrored going left), or `sprites` by heading (`right`, `left`, `up`, `down`),
702
709
  * each a strip; `fronts` the same by heading, drawn over the riders (the car's front edge hiding their lower half). Who
703
- * rides is the agents' own choice (office_set `ride`), not the pack's.
710
+ * rides is the agents' own choice (office_set `ride`), with one exception (#4503): a seat's `worker` (an instance's
711
+ * name, on one vehicle seat of the pack at most) is where that instance works — it rides there while working, and
712
+ * nobody else takes the seat. A stop's `queue` (at most a point a seat): where seat i's worker waits off the platform;
713
+ * they step onto it once the train is in.
704
714
  */
705
715
  export const VEHICLE_LIMITS = { vehicles: 4, path: 64, stops: 8, seats: 16, minSpeed: 5, maxSpeed: 600, defaultSpeed: 80, maxSeconds: 600, defaultSeconds: 8, offset: 2000 };
706
716
  const HEADINGS = ["right", "left", "up", "down"];
707
717
  function vehiclesOf(v, scale) {
708
718
  if (v === undefined) return [];
709
- const seen = new Set();
719
+ const seen = new Set(), workers = new Set(); // a worker has one seat in the whole pack
710
720
  return list(v, VEHICLE_LIMITS.vehicles, "vehicles").map((x, i) => {
711
721
  const at = `vehicles[${i}]`;
712
722
  obj(x, at); keys(x, ["id", "label", "sprite", "sprites", "fronts", "path", "speed", "stops", "seats"], at);
@@ -733,18 +743,25 @@ function vehiclesOf(v, scale) {
733
743
  const taken = new Set();
734
744
  const stops = list(x.stops ?? [], VEHICLE_LIMITS.stops, `${at}.stops`).map((s, j) => {
735
745
  const here = `${at}.stops[${j}]`;
736
- obj(s, here); keys(s, ["at", "seconds", "platform"], here);
746
+ obj(s, here); keys(s, ["at", "seconds", "platform", "queue"], here);
737
747
  const k = int(s.at, 0, path.length - 1, `${here}.at`);
738
748
  if (taken.has(k)) throw new Refused(`${here}.at`, "a path point no other stop has");
739
749
  taken.add(k);
740
- return { at: k, seconds: s.seconds === undefined ? VEHICLE_LIMITS.defaultSeconds : num(s.seconds, 1, VEHICLE_LIMITS.maxSeconds, `${here}.seconds`), platform: point(s.platform, `${here}.platform`) };
750
+ const queue = s.queue === undefined ? null : list(s.queue, VEHICLE_LIMITS.seats, `${here}.queue`).map((p, q) => point(p, `${here}.queue[${q}]`));
751
+ return { at: k, seconds: s.seconds === undefined ? VEHICLE_LIMITS.defaultSeconds : num(s.seconds, 1, VEHICLE_LIMITS.maxSeconds, `${here}.seconds`), platform: point(s.platform, `${here}.platform`),
752
+ ...(queue && queue.length ? { queue } : {}) };
741
753
  });
742
754
  const seats = list(x.seats ?? [], VEHICLE_LIMITS.seats, `${at}.seats`).map((s, j) => {
743
755
  const here = `${at}.seats[${j}]`;
744
- obj(s, here); keys(s, ["dx", "dy"], here);
745
- return { dx: num(s.dx ?? 0, -VEHICLE_LIMITS.offset, VEHICLE_LIMITS.offset, `${here}.dx`), dy: num(s.dy ?? 0, -VEHICLE_LIMITS.offset, VEHICLE_LIMITS.offset, `${here}.dy`) };
756
+ obj(s, here); keys(s, ["dx", "dy", "worker"], here);
757
+ const worker = s.worker === undefined ? null : names(s.worker, `${here}.worker`, 1)[0];
758
+ if (worker !== null && (Array.isArray(s.worker) || workers.has(worker))) throw new Refused(`${here}.worker`, "an instance's name no other vehicle seat has");
759
+ if (worker !== null) workers.add(worker);
760
+ return { dx: num(s.dx ?? 0, -VEHICLE_LIMITS.offset, VEHICLE_LIMITS.offset, `${here}.dx`), dy: num(s.dy ?? 0, -VEHICLE_LIMITS.offset, VEHICLE_LIMITS.offset, `${here}.dy`),
761
+ ...(worker !== null ? { worker } : {}) };
746
762
  });
747
763
  if (seats.length && !stops.length) throw new Refused(`${at}.stops`, "at least one stop, for its seats to be boarded");
764
+ stops.forEach((s, j) => { if (s.queue && s.queue.length > seats.length) throw new Refused(`${at}.stops[${j}].queue`, `at most one point a seat (${seats.length})`); });
748
765
  return { id: x.id, ...(x.label !== undefined ? { label: x.label.trim() } : {}), sprite: x.sprite === undefined ? null : checkStrip(x.sprite, `${at}.sprite`, scale),
749
766
  ...(sprites ? { sprites } : {}), ...(fronts && Object.keys(fronts).length ? { fronts } : {}), path, speed, stops, seats };
750
767
  });
@@ -38,7 +38,7 @@
38
38
  // @property {(look, at) => {x, y, w, h}} [charBox] zones: the box drawCharacter covers with the feet at `at`
39
39
  // ({ x, y, walking, heading }): what hover and click hit (fleet-office-zones.js personAt)
40
40
  // @property {(ctx, prop, ms, env) => void} drawProp a traffic item in the air: { kind, hue, x, y, t }
41
- // @property {(ctx, x, y, text, env, lift?, flip?) => void} drawBubble a speech bubble whose tail points at (x, y), its box `lift` px higher (`flip`: on the tail's left)
41
+ // @property {(ctx, x, y, text, env, lift?, flip?, fit?) => void} drawBubble a speech bubble whose tail points at (x, y), its box `lift` px higher (`flip`: on the tail's left)
42
42
  // @property {(env) => string} matte #2540: the colour around the scene (the Office fills the panel; the scene is 16:9)
43
43
  // @property {object|null} [backdrop] a pack's loaded background picture (the page samples its edges for the matte)
44
44
  // The desks layout's back and front layers change only when the fleet (or the zoom) does: the renderer keeps them as
@@ -343,29 +343,53 @@ const BUBBLE_FONT = "600 11px system-ui, sans-serif";
343
343
  /**
344
344
  * The box a speech bubble with its tail at (x, y) takes for `text` (its tail excluded): what drawBubble draws, and what
345
345
  * the Office places so no two overlap (#2431: two neighbours' bubbles covered each other on a phone).
346
+ * M-3743: `fit` { l, r, t, b } (the part of the scene on screen, in its units) keeps the box on screen, as a reply's is
347
+ * (#4406): slid along between l and r, still over its speaker (the tail's foot slides along its edge; the tail still points at the speaker);
348
+ * lowered (a shorter tail) when its top would pass t; under the head (`below`: its tail up) only when even that does not fit.
349
+ * Also returns `foot` (where the tail leaves the box: its left foot, the right one 5 px on) and `tail`, the box its tail
350
+ * covers from that foot to the speaker (#4474 review: a slid foot's tail is not the old strip under the speaker) — what the
351
+ * Office keeps clear of other bubbles and writes an area's name again over. Without `fit` both are as before.
346
352
  */
347
- export function bubbleBox(ctx, x, y, text, lift = 0, flip = false) {
353
+ export function bubbleBox(ctx, x, y, text, lift = 0, flip = false, fit = null) {
348
354
  ctx.save();
349
355
  ctx.font = BUBBLE_FONT;
350
356
  const t = fitText(ctx, text, 150), w = Math.ceil((ctx.measureText ? ctx.measureText(t).width : t.length * 6) + 14), h = 19;
351
357
  ctx.restore();
352
358
  // M-3722: `flip` puts the box on the tail's left (its tail still under it), for a call whose usual place covers a name.
353
- const bx = Math.round(flip ? x - w + 14 : x - 10), by = Math.round(y - h - 6 - lift);
354
- return { x: bx, y: by, w, h, text: t };
359
+ let bx = flip ? x - w + 14 : x - 10, by = y - h - 6 - lift, below = false;
360
+ if (fit) {
361
+ // Slid along, but always over its speaker's x (the tail's foot then slides along its edge, `foot`): a speaker
362
+ // in the margin or off screen keeps its bubble with it rather than one pinned to the edge.
363
+ if (Number.isFinite(fit.l) && Number.isFinite(fit.r)) bx = Math.max(x - w + 1, Math.min(x - 1, Math.max(fit.l, Math.min(bx, fit.r - w))));
364
+ if (Number.isFinite(fit.t) && by < fit.t) {
365
+ const lowest = y - h - 3, under = y + 6 + lift; // over the head with a 3 px tail; under it
366
+ if (fit.t <= lowest) by = fit.t;
367
+ else if (!Number.isFinite(fit.b) || under + h <= fit.b) { by = under; below = true; }
368
+ }
369
+ }
370
+ const box = { x: Math.round(bx), y: Math.round(by), w, h };
371
+ // The tail's foot: under the speaker, else as near as the box's corners allow; its box spans foot … foot + 5 and the speaker.
372
+ const foot = fit ? Math.max(box.x + 4, Math.min(x + 1, box.x + w - 9)) : x + 1;
373
+ const lo = Math.min(foot, x) - 1, hi = Math.max(foot + 5, x) + 2, top = below ? y : box.y + h, bottom = below ? box.y : y;
374
+ return { ...box, text: t, ...(below ? { below: true } : {}), foot, tail: { x: lo, y: top, w: hi - lo, h: Math.max(0, bottom - top) } };
355
375
  }
356
376
 
357
377
  /**
358
378
  * A speech bubble, its tail at (x, y): short words on light paper in either theme; `lift` raises the box (its tail
359
- * longer); `flip` (M-3722) draws the box on the tail's left.
379
+ * longer); `flip` (M-3722) draws the box on the tail's left; `fit` (M-3743, bubbleBox) keeps it on screen — under the
380
+ * head, its tail up, when there is no room over it.
360
381
  */
361
- function drawBubble(ctx, x, y, text, env, lift = 0, flip = false) {
382
+ function drawBubble(ctx, x, y, text, env, lift = 0, flip = false, fit = null) {
362
383
  if (!text) return;
363
- const { x: bx, y: by, w, h, text: t } = bubbleBox(ctx, x, y, text, lift, flip);
384
+ const { x: bx, y: by, w, h, text: t, below, foot: f } = bubbleBox(ctx, x, y, text, lift, flip, fit);
364
385
  ctx.save();
365
386
  ctx.font = BUBBLE_FONT;
366
387
  ctx.fillStyle = "#fffdf6"; ctx.strokeStyle = env.mode === "light" ? "rgba(0, 0, 0, 0.35)" : "rgba(0, 0, 0, 0.6)"; ctx.lineWidth = 1;
367
- ctx.beginPath(); ctx.moveTo(bx + 4, by); ctx.lineTo(bx + w - 4, by); ctx.lineTo(bx + w, by + 4); ctx.lineTo(bx + w, by + h - 4); ctx.lineTo(bx + w - 4, by + h);
368
- ctx.lineTo(x + 6, by + h); ctx.lineTo(x, y); ctx.lineTo(x + 1, by + h); ctx.lineTo(bx + 4, by + h); ctx.lineTo(bx, by + h - 4); ctx.lineTo(bx, by + 4); ctx.closePath();
388
+ ctx.beginPath(); ctx.moveTo(bx + 4, by);
389
+ if (below) { ctx.lineTo(f, by); ctx.lineTo(x, y); ctx.lineTo(f + 5, by); }
390
+ ctx.lineTo(bx + w - 4, by); ctx.lineTo(bx + w, by + 4); ctx.lineTo(bx + w, by + h - 4); ctx.lineTo(bx + w - 4, by + h);
391
+ if (!below) { ctx.lineTo(f + 5, by + h); ctx.lineTo(x, y); ctx.lineTo(f, by + h); }
392
+ ctx.lineTo(bx + 4, by + h); ctx.lineTo(bx, by + h - 4); ctx.lineTo(bx, by + 4); ctx.closePath();
369
393
  ctx.fill(); ctx.stroke();
370
394
  ctx.fillStyle = "#1d1d22"; ctx.textBaseline = "middle"; ctx.textAlign = "left";
371
395
  ctx.fillText(t, bx + 7, by + h / 2 + 0.5);
@@ -2,7 +2,11 @@
2
2
  // wall clock alone, so every page shows it in the same place: it runs round its path at its speed and waits at each
3
3
  // stop. People ride by their own choice (an agent's office_set `ride`): they walk to the platform, wait for the train
4
4
  // to stop there, board, and ride in a seat (working there, moving with it); they get off only when it stops at a
5
- // platform, then walk on. Pure — fleet-office.js draws the vehicles and moves the riders (the walkers' `ride`).
5
+ // platform, then walk on. A pack may give an agent a seat as its workplace (#4503: a seat's `worker`): it rides there
6
+ // while working, and waits for the train at its seat's `queue` point. Pure — fleet-office.js draws the vehicles and
7
+ // moves the riders (the walkers' `ride`).
8
+
9
+ import { WALK, WANDER } from "./fleet-office-zones.js";
6
10
 
7
11
  const LEGS = new WeakMap();
8
12
  /** A vehicle's timetable: each leg (a path segment, then its stop's wait), in ms, and the whole lap. */
@@ -68,7 +72,7 @@ export const lapMs = (v) => legsOf(v).lap;
68
72
  * `homeOf(name)`: their seat (to pick the nearest platform); `sinceOf(name)`: when their ride began (wall clock), so
69
73
  * a page opened long after shows them on board, not walking to a train they took long ago; `urgent(name)`: they
70
74
  * must get off now (a call: #4415, nothing keeps a caller from the Help desk), where their seat is, between stops too.
71
- * Returns { targets: name → where to walk now (the platform), board: [{ name, vehicle, seat }], alight: [{ name, at }] };
75
+ * Returns { targets: name → where to walk now (the platform, or their queue point), board: [{ name, vehicle, seat }], alight: [{ name, at }] };
72
76
  * `riding(name)` → { vehicle, seat } while on board; `clear()` forgets everyone and returns who was on board.
73
77
  */
74
78
  export function createRiders() {
@@ -96,27 +100,38 @@ export function createRiders() {
96
100
  continue; // off only at a stop
97
101
  }
98
102
  if (!v || !v.seats.length || !v.stops.length) { if (r) by.delete(name); continue; }
103
+ // #4503: a seat with a `worker` is theirs alone; they take no other, and everyone else takes only the others.
104
+ const own = v.seats.findIndex((s) => s.worker === name);
105
+ const freeSeat = () => { const taken = used(vid); return own >= 0 ? (taken.has(own) ? -1 : own) : v.seats.findIndex((s, i) => !s.worker && !taken.has(i)); };
99
106
  // A page opened long after the ride began (more than a lap and the walk ago, `since`): they are on board already.
100
107
  const since = sinceOf ? sinceOf(name) : null;
101
108
  if (!r && since !== null && wall - since > lapMs(v) + RIDE.SETTLE_MS) {
102
- const taken = used(vid), seat = v.seats.findIndex((_, i) => !taken.has(i));
109
+ const seat = freeSeat();
103
110
  if (seat >= 0) { by.set(name, { phase: "riding", vehicle: vid, seat }); board.push({ name, vehicle: vid, seat }); continue; }
104
111
  }
105
112
  if (!r || r.vehicle !== vid) {
106
113
  const home = homeOf(name) || posOf(name) || v.stops[0].platform;
107
114
  let best = 0;
108
115
  v.stops.forEach((s, i) => { if (Math.hypot(s.platform.x - home.x, s.platform.y - home.y) < Math.hypot(v.stops[best].platform.x - home.x, v.stops[best].platform.y - home.y)) best = i; });
109
- r = { phase: "going", vehicle: vid, stop: best };
116
+ r = { phase: "going", vehicle: vid, stop: best, track: v.path[v.stops[best].at] };
110
117
  by.set(name, r);
111
118
  }
112
- const platform = v.stops[r.stop].platform, here = posOf(name);
113
- targets.set(name, platform);
114
- if (r.phase === "going" && here && !here.walking && near(here, platform)) r.phase = "waiting";
115
- if (r.phase !== "waiting") continue;
116
- const at = vehicleAt(v, wall);
117
- if (at.stop !== r.stop || at.left < RIDE.BOARD_MS) continue; // the train is not in (or is leaving)
118
- const taken = used(vid), seat = v.seats.findIndex((_, i) => !taken.has(i));
119
+ // A worker waits at their seat's queue point (#4503), and steps onto the platform ("stepping") once the train is in.
120
+ const stop = v.stops[r.stop], platform = stop.platform, wait = (stop.queue && stop.queue[own]) || platform, here = posOf(name);
121
+ const at = vehicleAt(v, wall), open = at.stop === r.stop && at.left >= RIDE.BOARD_MS;
122
+ if (r.phase === "stepping" && !open) r.phase = "going"; // it left before they got there: back in line
123
+ targets.set(name, r.phase === "stepping" ? platform : wait);
124
+ if (r.phase === "going" && here && !here.walking && near(here, wait)) r.phase = "waiting";
125
+ if (r.phase !== "waiting" && r.phase !== "stepping") continue;
126
+ if (!open) continue; // the train is not in (or is leaving)
127
+ const seat = freeSeat();
119
128
  if (seat < 0) continue; // full: wait for the next one
129
+ if (!near(here, platform)) {
130
+ // Off the platform: step on only with the time to get there (the walk, then up to a tick till it is seen), else wait.
131
+ if (r.phase === "waiting" && at.left < Math.hypot(wait.x - platform.x, wait.y - platform.y) / WALK.SPEED + WANDER.TICK + RIDE.BOARD_MS) continue;
132
+ r.phase = "stepping"; targets.set(name, platform);
133
+ continue;
134
+ }
120
135
  r.phase = "riding"; r.seat = seat;
121
136
  targets.delete(name);
122
137
  board.push({ name, vehicle: vid, seat });
@@ -124,6 +139,8 @@ export function createRiders() {
124
139
  return { targets, board, alight };
125
140
  },
126
141
  riding(name) { const r = by.get(name); return r && r.phase === "riding" ? { vehicle: r.vehicle, seat: r.seat } : null; },
142
+ /** #4503: where the train they wait for (or walk to) stops, or null. */
143
+ waitingFor(name) { const r = by.get(name); return r && r.phase !== "riding" ? r.track : null; },
127
144
  phase(name) { const r = by.get(name); return r ? r.phase : null; },
128
145
  clear() { const on = [...by].filter(([, r]) => r.phase === "riding").map(([n]) => n); by.clear(); return on; },
129
146
  };
@@ -83,7 +83,7 @@ export function assignSeats(pack, wants, prev = new Map(), seatPrefs = null) {
83
83
  };
84
84
  const pos = (area, slot) => (slot >= 0 ? areaOf(area).seats[slot] : spotsOf(area)[-slot - 1]);
85
85
  const usedIn = (area) => { if (!taken.has(area)) taken.set(area, new Set()); return taken.get(area); };
86
- const give = (name, area, slot) => { const p = pos(area, slot); usedIn(area).add(slot); seats.set(name, { area, slot, x: p.x, y: p.y }); };
86
+ const give = (name, area, slot) => { const p = pos(area, slot); usedIn(area).add(slot); seats.set(name, { area, slot, x: p.x, y: p.y, ...(p.standFacing ? { standFacing: p.standFacing } : {}) }); };
87
87
  const free = (w) => !seats.has(w.name) && !!areaOf(w.area);
88
88
  // Owners first: their own seat from last time (or saved seat pref), then their first free one.
89
89
  for (const w of wants) {
@@ -152,7 +152,7 @@ export function zonesLayout(pack, nodes, prev = new Map(), { night = false, seat
152
152
  const { seats, crowd, over } = placed;
153
153
  const desks = nodes.filter((n) => seats.has(n.name)).map((n) => {
154
154
  const s = seats.get(n.name);
155
- return { key: `zone/${n.name}`, node: n, x: s.x - 24, y: s.y - 52, w: 48, h: 66, seat: { x: s.x, y: s.y }, wp: null, area: s.area, slot: s.slot, night: sleepers.has(n.name) };
155
+ return { key: `zone/${n.name}`, node: n, x: s.x - 24, y: s.y - 52, w: 48, h: 66, seat: { x: s.x, y: s.y, ...(s.standFacing ? { standFacing: s.standFacing } : {}) }, wp: null, area: s.area, slot: s.slot, night: sleepers.has(n.name) };
156
156
  });
157
157
  const cv = canvasOf(pack);
158
158
  return { mode: "zones", rooms: [{ key: "\u0000zones", name: null, lobby: false, x: 0, y: 0, w: cv.w, h: cv.h, desks }], areas: pack.areas,
@@ -623,10 +623,15 @@ export function placeBubbles(items, lift = 22, blocked = [], soft = [], air = 0)
623
623
  const taken = [...blocked], out = [];
624
624
  const hit = (list, r) => list.some((t) => r.x < t.x + t.w && t.x < r.x + r.w && r.y < t.y + t.h && t.y < r.y + r.h);
625
625
  // M-3722: `flipBox` (the box on the tail's left) is a call's other side: tried before a call covers an area's name.
626
+ // M-3743: `boxAt(dy, flip)` (optional): the box as it is drawn at that spot — kept on screen, so not always `box` moved
627
+ // by dy — with its `tail` (the box the tail covers, from its foot to the speaker: a slid foot, or a box under its speaker,
628
+ // tail up), kept clear too; else the strip under the speaker, as before.
626
629
  const at = (it, dy, flip = false) => {
627
- const box = flip && it.flipBox ? it.flipBox : it.box;
628
- const r = { x: box.x, y: box.y + dy, w: box.w, h: box.h };
629
- return { r, t: it.tail ? { x: it.tail.x - 1, y: r.y + r.h, w: 9, h: Math.max(0, it.tail.y - (r.y + r.h)) } : null };
630
+ const box = flip && it.flipBox ? it.flipBox : it.box, got = typeof it.boxAt === "function" ? it.boxAt(dy, flip) : null;
631
+ const r = got ? { x: got.x, y: got.y, w: got.w, h: got.h } : { x: box.x, y: box.y + dy, w: box.w, h: box.h };
632
+ if (!it.tail) return { r, t: null };
633
+ if (got && got.tail) return { r, t: got.tail };
634
+ return { r, t: r.y > it.tail.y ? { x: it.tail.x - 1, y: it.tail.y, w: 9, h: r.y - it.tail.y } : { x: it.tail.x - 1, y: r.y + r.h, w: 9, h: Math.max(0, it.tail.y - (r.y + r.h)) } };
630
635
  };
631
636
  // M-3722: an area's name (`soft`) keeps a bubble's BOX off it; a tail may cross a name (the Office writes the name again
632
637
  // over it) — a caller standing at a name's height would otherwise always cover it.