@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
@@ -21,6 +21,7 @@ import { confirmPlace, pendingView } from "./hub-confirm-place.js";
21
21
  import { hq } from "./hub-quick-strings.js";
22
22
  import { hp } from "./hub-pairing-progress-strings.js";
23
23
  import { hpf, pairingCodeState, pairingFailure } from "./hub-pairing-form-strings.js";
24
+ import { HubUpdateConsent } from "./settings-hub-updates.js";
24
25
 
25
26
  register("hubSharingFleet", {
26
27
  en: { hint: "To pause and resume without clearing the allow list, open this agent under My shared agents on the Hub. Turning Share off stops sharing." },
@@ -223,6 +224,8 @@ export function HubConnectCard({ embedded = false, onPairing, labels = {}, prefi
223
224
  ${p?.state === "paired" && client.pairingNotices?.().length ? html`<${PairingNotices} memberNotices=${client.pairingNotices()} memberOrigin=${safeWebOrigin(p)} />` : null}
224
225
  ${msg && waitingForPairing(msg, p) ? html`<p class=${msg.error ? "err" : "note"} role=${msg.error ? "alert" : "status"}>${msg.text}</p>` : null}
225
226
  ${p && p.state === "paired" ? html`<${HubExposures} key=${`${p.binding}|${p.hub.hubId}|${p.hub.fingerprint?.digest}|${safeWebOrigin(p)}`} client=${client} pairing=${p} />` : null}
227
+ ${/* M-3145 (versions spec §4.1): under Shared agents, the owner's switch for updates started by this Hub's administrator. */ ""}
228
+ ${p && p.state === "paired" ? html`<${HubUpdateConsent} client=${client} hubName=${p.hub.name || p.hub.memberOrigin || ""} />` : null}
226
229
  </${Frame}>`;
227
230
  }
228
231
 
@@ -234,6 +237,7 @@ export function HubConnectCard({ embedded = false, onPairing, labels = {}, prefi
234
237
  function HubExposures({ client, pairing }) {
235
238
  const store = useStore(appStore);
236
239
  const [rows, setRows] = useState(null);
240
+ const [contactChoices, setContactChoices] = useState({});
237
241
  const [readError, setReadError] = useState(false);
238
242
  const [busy, setBusy] = useState(null);
239
243
  const [msg, setMsg] = useState(null);
@@ -242,7 +246,8 @@ function HubExposures({ client, pairing }) {
242
246
  // rows it has on a failure instead of turning the list into an error.
243
247
  const load = (background = false) => {
244
248
  const n = ++seq.current; if (!background) setReadError(false);
245
- return client.exposures().then((r) => { if (live.current && n === seq.current) { setRows(r); setReadError(false); } },
249
+ return client.exposures().then((r) => { if (live.current && n === seq.current) { setRows(r); setReadError(false);
250
+ setContactChoices(current => Object.fromEntries(Object.entries(current).filter(([agent]) => !r.some(row => row.agent === agent && row.state === "published")))); } },
246
251
  () => { if (live.current && n === seq.current && !background) setReadError(true); });
247
252
  };
248
253
  useEffect(() => { live.current = true; load(); return () => { live.current = false; }; }, []);
@@ -256,11 +261,11 @@ function HubExposures({ client, pairing }) {
256
261
  if (!live.current || polling.current || busyRef.current) return;
257
262
  polling.current = true; load(true).finally(() => { polling.current = false; });
258
263
  }, [pairing]);
259
- const toggle = async (row, on) => {
264
+ const toggle = async (row, on, contactLimit = contactChoices[row.agent] ?? (row.contactLimit !== false)) => {
260
265
  if (busy) return;
261
266
  setBusy(row.agent); busyRef.current = row.agent; setMsg(null);
262
267
  try {
263
- const r = await client.setExposed(row.agent, on, row.revision, on ? AGENT_CHOICE : null);
268
+ const r = await client.setExposed(row.agent, on, row.revision, on ? { ...AGENT_CHOICE, contactLimit } : null);
264
269
  if (!live.current) return;
265
270
  if (!r.ok) { setMsg({ error: true, text: hw(PUBLISH_ERRORS[r.error] || "errUnsaved") }); if (r.error === "conflict") await load(); return; }
266
271
  if (!on && r.remote === "pending") setMsg({ error: false, text: hw("withdrawPending") });
@@ -284,16 +289,37 @@ function HubExposures({ client, pairing }) {
284
289
  return html`<div class="hub-exposures">
285
290
  <h4>${hw("sharedTitle")}</h4>
286
291
  <p class="note">${hw("agentLead")}</p>
292
+ <p class="note">${hw("classicRoomLead")}</p>
287
293
  <p class="note hub-sharing-hint">${t("hubSharingFleet.hint")}</p>
288
294
  ${readError ? html`<${ErrorState} message=${hw("errFailed")} onRetry=${load} />` : !rows ? html`<${Skeleton} variant="rows" lines=${3} />` : null}
295
+ ${rows?.some(row => row.contactLimitNotice) ? html`<div class="note hub-contact-notice" role="status">
296
+ <p>${hw("contactLimitNotice")}</p>
297
+ <button type="button" class="btn btn-sm" disabled=${busy !== null} onClick=${async () => {
298
+ setBusy("notice");
299
+ try { if (!(await client.acknowledgeContactLimitNotice())) throw Error(); await load(); }
300
+ catch { if (live.current) setMsg({ error: true, text: hw("errUnsaved") }); }
301
+ finally { if (live.current) setBusy(null); }
302
+ }}>${hw("contactNoticeDone")}</button>
303
+ </div>` : null}
289
304
  ${rows && !rows.length ? html`<p class="note">${hw("noAgents")}</p>` : null}
290
305
  ${rows && rows.length ? html`<ul class="hub-exposure-list">${rows.map((row) => html`<li key=${row.agent} class=${`hub-exposure${row.state === "published" ? " is-shared" : ""}`}>
291
306
  <label class="hub-exposure-main">
292
307
  <input class="s-ui-toggle" type="checkbox" role="switch" checked=${row.state === "published" && row.reason !== "hub_refused"} aria-label=${hw("share", row.display)}
293
308
  disabled=${busy !== null || !!row.pending || row.state === "frozen" || row.reason === "hub_refused" || (row.state !== "published" && !row.enforceable)}
294
309
  onChange=${(e) => toggle(row, e.target.checked)} />
295
- <span class="hub-exposure-name">${row.display}${row.display !== row.agent ? html` <small><code>${row.agent}</code></small>` : null}</span>
310
+ <span class="hub-exposure-name">${row.display}${row.kind==="classic-room"?html` <span class="tag">${hw("classicRoomTag")}</span>`:null}${row.display !== row.agent ? html` <small><code>${row.agent}</code></small>` : null}</span>
296
311
  </label>
312
+ <label class="check hub-contact-limit">
313
+ <input type="checkbox" checked=${contactChoices[row.agent] ?? (row.contactLimit !== false)}
314
+ disabled=${busy !== null || !!row.pending || row.state === "frozen" || row.reason === "hub_refused"}
315
+ onChange=${e => {
316
+ const on = e.target.checked;
317
+ if (row.state === "published") toggle(row, true, on);
318
+ else setContactChoices(current => ({ ...current, [row.agent]: on }));
319
+ }} />
320
+ <span>${hw("contactLimit")}</span>
321
+ </label>
322
+ <small class="note hub-contact-hint">${hw("contactLimitHint")}</small>
297
323
  ${row.pending ? html`<small class="hub-exposure-why hub-exposure-pending">${hw("waitingConfirm")}</small>`
298
324
  : row.state === "frozen" ? html`<small class="hub-exposure-why">${hw("frozen")}</small>`
299
325
  : !row.enforceable && row.state !== "published" ? html`<small class="hub-exposure-why">${hw(row.reason === "delivery_unavailable" ? "agentDeliveryUnavailable" : "agentNotShareable")}</small>`
@@ -44,13 +44,17 @@ register("settingsLayout", {
44
44
 
45
45
  register("settingsLayout", {
46
46
  en: {
47
- aiAccounts: "AI accounts and API keys", aiAccountsSummary: "AI accounts connected on the host and provider API keys, managed separately.",
47
+ lead_accounts: "Connect the AI accounts your agents run on, and keep the provider API keys, on the AgEnD host and paired computers.",
48
+ agentsAccountsNote: "Which AI account an agent uses is chosen in its settings; connect and manage accounts and API keys in",
49
+ agentsAccountsLink: "AI accounts & keys",
48
50
  aiHostScope: "Credentials on the AgEnD host and paired computers", aiAccountsHint: "Connected AI accounts are listed per computer: this AgEnD host, then each paired computer. Provider API keys belong to the host.", aiWindowsLink: "Manage Windows computers and their CLIs in Runtime",
49
51
  apiKeysTitle: "Provider API keys", apiKeysHint: "API credentials for supported provider integrations.", apiKeysUnavailableState: "Not offered", apiKeysUnavailable: "Provider API key management is not offered in this session.",
50
52
  apiNewPlaceholder: "Enter an API key to verify", apiReplacePlaceholder: "Enter a replacement API key",
51
53
  },
52
54
  "zh-TW": {
53
- aiAccounts: "AI 帳號與 API 金鑰", aiAccountsSummary: "分開管理主機上連接的 AI 帳號與供應商 API 金鑰。",
55
+ lead_accounts: "連接 Agent 使用的 AI 帳號,並管理供應商 API 金鑰;涵蓋 AgEnD 主機與已配對的電腦。",
56
+ agentsAccountsNote: "Agent 要用哪個 AI 帳號,在它自己的設定裡選;連接與管理帳號、API 金鑰請到",
57
+ agentsAccountsLink: "AI 帳號與金鑰",
54
58
  aiHostScope: "AgEnD 主機與已配對電腦上的憑證", aiAccountsHint: "連接的 AI 帳號依電腦列出:先是這台 AgEnD 主機,再來是每台已配對電腦。供應商 API 金鑰屬於主機。", aiWindowsLink: "前往 Runtime 管理 Windows 電腦與 CLI",
55
59
  apiKeysTitle: "供應商 API 金鑰", apiKeysHint: "供支援的供應商整合功能使用的 API 憑證。", apiKeysUnavailableState: "目前未提供", apiKeysUnavailable: "此工作階段未提供供應商 API 金鑰管理。",
56
60
  apiNewPlaceholder: "輸入要驗證的 API 金鑰", apiReplacePlaceholder: "輸入替換用的 API 金鑰",
@@ -173,9 +177,9 @@ register("settingsLayout", {
173
177
  "revDashboard_log": "Agent log tab",
174
178
  "revDashboardHint_log": "Show prompts, replies, tool steps and fleet events. Secrets are masked; public links can also see it. Enabling needs confirmation.",
175
179
  "revDashboard_thinking": "Show thinking (admin only, off by default)",
176
- "revDashboardHint_thinking": "Add the model's thinking to an agent's chat activity block and the Log. Only a signed-in admin receives it; never the public link or a guest. Also asks Claude Code to write thinking summaries, which can change what a turn costs.",
180
+ "revDashboardHint_thinking": "Add the model's thinking to an agent's chat activity block and the Log. Only a signed-in admin receives it (over the public link too); never a guest. Also asks Claude Code to write thinking summaries, which can change what a turn costs.",
177
181
  "revDashboard_usagePub": "Usage over the public link",
178
- "revDashboardHint_usagePub": "Offer the fleet usage report over the temporary public link. Guests never see it.",
182
+ "revDashboardHint_usagePub": "Offer the fleet usage report to an admin over the public link (on by default). Guests never see it.",
179
183
  "revDashboard_levels": "Office levels",
180
184
  "revDashboardHint_levels": "Show each agent's lifetime work level on its Office name tag and profile.",
181
185
  "revDashboard_cdn": "CDN libraries in HTML previews",
@@ -184,9 +188,6 @@ register("settingsLayout", {
184
188
  "revAccessPolicy": "Loosening access needs fleet administrator confirmation. Tightening applies at once.",
185
189
  "revLoginSessions": "Sign-in sessions",
186
190
  "revSessionDetails": "Session rules and notifications",
187
- "revRelatedAccess": "Other access settings",
188
- "revRelatedGuests": "Choose who can sign in and which agents they see.",
189
- "revRelatedSharing": "Manage the public entry and read-only shared links.",
190
191
  "revPublicEntry": "Fleet public entry",
191
192
  "revReadOnlySharing": "Time-limited read-only sharing",
192
193
  "revSharingOrigin": "Create new shares from the Office or an HTML preview. Manage existing links below.",
@@ -213,9 +214,9 @@ register("settingsLayout", {
213
214
  "revDashboard_log": "Agent 紀錄分頁",
214
215
  "revDashboardHint_log": "顯示提示、回覆、工具步驟與 Fleet 事件;機密值會遮蔽,公開連結也看得到。開啟需確認。",
215
216
  "revDashboard_thinking": "顯示思考(僅 admin,預設關閉)",
216
- "revDashboardHint_thinking": "把模型的思考加進 Agent 聊天裡的活動區塊與紀錄分頁;只有登入的 admin 會收到,公開連結和訪客一律不會。同時會請 Claude Code 寫出思考摘要,這可能改變每一輪的花費。",
217
+ "revDashboardHint_thinking": "把模型的思考加進 Agent 聊天裡的活動區塊與紀錄分頁;只有登入的 admin 會收到(透過公開連結也一樣),訪客一律不會。同時會請 Claude Code 寫出思考摘要,這可能改變每一輪的花費。",
217
218
  "revDashboard_usagePub": "公開連結提供用量報告",
218
- "revDashboardHint_usagePub": "透過臨時公開連結提供 Fleet 用量報告;訪客一律看不到。",
219
+ "revDashboardHint_usagePub": "透過公開連結提供 Fleet 用量報告給管理員(預設開啟);訪客一律看不到。",
219
220
  "revDashboard_levels": "辦公室等級",
220
221
  "revDashboardHint_levels": "在辦公室名牌與名片上顯示 Agent 依終身工作量得到的等級。",
221
222
  "revDashboard_cdn": "HTML 預覽載入 CDN 函式庫",
@@ -224,9 +225,6 @@ register("settingsLayout", {
224
225
  "revAccessPolicy": "放寬存取需要 Fleet 管理員確認;收緊的變更立即生效。",
225
226
  "revLoginSessions": "登入工作階段",
226
227
  "revSessionDetails": "工作階段與通知規則",
227
- "revRelatedAccess": "其他存取設定",
228
- "revRelatedGuests": "管理可登入的訪客與可見 Agent。",
229
- "revRelatedSharing": "管理公開入口與唯讀分享連結。",
230
228
  "revPublicEntry": "Fleet 公開入口",
231
229
  "revReadOnlySharing": "限時唯讀分享",
232
230
  "revSharingOrigin": "新分享請從辦公室或 HTML 預覽建立;在下方管理既有連結。",
@@ -11,9 +11,13 @@ import "./settings-revoke-strings.js"; // settings.vaRevokeOthers, the revoke
11
11
  import "./settings-public-session-strings.js"; // #3708: publicSessionAbsolute / publicSessionIdle (a file of its own)
12
12
  import "./settings-access-strings.js"; // …and this one (webLoginQr), added by Access & security (#3061)
13
13
  import "/assets/chat-strings.js";
14
- import { GUESTS_SETTINGS } from "./settings-guests.js";
14
+ import { GUESTS_SETTINGS } from "./settings-guests-entries.js";
15
+ import { CLI_CAPS } from "./cli-caps.js";
15
16
 
16
17
  const L = (en, zh) => ({ en, "zh-TW": zh });
18
+ // The CLIs' names as search words for the AI accounts (AGEND-288), from the registry-generated cli-caps.js — not a list written out here:
19
+ // each id ("claude-code") and its first word ("claude").
20
+ const CLI_WORDS = Object.keys(CLI_CAPS).flatMap((id) => [id, id.split("-")[0]]);
17
21
  /** [id, section, target, labelKey | label, config key, words en, words zh] */
18
22
  const ROWS = [
19
23
  ["general.location", "agent-defaults", "#general-location", null, null, ["general", "windows", "paired PC", "host", "location"], ["General", "Windows", "電腦", "主機", "執行位置"], L("Run General on", "General 執行位置")],
@@ -26,6 +30,8 @@ const ROWS = [
26
30
  ["profile.name", "preferences", "#profile-name", "settings.profileTitle", null, ["name", "display name", "who agents see", "profile"], ["名字", "名稱", "顯示名稱", "個人資料"]],
27
31
  ["prefs.theme", "look", "#pref-theme", "app.theme", null, ["theme", "dark", "light", "dark mode", "colour scheme"], ["主題", "深色", "淺色", "外觀"]],
28
32
  ["prefs.lang", "preferences", "#pref-lang", "app.language", null, ["language", "dashboard language", "english", "chinese", "locale"], ["語言", "介面語言", "中文", "英文"]],
33
+ ["prefs.density", "preferences", "#pref-density", "app.sidebarDensity", null, ["sidebar", "compact", "detailed", "density", "agent list"], ["側邊欄", "精簡", "詳細", "密度", "Agent 清單"]],
34
+ ["prefs.compactName", "preferences", "#pref-compact-name", "app.compactName", null, ["compact", "display name", "instance name"], ["精簡", "暱稱", "實際名稱"]],
29
35
  ["prefs.names", "preferences", "#pref-names", "app.names", null, ["names", "nickname", "real name", "instance name", "display"], ["名稱", "暱稱", "實名"]],
30
36
  ["prefs.previews", "preferences", "#pref-previews", "chat.previews", null, ["html preview", "preview", "iframe"], ["預覽", "HTML 預覽"]],
31
37
  ["prefs.tour", "preferences", "#tourBtn", "chat.tour", null, ["tour", "help", "walkthrough", "guide"], ["導覽", "說明", "教學"]],
@@ -43,7 +49,14 @@ const ROWS = [
43
49
  ["look.restore", "look", ".s-restore", "settings.restoreTitle", null, ["restore defaults", "reset", "default"], ["還原預設值", "重設", "預設"]],
44
50
  // Fleet · Agents
45
51
  ["agents.new", "agents", "#newAgentBtn", "settings.newAgent", null, ["new agent", "create", "add agent", "instance"], ["新增 agent", "建立", "新 agent"]],
46
- ["agents.provider-keys", "agents", ".s-provider-keys", "settings.providerKeys", "web.provider_secrets", ["api key", "provider", "openai", "anthropic", "token", "secret"], ["API 金鑰", "金鑰", "供應商", "token"]],
52
+ ["agents.provider-keys", "accounts", ".s-provider-keys, .s-api-unavailable", "settings.providerKeys", "web.provider_secrets", ["api key", "provider", "openai", "anthropic", "token", "secret"], ["API 金鑰", "金鑰", "供應商", "token"]],
53
+ // AGEND-288: the AI accounts have their own section, and are found by the words people use for them ("account", "帳號", a CLI's
54
+ // name) — before this, only the provider API keys were registered, and "帳號" found Hub's company account instead. The
55
+ // target is the Accounts group (always drawn, whatever the host's CLIs report); the rows below it come and go with the data.
56
+ ["accounts.ai-accounts", "accounts", ".s-accounts", null, null, ["account", "accounts", "ai account", "ai accounts", "connect", "connect account", "sign in", "login", "cli login", "credential", "credential profile", "claude code", ...CLI_WORDS], ["AI 帳號", "帳號", "連接帳號", "連線", "登入", "CLI 登入", "憑證", "Claude", "Codex"], L("AI accounts", "AI 帳號")],
57
+ ["accounts.add", "accounts", ".s-accounts", null, null, ["add account", "new account", "another account", "named account", "credential profile", "second account"], ["新增帳號", "新帳號", "另一個帳號", "命名帳號", "多個帳號"], L("Add an account", "新增帳號")],
58
+ ["accounts.default", "accounts", ".s-accounts", null, "defaults.backend_options", ["default account", "fleet default", "which account", "move agents", "switch account", "default connection"], ["預設帳號", "預設連線", "切換帳號", "移動 Agent", "哪個帳號"], L("Default account", "預設帳號")],
59
+ ["accounts.keepalive", "accounts", ".s-accounts", null, null, ["keep alive", "keep connection alive", "keepalive", "stay signed in", "session expires", "refresh login"], ["保持連線", "保活", "保持登入", "登入過期"], L("Keep connection alive", "保持連線")],
47
60
  // M-2255: the two switches (fleet.yaml runtimes.*).
48
61
  ["runtimes.windows-cli", "runtimes", "#runtimeWindowsCli", null, "runtimes.windows_cli", ["windows cli", "this pc", "local windows", "AGEND_WINDOWS_CLI", "codex", "claude code"], ["Windows CLI", "這台電腦", "本機"], L("Use this PC's Windows CLIs", "使用這台電腦 Windows 上的 CLI")],
49
62
  ["runtimes.remote-runtime", "runtimes", "#runtimeRemoteRuntime", null, "runtimes.remote_runtime", ["pair", "remote", "other computer", "AGEND_REMOTE_RUNTIME", "tailscale", "ssh"], ["配對", "遠端", "其他電腦"], L("Allow other Windows PCs to pair", "允許其他 Windows 電腦配對")],
@@ -91,6 +104,8 @@ const ROWS = [
91
104
  ["dash.preview-cdn", "web-dashboard", "#webPreviewCdn", "settings.webPreviewCdn", "web.preview_cdn", ["cdn", "libraries", "html preview", "chart", "jsdelivr", "cdnjs"], ["CDN", "函式庫", "HTML 預覽", "圖表"]],
92
105
  ["dash.office-levels", "web-dashboard", "#webOfficeLevels", "settings.webOfficeLevels", "web.office_levels", ["office", "level", "badge", "profile card"], ["辦公室", "等級", "徽章", "名片"]],
93
106
  ["dash.office-level-titles", "web-dashboard", ".s-level-titles", "settings.levelTitlesTitle", null, ["office", "level titles", "rank", "title", "badge"], ["辦公室", "等級頭銜", "頭銜", "稱號", "階級"]],
107
+ // M-3281: the archived chat files' size limit (settings-archive-files.js; its card is drawn before its field loads).
108
+ ["dash.archive-files", "web-dashboard", "#webArchiveFiles", null, null, ["archive", "archived files", "chat files", "pictures", "disk", "storage", "size limit", "files_max_gb"], ["封存", "封存檔案", "聊天檔案", "圖片", "磁碟", "空間", "大小上限"], L("Archived chat files", "封存的聊天檔案")],
94
109
  ["dash.app-icon", "web-dashboard", ".s-app-icon", "settings.appIconTitle", null, ["app icon", "favicon", "home screen", "icon"], ["App 圖示", "圖示", "主畫面"]],
95
110
  ["dash.card-limits", "web-dashboard", ".s-card-limits", "settings.cardLimitsTitle", "web.appearance", ["upload limits", "portrait", "banner", "card limits"], ["上傳限制", "身分卡上傳限制"]],
96
111
  // Fleet · Access & security
@@ -125,7 +140,7 @@ const ROWS = [
125
140
  export const SETTINGS_REGISTRY = Object.freeze([
126
141
  ...ROWS.map(([id, section, target, labelKey, key, en, zh, label]) => Object.freeze({ id, section, target, labelKey, label: label || null, key, words: { en, "zh-TW": zh } })),
127
142
  // dev-claude2's Guests section (#2348): its entries, brought to the same shape (the card itself is the target).
128
- ...GUESTS_SETTINGS.map((g) => Object.freeze({ id: g.id, section: g.section, target: g.id === "guests.enabled" ? "#guestsEnabled" : g.id === "guests.chat" ? "#guestsChat" : "#guests",
143
+ ...GUESTS_SETTINGS.map((g) => Object.freeze({ id: g.id, section: g.section, target: g.target || (g.id === "guests.enabled" ? "#guestsEnabled" : g.id === "guests.chat" ? "#guestsChat" : "#guests"),
129
144
  labelKey: null, label: g.label, key: g.key || null, words: g.words })),
130
145
  ]);
131
146
 
@@ -26,6 +26,7 @@ register("settings", {
26
26
  crossInstanceVisibility: "Bot-to-bot messages in topics",
27
27
  crossInstanceVisibilityHint: "How much of a message from one agent to another is shown in this agent's topic: all of it, one line, or nothing. Messages are always delivered; the Mirror Topic still shows them.",
28
28
  "sec_agent-defaults": "Shared agent settings",
29
+ sec_accounts: "AI accounts & keys", // AGEND-288: its own section (it was a drawer under Agents)
29
30
  updateDefaults: "Update shared agent settings",
30
31
  devFormsUnsaved: "Save or discard the unsaved changes to agents, shared agent settings or connections first: this editor writes the same settings.",
31
32
  help4: "General: shared agent settings and ClassicBot defaults. Web: the dashboard's sign-in sessions, browser terminal, web echo, Log and public link. Review changes stages them.",
@@ -97,6 +98,7 @@ register("settings", {
97
98
  crossInstanceVisibility: "Agent 之間的訊息",
98
99
  crossInstanceVisibilityHint: "Agent 傳給 Agent 的訊息,要在這個 Agent 的主題裡顯示多少:完整、一行摘要,或不顯示。訊息一律照常送達,鏡像主題也照常顯示。",
99
100
  "sec_agent-defaults": "Agent 共用設定",
101
+ sec_accounts: "AI 帳號與金鑰",
100
102
  updateDefaults: "更新 Agent 共用設定",
101
103
  devFormsUnsaved: "請先儲存或捨棄 Agent、Agent 共用設定或連線中未儲存的變更:這個編輯器會寫入相同的設定。",
102
104
  help4: "一般:Agent 共用設定與 ClassicBot 預設值。網頁:儀表板的登入 session、瀏覽器終端機、網頁轉發、紀錄與公開連結。「檢查變更」會把它們暫存。",
@@ -8,6 +8,7 @@ register("settings", {
8
8
  webNotifyLogin: "Web sign-in notices",
9
9
  webNotifyLoginHint: "Posted in the topic. Off suppresses operator notices only; guest and public-link security notices still post. Default: Topic.",
10
10
  title: "Settings",
11
+ backToSettings: "Back to Settings",
11
12
  myAgents: "My Agents",
12
13
  bots: "Bots",
13
14
  classicChannels: "ClassicBot Channels",
@@ -46,7 +47,7 @@ register("settings", {
46
47
  levelTitlesFailed: "Couldn't save the level titles.", levelTitlesAdminOnly: "Only an admin session on the dashboard reached directly can change these.",
47
48
  webPreviewCdn: "HTML previews may load libraries from cdnjs / jsDelivr",
48
49
  webPreviewCdnHint: "The page's scripts may load libraries from cdnjs (/ajax/libs/) and jsDelivr (/npm/); those requests leave this machine, so the CDN sees them, and a page could use them to send data out. Scripts, styles and fonts only — a preview still cannot fetch or post anything. Off by default; applies to the next preview started, on the public link too.",
49
- webUsagePublic: "Usage report over the public link", webUsagePublicHint: "Fleet → Usage (up to 400 days of each agent's tokens, requests, messages and API-equivalent amounts) is offered over the temporary public link too. Off by default; guests never see it. Applies at once.",
50
+ webUsagePublic: "Usage report over the public link", webUsagePublicHint: "Fleet → Usage (up to 400 days of each agent's tokens, requests, messages and API-equivalent amounts) is offered to an admin over the public link too (temporary or fixed). On by default; guests never see it. Applies at once.",
50
51
  webLogThinking: "Show thinking (admin only, off by default)", webLogThinkingHint: "Adds the model's thinking to an agent's chat activity block (the block itself follows each agent's tool progress setting) and to the Log. Claude Code: AgEnD then also asks it to write thinking summaries, which apply from the agent's next start and can change what a turn costs. Only a signed-in admin on this dashboard ever receives it — never the public link or a guest. Thinking can hold things a person would not say aloud; secret values are still masked. While this is off, Claude's settings are left alone.",
51
52
  webLogTab: "Log tab: each agent's steps", webLogTabHint: "Shows each instance's prompts, replies, tool calls and results, and fleet events in its Log tab, read from its own transcript only while the tab is open. Secret values are masked. Also over the public link. Turning it on waits for a fleet admin's confirmation.",
52
53
  general: "General Settings",
@@ -529,6 +530,11 @@ register("settings", {
529
530
  webTerminalTtlRange: "Must be a whole number from 1 to 20",
530
531
  webReadOnlyTitle: "Set in fleet.yaml",
531
532
  guestsTitle: "Guests", guestsReview: "Review guest changes",
533
+ // M-3276: a guest's sign-in length and idle sign-out (web.guests.session).
534
+ guestSessionTitle: "Guest sign-in length", guestSessionAbsolute: "Signed in for at most, hours (1–720)", guestSessionIdle: "Signed out after inactivity, minutes (15–43200, that is 720 h)",
535
+ guestSessionAbsoluteRange: "Enter 1 to 720 hours, or leave it empty for the default (12 h).", guestSessionIdleRange: "Enter 15 to 43200 minutes, or leave it empty for the default (120 min).",
536
+ guestSessionIdleOver: "The idle time can't be longer than the sign-in length.",
537
+ guestSessionNote: "Every guest session follows these at its next check, and is never longer than an admin's own sign-in on this computer. A longer time waits for a fleet admin's confirmation; a shorter one applies at once. On the public link a guest's session also ends by the link's own limits (a temporary link: at most 8 h, 30 min idle; a fixed link: the public-link session limits under Sign-in) and when the link closes.",
532
538
  guestsHint: "People who are not admins can sign in to the web as guests: they send /web where they already chat and get a code privately. A guest sees only the agents they can already use in chat, and their messages are recognition only.",
533
539
  guestsEnabled: "Guest sign-in", guestsEnabledHint: "Off: no one can sign in as a guest, and every guest session ends. Turning it on waits for a fleet admin's confirmation.",
534
540
  guestsChat: "Guests may chat", guestsChatHint: "Off: guests can read their agents' chats but not send, attach, click a reply's buttons or press Cancel.",
@@ -694,6 +700,7 @@ register("settings", {
694
700
  webNotifyLogin: "網頁登入通知",
695
701
  webNotifyLoginHint: "發在頻道。關閉只停用管理員登入通知;訪客與公開連結安全通知仍會發出。預設:頻道。",
696
702
  title: "設定",
703
+ backToSettings: "回到設定",
697
704
  myAgents: "我的 Agent",
698
705
  bots: "機器人",
699
706
  classicChannels: "ClassicBot 頻道",
@@ -732,7 +739,7 @@ register("settings", {
732
739
  levelTitlesFailed: "無法儲存等級頭銜。", levelTitlesAdminOnly: "只有直接開啟儀表板的管理員 session 可以變更。",
733
740
  webPreviewCdn: "HTML 預覽可從 cdnjs / jsDelivr 載入函式庫",
734
741
  webPreviewCdnHint: "頁面的指令碼可以從 cdnjs(/ajax/libs/)和 jsDelivr(/npm/)載入函式庫;這些請求會離開這台電腦,CDN 會看到它們,頁面也可能藉此把資料傳出去。只限指令碼、樣式與字型——預覽仍然無法擷取或送出任何資料。預設關閉;之後開始的預覽才會套用,公開連結也一樣。",
735
- webUsagePublic: "透過公開連結提供用量報告", webUsagePublicHint: "Fleet → 用量(最多 400 天、每個 agent 的 token、請求、訊息與依牌價換算的 API 等值)也會透過臨時公開連結提供。預設關閉;訪客一律看不到。變更立即生效。",
742
+ webUsagePublic: "透過公開連結提供用量報告", webUsagePublicHint: "Fleet → 用量(最多 400 天、每個 agent 的 token、請求、訊息與依牌價換算的 API 等值)也會透過公開連結(臨時或固定網址)提供給管理員。預設開啟;訪客一律看不到。變更立即生效。",
736
743
  webLogThinking: "顯示思考(僅 admin,預設關閉)", webLogThinkingHint: "把模型的思考加進 Agent 聊天裡的活動區塊(區塊本身依各 Agent 的工具進度設定決定)與紀錄分頁。Claude Code:開啟後 AgEnD 也會請它寫出思考摘要,從該 Agent 下次啟動起生效,並可能改變每一輪的花費。只有在這個儀表板登入的 admin 才會收到——公開連結和訪客一律不會。思考可能包含人不會直接說出口的內容;機密值仍會遮蔽。關閉時不會動 Claude 的設定。",
737
744
  webLogTab: "紀錄分頁:每個 agent 的步驟", webLogTabHint: "在每個 Agent 的「紀錄」分頁顯示提示、回覆、工具呼叫與結果,以及 fleet 事件;只在分頁開著時從它自己的對話紀錄讀取。機密值會遮蔽。公開連結也看得到。開啟需 fleet admin 確認。",
738
745
  general: "一般設定",
@@ -1188,6 +1195,10 @@ register("settings", {
1188
1195
  webTerminalTtlRange: "必須是 1 到 20 之間的整數",
1189
1196
  webReadOnlyTitle: "在 fleet.yaml 設定",
1190
1197
  guestsTitle: "訪客", guestsReview: "檢視訪客變更",
1198
+ guestSessionTitle: "訪客登入時長", guestSessionAbsolute: "最長登入,小時(1–720)", guestSessionIdle: "閒置多久自動登出,分鐘(15–43200,即 720 小時)",
1199
+ guestSessionAbsoluteRange: "請輸入 1 到 720 小時,或留空使用預設(12 小時)。", guestSessionIdleRange: "請輸入 15 到 43200 分鐘,或留空使用預設(120 分鐘)。",
1200
+ guestSessionIdleOver: "閒置時間不能比登入時長更長。",
1201
+ guestSessionNote: "每個訪客的登入會在下次檢查時套用這些設定,且不會比管理員在這台電腦上的登入更長。改長要等 fleet 管理員確認,改短立即生效。透過公開連結登入的訪客,也會受連結本身的限制(臨時連結最多 8 小時、閒置 30 分鐘;固定連結依「登入」裡的公開連結 session 設定),連結關閉時也會一起結束。",
1191
1202
  guestsHint: "不是管理員的人可以用訪客身分登入網頁:在他本來就能聊天的地方傳 /web,就會私下收到裝置登入碼。訪客只會看到在聊天中本來就能用的 agent,他的訊息僅供辨識。",
1192
1203
  guestsEnabled: "訪客登入", guestsEnabledHint: "關閉:沒有人能以訪客登入,所有訪客 session 都會結束。開啟需 fleet admin 確認。",
1193
1204
  guestsChat: "訪客可以聊天", guestsChatHint: "關閉:訪客可以讀他的 agent 的聊天,但不能送訊息、附加檔案、按回覆的按鈕或按取消。",
@@ -6,19 +6,21 @@ import { html, useEffect, useState } from "/assets/app-html.js";
6
6
  import { register, t, lang } from "/assets/app-i18n.js";
7
7
  import { useStore } from "/assets/app-store.js";
8
8
  import { toast } from "/assets/ui-toast.js";
9
- import { checkUpdateNow, openUpdateDialog, refreshUpdate, updateActive, updateStore } from "/assets/app-update.js";
9
+ import { checkUpdateNow, hubNeed, openHubUpdateDialog, openUpdateDialog, refreshUpdate, updateActive, updateStore } from "/assets/app-update.js";
10
10
 
11
11
  register("supdate", {
12
12
  en: { title: "Version and update", current: "Current version", line: "Update line", latest: "Latest", checked: "Last checked",
13
13
  newer: "v{0} is available", upToDate: "Up to date", stableNewer: "v{0} (stable) is available", notYet: "Not checked yet",
14
14
  failed: "The last check could not reach the update source", check: "Check for updates", checking: "Checking…",
15
15
  alphaNote: "Updating from the web stays on the Alpha preview line; switching to stable is not offered here.",
16
- recently: "Checked less than a minute ago.", checkFailed: "The check could not finish.", pillNew: "New version" },
16
+ recently: "Checked less than a minute ago.", checkFailed: "The check could not finish.", pillNew: "New version",
17
+ recommendedBy: "Recommended by {0}" },
17
18
  "zh-TW": { title: "版本與更新", current: "目前版本", line: "更新管道", latest: "最新", checked: "上次檢查",
18
19
  newer: "v{0} 已推出", upToDate: "已是最新版", stableNewer: "v{0}(穩定版)已推出", notYet: "還沒檢查過",
19
20
  failed: "上次檢查連不上更新來源", check: "檢查更新", checking: "檢查中…",
20
21
  alphaNote: "網頁更新會留在 Alpha 預覽版,不提供切換到穩定版。",
21
- recently: "一分鐘內剛檢查過。", checkFailed: "檢查沒有完成。", pillNew: "有新版" },
22
+ recently: "一分鐘內剛檢查過。", checkFailed: "檢查沒有完成。", pillNew: "有新版",
23
+ recommendedBy: "{0} 建議的版本" },
22
24
  });
23
25
 
24
26
  const LINE = { latest: "update.channel_latest", beta: "update.channel_beta", alpha: "update.channel_alpha" };
@@ -37,6 +39,8 @@ export function UpdateSection() {
37
39
  if (!info || !info.admin) return null;
38
40
  const channel = channelOf(info.current);
39
41
  const offer = info.offer;
42
+ // M-3140 (spec §3.3): the Hub's advice, a row of its own; its Update is pinned when it is the higher need (hubNeed).
43
+ const rec = info.hubRecommendation && typeof info.hubRecommendation.version === "string" ? info.hubRecommendation : null, need = hubNeed(info);
40
44
  const latest = offer ? (offer.installable ? t("supdate.newer", offer.version) : t("supdate.stableNewer", offer.version))
41
45
  : info.check_failed ? t("supdate.failed") : info.checked_at ? t("supdate.upToDate") : t("supdate.notYet");
42
46
  const check = async () => {
@@ -52,10 +56,12 @@ export function UpdateSection() {
52
56
  <dt>${t("supdate.line")}</dt><dd>${t(LINE[channel])}</dd>
53
57
  <dt>${t("supdate.latest")}</dt><dd class=${offer && offer.installable ? "new" : ""}>${latest}</dd>
54
58
  <dt>${t("supdate.checked")}</dt><dd>${info.checked_at ? when(info.checked_at) : t("supdate.notYet")}</dd>
59
+ ${rec ? html`<dt>${t("supdate.recommendedBy", rec.hubName)}</dt><dd class=${need ? "new" : ""}>v${rec.version}</dd>` : null}
55
60
  </dl>
56
61
  ${offer && !offer.installable ? html`<p class="s-update-note">${t("supdate.alphaNote")}</p>` : null}
57
62
  <div class="s-update-row">
58
- ${offer && offer.installable ? html`<button type="button" class="btn btn-primary" disabled=${starting || updateActive(info)} onClick=${openUpdateDialog}>${t("update.now")}</button>` : null}
63
+ ${need ? html`<button type="button" class="btn btn-primary" disabled=${starting || updateActive(info)} onClick=${() => { void openHubUpdateDialog(); }}>${t("update.now")}</button>`
64
+ : offer && offer.installable ? html`<button type="button" class="btn btn-primary" disabled=${starting || updateActive(info)} onClick=${openUpdateDialog}>${t("update.now")}</button>` : null}
59
65
  <button type="button" class="btn" disabled=${checking || updateActive(info)} onClick=${check}>${checking ? t("supdate.checking") : t("supdate.check")}</button>
60
66
  </div>
61
67
  </section>`;
@@ -64,6 +70,6 @@ export function UpdateSection() {
64
70
  /** The "new version" mark beside Settings' version pill (admins, an installable offer). */
65
71
  export function UpdatePillMark() {
66
72
  const { info } = useStore(updateStore);
67
- if (!info || !info.admin || !info.offer || !info.offer.installable) return null;
73
+ if (!info || !info.admin || !((info.offer && info.offer.installable) || hubNeed(info))) return null;
68
74
  return html` <span class="pill ver-new">${t("supdate.pillNew")}</span>`;
69
75
  }
@@ -27,8 +27,9 @@ export function verifiedAuthorityBody(original, f) {
27
27
  if (f.enabled !== original.enabled) out.enabled = f.enabled ? null : false; // §0.1: on is the default
28
28
  if (f.loopbackOnly !== original.loopbackOnly) out.loopback_only = f.loopbackOnly ? true : null;
29
29
  if (f.hours !== original.hours) out.max_session_hours = f.hours === null ? null : f.hours;
30
- // #2453 (§0.2): off by default; turning it on is confirmed in a General or on the host.
31
- if (f.namedLink !== original.namedLink) out.named_link = f.namedLink ? true : null;
30
+ // #2453 (§0.2): on by default since decision 7933bf90 (as quick_link), so off is written as false; turning it back on is
31
+ // confirmed in a General or on the host.
32
+ if (f.namedLink !== original.namedLink) out.named_link = f.namedLink ? null : false;
32
33
  // §0.3: on by default (the user's decision, 2026-10-28), so off is written as false; turning it back on is confirmed in a
33
34
  // General or on the host.
34
35
  if (f.quickLink !== original.quickLink) out.quick_link = f.quickLink ? null : false;
@@ -50,7 +51,8 @@ export function WebAuthorityCard({ ctx, staged, disabled = false }) {
50
51
  if (!o || typeof o !== "object" || !o.state || !o.hours || !Array.isArray(o.lanHosts) || !Array.isArray(o.authorized)) { setFailed(true); return; }
51
52
  const c = o.configured || {};
52
53
  const orig = { enabled: c.enabled !== false, loopbackOnly: c.loopback_only === true, hours: typeof c.max_session_hours === "number" ? c.max_session_hours : null,
53
- namedLink: c.named_link === true, quickLink: c.quick_link == null || c.quick_link === true }; // #2819: on unless set otherwise
54
+ namedLink: c.named_link == null || c.named_link === true, quickLink: c.quick_link == null || c.quick_link === true, // #2819 / 7933bf90: on unless set otherwise
55
+ namedSet: c.named_link === true || c.named_link === false };
54
56
  setOverview(o); setFailed(false);
55
57
  setOriginal((prev) => prev || orig);
56
58
  // #2347: a draft kept from before this card was last shown (still unsaved) comes back over what is saved now — only
@@ -70,7 +72,7 @@ export function WebAuthorityCard({ ctx, staged, disabled = false }) {
70
72
  }, [f, original, overview]);
71
73
  // A fleet with no chat connection is worded for the authenticator (the reference page); one with Discord / Telegram keeps the confirm-card words.
72
74
  const webOnly = !!overview && overview.webOnly === true;
73
- const card = (body) => html`<section class="card s-web-authority"><h3>${tn("vaTitle")}</h3><p class="note s-authority-brief">${layoutText(webOnly ? "revAuthorityBriefWeb" : "revAuthorityBrief")}</p><p class="note s-authority-rule">${layoutText("revAuthorityRule")}</p>${body}<details class="s-setting-details"><summary>${layoutText("revAuthorityDetails")}</summary><p class="note">${tn("vaHint")}</p><p class="note">${tn("vaEnabledHint")}</p><p class="note">${tn("vaLoopbackOnlyHint")}</p></details></section>`;
75
+ const card = (body) => html`<section class="card s-web-authority" id="webAuthority"><h3>${tn("vaTitle")}</h3><p class="note s-authority-brief">${layoutText(webOnly ? "revAuthorityBriefWeb" : "revAuthorityBrief")}</p><p class="note s-authority-rule">${layoutText("revAuthorityRule")}</p>${body}<details class="s-setting-details"><summary>${layoutText("revAuthorityDetails")}</summary><p class="note">${tn("vaHint")}</p><p class="note">${tn("vaEnabledHint")}</p><p class="note">${tn("vaLoopbackOnlyHint")}</p></details></section>`;
74
76
  if (failed) return card(html`<p class="note" role="status">${tn("vaLoadFailed")} <button type="button" class="btn btn-sm" onClick=${load}>${t("app.retry")}</button></p>`);
75
77
  if (!overview || !f) return card(html`<${Skeleton} variant="rows" lines=${3} />`);
76
78
 
@@ -108,7 +110,7 @@ export function WebAuthorityCard({ ctx, staged, disabled = false }) {
108
110
  <${Feedback} error=${hoursError} />
109
111
  ${hoursText.trim() === "" ? html`<${InEffect} text=${tn("hoursValue", overview.hours.default)} />` : null}</div>
110
112
  <p class="note s-authority-public-warning">${layoutText("revAuthorityPublicWarning")}</p>
111
- <details class="s-authority-links"><summary>${layoutText("revAuthorityLinks")}</summary><div> ${overview.namedHost || original.namedLink ? html`<label class=${fc("check", "namedLink")}><input class="s-ui-toggle" id="vaNamedLink" type="checkbox" checked=${f.namedLink} onChange=${(e) => set({ namedLink: e.target.checked })} /><span>${tn("vaNamedLink", overview.namedHost || "—")}</span></label>
113
+ <details class="s-authority-links"><summary>${layoutText("revAuthorityLinks")}</summary><div> ${overview.namedHost || original.namedSet ? html`<label class=${fc("check", "namedLink")}><input class="s-ui-toggle" id="vaNamedLink" type="checkbox" checked=${f.namedLink} onChange=${(e) => set({ namedLink: e.target.checked })} /><span>${tn("vaNamedLink", overview.namedHost || "—")}</span></label>
112
114
  <p class="note">${tn("vaNamedLinkHint")}</p>` : null}
113
115
  ${/* §0.3: always shown — any fleet can open the temporary public link with /web. */ ""}
114
116
  <label class=${fc("check", "quickLink")}><input class="s-ui-toggle" id="vaQuickLink" type="checkbox" checked=${f.quickLink} onChange=${(e) => set({ quickLink: e.target.checked })} /><span>${tn("vaQuickLink")}</span></label>
@@ -11,7 +11,7 @@
11
11
  .p-settings .s-ov { display: flex; flex-direction: column; gap: var(--s-5); }
12
12
  .p-settings .s-ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; } /* S-120: card bottoms (their footers) aligned */
13
13
  .p-settings .s-ov-devices { grid-row: span 2; }
14
- @media (max-width: 900px) { .p-settings .s-ov-grid { grid-template-columns: minmax(0, 1fr); } .p-settings .s-ov-devices { grid-row: auto; } }
14
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) { .p-settings .s-ov-grid { grid-template-columns: minmax(0, 1fr); } .p-settings .s-ov-devices { grid-row: auto; } }
15
15
  .p-settings .s-ov-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
16
16
  .p-settings .s-ov-title { display: flex; align-items: center; gap: 8px; margin: 0; }
17
17
  .p-settings .s-ov-title > svg { color: var(--accent); flex: none; }
@@ -12,7 +12,7 @@
12
12
  .s-account-keepalive .s-keepalive-fallback { display: flex; align-items: center; gap: var(--s-2); }
13
13
 
14
14
  /* AGEND-250 (UI gate, rule 7): on a phone the switch is tapped through its label, which is --tap high, and the ⓘ is a --tap box whose 18px circle is drawn inside it (the gate measures the element's own box, so the circle is a pseudo-element). */
15
- @media (max-width: 899px) {
15
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
16
16
  .s-account-keepalive .check { min-height: var(--tap); }
17
17
  .s-account-keepalive .s-i .s-tipbtn { position: relative; width: var(--tap); height: var(--tap); border-color: transparent; }
18
18
  .s-account-keepalive .s-i .s-tipbtn::before { content: ""; position: absolute; inset: calc((var(--tap) - 18px) / 2); border: 1px solid var(--border-strong); border-radius: var(--r-full); }
@@ -91,7 +91,7 @@ button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-
91
91
 
92
92
  /* AGEND-250 (#3771 review; UI gate, style guide rule 7): on a phone every control of the account cards is a tap target (--tap high). Antigravity made a fourth card with an Add account button and a Fleet-default select; the
93
93
  gate's ratchet lets no small control be added, so these are made tap-high for every card (the three listed allowances for them are gone from ui-gate-tap-allowlist.json). The buttons of one kind share one height, so all of them grow. */
94
- @media (max-width: 899px) {
94
+ @media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
95
95
  .s-account-head .s-account-add, .s-account-machine-head .s-account-add { min-height: var(--tap); min-width: var(--tap); }
96
96
  .s-accounts .s-account-default select { min-height: var(--tap); }
97
97
  }
@@ -0,0 +1,116 @@
1
+ /**
2
+ * M-3166 (Argon 3, the user's OK of round 2): a phone's ⋯ on an agent's pages — a bottom sheet. It began as the chat's
3
+ * (PR 2); PR 5 gives View, Log and Details the same header ("← name ● ⋯", no tab row), so the sheet is shared here.
4
+ * tiles — Chat (when not on it), View, Log (the ones you are not on), Search, Files & changes, Card, Usage
5
+ * rows — Model & effort and CLI backend (the chat's own commands), Text size, Appearance (the page's colour, theme,
6
+ * effect and activity items, in place), Agent details (when not on it), Settings (Windows)
7
+ * This agent — start / restart / stop / pause / wake / delete, as the page offers them
8
+ * ✓ Verified at the foot, when the page knows it
9
+ * Every entry is the page's own item or its header's own control (the header shows none of them on a phone). Static code,
10
+ * no data: served from /assets/ like the other shared modules (an anonymous View reader never has the sheet).
11
+ */
12
+ import { html, useEffect, useState } from "./app-html.js";
13
+ import { register, t } from "./app-i18n.js";
14
+ import { useStore } from "./app-store.js";
15
+ import { navigate } from "./app-nav.js";
16
+ import { chatPath, detailsPath, logPath, viewPath } from "./app-route.js";
17
+ import { openSearch } from "./app-shell.js";
18
+ import { Dialog } from "./ui-dialog.js";
19
+ import { Icon } from "./ui-icons.js";
20
+ import { setTextSize, textSizeStore, TEXT_SIZES, usageOffered } from "./header-tools.js";
21
+ import { UsageDialog } from "./usage-dialog.js";
22
+ import { supportsInstanceFeature } from "./instance-nav.js";
23
+
24
+ register("agentSheet", {
25
+ en: { sheet: "{0}: more", search: "Search", files: "Files & changes", card: "Card", usage: "Usage", model: "Model & effort", backend: "CLI backend",
26
+ textSize: "Text size", textSizes: "Small,Medium,Large", look: "Appearance", agent: "This agent", details: "Agent details",
27
+ verifiedUntil: "Verified · speaks as you until {0}" },
28
+ "zh-TW": { sheet: "{0}:更多", search: "搜尋", files: "檔案與變更", card: "卡片", usage: "用量", model: "模型與推理", backend: "CLI backend",
29
+ textSize: "文字大小", textSizes: "小,中,大", look: "外觀", agent: "這個 Agent", details: "Agent 詳細資料",
30
+ verifiedUntil: "已驗證 · 以你的身分發言到 {0}" },
31
+ });
32
+
33
+ // The sheet's and the phone header's styles live with the chat's (chat-work-bar.css, linked fresh: an older app.css lacks
34
+ // them). View, Log or Details may be the first agent page a phone opens, so the sheet links it too (once, the chat's own mark).
35
+ (function linkSheetCss() {
36
+ try {
37
+ if (typeof document === "undefined" || !document.head || document.querySelector('link[data-chat-work-bar-css="1"]')) return;
38
+ const link = document.createElement("link");
39
+ link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/chat-work-bar.css"); link.setAttribute("data-chat-work-bar-css", "1");
40
+ document.head.appendChild(link);
41
+ } catch { /* the header keeps its desk look */ }
42
+ })();
43
+
44
+ /** A phone's width (the shell's own: max-width 899 px), kept current as the window is resized. */
45
+ export function usePhone() {
46
+ const read = () => typeof matchMedia === "function" && matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)").matches;
47
+ const [on, setOn] = useState(read);
48
+ useEffect(() => {
49
+ if (typeof matchMedia !== "function") return undefined;
50
+ const mq = matchMedia("(max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px)"), changed = () => setOn(mq.matches);
51
+ changed(); mq.addEventListener?.("change", changed);
52
+ return () => mq.removeEventListener?.("change", changed);
53
+ }, []);
54
+ return on;
55
+ }
56
+
57
+ /** The item keys that are this agent's controls (their own heading), not its appearance. */
58
+ const CONTROLS = ["start", "restart", "stop", "pause", "wake", "delete"];
59
+ /** The item keys the sheet places itself (a tile or a row of its own), never under Appearance. */
60
+ const PLACED = ["details", "splitChat", "settings", "workspace", "fullWidth", "pins", ...CONTROLS];
61
+ const untilClock = (ms) => { try { return new Date(ms).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }); } catch { return ""; } };
62
+
63
+ /**
64
+ * The header's ⋯ on a phone, and its sheet.
65
+ * - `current`: the page it is on ("chat" | "view" | "log" | "details") — its own tile is left out, Chat's added elsewhere
66
+ * - `items`: the page's own menu items (the desk's ⋯) — Files, Appearance, Agent details, Settings and This agent come from them
67
+ * - `chat`: the chat's own extras, or null — { card, onCard, onModel, modelText, onBackend, backendText }
68
+ * - `extra`: the page's own rows that are not appearance (View's help), after Agent details
69
+ * - `verifiedUntil`: when this browser's ✓ Verified ends (ms), or null
70
+ */
71
+ export function AgentSheetButton({ name, inst, current, items = [], extra = [], navKey = "", chat = null, verifiedUntil = null }) {
72
+ const [open, setOpen] = useState(false), [usage, setUsage] = useState(false);
73
+ return html`<button type="button" class="icon-btn chat-sheet-more" aria-haspopup="dialog" aria-label=${t("app.more")} title=${t("app.more")} onClick=${() => setOpen(true)}><${Icon} name="more" /></button>
74
+ ${open ? html`<${AgentSheet} name=${name} inst=${inst} current=${current} items=${items} extra=${extra} chat=${chat} verifiedUntil=${verifiedUntil}
75
+ onUsage=${() => { setOpen(false); setUsage(true); }} onClose=${() => setOpen(false)} />` : null}
76
+ ${usage ? html`<${UsageDialog} owner=${navKey} onClose=${() => setUsage(false)} />` : null}`;
77
+ }
78
+
79
+ export function AgentSheet({ name, inst, current, items = [], extra = [], chat = null, verifiedUntil = null, onUsage, onClose }) {
80
+ const [look, setLook] = useState(false);
81
+ const size = useStore(textSizeStore).size;
82
+ const by = (key) => items.find((i) => i && i.key === key);
83
+ const pick = (fn) => () => { onClose(); fn(); };
84
+ const tile = (icon, label, fn) => html`<button type="button" class="chat-sheet-tile" onClick=${pick(fn)}><${Icon} name=${icon} size=${20} /><span>${label}</span></button>`;
85
+ const row = (item, extra) => item ? html`<button type="button" class=${`menu-item chat-sheet-row${item.danger ? " danger" : ""}`} disabled=${!!item.disabled}
86
+ aria-checked=${item.checkbox ? (item.checked ? "true" : "false") : undefined} role=${item.checkbox ? "menuitemcheckbox" : undefined}
87
+ onClick=${() => { if (item.checkbox) item.onSelect(); else { onClose(); item.onSelect(); } }}>${item.icon ? html`<${Icon} name=${item.icon} size=${18} />` : html`<span class="chat-sheet-gap"></span>`}
88
+ <span>${item.label}</span>${extra || item.checkbox ? html`<small>${extra || (item.checked ? "✓" : "")}</small>` : null}</button>` : null;
89
+ const words = t("agentSheet.textSizes").split(","), at = Math.max(0, TEXT_SIZES.indexOf(size));
90
+ const looks = items.filter((i) => i && !PLACED.includes(i.key));
91
+ const controls = CONTROLS.map(by).filter(Boolean);
92
+ // Agent details: the page's own item (the chat's), else a way there from View and Log; none on Details itself.
93
+ const details = by("details") || (current !== "details" && supportsInstanceFeature(inst, "details")
94
+ ? { key: "details", icon: "info", onSelect: () => navigate(detailsPath(name)) } : null);
95
+ return html`<${Dialog} title=${t("agentSheet.sheet", name)} onClose=${onClose} cls="chat-sheet">
96
+ <div class="chat-sheet-tiles">
97
+ ${current !== "chat" ? tile("chat", t("app.chat"), () => navigate(chatPath(name))) : null}
98
+ ${current !== "view" && supportsInstanceFeature(inst, "view") ? tile("view", t("app.view"), () => navigate(viewPath(name))) : null}
99
+ ${current !== "log" && supportsInstanceFeature(inst, "log") ? tile("file", t("app.log"), () => navigate(logPath(name))) : null}
100
+ ${tile("search", t("agentSheet.search"), () => openSearch({ instance: name }))}
101
+ ${by("workspace") ? tile("diff", t("agentSheet.files"), () => by("workspace").onSelect()) : null}
102
+ ${by("pins") ? tile("pin", by("pins").label, () => by("pins").onSelect()) : null}
103
+ ${chat?.card ? tile("idcard", t("agentSheet.card"), () => chat.onCard()) : null}
104
+ ${supportsInstanceFeature(inst, "usage") && usageOffered() ? html`<button type="button" class="chat-sheet-tile" onClick=${onUsage}><${Icon} name="chart" size=${20} /><span>${t("agentSheet.usage")}</span></button>` : null}
105
+ </div>
106
+ ${chat?.onModel ? row({ key: "model", icon: "sliders", label: t("agentSheet.model"), onSelect: chat.onModel }, chat.modelText) : null}
107
+ ${chat?.onBackend ? row({ key: "backend", icon: "bot", label: t("agentSheet.backend"), onSelect: chat.onBackend }, chat.backendText) : null}
108
+ <button type="button" class="menu-item chat-sheet-row" onClick=${() => setTextSize(TEXT_SIZES[(at + 1) % TEXT_SIZES.length])}><${Icon} name="type" size=${18} /><span>${t("agentSheet.textSize")}</span><small>${words[at] || ""}</small></button>
109
+ ${looks.length ? html`<button type="button" class="menu-item chat-sheet-row" aria-expanded=${look ? "true" : "false"} onClick=${() => setLook((v) => !v)}><${Icon} name="palette" size=${18} /><span>${t("agentSheet.look")}</span><small>${look ? "⌃" : "⌄"}</small></button>
110
+ ${look ? html`<div class="chat-sheet-sub">${looks.map((i) => i.heading ? html`<div key=${i.key} class="menu-heading">${i.label}</div>` : html`<span key=${i.key}>${row(i)}</span>`)}</div>` : null}` : null}
111
+ ${row(details ? { ...details, label: t("agentSheet.details") } : null)}${row(by("settings"))}${extra.map((i) => row(i))}
112
+ ${controls.length ? html`<div class="menu-heading chat-sheet-head">${t("agentSheet.agent")}</div>` : null}
113
+ ${row(by("start"))}${row(by("restart"))}${row(by("stop"))}${row(by("pause"))}${row(by("wake"))}${row(by("delete"))}
114
+ ${verifiedUntil ? html`<div class="chat-sheet-foot">✓ ${t("agentSheet.verifiedUntil", untilClock(verifiedUntil))}</div>` : null}
115
+ </${Dialog}>`;
116
+ }
@@ -229,10 +229,9 @@ export function widgetFor(name, slot) {
229
229
  }
230
230
 
231
231
  const SIDEBAR_KEY = "widget.sidebar";
232
- const publicLink = () => typeof document !== "undefined" && !!document.body && document.body.dataset.publicLink === "1";
233
232
  /** The person's own sidebar widget (a synced preference), raw; null when none. Never on the public link or in safe mode. */
234
233
  export function sidebarWidgetRaw() {
235
- if (publicLink() || safeMode()) return null;
234
+ if (safeMode()) return null; // M-3278: the public link's admin too
236
235
  const f = prefInForce(SIDEBAR_KEY);
237
236
  let v = f ? f.value : undefined;
238
237
  if (!f) { try { v = JSON.parse(localStorage.getItem("agend_widget_sidebar") || "null"); } catch { v = null; } }