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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (860) hide show
  1. package/dist/agent-cli-instructions.md +4 -1
  2. package/dist/agent-cli.js +14 -2
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-endpoint.d.ts +3 -1
  5. package/dist/agent-endpoint.js +15 -3
  6. package/dist/agent-endpoint.js.map +1 -1
  7. package/dist/agent-token-header.d.ts +1 -1
  8. package/dist/agent-token-header.js +1 -1
  9. package/dist/app-message-origin.d.ts +2 -0
  10. package/dist/app-message-origin.js +3 -0
  11. package/dist/app-message-origin.js.map +1 -0
  12. package/dist/auth-api.d.ts +8 -0
  13. package/dist/auth-api.js +39 -1
  14. package/dist/auth-api.js.map +1 -1
  15. package/dist/authority/authority-state.d.ts +7 -0
  16. package/dist/authority/authority-state.js +17 -2
  17. package/dist/authority/authority-state.js.map +1 -1
  18. package/dist/authority/web-authority.d.ts +11 -1
  19. package/dist/authority/web-authority.js +11 -1
  20. package/dist/authority/web-authority.js.map +1 -1
  21. package/dist/backend/agy-model-switch.d.ts +22 -0
  22. package/dist/backend/agy-model-switch.js +62 -0
  23. package/dist/backend/agy-model-switch.js.map +1 -0
  24. package/dist/backend/antigravity.d.ts +9 -2
  25. package/dist/backend/antigravity.js +84 -9
  26. package/dist/backend/antigravity.js.map +1 -1
  27. package/dist/backend/claude-code.js +20 -5
  28. package/dist/backend/claude-code.js.map +1 -1
  29. package/dist/backend/cli-env-probe.js +1 -1
  30. package/dist/backend/cli-env-probe.js.map +1 -1
  31. package/dist/backend/cli-runtime-switch.d.ts +90 -0
  32. package/dist/backend/cli-runtime-switch.js +273 -0
  33. package/dist/backend/cli-runtime-switch.js.map +1 -0
  34. package/dist/backend/codex-footer-hints.d.ts +1 -0
  35. package/dist/backend/codex-footer-hints.js +15 -0
  36. package/dist/backend/codex-footer-hints.js.map +1 -1
  37. package/dist/backend/codex-model-switch.d.ts +41 -0
  38. package/dist/backend/codex-model-switch.js +170 -0
  39. package/dist/backend/codex-model-switch.js.map +1 -0
  40. package/dist/backend/codex.d.ts +6 -4
  41. package/dist/backend/codex.js +26 -9
  42. package/dist/backend/codex.js.map +1 -1
  43. package/dist/backend/credential-profile.js +1 -1
  44. package/dist/backend/credential-profile.js.map +1 -1
  45. package/dist/backend/grok-model-switch.d.ts +16 -0
  46. package/dist/backend/grok-model-switch.js +45 -0
  47. package/dist/backend/grok-model-switch.js.map +1 -0
  48. package/dist/backend/grok.js +1 -1
  49. package/dist/backend/grok.js.map +1 -1
  50. package/dist/backend/kiro.js +4 -4
  51. package/dist/backend/kiro.js.map +1 -1
  52. package/dist/backend/muse.d.ts +2 -0
  53. package/dist/backend/muse.js +7 -3
  54. package/dist/backend/muse.js.map +1 -1
  55. package/dist/backend/native-pane.js +1 -1
  56. package/dist/backend/native-pane.js.map +1 -1
  57. package/dist/backend/types.d.ts +2 -0
  58. package/dist/backend/types.js.map +1 -1
  59. package/dist/backend-availability.d.ts +22 -0
  60. package/dist/backend-availability.js +71 -2
  61. package/dist/backend-availability.js.map +1 -1
  62. package/dist/backend-signin-guide.js +1 -1
  63. package/dist/backend-signin-guide.js.map +1 -1
  64. package/dist/build-provenance.json +1 -1
  65. package/dist/channel/adapters/discord.d.ts +10 -0
  66. package/dist/channel/adapters/discord.js +35 -0
  67. package/dist/channel/adapters/discord.js.map +1 -1
  68. package/dist/channel/adapters/telegram.d.ts +2 -0
  69. package/dist/channel/adapters/telegram.js +3 -0
  70. package/dist/channel/adapters/telegram.js.map +1 -1
  71. package/dist/channel/mcp-server.js +10 -1
  72. package/dist/channel/mcp-server.js.map +1 -1
  73. package/dist/channel/mcp-tools.js +9 -1
  74. package/dist/channel/mcp-tools.js.map +1 -1
  75. package/dist/channel/tool-router.js +9 -2
  76. package/dist/channel/tool-router.js.map +1 -1
  77. package/dist/channel/types.d.ts +10 -0
  78. package/dist/classic-channel-manager.d.ts +1 -1
  79. package/dist/classic-channel-manager.js +1 -1
  80. package/dist/cli-audited.js +14 -13
  81. package/dist/cli-audited.js.map +1 -1
  82. package/dist/cli-capability.d.ts +3 -0
  83. package/dist/cli-capability.js.map +1 -1
  84. package/dist/cli-registry-check.js +1 -1
  85. package/dist/cli-registry-check.js.map +1 -1
  86. package/dist/cli-registry.d.ts +1 -0
  87. package/dist/cli-spec-antigravity.d.ts +1 -0
  88. package/dist/cli-spec-antigravity.js +3 -1
  89. package/dist/cli-spec-antigravity.js.map +1 -1
  90. package/dist/cli.js +8 -0
  91. package/dist/cli.js.map +1 -1
  92. package/dist/config-validator.js +18 -1
  93. package/dist/config-validator.js.map +1 -1
  94. package/dist/connect/control.d.ts +20 -0
  95. package/dist/connect/control.js +236 -0
  96. package/dist/connect/control.js.map +1 -0
  97. package/dist/connect/install.d.ts +13 -0
  98. package/dist/connect/install.js +12 -0
  99. package/dist/connect/install.js.map +1 -0
  100. package/dist/connect/mcp.d.ts +9 -0
  101. package/dist/connect/mcp.js +10 -0
  102. package/dist/connect/mcp.js.map +1 -0
  103. package/dist/connect/protocol.d.ts +38 -0
  104. package/dist/connect/protocol.js +36 -0
  105. package/dist/connect/protocol.js.map +1 -0
  106. package/dist/connect/service.d.ts +19 -0
  107. package/dist/connect/service.js +79 -0
  108. package/dist/connect/service.js.map +1 -0
  109. package/dist/connect/stdio-entry.d.ts +1 -0
  110. package/dist/connect/stdio-entry.js +6 -0
  111. package/dist/connect/stdio-entry.js.map +1 -0
  112. package/dist/connect/stdio.d.ts +5 -0
  113. package/dist/connect/stdio.js +33 -0
  114. package/dist/connect/stdio.js.map +1 -0
  115. package/dist/daemon.d.ts +64 -2
  116. package/dist/daemon.js +397 -31
  117. package/dist/daemon.js.map +1 -1
  118. package/dist/delivery-consumed-watch.d.ts +2 -0
  119. package/dist/delivery-consumed-watch.js +4 -1
  120. package/dist/delivery-consumed-watch.js.map +1 -1
  121. package/dist/dispatcher-liveness.d.ts +51 -1
  122. package/dist/dispatcher-liveness.js +92 -2
  123. package/dist/dispatcher-liveness.js.map +1 -1
  124. package/dist/event-log.d.ts +1 -1
  125. package/dist/event-log.js +1 -1
  126. package/dist/fleet-manager.d.ts +222 -6
  127. package/dist/fleet-manager.js +1271 -100
  128. package/dist/fleet-manager.js.map +1 -1
  129. package/dist/fleet-windows-runtime.js +4 -2
  130. package/dist/fleet-windows-runtime.js.map +1 -1
  131. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +11 -1
  132. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +10 -0
  133. package/dist/general-knowledge/skills/fleet-health/SKILL.md +18 -0
  134. package/dist/general-knowledge/skills/hub/SKILL.md +290 -24
  135. package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
  136. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +118 -26
  137. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +2 -0
  138. package/dist/hub/admin-dashboard.d.ts +85 -0
  139. package/dist/hub/admin-dashboard.js +177 -0
  140. package/dist/hub/admin-dashboard.js.map +1 -0
  141. package/dist/hub/attachments/store.d.ts +2 -0
  142. package/dist/hub/attachments/store.js +6 -0
  143. package/dist/hub/attachments/store.js.map +1 -1
  144. package/dist/hub/audit/index.d.ts +2 -0
  145. package/dist/hub/audit/index.js +8 -0
  146. package/dist/hub/audit/index.js.map +1 -1
  147. package/dist/hub/buttons.js +3 -1
  148. package/dist/hub/buttons.js.map +1 -1
  149. package/dist/hub/catalog.d.ts +7 -4
  150. package/dist/hub/catalog.js +19 -10
  151. package/dist/hub/catalog.js.map +1 -1
  152. package/dist/hub/client.d.ts +13 -0
  153. package/dist/hub/client.js +85 -11
  154. package/dist/hub/client.js.map +1 -1
  155. package/dist/hub/compose/member.d.ts +22 -0
  156. package/dist/hub/compose/member.js +233 -18
  157. package/dist/hub/compose/member.js.map +1 -1
  158. package/dist/hub/compose/server.d.ts +13 -0
  159. package/dist/hub/compose/server.js +107 -14
  160. package/dist/hub/compose/server.js.map +1 -1
  161. package/dist/hub/display-name.d.ts +10 -0
  162. package/dist/hub/display-name.js +35 -0
  163. package/dist/hub/display-name.js.map +1 -0
  164. package/dist/hub/execution/service.d.ts +1 -0
  165. package/dist/hub/execution/service.js +1 -1
  166. package/dist/hub/execution/service.js.map +1 -1
  167. package/dist/hub/fleet-info.d.ts +12 -0
  168. package/dist/hub/fleet-info.js +14 -0
  169. package/dist/hub/fleet-info.js.map +1 -0
  170. package/dist/hub/fleet-update-model.d.ts +100 -0
  171. package/dist/hub/fleet-update-model.js +15 -0
  172. package/dist/hub/fleet-update-model.js.map +1 -0
  173. package/dist/hub/fleet-updates.d.ts +46 -0
  174. package/dist/hub/fleet-updates.js +282 -0
  175. package/dist/hub/fleet-updates.js.map +1 -0
  176. package/dist/hub/fleet-versions.d.ts +28 -0
  177. package/dist/hub/fleet-versions.js +80 -0
  178. package/dist/hub/fleet-versions.js.map +1 -0
  179. package/dist/hub/group-policy/admin-api.d.ts +1 -0
  180. package/dist/hub/group-policy/admin-api.js +10 -1
  181. package/dist/hub/group-policy/admin-api.js.map +1 -1
  182. package/dist/hub/group-policy/admin-control.d.ts +1 -0
  183. package/dist/hub/group-policy/admin-control.js +13 -4
  184. package/dist/hub/group-policy/admin-control.js.map +1 -1
  185. package/dist/hub/group-policy/admin-dto.d.ts +39 -1
  186. package/dist/hub/group-policy/admin-dto.js.map +1 -1
  187. package/dist/hub/group-policy/admin-facts.d.ts +4 -2
  188. package/dist/hub/group-policy/admin-facts.js +17 -2
  189. package/dist/hub/group-policy/admin-facts.js.map +1 -1
  190. package/dist/hub/group-policy/admin-impact.d.ts +36 -6
  191. package/dist/hub/group-policy/admin-impact.js +21 -7
  192. package/dist/hub/group-policy/admin-impact.js.map +1 -1
  193. package/dist/hub/group-policy/admin-inventory.d.ts +2 -0
  194. package/dist/hub/group-policy/admin-inventory.js +13 -4
  195. package/dist/hub/group-policy/admin-inventory.js.map +1 -1
  196. package/dist/hub/group-policy/admin-search.d.ts +2 -1
  197. package/dist/hub/group-policy/admin-search.js +56 -7
  198. package/dist/hub/group-policy/admin-search.js.map +1 -1
  199. package/dist/hub/group-policy/authorization.d.ts +2 -0
  200. package/dist/hub/group-policy/authorization.js +7 -2
  201. package/dist/hub/group-policy/authorization.js.map +1 -1
  202. package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
  203. package/dist/hub/group-policy/impact-inventory.js +23 -2
  204. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  205. package/dist/hub/group-policy/model.d.ts +52 -1
  206. package/dist/hub/group-policy/model.js +20 -7
  207. package/dist/hub/group-policy/model.js.map +1 -1
  208. package/dist/hub/group-policy/resources.d.ts +2 -0
  209. package/dist/hub/group-policy/resources.js +12 -1
  210. package/dist/hub/group-policy/resources.js.map +1 -1
  211. package/dist/hub/group-policy/store.js +22 -3
  212. package/dist/hub/group-policy/store.js.map +1 -1
  213. package/dist/hub/group-policy/team-subjects.d.ts +16 -0
  214. package/dist/hub/group-policy/team-subjects.js +32 -0
  215. package/dist/hub/group-policy/team-subjects.js.map +1 -0
  216. package/dist/hub/http/compose.d.ts +2 -0
  217. package/dist/hub/http/compose.js +385 -32
  218. package/dist/hub/http/compose.js.map +1 -1
  219. package/dist/hub/http/core.js +27 -0
  220. package/dist/hub/http/core.js.map +1 -1
  221. package/dist/hub/http/deps.d.ts +13 -0
  222. package/dist/hub/http/schema.js +21 -1
  223. package/dist/hub/http/schema.js.map +1 -1
  224. package/dist/hub/join/client.js +75 -42
  225. package/dist/hub/join/client.js.map +1 -1
  226. package/dist/hub/join/service.d.ts +1 -1
  227. package/dist/hub/join/service.js.map +1 -1
  228. package/dist/hub/mcp/auth-schema.d.ts +7 -0
  229. package/dist/hub/mcp/auth-schema.js +31 -0
  230. package/dist/hub/mcp/auth-schema.js.map +1 -0
  231. package/dist/hub/mcp/auth.d.ts +89 -0
  232. package/dist/hub/mcp/auth.js +374 -0
  233. package/dist/hub/mcp/auth.js.map +1 -0
  234. package/dist/hub/mcp/catalog.d.ts +44 -0
  235. package/dist/hub/mcp/catalog.js +31 -0
  236. package/dist/hub/mcp/catalog.js.map +1 -0
  237. package/dist/hub/mcp/door-schema.d.ts +7 -0
  238. package/dist/hub/mcp/door-schema.js +20 -0
  239. package/dist/hub/mcp/door-schema.js.map +1 -0
  240. package/dist/hub/mcp/http.d.ts +25 -0
  241. package/dist/hub/mcp/http.js +259 -0
  242. package/dist/hub/mcp/http.js.map +1 -0
  243. package/dist/hub/mcp/policy.d.ts +65 -0
  244. package/dist/hub/mcp/policy.js +153 -0
  245. package/dist/hub/mcp/policy.js.map +1 -0
  246. package/dist/hub/mcp/server.d.ts +3 -0
  247. package/dist/hub/mcp/server.js +32 -0
  248. package/dist/hub/mcp/server.js.map +1 -0
  249. package/dist/hub/mcp/tools.d.ts +31 -0
  250. package/dist/hub/mcp/tools.js +176 -0
  251. package/dist/hub/mcp/tools.js.map +1 -0
  252. package/dist/hub/member/display-name.d.ts +9 -0
  253. package/dist/hub/member/display-name.js +71 -0
  254. package/dist/hub/member/display-name.js.map +1 -0
  255. package/dist/hub/member/exposure-api.d.ts +6 -0
  256. package/dist/hub/member/exposure-api.js +13 -6
  257. package/dist/hub/member/exposure-api.js.map +1 -1
  258. package/dist/hub/member/exposures.d.ts +4 -0
  259. package/dist/hub/member/exposures.js +20 -0
  260. package/dist/hub/member/exposures.js.map +1 -1
  261. package/dist/hub/member/pairing-api.js +3 -2
  262. package/dist/hub/member/pairing-api.js.map +1 -1
  263. package/dist/hub/member/recommendations.d.ts +37 -0
  264. package/dist/hub/member/recommendations.js +129 -0
  265. package/dist/hub/member/recommendations.js.map +1 -0
  266. package/dist/hub/member/room-ask.d.ts +65 -5
  267. package/dist/hub/member/room-ask.js +269 -24
  268. package/dist/hub/member/room-ask.js.map +1 -1
  269. package/dist/hub/member/room-mention-feedback.d.ts +44 -0
  270. package/dist/hub/member/room-mention-feedback.js +121 -0
  271. package/dist/hub/member/room-mention-feedback.js.map +1 -0
  272. package/dist/hub/member/room-notification.d.ts +9 -0
  273. package/dist/hub/member/room-notification.js +2 -0
  274. package/dist/hub/member/room-notification.js.map +1 -0
  275. package/dist/hub/member/room-post-answers.d.ts +46 -0
  276. package/dist/hub/member/room-post-answers.js +152 -0
  277. package/dist/hub/member/room-post-answers.js.map +1 -0
  278. package/dist/hub/member/room-post-receipt.d.ts +21 -0
  279. package/dist/hub/member/room-post-receipt.js +49 -0
  280. package/dist/hub/member/room-post-receipt.js.map +1 -0
  281. package/dist/hub/member/room-post.d.ts +103 -0
  282. package/dist/hub/member/room-post.js +231 -0
  283. package/dist/hub/member/room-post.js.map +1 -0
  284. package/dist/hub/member/updates.d.ts +92 -0
  285. package/dist/hub/member/updates.js +316 -0
  286. package/dist/hub/member/updates.js.map +1 -0
  287. package/dist/hub/pairing.d.ts +15 -1
  288. package/dist/hub/pairing.js +33 -2
  289. package/dist/hub/pairing.js.map +1 -1
  290. package/dist/hub/person-prefs.d.ts +22 -0
  291. package/dist/hub/person-prefs.js +34 -0
  292. package/dist/hub/person-prefs.js.map +1 -0
  293. package/dist/hub/personal/owner-host.d.ts +140 -0
  294. package/dist/hub/personal/owner-host.js +287 -0
  295. package/dist/hub/personal/owner-host.js.map +1 -0
  296. package/dist/hub/personal/refusals.d.ts +11 -0
  297. package/dist/hub/personal/refusals.js +33 -0
  298. package/dist/hub/personal/refusals.js.map +1 -0
  299. package/dist/hub/personal/runtime-host.d.ts +26 -0
  300. package/dist/hub/personal/runtime-host.js +51 -0
  301. package/dist/hub/personal/runtime-host.js.map +1 -0
  302. package/dist/hub/personal/schema.d.ts +4 -0
  303. package/dist/hub/personal/schema.js +54 -0
  304. package/dist/hub/personal/schema.js.map +1 -0
  305. package/dist/hub/personal/turns.d.ts +39 -0
  306. package/dist/hub/personal/turns.js +221 -0
  307. package/dist/hub/personal/turns.js.map +1 -0
  308. package/dist/hub/personal/types.d.ts +42 -0
  309. package/dist/hub/personal/types.js +2 -0
  310. package/dist/hub/personal/types.js.map +1 -0
  311. package/dist/hub/policy.d.ts +1 -1
  312. package/dist/hub/policy.js +2 -0
  313. package/dist/hub/policy.js.map +1 -1
  314. package/dist/hub/protocol.d.ts +701 -1
  315. package/dist/hub/protocol.js +103 -14
  316. package/dist/hub/protocol.js.map +1 -1
  317. package/dist/hub/published-version.d.ts +3 -0
  318. package/dist/hub/published-version.js +35 -0
  319. package/dist/hub/published-version.js.map +1 -0
  320. package/dist/hub/quota.js +3 -1
  321. package/dist/hub/quota.js.map +1 -1
  322. package/dist/hub/recommendation-model.d.ts +36 -0
  323. package/dist/hub/recommendation-model.js +9 -0
  324. package/dist/hub/recommendation-model.js.map +1 -0
  325. package/dist/hub/recommendations.d.ts +58 -0
  326. package/dist/hub/recommendations.js +211 -0
  327. package/dist/hub/recommendations.js.map +1 -0
  328. package/dist/hub/representative.d.ts +5 -0
  329. package/dist/hub/representative.js +6 -1
  330. package/dist/hub/representative.js.map +1 -1
  331. package/dist/hub/roles/admin-control.d.ts +29 -0
  332. package/dist/hub/roles/admin-control.js +187 -0
  333. package/dist/hub/roles/admin-control.js.map +1 -0
  334. package/dist/hub/roles/admin-types.d.ts +72 -0
  335. package/dist/hub/roles/admin-types.js +2 -0
  336. package/dist/hub/roles/admin-types.js.map +1 -0
  337. package/dist/hub/roles/allowed-list-control.d.ts +34 -0
  338. package/dist/hub/roles/allowed-list-control.js +179 -0
  339. package/dist/hub/roles/allowed-list-control.js.map +1 -0
  340. package/dist/hub/roles/allowed-list.d.ts +8 -0
  341. package/dist/hub/roles/allowed-list.js +49 -0
  342. package/dist/hub/roles/allowed-list.js.map +1 -0
  343. package/dist/hub/roles/audit-details.d.ts +144 -0
  344. package/dist/hub/roles/audit-details.js +26 -0
  345. package/dist/hub/roles/audit-details.js.map +1 -0
  346. package/dist/hub/roles/authority.d.ts +12 -0
  347. package/dist/hub/roles/authority.js +39 -3
  348. package/dist/hub/roles/authority.js.map +1 -1
  349. package/dist/hub/roles/change.d.ts +3 -1
  350. package/dist/hub/roles/change.js +7 -2
  351. package/dist/hub/roles/change.js.map +1 -1
  352. package/dist/hub/roles/clock.d.ts +3 -0
  353. package/dist/hub/roles/clock.js +1 -1
  354. package/dist/hub/roles/clock.js.map +1 -1
  355. package/dist/hub/roles/convert.js +1 -1
  356. package/dist/hub/roles/convert.js.map +1 -1
  357. package/dist/hub/roles/cutover-inventory.d.ts +2 -0
  358. package/dist/hub/roles/cutover-inventory.js +8 -1
  359. package/dist/hub/roles/cutover-inventory.js.map +1 -1
  360. package/dist/hub/roles/cutover.d.ts +2 -2
  361. package/dist/hub/roles/cutover.js +3 -4
  362. package/dist/hub/roles/cutover.js.map +1 -1
  363. package/dist/hub/roles/delegation.d.ts +4 -1
  364. package/dist/hub/roles/delegation.js +7 -2
  365. package/dist/hub/roles/delegation.js.map +1 -1
  366. package/dist/hub/roles/evaluate.d.ts +2 -1
  367. package/dist/hub/roles/evaluate.js +14 -0
  368. package/dist/hub/roles/evaluate.js.map +1 -1
  369. package/dist/hub/roles/expiry-effects.d.ts +8 -0
  370. package/dist/hub/roles/expiry-effects.js +50 -0
  371. package/dist/hub/roles/expiry-effects.js.map +1 -0
  372. package/dist/hub/roles/migrations.d.ts +7 -0
  373. package/dist/hub/roles/migrations.js +44 -0
  374. package/dist/hub/roles/migrations.js.map +1 -0
  375. package/dist/hub/roles/model.d.ts +25 -0
  376. package/dist/hub/roles/model.js +9 -3
  377. package/dist/hub/roles/model.js.map +1 -1
  378. package/dist/hub/roles/overview.d.ts +8 -0
  379. package/dist/hub/roles/overview.js +15 -0
  380. package/dist/hub/roles/overview.js.map +1 -0
  381. package/dist/hub/roles/resource-effects.d.ts +17 -0
  382. package/dist/hub/roles/resource-effects.js +62 -0
  383. package/dist/hub/roles/resource-effects.js.map +1 -0
  384. package/dist/hub/roles/review.d.ts +16 -0
  385. package/dist/hub/roles/review.js +42 -0
  386. package/dist/hub/roles/review.js.map +1 -0
  387. package/dist/hub/roles/writer.d.ts +14 -3
  388. package/dist/hub/roles/writer.js +64 -16
  389. package/dist/hub/roles/writer.js.map +1 -1
  390. package/dist/hub/room-context-model.d.ts +43 -0
  391. package/dist/hub/room-context-model.js +12 -0
  392. package/dist/hub/room-context-model.js.map +1 -0
  393. package/dist/hub/room-mention-feedback-model.d.ts +12 -0
  394. package/dist/hub/room-mention-feedback-model.js +12 -0
  395. package/dist/hub/room-mention-feedback-model.js.map +1 -0
  396. package/dist/hub/rooms/agents.d.ts +44 -10
  397. package/dist/hub/rooms/agents.js +277 -30
  398. package/dist/hub/rooms/agents.js.map +1 -1
  399. package/dist/hub/rooms/assistant.d.ts +1 -6
  400. package/dist/hub/rooms/assistant.js +7 -2
  401. package/dist/hub/rooms/assistant.js.map +1 -1
  402. package/dist/hub/rooms/automation.d.ts +24 -0
  403. package/dist/hub/rooms/automation.js +66 -0
  404. package/dist/hub/rooms/automation.js.map +1 -0
  405. package/dist/hub/rooms/buttons.d.ts +85 -0
  406. package/dist/hub/rooms/buttons.js +62 -0
  407. package/dist/hub/rooms/buttons.js.map +1 -0
  408. package/dist/hub/rooms/context-cursor.d.ts +18 -0
  409. package/dist/hub/rooms/context-cursor.js +61 -0
  410. package/dist/hub/rooms/context-cursor.js.map +1 -0
  411. package/dist/hub/rooms/context.d.ts +1 -1
  412. package/dist/hub/rooms/context.js +4 -4
  413. package/dist/hub/rooms/context.js.map +1 -1
  414. package/dist/hub/rooms/direct-view.d.ts +6 -2
  415. package/dist/hub/rooms/direct-view.js +3 -3
  416. package/dist/hub/rooms/direct-view.js.map +1 -1
  417. package/dist/hub/rooms/mentions.d.ts +15 -0
  418. package/dist/hub/rooms/mentions.js +43 -0
  419. package/dist/hub/rooms/mentions.js.map +1 -0
  420. package/dist/hub/rooms/post-replies.d.ts +23 -0
  421. package/dist/hub/rooms/post-replies.js +114 -0
  422. package/dist/hub/rooms/post-replies.js.map +1 -0
  423. package/dist/hub/rooms/schema.d.ts +9 -0
  424. package/dist/hub/rooms/schema.js +43 -0
  425. package/dist/hub/rooms/schema.js.map +1 -1
  426. package/dist/hub/rooms/service.d.ts +163 -4
  427. package/dist/hub/rooms/service.js +795 -25
  428. package/dist/hub/rooms/service.js.map +1 -1
  429. package/dist/hub/rooms/types.d.ts +29 -3
  430. package/dist/hub/rooms.d.ts +12 -2
  431. package/dist/hub/rooms.js +88 -18
  432. package/dist/hub/rooms.js.map +1 -1
  433. package/dist/hub/runtime.d.ts +1 -1
  434. package/dist/hub/runtime.js +17 -4
  435. package/dist/hub/runtime.js.map +1 -1
  436. package/dist/hub/server.d.ts +8 -1
  437. package/dist/hub/server.js +93 -7
  438. package/dist/hub/server.js.map +1 -1
  439. package/dist/hub/session-directory-transition.d.ts +2 -1
  440. package/dist/hub/session-directory-transition.js +10 -3
  441. package/dist/hub/session-directory-transition.js.map +1 -1
  442. package/dist/hub/sessions.d.ts +1 -1
  443. package/dist/hub/sessions.js +26 -4
  444. package/dist/hub/sessions.js.map +1 -1
  445. package/dist/hub/settings-commit.d.ts +32 -1
  446. package/dist/hub/settings-commit.js +11 -4
  447. package/dist/hub/settings-commit.js.map +1 -1
  448. package/dist/hub/settings-directory-ca.js +1 -1
  449. package/dist/hub/settings-directory-ca.js.map +1 -1
  450. package/dist/hub/settings-directory-control.js +7 -7
  451. package/dist/hub/settings-directory-control.js.map +1 -1
  452. package/dist/hub/settings-directory-http.d.ts +2 -0
  453. package/dist/hub/settings-directory-http.js +21 -6
  454. package/dist/hub/settings-directory-http.js.map +1 -1
  455. package/dist/hub/settings-directory-proof.d.ts +5 -1
  456. package/dist/hub/settings-directory-proof.js +49 -10
  457. package/dist/hub/settings-directory-proof.js.map +1 -1
  458. package/dist/hub/settings-directory-recovery.js +2 -1
  459. package/dist/hub/settings-directory-recovery.js.map +1 -1
  460. package/dist/hub/settings-directory-save.d.ts +2 -0
  461. package/dist/hub/settings-directory-save.js +9 -6
  462. package/dist/hub/settings-directory-save.js.map +1 -1
  463. package/dist/hub/sharing.js +2 -2
  464. package/dist/hub/sharing.js.map +1 -1
  465. package/dist/hub/socket.d.ts +1 -0
  466. package/dist/hub/socket.js +39 -2
  467. package/dist/hub/socket.js.map +1 -1
  468. package/dist/hub/teams/index.d.ts +8 -3
  469. package/dist/hub/teams/index.js +106 -31
  470. package/dist/hub/teams/index.js.map +1 -1
  471. package/dist/hub/teams/store.d.ts +5 -1
  472. package/dist/hub/teams/store.js +25 -2
  473. package/dist/hub/teams/store.js.map +1 -1
  474. package/dist/hub/teams/types.d.ts +19 -2
  475. package/dist/hub/types.d.ts +159 -5
  476. package/dist/hub-classic-private.d.ts +19 -0
  477. package/dist/hub-classic-private.js +64 -0
  478. package/dist/hub-classic-private.js.map +1 -0
  479. package/dist/hub-contact-windows.d.ts +11 -0
  480. package/dist/hub-contact-windows.js +56 -0
  481. package/dist/hub-contact-windows.js.map +1 -0
  482. package/dist/hub-pairing-summary.d.ts +1 -1
  483. package/dist/hub-room-conversation.d.ts +14 -0
  484. package/dist/hub-room-conversation.js +60 -0
  485. package/dist/hub-room-conversation.js.map +1 -0
  486. package/dist/hub-update-notice.d.ts +12 -0
  487. package/dist/hub-update-notice.js +35 -0
  488. package/dist/hub-update-notice.js.map +1 -0
  489. package/dist/human-delivery-receipts.js +8 -0
  490. package/dist/human-delivery-receipts.js.map +1 -1
  491. package/dist/instance-config-impact.js +3 -0
  492. package/dist/instance-config-impact.js.map +1 -1
  493. package/dist/instructions.js +3 -0
  494. package/dist/instructions.js.map +1 -1
  495. package/dist/locale.js +137 -24
  496. package/dist/locale.js.map +1 -1
  497. package/dist/login-controller.d.ts +19 -2
  498. package/dist/login-controller.js +26 -8
  499. package/dist/login-controller.js.map +1 -1
  500. package/dist/native-mcp.js +7 -5
  501. package/dist/native-mcp.js.map +1 -1
  502. package/dist/native-model-catalog.d.ts +15 -0
  503. package/dist/native-model-catalog.js +43 -3
  504. package/dist/native-model-catalog.js.map +1 -1
  505. package/dist/native-pane-lifecycle.js +3 -2
  506. package/dist/native-pane-lifecycle.js.map +1 -1
  507. package/dist/native-pane-tools.js +3 -0
  508. package/dist/native-pane-tools.js.map +1 -1
  509. package/dist/office-share-page.js +1 -1
  510. package/dist/office-share-page.js.map +1 -1
  511. package/dist/outbound-handlers.d.ts +14 -4
  512. package/dist/outbound-handlers.js +54 -1
  513. package/dist/outbound-handlers.js.map +1 -1
  514. package/dist/outbound-schemas.d.ts +17 -0
  515. package/dist/outbound-schemas.js +14 -0
  516. package/dist/outbound-schemas.js.map +1 -1
  517. package/dist/pane-port.d.ts +2 -0
  518. package/dist/public-web-gateway.js +152 -4
  519. package/dist/public-web-gateway.js.map +1 -1
  520. package/dist/queued-handoffs.d.ts +16 -4
  521. package/dist/queued-handoffs.js +18 -1
  522. package/dist/queued-handoffs.js.map +1 -1
  523. package/dist/quickstart-api.d.ts +0 -1
  524. package/dist/quickstart-api.js +8 -1
  525. package/dist/quickstart-api.js.map +1 -1
  526. package/dist/reply-dedup.js +3 -1
  527. package/dist/reply-dedup.js.map +1 -1
  528. package/dist/reply-preview-files.d.ts +38 -0
  529. package/dist/reply-preview-files.js +142 -0
  530. package/dist/reply-preview-files.js.map +1 -0
  531. package/dist/reply-preview-spec.d.ts +18 -0
  532. package/dist/reply-preview-spec.js +27 -0
  533. package/dist/reply-preview-spec.js.map +1 -0
  534. package/dist/runtime-api.js +10 -2
  535. package/dist/runtime-api.js.map +1 -1
  536. package/dist/runtime-build-info.js +1 -0
  537. package/dist/runtime-build-info.js.map +1 -1
  538. package/dist/runtime-cli-install.js +13 -10
  539. package/dist/runtime-cli-install.js.map +1 -1
  540. package/dist/runtime-cli.js +31 -5
  541. package/dist/runtime-cli.js.map +1 -1
  542. package/dist/runtime-client-store.d.ts +5 -0
  543. package/dist/runtime-client-store.js +28 -0
  544. package/dist/runtime-client-store.js.map +1 -1
  545. package/dist/runtime-client.d.ts +4 -0
  546. package/dist/runtime-client.js +33 -10
  547. package/dist/runtime-client.js.map +1 -1
  548. package/dist/runtime-coordinator.d.ts +4 -2
  549. package/dist/runtime-coordinator.js +33 -6
  550. package/dist/runtime-coordinator.js.map +1 -1
  551. package/dist/runtime-install.d.ts +6 -1
  552. package/dist/runtime-install.js +12 -4
  553. package/dist/runtime-install.js.map +1 -1
  554. package/dist/runtime-pane-native.js +3 -1
  555. package/dist/runtime-pane-native.js.map +1 -1
  556. package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
  557. package/dist/runtime-personal-answer-only-probe.js +134 -0
  558. package/dist/runtime-personal-answer-only-probe.js.map +1 -0
  559. package/dist/runtime-personal-answer-only.d.ts +16 -0
  560. package/dist/runtime-personal-answer-only.js +54 -0
  561. package/dist/runtime-personal-answer-only.js.map +1 -0
  562. package/dist/runtime-personal-answer.d.ts +30 -0
  563. package/dist/runtime-personal-answer.js +124 -0
  564. package/dist/runtime-personal-answer.js.map +1 -0
  565. package/dist/runtime-personal-preflight.d.ts +8 -0
  566. package/dist/runtime-personal-preflight.js +103 -0
  567. package/dist/runtime-personal-preflight.js.map +1 -0
  568. package/dist/runtime-personal-profile.d.ts +40 -0
  569. package/dist/runtime-personal-profile.js +81 -0
  570. package/dist/runtime-personal-profile.js.map +1 -0
  571. package/dist/runtime-personal-protocol.d.ts +10 -0
  572. package/dist/runtime-personal-protocol.js +15 -0
  573. package/dist/runtime-personal-protocol.js.map +1 -0
  574. package/dist/runtime-personal-stage.d.ts +37 -0
  575. package/dist/runtime-personal-stage.js +167 -0
  576. package/dist/runtime-personal-stage.js.map +1 -0
  577. package/dist/runtime-protocol.d.ts +2 -0
  578. package/dist/settings-api.d.ts +15 -0
  579. package/dist/settings-api.js +210 -76
  580. package/dist/settings-api.js.map +1 -1
  581. package/dist/settings-change.js +32 -5
  582. package/dist/settings-change.js.map +1 -1
  583. package/dist/settings-effect.js +13 -2
  584. package/dist/settings-effect.js.map +1 -1
  585. package/dist/settings-http-confirmation.js +18 -44
  586. package/dist/settings-http-confirmation.js.map +1 -1
  587. package/dist/setup-form.js +10 -0
  588. package/dist/setup-form.js.map +1 -1
  589. package/dist/setup-i18n.js +2 -2
  590. package/dist/setup-i18n.js.map +1 -1
  591. package/dist/subagent-records.js +53 -11
  592. package/dist/subagent-records.js.map +1 -1
  593. package/dist/subagent-service.js +3 -1
  594. package/dist/subagent-service.js.map +1 -1
  595. package/dist/tmux-manager.d.ts +2 -0
  596. package/dist/tmux-manager.js +2 -0
  597. package/dist/tmux-manager.js.map +1 -1
  598. package/dist/tool-permissions.js +3 -0
  599. package/dist/tool-permissions.js.map +1 -1
  600. package/dist/tool-progress.d.ts +9 -0
  601. package/dist/tool-progress.js +141 -32
  602. package/dist/tool-progress.js.map +1 -1
  603. package/dist/transcript-needles.d.ts +4 -2
  604. package/dist/transcript-needles.js +35 -4
  605. package/dist/transcript-needles.js.map +1 -1
  606. package/dist/tunnel/lease.d.ts +14 -0
  607. package/dist/tunnel/lease.js +23 -0
  608. package/dist/tunnel/lease.js.map +1 -1
  609. package/dist/turn-reply-guard.d.ts +2 -2
  610. package/dist/turn-reply-guard.js +3 -3
  611. package/dist/turn-reply-guard.js.map +1 -1
  612. package/dist/types.d.ts +12 -2
  613. package/dist/ui/backend-signin.js +91 -22
  614. package/dist/ui/chat-activity-groups.js +41 -8
  615. package/dist/ui/chat-activity.js +5 -3
  616. package/dist/ui/chat-mentions.js +13 -0
  617. package/dist/ui/chat-msg-actions.js +3 -222
  618. package/dist/ui/chat-pins.js +106 -0
  619. package/dist/ui/chat-popout-header.js +2 -2
  620. package/dist/ui/chat-store.js +143 -7
  621. package/dist/ui/chat-tour.js +1 -1
  622. package/dist/ui/chat-workspace.js +3 -3
  623. package/dist/ui/fleet-canvas.js +14 -5
  624. package/dist/ui/fleet-office-carousel.d.ts +14 -0
  625. package/dist/ui/fleet-office-carousel.js +95 -0
  626. package/dist/ui/fleet-office-editor.js +6 -1
  627. package/dist/ui/fleet-office-model.js +2 -1
  628. package/dist/ui/fleet-office-skin.js +1 -1
  629. package/dist/ui/fleet-office-store.js +14 -2
  630. package/dist/ui/fleet-office-zones.js +50 -9
  631. package/dist/ui/fleet-office.js +203 -24
  632. package/dist/ui/fleet-tasks.js +1 -1
  633. package/dist/ui/host-install.js +5 -2
  634. package/dist/ui/hub-admin-overview.js +189 -0
  635. package/dist/ui/hub-admin-rooms.js +1 -1
  636. package/dist/ui/hub-agent-copy.js +6 -2
  637. package/dist/ui/hub-ai-apps-strings.js +6 -0
  638. package/dist/ui/hub-ai-apps.js +83 -0
  639. package/dist/ui/hub-chat-strings.js +7 -0
  640. package/dist/ui/hub-client.js +76 -5
  641. package/dist/ui/hub-directory-editor-strings.js +2 -2
  642. package/dist/ui/hub-directory-editor.js +1 -0
  643. package/dist/ui/hub-fleet-versions.js +393 -0
  644. package/dist/ui/hub-grant-picker.js +3 -37
  645. package/dist/ui/hub-group-policy.js +26 -13
  646. package/dist/ui/hub-group-strings.js +26 -17
  647. package/dist/ui/hub-join-steps.js +27 -15
  648. package/dist/ui/hub-owner-strings.js +2 -2
  649. package/dist/ui/hub-personal-agent-strings.js +246 -0
  650. package/dist/ui/hub-personal-agent.js +117 -0
  651. package/dist/ui/hub-policy-subjects.js +35 -0
  652. package/dist/ui/hub-quick-pairing.js +7 -2
  653. package/dist/ui/hub-role-audit.js +39 -0
  654. package/dist/ui/hub-role-forms.js +99 -0
  655. package/dist/ui/hub-role-notices.js +11 -0
  656. package/dist/ui/hub-role-view.js +86 -0
  657. package/dist/ui/hub-roles-strings.js +439 -0
  658. package/dist/ui/hub-roles.js +83 -0
  659. package/dist/ui/hub-room-agent-strings.js +28 -0
  660. package/dist/ui/hub-room-composer.js +19 -10
  661. package/dist/ui/hub-room-favorites.js +63 -5
  662. package/dist/ui/hub-room-list.js +4 -3
  663. package/dist/ui/hub-room-members-strings.js +2 -2
  664. package/dist/ui/hub-room-members.js +7 -4
  665. package/dist/ui/hub-room-notify.js +161 -0
  666. package/dist/ui/hub-room-search.js +126 -0
  667. package/dist/ui/hub-room-settings.js +6 -0
  668. package/dist/ui/hub-room-source-strings.js +17 -0
  669. package/dist/ui/hub-room-source.js +34 -0
  670. package/dist/ui/hub-room-strings.js +47 -1
  671. package/dist/ui/hub-room-thread.js +266 -41
  672. package/dist/ui/hub-room-unread.js +2 -1
  673. package/dist/ui/hub-strings.js +8 -0
  674. package/dist/ui/hub-subject-picker.js +58 -0
  675. package/dist/ui/hub-switcher.js +2 -2
  676. package/dist/ui/hub-teams-strings.js +10 -6
  677. package/dist/ui/hub-teams.js +56 -28
  678. package/dist/ui/hub-this-hub.js +2 -2
  679. package/dist/ui/hub-welcome.js +122 -75
  680. package/dist/ui/image-annotate.js +2 -283
  681. package/dist/ui/image-lightbox.js +2 -176
  682. package/dist/ui/image-zoom.js +2 -242
  683. package/dist/ui/model-picker.js +4 -1
  684. package/dist/ui/notice-hub-update.js +94 -0
  685. package/dist/ui/office-share-dialog.js +2 -2
  686. package/dist/ui/panel-chat.js +327 -28
  687. package/dist/ui/panel-details.js +3 -1
  688. package/dist/ui/panel-fleet.js +28 -7
  689. package/dist/ui/panel-hub.js +294 -99
  690. package/dist/ui/panel-log.js +4 -4
  691. package/dist/ui/panel-notices.js +3 -1
  692. package/dist/ui/panel-settings.js +45 -34
  693. package/dist/ui/preview-panel.js +3 -1
  694. package/dist/ui/reply-file-preview.js +64 -0
  695. package/dist/ui/runtime-commands.d.ts +2 -2
  696. package/dist/ui/runtime-commands.js +7 -4
  697. package/dist/ui/settings-access-overview.js +3 -3
  698. package/dist/ui/settings-appearance.js +7 -10
  699. package/dist/ui/settings-archive-files.js +109 -0
  700. package/dist/ui/settings-build-version.js +2 -2
  701. package/dist/ui/settings-catalog.js +22 -0
  702. package/dist/ui/settings-connector-strings.js +23 -0
  703. package/dist/ui/settings-connector.js +39 -0
  704. package/dist/ui/settings-guests-entries.js +16 -0
  705. package/dist/ui/settings-guests.js +57 -15
  706. package/dist/ui/settings-hub-connection.js +4 -5
  707. package/dist/ui/settings-hub-membership.js +6 -7
  708. package/dist/ui/settings-hub-section.js +2 -4
  709. package/dist/ui/settings-hub-setup.js +2 -1
  710. package/dist/ui/settings-hub-updates.js +67 -0
  711. package/dist/ui/settings-hub.js +30 -4
  712. package/dist/ui/settings-layout.js +10 -12
  713. package/dist/ui/settings-registry.js +18 -3
  714. package/dist/ui/settings-shared-strings.js +2 -0
  715. package/dist/ui/settings-strings.js +13 -2
  716. package/dist/ui/settings-update.js +11 -5
  717. package/dist/ui/settings-web-authority.js +7 -5
  718. package/dist/ui/shared/access-overview.css +1 -1
  719. package/dist/ui/shared/accounts-keepalive.css +1 -1
  720. package/dist/ui/shared/accounts.css +1 -1
  721. package/dist/ui/shared/agent-sheet.js +116 -0
  722. package/dist/ui/shared/agent-widget.js +1 -2
  723. package/dist/ui/shared/app-i18n.js +4 -0
  724. package/dist/ui/shared/app-nav.js +9 -5
  725. package/dist/ui/shared/app-prefs.js +9 -3
  726. package/dist/ui/shared/app-route.js +4 -2
  727. package/dist/ui/shared/app-shell.js +176 -21
  728. package/dist/ui/shared/app-store.js +1 -1
  729. package/dist/ui/shared/app-stream.js +6 -2
  730. package/dist/ui/shared/app-swipe.js +3 -1
  731. package/dist/ui/shared/app-themes.js +3 -5
  732. package/dist/ui/shared/app-update.js +90 -8
  733. package/dist/ui/shared/app.css +469 -203
  734. package/dist/ui/shared/app.js +1 -1
  735. package/dist/ui/shared/chat-composer.js +29 -5
  736. package/dist/ui/shared/chat-msg-actions.js +231 -0
  737. package/dist/ui/shared/chat-strings.js +19 -4
  738. package/dist/ui/shared/chat-thread.js +120 -17
  739. package/dist/ui/shared/chat-work-bar.css +118 -0
  740. package/dist/ui/shared/connector-prompt.d.ts +3 -0
  741. package/dist/ui/shared/connector-prompt.js +20 -0
  742. package/dist/ui/shared/hub-ai-apps.css +12 -0
  743. package/dist/ui/shared/hub-chat.css +58 -4
  744. package/dist/ui/shared/hub-groups.css +19 -15
  745. package/dist/ui/shared/hub-owner.css +118 -3
  746. package/dist/ui/shared/hub-roles.css +99 -0
  747. package/dist/ui/shared/hub-rooms-u2.css +34 -0
  748. package/dist/ui/shared/hub.css +23 -5
  749. package/dist/ui/shared/image-annotate.css +22 -3
  750. package/dist/ui/shared/image-annotate.js +415 -0
  751. package/dist/ui/shared/image-lightbox.js +218 -0
  752. package/dist/ui/shared/image-zoom.js +316 -0
  753. package/dist/ui/shared/instance-nav.js +120 -15
  754. package/dist/ui/shared/loading.css +1 -1
  755. package/dist/ui/shared/model-picker.css +32 -4
  756. package/dist/ui/shared/owner-css.js +1 -1
  757. package/dist/ui/shared/panel-view.js +7 -1
  758. package/dist/ui/shared/preview-panel-actions.js +1 -1
  759. package/dist/ui/shared/preview-panel.js +6 -2
  760. package/dist/ui/shared/reply-previews.css +4 -0
  761. package/dist/ui/shared/runtime-install.css +5 -0
  762. package/dist/ui/shared/settings-connector.css +7 -0
  763. package/dist/ui/shared/signin.js +27 -12
  764. package/dist/ui/shared/task-board.css +2 -2
  765. package/dist/ui/shared/theme.js +52 -0
  766. package/dist/ui/shared/tokens.css +27 -10
  767. package/dist/ui/shared/ui-icons.js +2 -0
  768. package/dist/ui/shared/ui-toast.js +4 -4
  769. package/dist/ui/shared/usage-dialog.js +113 -17
  770. package/dist/ui/shared/view-strings.js +26 -4
  771. package/dist/ui/shared/web-authorize.js +3 -3
  772. package/dist/ui/signin.html +4 -2
  773. package/dist/ui/structured-signin.js +64 -12
  774. package/dist/ui/web-terminal/terminal.css +1 -1
  775. package/dist/ui/workspace-panel.js +4 -3
  776. package/dist/update-dispatch.d.ts +8 -1
  777. package/dist/update-dispatch.js +16 -1
  778. package/dist/update-dispatch.js.map +1 -1
  779. package/dist/update-idle.d.ts +65 -0
  780. package/dist/update-idle.js +190 -0
  781. package/dist/update-idle.js.map +1 -0
  782. package/dist/update-launch.d.ts +1 -1
  783. package/dist/update-launch.js +9 -2
  784. package/dist/update-launch.js.map +1 -1
  785. package/dist/usage/i18n-keys.d.ts +1 -1
  786. package/dist/usage/i18n-keys.js +1 -1
  787. package/dist/usage/i18n-keys.js.map +1 -1
  788. package/dist/usage/profile-timeline.d.ts +2 -0
  789. package/dist/usage/profile-timeline.js +4 -0
  790. package/dist/usage/profile-timeline.js.map +1 -1
  791. package/dist/usage/providers.js +6 -6
  792. package/dist/usage/providers.js.map +1 -1
  793. package/dist/usage/quota-history.d.ts +1 -1
  794. package/dist/view-api.js +1 -1
  795. package/dist/view-api.js.map +1 -1
  796. package/dist/web-api.d.ts +9 -0
  797. package/dist/web-api.js +434 -188
  798. package/dist/web-api.js.map +1 -1
  799. package/dist/web-backend-login.d.ts +5 -1
  800. package/dist/web-backend-login.js +8 -2
  801. package/dist/web-backend-login.js.map +1 -1
  802. package/dist/web-chat-archive.d.ts +147 -0
  803. package/dist/web-chat-archive.js +530 -0
  804. package/dist/web-chat-archive.js.map +1 -0
  805. package/dist/web-chat-history.d.ts +76 -0
  806. package/dist/web-chat-history.js +145 -1
  807. package/dist/web-chat-history.js.map +1 -1
  808. package/dist/web-commands.d.ts +4 -3
  809. package/dist/web-commands.js +3 -2
  810. package/dist/web-commands.js.map +1 -1
  811. package/dist/web-guest-access.d.ts +3 -0
  812. package/dist/web-guest-access.js +6 -2
  813. package/dist/web-guest-access.js.map +1 -1
  814. package/dist/web-icons.js +3 -3
  815. package/dist/web-icons.js.map +1 -1
  816. package/dist/web-login.d.ts +7 -0
  817. package/dist/web-login.js +8 -1
  818. package/dist/web-login.js.map +1 -1
  819. package/dist/web-mentions.d.ts +2 -0
  820. package/dist/web-mentions.js +20 -0
  821. package/dist/web-mentions.js.map +1 -1
  822. package/dist/web-notices.d.ts +3 -0
  823. package/dist/web-notices.js +17 -2
  824. package/dist/web-notices.js.map +1 -1
  825. package/dist/web-office-store.d.ts +2 -0
  826. package/dist/web-office-store.js +15 -3
  827. package/dist/web-office-store.js.map +1 -1
  828. package/dist/web-pin-store.d.ts +58 -0
  829. package/dist/web-pin-store.js +170 -0
  830. package/dist/web-pin-store.js.map +1 -0
  831. package/dist/web-prefs.js +5 -1
  832. package/dist/web-prefs.js.map +1 -1
  833. package/dist/web-session-authorization.d.ts +24 -0
  834. package/dist/web-session-authorization.js +32 -0
  835. package/dist/web-session-authorization.js.map +1 -1
  836. package/dist/web-session.d.ts +6 -4
  837. package/dist/web-session.js +5 -3
  838. package/dist/web-session.js.map +1 -1
  839. package/dist/web-settings-patch.d.ts +24 -3
  840. package/dist/web-settings-patch.js +57 -1
  841. package/dist/web-settings-patch.js.map +1 -1
  842. package/dist/web-shell-routes.d.ts +1 -1
  843. package/dist/web-shell-routes.js +1 -1
  844. package/dist/web-shell-routes.js.map +1 -1
  845. package/dist/web-theme.js +2 -2
  846. package/dist/web-update.d.ts +15 -1
  847. package/dist/web-upload.d.ts +36 -0
  848. package/dist/web-upload.js +105 -5
  849. package/dist/web-upload.js.map +1 -1
  850. package/dist/windows-cli-api.d.ts +10 -7
  851. package/dist/windows-cli-api.js +13 -12
  852. package/dist/windows-cli-api.js.map +1 -1
  853. package/dist/windows-cli-worker.d.ts +10 -0
  854. package/dist/windows-cli-worker.js +109 -14
  855. package/dist/windows-cli-worker.js.map +1 -1
  856. package/dist/windows-cli.d.ts +10 -1
  857. package/dist/windows-cli.js +47 -13
  858. package/dist/windows-cli.js.map +1 -1
  859. package/package.json +1 -1
  860. package/templates/runtime-install/install.ps1 +24 -4
@@ -0,0 +1,316 @@
1
+ // #2333: zoom and pan for the chat image lightbox. The math is pure (a view box, the image's natural size, a scale and
2
+ // an offset) and unit-tested; `createZoom` applies it to one <img> in one stage as a CSSOM transform — translate then
3
+ // scale from the top-left corner, so the browser never re-decodes the picture, and no style attribute is written
4
+ // (#1300: the CSSOM is not governed by the page's style-src).
5
+ //
6
+ // Gestures: wheel and ctrl/⌘+wheel (a trackpad pinch arrives as ctrl+wheel) zoom around the cursor; once the image is
7
+ // larger than the view a plain wheel scrolls it instead, so a tall sheet reads like a page. A mouse click on the image
8
+ // toggles fit ↔ 100% at that point; a drag pans. Touch: two fingers pinch (and pan), one finger pans, a double tap
9
+ // toggles fit ↔ 100%. A gesture that moved is never also a click (the lightbox closes on a click on the dark area).
10
+ //
11
+ // M-3210 (the user, phone): one finger on a picture that fits (not zoomed in) swipes, as a phone's photo viewer does —
12
+ // sideways to the previous or next picture (`onSwipe(±1)`), up or down to close (`onDismiss`); the picture follows the
13
+ // finger, and a pull reports how far it went (`onPull(0…1)`: the lightbox fades its backdrop). A short, slow one springs
14
+ // back; past the first or the last picture (`canSwipe(±1)` false) it gives a little and springs back. A zoomed-in picture
15
+ // pans as before, a second finger turns a swipe into a pinch, and a mouse or a pen never swipes (the desk has ← → Esc).
16
+
17
+ /** The largest zoom: 8× the picture's own pixels. */
18
+ export const MAX_SCALE = 8;
19
+ /** One step of +/−, the keys or the toolbar. */
20
+ export const STEP = 1.25;
21
+ /** A pointer that moved less than this (CSS px) clicked or tapped; more, it dragged. */
22
+ export const SLOP = 4;
23
+ /** A swipe: sideways past this share of the view's width, or up/down past this share of its height — or a flick (faster
24
+ * than FLICK px/ms over more than FLICK_PX) — steps or closes; less springs back. */
25
+ export const SWIPE_X = 0.22, SWIPE_Y = 0.14, FLICK = 0.5, FLICK_PX = 30;
26
+ /** Two taps within this long and this close are a double tap. */
27
+ export const DOUBLE_TAP_MS = 300;
28
+ export const DOUBLE_TAP_PX = 24;
29
+
30
+ /** The whole picture in the view, never enlarged. view = { x, y, w, h } (stage coordinates); img = { w, h } natural. */
31
+ export function fitScale(view, img) {
32
+ return Math.min(1, view.w / img.w, view.h / img.h);
33
+ }
34
+ /** The picture's width across the view, never enlarged: a tall sheet then scrolls. */
35
+ export function fitWidthScale(view, img) {
36
+ return Math.min(1, view.w / img.w);
37
+ }
38
+ /** The scales a gesture may reach: down to fit (or 100%, for a picture smaller than the view), up to MAX_SCALE. */
39
+ export function scaleLimits(view, img) {
40
+ return { min: fitScale(view, img), max: Math.max(MAX_SCALE, fitScale(view, img)) };
41
+ }
42
+
43
+ /**
44
+ * Keep the picture in view: an axis it does not fill is centred; an axis it overflows has no gap at either edge.
45
+ * z = { s, tx, ty } (tx, ty: where the picture's top-left corner is, in stage coordinates). Returns a new z.
46
+ */
47
+ export function clampPan(z, view, img) {
48
+ const axis = (t, size, start, len) => size <= len ? start + (len - size) / 2 : Math.min(start, Math.max(start + len - size, t));
49
+ return { s: z.s, tx: axis(z.tx, img.w * z.s, view.x, view.w), ty: axis(z.ty, img.h * z.s, view.y, view.h) };
50
+ }
51
+
52
+ /** Scale to `s` (within the limits) keeping the picture point under (px, py) where it is. */
53
+ export function zoomAt(z, s, px, py, view, img) {
54
+ const { min, max } = scaleLimits(view, img);
55
+ const to = Math.min(max, Math.max(min, s));
56
+ const k = to / z.s;
57
+ return clampPan({ s: to, tx: px - (px - z.tx) * k, ty: py - (py - z.ty) * k }, view, img);
58
+ }
59
+
60
+ /** M-3267: the picture pixel under a stage point (the inverse of imageToStage), at any zoom and pan. */
61
+ export function stageToImage(z, x, y) {
62
+ return [(x - z.tx) / z.s, (y - z.ty) / z.s];
63
+ }
64
+ /** M-3267: where a picture pixel is on the stage. */
65
+ export function imageToStage(z, x, y) {
66
+ return [z.tx + x * z.s, z.ty + y * z.s];
67
+ }
68
+ /**
69
+ * M-3267: a two-finger pinch from `start` (the view when it began, fingers at p0 and p1) to fingers at q0 and q1: the
70
+ * scale grows as the fingers spread, and the picture point under their first midpoint follows their midpoint. Within
71
+ * the limits, and clamped like any pan.
72
+ */
73
+ export function pinchView(start, p0, p1, q0, q1, view, img) {
74
+ const d0 = Math.hypot(p1[0] - p0[0], p1[1] - p0[1]), d1 = Math.hypot(q1[0] - q0[0], q1[1] - q0[1]);
75
+ const { min, max } = scaleLimits(view, img);
76
+ const s = Math.min(max, Math.max(min, d0 > 1 && d1 > 1 ? start.s * (d1 / d0) : start.s));
77
+ const [ix, iy] = stageToImage(start, (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2);
78
+ const mx = (q0[0] + q1[0]) / 2, my = (q0[1] + q1[1]) / 2;
79
+ return clampPan({ s, tx: mx - ix * s, ty: my - iy * s }, view, img);
80
+ }
81
+
82
+ /** Fit: the whole picture, centred. */
83
+ export function fitView(view, img) {
84
+ return clampPan({ s: fitScale(view, img), tx: 0, ty: 0 }, view, img);
85
+ }
86
+ /** Fit width: the picture across the view, from its top. */
87
+ export function fitWidthView(view, img) {
88
+ return clampPan({ s: fitWidthScale(view, img), tx: 0, ty: view.y }, view, img);
89
+ }
90
+ /** Whether the picture is larger than the view on either axis (then a plain wheel scrolls it, and a drag pans it). */
91
+ export function overflows(z, view, img) {
92
+ return img.w * z.s > view.w + 0.5 || img.h * z.s > view.h + 0.5;
93
+ }
94
+
95
+ const now = () => (typeof performance !== "undefined" ? performance.now() : Date.now());
96
+ /** Wheel distance in CSS px (a line is 16, a page the view's height). */
97
+ function wheelPx(e, view) {
98
+ const unit = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? view.h : 1;
99
+ return { dx: (e.deltaX || 0) * unit, dy: (e.deltaY || 0) * unit };
100
+ }
101
+
102
+ /**
103
+ * Drive one picture in one stage. `onChange({ scale, fit, mode })` after every change (mode: "fit" | "width" | "free").
104
+ * Returns { reset, fit, fitWidth, actual, zoomBy, toggle, destroy }. Nothing happens until the picture has loaded.
105
+ */
106
+ export function createZoom({ stage, img, onChange, onSwipe = null, canSwipe = null, onDismiss = null, onPull = null }) {
107
+ let nat = null; // { w, h } once loaded
108
+ let z = { s: 1, tx: 0, ty: 0 };
109
+ let mode = "fit";
110
+ const pointers = new Map(); // pointerId → { x, y }
111
+ let gesture = null; // { kind: "drag" | "pinch" | "swipe" | "pull", ... }
112
+ let snapTimer = 0; // a swipe springing back (the picture eases to where it is)
113
+ let moved = false; // the gesture now ending moved: its click is not a click
114
+ let lastTap = null; // { t, x, y } of the last touch tap
115
+ let lastType = "mouse"; // the pointer type of the last press: a touch tap's click never toggles (double tap does);
116
+ // a mouse or a pen click does, and neither runs the double-tap logic
117
+
118
+ const view = () => {
119
+ const r = stage.getBoundingClientRect();
120
+ const cs = typeof getComputedStyle === "function" ? getComputedStyle(stage) : null;
121
+ const px = (k) => (cs ? parseFloat(cs[k]) || 0 : 0);
122
+ const x = px("paddingLeft"), y = px("paddingTop");
123
+ return { x, y, w: Math.max(1, r.width - x - px("paddingRight")), h: Math.max(1, r.height - y - px("paddingBottom")) };
124
+ };
125
+ const at = (e) => { const r = stage.getBoundingClientRect(); return { x: e.clientX - r.left, y: e.clientY - r.top }; };
126
+ // A pointer: where it is in the stage (zoom and pinch points) and on the screen (cx, cy: how far a finger went). M-3210:
127
+ // a drag, swipe or pull is measured on the screen — the stage itself moves while the next picture slides in (200 ms),
128
+ // and a second swipe started then was measured against the moving stage: a slow 35 px swipe read as 135 px and stepped.
129
+ const pt = (e) => ({ ...at(e), cx: e.clientX, cy: e.clientY });
130
+ const apply = () => {
131
+ img.style.transform = `translate(${z.tx}px, ${z.ty}px) scale(${z.s})`;
132
+ stage.classList.toggle("lb-zoomed", !!nat && overflows(z, view(), nat));
133
+ if (onChange) onChange({ scale: z.s, fit: nat ? fitScale(view(), nat) : 1, mode });
134
+ };
135
+ const set = (next, m = "free") => { if (!nat) return; z = next; mode = m; apply(); };
136
+ // A swipe in progress: the picture drawn dx/dy off where it is (z itself unchanged).
137
+ const drawOff = (dx, dy) => { img.style.transform = `translate(${z.tx + dx}px, ${z.ty + dy}px) scale(${z.s})`; };
138
+ const snapBack = () => {
139
+ img.classList.add("lb-snap");
140
+ apply();
141
+ if (onPull) onPull(0);
142
+ if (snapTimer && typeof clearTimeout === "function") clearTimeout(snapTimer);
143
+ snapTimer = typeof setTimeout === "function" ? setTimeout(() => { snapTimer = 0; img.classList.remove("lb-snap"); }, 220) : 0;
144
+ };
145
+
146
+ const api = {
147
+ /** A new picture (or the first): read its size and fit it. */
148
+ reset() {
149
+ nat = img.naturalWidth > 0 && img.naturalHeight > 0 ? { w: img.naturalWidth, h: img.naturalHeight } : null;
150
+ img.classList.toggle("lb-ready", !!nat);
151
+ img.classList.remove("lb-err");
152
+ if (nat) set(fitView(view(), nat), "fit");
153
+ },
154
+ fit() { if (nat) set(fitView(view(), nat), "fit"); },
155
+ fitWidth() { if (nat) set(fitWidthView(view(), nat), "width"); },
156
+ /** 100% at a point (default: the middle of the view). */
157
+ actual(px, py) {
158
+ if (!nat) return;
159
+ const v = view();
160
+ set(zoomAt(z, 1, px ?? v.x + v.w / 2, py ?? v.y + v.h / 2, v, nat));
161
+ },
162
+ zoomBy(factor, px, py) {
163
+ if (!nat) return;
164
+ const v = view();
165
+ set(zoomAt(z, z.s * factor, px ?? v.x + v.w / 2, py ?? v.y + v.h / 2, v, nat));
166
+ },
167
+ /** Fit ↔ 100%: anything but fit goes back to fit. */
168
+ toggle(px, py) {
169
+ if (!nat) return;
170
+ if (mode === "fit" && Math.abs(z.s - 1) > 1e-6) api.actual(px, py); else api.fit();
171
+ },
172
+ destroy() {
173
+ if (snapTimer && typeof clearTimeout === "function") clearTimeout(snapTimer);
174
+ stage.removeEventListener("wheel", onWheel);
175
+ stage.removeEventListener("pointerdown", onDown);
176
+ stage.removeEventListener("pointermove", onMove);
177
+ stage.removeEventListener("pointerup", onUp);
178
+ stage.removeEventListener("pointercancel", onUp);
179
+ stage.removeEventListener("click", onClick, true);
180
+ img.removeEventListener("load", api.reset);
181
+ img.removeEventListener("error", onError);
182
+ if (typeof window !== "undefined") window.removeEventListener("resize", onResize);
183
+ },
184
+ };
185
+
186
+ function onWheel(e) {
187
+ if (!nat) return;
188
+ e.preventDefault();
189
+ const v = view();
190
+ const { dx, dy } = wheelPx(e, v);
191
+ if (e.ctrlKey || e.metaKey || !overflows(z, v, nat)) {
192
+ const p = at(e);
193
+ // A pinch on a trackpad sends small ctrl+wheel steps; a wheel notch is ~100 px.
194
+ set(zoomAt(z, z.s * Math.exp(-dy * (e.ctrlKey ? 0.01 : 0.002)), p.x, p.y, v, nat));
195
+ } else {
196
+ // Shift+wheel on a mouse scrolls sideways.
197
+ const sx = e.shiftKey && !dx ? dy : dx, sy = e.shiftKey && !dx ? 0 : dy;
198
+ set(clampPan({ s: z.s, tx: z.tx - sx, ty: z.ty - sy }, v, nat), mode === "width" ? "width" : "free");
199
+ }
200
+ }
201
+ function onDown(e) {
202
+ if (!nat || (e.pointerType === "mouse" && e.button !== 0)) return;
203
+ lastType = e.pointerType || "mouse";
204
+ pointers.set(e.pointerId, pt(e));
205
+ // No pointer capture yet: it would retarget the click to the stage, and a click on the picture is not one on the
206
+ // dark area. Captured only once the pointer moves (capture()).
207
+ if (pointers.size === 1) { moved = false; gesture = { kind: "drag", from: pt(e), z0: z, t0: now(), swipes: e.pointerType === "touch" && !!(onSwipe || onDismiss) }; }
208
+ else if (pointers.size === 2) {
209
+ // A swipe that gets a second finger: a pinch, from where the picture is.
210
+ if (gesture && (gesture.kind === "swipe" || gesture.kind === "pull")) { apply(); if (onPull) onPull(0); }
211
+ const [a, b] = [...pointers.values()];
212
+ gesture = { kind: "pinch", d0: Math.hypot(b.x - a.x, b.y - a.y) || 1, m0: { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 }, z0: z };
213
+ moved = true; // two fingers: never a tap
214
+ for (const id of pointers.keys()) capture(id);
215
+ }
216
+ }
217
+ function onMove(e) {
218
+ if (!gesture || !pointers.has(e.pointerId)) return;
219
+ pointers.set(e.pointerId, pt(e));
220
+ const v = view();
221
+ if (gesture.kind === "pinch" && pointers.size >= 2) {
222
+ const [a, b] = [...pointers.values()];
223
+ const m = { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 };
224
+ const { z0, m0, d0 } = gesture;
225
+ const s = z0.s * (Math.hypot(b.x - a.x, b.y - a.y) / d0);
226
+ // The picture point under the fingers' first midpoint follows the midpoint (zoom and pan in one).
227
+ const zoomed = zoomAt(z0, s, m0.x, m0.y, v, nat);
228
+ set(clampPan({ s: zoomed.s, tx: zoomed.tx + (m.x - m0.x), ty: zoomed.ty + (m.y - m0.y) }, v, nat));
229
+ } else if (gesture.kind === "drag") {
230
+ const p = pointers.get(e.pointerId);
231
+ const dx = p.cx - gesture.from.cx, dy = p.cy - gesture.from.cy;
232
+ if (!moved && Math.hypot(dx, dy) < SLOP) return;
233
+ if (!moved) capture(e.pointerId);
234
+ moved = true;
235
+ if (overflows(gesture.z0, v, nat)) set(clampPan({ s: gesture.z0.s, tx: gesture.z0.tx + dx, ty: gesture.z0.ty + dy }, v, nat), mode === "width" ? "width" : "free");
236
+ else if (gesture.swipes) {
237
+ // A picture that fits, under a finger: its first clear direction decides — sideways steps, up or down closes.
238
+ gesture = { ...gesture, kind: Math.abs(dx) > Math.abs(dy) ? "swipe" : "pull" };
239
+ onMove(e);
240
+ }
241
+ } else if (gesture.kind === "swipe") {
242
+ const dx = pointers.get(e.pointerId).cx - gesture.from.cx;
243
+ const dir = dx < 0 ? 1 : -1; // to the left: the next picture
244
+ drawOff(onSwipe && (!canSwipe || canSwipe(dir)) ? dx : dx * 0.3, 0);
245
+ } else if (gesture.kind === "pull") {
246
+ const dy = pointers.get(e.pointerId).cy - gesture.from.cy;
247
+ drawOff(0, dy);
248
+ if (onPull) onPull(Math.min(1, Math.abs(dy) / (v.h * 0.5)));
249
+ }
250
+ }
251
+ function onUp(e) {
252
+ if (!pointers.has(e.pointerId)) return;
253
+ const p = pointers.get(e.pointerId);
254
+ pointers.delete(e.pointerId);
255
+ if (pointers.size === 1 && gesture && gesture.kind === "pinch") {
256
+ // One finger left after a pinch: it pans on from here.
257
+ const [rest] = [...pointers.values()];
258
+ gesture = { kind: "drag", from: rest, z0: z };
259
+ return;
260
+ }
261
+ if (pointers.size > 0) return;
262
+ if (gesture && (gesture.kind === "swipe" || gesture.kind === "pull")) {
263
+ if (e.type === "pointercancel") { gesture = null; snapBack(); return; } // the browser took the touch back
264
+ const g = gesture, v = view(), dt = Math.max(1, now() - g.t0);
265
+ const d = g.kind === "swipe" ? p.cx - g.from.cx : p.cy - g.from.cy, span = g.kind === "swipe" ? v.w * SWIPE_X : v.h * SWIPE_Y;
266
+ const far = Math.abs(d) > span || (Math.abs(d) > FLICK_PX && Math.abs(d) / dt > FLICK);
267
+ gesture = null;
268
+ const dir = d < 0 ? 1 : -1;
269
+ if (far && g.kind === "swipe" && onSwipe && (!canSwipe || canSwipe(dir))) { onSwipe(dir); return; }
270
+ if (far && g.kind === "pull" && onDismiss) { onDismiss(); return; }
271
+ snapBack();
272
+ return;
273
+ }
274
+ const tapped = !moved && gesture && gesture.kind === "drag";
275
+ gesture = null;
276
+ // Only a finger double-taps: a mouse or a pen clicks (onClick toggles), so a pen tap must not also count here.
277
+ if (!tapped || e.pointerType !== "touch") return;
278
+ // A touch tap: a second one soon and near is a double tap — fit ↔ 100% there.
279
+ const t = now();
280
+ if (lastTap && t - lastTap.t < DOUBLE_TAP_MS && Math.hypot(p.x - lastTap.x, p.y - lastTap.y) < DOUBLE_TAP_PX) {
281
+ lastTap = null;
282
+ moved = true; // its click neither closes nor toggles again
283
+ api.toggle(p.x, p.y);
284
+ } else lastTap = { t, x: p.x, y: p.y };
285
+ }
286
+ /** A drag or pinch keeps its pointers even off the stage. */
287
+ function capture(id) {
288
+ if (stage.setPointerCapture) { try { stage.setPointerCapture(id); } catch { /* already gone */ } }
289
+ }
290
+ // Capture phase: before the lightbox's own click (which closes on the dark area) can see it. A click that ended a
291
+ // drag or a double tap is swallowed; a mouse click on the picture toggles fit ↔ 100% there. A touch tap's click on
292
+ // the picture does nothing (a single tap waits for a double tap); on the dark area it still closes.
293
+ function onClick(e) {
294
+ if (moved) { moved = false; e.stopPropagation(); e.preventDefault(); return; }
295
+ if (e.target === img && nat && lastType !== "touch") {
296
+ const p = at(e);
297
+ e.stopPropagation();
298
+ api.toggle(p.x, p.y);
299
+ }
300
+ }
301
+ // A picture that does not load is shown as the browser shows a broken one, where the old lightbox put it.
302
+ const onError = () => { nat = null; img.classList.add("lb-err"); img.classList.remove("lb-ready"); if (onChange) onChange(null); };
303
+ const onResize = () => { if (!nat) return; if (mode === "fit") api.fit(); else if (mode === "width") api.fitWidth(); else set(clampPan(z, view(), nat)); };
304
+
305
+ stage.addEventListener("wheel", onWheel, { passive: false });
306
+ stage.addEventListener("pointerdown", onDown);
307
+ stage.addEventListener("pointermove", onMove);
308
+ stage.addEventListener("pointerup", onUp);
309
+ stage.addEventListener("pointercancel", onUp);
310
+ stage.addEventListener("click", onClick, true);
311
+ img.addEventListener("load", api.reset);
312
+ img.addEventListener("error", onError);
313
+ if (typeof window !== "undefined") window.addEventListener("resize", onResize);
314
+ if (img.complete) api.reset();
315
+ return api;
316
+ }
@@ -334,6 +334,49 @@ export function labelOf(it) {
334
334
  return d || nameOf(it);
335
335
  }
336
336
 
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)); }
349
+ function readSidebarDensity() {
350
+ return drawerLayout() ? (choiceOf("nav.densityPhone", PHONE_DENSITY_KEY) ?? "detailed") : (choiceOf("nav.density", DENSITY_KEY) ?? "compact");
351
+ }
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); };
356
+ export function setSidebarDensity(value) {
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" });
360
+ }
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 */ }
364
+
365
+ // M-3212 (the user, 11-16): the phone's drawer — 滿版, the screen's width (the default since M-3211), or 窄版, 300 px with
366
+ // the page beside it (as before). This browser's own choice (localStorage, not a synced pref: a phone and a tablet may
367
+ // want different ones); a desk never shows the drawer, so it changes nothing there. Another tab's change follows.
368
+ const PHONE_DRAWER_KEY = "agend_phone_drawer";
369
+ const readPhoneDrawer = () => (stored(PHONE_DRAWER_KEY) === "narrow" ? "narrow" : "full");
370
+ export const phoneDrawerStore = createStore({ value: readPhoneDrawer() });
371
+ export function setPhoneDrawer(value) {
372
+ const v = value === "narrow" ? "narrow" : "full";
373
+ phoneDrawerStore.set({ value: v });
374
+ try { if (v === "narrow") localStorage.setItem(PHONE_DRAWER_KEY, v); else localStorage.removeItem(PHONE_DRAWER_KEY); } catch { /* storage off: this page only */ }
375
+ }
376
+ if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
377
+ window.addEventListener("storage", (e) => { if (!e || e.key === PHONE_DRAWER_KEY || e.key === null) phoneDrawerStore.set({ value: readPhoneDrawer() }); });
378
+ }
379
+
337
380
  // ── #1722: both names — which one leads is a synced preference (#1665 "names.primary", default the nickname) ──
338
381
  const NAMES_KEY = "agend_names_primary";
339
382
  function readNamesPrimary() {
@@ -349,6 +392,18 @@ export function setNamesPrimary(value) {
349
392
  savePref("names.primary", primary);
350
393
  }
351
394
  onPrefsChanged((keys) => { if (keys.has("names.primary")) namesStore.set({ primary: readNamesPrimary() }); });
395
+ // One compact-name choice for both layouts. Unset preserves the existing leading-name behavior, including native rows.
396
+ function readCompactName() {
397
+ const p = prefInForce("nav.compactName"), value = p ? p.value : stored("agend_nav_compact_name");
398
+ return value === "nickname" || value === "instance" ? value : null;
399
+ }
400
+ export const compactNameStore = createStore({ value: readCompactName() });
401
+ export function setCompactName(value) {
402
+ const name = value === "instance" ? "instance" : "nickname";
403
+ compactNameStore.set({ value: name });
404
+ savePref("nav.compactName", name);
405
+ }
406
+ onPrefsChanged((keys) => { if (keys.has("nav.compactName")) compactNameStore.set({ value: readCompactName() }); });
352
407
  /**
353
408
  * An instance's two names as the web shows them: the one leading (`primary`) and the other (`secondary`), or "" when
354
409
  * there is no other — no nickname, or a nickname that is the instance name itself (one line).
@@ -418,6 +473,12 @@ export function InstanceAvatar({ it, state, cli = false }) {
418
473
  ? html`<span class="av-cli" aria-hidden="true" title=${backendLabel(it.backend)}>${CLI_MONOGRAM[it.backend] || "·"}</span>` : null}</span>`;
419
474
  }
420
475
 
476
+ function InstanceStatusDot({ state }) {
477
+ const [cls] = DOT[state] || DOT.stopped;
478
+ const label = dotLabel(state);
479
+ return html`<span class=${`inst-status dot ${cls}`} role="img" aria-label=${label} title=${label}></span>`;
480
+ }
481
+
421
482
  // ── The list ──
422
483
 
423
484
  const statusText = (facet) => (facet === "needs" ? t("app.needsYou") : facet === "starting" ? t("app.statusStarting") : facet === "working" ? t("app.statusWorking") : facet === "idle" ? t("app.statusIdle")
@@ -458,9 +519,22 @@ function byRecentReply(age) {
458
519
  const RECENT_GROUP = "\u0000recent";
459
520
 
460
521
  /** #2179: the sort button and its menu — how the list sorts, said on the button. */
461
- function SortMenu({ sort }) {
522
+ function SortMenu({ sort, phone = false }) {
462
523
  const [open, setOpen] = useState(false);
463
524
  const box = useRef(null);
525
+ const popup = useRef(null);
526
+ useLayoutEffect(() => {
527
+ if (!open || !popup.current || !window.innerHeight) return undefined;
528
+ const fit = () => {
529
+ const menu = popup.current;
530
+ if (!menu) return;
531
+ const clip = menu.closest(".side-section")?.getBoundingClientRect();
532
+ const bottom = Math.min(window.innerHeight, clip?.bottom ?? window.innerHeight);
533
+ menu.style.maxHeight = `${Math.max(0, bottom - menu.getBoundingClientRect().top - 8)}px`;
534
+ };
535
+ fit(); window.addEventListener("resize", fit); window.addEventListener("scroll", fit, true);
536
+ return () => { window.removeEventListener("resize", fit); window.removeEventListener("scroll", fit, true); };
537
+ }, [open]);
464
538
  useLayoutEffect(() => {
465
539
  if (!open) return undefined;
466
540
  const doc = box.current && box.current.ownerDocument;
@@ -472,18 +546,41 @@ function SortMenu({ sort }) {
472
546
  return () => { doc.removeEventListener("pointerdown", away, true); doc.removeEventListener("keydown", esc, true); };
473
547
  }, [open]);
474
548
  const recent = sort.mode === "recent";
549
+ // M-3164: the list's density, the same synced choice as Settings (nav.density, M-3129): either place changes it at once, for both.
550
+ // M-3252: the one for the layout in force (the drawer's on a phone, the sidebar's on a desktop).
551
+ const density = useStore(sidebarDensityStore).value;
552
+ const leadingName = useStore(namesStore).primary;
553
+ const compactName = useStore(compactNameStore).value ?? leadingName;
554
+ const drawer = useStore(phoneDrawerStore).value; // M-3212
555
+ const drawerRadio = (value, label) => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-drawer" value=${value}
556
+ checked=${drawer === value} onChange=${() => setPhoneDrawer(value)} /><span>${label}</span></label>`;
557
+ const densityRadio = (value, label) => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-density" value=${value}
558
+ checked=${density === value} onChange=${() => setSidebarDensity(value)} /><span>${label}</span></label>`;
475
559
  const radio = (group, value, label, hint) => html`<label class="nav-sort-opt"><input type="radio" name=${`nav-sort-${group}`} value=${value}
476
560
  checked=${sort[group] === value} onChange=${() => setNavSort({ [group]: value })} /><span>${label}${hint ? html`<span class="nav-sort-hint">${hint}</span>` : null}</span></label>`;
477
- return html`<div class="nav-sort" ref=${box}>
478
- <button type="button" class=${`chip-btn nav-sort-btn${recent ? " on" : ""}`} aria-haspopup="dialog" aria-expanded=${open ? "true" : "false"}
479
- title=${tn("sortTitle")} onClick=${() => setOpen(!open)}><${Icon} name="sort" size=${12} /><span>${tn(recent ? "sortRecent" : "sortCustom")}</span></button>
480
- ${open ? html`<div class="nav-sort-menu" role="dialog" aria-label=${tn("sortTitle")}>
561
+ // M-3212: `phone` — the same menu from an icon beside the phone drawer's filter (its list header, with the chip, is hidden there).
562
+ return html`<div class=${`nav-sort${phone ? " nav-sort-phone" : ""}`} ref=${box}>
563
+ ${phone ? html`<button type="button" class=${`icon-btn nav-sort-btn${recent ? " on" : ""}`} aria-haspopup="dialog" aria-expanded=${open ? "true" : "false"}
564
+ aria-label=${`${tn("sortTitle")}: ${tn(recent ? "sortRecent" : "sortCustom")}`} title=${tn("sortTitle")} onClick=${() => setOpen(!open)}><${Icon} name="sort" /></button>`
565
+ : html`<button type="button" class=${`chip-btn nav-sort-btn${recent ? " on" : ""}`} aria-haspopup="dialog" aria-expanded=${open ? "true" : "false"}
566
+ title=${tn("sortTitle")} onClick=${() => setOpen(!open)}><${Icon} name="sort" size=${12} /><span>${tn(recent ? "sortRecent" : "sortCustom")}</span></button>`}
567
+ ${open ? html`<div ref=${popup} class="nav-sort-menu" role="dialog" aria-label=${tn("sortTitle")}>
481
568
  <fieldset><legend>${tn("sortTitle")}</legend>
482
569
  ${radio("mode", "custom", tn("sortCustom"), tn("sortCustomHint"))}
483
570
  ${radio("mode", "recent", tn("sortRecent"), tn("sortRecentHint"))}</fieldset>
484
571
  <fieldset><legend>${tn("sortFavs")}</legend>
485
572
  ${radio("favs", "fixed", tn("sortFavsFixed"), "")}
486
573
  ${radio("favs", "recent", tn("sortFavsRecent"), "")}</fieldset>
574
+ <fieldset><legend>${tn("sortDisplay")}</legend>
575
+ ${densityRadio("detailed", tn("sortDisplayDetailed"))}
576
+ ${densityRadio("compact", tn("sortDisplayCompact"))}
577
+ <fieldset class="nav-sort-sub"><legend>${t("app.compactName")}</legend>
578
+ ${["nickname", "instance"].map(value => html`<label class="nav-sort-opt"><input type="radio" name="nav-sort-compact-name" value=${value}
579
+ checked=${compactName === value} onChange=${() => setCompactName(value)} /><span>${t(value === "nickname" ? "app.compactNickname" : "app.compactInstance")}</span></label>`)}</fieldset>
580
+ ${/* M-3212: a phone's only (app.css hides it from 900 px): the drawer's width, this browser's own. */ ""}
581
+ <fieldset class="nav-sort-sub nav-sort-drawer"><legend>${tn("sortPhoneDrawer")}</legend>
582
+ ${drawerRadio("full", tn("sortPhoneDrawerFull"))}
583
+ ${drawerRadio("narrow", tn("sortPhoneDrawerNarrow"))}</fieldset></fieldset>
487
584
  </div>` : null}
488
585
  </div>`;
489
586
  }
@@ -494,11 +591,13 @@ function SortMenu({ sort }) {
494
591
  * `exec` / `awaiting`: live state by name (empty for the anonymous reader). `onPick`: a row was clicked (the drawer
495
592
  * closes).
496
593
  */
497
- export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting = {}, viewOnly = false, onPick }) {
594
+ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting = {}, viewOnly = false, onPick, onNew = null }) {
498
595
  const nav = useStore(navStore);
499
596
  const workspace = useStore(appStore).chatWorkspace;
500
597
  const styledMenus = typeof getComputedStyle === "function" && getComputedStyle(document.documentElement).getPropertyValue?.("--agent-menu-version")?.trim() === "1";
501
598
  const names = useStore(namesStore); // #1722: which name leads
599
+ const compact = useStore(sidebarDensityStore).value === "compact";
600
+ const compactName = useStore(compactNameStore).value;
502
601
  useIdentityColors(); // #1958: repaint when the host's colour settings or the themes switch change
503
602
  const filterRef = useRef(null);
504
603
  const list = useRef(null);
@@ -639,8 +738,8 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
639
738
  const row = (name, g, i, count) => {
640
739
  const it = byName.get(name);
641
740
  // #1722: both names, the preferred one first; one line when there is no other.
642
- const preferred = namesOf(it, names.primary);
643
- const label = it.runtime === "windows" ? it.display_name || preferred.primary : preferred.primary;
741
+ const preferred = namesOf(it, compact && compactName ? compactName : names.primary);
742
+ const label = compact && compactName ? preferred.primary : it.runtime === "windows" ? it.display_name || preferred.primary : preferred.primary;
644
743
  const secondary = it.runtime === "windows" ? backendLabel(it.backend) : preferred.secondary;
645
744
  const facet = facetOf(name);
646
745
  const waiting = own(awaiting, name) ? awaiting[name] : null;
@@ -672,16 +771,18 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
672
771
  onSelect: () => { if (!shown.active && !favsSorted) { focusRow.current = name; moveFavorite(name, 1, known); } } },
673
772
  ] : []),
674
773
  ].filter(Boolean);
675
- return html`<li key=${name} data-agent-row=${name} class=${`v-li${two ? " two-line" : ""}`}><a class=${`inst v-inst${on ? " active" : ""}${starred ? " inst-favorite" : ""}${fade > 0 ? " replied" : ""}${mins != null && mins < 1 ? " just" : ""} ${identityClasses(id)}`}
774
+ return html`<li key=${name} data-agent-row=${name} class=${`v-li${!compact && two ? " two-line" : ""}`}><a class=${`inst v-inst${on ? " active" : ""}${starred ? " inst-favorite" : ""}${fade > 0 ? " replied" : ""}${mins != null && mins < 1 ? " just" : ""} ${identityClasses(id)}`}
676
775
  ref=${(el) => { paintIdentity(el, id); paintReply(el, fade); }} href=${rowPath(name)} title=${instanceTooltip(it)}
776
+ aria-label=${compact ? [...new Set([label, name, labelOf(it)])].join(" · ") : undefined}
677
777
  aria-current=${on ? "page" : undefined} onClick=${onPick} ...${dragProps({ type: "instance", name, group: g }, !fav)}>
678
- <${InstanceAvatar} it=${it} state=${dotState(it, own(exec, name) ? exec[name] : null, waiting)} cli=${true} />
778
+ ${compact ? html`<${InstanceStatusDot} state=${dotState(it, own(exec, name) ? exec[name] : null, waiting)} />`
779
+ : html`<${InstanceAvatar} it=${it} state=${dotState(it, own(exec, name) ? exec[name] : null, waiting)} cli=${true} />`}
679
780
  <span class="inst-text"><span class="inst-line"><span class="inst-name" title=${label}>${label}</span>
680
- <span class="v-meta">${it.runtime === "windows" ? "Windows" : it.context_pct != null ? `${Math.round(it.context_pct)}%` : ""}</span></span>
681
- ${two ? html`<span class="inst-line inst-line2"><span class="inst-alt" title=${secondary || undefined}>${secondary || ""}</span>
781
+ ${!compact ? html`<span class="v-meta">${it.runtime === "windows" ? "Windows" : it.context_pct != null ? `${Math.round(it.context_pct)}%` : ""}</span>` : null}</span>
782
+ ${two ? html`<span class="inst-line inst-line2">${!compact ? html`<span class="inst-alt" title=${secondary || undefined}>${secondary || ""}</span>` : null}
682
783
  ${mins != null ? html`<span class=${`inst-when${fade > 0 ? " fresh" : ""}`} title=${tn("replyTitle", { time: new Date(Date.parse(it.last_reply)).toLocaleString() })}>${replyText(mins)}</span>` : null}</span>` : null}
683
- ${it.machine_id ? html`<span class=${`inst-machine${it.machine_status !== "online" ? " offline" : ""}`} title=${tn("tooltipMachine",{value:machineName(it.machine_id,it.machine_name)})}><span class="inst-machine-name">${machineName(it.machine_id,it.machine_name)}</span>${it.machine_status !== "online" ? html`<span class="inst-machine-status">${tn(it.machine_status === "revoked" ? "machineRevoked" : "machineOffline")}</span>` : null}</span>` : null}
684
- ${facet === "needs" ? html`<span class="inst-sub"><span class="badge-await" title=${waiting || t("app.approxNote")}>${t("app.needsYou")}</span></span>` : null}
784
+ ${!compact && it.machine_id ? html`<span class=${`inst-machine${it.machine_status !== "online" ? " offline" : ""}`} title=${tn("tooltipMachine",{value:machineName(it.machine_id,it.machine_name)})}><span class="inst-machine-name">${machineName(it.machine_id,it.machine_name)}</span>${it.machine_status !== "online" ? html`<span class="inst-machine-status">${tn(it.machine_status === "revoked" ? "machineRevoked" : "machineOffline")}</span>` : null}</span>` : null}
785
+ ${!compact && facet === "needs" ? html`<span class="inst-sub"><span class="badge-await" title=${waiting || t("app.approxNote")}>${t("app.needsYou")}</span></span>` : null}
685
786
  <span class="sr-only">${tn("tooltipBackend", { value: backendLabel(it.backend) })}</span></span>
686
787
  </a>${menuItems.length ? html`<${Menu} cls=${`inst-workspace inst-row-menu agent-menu${starred ? " is-favorite" : ""}`} fit=${true} topLayer=${true}
687
788
  ownerKey=${name} label=${t("agentRow.actions", label)} items=${menuItems}
@@ -692,7 +793,7 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
692
793
  const facetSet = f.status.length > 0 || f.cli.length > 0;
693
794
  const stacked = (!viewOnly && facetOpen.status) || (facetOpen.cli && backends.length > 1);
694
795
  // The list scrolls; the filter under it stays in view (#999), so it sits outside the scrolling section.
695
- return html`<div class=${`view-roster inst-nav${editing && canStar ? " fav-editing" : ""}`}>
796
+ return html`<div class=${`view-roster inst-nav${compact ? " compact" : ""}${editing && canStar ? " fav-editing" : ""}`}>
696
797
  <div data-trust="navigation" class="side-section" id="instanceList" ref=${list}>
697
798
  <div class="inst-head"><h2 class="side-label">${tn("instancesLabel")}</h2>
698
799
  ${canStar && items.length ? html`<${SortMenu} sort=${nav.sort} />`
@@ -734,6 +835,10 @@ export function InstanceNav({ route, items, loaded = true, exec = {}, awaiting =
734
835
  ${f.q ? html`<button type="button" class="icon-btn v-filter-clear" aria-label=${tn("filterClear")} title=${tn("filterClear")}
735
836
  onClick=${() => { recordEdit(filterRef.current); setNavFilter({ q: "" }); filterRef.current && filterRef.current.focus(); }}><${Icon} name="close" size=${14} /></button>` : null}
736
837
  </label>
838
+ ${/* M-3212: 自訂 on a phone — beside the filter (app.css shows it in the phone drawer only). */ canStar && items.length ? html`<${SortMenu} sort=${nav.sort} phone=${true} />` : null}
839
+ ${/* M-3217 (the user, beta.6, a Fleet in a Hub): + on a phone is in the filter's own row (app.css shows it in the phone
840
+ drawer only). It was placed at a fixed height under the brand, so the Hub switch's row put it on top of the switch. */
841
+ onNew ? html`<button type="button" class="icon-btn v-filter-new" aria-label=${t("app.newAgent")} title=${t("app.newAgent")} onClick=${onNew}><${Icon} name="plus" /></button>` : null}
737
842
  <div class=${`nav-facets${stacked ? "" : " compact"}`}>
738
843
  <div class="nav-facet-groups">
739
844
  ${viewOnly ? null : chips("status", STATUS_FACETS, tn("filterStatus"), statusText)}
@@ -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); }
@@ -26,8 +26,36 @@
26
26
  .cmd-card.cmd-model .cmd-choice > .btn:first-child { flex: 1; min-width: 0; justify-content: flex-start; text-align: start; }
27
27
  .cmd-card.cmd-model .cmd-effort-go { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-2); white-space: nowrap; }
28
28
  .cmd-card .cmd-sub { display: flex; margin-bottom: var(--s-1); }
29
- /* The latest button lives in a dedicated dock row, clear of message text and the command/composer content. */
30
- .p-chat .jump-dock { position: static; height: auto; display: flex; justify-content: center; padding: var(--s-1); }
29
+ /* M-3115 (phone v2): 最新 is a small round button floating at the thread's bottom right, with its own shadow — not a
30
+ row of its own across the screen. Its words are its name; no count on it (the user: no unread counts for now). */
31
31
  .p-chat .jump-dock:empty { display: none; }
32
- .p-chat .jump-latest { position: static; transform: none; min-height: var(--tap); }
32
+ .p-chat .jump-latest { left: auto; right: var(--s-3); transform: none; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
33
+ .p-chat .jump-latest .jump-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
33
34
  }
35
+ /* M-3166 PR 3 (the user's OK of round 2): /model as a menu — under the model control on a desk, a bottom sheet on a phone.
36
+ One row per model (its name, one line, ✓ on the current one), "More models" in place, the effort as one segmented row. */
37
+ .model-menu { display: flex; flex-direction: column; gap: 2px; }
38
+ .model-menu-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-1) var(--s-2) var(--s-1) var(--s-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
39
+ .model-menu-row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
40
+ .model-menu-row:hover:not(:disabled), .model-menu-row:focus-visible { background: var(--surface-2); outline: none; }
41
+ .model-menu-row:disabled { opacity: 0.5; cursor: default; }
42
+ .model-menu-row > .icon { margin-inline-start: auto; flex: none; color: var(--accent); }
43
+ .model-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
44
+ .model-menu-text b { font-weight: var(--fw-semibold); }
45
+ .model-menu-text small { color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
46
+ .model-menu-more { display: flex; align-items: center; min-height: 40px; padding: var(--s-2) var(--s-3); border: 0; background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); text-align: start; cursor: pointer; }
47
+ .model-menu-label { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); border-top: 1px solid var(--border); margin-top: var(--s-1); }
48
+ .model-menu-seg { display: flex; gap: 2px; padding: 2px; margin: 0 var(--s-3) var(--s-2); border-radius: var(--r-md); background: var(--surface-2); }
49
+ .model-menu-seg button { flex: 1; min-height: 32px; border: 0; border-radius: calc(var(--r-md) - 2px); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
50
+ .model-menu-seg button.on { background: var(--surface); color: var(--text); font-weight: var(--fw-semibold); box-shadow: var(--shadow-1); }
51
+ .model-menu-loading { padding: var(--s-3); margin: 0; }
52
+ .model-menu-signin { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
53
+ .model-menu-scrim { position: fixed; inset: 0; z-index: 90; }
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), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
56
+ .model-menu-row { min-height: 56px; }
57
+ .model-menu-more { min-height: var(--tap); }
58
+ .model-menu-seg { margin: 0 0 var(--s-2); }
59
+ .model-menu-seg button { min-height: var(--tap); }
60
+ }
61
+ .model-menu-error { margin: 0; padding: var(--s-2) var(--s-3); }
@@ -42,7 +42,7 @@ export function ownerCssActive() { return active; }
42
42
 
43
43
  function eligiblePage() {
44
44
  const b = document.body && document.body.dataset;
45
- return !!b && b.mode === "full" && b.publicLink !== "1";
45
+ return !!b && b.mode === "full"; // M-3278 (decision 7933bf90): the public link's admin page too (the server marks a guest's off)
46
46
  }
47
47
  function wanted() {
48
48
  if (!eligiblePage() || safe || !active || ownerCssOffHere()) return false;