@songsid/agend 2.4.0-beta.7 → 2.4.0-beta.9

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 (385) hide show
  1. package/dist/auth-api.js +4 -0
  2. package/dist/auth-api.js.map +1 -1
  3. package/dist/backend/antigravity.d.ts +9 -2
  4. package/dist/backend/antigravity.js +24 -6
  5. package/dist/backend/antigravity.js.map +1 -1
  6. package/dist/backend/cli-env-probe.js +1 -1
  7. package/dist/backend/cli-env-probe.js.map +1 -1
  8. package/dist/backend/cli-runtime-switch.js +1 -26
  9. package/dist/backend/cli-runtime-switch.js.map +1 -1
  10. package/dist/build-provenance.json +1 -1
  11. package/dist/connect/mcp.d.ts +9 -0
  12. package/dist/connect/mcp.js +10 -0
  13. package/dist/connect/mcp.js.map +1 -0
  14. package/dist/connect/stdio.d.ts +1 -1
  15. package/dist/connect/stdio.js +22 -28
  16. package/dist/connect/stdio.js.map +1 -1
  17. package/dist/daemon.d.ts +13 -0
  18. package/dist/daemon.js +64 -1
  19. package/dist/daemon.js.map +1 -1
  20. package/dist/dispatcher-liveness.d.ts +51 -1
  21. package/dist/dispatcher-liveness.js +92 -2
  22. package/dist/dispatcher-liveness.js.map +1 -1
  23. package/dist/fleet-manager.d.ts +56 -1
  24. package/dist/fleet-manager.js +243 -32
  25. package/dist/fleet-manager.js.map +1 -1
  26. package/dist/general-knowledge/skills/hub/SKILL.md +83 -3
  27. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +10 -2
  28. package/dist/hub/admin-dashboard.js +17 -1
  29. package/dist/hub/admin-dashboard.js.map +1 -1
  30. package/dist/hub/audit/index.d.ts +2 -0
  31. package/dist/hub/audit/index.js +8 -0
  32. package/dist/hub/audit/index.js.map +1 -1
  33. package/dist/hub/buttons.js +3 -1
  34. package/dist/hub/buttons.js.map +1 -1
  35. package/dist/hub/catalog.d.ts +7 -4
  36. package/dist/hub/catalog.js +19 -10
  37. package/dist/hub/catalog.js.map +1 -1
  38. package/dist/hub/client.d.ts +3 -0
  39. package/dist/hub/client.js +14 -2
  40. package/dist/hub/client.js.map +1 -1
  41. package/dist/hub/compose/member.js +28 -11
  42. package/dist/hub/compose/member.js.map +1 -1
  43. package/dist/hub/compose/server.d.ts +5 -0
  44. package/dist/hub/compose/server.js +91 -10
  45. package/dist/hub/compose/server.js.map +1 -1
  46. package/dist/hub/group-policy/admin-api.d.ts +1 -0
  47. package/dist/hub/group-policy/admin-api.js +1 -1
  48. package/dist/hub/group-policy/admin-api.js.map +1 -1
  49. package/dist/hub/group-policy/admin-dto.d.ts +2 -1
  50. package/dist/hub/group-policy/admin-impact.d.ts +32 -3
  51. package/dist/hub/group-policy/admin-impact.js +14 -2
  52. package/dist/hub/group-policy/admin-impact.js.map +1 -1
  53. package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
  54. package/dist/hub/group-policy/admin-inventory.js +13 -4
  55. package/dist/hub/group-policy/admin-inventory.js.map +1 -1
  56. package/dist/hub/group-policy/authorization.d.ts +2 -0
  57. package/dist/hub/group-policy/authorization.js +7 -2
  58. package/dist/hub/group-policy/authorization.js.map +1 -1
  59. package/dist/hub/group-policy/impact-inventory.d.ts +1 -1
  60. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  61. package/dist/hub/group-policy/resources.d.ts +2 -0
  62. package/dist/hub/group-policy/resources.js +12 -1
  63. package/dist/hub/group-policy/resources.js.map +1 -1
  64. package/dist/hub/http/compose.js +164 -23
  65. package/dist/hub/http/compose.js.map +1 -1
  66. package/dist/hub/http/core.js +27 -0
  67. package/dist/hub/http/core.js.map +1 -1
  68. package/dist/hub/http/deps.d.ts +12 -0
  69. package/dist/hub/http/schema.js +6 -0
  70. package/dist/hub/http/schema.js.map +1 -1
  71. package/dist/hub/join/service.d.ts +1 -1
  72. package/dist/hub/join/service.js.map +1 -1
  73. package/dist/hub/mcp/auth-schema.d.ts +7 -0
  74. package/dist/hub/mcp/auth-schema.js +31 -0
  75. package/dist/hub/mcp/auth-schema.js.map +1 -0
  76. package/dist/hub/mcp/auth.d.ts +89 -0
  77. package/dist/hub/mcp/auth.js +374 -0
  78. package/dist/hub/mcp/auth.js.map +1 -0
  79. package/dist/hub/mcp/catalog.d.ts +44 -0
  80. package/dist/hub/mcp/catalog.js +31 -0
  81. package/dist/hub/mcp/catalog.js.map +1 -0
  82. package/dist/hub/mcp/door-schema.d.ts +7 -0
  83. package/dist/hub/mcp/door-schema.js +20 -0
  84. package/dist/hub/mcp/door-schema.js.map +1 -0
  85. package/dist/hub/mcp/http.d.ts +25 -0
  86. package/dist/hub/mcp/http.js +259 -0
  87. package/dist/hub/mcp/http.js.map +1 -0
  88. package/dist/hub/mcp/policy.d.ts +65 -0
  89. package/dist/hub/mcp/policy.js +153 -0
  90. package/dist/hub/mcp/policy.js.map +1 -0
  91. package/dist/hub/mcp/server.d.ts +3 -0
  92. package/dist/hub/mcp/server.js +32 -0
  93. package/dist/hub/mcp/server.js.map +1 -0
  94. package/dist/hub/mcp/tools.d.ts +31 -0
  95. package/dist/hub/mcp/tools.js +176 -0
  96. package/dist/hub/mcp/tools.js.map +1 -0
  97. package/dist/hub/member/room-ask.d.ts +4 -4
  98. package/dist/hub/member/room-ask.js +12 -0
  99. package/dist/hub/member/room-ask.js.map +1 -1
  100. package/dist/hub/member/room-mention-feedback.d.ts +44 -0
  101. package/dist/hub/member/room-mention-feedback.js +121 -0
  102. package/dist/hub/member/room-mention-feedback.js.map +1 -0
  103. package/dist/hub/member/room-notification.d.ts +9 -0
  104. package/dist/hub/member/room-notification.js +2 -0
  105. package/dist/hub/member/room-notification.js.map +1 -0
  106. package/dist/hub/member/room-post-answers.d.ts +1 -7
  107. package/dist/hub/member/room-post-answers.js.map +1 -1
  108. package/dist/hub/member/room-post.d.ts +3 -0
  109. package/dist/hub/member/room-post.js +9 -1
  110. package/dist/hub/member/room-post.js.map +1 -1
  111. package/dist/hub/pairing.d.ts +15 -1
  112. package/dist/hub/pairing.js +33 -2
  113. package/dist/hub/pairing.js.map +1 -1
  114. package/dist/hub/personal/owner-host.d.ts +140 -0
  115. package/dist/hub/personal/owner-host.js +287 -0
  116. package/dist/hub/personal/owner-host.js.map +1 -0
  117. package/dist/hub/personal/refusals.d.ts +11 -0
  118. package/dist/hub/personal/refusals.js +33 -0
  119. package/dist/hub/personal/refusals.js.map +1 -0
  120. package/dist/hub/personal/runtime-host.d.ts +26 -0
  121. package/dist/hub/personal/runtime-host.js +51 -0
  122. package/dist/hub/personal/runtime-host.js.map +1 -0
  123. package/dist/hub/personal/schema.d.ts +4 -0
  124. package/dist/hub/personal/schema.js +54 -0
  125. package/dist/hub/personal/schema.js.map +1 -0
  126. package/dist/hub/personal/turns.d.ts +39 -0
  127. package/dist/hub/personal/turns.js +221 -0
  128. package/dist/hub/personal/turns.js.map +1 -0
  129. package/dist/hub/personal/types.d.ts +42 -0
  130. package/dist/hub/personal/types.js +2 -0
  131. package/dist/hub/personal/types.js.map +1 -0
  132. package/dist/hub/policy.d.ts +1 -1
  133. package/dist/hub/policy.js +2 -0
  134. package/dist/hub/policy.js.map +1 -1
  135. package/dist/hub/protocol.d.ts +43 -0
  136. package/dist/hub/protocol.js +16 -4
  137. package/dist/hub/protocol.js.map +1 -1
  138. package/dist/hub/quota.js +3 -1
  139. package/dist/hub/quota.js.map +1 -1
  140. package/dist/hub/roles/admin-control.d.ts +29 -0
  141. package/dist/hub/roles/admin-control.js +187 -0
  142. package/dist/hub/roles/admin-control.js.map +1 -0
  143. package/dist/hub/roles/admin-types.d.ts +72 -0
  144. package/dist/hub/roles/admin-types.js +2 -0
  145. package/dist/hub/roles/admin-types.js.map +1 -0
  146. package/dist/hub/roles/allowed-list-control.d.ts +34 -0
  147. package/dist/hub/roles/allowed-list-control.js +179 -0
  148. package/dist/hub/roles/allowed-list-control.js.map +1 -0
  149. package/dist/hub/roles/allowed-list.d.ts +8 -0
  150. package/dist/hub/roles/allowed-list.js +49 -0
  151. package/dist/hub/roles/allowed-list.js.map +1 -0
  152. package/dist/hub/roles/audit-details.d.ts +144 -0
  153. package/dist/hub/roles/audit-details.js +26 -0
  154. package/dist/hub/roles/audit-details.js.map +1 -0
  155. package/dist/hub/roles/authority.d.ts +12 -0
  156. package/dist/hub/roles/authority.js +39 -3
  157. package/dist/hub/roles/authority.js.map +1 -1
  158. package/dist/hub/roles/change.d.ts +3 -1
  159. package/dist/hub/roles/change.js +4 -3
  160. package/dist/hub/roles/change.js.map +1 -1
  161. package/dist/hub/roles/clock.d.ts +3 -0
  162. package/dist/hub/roles/clock.js +1 -1
  163. package/dist/hub/roles/clock.js.map +1 -1
  164. package/dist/hub/roles/cutover-inventory.d.ts +2 -0
  165. package/dist/hub/roles/cutover-inventory.js +8 -1
  166. package/dist/hub/roles/cutover-inventory.js.map +1 -1
  167. package/dist/hub/roles/cutover.d.ts +2 -2
  168. package/dist/hub/roles/cutover.js +3 -4
  169. package/dist/hub/roles/cutover.js.map +1 -1
  170. package/dist/hub/roles/delegation.d.ts +4 -1
  171. package/dist/hub/roles/delegation.js +3 -2
  172. package/dist/hub/roles/delegation.js.map +1 -1
  173. package/dist/hub/roles/expiry-effects.d.ts +8 -0
  174. package/dist/hub/roles/expiry-effects.js +50 -0
  175. package/dist/hub/roles/expiry-effects.js.map +1 -0
  176. package/dist/hub/roles/migrations.d.ts +7 -0
  177. package/dist/hub/roles/migrations.js +44 -0
  178. package/dist/hub/roles/migrations.js.map +1 -0
  179. package/dist/hub/roles/model.d.ts +2 -0
  180. package/dist/hub/roles/model.js +2 -1
  181. package/dist/hub/roles/model.js.map +1 -1
  182. package/dist/hub/roles/overview.d.ts +8 -0
  183. package/dist/hub/roles/overview.js +15 -0
  184. package/dist/hub/roles/overview.js.map +1 -0
  185. package/dist/hub/roles/resource-effects.d.ts +17 -0
  186. package/dist/hub/roles/resource-effects.js +62 -0
  187. package/dist/hub/roles/resource-effects.js.map +1 -0
  188. package/dist/hub/roles/review.d.ts +16 -0
  189. package/dist/hub/roles/review.js +42 -0
  190. package/dist/hub/roles/review.js.map +1 -0
  191. package/dist/hub/roles/writer.d.ts +14 -3
  192. package/dist/hub/roles/writer.js +64 -16
  193. package/dist/hub/roles/writer.js.map +1 -1
  194. package/dist/hub/room-mention-feedback-model.d.ts +12 -0
  195. package/dist/hub/room-mention-feedback-model.js +12 -0
  196. package/dist/hub/room-mention-feedback-model.js.map +1 -0
  197. package/dist/hub/rooms/agents.d.ts +3 -1
  198. package/dist/hub/rooms/agents.js +96 -11
  199. package/dist/hub/rooms/agents.js.map +1 -1
  200. package/dist/hub/rooms/direct-view.d.ts +6 -2
  201. package/dist/hub/rooms/direct-view.js +3 -3
  202. package/dist/hub/rooms/direct-view.js.map +1 -1
  203. package/dist/hub/rooms/service.d.ts +27 -3
  204. package/dist/hub/rooms/service.js +74 -13
  205. package/dist/hub/rooms/service.js.map +1 -1
  206. package/dist/hub/rooms/types.d.ts +3 -1
  207. package/dist/hub/rooms.d.ts +12 -2
  208. package/dist/hub/rooms.js +87 -17
  209. package/dist/hub/rooms.js.map +1 -1
  210. package/dist/hub/runtime.js +1 -1
  211. package/dist/hub/runtime.js.map +1 -1
  212. package/dist/hub/server.d.ts +2 -0
  213. package/dist/hub/server.js +19 -3
  214. package/dist/hub/server.js.map +1 -1
  215. package/dist/hub/session-directory-transition.d.ts +2 -1
  216. package/dist/hub/session-directory-transition.js +10 -3
  217. package/dist/hub/session-directory-transition.js.map +1 -1
  218. package/dist/hub/sessions.d.ts +1 -1
  219. package/dist/hub/sessions.js +26 -4
  220. package/dist/hub/sessions.js.map +1 -1
  221. package/dist/hub/settings-commit.d.ts +32 -1
  222. package/dist/hub/settings-commit.js +11 -4
  223. package/dist/hub/settings-commit.js.map +1 -1
  224. package/dist/hub/settings-directory-ca.js +1 -1
  225. package/dist/hub/settings-directory-ca.js.map +1 -1
  226. package/dist/hub/settings-directory-control.js +7 -7
  227. package/dist/hub/settings-directory-control.js.map +1 -1
  228. package/dist/hub/settings-directory-http.d.ts +2 -0
  229. package/dist/hub/settings-directory-http.js +21 -6
  230. package/dist/hub/settings-directory-http.js.map +1 -1
  231. package/dist/hub/settings-directory-proof.d.ts +5 -1
  232. package/dist/hub/settings-directory-proof.js +27 -9
  233. package/dist/hub/settings-directory-proof.js.map +1 -1
  234. package/dist/hub/settings-directory-recovery.js +2 -1
  235. package/dist/hub/settings-directory-recovery.js.map +1 -1
  236. package/dist/hub/settings-directory-save.d.ts +2 -0
  237. package/dist/hub/settings-directory-save.js +9 -6
  238. package/dist/hub/settings-directory-save.js.map +1 -1
  239. package/dist/hub/sharing.js +2 -2
  240. package/dist/hub/sharing.js.map +1 -1
  241. package/dist/hub/types.d.ts +26 -3
  242. package/dist/locale.js +13 -10
  243. package/dist/locale.js.map +1 -1
  244. package/dist/login-controller.d.ts +19 -2
  245. package/dist/login-controller.js +26 -8
  246. package/dist/login-controller.js.map +1 -1
  247. package/dist/native-model-catalog.d.ts +15 -0
  248. package/dist/native-model-catalog.js +43 -3
  249. package/dist/native-model-catalog.js.map +1 -1
  250. package/dist/runtime-build-info.js +1 -0
  251. package/dist/runtime-build-info.js.map +1 -1
  252. package/dist/runtime-cli.js +31 -5
  253. package/dist/runtime-cli.js.map +1 -1
  254. package/dist/runtime-client-store.d.ts +5 -0
  255. package/dist/runtime-client-store.js +28 -0
  256. package/dist/runtime-client-store.js.map +1 -1
  257. package/dist/runtime-client.d.ts +4 -0
  258. package/dist/runtime-client.js +33 -10
  259. package/dist/runtime-client.js.map +1 -1
  260. package/dist/runtime-coordinator.d.ts +4 -2
  261. package/dist/runtime-coordinator.js +33 -6
  262. package/dist/runtime-coordinator.js.map +1 -1
  263. package/dist/runtime-install.d.ts +6 -1
  264. package/dist/runtime-install.js +12 -4
  265. package/dist/runtime-install.js.map +1 -1
  266. package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
  267. package/dist/runtime-personal-answer-only-probe.js +134 -0
  268. package/dist/runtime-personal-answer-only-probe.js.map +1 -0
  269. package/dist/runtime-personal-answer-only.d.ts +16 -0
  270. package/dist/runtime-personal-answer-only.js +54 -0
  271. package/dist/runtime-personal-answer-only.js.map +1 -0
  272. package/dist/runtime-personal-answer.d.ts +7 -2
  273. package/dist/runtime-personal-answer.js +12 -3
  274. package/dist/runtime-personal-answer.js.map +1 -1
  275. package/dist/runtime-personal-preflight.d.ts +8 -0
  276. package/dist/runtime-personal-preflight.js +103 -0
  277. package/dist/runtime-personal-preflight.js.map +1 -0
  278. package/dist/runtime-personal-profile.d.ts +7 -1
  279. package/dist/runtime-personal-profile.js +24 -4
  280. package/dist/runtime-personal-profile.js.map +1 -1
  281. package/dist/runtime-personal-protocol.d.ts +10 -0
  282. package/dist/runtime-personal-protocol.js +15 -0
  283. package/dist/runtime-personal-protocol.js.map +1 -0
  284. package/dist/runtime-personal-stage.d.ts +37 -0
  285. package/dist/runtime-personal-stage.js +167 -0
  286. package/dist/runtime-personal-stage.js.map +1 -0
  287. package/dist/runtime-protocol.d.ts +2 -0
  288. package/dist/setup-form.js +10 -0
  289. package/dist/setup-form.js.map +1 -1
  290. package/dist/tunnel/lease.d.ts +14 -0
  291. package/dist/tunnel/lease.js +23 -0
  292. package/dist/tunnel/lease.js.map +1 -1
  293. package/dist/ui/backend-signin.js +86 -20
  294. package/dist/ui/chat-activity-groups.js +41 -8
  295. package/dist/ui/chat-activity.js +3 -1
  296. package/dist/ui/chat-store.js +39 -2
  297. package/dist/ui/chat-tour.js +1 -1
  298. package/dist/ui/fleet-canvas.js +10 -5
  299. package/dist/ui/fleet-office.js +73 -7
  300. package/dist/ui/hub-ai-apps-strings.js +6 -0
  301. package/dist/ui/hub-ai-apps.js +83 -0
  302. package/dist/ui/hub-client.js +32 -1
  303. package/dist/ui/hub-directory-editor-strings.js +2 -2
  304. package/dist/ui/hub-directory-editor.js +1 -0
  305. package/dist/ui/hub-group-policy.js +4 -3
  306. package/dist/ui/hub-group-strings.js +2 -2
  307. package/dist/ui/hub-personal-agent-strings.js +160 -0
  308. package/dist/ui/hub-personal-agent.js +94 -0
  309. package/dist/ui/hub-role-audit.js +39 -0
  310. package/dist/ui/hub-role-forms.js +99 -0
  311. package/dist/ui/hub-role-notices.js +11 -0
  312. package/dist/ui/hub-role-view.js +86 -0
  313. package/dist/ui/hub-roles-strings.js +439 -0
  314. package/dist/ui/hub-roles.js +83 -0
  315. package/dist/ui/hub-room-composer.js +3 -2
  316. package/dist/ui/hub-room-list.js +4 -3
  317. package/dist/ui/hub-room-members.js +4 -2
  318. package/dist/ui/hub-room-settings.js +6 -0
  319. package/dist/ui/hub-room-source-strings.js +17 -0
  320. package/dist/ui/hub-room-source.js +34 -0
  321. package/dist/ui/hub-room-thread.js +10 -4
  322. package/dist/ui/hub-switcher.js +2 -2
  323. package/dist/ui/hub-this-hub.js +2 -2
  324. package/dist/ui/model-picker.js +4 -1
  325. package/dist/ui/panel-chat.js +4 -4
  326. package/dist/ui/panel-fleet.js +3 -3
  327. package/dist/ui/panel-hub.js +51 -31
  328. package/dist/ui/panel-settings.js +2 -3
  329. package/dist/ui/runtime-commands.d.ts +2 -2
  330. package/dist/ui/runtime-commands.js +7 -4
  331. package/dist/ui/settings-build-version.js +2 -2
  332. package/dist/ui/settings-catalog.js +22 -0
  333. package/dist/ui/settings-hub-setup.js +2 -1
  334. package/dist/ui/settings-strings.js +2 -0
  335. package/dist/ui/shared/access-overview.css +1 -1
  336. package/dist/ui/shared/accounts-keepalive.css +1 -1
  337. package/dist/ui/shared/accounts.css +1 -1
  338. package/dist/ui/shared/agent-sheet.js +2 -2
  339. package/dist/ui/shared/app-prefs.js +5 -2
  340. package/dist/ui/shared/app-shell.js +20 -8
  341. package/dist/ui/shared/app-stream.js +3 -1
  342. package/dist/ui/shared/app-swipe.js +3 -1
  343. package/dist/ui/shared/app.css +142 -48
  344. package/dist/ui/shared/app.js +1 -1
  345. package/dist/ui/shared/chat-thread.js +5 -1
  346. package/dist/ui/shared/chat-work-bar.css +5 -5
  347. package/dist/ui/shared/connector-prompt.d.ts +1 -0
  348. package/dist/ui/shared/connector-prompt.js +10 -0
  349. package/dist/ui/shared/hub-ai-apps.css +12 -0
  350. package/dist/ui/shared/hub-chat.css +9 -2
  351. package/dist/ui/shared/hub-groups.css +1 -1
  352. package/dist/ui/shared/hub-owner.css +5 -5
  353. package/dist/ui/shared/hub-roles.css +99 -0
  354. package/dist/ui/shared/hub-rooms-u2.css +14 -0
  355. package/dist/ui/shared/hub.css +13 -5
  356. package/dist/ui/shared/instance-nav.js +24 -9
  357. package/dist/ui/shared/loading.css +1 -1
  358. package/dist/ui/shared/model-picker.css +2 -2
  359. package/dist/ui/shared/preview-panel-actions.js +1 -1
  360. package/dist/ui/shared/preview-panel.js +2 -2
  361. package/dist/ui/shared/signin.js +27 -12
  362. package/dist/ui/shared/task-board.css +2 -2
  363. package/dist/ui/shared/tokens.css +1 -1
  364. package/dist/ui/shared/ui-toast.js +4 -4
  365. package/dist/ui/shared/usage-dialog.js +110 -16
  366. package/dist/ui/shared/view-strings.js +8 -0
  367. package/dist/ui/signin.html +4 -2
  368. package/dist/ui/structured-signin.js +64 -12
  369. package/dist/ui/web-terminal/terminal.css +1 -1
  370. package/dist/web-api.d.ts +4 -0
  371. package/dist/web-api.js +39 -23
  372. package/dist/web-api.js.map +1 -1
  373. package/dist/web-backend-login.d.ts +5 -1
  374. package/dist/web-backend-login.js +8 -2
  375. package/dist/web-backend-login.js.map +1 -1
  376. package/dist/web-prefs.js +2 -0
  377. package/dist/web-prefs.js.map +1 -1
  378. package/dist/windows-cli-worker.d.ts +10 -0
  379. package/dist/windows-cli-worker.js +109 -14
  380. package/dist/windows-cli-worker.js.map +1 -1
  381. package/dist/windows-cli.d.ts +10 -1
  382. package/dist/windows-cli.js +47 -13
  383. package/dist/windows-cli.js.map +1 -1
  384. package/package.json +1 -1
  385. package/templates/runtime-install/install.ps1 +24 -4
@@ -29,4 +29,4 @@
29
29
  .hub-group-fleets input { width: 4.5em; }
30
30
  .hub-groups-impact ul { margin: var(--s-1) 0 var(--s-2); padding-left: var(--s-4); }
31
31
  /* A phone's Remove is a full touch target whichever line it wraps onto (Fable #3424 N1: its size followed the font). */
32
- @media (max-width: 899px) { .hub-rows .s-row.hub-row.hub-group-row > .btn { min-height: var(--tap); min-width: var(--tap); } }
32
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .hub-rows .s-row.hub-row.hub-group-row > .btn { min-height: var(--tap); min-width: var(--tap); } }
@@ -42,7 +42,7 @@
42
42
  @media (max-width: 899px), (pointer: coarse) {
43
43
  .hub-versions-banner > .icon-btn, .hub-fleet-summary .hub-fleet-filter { min-width: var(--tap); min-height: var(--tap); }
44
44
  }
45
- @media (max-width: 899px) {
45
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
46
46
  /* A phone stacks the row as the Teams roster does: the name, then labelled lines, the tag first. */
47
47
  .hub-fleet-list .hub-fleet-version { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 2px; }
48
48
  }
@@ -73,14 +73,14 @@
73
73
  .hub-steps .hub-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; margin: 0; padding: 0; }
74
74
  .hub-steps > li::before { align-self: flex-start; margin-top: 1px; }
75
75
  .hub-steps .hub-offer > * { text-align: start; align-self: flex-start; justify-self: start; margin-left: 0; } /* hub.css's `.hub-steps small` auto margin would push a short line right */
76
- @media (max-width: 899px) { .hub-page-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
76
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .hub-page-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
77
77
  /* M-2682: Administration → This Hub — the name form, then what identifies this Hub (labels left; stacked on a phone). */
78
78
  .hub-this-form .field { max-width: 32em; }
79
79
  .hub-this-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
80
80
  .hub-this-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: var(--s-4) 0 0; }
81
81
  .hub-this-facts dt { color: var(--text-2); }
82
82
  .hub-this-facts dd { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); overflow-wrap: anywhere; }
83
- @media (max-width: 899px) {
83
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
84
84
  .hub-this-facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
85
85
  .hub-this-facts dd { margin-bottom: var(--s-2); }
86
86
  /* A phone's Administration: every button and text field is a full touch target, so one class combination keeps one height. */
@@ -105,7 +105,7 @@
105
105
  .hub-admin-tab { flex: none; padding: var(--s-2) 0; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
106
106
  .hub-admin-tab:hover { color: var(--text); }
107
107
  .hub-admin-tab.active { color: var(--text); font-weight: var(--fw-semibold); border-bottom-color: var(--text); }
108
- @media (max-width: 899px) {
108
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
109
109
  .hub-admin-tabs-wrap { padding: var(--s-2) var(--s-4) 0; }
110
110
  .hub-admin-tab { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
111
111
  }
@@ -161,7 +161,7 @@
161
161
  .hub-ov-legend dt i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
162
162
  .hub-ov-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
163
163
  .hub-ov-empty p { margin: 0; }
164
- @media (max-width: 899px) {
164
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
165
165
  .hub-ov-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
166
166
  .hub-ov-split { grid-template-columns: minmax(0, 1fr); }
167
167
  .hub-ov-range-item { min-height: var(--tap); }
@@ -0,0 +1,99 @@
1
+ /* Role screens share the Hub's rows, pickers and tables; only page layout lives here. */
2
+ @import url("/assets/hub-owner.css");
3
+ @import url("/assets/hub-groups.css");
4
+ @import url("/assets/hub-teams.css");
5
+ .hub-roles { padding-top:var(--s-2); }
6
+ .hub-roles .hub-card-head { margin:var(--s-4) 0; flex-wrap:wrap; }
7
+ .hub-role-top { display:flex; align-items:center; gap:var(--s-3); margin-bottom:var(--s-4); }
8
+ .hub-role-tabs { display:flex; align-items:stretch; gap:var(--s-4); border-bottom:1px solid var(--border); flex:1; min-width:0; }
9
+ .hub-role-tabs > button { min-height:var(--tap); padding:var(--s-2) 0; border:0; border-bottom:2px solid transparent; background:none; color:var(--text-2); font:inherit; cursor:pointer; white-space:nowrap; }
10
+ .hub-role-tabs > button.is-active { border-bottom-color:var(--accent); color:var(--text); font-weight:var(--fw-semibold); }
11
+ .hub-role-menu { position:relative; flex:none; }
12
+ .hub-role-menu > summary { min-width:var(--tap); min-height:var(--tap); display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:var(--r-md); }
13
+ .hub-role-menu[open] > .btn { position:absolute; inset-inline-end:0; z-index:2; min-width:max-content; box-shadow:var(--shadow-1); background:var(--surface); }
14
+ .hub-role-row-open { display:inline-flex; align-items:center; min-height:var(--tap); padding:0; border:0; background:none; color:var(--accent); font:inherit; font-weight:var(--fw-semibold); cursor:pointer; text-align:start; }
15
+ .hub-role-list tr { cursor:pointer; }
16
+ .hub-role-list tr:hover { background:var(--surface-2); }
17
+ .hub-role-list td:first-child { min-width:0; }
18
+ .hub-role-list td:first-child .tag { display:table; margin-top:var(--s-1); }
19
+ .hub-role-list .hub-role-purpose { max-width:24rem; color:var(--text-2); }
20
+ .hub-role-assigned-count { font-size:var(--fs-sm); }
21
+ .hub-roles .s-actions { flex-wrap:nowrap; }
22
+ .hub-roles .hub-row-text { flex:1; min-width:0; }
23
+ .hub-roles .hub-row-text strong { white-space:normal; overflow:visible; }
24
+ .hub-roles .hub-row { flex-wrap:wrap; }
25
+ .hub-role-actions { display:flex; flex-wrap:wrap; gap:var(--s-2); align-items:center; margin-top:var(--s-4); }
26
+ .hub-roles .hub-card-head > .btn,.hub-roles .s-actions > .btn,.hub-role-actions > .btn { width:auto; flex:none; }
27
+ .hub-roles .hub-group-fleets input,.hub-role-panel .hub-group-fleets input { width:4.5em; min-height:var(--tap); }
28
+ .hub-role-root-notice { margin-top:var(--s-4); }
29
+ .hub-role-stepper { list-style:none; display:flex; gap:var(--s-5); padding:0; margin:var(--s-4) 0; }
30
+ .hub-role-stepper li { display:flex; align-items:center; gap:var(--s-2); color:var(--text-2); }
31
+ .hub-role-stepper li > span { display:flex; align-items:center; justify-content:center; width:var(--s-6); height:var(--s-6); border-radius:var(--r-full); background:var(--surface-2); }
32
+ .hub-role-stepper li[aria-current] { color:var(--text); font-weight:var(--fw-semibold); }
33
+ .hub-role-stepper li[aria-current] > span { background:var(--accent-fill); color:var(--on-accent); }
34
+ .hub-role-step-mobile { display:none; }
35
+ .hub-role-info { display:grid; gap:var(--s-4); }
36
+ .hub-role-permission-section { margin:var(--s-3) 0; border:1px solid var(--border); border-radius:var(--r-md); padding:var(--s-3) var(--s-4); }
37
+ .hub-role-permission-section > summary { display:flex; align-items:center; justify-content:space-between; gap:var(--s-3); cursor:pointer; min-height:var(--tap); }
38
+ .hub-role-permission-list { display:flex; flex-direction:column; gap:var(--s-3); padding-top:var(--s-3); }
39
+ .hub-role-permission-list > .btn { align-self:flex-end; }
40
+ .hub-role-permission { display:flex; gap:var(--s-3); align-items:flex-start; min-height:var(--tap); cursor:pointer; }
41
+ .hub-role-permission > input { flex:none; margin-top:var(--s-1); }
42
+ .hub-role-permission > span { min-width:0; }
43
+ .hub-role-permission :is(strong,small) { display:block; }
44
+ .hub-role-permission small { margin:var(--s-1) 0; }
45
+ .hub-role-permission-mark { color:var(--text-2); }
46
+ .hub-role-permission.is-readonly { cursor:default; }
47
+ .hub-role-future { margin-top:var(--s-4); color:var(--text-2); }
48
+ .hub-role-assignment { display:grid; gap:var(--s-4); }
49
+ .hub-role-selected { flex-wrap:wrap; }
50
+ .hub-role-selected > .tag { display:inline-flex; align-items:center; gap:var(--s-1); white-space:normal; }
51
+ .hub-role-selected .icon-btn { min-width:var(--tap); min-height:var(--tap); }
52
+ .hub-role-more > summary { cursor:pointer; min-height:var(--tap); }
53
+ .hub-role-more .grid2 { margin:var(--s-3) 0; }
54
+ .hub-role-change { border-bottom:1px solid var(--border); padding-bottom:var(--s-3); margin-bottom:var(--s-3); }
55
+ .hub-role-review h3 { font-size:var(--fs-md); text-transform:none; letter-spacing:0; color:var(--text); }
56
+ .hub-role-review :is(h3,p) { margin-top:var(--s-3); }
57
+ .hub-role-review li > small { display:block; }
58
+ .hub-role-review details > summary { cursor:pointer; padding:var(--s-2) 0; }
59
+ .hub-role-audit-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:var(--s-3); align-items:end; margin:var(--s-4) 0; }
60
+ .hub-role-audit-values { margin-top:var(--s-3); }
61
+ .hub-role-audit-values ul { padding-inline-start:var(--s-4); }
62
+ .hub-role-audit summary { cursor:pointer; }
63
+ .hub-role-audit td:first-child { min-width:0; }
64
+ .hub-role-filter { max-width:16rem; margin-bottom:var(--s-3); }
65
+ .hub-roles :is(p,td,small,strong),.hub-role-panel :is(p,td,small,strong) { overflow-wrap:anywhere; }
66
+ @media (max-width:899px),(pointer:coarse) {
67
+ .hub-roles .btn,.hub-role-panel .btn,.hub-roles .field :is(input,select),.hub-role-panel .field :is(input,select) { min-height:var(--tap); }
68
+ .hub-roles .field :is(input,select),.hub-role-panel .field :is(input,select) { min-width:0; font-size:var(--fs-md); }
69
+ .hub-role-tabs { gap:var(--s-3); }
70
+ .hub-role-top { gap:var(--s-2); }
71
+ .hub-role-list tr { display:grid; gap:var(--s-3); padding:var(--s-4) 0; }
72
+ .hub-role-list td { padding:0; }
73
+ .hub-role-list td:last-child { align-self:auto; }
74
+ .hub-role-list td:last-child .btn { width:100%; }
75
+ .hub-role-list .hub-role-purpose { max-width:none; }
76
+ .hub-role-stepper { display:none; }
77
+ .hub-role-step-mobile { display:block; }
78
+ .hub-role-wizard-actions { position:sticky; bottom:0; z-index:2; background:var(--bg); padding:var(--s-3) 0; border-top:1px solid var(--border); }
79
+ .hub-role-wizard-actions .btn { flex:1; }
80
+ .hub-role-panel.dlg { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
81
+ .hub-role-panel .dlg-box { height:100%; max-height:100dvh; }
82
+ .hub-role-panel .dlg-body { flex:1; }
83
+ .hub-role-panel .dlg-actions { flex:none; }
84
+ .hub-role-panel .dlg-head { border-bottom:1px solid var(--border); }
85
+ .hub-role-panel .dlg-actions { border-top:1px solid var(--border); }
86
+ .hub-role-audit-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
87
+ .hub-role-audit tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--s-2) var(--s-3); }
88
+ .hub-role-audit-action { grid-column:1/-1; grid-row:1; }
89
+ .hub-role-audit-who { grid-column:1; grid-row:2; color:var(--text-2); font-size:var(--fs-sm); }
90
+ .hub-role-audit-when { grid-column:1; grid-row:3; color:var(--text-2); font-size:var(--fs-sm); }
91
+ .hub-role-audit-result { grid-column:2; grid-row:2/4; }
92
+ }
93
+
94
+ .hub-role-future > summary { min-height:var(--tap); display:flex; align-items:center; cursor:pointer; }
95
+ @media (max-width:899px),(pointer:coarse) { .hub-role-review details > summary,.hub-role-audit summary { min-height:var(--tap); } }
96
+
97
+ .hub-role-disclosure { flex:none; font-size:var(--fs-lg); line-height:1; }
98
+ .hub-role-permission-section[open] > summary .hub-role-disclosure { transform:rotate(90deg); }
99
+ .hub-role-permission-section > summary > strong { flex:1; }
@@ -60,3 +60,17 @@
60
60
  .msg.user .react-pick { margin-left: auto; }
61
61
  .react-pick .react-opt { width: 36px; height: 36px; padding: 0; justify-content: center; font-family: var(--font-emoji); font-size: var(--fs-xl); line-height: 1; }
62
62
  @media (pointer: coarse) { .react-pick .react-opt { width: 44px; height: 44px; } }
63
+
64
+ /* M3256: source is part of the author, never a second line or a presence dot. */
65
+ .hub-source-mark { display: inline-flex; flex: 0 0 16px; width: 16px; height: 16px; vertical-align: middle; align-items: center; justify-content: center; }
66
+ .hub-source-mark img { width: 16px; height: 16px; }
67
+ .hub-member-name .hub-source-mark { margin-inline-end: 4px; }
68
+ .hub-source-trigger { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
69
+ .hub-source-trigger > span:last-child { min-width: 0; overflow-wrap: anywhere; }
70
+ .hub-source-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
71
+ /* Source details must remain readable in the phone's otherwise single-line toast pills. */
72
+ .toasts .toast.toast-detail { white-space: normal; overflow: visible; text-overflow: clip; border-radius: var(--r-md); }
73
+ @media (max-width: 899px), (pointer: coarse) {
74
+ .hub-source-trigger { min-height: var(--tap); min-width: var(--tap); }
75
+ .hub-room-page .msg .meta { align-items: center; }
76
+ }
@@ -1,8 +1,16 @@
1
1
  /* AgEnD Hub P1, slice 3: the Hub pages' own stylesheet, linked by their lazy modules (hub-strings.js linkHubCss), so a
2
2
  tab opened before an upgrade (an app.css without these rules) draws them the same. Never loaded while the Hub is off. */
3
- .hub-switch { display: flex; gap: 2px; margin: 0 var(--s-3) var(--s-2); padding: 2px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
4
- .hub-switch-item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 28px; padding: 0 var(--s-2);
5
- border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
3
+ /* M-3235 (the user, beta.6): the switch is on the column's gutters — the nav rows' (side-nav's padding) on a desk, the filter
4
+ row's in the phone drawer (below). Each half is as wide as what it says and the room left is shared equally, so both
5
+ have the same padding; when there is none left, 我的 Fleet stays whole and the Hub's name ends in "…" before its ↗ (the
6
+ whole name in the link's title and accessible name). */
7
+ .hub-switch { display: flex; gap: 2px; margin: 0 var(--s-2) var(--s-2); padding: 2px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
8
+ .hub-switch-item { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 28px; padding: 0 var(--s-2);
9
+ border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; white-space: nowrap; overflow: hidden; }
10
+ .hub-switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
11
+ .hub-switch-item > .icon { flex: none; }
12
+ .hub-switch-item.is-current { flex-shrink: 0; }
13
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .sidebar.fleet-side .hub-switch { margin: 0 var(--s-2) var(--s-2) var(--s-3); } }
6
14
  .hub-switch-item.is-current { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: var(--fw-medium); }
7
15
  a.hub-switch-item:hover { color: var(--text); }
8
16
  a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@@ -12,7 +20,7 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
12
20
  .hub-state { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
13
21
  .hub-state h4 { margin: 0; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
14
22
  .hub-origin code { overflow-wrap: anywhere; }
15
- @media (max-width: 899px) {
23
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
16
24
  .p-hub .hub-company-join > .check, .p-hub .hub-company-join > details > summary { min-height: var(--tap); }
17
25
  }
18
26
  .hub-fp { display: grid; gap: var(--s-1); }
@@ -52,7 +60,7 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
52
60
  Settings layout's), the whole height of the page — no 38vh box scrolling inside it there. */
53
61
  .hub-notices-col > .hub-security-notices { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; box-shadow: none; max-height: none; overflow: visible; }
54
62
  @media (max-width: 600px) { .hub-notices-col > .hub-security-notices { padding: 16px; } }
55
- @media (max-width: 899px) { .hub-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
63
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .hub-body { padding: var(--s-3) var(--s-4) var(--s-6); } }
56
64
  .hub-signin { max-width: 420px; }
57
65
  .hub-signin h2 { margin: 0 0 var(--s-1); }
58
66
  .hub-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); }
@@ -334,19 +334,33 @@ export function labelOf(it) {
334
334
  return d || nameOf(it);
335
335
  }
336
336
 
337
- // M-3129: one synced density choice; the same row links, groups and menus stay mounted.
338
- const DENSITY_KEY = "agend_nav_density";
337
+ // M-3129: a synced density choice; the same row links, groups and menus stay mounted.
338
+ // M-3252 (the user, 11-16): the phone's drawer and the desktop's sidebar keep their own — nav.density is the desktop
339
+ // sidebar's (the one value both had until now), nav.densityPhone the drawer's (a window under 900 px: the layout where the
340
+ // sidebar is a drawer, app-shell's narrow()). Both still follow the person between devices. The user's defaults: the
341
+ // desktop 精簡 (compact), the phone 詳細 (detailed). The split keeps a value already chosen as the desktop's; the phone
342
+ // starts at 詳細 until one is chosen there. The list's ⋯ (自訂) and Settings → This device show and change the one for the
343
+ // layout in force.
344
+ const DENSITY_KEY = "agend_nav_density", PHONE_DENSITY_KEY = "agend_nav_density_phone";
345
+ const DRAWER_MEDIA = "(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)";
346
+ const drawerLayout = () => { try { return typeof matchMedia === "function" && matchMedia(DRAWER_MEDIA).matches; } catch { return false; } };
347
+ const chosen = (v) => (v === "compact" || v === "detailed" ? v : null);
348
+ function choiceOf(key, ls) { const p = prefInForce(key); return chosen(p ? p.value : stored(ls)); }
339
349
  function readSidebarDensity() {
340
- const p = prefInForce("nav.density");
341
- return (p ? p.value : stored(DENSITY_KEY)) === "compact" ? "compact" : "detailed";
350
+ return drawerLayout() ? (choiceOf("nav.densityPhone", PHONE_DENSITY_KEY) ?? "detailed") : (choiceOf("nav.density", DENSITY_KEY) ?? "compact");
342
351
  }
343
- export const sidebarDensityStore = createStore({ value: readSidebarDensity() });
352
+ const densityNow = () => ({ value: readSidebarDensity(), layout: drawerLayout() ? "phone" : "desk" });
353
+ export const sidebarDensityStore = createStore(densityNow());
354
+ /** The layout's own value again (a window that crossed 900 px; another device's change). */
355
+ export const refreshDensity = () => { const n = densityNow(), c = sidebarDensityStore.get(); if (n.value !== c.value || n.layout !== c.layout) sidebarDensityStore.set(n); };
344
356
  export function setSidebarDensity(value) {
345
- const density = value === "compact" ? "compact" : "detailed";
346
- sidebarDensityStore.set({ value: density });
347
- savePref("nav.density", density);
357
+ const density = value === "compact" ? "compact" : "detailed", phone = drawerLayout();
358
+ savePref(phone ? "nav.densityPhone" : "nav.density", density);
359
+ sidebarDensityStore.set({ value: density, layout: phone ? "phone" : "desk" });
348
360
  }
349
- onPrefsChanged((keys) => { if (keys.has("nav.density")) sidebarDensityStore.set({ value: readSidebarDensity() }); });
361
+ onPrefsChanged((keys) => { if (keys.has("nav.density") || keys.has("nav.densityPhone")) refreshDensity(); });
362
+ // A window that crosses 900 px (a tablet turned, a desktop window narrowed) shows that layout's own.
363
+ try { const mq = typeof matchMedia === "function" ? matchMedia(DRAWER_MEDIA) : null; if (mq && typeof mq.addEventListener === "function") mq.addEventListener("change", refreshDensity); } catch { /* no media queries */ }
350
364
 
351
365
  // M-3212 (the user, 11-16): the phone's drawer — 滿版, the screen's width (the default since M-3211), or 窄版, 300 px with
352
366
  // the page beside it (as before). This browser's own choice (localStorage, not a synced pref: a phone and a tablet may
@@ -508,6 +522,7 @@ function SortMenu({ sort, phone = false }) {
508
522
  }, [open]);
509
523
  const recent = sort.mode === "recent";
510
524
  // M-3164: the list's density, the same synced choice as Settings (nav.density, M-3129): either place changes it at once, for both.
525
+ // M-3252: the one for the layout in force (the drawer's on a phone, the sidebar's on a desktop).
511
526
  const density = useStore(sidebarDensityStore).value;
512
527
  const drawer = useStore(phoneDrawerStore).value; // M-3212
513
528
  const drawerRadio = (value, label) => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-drawer" value=${value}
@@ -33,5 +33,5 @@
33
33
  .sk-signin .sk-line:first-child { width: 70%; height: 26px; }
34
34
  .sk-signin .sk-line:nth-child(3) { width: 100%; height: 48px; }
35
35
  .sk-signin .sk-line:nth-child(4) { width: 100%; height: 42px; border-radius: 99px; }
36
- @media (max-width: 899px) { .sk-boot-side { display: none; } }
36
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .sk-boot-side { display: none; } }
37
37
  @media (prefers-reduced-motion: reduce) { .skeleton { animation: none; opacity: 1; } }
@@ -11,7 +11,7 @@
11
11
  /* A /model option with an effort: on a phone its row shows the effort and a "›" to the effort list (below); elsewhere only the model button. */
12
12
  .cmd-choice { display: contents; }
13
13
  .cmd-effort-go { display: none; }
14
- @media (max-width: 899px) {
14
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
15
15
  .model-refresh .btn, .cmd-card .btn, .cmd-card .icon-btn { min-height: var(--tap); min-width: var(--tap); }
16
16
  .chat-model-entry { display: none; }
17
17
  .model-entry-row { display: flex; flex-wrap: wrap; padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--border); }
@@ -52,7 +52,7 @@
52
52
  .model-menu-signin { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
53
53
  .model-menu-scrim { position: fixed; inset: 0; z-index: 90; }
54
54
  .model-menu-pop { position: fixed; z-index: 91; width: 320px; max-height: calc(100vh - 16px); overflow-y: auto; padding: var(--s-1); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-2), 0 0 0 1px var(--border); }
55
- @media (max-width: 899px) {
55
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
56
56
  .model-menu-row { min-height: 56px; }
57
57
  .model-menu-more { min-height: var(--tap); }
58
58
  .model-menu-seg { margin: 0 0 var(--s-2); }
@@ -149,7 +149,7 @@ export function shareBlock(open, deps = chat) {
149
149
  return { instance: open.instance, from, title, sender: msg.sender || open.sender || "", ts: msg.ts || open.ts || "" };
150
150
  }
151
151
 
152
- const narrow = () => typeof window !== "undefined" && !!window.matchMedia && window.matchMedia("(max-width: 899px)").matches;
152
+ const narrow = () => typeof window !== "undefined" && !!window.matchMedia && window.matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches;
153
153
 
154
154
  /** The bar's actions for the open page. props: open, name, run, view (as the panel has them). */
155
155
  export function PanelActions({ open, run }) {
@@ -463,7 +463,7 @@ export function PreviewPanel({ name, split, msgs, subscribe, keyOf, reveal, down
463
463
  <div class="pv-panel-head">
464
464
  <button type="button" class="icon-btn only-narrow pv-panel-close" title=${t("chat.pvBack")} aria-label=${t("chat.pvBack")} onClick=${closePanel}><${Icon} name="back" size=${18} /></button>
465
465
  <div class="pv-panel-title"><strong>${t("chat.pvPanel")}</strong>
466
- <button type="button" class="pv-source" title=${source} onClick=${() => { if (window.matchMedia && window.matchMedia("(max-width: 899px)").matches) closePanel(); reveal(open.msgKey); }}>${source}</button></div>
466
+ <button type="button" class="pv-source" title=${source} onClick=${() => { if (window.matchMedia && window.matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches) closePanel(); reveal(open.msgKey); }}>${source}</button></div>
467
467
  ${pages.length > 1 ? html`<button type="button" class=${`btn btn-sm pv-pages-toggle${listing ? " on" : ""}`} aria-pressed=${listing ? "true" : "false"} title=${t("chat.pvPagesTitle")}
468
468
  onClick=${() => setListing(v => !v)}><${Icon} name="file" size=${14} />${t("chat.pvPagesCount", pages.length)}</button>` : null}
469
469
  <button type="button" class="icon-btn only-wide pv-panel-close" title=${t("chat.pvClose")} aria-label=${t("chat.pvClose")} onClick=${closePanel}><${Icon} name="close" size=${18} /></button>
@@ -520,7 +520,7 @@ function MarkdownPanel({ open, name, md, view, setView, plain, body, panel, fs,
520
520
  <div class="pv-panel-head">
521
521
  <button type="button" class="icon-btn only-narrow pv-panel-close" title=${t("chat.pvBack")} aria-label=${t("chat.pvBack")} onClick=${closePanel}><${Icon} name="back" size=${18} /></button>
522
522
  <div class="pv-panel-title"><strong>${open.att ? open.att.name : t("chat.pvMdPanel")}</strong>
523
- <button type="button" class="pv-source" title=${source} onClick=${() => { if (window.matchMedia && window.matchMedia("(max-width: 899px)").matches) closePanel(); reveal(open.msgKey); }}>${source}</button></div>
523
+ <button type="button" class="pv-source" title=${source} onClick=${() => { if (window.matchMedia && window.matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches) closePanel(); reveal(open.msgKey); }}>${source}</button></div>
524
524
  <button type="button" class="icon-btn only-wide pv-panel-close" title=${t("chat.pvClose")} aria-label=${t("chat.pvClose")} onClick=${closePanel}><${Icon} name="close" size=${18} /></button>
525
525
  </div>
526
526
  <div class="pv-panel-bar">
@@ -47,9 +47,15 @@
47
47
  unavailable: "Authenticator sign-in is not available here. Paste an 8-character device sign-in code, or use a device you have signed in from before.",
48
48
  invalid: "Enter a 6-digit authenticator code or an 8-character device sign-in code.",
49
49
  pause_for: "Sign-in is paused. Please wait {duration}, then try again.", pause_button: "Sign-in paused", ready_again: "You can try signing in again.",
50
- reach_title: "How does my phone reach AgEnD?", reach_lead: "Open the AgEnD address in your phone’s browser:",
51
- reach_wifi: "Same Wi-Fi: use the computer’s local network address.", reach_private: "Private network, such as Tailscale: connect both devices to that network first.",
52
- reach_outside: "Outside connection: use the address your admin provides.",
50
+ // M-3251 (the user): easiest first — the link /web opens, a fixed one, a private network last. Never "the computer's
51
+ // local network address": the dashboard answers on 127.0.0.1 only. A fleet with no chat (`_web`): its own ways.
52
+ reach_title: "How do I open AgEnD on my phone?", reach_lead: "Easiest first:",
53
+ reach_temp: "Temporary link: send /web in General and choose 🌐 Other device. The link and a sign-in code come to you privately.",
54
+ reach_fixed: "Fixed link: set a fixed public hostname in Settings → Access & security. /web then opens the same address every time, so it can stay on your home screen.",
55
+ reach_private: "Private network, such as Tailscale: share the dashboard on it from the AgEnD computer, open that address on your phone, and sign in with a code from /web. On its own, the dashboard answers only on the AgEnD computer.",
56
+ reach_temp_web: "From outside: on the AgEnD computer, open Settings → Access & security → Owner verification, set up an authenticator app and turn on Allow connections from outside. Sign in on your phone with the app's 6-digit code.",
57
+ reach_fixed_web: "Fixed link: set a fixed public hostname in Settings → Access & security, so that link keeps the same address.",
58
+ reach_private_web: "Private network, such as Tailscale: share the dashboard on it from the AgEnD computer, open that address on your phone, and sign in with a code from agend web --code on the AgEnD computer.",
53
59
  minutes: "{0} minutes", minute: "1 minute", hours: "{0} hours", hour: "1 hour",
54
60
  // #3061: sign in with another device — an 8-character code shown here, approved on a device that is already signed in.
55
61
  another: "Sign in with another device", dev_title: "Sign in with another device",
@@ -93,9 +99,13 @@
93
99
  unavailable: "這裡無法使用驗證器 App 登入。請貼上 8 字元裝置登入碼,或使用先前登入過的裝置。",
94
100
  invalid: "請輸入 6 位數驗證碼或 8 字元裝置登入碼。",
95
101
  pause_for: "登入已暫停,請等 {duration}後再試。", pause_button: "暫時無法登入", ready_again: "可以再次嘗試登入。",
96
- reach_title: "如何在手機開啟 AgEnD?", reach_lead: "在手機瀏覽器開啟 AgEnD 網址:",
97
- reach_wifi: "同一個 Wi-Fi:使用電腦的區網網址。", reach_private: "私人網路(如 Tailscale):兩台裝置先連上同一個網路。",
98
- reach_outside: "外部連線:使用管理員提供的網址。",
102
+ reach_title: "如何在手機開啟 AgEnD?", reach_lead: "由簡單到進階:",
103
+ reach_temp: "臨時連結:在 General 傳 /web,選「🌐 其他裝置登入」。連結和裝置登入碼會私訊給你。",
104
+ reach_fixed: "固定連結:在「設定 → 存取與安全」填好固定公開網域。之後 /web 每次都開同一個網址,可以加到手機主畫面。",
105
+ reach_private: "私人網路(如 Tailscale):在 AgEnD 電腦上把儀表板分享到這個網路,手機開啟那個網址,再用 /web 取得的裝置登入碼登入。儀表板本身只在 AgEnD 電腦上回應。",
106
+ reach_temp_web: "從外面連線:在 AgEnD 電腦開啟「設定 → 存取與安全 → 擁有者驗證」,設定驗證器 App 並開啟「允許從外面連線」。手機上用 App 的 6 位數驗證碼登入。",
107
+ reach_fixed_web: "固定連結:在「設定 → 存取與安全」填好固定公開網域,那個連結的網址就不會變。",
108
+ reach_private_web: "私人網路(如 Tailscale):在 AgEnD 電腦上把儀表板分享到這個網路,手機開啟那個網址,再用在 AgEnD 電腦執行 agend web --code 取得的裝置登入碼登入。",
99
109
  minutes: "{0} 分鐘", minute: "1 分鐘", hours: "{0} 小時", hour: "1 小時",
100
110
  another: "使用其他裝置登入", dev_title: "使用其他裝置登入",
101
111
  dev_lead: "在已登入且已驗證擁有者的裝置上,開啟「設定 → 存取與安全」,在「裝置與登入」選「新增裝置」,輸入這組裝置登入碼。",
@@ -194,18 +204,23 @@
194
204
  // The command in the "No chat bot?" help is a <code> that never breaks across lines (a break inside "--code" reads as
195
205
  // two dashes and a word, alpha.2 sweep); the text around it is text.
196
206
  const CMD = /agend web(?: --code)?/;
197
- document.querySelectorAll("[data-i18n]").forEach((el) => {
198
- const text = t(el.getAttribute("data-i18n"));
207
+ const paintCmd = (el, text) => {
208
+ if (!el) return;
199
209
  const m = CMD.exec(text);
200
- if (!m) { paint(el, text); return; }
210
+ if (!m || typeof el.replaceChildren !== "function") { paint(el, text); return; }
201
211
  const code = document.createElement("code");
202
212
  code.textContent = m[0];
203
213
  el.replaceChildren(text.slice(0, m.index), code, text.slice(m.index + m[0].length));
204
- });
214
+ };
215
+ document.querySelectorAll("[data-i18n]").forEach((el) => paintCmd(el, t(el.getAttribute("data-i18n"))));
205
216
 
206
- // New help is optional: new JS still works with cached HTML, and old JS leaves it hidden.
217
+ // How a phone gets here (M-3251: the link /web opens, a fixed one, a private network last; a fleet with no chat, its own).
218
+ // New help is optional: new JS still works with cached HTML (an older page's three items: Wi-Fi, private, outside), and
219
+ // old JS leaves it hidden.
207
220
  if ($("reachHelp")) {
208
- for (const [id, key] of [["reachTitle", "reach_title"], ["reachLead", "reach_lead"], ["reachWifi", "reach_wifi"], ["reachPrivate", "reach_private"], ["reachOutside", "reach_outside"]]) paint($(id), t(key));
221
+ const items = $("reachTemp") ? [["reachTemp", "reach_temp"], ["reachFixed", "reach_fixed"], ["reachPrivate", "reach_private"]]
222
+ : [["reachWifi", "reach_temp"], ["reachPrivate", "reach_fixed"], ["reachOutside", "reach_private"]];
223
+ for (const [id, key] of [["reachTitle", "reach_title"], ["reachLead", "reach_lead"], ...items]) paintCmd($(id), t(key));
209
224
  $("reachHelp").hidden = false;
210
225
  }
211
226
 
@@ -33,7 +33,7 @@
33
33
  .ts-seg.status-review, .ts-key.status-review, .ts-seg.priority-high, .ts-key.priority-high, .ts-seg.size-L, .ts-key.size-L { fill: var(--warn); background: var(--warn); }
34
34
  .ts-seg.status-done, .ts-key.status-done, .ts-seg.size-S, .ts-key.size-S { fill: var(--ok); background: var(--ok); }
35
35
  /* A phone keeps the bar and the total; the parts are in the legend's colours. */
36
- @media (max-width: 899px) { .ts-table .ts-part { display: none; } }
36
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .ts-table .ts-part { display: none; } }
37
37
 
38
38
  /* A project's Filter and Display, its filters as chips, and the project as a list (fleet-task-view.js). */
39
39
  .menu-text { gap: var(--s-1); }
@@ -74,7 +74,7 @@ button.tb-row-progress:hover { background: var(--surface-2); }
74
74
  .tb-row-who .tb-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
75
75
  .tb-row-time { flex-shrink: 0; width: 7em; font-size: var(--fs-xs); text-align: right; white-space: nowrap; }
76
76
  .tb-row > .tb-subs { margin: 0 var(--s-2) var(--s-2) var(--s-6); }
77
- @media (max-width: 899px) {
77
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
78
78
  /* A phone's row: number and title on the first line, the rest under them. */
79
79
  .tb-row-line { flex-wrap: wrap; row-gap: var(--s-1); }
80
80
  .tb-row-text { flex: 1 1 calc(100% - 96px); }
@@ -192,7 +192,7 @@
192
192
  /* M-3216: on the phone layout the two small sizes are a step larger (12 → 13px, 13 → 14px): on a phone most of the
193
193
  text (times, hints, labels, a card's lines) is set in them. The bases change, so every scope built on them (app.css's
194
194
  text-size scopes) follows. Text fields keep the 16px rule below. */
195
- @media (max-width: 899px) {
195
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
196
196
  :root { --fs-3xs-base: 11px; --fs-2xs-base: 12px; --fs-xs-base: 13px; --lh-xs-base: 18px; --fs-sm-base: 14px; --lh-sm-base: 20px; }
197
197
  }
198
198
  @media (pointer: coarse), (max-width: 899px) {
@@ -6,10 +6,10 @@ import { createStore } from "./app-store.js";
6
6
  const toasts = createStore([]);
7
7
  let seq = 0;
8
8
 
9
- export function toast(text, ok = true) {
9
+ export function toast(text, ok = true, { detail = false } = {}) {
10
10
  const id = ++seq;
11
- toasts.set(list => [...list, { id, text: String(text), ok }]);
12
- setTimeout(() => toasts.set(list => list.filter(x => x.id !== id)), 4000);
11
+ toasts.set(list => [...list, { id, text: String(text), ok, ...(detail ? { detail: true } : {}) }]);
12
+ setTimeout(() => toasts.set(list => list.filter(x => x.id !== id)), detail ? 12000 : 4000);
13
13
  }
14
14
 
15
15
  export function Toasts() {
@@ -27,5 +27,5 @@ export function Toasts() {
27
27
  if (list.length) el.showPopover();
28
28
  } catch { /* a popover that cannot be shown stays where it is */ }
29
29
  }, [list]);
30
- return html`<div ref=${box} popover="manual" data-trust="toast" class="toasts" role="status" aria-live="polite">${list.map(x => html`<div key=${x.id} class=${`toast ${x.ok ? "ok" : "err"}`} onClick=${() => toasts.set((l) => l.filter((y) => y.id !== x.id))}>${x.text}</div>`)}</div>`;
30
+ return html`<div ref=${box} popover="manual" data-trust="toast" class="toasts" role="status" aria-live="polite">${list.map(x => html`<div key=${x.id} class=${`toast ${x.ok ? "ok" : "err"}${x.detail ? " toast-detail" : ""}`} onClick=${() => toasts.set((l) => l.filter((y) => y.id !== x.id))}>${x.text}</div>`)}</div>`;
31
31
  }