@songsid/agend 2.4.0-alpha.1 → 2.4.0-alpha.3

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 (529) hide show
  1. package/README.md +1 -1
  2. package/README.zh-TW.md +1 -1
  3. package/dist/account-isolation.d.ts +6 -0
  4. package/dist/account-isolation.js +40 -0
  5. package/dist/account-isolation.js.map +1 -0
  6. package/dist/accounts-signout.d.ts +15 -2
  7. package/dist/accounts-signout.js +52 -4
  8. package/dist/accounts-signout.js.map +1 -1
  9. package/dist/accounts-view.d.ts +114 -27
  10. package/dist/accounts-view.js +123 -60
  11. package/dist/accounts-view.js.map +1 -1
  12. package/dist/agent-cli-instructions.md +9 -7
  13. package/dist/agent-cli.js +47 -20
  14. package/dist/agent-cli.js.map +1 -1
  15. package/dist/agent-endpoint.js +23 -8
  16. package/dist/agent-endpoint.js.map +1 -1
  17. package/dist/agent-list-output.d.ts +23 -0
  18. package/dist/agent-list-output.js +53 -0
  19. package/dist/agent-list-output.js.map +1 -0
  20. package/dist/agent-runtime-change.js +4 -4
  21. package/dist/agent-runtime-change.js.map +1 -1
  22. package/dist/agent-whats-new.js +4 -0
  23. package/dist/agent-whats-new.js.map +1 -1
  24. package/dist/antigravity-first-run.d.ts +4 -0
  25. package/dist/antigravity-first-run.js +57 -0
  26. package/dist/antigravity-first-run.js.map +1 -0
  27. package/dist/antigravity-identity.d.ts +6 -0
  28. package/dist/antigravity-identity.js +27 -0
  29. package/dist/antigravity-identity.js.map +1 -0
  30. package/dist/antigravity-store.d.ts +22 -0
  31. package/dist/antigravity-store.js +79 -0
  32. package/dist/antigravity-store.js.map +1 -0
  33. package/dist/auth-api.js +7 -1
  34. package/dist/auth-api.js.map +1 -1
  35. package/dist/backend/agy-onboarding.d.ts +14 -0
  36. package/dist/backend/agy-onboarding.js +114 -0
  37. package/dist/backend/agy-onboarding.js.map +1 -0
  38. package/dist/backend/antigravity.d.ts +15 -0
  39. package/dist/backend/antigravity.js +44 -4
  40. package/dist/backend/antigravity.js.map +1 -1
  41. package/dist/backend/claude-code.js +4 -0
  42. package/dist/backend/claude-code.js.map +1 -1
  43. package/dist/backend/credential-profile.d.ts +22 -3
  44. package/dist/backend/credential-profile.js +61 -9
  45. package/dist/backend/credential-profile.js.map +1 -1
  46. package/dist/backend/types.d.ts +6 -0
  47. package/dist/backend/types.js.map +1 -1
  48. package/dist/backend-availability.d.ts +7 -1
  49. package/dist/backend-availability.js +39 -1
  50. package/dist/backend-availability.js.map +1 -1
  51. package/dist/browser-backend-signins.d.ts +16 -2
  52. package/dist/browser-backend-signins.js +17 -9
  53. package/dist/browser-backend-signins.js.map +1 -1
  54. package/dist/build-provenance.json +1 -1
  55. package/dist/channel/mcp-tools.js +10 -10
  56. package/dist/channel/mcp-tools.js.map +1 -1
  57. package/dist/claude-auth-status.d.ts +1 -0
  58. package/dist/claude-auth-status.js +25 -0
  59. package/dist/claude-auth-status.js.map +1 -1
  60. package/dist/cli-capability.d.ts +104 -19
  61. package/dist/cli-capability.js +3 -1
  62. package/dist/cli-capability.js.map +1 -1
  63. package/dist/cli-caps-module.d.ts +14 -0
  64. package/dist/cli-caps-module.js +8 -1
  65. package/dist/cli-caps-module.js.map +1 -1
  66. package/dist/cli-registry-check.js +114 -18
  67. package/dist/cli-registry-check.js.map +1 -1
  68. package/dist/cli-registry.d.ts +116 -12
  69. package/dist/cli-registry.js +16 -1
  70. package/dist/cli-registry.js.map +1 -1
  71. package/dist/cli-spec-antigravity.d.ts +53 -11
  72. package/dist/cli-spec-antigravity.js +44 -13
  73. package/dist/cli-spec-antigravity.js.map +1 -1
  74. package/dist/cli-spec-claude-code.d.ts +14 -1
  75. package/dist/cli-spec-claude-code.js +5 -4
  76. package/dist/cli-spec-claude-code.js.map +1 -1
  77. package/dist/cli-spec-codex.d.ts +8 -0
  78. package/dist/cli-spec-codex.js +4 -3
  79. package/dist/cli-spec-codex.js.map +1 -1
  80. package/dist/cli-spec-grok.d.ts +4 -0
  81. package/dist/cli-spec-grok.js +2 -1
  82. package/dist/cli-spec-grok.js.map +1 -1
  83. package/dist/cli-spec-kiro-cli.d.ts +7 -0
  84. package/dist/cli-spec-kiro-cli.js +3 -2
  85. package/dist/cli-spec-kiro-cli.js.map +1 -1
  86. package/dist/cli-spec-muse.d.ts +4 -0
  87. package/dist/cli-spec-muse.js +2 -1
  88. package/dist/cli-spec-muse.js.map +1 -1
  89. package/dist/cli-spec-opencode.d.ts +1 -0
  90. package/dist/cli-spec-opencode.js +1 -0
  91. package/dist/cli-spec-opencode.js.map +1 -1
  92. package/dist/config-validator.js +47 -7
  93. package/dist/config-validator.js.map +1 -1
  94. package/dist/credential-store-proof.d.ts +6 -0
  95. package/dist/credential-store-proof.js +30 -0
  96. package/dist/credential-store-proof.js.map +1 -0
  97. package/dist/daemon.d.ts +3 -0
  98. package/dist/daemon.js +6 -2
  99. package/dist/daemon.js.map +1 -1
  100. package/dist/decision-list.d.ts +5 -4
  101. package/dist/decision-list.js +22 -8
  102. package/dist/decision-list.js.map +1 -1
  103. package/dist/fleet-manager.d.ts +53 -5
  104. package/dist/fleet-manager.js +301 -115
  105. package/dist/fleet-manager.js.map +1 -1
  106. package/dist/fleet-windows-runtime.js +6 -6
  107. package/dist/fleet-windows-runtime.js.map +1 -1
  108. package/dist/general-knowledge/skills/concepts/SKILL.md +32 -4
  109. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +42 -6
  110. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +14 -6
  111. package/dist/general-knowledge/skills/fleet-health/SKILL.md +16 -0
  112. package/dist/general-knowledge/skills/hub/SKILL.md +361 -0
  113. package/dist/general-knowledge/skills/scheduling/SKILL.md +1 -1
  114. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +184 -36
  115. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +5 -1
  116. package/dist/general-role.d.ts +1 -1
  117. package/dist/general-role.js +1 -0
  118. package/dist/general-role.js.map +1 -1
  119. package/dist/hub/audit/index.js +12 -5
  120. package/dist/hub/audit/index.js.map +1 -1
  121. package/dist/hub/buttons.d.ts +3 -0
  122. package/dist/hub/buttons.js +11 -11
  123. package/dist/hub/buttons.js.map +1 -1
  124. package/dist/hub/catalog.d.ts +18 -5
  125. package/dist/hub/catalog.js +119 -36
  126. package/dist/hub/catalog.js.map +1 -1
  127. package/dist/hub/client.d.ts +6 -0
  128. package/dist/hub/client.js +6 -1
  129. package/dist/hub/client.js.map +1 -1
  130. package/dist/hub/compose/member.d.ts +2 -0
  131. package/dist/hub/compose/member.js +26 -2
  132. package/dist/hub/compose/member.js.map +1 -1
  133. package/dist/hub/compose/server.d.ts +6 -0
  134. package/dist/hub/compose/server.js +11 -4
  135. package/dist/hub/compose/server.js.map +1 -1
  136. package/dist/hub/directory/directory.d.ts +1 -1
  137. package/dist/hub/directory/directory.js +51 -0
  138. package/dist/hub/directory/directory.js.map +1 -1
  139. package/dist/hub/directory/types.d.ts +14 -0
  140. package/dist/hub/directory/types.js.map +1 -1
  141. package/dist/hub/enrolment-code.d.ts +126 -0
  142. package/dist/hub/enrolment-code.js +266 -0
  143. package/dist/hub/enrolment-code.js.map +1 -0
  144. package/dist/hub/grant-access.d.ts +11 -0
  145. package/dist/hub/grant-access.js +113 -0
  146. package/dist/hub/grant-access.js.map +1 -0
  147. package/dist/hub/grant-search.d.ts +9 -0
  148. package/dist/hub/grant-search.js +92 -0
  149. package/dist/hub/grant-search.js.map +1 -0
  150. package/dist/hub/group-policy/admin-impact.d.ts +2 -0
  151. package/dist/hub/group-policy/admin-impact.js +14 -4
  152. package/dist/hub/group-policy/admin-impact.js.map +1 -1
  153. package/dist/hub/group-policy/admin-inventory.js +7 -7
  154. package/dist/hub/group-policy/admin-inventory.js.map +1 -1
  155. package/dist/hub/group-policy/authorization.d.ts +20 -3
  156. package/dist/hub/group-policy/authorization.js +132 -27
  157. package/dist/hub/group-policy/authorization.js.map +1 -1
  158. package/dist/hub/group-policy/impact-inventory.js +23 -7
  159. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  160. package/dist/hub/group-policy/resources.d.ts +44 -6
  161. package/dist/hub/group-policy/resources.js +75 -30
  162. package/dist/hub/group-policy/resources.js.map +1 -1
  163. package/dist/hub/group-policy/store.d.ts +24 -3
  164. package/dist/hub/group-policy/store.js +136 -77
  165. package/dist/hub/group-policy/store.js.map +1 -1
  166. package/dist/hub/group-policy/welcome.js.map +1 -1
  167. package/dist/hub/http/compose.js +68 -16
  168. package/dist/hub/http/compose.js.map +1 -1
  169. package/dist/hub/http/core.d.ts +18 -0
  170. package/dist/hub/http/core.js +108 -7
  171. package/dist/hub/http/core.js.map +1 -1
  172. package/dist/hub/http/deps.d.ts +8 -0
  173. package/dist/hub/http/schema.js +11 -0
  174. package/dist/hub/http/schema.js.map +1 -1
  175. package/dist/hub/init/text.js +2 -2
  176. package/dist/hub/init/text.js.map +1 -1
  177. package/dist/hub/init/web.d.ts +7 -0
  178. package/dist/hub/init/web.js +6 -1
  179. package/dist/hub/init/web.js.map +1 -1
  180. package/dist/hub/join/local.d.ts +32 -0
  181. package/dist/hub/join/local.js +98 -10
  182. package/dist/hub/join/local.js.map +1 -1
  183. package/dist/hub/join/receipt.d.ts +1 -0
  184. package/dist/hub/join/receipt.js +1 -1
  185. package/dist/hub/join/receipt.js.map +1 -1
  186. package/dist/hub/join/service.d.ts +94 -6
  187. package/dist/hub/join/service.js +214 -44
  188. package/dist/hub/join/service.js.map +1 -1
  189. package/dist/hub/join/store.d.ts +2 -1
  190. package/dist/hub/join/store.js +7 -7
  191. package/dist/hub/join/store.js.map +1 -1
  192. package/dist/hub/member/exposure-api.d.ts +2 -0
  193. package/dist/hub/member/exposure-api.js +3 -2
  194. package/dist/hub/member/exposure-api.js.map +1 -1
  195. package/dist/hub/member/exposures.d.ts +4 -0
  196. package/dist/hub/member/exposures.js +12 -2
  197. package/dist/hub/member/exposures.js.map +1 -1
  198. package/dist/hub/member/pairing-api.js +4 -1
  199. package/dist/hub/member/pairing-api.js.map +1 -1
  200. package/dist/hub/member/pairing-notices.js +8 -6
  201. package/dist/hub/member/pairing-notices.js.map +1 -1
  202. package/dist/hub/pairing-notices.d.ts +5 -2
  203. package/dist/hub/pairing-notices.js +38 -13
  204. package/dist/hub/pairing-notices.js.map +1 -1
  205. package/dist/hub/pairing.d.ts +10 -2
  206. package/dist/hub/pairing.js +37 -16
  207. package/dist/hub/pairing.js.map +1 -1
  208. package/dist/hub/policy.d.ts +1 -1
  209. package/dist/hub/policy.js +19 -6
  210. package/dist/hub/policy.js.map +1 -1
  211. package/dist/hub/protocol.d.ts +60 -0
  212. package/dist/hub/protocol.js +9 -2
  213. package/dist/hub/protocol.js.map +1 -1
  214. package/dist/hub/quota.d.ts +2 -1
  215. package/dist/hub/quota.js +2 -2
  216. package/dist/hub/quota.js.map +1 -1
  217. package/dist/hub/roles/authority.d.ts +45 -0
  218. package/dist/hub/roles/authority.js +199 -0
  219. package/dist/hub/roles/authority.js.map +1 -0
  220. package/dist/hub/roles/change.d.ts +18 -0
  221. package/dist/hub/roles/change.js +76 -0
  222. package/dist/hub/roles/change.js.map +1 -0
  223. package/dist/hub/roles/convert.d.ts +11 -0
  224. package/dist/hub/roles/convert.js +27 -0
  225. package/dist/hub/roles/convert.js.map +1 -0
  226. package/dist/hub/roles/cutover-inventory.d.ts +14 -0
  227. package/dist/hub/roles/cutover-inventory.js +42 -0
  228. package/dist/hub/roles/cutover-inventory.js.map +1 -0
  229. package/dist/hub/roles/cutover.d.ts +32 -0
  230. package/dist/hub/roles/cutover.js +184 -0
  231. package/dist/hub/roles/cutover.js.map +1 -0
  232. package/dist/hub/roles/delegation.d.ts +24 -0
  233. package/dist/hub/roles/delegation.js +111 -0
  234. package/dist/hub/roles/delegation.js.map +1 -0
  235. package/dist/hub/roles/evaluate.d.ts +50 -0
  236. package/dist/hub/roles/evaluate.js +96 -0
  237. package/dist/hub/roles/evaluate.js.map +1 -0
  238. package/dist/hub/roles/expiry.d.ts +46 -0
  239. package/dist/hub/roles/expiry.js +180 -0
  240. package/dist/hub/roles/expiry.js.map +1 -0
  241. package/dist/hub/roles/mode-effects.d.ts +5 -0
  242. package/dist/hub/roles/mode-effects.js +21 -0
  243. package/dist/hub/roles/mode-effects.js.map +1 -0
  244. package/dist/hub/roles/model.d.ts +171 -0
  245. package/dist/hub/roles/model.js +79 -0
  246. package/dist/hub/roles/model.js.map +1 -0
  247. package/dist/hub/roles/read.d.ts +29 -0
  248. package/dist/hub/roles/read.js +47 -0
  249. package/dist/hub/roles/read.js.map +1 -0
  250. package/dist/hub/roles/writer.d.ts +80 -0
  251. package/dist/hub/roles/writer.js +427 -0
  252. package/dist/hub/roles/writer.js.map +1 -0
  253. package/dist/hub/rooms.d.ts +8 -0
  254. package/dist/hub/rooms.js +47 -27
  255. package/dist/hub/rooms.js.map +1 -1
  256. package/dist/hub/server.d.ts +3 -0
  257. package/dist/hub/server.js +18 -2
  258. package/dist/hub/server.js.map +1 -1
  259. package/dist/hub/sessions.js +5 -1
  260. package/dist/hub/sessions.js.map +1 -1
  261. package/dist/hub/settings-directory-decision.d.ts +2 -2
  262. package/dist/hub/settings-directory-decision.js +7 -5
  263. package/dist/hub/settings-directory-decision.js.map +1 -1
  264. package/dist/hub/settings-directory-proof.js +3 -1
  265. package/dist/hub/settings-directory-proof.js.map +1 -1
  266. package/dist/hub/settings-directory-recovery.js +3 -3
  267. package/dist/hub/settings-directory-recovery.js.map +1 -1
  268. package/dist/hub/sharing.d.ts +10 -0
  269. package/dist/hub/sharing.js +74 -0
  270. package/dist/hub/sharing.js.map +1 -0
  271. package/dist/hub/store.js +6 -2
  272. package/dist/hub/store.js.map +1 -1
  273. package/dist/hub/types.d.ts +29 -5
  274. package/dist/hub/web-origin.d.ts +80 -0
  275. package/dist/hub/web-origin.js +163 -0
  276. package/dist/hub/web-origin.js.map +1 -0
  277. package/dist/hub-pairing-summary.js +1 -1
  278. package/dist/hub-pairing-summary.js.map +1 -1
  279. package/dist/human-delivery-receipts.js +2 -2
  280. package/dist/human-delivery-receipts.js.map +1 -1
  281. package/dist/instance-config-impact.js +4 -0
  282. package/dist/instance-config-impact.js.map +1 -1
  283. package/dist/instance-lifecycle.d.ts +13 -1
  284. package/dist/instance-lifecycle.js +36 -10
  285. package/dist/instance-lifecycle.js.map +1 -1
  286. package/dist/instructions.d.ts +8 -2
  287. package/dist/instructions.js +28 -6
  288. package/dist/instructions.js.map +1 -1
  289. package/dist/locale.js +12 -8
  290. package/dist/locale.js.map +1 -1
  291. package/dist/log-service.d.ts +62 -6
  292. package/dist/log-service.js +135 -28
  293. package/dist/log-service.js.map +1 -1
  294. package/dist/log-steps-agy-grok.d.ts +74 -0
  295. package/dist/log-steps-agy-grok.js +440 -0
  296. package/dist/log-steps-agy-grok.js.map +1 -0
  297. package/dist/log-steps.d.ts +62 -3
  298. package/dist/log-steps.js +188 -22
  299. package/dist/log-steps.js.map +1 -1
  300. package/dist/log-transcript-paths.d.ts +29 -0
  301. package/dist/log-transcript-paths.js +109 -0
  302. package/dist/log-transcript-paths.js.map +1 -0
  303. package/dist/login-controller.d.ts +17 -3
  304. package/dist/login-controller.js +57 -5
  305. package/dist/login-controller.js.map +1 -1
  306. package/dist/login-flows.d.ts +24 -2
  307. package/dist/login-flows.js +53 -22
  308. package/dist/login-flows.js.map +1 -1
  309. package/dist/login-url.js +3 -0
  310. package/dist/login-url.js.map +1 -1
  311. package/dist/login-window-lock.d.ts +20 -8
  312. package/dist/login-window-lock.js +35 -16
  313. package/dist/login-window-lock.js.map +1 -1
  314. package/dist/machine-accounts.d.ts +42 -12
  315. package/dist/machine-accounts.js +144 -46
  316. package/dist/machine-accounts.js.map +1 -1
  317. package/dist/machine-signins.d.ts +35 -13
  318. package/dist/machine-signins.js +57 -27
  319. package/dist/machine-signins.js.map +1 -1
  320. package/dist/native-instance-input.js +4 -4
  321. package/dist/native-instance-input.js.map +1 -1
  322. package/dist/native-instance-registry.d.ts +3 -3
  323. package/dist/native-instance-registry.js +11 -10
  324. package/dist/native-instance-registry.js.map +1 -1
  325. package/dist/outbound-handlers.d.ts +14 -0
  326. package/dist/outbound-handlers.js +68 -20
  327. package/dist/outbound-handlers.js.map +1 -1
  328. package/dist/outbound-schemas.d.ts +18 -0
  329. package/dist/outbound-schemas.js +22 -4
  330. package/dist/outbound-schemas.js.map +1 -1
  331. package/dist/profile-signins.d.ts +7 -0
  332. package/dist/profile-signins.js +2 -1
  333. package/dist/profile-signins.js.map +1 -1
  334. package/dist/runtime-build-info.js +6 -2
  335. package/dist/runtime-build-info.js.map +1 -1
  336. package/dist/runtime-cli.js +33 -11
  337. package/dist/runtime-cli.js.map +1 -1
  338. package/dist/runtime-client.d.ts +18 -2
  339. package/dist/runtime-client.js +84 -21
  340. package/dist/runtime-client.js.map +1 -1
  341. package/dist/runtime-credential-profiles.d.ts +36 -4
  342. package/dist/runtime-credential-profiles.js +82 -16
  343. package/dist/runtime-credential-profiles.js.map +1 -1
  344. package/dist/runtime-profile-ownership.d.ts +2 -2
  345. package/dist/runtime-profile-ownership.js +3 -3
  346. package/dist/runtime-profile-ownership.js.map +1 -1
  347. package/dist/runtime-protocol.d.ts +5 -3
  348. package/dist/runtime-protocol.js +4 -0
  349. package/dist/runtime-protocol.js.map +1 -1
  350. package/dist/runtime-remote-accounts.d.ts +72 -5
  351. package/dist/runtime-remote-accounts.js +293 -52
  352. package/dist/runtime-remote-accounts.js.map +1 -1
  353. package/dist/runtime-remote-setup.d.ts +2 -2
  354. package/dist/runtime-remote-setup.js +2 -2
  355. package/dist/runtime-remote-setup.js.map +1 -1
  356. package/dist/runtime-signin-transport.d.ts +22 -4
  357. package/dist/runtime-signin-transport.js +50 -12
  358. package/dist/runtime-signin-transport.js.map +1 -1
  359. package/dist/runtime-signin.d.ts +42 -0
  360. package/dist/runtime-signin.js +105 -9
  361. package/dist/runtime-signin.js.map +1 -1
  362. package/dist/runtime-windows-bridge.js +6 -1
  363. package/dist/runtime-windows-bridge.js.map +1 -1
  364. package/dist/scheduler/task-board.d.ts +1 -0
  365. package/dist/scheduler/task-board.js +10 -1
  366. package/dist/scheduler/task-board.js.map +1 -1
  367. package/dist/settings-api.d.ts +34 -0
  368. package/dist/settings-api.js +184 -6
  369. package/dist/settings-api.js.map +1 -1
  370. package/dist/settings-change.js +38 -1
  371. package/dist/settings-change.js.map +1 -1
  372. package/dist/settings-effect.js +14 -0
  373. package/dist/settings-effect.js.map +1 -1
  374. package/dist/signin-keepalive.d.ts +31 -2
  375. package/dist/signin-keepalive.js +123 -12
  376. package/dist/signin-keepalive.js.map +1 -1
  377. package/dist/structured-signin-transport.d.ts +2 -2
  378. package/dist/structured-signin-transport.js +27 -6
  379. package/dist/structured-signin-transport.js.map +1 -1
  380. package/dist/structured-signin.d.ts +16 -2
  381. package/dist/structured-signin.js +59 -4
  382. package/dist/structured-signin.js.map +1 -1
  383. package/dist/task-board-tool.d.ts +0 -13
  384. package/dist/task-board-tool.js +42 -6
  385. package/dist/task-board-tool.js.map +1 -1
  386. package/dist/tool-progress.d.ts +7 -0
  387. package/dist/tool-progress.js +21 -9
  388. package/dist/tool-progress.js.map +1 -1
  389. package/dist/tool-receipt-output.d.ts +151 -0
  390. package/dist/tool-receipt-output.js +50 -0
  391. package/dist/tool-receipt-output.js.map +1 -0
  392. package/dist/types.d.ts +13 -0
  393. package/dist/ui/accounts-keepalive.js +15 -6
  394. package/dist/ui/accounts-manage.js +25 -5
  395. package/dist/ui/accounts-view.js +40 -26
  396. package/dist/ui/agent-details-settings.js +2 -2
  397. package/dist/ui/agent-page-strings.js +2 -2
  398. package/dist/ui/agent-proposals.js +22 -2
  399. package/dist/ui/agent-runtime-settings.js +3 -3
  400. package/dist/ui/backend-signin.js +49 -16
  401. package/dist/ui/chat-activity-groups.js +225 -0
  402. package/dist/ui/chat-activity.js +355 -0
  403. package/dist/ui/chat-popout-header.js +35 -0
  404. package/dist/ui/chat-popout-transport.js +80 -0
  405. package/dist/ui/chat-popout.js +63 -0
  406. package/dist/ui/chat-quote.js +3 -1
  407. package/dist/ui/chat-store.js +45 -4
  408. package/dist/ui/chat-workspace-gestures.js +177 -0
  409. package/dist/ui/chat-workspace-navigation.js +34 -10
  410. package/dist/ui/chat-workspace.js +96 -32
  411. package/dist/ui/cli-caps.js +7 -7
  412. package/dist/ui/credential-profile-select.js +32 -19
  413. package/dist/ui/host-install.js +2 -2
  414. package/dist/ui/hub-agent-copy.js +7 -7
  415. package/dist/ui/hub-chat-store.js +8 -4
  416. package/dist/ui/hub-chat-strings.js +3 -3
  417. package/dist/ui/hub-client.js +113 -18
  418. package/dist/ui/hub-company-join-strings.js +12 -10
  419. package/dist/ui/hub-company-join.js +52 -39
  420. package/dist/ui/hub-confirm-place.js +44 -0
  421. package/dist/ui/hub-directory-editor-strings.js +3 -3
  422. package/dist/ui/hub-directory-notice-strings.js +1 -1
  423. package/dist/ui/hub-enrolment-code-strings.js +44 -0
  424. package/dist/ui/hub-enrolment-code.js +159 -0
  425. package/dist/ui/hub-grant-picker.js +100 -0
  426. package/dist/ui/hub-group-search.js +82 -0
  427. package/dist/ui/hub-group-strings.js +8 -8
  428. package/dist/ui/hub-join-approval.js +31 -0
  429. package/dist/ui/hub-join-code-input.js +66 -0
  430. package/dist/ui/hub-join-one-strings.js +2 -2
  431. package/dist/ui/hub-join-queue.js +62 -0
  432. package/dist/ui/hub-join-steps.js +234 -0
  433. package/dist/ui/hub-joincode-flow-strings.js +22 -0
  434. package/dist/ui/hub-owner-strings.js +9 -9
  435. package/dist/ui/hub-pairing-progress-strings.js +1 -1
  436. package/dist/ui/hub-quick-pairing.js +8 -4
  437. package/dist/ui/hub-quick-strings.js +11 -11
  438. package/dist/ui/hub-share-refused.js +17 -0
  439. package/dist/ui/hub-strings.js +61 -61
  440. package/dist/ui/hub-this-hub.js +2 -2
  441. package/dist/ui/hub-welcome.js +26 -5
  442. package/dist/ui/image-annotate.js +283 -0
  443. package/dist/ui/image-lightbox.js +26 -6
  444. package/dist/ui/log-row.js +327 -0
  445. package/dist/ui/machine-signin.js +47 -14
  446. package/dist/ui/panel-chat.js +151 -12
  447. package/dist/ui/panel-details.js +14 -6
  448. package/dist/ui/panel-fleet.js +2 -2
  449. package/dist/ui/panel-hub.js +94 -21
  450. package/dist/ui/panel-log.js +9 -154
  451. package/dist/ui/panel-settings.js +50 -13
  452. package/dist/ui/search-dialog.js +1 -0
  453. package/dist/ui/settings-access-overview.js +1 -1
  454. package/dist/ui/settings-hub-browser-certificate.js +3 -3
  455. package/dist/ui/settings-hub-company-join.js +42 -30
  456. package/dist/ui/settings-hub-connection.js +8 -5
  457. package/dist/ui/settings-hub-membership.js +3 -3
  458. package/dist/ui/settings-hub-section.js +3 -1
  459. package/dist/ui/settings-hub-setup-strings.js +6 -6
  460. package/dist/ui/settings-hub-setup.js +44 -6
  461. package/dist/ui/settings-hub-web-address.js +233 -0
  462. package/dist/ui/settings-hub.js +41 -10
  463. package/dist/ui/settings-layout.js +6 -4
  464. package/dist/ui/settings-public-session-strings.js +37 -0
  465. package/dist/ui/settings-registry.js +4 -0
  466. package/dist/ui/settings-strings.js +2 -2
  467. package/dist/ui/shared/accounts-keepalive.css +8 -0
  468. package/dist/ui/shared/accounts-usage-pool.css +10 -0
  469. package/dist/ui/shared/accounts.css +9 -0
  470. package/dist/ui/shared/app-shell.js +16 -10
  471. package/dist/ui/shared/app.css +233 -35
  472. package/dist/ui/shared/app.js +8 -1
  473. package/dist/ui/shared/chat-render.js +11 -2
  474. package/dist/ui/shared/chat-thread.js +20 -3
  475. package/dist/ui/shared/chat-work-bar.css +7 -0
  476. package/dist/ui/shared/chat-workspace-model.js +39 -9
  477. package/dist/ui/shared/hub-grant-picker.css +4 -0
  478. package/dist/ui/shared/hub-owner.css +8 -0
  479. package/dist/ui/shared/hub-sharing.css +4 -0
  480. package/dist/ui/shared/identity-color.js +9 -3
  481. package/dist/ui/shared/image-annotate.css +45 -0
  482. package/dist/ui/shared/instance-nav.js +59 -22
  483. package/dist/ui/shared/pane-geometry.js +29 -0
  484. package/dist/ui/shared/signin.js +2 -2
  485. package/dist/ui/shared/tokens.css +14 -0
  486. package/dist/ui/shared/ui-menu.js +22 -7
  487. package/dist/ui/shared/view-strings.js +2 -2
  488. package/dist/ui/signin.html +1 -1
  489. package/dist/ui/structured-signin.js +29 -9
  490. package/dist/ui/usage-pool.js +76 -0
  491. package/dist/usage/agent-output.d.ts +144 -0
  492. package/dist/usage/agent-output.js +75 -0
  493. package/dist/usage/agent-output.js.map +1 -0
  494. package/dist/usage/provider-alerts.d.ts +6 -0
  495. package/dist/usage/provider-alerts.js +6 -0
  496. package/dist/usage/provider-alerts.js.map +1 -1
  497. package/dist/usage/providers.d.ts +2 -2
  498. package/dist/usage/providers.js +60 -18
  499. package/dist/usage/providers.js.map +1 -1
  500. package/dist/usage/usage-api.d.ts +12 -0
  501. package/dist/usage/usage-api.js +39 -0
  502. package/dist/usage/usage-api.js.map +1 -1
  503. package/dist/web-api.d.ts +3 -0
  504. package/dist/web-api.js +61 -16
  505. package/dist/web-api.js.map +1 -1
  506. package/dist/web-backend-login.d.ts +13 -4
  507. package/dist/web-backend-login.js +7 -4
  508. package/dist/web-backend-login.js.map +1 -1
  509. package/dist/web-chat-history.d.ts +11 -0
  510. package/dist/web-chat-history.js +9 -1
  511. package/dist/web-chat-history.js.map +1 -1
  512. package/dist/web-guest-access.js +2 -2
  513. package/dist/web-guest-access.js.map +1 -1
  514. package/dist/web-session.d.ts +31 -3
  515. package/dist/web-session.js +25 -4
  516. package/dist/web-session.js.map +1 -1
  517. package/dist/web-settings-patch.d.ts +8 -2
  518. package/dist/web-settings-patch.js +22 -10
  519. package/dist/web-settings-patch.js.map +1 -1
  520. package/dist/windows-cli-providers.js +5 -1
  521. package/dist/windows-cli-providers.js.map +1 -1
  522. package/dist/windows-cli-worker.d.ts +33 -1
  523. package/dist/windows-cli-worker.js +150 -10
  524. package/dist/windows-cli-worker.js.map +1 -1
  525. package/dist/windows-cli.d.ts +7 -1
  526. package/dist/windows-cli.js +19 -2
  527. package/dist/windows-cli.js.map +1 -1
  528. package/dist/workflow-templates/default.md +2 -2
  529. package/package.json +1 -1
@@ -47,6 +47,7 @@ register("settings", {
47
47
  webPreviewCdn: "HTML previews may load libraries from cdnjs / jsDelivr",
48
48
  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
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
+ 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.",
50
51
  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.",
51
52
  general: "General Settings",
52
53
  advanced: "Advanced",
@@ -517,7 +518,6 @@ register("settings", {
517
518
  webLead: "How the web dashboard behaves. A change that loosens access (longer sessions, the browser terminal back on or for longer, the public link) waits for a fleet admin to confirm it: in General in Telegram or Discord, or here on the dashboard where its card offers that; one that tightens it applies at once.",
518
519
  webPublicRefused: "Web settings can't be changed over a public link. Open the dashboard at its own address to change them.",
519
520
  webSessionTitle: "Sign-in sessions",
520
- webSessionHint: "For sign-ins at the dashboard's own address (this computer, the LAN, a tailnet). Over a public link (a temporary one or your permanent link), a session lasts at most 8 h, ends after 30 min idle and never outlives the link; an admin's also never lasts longer than these settings (a guest's follows the guest settings). Shortening ends the sessions it now outlives; lengthening applies to new sign-ins and to an existing one's idle time on its next use. Empty = the default.",
521
521
  sessionAbsolute: "Session length, hours (1–720)",
522
522
  sessionIdle: "Sign out after unused for, hours (1–720)",
523
523
  sessionRange: "Must be a number of hours from 1 to 720",
@@ -733,6 +733,7 @@ register("settings", {
733
733
  webPreviewCdn: "HTML 預覽可從 cdnjs / jsDelivr 載入函式庫",
734
734
  webPreviewCdnHint: "頁面的指令碼可以從 cdnjs(/ajax/libs/)和 jsDelivr(/npm/)載入函式庫;這些請求會離開這台電腦,CDN 會看到它們,頁面也可能藉此把資料傳出去。只限指令碼、樣式與字型——預覽仍然無法擷取或送出任何資料。預設關閉;之後開始的預覽才會套用,公開連結也一樣。",
735
735
  webUsagePublic: "透過公開連結提供用量報告", webUsagePublicHint: "Fleet → 用量(最多 400 天、每個 agent 的 token、請求、訊息與依牌價換算的 API 等值)也會透過臨時公開連結提供。預設關閉;訪客一律看不到。變更立即生效。",
736
+ webLogThinking: "顯示思考(僅 admin,預設關閉)", webLogThinkingHint: "把模型的思考加進 Agent 聊天裡的活動區塊(區塊本身依各 Agent 的工具進度設定決定)與紀錄分頁。Claude Code:開啟後 AgEnD 也會請它寫出思考摘要,從該 Agent 下次啟動起生效,並可能改變每一輪的花費。只有在這個儀表板登入的 admin 才會收到——公開連結和訪客一律不會。思考可能包含人不會直接說出口的內容;機密值仍會遮蔽。關閉時不會動 Claude 的設定。",
736
737
  webLogTab: "紀錄分頁:每個 agent 的步驟", webLogTabHint: "在每個 Agent 的「紀錄」分頁顯示提示、回覆、工具呼叫與結果,以及 fleet 事件;只在分頁開著時從它自己的對話紀錄讀取。機密值會遮蔽。公開連結也看得到。開啟需 fleet admin 確認。",
737
738
  general: "一般設定",
738
739
  advanced: "進階",
@@ -1176,7 +1177,6 @@ register("settings", {
1176
1177
  webLead: "網頁儀表板的行為。放寬存取的變更(延長 session、重新開啟或延長瀏覽器終端機、公開連結)需要 fleet admin 確認:在 Telegram 或 Discord 的 General,或在儀表板上卡片提供確認的地方;收緊的變更會立即套用。",
1177
1178
  webPublicRefused: "無法透過公開連結變更網頁設定。請從儀表板本身的網址開啟後再變更。",
1178
1179
  webSessionTitle: "登入 session",
1179
- webSessionHint: "適用於從儀表板本身網址登入的 session(本機、區域網路、tailnet)。透過公開連結(臨時連結或你的固定網域)的 session 最長 8 小時、閒置 30 分鐘就結束,也不會超過連結本身;管理員的 session 也不會超過這裡的設定(訪客依訪客設定)。縮短會讓已超過新限制的 session 結束;延長會套用到新的登入,以及既有 session 下次使用時的閒置時間。留空 = 預設值。",
1180
1180
  sessionAbsolute: "Session 時長,小時(1–720)",
1181
1181
  sessionIdle: "閒置多久後登出,小時(1–720)",
1182
1182
  sessionRange: "必須是 1 到 720 之間的小時數",
@@ -10,3 +10,11 @@
10
10
  /* The ⓘ sits against the switch it explains; the backup-renewal switch is on the same line, with its own ⓘ. */
11
11
  .s-account-keepalive > .s-tipwrap { margin-left: calc(-1 * var(--s-2)); }
12
12
  .s-account-keepalive .s-keepalive-fallback { display: flex; align-items: center; gap: var(--s-2); }
13
+
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) {
16
+ .s-account-keepalive .check { min-height: var(--tap); }
17
+ .s-account-keepalive .s-i .s-tipbtn { position: relative; width: var(--tap); height: var(--tap); border-color: transparent; }
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); }
19
+ .s-account-keepalive .s-i .s-tipbtn:hover::before, .s-account-keepalive .s-i .s-tipbtn:focus-visible::before { border-color: var(--accent); }
20
+ }
@@ -0,0 +1,10 @@
1
+ /* AGEND-113: an account's usage block when it has pools (usage-pool.js): a block per pool, its name over its windows. The block itself is `.s-account-usage` (accounts.css), whose grid a pool spans. */
2
+ .s-account-usage.is-pooled { row-gap: var(--s-2); }
3
+ .s-usage-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-1) var(--s-4); min-width: 0; }
4
+ .s-usage-pool { grid-column: 1 / -1; min-width: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
5
+ /* A window that has reset since the read: its tag, and the full card's "reset since" words where the bar would be. */
6
+ .s-usage-reset { align-items: center; }
7
+ .s-usage-reset-note { grid-column: 2 / -1; min-width: 0; color: var(--text-3); font-size: var(--fs-xs); overflow-wrap: anywhere; }
8
+ /* AGEND-119: why the numbers are the last known ones (the cause and when they were read, then what the read said), under the windows and across the block. */
9
+ .s-usage-stale { min-width: 0; overflow-wrap: anywhere; }
10
+ .s-usage-stale-detail { display: block; }
@@ -60,6 +60,8 @@ button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-
60
60
  .s-account-usage.is-stale .u-cm-pct { color: var(--text-3); }
61
61
  .s-account-usage.is-stale .u-cm-fill { background: var(--text-3); }
62
62
  .s-usage-stale { grid-column: 1 / -1; color: var(--text-3); font-size: var(--fs-xs); }
63
+ /* AGEND-119: the reset cell is as wide as its words. The Usage panel's meter gives it a fixed 3.7em, which cuts a week's "↻ 47小時" in zh-TW (a CJK character is a full em); here the bar gives way instead. */
64
+ .s-account-usage .u-cm { grid-template-columns: 2.2em minmax(2em, 1fr) 2.9em minmax(3.7em, max-content); }
63
65
 
64
66
  .s-account-default { margin: 0; }
65
67
  .s-accounts .s-account-default { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--bg); }
@@ -86,3 +88,10 @@ button.s-account-used { display: inline-flex; align-items: center; gap: var(--s-
86
88
  .s-account-install-run > .signin-warn { color: var(--warn); font-weight: var(--fw-semibold); }
87
89
  .s-account-install-output { margin: 0; padding: var(--s-2) var(--s-3); max-height: 14em; overflow: auto; border-radius: var(--r-sm); background: var(--bg); color: var(--text-2); font-size: var(--fs-xs); line-height: 1.5; }
88
90
  .s-account-install-run .s-actions { justify-content: flex-end; }
91
+
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
+ 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) {
95
+ .s-account-head .s-account-add, .s-account-machine-head .s-account-add { min-height: var(--tap); min-width: var(--tap); }
96
+ .s-accounts .s-account-default select { min-height: var(--tap); }
97
+ }
@@ -340,8 +340,8 @@ export function signInHref() {
340
340
 
341
341
  // ── AgEnD Hub P1 (docs/design/hub-ui-client.md): the page's mark, set by the listener that served it ──
342
342
  register("hubShell", {
343
- en: { brand: "AgEnD Hub", ask: "Ask", exposures: "My exposures", admin: "Administration" },
344
- "zh-TW": { brand: "AgEnD Hub", ask: "提問", exposures: "我的公開 Agent", admin: "管理" },
343
+ en: { brand: "AgEnD Hub", ask: "Ask", exposures: "My shared agents", admin: "Administration" },
344
+ "zh-TW": { brand: "AgEnD Hub", ask: "提問", exposures: "我分享的 Agent", admin: "管理" },
345
345
  });
346
346
  function hubMarks() {
347
347
  const tokens = String((typeof document !== "undefined" && document.body?.dataset?.hub) || "").split(/\s+/);
@@ -543,6 +543,8 @@ export function PanelHeader({ title, sub, children, headingRef, nav, notice, pag
543
543
  const admin = useCanCreate();
544
544
  const canCreate = admin && !!newInstanceOpener;
545
545
  const pane = paneContext.usePane?.();
546
+ if (!pane && shell.popout && openInstanceOf(navStore.get().route) && shell.popoutHeader) return html`<${shell.popoutHeader} title=${title} sub=${sub} headingRef=${headingRef} nav=${nav}
547
+ notice=${notice} pageControls=${pageControls} pageActions=${pageActions} />`;
546
548
  if (pane?.Header) return html`<${pane.Header} title=${title} sub=${sub} headingRef=${headingRef} nav=${nav} notice=${notice}
547
549
  pageControls=${pageControls} pageActions=${pageActions} />`;
548
550
  return html`<header data-trust="header" class=${`panel-head${shell.collapsed ? " collapsed" : ""}`}>
@@ -669,7 +671,7 @@ register("pendingSummary", {
669
671
  "hub.run.stop": "Stop this fleet's Hub and pause chats with shared agents. Valid sign-ins can resume when it runs again. Nothing is deleted.",
670
672
  "hub.preview.on": "Serve HTML previews on this Hub at port {0}.",
671
673
  "hub.preview.off": "Stop serving HTML previews on this Hub.",
672
- "hub.membership.enable": "Enable this fleet's Hub membership. Pairing and sharing an agent are separate choices.",
674
+ "hub.membership.enable": "Enable this fleet's Hub membership. Connecting and sharing an agent are separate choices.",
673
675
  "hub.membership.disable": "Disable this fleet's Hub membership. New Hub work and answer disclosure stop; existing agent conversations remain.",
674
676
  "hub.companyJoin.confirm": "Connect this Fleet to Hub {0} using your company account. Agent sharing stays separate.",
675
677
  "hub.companyJoin.repair": "Replace the saved identity of Hub {0} using the new company link. This does not connect a Fleet.",
@@ -682,7 +684,7 @@ register("pendingSummary", {
682
684
  "hub.pairing.summary.connect": "Connect this fleet to the Hub at {0}",
683
685
  "hub.pairing.summary.approval": "It asks the Hub's owner and administrator to approve it",
684
686
  "hub.pairing.summary.confirm": "Confirm the pairing fingerprint for {0}",
685
- "hub.pairing.summary.disconnect": "Disconnect this fleet from the Hub at {0} ({1}, pairing {2})",
687
+ "hub.pairing.summary.disconnect": "Remove this fleet's connection to the Hub at {0} ({1}, connection {2})",
686
688
  "hub.pairing.summary.withdraw": "Every agent shared there is withdrawn; the Hub's administrator revokes the fleet there",
687
689
  "settings_confirm.summary.default": "default", "settings_confirm.summary.absent": "absent", "settings_confirm.summary.fingerprint": "fingerprint",
688
690
  "settings_confirm.summary.text_chars": "{0} characters", "settings_confirm.summary.text_none": "not set",
@@ -710,7 +712,7 @@ register("pendingSummary", {
710
712
  "hub.run.stop": "停止這個 Fleet 的 Hub,暫停與分享的 Agent 的對話。再次執行後,仍有效的登入狀態可以恢復。不會刪除任何資料。",
711
713
  "hub.preview.on": "在這個 Hub 的連接埠 {0} 提供 HTML 預覽。",
712
714
  "hub.preview.off": "停止在這個 Hub 提供 HTML 預覽。",
713
- "hub.membership.enable": "啟用這個 Fleet 的 Hub 成員功能。配對與分享 Agent 需另外選擇。",
715
+ "hub.membership.enable": "啟用這個 Fleet 的 Hub 成員功能。連接與分享 Agent 需另外選擇。",
714
716
  "hub.membership.disable": "停用這個 Fleet 的 Hub 成員功能。停止新的 Hub 工作與回答傳送;既有 Agent 對話會保留。",
715
717
  "hub.companyJoin.confirm": "以公司帳號將這個 Fleet 連接到 Hub {0}。分享 Agent 需另外選擇。",
716
718
  "hub.companyJoin.repair": "使用新的公司連結,更換 Hub {0} 已儲存的身分。這項操作不會連接 Fleet。",
@@ -723,7 +725,7 @@ register("pendingSummary", {
723
725
  "hub.pairing.summary.connect": "將這個 Fleet 連接到 {0} 的 Hub",
724
726
  "hub.pairing.summary.approval": "需要 Hub 的擁有者與管理員核准",
725
727
  "hub.pairing.summary.confirm": "確認 {0} 的配對指紋",
726
- "hub.pairing.summary.disconnect": "中斷這個 Fleet 與 {0} 的 Hub 連接({1},配對 {2})",
728
+ "hub.pairing.summary.disconnect": "移除這個 Fleet 與 {0} 的 Hub 連接({1},連接 {2})",
727
729
  "hub.pairing.summary.withdraw": "撤下所有分享到該 Hub 的 Agent;由 Hub 管理員在該處撤銷這個 Fleet",
728
730
  "settings_confirm.summary.default": "預設", "settings_confirm.summary.absent": "未設定", "settings_confirm.summary.fingerprint": "指紋",
729
731
  "settings_confirm.summary.text_chars": "{0} 字", "settings_confirm.summary.text_none": "未設定",
@@ -1246,10 +1248,11 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
1246
1248
  const guest = guestPage(); // #1920: a guest's page — no operations, pending changes or owner CSS (#2855: usage, yes)
1247
1249
  // AgEnD Hub P1 (S3b): a Hub workspace has none of the fleet's lines, rails, tabs or bars (their endpoints are the fleet's).
1248
1250
  const hub = hubMarks().hub;
1249
- const cls = ["shell", shell.collapsed ? "sb-collapsed" : "", shell.drawer ? "sb-open" : "", shell.keyboard ? "kb-open" : "", guest ? "guest" : ""].filter(Boolean).join(" ");
1251
+ const popout = shell.popout === true && !!openInstanceOf(nav.route);
1252
+ const cls = ["shell", popout ? "chat-popout" : "", shell.collapsed ? "sb-collapsed" : "", shell.drawer ? "sb-open" : "", shell.keyboard ? "kb-open" : "", guest ? "guest" : ""].filter(Boolean).join(" ");
1250
1253
  return html`<div ref=${root} class=${cls}>
1251
1254
  <a data-trust="navigation" class="skip" href="#main">${t("app.skip")}</a>
1252
- <${Sidebar} route=${nav.route} onNewInstance=${onNewInstance} viewOnly=${viewOnly} />
1255
+ ${popout ? null : html`<${Sidebar} route=${nav.route} onNewInstance=${onNewInstance} viewOnly=${viewOnly} />`}
1253
1256
  <div class="scrim" onClick=${closeDrawer} aria-hidden="true"></div>
1254
1257
  <main id="main" class="main" tabindex="-1" inert=${shell.drawer && narrow() ? true : undefined}>
1255
1258
  <${ConnectionLine} />
@@ -1261,8 +1264,8 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
1261
1264
  ${viewOnly || guest || hub || !shell.banner ? null : html`<${shell.banner} />`}
1262
1265
  ${shell.workspaceHost ? html`<${shell.workspaceHost} nav=${nav} panels=${panels} />` : html`<${Outlet} route=${nav.route} seq=${nav.seq} panels=${panels} />`}
1263
1266
  </main>
1264
- ${hub ? null : html`<${RightRail} route=${nav.route} />`}
1265
- ${hub ? null : html`<${BottomTabs} route=${nav.route} viewOnly=${viewOnly} />`}
1267
+ ${hub || popout ? null : html`<${RightRail} route=${nav.route} />`}
1268
+ ${hub || popout ? null : html`<${BottomTabs} route=${nav.route} viewOnly=${viewOnly} />`}
1266
1269
  ${shell.dialog ? html`<${shell.dialog.Component} ...${shell.dialog.props} onClose=${closeDialog} />` : null}
1267
1270
  ${viewOnly || guest || hub || (nav.route && nav.route.panel === "settings") ? null : html`<${PendingChanges} />`}
1268
1271
  <${ConfirmHost} />
@@ -1271,3 +1274,6 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
1271
1274
  <${Toasts} />
1272
1275
  </div>`;
1273
1276
  }
1277
+
1278
+ // Optional presentation handshake: retained shells keep their ordinary single-chat frame.
1279
+ Shell.popoutVersion = 1;
@@ -319,7 +319,7 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
319
319
  }
320
320
  .panel-actions { display: flex; align-items: center; gap: var(--s-1); }
321
321
  /* #3637: versioned optional host. Retained app.css never offers the entry, even with newer JS. */
322
- :root { --chat-workspace-version: 1; }
322
+ :root { --chat-workspace-version: 1; --chat-workspace-geometry-version: 1; }
323
323
  .chat-workspace { position: relative; flex: 1; min-height: 0; min-width: 0; display: grid; overflow: hidden; gap: 8px; background: var(--border); }
324
324
  .chat-workspace.ws-right { grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr); }
325
325
  .chat-workspace.ws-stack { grid-template-rows: minmax(320px, 1fr) minmax(320px, 1fr); }
@@ -356,12 +356,41 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
356
356
  }
357
357
  .ws-pane .pv-panel { position: absolute; inset: 0; width: auto; min-width: 0; max-width: none; z-index: 5; }
358
358
  .ws-pane .pv-divider { display: none; }
359
+ /* Geometry is opt-in: retained PR2 hosts keep their original two-cell grid with this CSS. */
360
+ .chat-workspace.ws-geometry { gap: 0; }
361
+ .ws-geometry.ws-right { grid-template-columns: var(--ws-first, minmax(360px, 1fr)) 8px minmax(360px, 1fr); }
362
+ .ws-geometry.ws-stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--ws-first, minmax(320px, 1fr)) 8px minmax(320px, 1fr); }
363
+ /* Leave room for the one-row header and the coarse-pointer float handle; every action remains scrollable. */
364
+ .ws-geometry .ws-pane-head > .panel-actions > .menu > .menu-list { max-height: calc(var(--ws-pane-height) - 112px); overflow-y: auto; }
365
+ .ws-sash-slot { position: relative; z-index: 6; min-width: 0; min-height: 0; }
366
+ .ws-sash { position: absolute; inset: 0; cursor: col-resize; touch-action: none; }
367
+ .ws-sash::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 32px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--border-strong); }
368
+ .ws-stack .ws-sash { cursor: row-resize; }
369
+ .ws-stack .ws-sash::after { width: 32px; height: 3px; }
370
+ .ws-sash:is(:hover, :focus-visible)::after, .ws-resizing .ws-sash::after { background: var(--accent); }
371
+ .ws-sash:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
372
+ .ws-geometry.ws-float { display: block; background: var(--bg); }
373
+ .ws-float > .ws-pane { width: 100%; height: 100%; }
374
+ .ws-float > .ws-floating { position: absolute; left: var(--ws-float-x); top: var(--ws-float-y); width: var(--ws-float-width); height: var(--ws-float-height); z-index: 4; padding-bottom: 20px; border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
375
+ .ws-floating .ws-pane-head { cursor: move; touch-action: none; }
376
+ .ws-float-resize { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; padding: 0; background: transparent; border: 0; cursor: nwse-resize; touch-action: none; color: var(--text-3); }
377
+ .ws-float-resize::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
378
+ .ws-resizing { user-select: none; }
379
+ .ws-resizing iframe { pointer-events: none; }
380
+ .ws-drop-overlay { position: fixed; z-index: 40; cursor: move; }
381
+ .ws-drop-target { position: absolute; display: grid; place-items: center; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
382
+ .ws-drop-target > span { max-width: calc(100% - 32px); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); color: var(--text); background: var(--bg); box-shadow: var(--shadow-1); }
383
+ .ws-geometry-hint { position: absolute; top: 8px; left: 8px; z-index: 7; max-width: calc(100% - 16px); margin: 0; padding: var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--bg); box-shadow: var(--shadow-1); pointer-events: none; }
359
384
  .v-li:has(> .inst-workspace) { position: relative; }
360
385
  .v-li > .inst-workspace { position: absolute; right: 0; top: 6px; visibility: hidden; }
361
386
  .inst-workspace > .icon-btn { width: 28px; height: 28px; padding: 0; }
362
387
  .v-li:hover > .inst-workspace, .v-li:focus-within > .inst-workspace { visibility: visible; }
363
388
  .v-li:has(> .inst-workspace):is(:hover, :focus-within) > .inst-gear { visibility: hidden; }
364
389
  @media (pointer: coarse) {
390
+ .ws-right .ws-sash { left: -18px; right: -18px; }
391
+ .ws-stack .ws-sash { top: -18px; bottom: -18px; }
392
+ .ws-float > .ws-floating { padding-bottom: var(--tap); }
393
+ .ws-float-resize { width: var(--tap); height: var(--tap); }
365
394
  .ws-pane-head :is(.icon-btn, .btn, .seg-item) { min-width: var(--tap); min-height: var(--tap); }
366
395
  .ws-agent-tabs :is(.icon-btn, .seg-item) { min-width: var(--tap); min-height: var(--tap); }
367
396
  .inst-workspace > .icon-btn { min-width: var(--tap); min-height: var(--tap); }
@@ -389,32 +418,106 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
389
418
  .p-log .log-bar { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--border); flex: none; }
390
419
  .p-log .log-bar .chip-btn.on { color: var(--text); background: var(--surface-2); font-weight: var(--fw-semibold); }
391
420
  .p-log .log-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
392
- .p-log .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
393
- .p-log .log-item { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
394
- .p-log .log-item.turn-start { margin-top: var(--s-4); }
395
- .p-log .log-item.k-user { background: var(--user-bubble); }
396
- .p-log .log-item.k-turn_end, .p-log .log-item.k-state, .p-log .log-item.k-event { background: transparent; color: var(--text-3); padding-block: 2px; font-size: var(--fs-sm); }
397
- .p-log .log-item.k-error, .p-log .log-item.s-failed { --lbar-color: var(--danger); padding-left: calc(var(--s-3) + 3px); }
398
- .p-log .log-head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
399
- .p-log .log-icon { flex: none; }
400
- .p-log .log-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
401
- .p-log .log-cat { font-weight: var(--fw-semibold); }
402
- .p-log .log-subject { font-size: var(--fs-sm); }
403
- .p-log .log-time { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
404
- .p-log .log-status { flex: none; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
405
- .p-log .log-status.done { color: var(--ok); }
406
- .p-log .log-status.failed { color: var(--danger); }
407
- .p-log .log-status.interrupted { color: var(--warn, var(--text-3)); }
408
- .p-log .log-status .spinner { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
409
- .p-log .log-repeat { flex: none; font-size: var(--fs-xs); padding: 0 6px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
410
- .p-log .log-text { white-space: pre-wrap; margin-top: var(--s-1); font-size: var(--fs-sm); }
411
- .p-log .log-text.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
412
- .p-log .log-text.folded { max-height: 10.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
413
- .p-log .link-btn { border: 0; background: none; padding: 2px 0; color: var(--accent); cursor: pointer; font-size: var(--fs-xs); }
414
- .p-log .log-detail { margin-top: var(--s-1); display: flex; flex-direction: column; gap: var(--s-2); }
415
- .p-log .log-sec-h { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
416
- .p-log .log-older, .p-log .log-start { text-align: center; margin: var(--s-2) 0; }
421
+ :is(.p-log, .act-block) .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
422
+ :is(.p-log, .act-block) .log-item { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
423
+ :is(.p-log, .act-block) .log-item.turn-start { margin-top: var(--s-4); }
424
+ :is(.p-log, .act-block) .log-item.k-user { background: var(--user-bubble); }
425
+ :is(.p-log, .act-block) .log-item.k-turn_end, .p-log .log-item.k-state, .p-log .log-item.k-event { background: transparent; color: var(--text-3); padding-block: 2px; font-size: var(--fs-sm); }
426
+ :is(.p-log) .log-item.k-error, .p-log .log-item.s-failed { --lbar-color: var(--danger); padding-left: calc(var(--s-3) + 3px); }
427
+ :is(.p-log, .act-block) .log-head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
428
+ :is(.p-log, .act-block) .log-icon { flex: none; }
429
+ :is(.p-log, .act-block) .log-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
430
+ :is(.p-log, .act-block) .log-cat { font-weight: var(--fw-semibold); }
431
+ :is(.p-log, .act-block) .log-subject { font-size: var(--fs-sm); }
432
+ :is(.p-log, .act-block) .log-time { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
433
+ :is(.p-log, .act-block) .log-status { flex: none; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
434
+ :is(.p-log, .act-block) .log-status.done { color: var(--ok); }
435
+ :is(.p-log, .act-block) .log-status.failed { color: var(--danger); }
436
+ :is(.p-log, .act-block) .log-status.interrupted { color: var(--warn, var(--text-3)); }
437
+ :is(.p-log, .act-block) .log-status .spinner { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
438
+ :is(.p-log, .act-block) .log-repeat { flex: none; font-size: var(--fs-xs); padding: 0 6px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
439
+ :is(.p-log, .act-block) .log-text { white-space: pre-wrap; margin-top: var(--s-1); font-size: var(--fs-sm); }
440
+ :is(.p-log, .act-block) .log-text.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
441
+ :is(.p-log, .act-block) .log-text.folded { max-height: 10.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
442
+ :is(.p-log, .act-block) .link-btn { border: 0; background: none; padding: 2px 0; color: var(--accent); cursor: pointer; font-size: var(--fs-xs); }
443
+ :is(.p-log, .act-block) .log-detail { margin-top: var(--s-1); display: flex; flex-direction: column; gap: var(--s-2); }
444
+ :is(.p-log, .act-block) .log-sec-h { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
445
+ :is(.p-log, .act-block) .log-older, .p-log .log-start { text-align: center; margin: var(--s-2) 0; }
417
446
  .p-log .log-off { padding: var(--s-6) var(--s-4); }
447
+ /* AGEND-181/197: the chat's activity block, as #3648's mockups draw it — above each agent reply a `.card` with a native
448
+ <details>: running, shut to one live line (the current step · N tools · elapsed), opened the steps with the newest in bold;
449
+ finished, one line "Tool history · used N tools" above the reply. The rows are the Log's own (log-row.js, compact), the
450
+ tokens and the card are the app's; only the frame is new. It sits close to the reply it belongs to (the thread's gap
451
+ would put it a message away). */
452
+ .activity-row { align-self: stretch; min-width: 0; }
453
+ .activity-row:not(:last-child) { margin-bottom: calc(var(--s-2) - var(--s-6)); }
454
+ .activity-row[hidden] { display: none; }
455
+ .card.act-block { margin: 0; padding: var(--s-1) var(--s-3); gap: 0; font-size: var(--fs-sm); }
456
+ .act-block .act-sum { display: flex; align-items: center; gap: var(--s-2); min-height: var(--s-7); cursor: pointer; list-style: none; color: var(--text-2); }
457
+ @media (pointer: coarse) { .act-block .act-sum { min-height: var(--tap); } }
458
+ .act-block .act-sum::-webkit-details-marker { display: none; }
459
+ .act-block .act-chev { flex: none; display: inline-flex; transition: transform .15s ease; transform: rotate(-90deg); }
460
+ .act-block[open] .act-chev { transform: none; }
461
+ .act-block .act-ic { flex: none; display: inline-flex; color: var(--text-3); }
462
+ .act-block .act-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
463
+ .act-block .act-title.act-now { color: var(--text); }
464
+ .act-block .act-meta { flex: none; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
465
+ .act-block .act-spin { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
466
+ /* AGEND-200 (the preview feedback; the look is Multica's run list): nothing in the opened block scrolls, and a step is ONE small,
467
+ quiet line — its icon sits on a thin timeline, then what it did (one line, cut), its kind in a quiet word, its status, and a
468
+ chevron when there is more. The whole line opens it, so every "show / hide" is in the same place. Thinking and what the agent
469
+ said show two lines until opened. A long output is cut per step (the `folded` mask and "Show all"), never scrolled. Failure and
470
+ running are the icon's colour and one small word; a step that went well says nothing. */
471
+ .act-block .act-body { padding: var(--s-1) 0 var(--s-2); display: flex; flex-direction: column; gap: var(--s-1); border-top: 1px solid var(--border); }
472
+ .act-block .act-earlier { align-self: flex-start; margin-left: calc(14px + var(--s-2)); }
473
+ .act-block .act-lvl, .act-block .act-partial { margin: 0; }
474
+ .act-block .log-list { gap: 0; }
475
+ .act-block .log-item { --row-h: 24px; position: relative; background: transparent; border-radius: 0; padding: 0 0 0 calc(14px + var(--s-2)); font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--text-2); }
476
+ @media (pointer: coarse) { .act-block .log-item { --row-h: 32px; } }
477
+ .act-block .log-item::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--border-strong); opacity: .55; }
478
+ .act-block .log-item:first-child::before { top: calc(var(--row-h) / 2); }
479
+ .act-block .log-item:last-child::before { bottom: auto; height: calc(var(--row-h) / 2); }
480
+ .act-block .log-item:only-child::before { display: none; }
481
+ .act-block .log-item.compact { display: block; }
482
+ .act-block .log-head { display: flex; align-items: flex-start; gap: var(--s-2); width: 100%; min-width: 0; min-height: var(--row-h); padding: calc((var(--row-h) - var(--lh-xs)) / 2) 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; }
483
+ .act-block button.log-head { cursor: pointer; border-radius: var(--r-sm); }
484
+ .act-block button.log-head:hover .log-sum, .act-block button.log-head:focus-visible .log-sum { color: var(--text); }
485
+ .act-block .log-icon { position: absolute; left: 0; top: calc((var(--row-h) - 14px) / 2); display: inline-flex; background: var(--surface); color: var(--text-3); }
486
+ .act-block .log-sum { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
487
+ .act-block .log-subject { font-size: var(--fs-xs); }
488
+ .act-block .log-head .grow { flex: 1 1 0; min-width: 0; }
489
+ .act-block .log-head .log-cat { flex: none; font-weight: var(--fw-regular); color: var(--text-3); }
490
+ .act-block .log-chev { flex: none; width: 12px; display: inline-flex; align-self: center; color: var(--text-3); transform: rotate(-90deg); transition: transform .15s ease; }
491
+ .act-block .log-chev.none { visibility: hidden; }
492
+ .act-block [aria-expanded="true"] > .log-chev { transform: none; }
493
+ .act-block .log-item.latest .log-subject { font-weight: var(--fw-semibold); color: var(--text); }
494
+ .act-block .log-item.s-failed .log-icon, .act-block .log-item.k-error .log-icon { color: var(--danger); }
495
+ .act-block .log-item.s-running .log-icon { color: var(--accent); }
496
+ .act-block .log-status { flex: none; align-self: center; display: inline-flex; align-items: center; font-size: var(--fs-xs); white-space: nowrap; }
497
+ .act-block .log-status.failed { color: var(--danger); }
498
+ .act-block .log-status.interrupted { color: var(--warn, var(--text-3)); }
499
+ .act-block .log-status.running { color: var(--accent); }
500
+ .act-block .log-status .spinner { margin-right: 4px; }
501
+ .act-block .log-repeat { font-size: var(--fs-xs); }
502
+ /* thinking and what the agent said: two lines of it until opened; opened, all of it (wrapped, never scrolled) */
503
+ .act-block .log-sum.log-think, .act-block .log-sum.log-said { flex: 1 1 0; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; color: var(--text-3); }
504
+ .act-block .log-sum.log-think { font-style: italic; }
505
+ .act-block .log-sum.log-said { color: var(--text-2); }
506
+ .act-block .log-sum.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; white-space: pre-wrap; overflow: visible; }
507
+ .act-block .log-head.log-more .grow { display: none; }
508
+ /* what a step opens to: the command once as code, an edit as removed / added text, the arguments only for a tool we do not read, the output cut */
509
+ .act-block .log-detail { margin: 0 0 var(--s-2); gap: var(--s-2); }
510
+ .act-block .log-code { margin: 0; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: var(--lh-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
511
+ .act-block .log-code.rm { color: var(--danger); }
512
+ .act-block .log-code.add { color: var(--ok); }
513
+ .act-block .log-code.rm::before { content: "− "; }
514
+ .act-block .log-code.add::before { content: "+ "; }
515
+ .act-block .log-prompt { color: var(--text-3); user-select: none; }
516
+ .act-block .log-diff { display: flex; flex-direction: column; gap: 2px; }
517
+ .act-block .log-text { margin-top: 0; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); }
518
+ .act-block .log-item.k-error .log-text { color: var(--danger); }
519
+ .act-block .log-sub { margin: 0 0 var(--s-1); }
520
+ .act-block .log-sub .log-item { --row-h: 22px; }
418
521
  /* The header's controls are one height, the icon buttons' (36 px): its small buttons, and the instance tabs when they share
419
522
  its row (a phone puts them on a row of their own, under it). */
420
523
  .panel-head .btn-sm { min-height: 36px; }
@@ -468,6 +571,37 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
468
571
  .menu-heading { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); border-top: 1px solid var(--border); margin-top: var(--s-1); }
469
572
  .menu-heading:first-child { border-top: 0; margin-top: 0; }
470
573
  .menu-radio .menu-tick { width: 16px; display: inline-flex; color: var(--accent); }
574
+ /* M-2959: pane and sidebar actions share the same one-line icon rows. */
575
+ :root { --agent-menu-version: 1; }
576
+ .agent-menu > .menu-list { min-width: min(280px, calc(100vw - 16px)); max-width: min(360px, calc(100vw - 16px)); max-height: min(70vh, calc(100vh - 32px)); overflow-y: auto; transform: translateX(var(--menu-shift, 0px)); }
577
+ .agent-menu > .menu-list.menu-up { top: auto; bottom: calc(100% + var(--s-1)); }
578
+ .agent-menu > .menu-list.menu-compact { max-height: 180px; }
579
+ .agent-menu > .menu-list.menu-short { max-height: 96px; }
580
+ .agent-menu > .menu-list.menu-anchored { position: fixed; margin: 0; border: 0; left: var(--menu-x, 8px); top: var(--menu-y, 8px); right: auto; bottom: auto; transform: none; max-height: min(var(--menu-available, 70vh), calc(100vh - 16px)); }
581
+ .inst-row-menu > .menu-list:not(.menu-anchored) { min-width: min(220px, calc(100vw - 16px)); }
582
+ .agent-menu .menu-item { white-space: nowrap; }
583
+ .agent-menu .menu-item > .icon, .agent-menu .menu-tick { flex: none; }
584
+ .agent-menu .menu-item > span:not(.menu-tick):not(.menu-state) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
585
+ .agent-menu .menu-state { display: inline-flex; flex: none; color: var(--accent); }
586
+ .agent-menu .menu-starred { fill: currentColor; color: var(--warn); }
587
+ .agent-menu .menu-label-value { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
588
+ .agent-menu .menu-label-value > span:first-child { flex: none; }
589
+ .agent-menu .menu-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); text-align: right; }
590
+ .v-li > .inst-row-menu { position: relative; top: auto; right: auto; flex: none; visibility: visible; }
591
+ .inst-row-menu > .icon-btn { width: 28px; height: 28px; padding: 0; color: var(--text-3); }
592
+ .inst-menu-star { display: inline-flex; color: var(--warn); }
593
+ .inst-menu-star .icon, .inst-favorite-mark .icon { fill: currentColor; }
594
+ .inst-menu-more { display: none; }
595
+ .v-li:is(:hover, :focus-within) .inst-menu-star, .inst-row-menu:has(> button[aria-expanded="true"]) .inst-menu-star { display: none; }
596
+ .v-li:is(:hover, :focus-within) .inst-menu-more, .inst-row-menu:has(> button[aria-expanded="true"]) .inst-menu-more { display: inline-flex; }
597
+ .inst-favorite-mark { flex: none; width: 28px; display: inline-flex; justify-content: center; color: var(--warn); }
598
+ .inst.inst-favorite { position: relative; }
599
+ .inst.inst-favorite::before { content: ""; position: absolute; left: 0; top: var(--s-2); bottom: var(--s-2); width: 4px; background: color-mix(in srgb, var(--id, var(--accent)) 80%, var(--text) 20%); pointer-events: none; }
600
+ @media (max-width: 899px), (pointer: coarse) {
601
+ .inst-row-menu > .icon-btn { min-width: var(--tap); min-height: var(--tap); }
602
+ .agent-menu .menu-item { min-width: var(--tap); min-height: var(--tap); }
603
+ }
604
+ @media (hover: none) { .inst-menu-star { display: none; } .inst-menu-more { display: inline-flex; } }
471
605
 
472
606
  /* ── Dialog: centred on a desktop, a bottom sheet on a phone ── */
473
607
  .dlg { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-2); width: min(480px, calc(100vw - 32px)); max-height: 85vh; }
@@ -575,6 +709,24 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
575
709
  /* Settings share the available management workspace, independently of the chat's reading width.
576
710
  Keep fieldsets as real boxes so disabled forms and their confirmation boundaries stay intact. */
577
711
  .p-settings > .panel-body > .col { width: 100%; max-width: var(--settings-width); min-width: 0; margin: 0 auto; container: settings-page / inline-size; }
712
+ /* #3714: Settings return belongs to scrolling content; the pane-header X only closes a pane. */
713
+ .agent-settings-heading.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s-3); }
714
+ .agent-settings-heading .s-page-head > div { min-width: 0; max-width: 100%; }
715
+ .agent-settings-heading .s-scope { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
716
+ .agent-settings-heading.s-row, .agent-settings-index-return.s-row { min-height: 0; padding: 0; border-radius: 0; background: none; }
717
+ .agent-settings-index-return.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; }
718
+ .agent-settings-index-return h2 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
719
+ @media (max-width: 899px) {
720
+ .agent-settings-heading.s-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
721
+ .p-agent-page .agent-settings-heading.s-row > .s-back { min-width: var(--tap); min-height: var(--tap); margin: 0; padding: 0; border: 0; background: none; white-space: nowrap; }
722
+ .agent-settings-heading .s-page-head { min-width: 0; margin: 0; }
723
+ .agent-settings-heading .s-page-title { display: block; }
724
+ .agent-settings-heading .s-page-head h2 { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
725
+ .agent-settings-heading .s-page-lead, .agent-settings-heading .s-scope { display: none; }
726
+ }
727
+ @media (max-width: 899px), (pointer: coarse) {
728
+ .p-details .agent-back-chat { min-width: var(--tap); min-height: var(--tap); }
729
+ }
578
730
  .s-page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; }
579
731
  .s-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
580
732
  .s-page-head h2 { margin: 0; color: var(--text); font-size: 24px; font-weight: var(--fw-semibold); line-height: 1.35; letter-spacing: -0.02em; }
@@ -845,11 +997,14 @@ html.lb-open .scroller { overflow: hidden; }
845
997
  .lb .icon-btn { color: #fff; }
846
998
  .lb .icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
847
999
  .lb .lb-orig { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
1000
+ /* #3727: 「標註」 beside Open original (tokens only; the editor's own sheet is image-annotate.css). */
1001
+ .lb .lb-annotate { color: var(--media-ink); background: var(--media-btn); border-color: var(--media-line); }
1002
+ .lb .lb-annotate:hover, .lb .lb-annotate:focus-visible, .lb .lb-annotate:active { color: var(--media-ink); background: var(--media-btn-on); border-color: var(--media-ink); }
848
1003
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(0, 0, 0, 0.4); }
849
1004
  .lb-prev { left: var(--s-2); }
850
1005
  .lb-next { right: var(--s-2); }
851
1006
  /* A phone: the arrows sit below the image's middle band, out of its way, still reachable with a thumb. */
852
- @media (max-width: 480px) { .lb .lb-orig .lbl { display: none; } .lb-nav { top: auto; bottom: var(--s-4); transform: none; } .lb-stage { padding-bottom: 72px; } }
1007
+ @media (max-width: 480px) { .lb .lb-orig .lbl, .lb .lb-annotate .lbl { display: none; } .lb-nav { top: auto; bottom: var(--s-4); transform: none; } .lb-stage { padding-bottom: 72px; } }
853
1008
  .msg .att-file { font-size: var(--fs-sm); color: var(--accent); }
854
1009
  .msg .att-size { color: var(--text-3); }
855
1010
  .msg .md p { margin: 0 0 var(--s-3); } .msg .md p:last-child { margin-bottom: 0; }
@@ -1022,8 +1177,10 @@ img.amb-p { object-fit: contain; }
1022
1177
  box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
1023
1178
  /* M-2789: the 「引用」 pill on a selected passage (chat-quote.js) — the message menu's look, one item, its pointer at the
1024
1179
  passage's end; readable on white and dark alike (the shared border and shadow tokens). A phone's is a 44-px tap. */
1025
- .msg-menu.quote-pop { min-width: 0; padding: 2px; border: 1px solid var(--border-strong); overflow: visible; }
1026
- .quote-pop .quote-pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; white-space: nowrap; }
1180
+ .msg-menu.quote-pop { min-width: 0; max-width: calc(100vw - 32px); padding: 2px; border: 1px solid var(--border-strong); overflow: visible; }
1181
+ .quote-pop .quote-pick { display: flex; align-items: center; gap: var(--s-3); padding: 5px 10px; font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); white-space: nowrap; }
1182
+ .quote-pop .quote-pick .icon { flex: none; }
1183
+ .quote-pop .quote-pick > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
1027
1184
  .quote-pop.is-phone .quote-pick { min-height: var(--tap); padding: 10px 14px; }
1028
1185
  .quote-pop .quote-tip { position: absolute; width: 10px; height: 10px; background: var(--surface); transform: rotate(45deg); pointer-events: none; }
1029
1186
  .quote-pop .quote-tip.down { bottom: -6px; border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
@@ -1211,7 +1368,7 @@ img.amb-p { object-fit: contain; }
1211
1368
  .reply-bar { display: flex; align-items: center; gap: var(--s-2); min-width: 0; margin: var(--s-2) var(--s-2) 0; padding: 4px var(--s-2) 4px calc(var(--s-3) + 3px);
1212
1369
  --lbar-color: var(--accent); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); }
1213
1370
  .reply-bar .reply-mark { color: var(--accent); }
1214
- .reply-bar .reply-label { font-weight: var(--fw-semibold); white-space: nowrap; }
1371
+ .reply-bar .reply-label { font-weight: var(--fw-semibold); white-space: nowrap; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; } /* #3727: a long sender never pushes ✕ off a phone */
1215
1372
  .reply-bar .reply-text { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1216
1373
  .reply-bar .reply-cancel { flex: none; width: 28px; height: 28px; }
1217
1374
  .file-chip { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); padding: 4px var(--s-2); border-radius: var(--r-md); background: var(--bg); max-width: 320px; }
@@ -1343,6 +1500,7 @@ img.amb-p { object-fit: contain; }
1343
1500
  .dlg-box { max-height: 90vh; }
1344
1501
  .dlg-actions { padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
1345
1502
  .dlg-actions .btn { flex: 1; min-height: var(--tap); }
1503
+ .dlg-head .dlg-x { min-width: var(--tap); min-height: var(--tap); }
1346
1504
  .row-item .btn, .s-row .btn, .n-actions .btn { min-height: var(--tap); }
1347
1505
  .s-row .icon-btn { min-width: var(--tap); min-height: var(--tap); }
1348
1506
  .p-settings .s-company-join :is(.field input, .btn) { min-height: var(--tap); }
@@ -1658,6 +1816,8 @@ body.side-resizing, body.side-resizing * { cursor: col-resize !important; user-s
1658
1816
  .s-ident { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
1659
1817
  .s-facts { min-width: 0; color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1660
1818
  .s-conn .s-actions { margin-left: 0; flex-wrap: nowrap; }
1819
+ /* Retry and Settings stay together: in a wide list they are the last of the connection's three action columns. */
1820
+ .s-conn-buttons { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-1); }
1661
1821
  @media (max-width: 899px) {
1662
1822
  .s-row.s-conn { grid-template-columns: minmax(0, 1fr) auto; }
1663
1823
  .s-conn .s-facts { grid-column: 1 / -1; grid-row: 2; }
@@ -3540,13 +3700,28 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
3540
3700
  }
3541
3701
  @container settings-page (min-width: 900px) {
3542
3702
  .p-settings .s-agents-list > .s-group:nth-child(2) > .s-group-head { border-radius: 0; }
3543
- .p-settings .s-agent-columns, .p-settings .s-agent-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(120px, .8fr) minmax(170px, 1.2fr) minmax(80px, .6fr) minmax(170px, auto); align-items: center; }
3544
- .p-settings .s-classic-columns, .p-settings .s-classic-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.3fr) minmax(90px, .6fr) minmax(150px, auto); align-items: center; }
3703
+ /* AGEND-256: the columns belong to the list, not to each row. Each row used to be its own grid, so its "auto"
3704
+ actions column took that row's buttons (Pause + Stop when running, only Wake when paused; a longer bot name) and
3705
+ the fr columns before it moved with it: a paused row sat 8–24px right of a running one. The list now holds the
3706
+ tracks; the header, each group and each row take them as a subgrid, so every row measures against the widest.
3707
+ A browser without subgrid keeps the per-row template (the second declaration is dropped). */
3708
+ .p-settings .s-agents-list { --s-cols: minmax(150px, 1.1fr) minmax(120px, .8fr) minmax(170px, 1.2fr) minmax(80px, .6fr) minmax(170px, auto); }
3709
+ .p-settings .s-classic-list { --s-cols: minmax(170px, 1fr) minmax(180px, 1.3fr) minmax(90px, .6fr) minmax(150px, auto); }
3710
+ /* A connection's actions are three columns of their own (token | state | Retry + Settings), so the token chip and the
3711
+ state start at one x in every row, whatever the bot's name and whether Retry is there. */
3712
+ .p-settings .s-connections-list { --s-cols: minmax(180px, .9fr) minmax(180px, 1.4fr) auto auto auto; }
3713
+ .p-settings :is(.s-agents-list, .s-classic-list, .s-connections-list) { display: grid; grid-template-columns: var(--s-cols); column-gap: 16px; row-gap: 0; }
3714
+ .p-settings :is(.s-agents-list, .s-classic-list, .s-connections-list) > *, .p-settings .s-agents-list > .s-group > * { grid-column: 1 / -1; }
3715
+ .p-settings .s-agents-list > .s-group { display: grid; grid-template-columns: var(--s-cols); grid-template-columns: subgrid; column-gap: 16px; }
3716
+ .p-settings :is(.s-agent-columns, .s-agent-row, .s-classic-columns, .s-classic-row, .s-connection-columns),
3717
+ .p-settings .s-connections-list > .s-conn { display: grid; grid-template-columns: var(--s-cols); grid-template-columns: subgrid; column-gap: 16px; align-items: center; }
3545
3718
  .p-settings :is(.s-agent-row, .s-classic-row) > * { grid-column: auto; grid-row: auto; }
3546
3719
  .p-settings :is(.s-agent-row, .s-classic-row) > .s-actions { grid-column: auto; grid-row: auto; }
3547
- .p-settings .s-connection-columns, .p-settings .s-connections-list > .s-conn { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(180px, 1.4fr) minmax(240px, auto); align-items: center; }
3548
- .p-settings .s-connections-list .s-facts, .p-settings .s-connections-list .s-actions { grid-column: auto; grid-row: auto; }
3549
- .p-settings .s-connections-list .s-actions { flex-wrap: wrap; }
3720
+ .p-settings .s-connections-list .s-facts { grid-column: auto; grid-row: auto; text-align: left; }
3721
+ .p-settings .s-connection-columns > span:last-child { grid-column: 3 / -1; }
3722
+ .p-settings .s-connections-list > .s-conn > .s-actions { grid-column: 3 / -1; grid-row: auto; display: grid; grid-template-columns: auto auto auto; grid-template-columns: subgrid; column-gap: 16px; justify-items: start; }
3723
+ .p-settings .s-connections-list .s-state { max-width: 22em; }
3724
+ .p-settings .s-connections-list .s-conn-buttons { justify-self: end; }
3550
3725
  }
3551
3726
  @container settings-page (max-width: 600px) {
3552
3727
  .p-settings :is([data-section="agent-defaults"], [data-section="chat"]) .s-general .grid2 { grid-template-columns: minmax(0, 1fr); }
@@ -4265,7 +4440,23 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
4265
4440
  .s-hub-section .hub-retention .grid2 { grid-template-columns: minmax(0, 1fr); }
4266
4441
  .s-hub-section .hub-retention input { min-width: 0; max-width: 100%; min-height: var(--tap); font-size: var(--fs-md); }
4267
4442
  .s-hub-section .hub-retention button { align-self: flex-start; max-width: 100%; min-height: var(--tap); white-space: normal; }
4443
+ /* M-2901: the Hub address card's fields, choices and buttons are phone tap targets (style guide rule 7). */
4444
+ .s-hub-section .hub-web-address :is(input:not([type="radio"]), .btn, label.check) { min-height: var(--tap); }
4445
+ .s-hub-section .hub-web-address input:not([type="radio"]) { font-size: var(--fs-md); }
4446
+ .s-hub-section .hub-web-address .grid2 { grid-template-columns: minmax(0, 1fr); }
4447
+ .s-hub-section .hub-web-address label.check { display: flex; align-items: center; gap: var(--s-2); }
4268
4448
  }
4449
+ /* M-2901: Settings → Hub → Hub address. Fields fill the card; a fingerprint breaks only after a colon (<wbr>), never inside a
4450
+ byte; an end date stays on one line; notes avoid a one-character last line (the longhand: the text-wrap shorthand would
4451
+ reset the end date's nowrap). Chinese text keeps breaking between characters (keep-all left long clauses with a lone
4452
+ 「。」 on a phone). The certificate choices sit in the Advanced box without a frame of their own. */
4453
+ .hub-web-address :is(input:not([type="radio"]), textarea) { display: block; width: 100%; max-width: 100%; min-width: 0; }
4454
+ .hub-web-address textarea { resize: vertical; font-family: var(--font-mono, monospace); }
4455
+ .hub-web-address .hub-addr-fp { overflow-wrap: normal; word-break: normal; }
4456
+ .hub-web-address .hub-addr-exp { white-space: nowrap; }
4457
+ .hub-web-address :is(.note, [role="status"], .err) { text-wrap-style: pretty; }
4458
+ .hub-web-address fieldset.hub-addr-cert { border: 0; padding: 0; margin: 0; min-width: 0; }
4459
+ .hub-web-address .hub-addr-confirm h4 { margin: 0 0 var(--s-2); }
4269
4460
 
4270
4461
  /* S-119: the existing company, manual and sharing controls share one Settings card. */
4271
4462
  .s-hub-connection { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
@@ -4340,3 +4531,10 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
4340
4531
  .instructions-field { display: flex; flex-direction: column; gap: var(--s-2); }
4341
4532
  .instructions-field > .seg-inline { align-self: flex-start; }
4342
4533
  .instructions-field .pv-code { max-height: 24rem; }
4534
+
4535
+ /* #3637: opt-in pop-out presentation. Normal single-pane selectors and phone layout are unchanged. */
4536
+ :root { --chat-popout-version: 1; }
4537
+ .chat-popout > .scrim, .chat-popout .sb-open, .chat-popout .sb-new, .chat-popout .sb-search { display: none !important; }
4538
+ .chat-popout .main { width: 100%; }
4539
+ .chat-popout .popup-pane-head { flex-wrap: nowrap; gap: var(--s-1); padding: var(--s-1) var(--s-2); }
4540
+ .chat-popout .popup-pane-head .inst-switch { flex-basis: auto; order: initial; width: auto; display: flex; }
@@ -25,6 +25,7 @@ import { startThemes } from "./app-themes.js";
25
25
 
26
26
  const boot = document.body.dataset;
27
27
  const workspaceLanding = location.pathname === "/ui";
28
+ const popoutRequested = new URLSearchParams(location.search).get("presentation") === "popout";
28
29
  // #1523 N3: this device's text size, on the root before the first paint of any panel.
29
30
  initTextSize();
30
31
  initUsageRail();
@@ -151,7 +152,13 @@ if (hubPage) {
151
152
  };
152
153
  setNewInstanceOpener(onNewInstance);
153
154
  // Optional alpha feature: an old server/CSS/module set keeps the original single-panel path and drafts.
154
- if (!guest && boot.chatWorkspace === "1" && getComputedStyle(document.documentElement).getPropertyValue("--chat-workspace-version").trim() === "1") {
155
+ if (!guest && popoutRequested && boot.chatWorkspace === "1") {
156
+ Promise.all([import("/ui/js/chat-popout.js"), chatBoot]).then(([popout, chat]) => {
157
+ popout.installPopout({ nav: navigation, chat, scope: boot.chatLayoutScope });
158
+ }).catch(() => {}); // old optional assets retain the full single-chat frame and the parent's draft
159
+ }
160
+ if (!guest && !popoutRequested && boot.chatWorkspace === "1" && getComputedStyle(document.documentElement).getPropertyValue("--chat-workspace-version").trim() === "1"
161
+ && getComputedStyle(document.documentElement).getPropertyValue("--chat-workspace-geometry-version").trim() === "1") {
155
162
  Promise.all([import("/ui/js/chat-workspace.js"), chatBoot]).then(([workspace, chat]) => {
156
163
  workspace.installWorkspaceEntry({ nav: navigation, chat, landing: workspaceLanding, scope: boot.chatLayoutScope,
157
164
  ready: async () => {
@@ -35,6 +35,14 @@
35
35
  return u;
36
36
  }
37
37
 
38
+ /**
39
+ * #3716: CJK characters and full-width punctuation — kana, CJK ideographs (and extension A, compatibility), Hangul, the CJK
40
+ * symbols and punctuation block (「」『』、。) and the half/full-width forms (:,()!?;). Before a bare URL they start it; inside
41
+ * one they end it.
42
+ */
43
+ var CJK = "\\u3000-\\u30ff\\u3400-\\u4dbf\\u4e00-\\u9fff\\uac00-\\ud7af\\uf900-\\ufaff\\uff00-\\uffef";
44
+ var BARE_URL_RE = new RegExp("(^|[\\s(" + CJK + "])((?:https?:\\/\\/)[^\\s<" + CJK + "]+[^\\s<.,;:!?)\\]'\"&" + CJK + "])", "g");
45
+
38
46
  function link(href, label) {
39
47
  return '<a href="' + href + '" target="_blank" rel="noopener noreferrer" data-trust="link">' + label + "</a>";
40
48
  }
@@ -97,8 +105,9 @@
97
105
  var href = safeHref(url);
98
106
  return href ? stash(store, link(href, emphasis(label))) : m;
99
107
  });
100
- // bare URLs
101
- s = s.replace(/(^|[\s(])((?:https?:\/\/)[^\s<]+[^\s<.,;:!?)\]'"&])/g, function (m, pre, url) {
108
+ // bare URLs — after the start, a space, "(" or (#3716) a CJK character / full-width punctuation ("開好了:https://…"), and
109
+ // ending at the first CJK character or full-width punctuation ("https://x/y交給" links https://x/y), as Discord does.
110
+ s = s.replace(BARE_URL_RE, function (m, pre, url) {
102
111
  var href = safeHref(url);
103
112
  return href ? pre + stash(store, link(href, url)) : m;
104
113
  });