@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
@@ -0,0 +1,151 @@
1
+ /** Render only after the existing ACL and current-authority checks. No store/proof mutation. */
2
+ import type { DeliveryStatusPage } from "./delivery-outbox.js";
3
+ /** Best-effort display redaction, not a replacement for receipt ACL or exact-content detail access. */
4
+ export declare function receiptExcerpt(text: string): string;
5
+ export declare function compactDeliveryStatus(page: DeliveryStatusPage, detail?: boolean, content_includes?: string): DeliveryStatusPage | {
6
+ items: ({
7
+ delivery_id: string;
8
+ operation_id: string;
9
+ correlation_id: string | null;
10
+ source_instance: string;
11
+ target_instance: string;
12
+ kind: string;
13
+ state: import("./delivery-outbox.js").OutboxState;
14
+ attempt_no: number;
15
+ created_at: string;
16
+ updated_at: string;
17
+ status_summary: string;
18
+ error_summary: string | null;
19
+ safe_to_retry: boolean;
20
+ message_id: string | null;
21
+ content_sha256: string | null;
22
+ content?: string | null;
23
+ forwarded_by?: Array<{
24
+ source_instance: string;
25
+ message_id: string;
26
+ forwarded_at: string;
27
+ }>;
28
+ origin?: import("./human-delivery-receipts.js").HumanOrigin;
29
+ wire_content_sha256?: string | null;
30
+ delivered_at?: string | null;
31
+ proof_kind?: import("./human-delivery-receipts.js").HumanReceiptProof["tag"] | null;
32
+ authority?: import("./authority/web-authority.js").HumanAuthority;
33
+ delivery_mode: "steer" | "idle_queue";
34
+ submission_mode: import("./delivery-outbox.js").DurableSubmissionMode | null;
35
+ consumed_at: string | null;
36
+ consumed_via: import("./delivery-outbox.js").ConsumedVia | null;
37
+ reply_obligation?: {
38
+ state: "open" | "answered" | "expired";
39
+ opened_at: string;
40
+ last_asked_at: string;
41
+ nudged_at: string | null;
42
+ overdue_notified_at: string | null;
43
+ answered_at: string | null;
44
+ expired_at?: string | null;
45
+ } | null;
46
+ waiting_reason?: string | null;
47
+ content_includes?: undefined;
48
+ } | {
49
+ delivery_id: string;
50
+ operation_id: string;
51
+ correlation_id: string | null;
52
+ source_instance: string;
53
+ target_instance: string;
54
+ kind: string;
55
+ state: import("./delivery-outbox.js").OutboxState;
56
+ attempt_no: number;
57
+ created_at: string;
58
+ updated_at: string;
59
+ status_summary: string;
60
+ error_summary: string | null;
61
+ safe_to_retry: boolean;
62
+ message_id: string | null;
63
+ content_sha256: string | null;
64
+ content?: string | null;
65
+ forwarded_by?: Array<{
66
+ source_instance: string;
67
+ message_id: string;
68
+ forwarded_at: string;
69
+ }>;
70
+ origin?: import("./human-delivery-receipts.js").HumanOrigin;
71
+ wire_content_sha256?: string | null;
72
+ delivered_at?: string | null;
73
+ proof_kind?: import("./human-delivery-receipts.js").HumanReceiptProof["tag"] | null;
74
+ authority?: import("./authority/web-authority.js").HumanAuthority;
75
+ delivery_mode: "steer" | "idle_queue";
76
+ submission_mode: import("./delivery-outbox.js").DurableSubmissionMode | null;
77
+ consumed_at: string | null;
78
+ consumed_via: import("./delivery-outbox.js").ConsumedVia | null;
79
+ reply_obligation?: {
80
+ state: "open" | "answered" | "expired";
81
+ opened_at: string;
82
+ last_asked_at: string;
83
+ nudged_at: string | null;
84
+ overdue_notified_at: string | null;
85
+ answered_at: string | null;
86
+ expired_at?: string | null;
87
+ } | null;
88
+ waiting_reason?: string | null;
89
+ content_includes: boolean | null;
90
+ } | {
91
+ content_includes?: undefined;
92
+ delivery_id: string;
93
+ message_id: string | null;
94
+ state: import("./delivery-outbox.js").OutboxState;
95
+ safe_to_retry: boolean;
96
+ source_instance: string;
97
+ target_instance: string;
98
+ kind: string;
99
+ correlation_id?: string | undefined;
100
+ content_sha256: string | null;
101
+ excerpt?: string | null | undefined;
102
+ proof_kind?: import("./human-delivery-receipts.js").HumanPositiveTag | null | undefined;
103
+ authority?: import("./authority/web-authority.js").HumanAuthority | undefined;
104
+ origin?: import("./human-delivery-receipts.js").HumanOrigin | undefined;
105
+ wire_content_sha256?: string | null | undefined;
106
+ delivered_at?: string | null | undefined;
107
+ forwarded_by?: {
108
+ source_instance: string;
109
+ message_id: string;
110
+ forwarded_at: string;
111
+ }[] | undefined;
112
+ consumed_at?: string | undefined;
113
+ consumed_via?: import("./delivery-outbox.js").ConsumedVia | null | undefined;
114
+ waiting_reason?: string | undefined;
115
+ } | {
116
+ content_includes: boolean | null;
117
+ delivery_id: string;
118
+ message_id: string | null;
119
+ state: import("./delivery-outbox.js").OutboxState;
120
+ safe_to_retry: boolean;
121
+ source_instance: string;
122
+ target_instance: string;
123
+ kind: string;
124
+ correlation_id?: string | undefined;
125
+ content_sha256: string | null;
126
+ excerpt?: string | null | undefined;
127
+ proof_kind?: import("./human-delivery-receipts.js").HumanPositiveTag | null | undefined;
128
+ authority?: import("./authority/web-authority.js").HumanAuthority | undefined;
129
+ origin?: import("./human-delivery-receipts.js").HumanOrigin | undefined;
130
+ wire_content_sha256?: string | null | undefined;
131
+ delivered_at?: string | null | undefined;
132
+ forwarded_by?: {
133
+ source_instance: string;
134
+ message_id: string;
135
+ forwarded_at: string;
136
+ }[] | undefined;
137
+ consumed_at?: string | undefined;
138
+ consumed_via?: import("./delivery-outbox.js").ConsumedVia | null | undefined;
139
+ waiting_reason?: string | undefined;
140
+ })[];
141
+ next_cursor: string | null;
142
+ };
143
+ interface SendAck {
144
+ sent: boolean;
145
+ queued: boolean;
146
+ delivery_id?: string;
147
+ correlation_id?: string;
148
+ warning?: string;
149
+ }
150
+ export declare function compactSendAck<T extends SendAck>(ack: T, detail?: boolean, correlationWasGiven?: boolean): T | SendAck;
151
+ export {};
@@ -0,0 +1,50 @@
1
+ /** Best-effort display redaction, not a replacement for receipt ACL or exact-content detail access. */
2
+ export function receiptExcerpt(text) {
3
+ return text
4
+ .replace(/-----BEGIN [^-]*PRIVATE KEY-----[\s\S]*?(?:-----END [^-]*PRIVATE KEY-----|$)/g, "[redacted]")
5
+ .replace(/\bBearer\s+[^\s"'<>]+/gi, "Bearer [redacted]")
6
+ .replace(/\b(?:4\/[A-Za-z0-9_-]{20,}|(?:gh[pousr]_|github_pat_|sk-(?:proj-)?|xox[baprs]-|glpat-|ya29\.|AIza)[A-Za-z0-9_-]{12,}|eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)/g, "[redacted]")
7
+ .replace(/((?:[?&](?:code|state|access_token|refresh_token|id_token)|\b(?:[\w-]*token|api[_ -]?key|password|secret|(?:one[- ]time |authorization |verification |oauth |device |login |sign[- ]in )code))["']?\s*[:=]\s*["']?)[^\s"'&<>]+/gi, "$1[redacted]")
8
+ .replace(/\b\d{6,8}\b/g, "[redacted]")
9
+ .slice(0, 200);
10
+ }
11
+ export function compactDeliveryStatus(page, detail = false, content_includes) {
12
+ if (detail && content_includes === undefined)
13
+ return page;
14
+ return {
15
+ items: page.items.map(item => {
16
+ const check = content_includes === undefined ? {} : { content_includes: typeof item.content === "string" ? item.content.includes(content_includes) : null };
17
+ if (detail)
18
+ return { ...item, ...check };
19
+ return {
20
+ delivery_id: item.delivery_id, message_id: item.message_id,
21
+ state: item.state, safe_to_retry: item.safe_to_retry,
22
+ source_instance: item.source_instance, target_instance: item.target_instance, kind: item.kind,
23
+ ...(item.correlation_id ? { correlation_id: item.correlation_id } : {}),
24
+ content_sha256: item.content_sha256,
25
+ ...(item.content !== undefined ? { excerpt: item.content === null ? null : receiptExcerpt(item.content) } : {}),
26
+ ...(item.proof_kind !== undefined ? { proof_kind: item.proof_kind } : {}),
27
+ ...(item.authority !== undefined ? { authority: item.authority } : {}),
28
+ ...(item.origin !== undefined ? { origin: item.origin } : {}),
29
+ ...(item.wire_content_sha256 !== undefined ? { wire_content_sha256: item.wire_content_sha256 } : {}),
30
+ ...(item.delivered_at !== undefined ? { delivered_at: item.delivered_at } : {}),
31
+ ...(item.forwarded_by !== undefined ? { forwarded_by: item.forwarded_by } : {}),
32
+ // Accepted delivery is not consumption. Preserve positive consumption evidence only.
33
+ ...(item.consumed_at ? { consumed_at: item.consumed_at, consumed_via: item.consumed_via } : {}),
34
+ ...(item.waiting_reason ? { waiting_reason: item.waiting_reason } : {}),
35
+ ...check,
36
+ };
37
+ }),
38
+ next_cursor: page.next_cursor,
39
+ };
40
+ }
41
+ export function compactSendAck(ack, detail = false, correlationWasGiven = false) {
42
+ if (detail)
43
+ return ack;
44
+ return { sent: ack.sent, queued: ack.queued,
45
+ ...(ack.delivery_id ? { delivery_id: ack.delivery_id } : {}),
46
+ ...(correlationWasGiven && ack.correlation_id ? { correlation_id: ack.correlation_id } : {}),
47
+ ...(ack.warning ? { warning: ack.warning } : {}),
48
+ };
49
+ }
50
+ //# sourceMappingURL=tool-receipt-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-receipt-output.js","sourceRoot":"","sources":["../src/tool-receipt-output.ts"],"names":[],"mappings":"AAGA,uGAAuG;AACvG,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,IAAI;SACR,OAAO,CAAC,+EAA+E,EAAE,YAAY,CAAC;SACtG,OAAO,CAAC,yBAAyB,EAAE,mBAAmB,CAAC;SACvD,OAAO,CAAC,0KAA0K,EAAE,YAAY,CAAC;SACjM,OAAO,CAAC,kOAAkO,EAAE,cAAc,CAAC;SAC3P,OAAO,CAAC,cAAc,EAAE,YAAY,CAAC;SACrC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAwB,EAAE,MAAM,GAAG,KAAK,EAAE,gBAAyB;IACvG,IAAI,MAAM,IAAI,gBAAgB,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAC1D,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC3B,MAAM,KAAK,GAAG,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC5J,IAAI,MAAM;gBAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC;YACzC,OAAO;gBACL,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC1D,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa;gBACpD,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;gBAC7F,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvE,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/G,GAAG,CAAC,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACzE,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtE,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7D,GAAG,CAAC,IAAI,CAAC,mBAAmB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpG,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/E,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/E,qFAAqF;gBACrF,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/F,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvE,GAAG,KAAK;aACT,CAAC;QACJ,CAAC,CAAC;QACF,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC;AACJ,CAAC;AAGD,MAAM,UAAU,cAAc,CAAoB,GAAM,EAAE,MAAM,GAAG,KAAK,EAAE,mBAAmB,GAAG,KAAK;IACnG,IAAI,MAAM;QAAE,OAAO,GAAG,CAAC;IACvB,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM;QACzC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,GAAG,CAAC,mBAAmB,IAAI,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5F,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjD,CAAC;AACJ,CAAC"}
package/dist/types.d.ts CHANGED
@@ -440,6 +440,14 @@ export interface WebConfig {
440
440
  * admin's change, confirmed like any access change (Settings → Web).
441
441
  */
442
442
  log_tab?: boolean;
443
+ /**
444
+ * AGEND-181/197: show the model's thinking in the chat's activity block (and the Log tab) — default OFF. Only a local
445
+ * dashboard's admin session is ever sent it (filtered on the server; never the public link or a guest), and only for an
446
+ * agent whose `tool_progress` is not off. On: AgEnD also asks Claude Code to write its thinking summaries at its next
447
+ * launch (`showThinkingSummaries`, which can change what a turn costs — see the PR). Off: none is read and Claude's
448
+ * settings are not touched.
449
+ */
450
+ log_thinking?: boolean;
443
451
  /**
444
452
  * #2293: the dashboard's global search (Ctrl+K) over chat messages, cross-instance messages and Task Board tasks — an
445
453
  * index of its own (search.db; `retention_days` unset or 0 = no age limit, ROW_CAP 300,000 still applies;
@@ -492,11 +500,16 @@ export interface WebConfig {
492
500
  * tailnet) is configurable; a public-link session's limits stay fixed. Hours, 1 ≤ idle_hours ≤ absolute_hours ≤ 720;
493
501
  * defaults 48 (absolute, from sign-in) and 48 (idle, since the last use; #1670). Shortening applies to existing sessions.
494
502
  */
503
+ /** #3708: `public_link` — the public link's own limits; longer than 30 min / 8 h only with `public_link.hostname`. */
495
504
  session?: {
496
505
  local?: {
497
506
  absolute_hours?: number;
498
507
  idle_hours?: number;
499
508
  };
509
+ public_link?: {
510
+ absolute_hours?: number;
511
+ idle_minutes?: number;
512
+ };
500
513
  };
501
514
  /**
502
515
  * #1306: HTML previews in the web chat (default true). false: no preview listener; cards show Source and
@@ -1,4 +1,4 @@
1
- // #3292: Settings → Accounts → "Keep sign-in alive", one line under a Claude Code or Codex row (signin-keepalive.ts on the
1
+ // #3292: Settings → Accounts → "Keep sign-in alive", one line under a Claude Code, Codex or (AGEND-119) Antigravity row (signin-keepalive.ts on the
2
2
  // server decides and runs; this page only shows and asks). A module of its own with its own words and stylesheet: a tab
3
3
  // that loaded an older accounts-view.js never shows it, and it never meets an older cached strings file or accounts.css.
4
4
  // - The switch: once a day AgEnD renews this sign-in when no agent or room is using it — `claude auth status` / Codex's
@@ -17,28 +17,37 @@ register("accountsKeepAlive", {
17
17
  label: "Keep connection alive",
18
18
  hint_claude: "Once a day, if no agent is using it, AgEnD renews this connection with Claude Code's own status check. No model request.",
19
19
  hint_codex: "Once a day, if no agent is using it, AgEnD renews this connection through Codex's own refresh. No model request.",
20
+ hint_antigravity: "About once an hour, when the access token is close to lapsing and no agent is using it, AgEnD runs `agy models` for this account, which renews the token. That is what keeps its usage current. No model request.",
20
21
  fallback: "Backup renewal (a tiny request if the status check doesn't renew)",
21
22
  fallbackHint: "When the regular status check can't extend the sign-in, allow one very short request on the smallest model (a few dozen tokens) to keep it connected.",
22
23
  plan: "Plan: {0}", last: "Last check {0}: {1}",
23
24
  o_refreshed: "renewed", o_fallback_refreshed: "renewed with the small request", o_not_needed: "still valid", o_checked: "connected",
24
- o_in_use: "in use, kept alive by its agents", o_unsupported: "nothing to renew (an API key)", o_not_renewed: "not renewed",
25
- o_needs_sign_in: "needs reconnecting", o_transient: "couldn't reach the service; will try again tomorrow",
25
+ o_in_use: "in use, kept alive by its agents", o_unsupported: "nothing to renew (an API key)", o_keyring: "kept in the system keyring: nothing here to renew", o_not_renewed: "not renewed",
26
+ o_needs_sign_in: "needs reconnecting", o_transient: "couldn't reach the service; will try again later",
26
27
  on: "Keep connection alive is on.", off: "Keep connection alive is off.", failed: "That didn't work. Try again.",
27
28
  },
28
29
  "zh-TW": {
29
30
  label: "保持連接",
30
31
  hint_claude: "沒有 Agent 使用時,AgEnD 每天用 Claude Code 自己的狀態檢查續期這個連接一次。不會呼叫模型。",
31
32
  hint_codex: "沒有 Agent 使用時,AgEnD 每天透過 Codex 自己的刷新續期這個連接一次。不會呼叫模型。",
33
+ hint_antigravity: "沒有 Agent 使用、而且 access token 快過期時,AgEnD 大約每小時替這個帳號執行一次 `agy models`,它會更新 token,用量才不會顯示(未更新)。不會呼叫模型。",
32
34
  fallback: "備援續期(狀態檢查未續期時改送極小請求)",
33
35
  fallbackHint: "當一般狀態檢查未能延長登入效期時,允許改用最小模型送一次極短請求(約數十 token)來維持連接。",
34
36
  plan: "方案:{0}", last: "上次檢查 {0}:{1}",
35
37
  o_refreshed: "已續期", o_fallback_refreshed: "已用小請求續期", o_not_needed: "仍有效", o_checked: "已連接",
36
- o_in_use: "使用中,由它的 Agent 保持連接", o_unsupported: "沒有需要續期的(API 金鑰)", o_not_renewed: "沒有續期",
37
- o_needs_sign_in: "需要重新連接", o_transient: "連不上服務;明天會再試",
38
+ o_in_use: "使用中,由它的 Agent 保持連接", o_unsupported: "沒有需要續期的(API 金鑰)", o_keyring: "憑證存在系統鑰匙圈,這裡沒有可續期的檔案", o_not_renewed: "沒有續期",
39
+ o_needs_sign_in: "需要重新連接", o_transient: "連不上服務;稍後會再試",
38
40
  on: "已開啟保持連接。", off: "已關閉保持連接。", failed: "沒有成功,請再試一次。",
39
41
  },
40
42
  });
41
43
  const tk = (k, ...v) => t(`accountsKeepAlive.${k}`, ...v);
44
+ /** The words that say what the switch does for a CLI. */
45
+ function hintKey(backend) {
46
+ if (backend === "claude-code") return "hint_claude";
47
+ if (backend === "antigravity") return "hint_antigravity";
48
+ return "hint_codex";
49
+ }
50
+ const WARN_MS = 10 * 86_400_000;
42
51
 
43
52
  /** This control's stylesheet, linked once (an older accounts.css has no rules for it). */
44
53
  export function linkKeepAliveCss(doc = typeof document !== "undefined" ? document : null) {
@@ -102,7 +111,7 @@ export function KeepAliveControl({ row, onSaved }) {
102
111
  ${/* Ridge #3321 S10: an on/off feature is the shared switch (s-ui-toggle), as Hub membership and web authority; the paid fallback stays a checkbox. */ ""}
103
112
  <label class="check"><input class="s-ui-toggle" type="checkbox" role="switch" checked=${!!k.enabled} disabled=${busy} onChange=${(e) => save(e.currentTarget.checked, k.fallback)} />
104
113
  <span>${tk("label")}</span></label>
105
- <${InfoTip} text=${tk(row.backend === "claude-code" ? "hint_claude" : "hint_codex")} name=${tk("label")} />
114
+ <${InfoTip} text=${tk(hintKey(row.backend))} name=${tk("label")} />
106
115
  ${row.backend === "claude-code" && k.enabled ? html`<span class="s-keepalive-fallback"><label class="check"><input type="checkbox" checked=${!!k.fallback} disabled=${busy} onChange=${(e) => save(true, e.currentTarget.checked)} />
107
116
  <span>${tk("fallback")}</span></label><${InfoTip} text=${tk("fallbackHint")} name=${tk("fallback")} /></span>` : null}
108
117
  ${k.planType ? html`<small class="s-keepalive-plan">${tk("plan", k.planType)}</small>` : null}
@@ -24,6 +24,7 @@ register("accountsManage", {
24
24
  added: "Account “{0}” added.", addedHostSignIn: "Account “{0}” added. Send /login in chat, or ask General.",
25
25
  remove: "Remove", removeTitle: "Remove the {0} account “{1}”?",
26
26
  removeLead: "This deletes the account's folder on this host: its connection.", removeLeadClaude: "This deletes the account's folder on this host: its connection and its own copies of conversations.",
27
+ removeLeadFolder: "This deletes the account's folder on this host: its connection and its own conversations.",
27
28
  removeAfter: "Agents can't use it afterwards.", sep: " ",
28
29
  inUse: "Still used by — move each to another account first:", inUseAgent: "Agent {0}", inUseRoom: "ClassicBot room {0}", inUseDefault: "The fleet default for {0} agents",
29
30
  move: "Move…", roomHow: "In that room's settings: Runtime & model → Account.",
@@ -39,6 +40,10 @@ register("accountsManage", {
39
40
  stopUsers: "Using it now — they stop working until it's connected again:", nobody: "No agent, ClassicBot room or fleet default uses it.",
40
41
  signOutGo: "Disconnect", switchGo: "Disconnect and reconnect", signingOut: "Disconnecting…", signedOut: "Disconnected.",
41
42
  keychainLeft: "Disconnected, but a Keychain item for this account is still on this Mac. Remove it in Keychain Access.",
43
+ signOutLeadFiles: "{0} has no logout command, so AgEnD deletes this account's connection file on the host, then checks with {0} that it is disconnected. Its conversations stay.",
44
+ switchLeadFiles: "{0} has no logout command, so AgEnD deletes this account's connection file, then opens Connect for the account you want. Agents using it restart on the new account once you've connected.",
45
+ err_still_signed_in: "The connection file was deleted, but {0} still says it is connected: it keeps this connection somewhere AgEnD does not delete (the system's keyring). Disconnect inside {0} (its /logout).",
46
+ signedOutUnverified: "Disconnected. {0} did not answer the check afterwards, so that is not confirmed.",
42
47
  removedKeychainLeft: "Account “{0}” removed, but a Keychain item for it is still on this Mac. Remove it in Keychain Access.",
43
48
  err_unsupported: "This CLI can't be disconnected from here.", err_signout_failed: "{0}'s disconnect did not succeed. Try again here.",
44
49
  defName: "default connection", acctName: "account “{0}”",
@@ -47,6 +52,10 @@ register("accountsManage", {
47
52
  removeLeadMachine: "This deletes the account's folder on {0}: its connection and its own copies of conversations. That computer's Runtime does it, and records it.",
48
53
  inUseMachineDefault: "This computer's default account for agents (change it on that computer: agend-runtime profile default NAME)",
49
54
  signOutLeadMachine: "AgEnD asks {0}'s Runtime to run {1}'s own logout command for this account. Its conversations stay.",
55
+ removeLeadMachineFolder: "This deletes the account's folder on {0}: its connection and its own conversations. That computer's Runtime does it, and records it.",
56
+ signOutLeadMachineFiles: "AgEnD asks {0}'s Runtime to delete this account's connection file on that computer, then to check with {1} that it is disconnected. Its conversations stay.",
57
+ signOutLeadMachineOwn: "This disconnects {1} on {0}: the Windows user's own {1} connection there, which every agent on that computer that does not name an account uses. AgEnD asks that computer's Runtime to remove it, then checks with {1} that it is disconnected. Connect again from here to use it.",
58
+ signOutTitleOwn: "Disconnect {0} on {1}?",
50
59
  err_machine_unknown: "That computer is not paired any more.", err_machine_offline: "That computer is offline. Start its Runtime, then try again.",
51
60
  err_machine_unsupported: "That computer's Runtime is too old for this. Update the Runtime on it, then try again.",
52
61
  err_machine_accounts_off: "The owner of that computer has not allowed this. On that computer run: agend-runtime remote-setup accounts on",
@@ -66,6 +75,7 @@ register("accountsManage", {
66
75
  added: "已新增帳號「{0}」。", addedHostSignIn: "已新增帳號「{0}」。請在聊天傳 /login,或請 General。",
67
76
  remove: "移除", removeTitle: "要移除 {0} 帳號「{1}」嗎?",
68
77
  removeLead: "這會刪除這台主機上該帳號的資料夾:它的連接。", removeLeadClaude: "這會刪除這台主機上該帳號的資料夾:它的連接,以及它自己的對話副本。",
78
+ removeLeadFolder: "這會刪除這台主機上該帳號的資料夾:它的連接,以及它自己的對話。",
69
79
  removeAfter: "之後 Agent 就不能使用它。", sep: "",
70
80
  inUse: "仍在使用中,請先把每一項移到其他帳號:", inUseAgent: "Agent {0}", inUseRoom: "ClassicBot 房間 {0}", inUseDefault: "{0} Agent 的 Fleet 預設帳號",
71
81
  move: "移動…", roomHow: "在該房間的設定裡:Runtime 與模型 → 帳號。",
@@ -81,6 +91,10 @@ register("accountsManage", {
81
91
  stopUsers: "目前使用中——在重新連接前它們都無法運作:", nobody: "沒有 Agent、ClassicBot 房間或 Fleet 預設在使用它。",
82
92
  signOutGo: "撤銷連接", switchGo: "撤銷並重新連接", signingOut: "正在撤銷連接…", signedOut: "已撤銷連接。",
83
93
  keychainLeft: "已撤銷連接,但這台 Mac 上仍有這個帳號的鑰匙圈項目。請在「鑰匙圈存取」中刪除。",
94
+ signOutLeadFiles: "{0} 沒有登出指令,所以 AgEnD 會刪除主機上這個帳號的連接檔,再用 {0} 確認已經撤銷連接。它的對話會保留。",
95
+ switchLeadFiles: "{0} 沒有登出指令,所以 AgEnD 會刪除這個帳號的連接檔,然後開啟「連接」讓你連接想用的帳號。連接好後,使用它的 Agent 會以新帳號重新啟動。",
96
+ err_still_signed_in: "連接檔已刪除,但 {0} 仍顯示已連接:它把這個連接存在 AgEnD 不會刪除的地方(系統鑰匙圈)。請在 {0} 裡自己登出(/logout)。",
97
+ signedOutUnverified: "已撤銷連接。之後 {0} 沒有回應檢查,所以尚未確認。",
84
98
  removedKeychainLeft: "已移除帳號「{0}」,但這台 Mac 上仍有它的鑰匙圈項目。請在「鑰匙圈存取」中刪除。",
85
99
  err_unsupported: "這個 CLI 無法在這裡撤銷連接。", err_signout_failed: "{0} 的撤銷連接沒有成功。請在這裡再試一次。",
86
100
  defName: "預設連接", acctName: "帳號「{0}」",
@@ -89,6 +103,10 @@ register("accountsManage", {
89
103
  removeLeadMachine: "這會刪除 {0} 上該帳號的資料夾:它的連接,以及它自己的對話副本。由那台電腦的 Runtime 執行並記錄。",
90
104
  inUseMachineDefault: "這台電腦給 Agent 用的預設帳號(請在那台電腦上更改:agend-runtime profile default NAME)",
91
105
  signOutLeadMachine: "AgEnD 會請 {0} 的 Runtime 用 {1} 自己的登出指令撤銷這個帳號的連接。它的對話會保留。",
106
+ removeLeadMachineFolder: "這會刪除 {0} 上該帳號的資料夾:它的連接,以及它自己的對話。由那台電腦的 Runtime 執行並記錄。",
107
+ signOutLeadMachineFiles: "AgEnD 會請 {0} 的 Runtime 刪除那台電腦上這個帳號的連接檔,再用 {1} 確認已經撤銷連接。它的對話會保留。",
108
+ signOutLeadMachineOwn: "這會撤銷 {0} 上的 {1} 連接:那台電腦上 Windows 使用者自己的 {1} 連接,電腦上所有沒有指定帳號的 Agent 都用它。AgEnD 會請那台電腦的 Runtime 移除它,再用 {1} 確認已經撤銷連接。要再使用請從這裡重新連接。",
109
+ signOutTitleOwn: "要撤銷 {1} 上的 {0} 連接嗎?",
92
110
  err_machine_unknown: "那台電腦已不再配對。", err_machine_offline: "那台電腦離線了。請先啟動它的 Runtime,再試一次。",
93
111
  err_machine_unsupported: "那台電腦的 Runtime 太舊,無法這樣做。請先更新它的 Runtime,再試一次。",
94
112
  err_machine_accounts_off: "那台電腦的擁有者尚未允許這件事。請在那台電腦上執行:agend-runtime remote-setup accounts on",
@@ -199,7 +217,7 @@ export function RemoveAccountDialog({ cli, row, label, onClose, onMove, onRemove
199
217
  return html`<${Dialog} title=${tm("removeTitle", label, row.profile)} onClose=${onClose} busy=${busy} actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${onClose}>${tm("cancel")}</button>
200
218
  ${errCode === "signing_in" && !machine ? html`<button type="button" class="btn" disabled=${busy || inUse || typed !== row.profile} onClick=${cancelAndRemove}>${tm("cancelAndRemove")}</button>` : null}
201
219
  <button type="button" class="btn btn-danger" disabled=${busy || inUse || typed !== row.profile} onClick=${go}>${busy ? tm("removing") : tm("removeGo")}</button>`}>
202
- <p>${machine ? tm("removeLeadMachine", machine.name) : cli.backend === "claude-code" ? tm("removeLeadClaude") : tm("removeLead")}${tm("sep")}${tm("removeAfter")}</p>
220
+ <p>${machine ? tm(CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].accountIsFolder ? "removeLeadMachineFolder" : "removeLeadMachine", machine.name) : cli.backend === "claude-code" ? tm("removeLeadClaude") : CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].accountIsFolder ? tm("removeLeadFolder") : tm("removeLead")}${tm("sep")}${tm("removeAfter")}</p>
203
221
  ${inUse ? html`<div class="s-account-inuse" role="status"><p><strong>${tm("inUse")}</strong></p><ul>
204
222
  ${users.agents.map((name) => html`<li><span>${tm("inUseAgent", name)}</span>${moveBtn({ kind: "agent", name })}</li>`)}
205
223
  ${users.fleetDefault ? html`<li><span>${machine ? tm("inUseMachineDefault") : tm("inUseDefault", label)}</span>${machine ? null : moveBtn({ kind: "default" })}</li>` : null}
@@ -224,21 +242,23 @@ export function SignOutDialog({ cli, row, label, mode = "signout", onClose, onMo
224
242
  const any = users.agents.length > 0 || users.classic.length > 0 || users.fleetDefault;
225
243
  const which = row.profile ? tm("acctName", row.profile) : tm("defName");
226
244
  const machine = row.scope && row.scope.kind === "machine" ? row.scope : null; // #3190 Part 3c: an account on a paired computer
245
+ const files = !!(CLI_CAPS[cli.backend] && CLI_CAPS[cli.backend].signOutFiles); // AGEND-119: a CLI with no logout command is signed out by removing its sign-in file (AGEND-124: on a computer too)
246
+ const own = !!machine && !row.profile; // AGEND-124: the computer's OWN login of a CLI (Antigravity), signed out through that computer's Runtime
227
247
  const go = async () => {
228
248
  if (busy) return;
229
249
  setBusy(true); setErr("");
230
250
  const r = await send("POST", `/ui/accounts/${encodeURIComponent(cli.backend)}/signout`, { profile: row.profile || null, confirm: true, ...(machine ? { machine: machine.id } : {}) });
231
251
  if (!live.current) return;
232
252
  setBusy(false);
233
- if (!r.ok) { setErr(r.error === "failed" ? tm("err_signout_failed", label) : errText(r)); return; }
234
- toast(r.keychainLeft ? tm("keychainLeft") : tm("signedOut"), !r.keychainLeft);
253
+ if (!r.ok) { setErr(r.error === "failed" ? tm("err_signout_failed", label) : r.error === "still_signed_in" ? tm("err_still_signed_in", label) : errText(r)); return; }
254
+ toast(r.keychainLeft ? tm("keychainLeft") : r.unverified ? tm("signedOutUnverified", label) : tm("signedOut"), !r.keychainLeft && !r.unverified);
235
255
  onClose(); onDone(r);
236
256
  };
237
257
  const moveBtn = (user) => html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => { onClose(); onMove(user); }}>${tm("move")}</button>`;
238
- return html`<${Dialog} title=${mode === "switch" ? tm("switchTitle", label) : tm("signOutTitle", label, which)} onClose=${onClose} busy=${busy}
258
+ return html`<${Dialog} title=${mode === "switch" ? tm("switchTitle", label) : own ? tm("signOutTitleOwn", label, machine.name) : tm("signOutTitle", label, which)} onClose=${onClose} busy=${busy}
239
259
  actions=${html`<button type="button" class="btn" disabled=${busy} onClick=${onClose}>${tm("cancel")}</button>
240
260
  <button type="button" class=${mode === "switch" ? "btn btn-primary" : "btn btn-danger"} disabled=${busy} onClick=${go}>${busy ? tm("signingOut") : mode === "switch" ? tm("switchGo") : tm("signOutGo")}</button>`}>
241
- <p>${mode === "switch" ? tm("switchLead", label) : machine ? tm("signOutLeadMachine", machine.name, label) : tm("signOutLead", label)}</p>
261
+ <p>${mode === "switch" ? tm(files ? "switchLeadFiles" : "switchLead", label) : own ? tm("signOutLeadMachineOwn", machine.name, label) : machine ? tm(files ? "signOutLeadMachineFiles" : "signOutLeadMachine", machine.name, label) : tm(files ? "signOutLeadFiles" : "signOutLead", label)}</p>
242
262
  ${any ? html`<div class="s-account-inuse" role="status"><p><strong>${tm("stopUsers")}</strong></p><ul>
243
263
  ${users.agents.map((name) => html`<li><span>${tm("inUseAgent", name)}</span>${mode === "switch" ? null : moveBtn({ kind: "agent", name })}</li>`)}
244
264
  ${users.fleetDefault && row.profile ? html`<li><span>${machine ? tm("inUseMachineDefault") : tm("inUseDefault", label)}</span>${machine ? null : moveBtn({ kind: "default" })}</li>` : null}
@@ -20,6 +20,7 @@ import { ErrorState, Skeleton } from "/assets/ui-states.js";
20
20
  import { CompactMeter } from "/assets/usage-meter.js"; // #3321: the Usage panel's meter, not a second one (its own module: a tab that kept an older usage-dialog.js still links)
21
21
  import { CliProductMark, cliLabel } from "./cli-picker.js";
22
22
  import { identityText } from "./account-identity.js";
23
+ import { UsageBlock } from "./usage-pool.js"; // AGEND-113: every pool and window an account reports, as the server sends them
23
24
  import { openSignIn, refreshSignIn, signInStore } from "./backend-signin.js";
24
25
  import { capsOf } from "./cli-caps.js";
25
26
  import { toast } from "/assets/ui-toast.js";
@@ -31,7 +32,7 @@ import { KeepAliveControl } from "./accounts-keepalive.js"; // #3292
31
32
  // cache that still holds #3536's module: "does not provide an export named 'VersionLine'") and takes the whole page with it. A namespace import links with either; the names both modules
32
33
  // have are read as before, and a copy of host-install.js without the version line simply shows no version line (the Install button and the run are all it ever had).
33
34
  import * as hostInstall from "./host-install.js";
34
- const { HostInstallRun, InstallButton, hostInstallStore, hostInstallText, installRunning, refreshHostInstall, runFor } = hostInstall;
35
+ const { HostInstallRun, InstallButton, hostInstallStore, hostInstallText, refreshHostInstall, runFor } = hostInstall;
35
36
  const VersionLine = typeof hostInstall.VersionLine === "function" ? hostInstall.VersionLine : () => null;
36
37
 
37
38
  register("accounts", {
@@ -46,6 +47,7 @@ register("accounts", {
46
47
  signIn: "Connect", signInAgain: "Reconnect", hostCommand: "Connect from chat", hostCommandHint: "This row cannot be connected from the dashboard. Send /login in chat, or ask General.",
47
48
  moveHere: "Move agents here", moveTitle: "Move to {0}", moveLead: "Choose the {0} agents and ClassicBot rooms that should use {1}. Each restarts on it when you Save:",
48
49
  moveRooms: "ClassicBot rooms",
50
+ updateHint: "{0} needs a newer version before it can be connected from here. Update it on the host:",
49
51
  carry_claude: "Claude Code carries its conversation over.", carry_codex: "Codex keeps its conversation.", carry_kiro: "Kiro starts a new conversation, with a handover.",
50
52
  moveNone: "Every {0} agent and ClassicBot room already uses this account.", moveStage: "Stage", cancel: "Cancel", current: "now: {0}",
51
53
  fleetDefault: "Fleet default for {0} agents", fleetDefaultHint: "Agents that don't choose an account use this one.",
@@ -62,6 +64,9 @@ register("accounts", {
62
64
  acctLabel: "Account", acctInherit: "Fleet default ({0})", acctInheritDefault: "Fleet default (default connection)", acctNotSignedIn: "{0} — not connected",
63
65
  acctHint: "Changing the account restarts the agent. A disconnected account can't be chosen: connect it under Accounts first.",
64
66
  acctHintCreate: "The new agent connects with this account from its first start. A disconnected account can't be chosen: connect it under Accounts first.",
67
+ why_cli_old: "{1} on {0} is too old to connect from here (it needs {2} or newer). Update it on that computer.",
68
+ why_cli_missing: "{1} is not installed on {0}.",
69
+ machineOneLogin: "This is the Windows user's one default {1} connection on {0}. Connecting here replaces it; named accounts (+ Add account) are separate and are not affected.",
65
70
  acctDefaultBlocked: "This fleet's default for {0} is “{1}”, so an agent follows it unless it names another account.",
66
71
  usedPopTitle: "Agents using this account — choose one to open its settings",
67
72
  },
@@ -76,6 +81,7 @@ register("accounts", {
76
81
  signIn: "連接", signInAgain: "重新連接", hostCommand: "從聊天連接", hostCommandHint: "這一列無法從儀表板連接。請在聊天傳 /login,或請 General。",
77
82
  moveHere: "移入 Agent", moveTitle: "移到 {0}", moveLead: "選擇要改用 {1} 的 {0} Agent 與 ClassicBot 房間。按「儲存」後,各自會以它重新啟動:",
78
83
  moveRooms: "ClassicBot 房間",
84
+ updateHint: "{0} 需要更新到較新的版本,才能從這裡連接。請在主機上更新:",
79
85
  carry_claude: "Claude Code 會帶著對話過去。", carry_codex: "Codex 保留原本的對話。", carry_kiro: "Kiro 會開新對話並附上交接。",
80
86
  moveNone: "所有 {0} Agent 與 ClassicBot 房間都已經使用這個帳號。", moveStage: "加入待儲存", cancel: "取消", current: "目前:{0}",
81
87
  fleetDefault: "{0} Agent 的 Fleet 預設帳號", fleetDefaultHint: "沒有指定帳號的 Agent 會使用這個。",
@@ -92,6 +98,9 @@ register("accounts", {
92
98
  acctLabel: "帳號", acctInherit: "Fleet 預設({0})", acctInheritDefault: "Fleet 預設(預設連接)", acctNotSignedIn: "{0}——尚未連接",
93
99
  acctHint: "更換帳號會重新啟動 Agent。尚未連接的帳號不能選,請先在「帳號」連接。",
94
100
  acctHintCreate: "新 Agent 從第一次啟動就會使用這個帳號。尚未連接的帳號不能選,請先在「帳號」連接。",
101
+ why_cli_old: "{0} 上的 {1} 版本太舊,無法從這裡連接(需要 {2} 或更新)。請在那台電腦上更新它。",
102
+ why_cli_missing: "{0} 上沒有安裝 {1}。",
103
+ machineOneLogin: "這是 {0} 上 Windows 使用者的唯一一個預設 {1} 連接。在這裡連接會取代它;具名帳號(「+新增帳號」)是分開的,不受影響。",
95
104
  acctDefaultBlocked: "這個 Fleet 的 {0} 預設帳號是「{1}」,Agent 除非指定其他帳號,否則會使用它。",
96
105
  usedPopTitle: "使用此帳號的 Agent(點擊跳轉設定)",
97
106
  },
@@ -99,7 +108,7 @@ register("accounts", {
99
108
  const tx = (k, ...v) => t(`accounts.${k}`, ...v);
100
109
  /** The reasons that apply to a whole computer (the heading says them once); the others belong to one row. A code a newer server sends that this page does not know is shown as it is. */
101
110
  const MACHINE_LEVEL = new Set(["offline", "runtime_old", "accounts_off", "switch_unreadable", "not_installed"]);
102
- const reasonText = (code, name) => { const key = `why_${code}`, text = tx(key, name); return text === `accounts.${key}` ? String(code) : text; };
111
+ const reasonText = (code, name, ...more) => { const key = `why_${code}`, text = tx(key, name, ...more); return text === `accounts.${key}` ? String(code) : text; };
103
112
  /** This view's stylesheet, linked once (a tab opened before an upgrade has an app.css without these rules). */
104
113
  function linkAccountsCss(doc = typeof document !== "undefined" ? document : null) {
105
114
  try {
@@ -162,14 +171,10 @@ const winLabel = (u, fallback = "") => {
162
171
  return d >= 6 && d <= 8 ? tx("winWeek") : tx("winDays", d);
163
172
  };
164
173
  /**
165
- * One window of the usage block: the Usage panel's own meter (`CompactMeter`, usage-dialog.js) — its name ("5h", "本週"), the bar, the percent
166
- * (amber from 70%, red from 90%: the theme's --warn / --danger) and when the window resets. The server's window ({ percent, windowMs, resetsAt }) is
167
- * given in the meter's shape.
174
+ * A window's short name for the usage block's meter ("5h", "本週", "30d", "—"): by its length when the CLI gives one, else by its kind; one number with no window is a dash. The meter itself
175
+ * is the Usage panel's (usage-pool.js).
168
176
  */
169
- function UsageWindow({ u, kind }) {
170
- const name = winLabel(u, kind === "weekly" ? tx("winWeek") : "");
171
- return html`<${CompactMeter} m=${{ used: Number(u.percent) || 0, windowMs: u.windowMs, resetsAt: u.resetsAt, label: name }} tag=${name} />`;
172
- }
177
+ const usageTag = (w) => (w.kind === "unwindowed" ? "—" : winLabel(w, w.kind === "weekly" ? tx("winWeek") : w.kind === "monthly" ? tx("winDays", 30) : ""));
173
178
 
174
179
  /**
175
180
  * The fleet default's `backend_options` after choosing `profile` (null: none) for `backend`: the whole map, because the
@@ -229,8 +234,18 @@ export function AccountsView({ instances, stageAgent, stageDefault, openAgent, r
229
234
  useEffect(() => { if (loaded) void refreshAccounts(); }, [phase]);
230
235
  const active = structured && structured.login;
231
236
  const machineActive = !!machineLogin.phase && machineLogin.phase !== "done" && !(machineLogin.phase === "failed" && machineLogin.reason);
232
- // AGEND-133: the host's login window is one — an install running holds Sign in, and a sign-in running holds Install.
233
- const running = !!((login && login.phase === "running") || (active && active.phase !== "done" && !(active.phase === "failed" && active.reason)) || machineActive || installRunning(install));
237
+ // AGEND-203: the login window is one PER BACKEND (login-window-lock.ts) — a sign-in or install on one AI holds only that AI's buttons. `busyBackends` names them; the rest stay pressable:
238
+ // - the terminal sign-in (`login`, also another tab's) and the structured one (`active`, also another tab's) hold the backend they run on;
239
+ // - an install or update holds its backend's sign-in buttons, and every Install/Update button (one installer on the host: InstallButton/VersionLine read hostInstallStore themselves);
240
+ // - a computer's account sign-in (the open dialog) holds the backend the dialog is for (Claude Code's, or Antigravity's).
241
+ // Not here, on purpose: the terminal sign-in is one at a time too, so a second terminal AI (Grok while another is running) is refused by the server (`busy`), which the dialog's cancel flow handles.
242
+ const busyBackends = new Set();
243
+ if (login && login.phase === "running" && login.backend) busyBackends.add(login.backend);
244
+ if (active && active.phase !== "done" && !(active.phase === "failed" && active.reason) && active.backend) busyBackends.add(active.backend);
245
+ if (machineActive) busyBackends.add(machineLogin.backend || "claude-code"); // AGEND-250: the dialog's own backend (a store from an older tab has none: Claude Code, as before)
246
+ if (install.starting) busyBackends.add(install.starting);
247
+ if (install.run && install.run.phase === "running" && install.run.backend) busyBackends.add(install.run.backend);
248
+ const running = (backend) => busyBackends.has(backend);
234
249
  if (!loaded) return html`<section class="s-group s-accounts" aria-label=${tx("title")}>
235
250
  <header class="s-auth-section-head"><div><h3>${tx("title")}</h3><p>${tx("hint")}</p></div></header>
236
251
  <${Skeleton} variant="cards" lines=${2} label=${tx("loading")} /></section>`;
@@ -241,12 +256,12 @@ export function AccountsView({ instances, stageAgent, stageDefault, openAgent, r
241
256
  const clis = (view && view.clis) || [];
242
257
  return html`<section class="s-group s-accounts" aria-label=${tx("title")}>
243
258
  <header class="s-auth-section-head"><div><h3>${tx("title")}</h3><p>${tx("hint")}</p></div></header>
244
- ${!clis.length ? html`<p class="note">${tx("empty")}</p>` : clis.map((cli) => html`<${Card} key=${cli.backend} cli=${cli} running=${running} openAgent=${openAgent} onMove=${begin((row) => setMove({ cli, row }))} stageDefault=${stageDefault}
259
+ ${!clis.length ? html`<p class="note">${tx("empty")}</p>` : clis.map((cli) => html`<${Card} key=${cli.backend} cli=${cli} running=${running(cli.backend)} openAgent=${openAgent} onMove=${begin((row) => setMove({ cli, row }))} stageDefault=${stageDefault}
245
260
  onAdd=${begin((machine) => setAdding(machine ? { cli, machine } : cli))} onRemove=${begin((row) => setRemoving({ cli, row }))} onSignIn=${begin((target) => (target.machine ? openMachineSignIn(target) : openSignIn(target)))}
246
261
  onSignOut=${begin((row, mode) => setSigningOut({ cli, row, mode }))} />`)}
247
262
  ${move ? html`<${MoveDialog} cli=${move.cli} row=${move.row} instances=${instances} stageAgent=${stageAgent} rooms=${rooms} stageClassic=${stageClassic} onClose=${() => setMove(null)} />` : null}
248
263
  ${adding ? html`<${AddAccountDialog} cli=${adding.machine ? adding.cli : adding} machine=${adding.machine || null} label=${cliLabel((adding.machine ? adding.cli : adding).backend)} onClose=${() => setAdding(null)}
249
- onAdded=${(name) => { const mine = ++interaction.current, a = adding; void (a.machine ? machineAdded(a.machine, name, () => mounted.current && interaction.current === mine) : accountAdded(a.backend, name, () => mounted.current && interaction.current === mine)); }} />` : null}
264
+ onAdded=${(name) => { const mine = ++interaction.current, a = adding; void (a.machine ? machineAdded(a.machine, name, () => mounted.current && interaction.current === mine, a.cli.backend) : accountAdded(a.backend, name, () => mounted.current && interaction.current === mine)); }} />` : null}
250
265
  ${signingOut ? html`<${SignOutDialog} cli=${signingOut.cli} row=${signingOut.row} mode=${signingOut.mode} label=${cliLabel(signingOut.cli.backend)}
251
266
  onClose=${() => setSigningOut(null)} onMove=${(user) => moveUser(signingOut.cli.backend, user, openAgent, openRoom)}
252
267
  onDone=${() => { const s = signingOut, mine = ++interaction.current; void signedOut(s, () => mounted.current && interaction.current === mine); }} />` : null}
@@ -272,10 +287,10 @@ async function accountAdded(backend, name, current) {
272
287
  * #3190 Part 3c: after + Add account on a computer: the server only checked the name (the folder is made by that computer's Runtime when the first sign-in starts), so
273
288
  * Sign in opens at once for the new name — while this is still the person's current interaction and no other dialog is open.
274
289
  */
275
- async function machineAdded(machine, name, current) {
290
+ async function machineAdded(machine, name, current, backend) {
276
291
  await refreshAccounts({ fresh: true });
277
292
  if (!current() || shellStore.get().dialog) return;
278
- openMachineSignIn({ machine, profile: name });
293
+ openMachineSignIn({ machine, profile: name, ...(backend ? { backend } : {}) });
279
294
  }
280
295
  /**
281
296
  * #3212 PR 3: after Sign out — the view and the sign-ins read again (reads begun after it); Switch account then opens
@@ -355,7 +370,7 @@ function MachineSection({ cli, m, running, openAgent, onAdd, onSignIn, onSignOut
355
370
  return html`<div class="s-account-machine" data-machine=${m.scope.id}>
356
371
  <div class="s-account-machine-head"><strong>${tx("machine", m.scope.name)}</strong>
357
372
  <span class=${`tag s-auth-state is-${online ? "usable" : "unknown"}`}>${online ? tx("machineOnline") : tx("machineOffline")}</span>
358
- ${cli.profiles && !level && typeof onAdd === "function" ? html`<button type="button" class="btn btn-sm s-account-add" disabled=${running} onClick=${() => onAdd(m.scope)}>${manageWords.add()}</button>` : null}</div>
373
+ ${cli.profiles && cli.machineProfiles !== false && !level && !m.rows.some((r) => r.scope.namedAccounts === false) && typeof onAdd === "function" ? html`<button type="button" class="btn btn-sm s-account-add" disabled=${running} onClick=${() => onAdd(m.scope)}>${manageWords.add()}</button>` : null}</div>
359
374
  ${level ? html`<p class="note s-account-why" role="status">${reasonText(level, m.scope.name)}</p>` : null}
360
375
  ${m.rows.map((row) => html`<${Row} key=${`m:${m.scope.id}:${row.profile || ""}`} cli=${cli} row=${row} running=${running} openAgent=${openAgent} onSignIn=${onSignIn} onSignOut=${onSignOut} onRemove=${onRemove} />`)}
361
376
  </div>`;
@@ -378,7 +393,8 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
378
393
  // #3212 PR 3: a signed-in account of a CLI whose own logout the dashboard runs; Switch account on the default sign-in.
379
394
  // #3190 Part 3c: a computer's row is changed only where its Runtime allows it (`signIn`); never its default (the Windows user's own sign-in), never Move or Switch.
380
395
  const machine = row.scope && row.scope.kind === "machine" ? row.scope : null;
381
- const manageable = !machine || (row.signIn && !!row.profile);
396
+ // AGEND-124: the computer's OWN login of a CLI whose Runtime signs it out (Antigravity: `signOutOwn`) is signed out from here too; Claude Code's never is.
397
+ const manageable = !machine || (row.signIn && (!!row.profile || row.signOutOwn === true));
382
398
  const canSignOut = manageable && typeof onSignOut === "function" && row.state === "usable" && SIGN_OUT_CLIS.has(row.backend);
383
399
  const who = identityText(row.identity);
384
400
  // AGEND-133 (#3521): a CLI that is not installed on the host gets Install on its default row (the server looks up the command; the page sends the CLI's id).
@@ -386,11 +402,10 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
386
402
  const installState = useStore(hostInstallStore);
387
403
  const installRun = !machine && !row.profile ? runFor(installState, row.backend) : null;
388
404
  const installingNow = !!installRun && installRun.phase === "running";
389
- // The week's usage and the short window's (the "5h"), as the server gives them; a CLI that reports one shows one.
390
- const windows = [row.shortUsage ? ["short", row.shortUsage] : null, row.usage ? ["weekly", row.usage] : null].filter(Boolean);
391
- const stale = windows.some(([, w]) => w.stale);
392
- const why = machine && machine.readOnlyReason && !MACHINE_LEVEL.has(machine.readOnlyReason) ? reasonText(machine.readOnlyReason, machine.name) : "";
393
- // Four layers in one box: the title bar (name, state, default tag · the buttons), the meta bar (who, used by), the usage block (5h and the week) and Keep sign-in alive as the box's foot.
405
+ // Every pool and every window the account reports, as the server gives them (accounts-view.ts `accountUsage`); the page lays them out, it does not pick.
406
+ const usageGroups = Array.isArray(row.usageGroups) ? row.usageGroups.filter((g) => g && Array.isArray(g.windows) && g.windows.length) : [];
407
+ const why = machine && machine.readOnlyReason && !MACHINE_LEVEL.has(machine.readOnlyReason) ? reasonText(machine.readOnlyReason, machine.name, cliLabel(row.backend), (capsOf(row.backend) && capsOf(row.backend).structuredMinVersion) || "") : "";
408
+ // Four layers in one box: the title bar (name, state, default tag · the buttons), the meta bar (who, used by), the usage block (every pool and window it reports) and Keep connection alive as the box's foot.
394
409
  return html`<div class="s-row s-account-row" data-account=${row.profile || "default"}>
395
410
  <div class="s-account-title-bar">
396
411
  <div class="s-account-title-left"><strong>${rowName(row)}</strong>
@@ -410,12 +425,11 @@ function Row({ cli, row, onMove, onRemove, onSignIn = openSignIn, onSignOut, ope
410
425
  <${UsedBy} row=${row} label=${usedText(row)} openAgent=${openAgent} />
411
426
  ${machine ? html`<small class="s-account-usage is-none" title=${tx("machineNoUsageHint")}>${tx("machineNoUsage")}</small>` : null}
412
427
  </div>
413
- ${windows.length ? html`<div class=${`s-account-usage${stale ? " is-stale" : ""}`} role="group" aria-label=${tx("usageLabel")}>
414
- ${windows.map(([kind, w]) => html`<${UsageWindow} key=${kind} u=${w} kind=${kind} />`)}
415
- ${stale ? html`<small class="s-usage-stale">${tx("winStale")}</small>` : null}
416
- </div>` : null}
428
+ ${usageGroups.length ? html`<${UsageBlock} groups=${usageGroups} stale=${row.usageStale === true} staleInfo=${row.usageStaleInfo} tagOf=${usageTag} label=${tx("usageLabel")} staleText=${tx("winStale")} />` : null}
417
429
  ${why ? html`<p class="note s-account-why">${why}</p>` : null}
418
430
  ${canInstall && !installRun ? html`<p class="note s-account-why">${hostInstallText("notInstalled")}</p>` : null}
431
+ ${machine && capsOf(row.backend) && capsOf(row.backend).runtimeDefaultLogin && !row.profile && row.signIn && !readOnly ? html`<p class="note s-account-why">${tx("machineOneLogin", machine.name, cliLabel(row.backend))}</p>` : null}
432
+ ${!readOnly && !machine && !row.signIn && row.update && row.state !== "too_old" ? html`<p class="note s-account-why">${tx("updateHint", cliLabel(row.backend))} <code>${row.update}</code></p>` : null}
419
433
  ${!machine && !row.profile && !readOnly ? html`<${VersionLine} row=${row} label=${cliLabel(row.backend)} blocked=${running} />` : null}
420
434
  ${!machine && !row.profile ? html`<${HostInstallRun} backend=${row.backend} label=${cliLabel(row.backend)} />` : null}
421
435
  ${!readOnly && !row.signIn && row.hostCommand ? html`<details class="s-host-cli-help"><summary>${machine ? tx("machineCommand") : tx("hostCommand")}</summary><p class="note">${machine ? tx("machineCommandHint", machine.name) : tx("hostCommandHint")}</p>${machine ? html`<p class="s-host-cli-command"><code>${row.hostCommand}</code></p>` : null}</details>` : null}