@songsid/agend 2.3.5-alpha.4 → 2.3.5-alpha.6

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 (995) hide show
  1. package/THIRD_PARTY_NOTICES.md +51 -0
  2. package/dist/accounts-profiles.d.ts +96 -0
  3. package/dist/accounts-profiles.js +178 -0
  4. package/dist/accounts-profiles.js.map +1 -0
  5. package/dist/accounts-signout.d.ts +59 -0
  6. package/dist/accounts-signout.js +184 -0
  7. package/dist/accounts-signout.js.map +1 -0
  8. package/dist/accounts-view.d.ts +151 -0
  9. package/dist/accounts-view.js +160 -0
  10. package/dist/accounts-view.js.map +1 -0
  11. package/dist/agent-cli-instructions.md +1 -1
  12. package/dist/agent-credentials.d.ts +24 -0
  13. package/dist/agent-credentials.js +66 -0
  14. package/dist/agent-credentials.js.map +1 -0
  15. package/dist/agent-endpoint.d.ts +3 -1
  16. package/dist/agent-endpoint.js +13 -0
  17. package/dist/agent-endpoint.js.map +1 -1
  18. package/dist/agent-file-read.js +1 -1
  19. package/dist/agent-file-read.js.map +1 -1
  20. package/dist/agent-runtime-change.d.ts +3 -1
  21. package/dist/agent-runtime-change.js +15 -3
  22. package/dist/agent-runtime-change.js.map +1 -1
  23. package/dist/agent-workspace.d.ts +104 -0
  24. package/dist/agent-workspace.js +381 -0
  25. package/dist/agent-workspace.js.map +1 -0
  26. package/dist/auth-api.d.ts +27 -0
  27. package/dist/auth-api.js +191 -8
  28. package/dist/auth-api.js.map +1 -1
  29. package/dist/authority/session-authorizations.d.ts +30 -4
  30. package/dist/authority/session-authorizations.js +69 -17
  31. package/dist/authority/session-authorizations.js.map +1 -1
  32. package/dist/backend/antigravity.js +3 -1
  33. package/dist/backend/antigravity.js.map +1 -1
  34. package/dist/backend/codex-footer-hints.d.ts +3 -0
  35. package/dist/backend/codex-footer-hints.js +14 -0
  36. package/dist/backend/codex-footer-hints.js.map +1 -1
  37. package/dist/backend/codex-metadata.d.ts +14 -0
  38. package/dist/backend/codex-metadata.js +45 -0
  39. package/dist/backend/codex-metadata.js.map +1 -1
  40. package/dist/backend/codex-quota-history.d.ts +7 -0
  41. package/dist/backend/codex-quota-history.js +57 -0
  42. package/dist/backend/codex-quota-history.js.map +1 -0
  43. package/dist/backend/codex-session-lookup.d.ts +6 -0
  44. package/dist/backend/codex-session-lookup.js +1 -1
  45. package/dist/backend/codex-session-lookup.js.map +1 -1
  46. package/dist/backend/codex-speed.d.ts +14 -0
  47. package/dist/backend/codex-speed.js +35 -0
  48. package/dist/backend/codex-speed.js.map +1 -0
  49. package/dist/backend/codex.d.ts +7 -0
  50. package/dist/backend/codex.js +79 -15
  51. package/dist/backend/codex.js.map +1 -1
  52. package/dist/backend/grok-weekly-reset.d.ts +24 -0
  53. package/dist/backend/grok-weekly-reset.js +95 -0
  54. package/dist/backend/grok-weekly-reset.js.map +1 -0
  55. package/dist/backend/grok.d.ts +30 -1
  56. package/dist/backend/grok.js +301 -54
  57. package/dist/backend/grok.js.map +1 -1
  58. package/dist/backend/kiro.d.ts +3 -0
  59. package/dist/backend/kiro.js +50 -2
  60. package/dist/backend/kiro.js.map +1 -1
  61. package/dist/backend/muse.js +5 -3
  62. package/dist/backend/muse.js.map +1 -1
  63. package/dist/backend/native-pane.d.ts +3 -1
  64. package/dist/backend/native-pane.js +2 -2
  65. package/dist/backend/native-pane.js.map +1 -1
  66. package/dist/backend/types.d.ts +15 -1
  67. package/dist/backend/types.js +3 -0
  68. package/dist/backend/types.js.map +1 -1
  69. package/dist/build-provenance-cli.d.ts +3 -0
  70. package/dist/build-provenance-cli.js +11 -0
  71. package/dist/build-provenance-cli.js.map +1 -0
  72. package/dist/build-provenance.d.ts +20 -0
  73. package/dist/build-provenance.js +67 -0
  74. package/dist/build-provenance.js.map +1 -0
  75. package/dist/build-provenance.json +1 -0
  76. package/dist/bundled-tmux-guard.d.ts +19 -0
  77. package/dist/bundled-tmux-guard.js +83 -0
  78. package/dist/bundled-tmux-guard.js.map +1 -0
  79. package/dist/cache-ledger.d.ts +95 -0
  80. package/dist/cache-ledger.js +276 -4
  81. package/dist/cache-ledger.js.map +1 -1
  82. package/dist/cache-service.d.ts +5 -0
  83. package/dist/cache-service.js +16 -4
  84. package/dist/cache-service.js.map +1 -1
  85. package/dist/channel/adapters/discord.js +11 -3
  86. package/dist/channel/adapters/discord.js.map +1 -1
  87. package/dist/channel/adapters/telegram.d.ts +51 -0
  88. package/dist/channel/adapters/telegram.js +235 -17
  89. package/dist/channel/adapters/telegram.js.map +1 -1
  90. package/dist/channel/mcp-tools.js +3 -3
  91. package/dist/channel/mcp-tools.js.map +1 -1
  92. package/dist/channel/types.d.ts +2 -0
  93. package/dist/classic-bindings.d.ts +13 -0
  94. package/dist/classic-bindings.js +28 -2
  95. package/dist/classic-bindings.js.map +1 -1
  96. package/dist/classic-channel-manager.d.ts +2 -0
  97. package/dist/classic-channel-manager.js +5 -1
  98. package/dist/classic-channel-manager.js.map +1 -1
  99. package/dist/claude-auth-status.d.ts +48 -0
  100. package/dist/claude-auth-status.js +149 -0
  101. package/dist/claude-auth-status.js.map +1 -0
  102. package/dist/cli.js +252 -46
  103. package/dist/cli.js.map +1 -1
  104. package/dist/config-validator.js +32 -1
  105. package/dist/config-validator.js.map +1 -1
  106. package/dist/config.js +3 -1
  107. package/dist/config.js.map +1 -1
  108. package/dist/cross-instance-notice.d.ts +10 -0
  109. package/dist/cross-instance-notice.js +67 -5
  110. package/dist/cross-instance-notice.js.map +1 -1
  111. package/dist/daemon.d.ts +95 -1
  112. package/dist/daemon.js +652 -29
  113. package/dist/daemon.js.map +1 -1
  114. package/dist/dashboard-permissions.d.ts +8 -0
  115. package/dist/dashboard-permissions.js +16 -0
  116. package/dist/dashboard-permissions.js.map +1 -1
  117. package/dist/delivery-consumed-watch.d.ts +23 -1
  118. package/dist/delivery-consumed-watch.js +30 -3
  119. package/dist/delivery-consumed-watch.js.map +1 -1
  120. package/dist/delivery-reconciliation.d.ts +1 -1
  121. package/dist/delivery-reconciliation.js +1 -1
  122. package/dist/delivery-reconciliation.js.map +1 -1
  123. package/dist/doctor.js +19 -9
  124. package/dist/doctor.js.map +1 -1
  125. package/dist/e2e-isolation.js +5 -2
  126. package/dist/e2e-isolation.js.map +1 -1
  127. package/dist/export-import.d.ts +7 -0
  128. package/dist/export-import.js +44 -10
  129. package/dist/export-import.js.map +1 -1
  130. package/dist/fleet-context.d.ts +2 -0
  131. package/dist/fleet-control-audit.d.ts +1 -1
  132. package/dist/fleet-manager.d.ts +488 -7
  133. package/dist/fleet-manager.js +2069 -122
  134. package/dist/fleet-manager.js.map +1 -1
  135. package/dist/fleet-windows-runtime.d.ts +2 -1
  136. package/dist/fleet-windows-runtime.js +25 -7
  137. package/dist/fleet-windows-runtime.js.map +1 -1
  138. package/dist/general-knowledge/skills/concepts/SKILL.md +425 -0
  139. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +15 -2
  140. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +1 -0
  141. package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
  142. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +3 -1
  143. package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +41 -4
  144. package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
  145. package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
  146. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +31 -15
  147. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
  148. package/dist/general-role.d.ts +1 -1
  149. package/dist/general-role.js +1 -0
  150. package/dist/general-role.js.map +1 -1
  151. package/dist/hub/admission.d.ts +28 -0
  152. package/dist/hub/admission.js +62 -0
  153. package/dist/hub/admission.js.map +1 -0
  154. package/dist/hub/attachments/limits.d.ts +20 -0
  155. package/dist/hub/attachments/limits.js +48 -0
  156. package/dist/hub/attachments/limits.js.map +1 -0
  157. package/dist/hub/attachments/store.d.ts +116 -0
  158. package/dist/hub/attachments/store.js +246 -0
  159. package/dist/hub/attachments/store.js.map +1 -0
  160. package/dist/hub/audit/index.d.ts +62 -0
  161. package/dist/hub/audit/index.js +344 -0
  162. package/dist/hub/audit/index.js.map +1 -0
  163. package/dist/hub/browser-certificate.d.ts +38 -0
  164. package/dist/hub/browser-certificate.js +247 -0
  165. package/dist/hub/browser-certificate.js.map +1 -0
  166. package/dist/hub/buttons-model.d.ts +9 -0
  167. package/dist/hub/buttons-model.js +42 -0
  168. package/dist/hub/buttons-model.js.map +1 -0
  169. package/dist/hub/buttons.d.ts +54 -0
  170. package/dist/hub/buttons.js +346 -0
  171. package/dist/hub/buttons.js.map +1 -0
  172. package/dist/hub/catalog.d.ts +74 -0
  173. package/dist/hub/catalog.js +195 -0
  174. package/dist/hub/catalog.js.map +1 -0
  175. package/dist/hub/client.d.ts +69 -0
  176. package/dist/hub/client.js +300 -0
  177. package/dist/hub/client.js.map +1 -0
  178. package/dist/hub/compose/member.d.ts +139 -0
  179. package/dist/hub/compose/member.js +450 -0
  180. package/dist/hub/compose/member.js.map +1 -0
  181. package/dist/hub/compose/server.d.ts +77 -0
  182. package/dist/hub/compose/server.js +350 -0
  183. package/dist/hub/compose/server.js.map +1 -0
  184. package/dist/hub/compose/views.d.ts +12 -0
  185. package/dist/hub/compose/views.js +4 -0
  186. package/dist/hub/compose/views.js.map +1 -0
  187. package/dist/hub/db.d.ts +56 -0
  188. package/dist/hub/db.js +188 -0
  189. package/dist/hub/db.js.map +1 -0
  190. package/dist/hub/directory/config.d.ts +39 -0
  191. package/dist/hub/directory/config.js +108 -0
  192. package/dist/hub/directory/config.js.map +1 -0
  193. package/dist/hub/directory/directory.d.ts +18 -0
  194. package/dist/hub/directory/directory.js +432 -0
  195. package/dist/hub/directory/directory.js.map +1 -0
  196. package/dist/hub/directory/groups.d.ts +29 -0
  197. package/dist/hub/directory/groups.js +29 -0
  198. package/dist/hub/directory/groups.js.map +1 -0
  199. package/dist/hub/directory/index.d.ts +8 -0
  200. package/dist/hub/directory/index.js +4 -0
  201. package/dist/hub/directory/index.js.map +1 -0
  202. package/dist/hub/directory/profiles.d.ts +41 -0
  203. package/dist/hub/directory/profiles.js +90 -0
  204. package/dist/hub/directory/profiles.js.map +1 -0
  205. package/dist/hub/directory/types.d.ts +75 -0
  206. package/dist/hub/directory/types.js +14 -0
  207. package/dist/hub/directory/types.js.map +1 -0
  208. package/dist/hub/execution/cli-provider.d.ts +23 -0
  209. package/dist/hub/execution/cli-provider.js +341 -0
  210. package/dist/hub/execution/cli-provider.js.map +1 -0
  211. package/dist/hub/execution/index.d.ts +13 -0
  212. package/dist/hub/execution/index.js +8 -0
  213. package/dist/hub/execution/index.js.map +1 -0
  214. package/dist/hub/execution/model-broker.d.ts +24 -0
  215. package/dist/hub/execution/model-broker.js +208 -0
  216. package/dist/hub/execution/model-broker.js.map +1 -0
  217. package/dist/hub/execution/provider-setup.d.ts +11 -0
  218. package/dist/hub/execution/provider-setup.js +21 -0
  219. package/dist/hub/execution/provider-setup.js.map +1 -0
  220. package/dist/hub/execution/sandbox-runner.d.ts +1 -0
  221. package/dist/hub/execution/sandbox-runner.js +221 -0
  222. package/dist/hub/execution/sandbox-runner.js.map +1 -0
  223. package/dist/hub/execution/service.d.ts +136 -0
  224. package/dist/hub/execution/service.js +459 -0
  225. package/dist/hub/execution/service.js.map +1 -0
  226. package/dist/hub/execution/store.d.ts +61 -0
  227. package/dist/hub/execution/store.js +182 -0
  228. package/dist/hub/execution/store.js.map +1 -0
  229. package/dist/hub/execution/views.d.ts +20 -0
  230. package/dist/hub/execution/views.js +48 -0
  231. package/dist/hub/execution/views.js.map +1 -0
  232. package/dist/hub/group-policy/model.d.ts +56 -0
  233. package/dist/hub/group-policy/model.js +46 -0
  234. package/dist/hub/group-policy/model.js.map +1 -0
  235. package/dist/hub/group-policy/resources.d.ts +52 -0
  236. package/dist/hub/group-policy/resources.js +166 -0
  237. package/dist/hub/group-policy/resources.js.map +1 -0
  238. package/dist/hub/group-policy/store.d.ts +52 -0
  239. package/dist/hub/group-policy/store.js +149 -0
  240. package/dist/hub/group-policy/store.js.map +1 -0
  241. package/dist/hub/http/compose.d.ts +20 -0
  242. package/dist/hub/http/compose.js +519 -0
  243. package/dist/hub/http/compose.js.map +1 -0
  244. package/dist/hub/http/core.d.ts +49 -0
  245. package/dist/hub/http/core.js +124 -0
  246. package/dist/hub/http/core.js.map +1 -0
  247. package/dist/hub/http/deps.d.ts +61 -0
  248. package/dist/hub/http/deps.js +2 -0
  249. package/dist/hub/http/deps.js.map +1 -0
  250. package/dist/hub/http/schema.d.ts +14 -0
  251. package/dist/hub/http/schema.js +80 -0
  252. package/dist/hub/http/schema.js.map +1 -0
  253. package/dist/hub/identity.d.ts +32 -0
  254. package/dist/hub/identity.js +80 -0
  255. package/dist/hub/identity.js.map +1 -0
  256. package/dist/hub/init/browser-certificate.d.ts +9 -0
  257. package/dist/hub/init/browser-certificate.js +78 -0
  258. package/dist/hub/init/browser-certificate.js.map +1 -0
  259. package/dist/hub/init/browser-tls.d.ts +18 -0
  260. package/dist/hub/init/browser-tls.js +62 -0
  261. package/dist/hub/init/browser-tls.js.map +1 -0
  262. package/dist/hub/init/cli.d.ts +3 -0
  263. package/dist/hub/init/cli.js +83 -0
  264. package/dist/hub/init/cli.js.map +1 -0
  265. package/dist/hub/init/directory-certificate.d.ts +24 -0
  266. package/dist/hub/init/directory-certificate.js +222 -0
  267. package/dist/hub/init/directory-certificate.js.map +1 -0
  268. package/dist/hub/init/existing-fleet.d.ts +6 -0
  269. package/dist/hub/init/existing-fleet.js +58 -0
  270. package/dist/hub/init/existing-fleet.js.map +1 -0
  271. package/dist/hub/init/handoff.d.ts +8 -0
  272. package/dist/hub/init/handoff.js +36 -0
  273. package/dist/hub/init/handoff.js.map +1 -0
  274. package/dist/hub/init/identity.d.ts +5 -0
  275. package/dist/hub/init/identity.js +24 -0
  276. package/dist/hub/init/identity.js.map +1 -0
  277. package/dist/hub/init/initializer.d.ts +24 -0
  278. package/dist/hub/init/initializer.js +385 -0
  279. package/dist/hub/init/initializer.js.map +1 -0
  280. package/dist/hub/init/inventory.d.ts +17 -0
  281. package/dist/hub/init/inventory.js +33 -0
  282. package/dist/hub/init/inventory.js.map +1 -0
  283. package/dist/hub/init/layout.d.ts +32 -0
  284. package/dist/hub/init/layout.js +53 -0
  285. package/dist/hub/init/layout.js.map +1 -0
  286. package/dist/hub/init/network.d.ts +18 -0
  287. package/dist/hub/init/network.js +104 -0
  288. package/dist/hub/init/network.js.map +1 -0
  289. package/dist/hub/init/plan-digest.d.ts +5 -0
  290. package/dist/hub/init/plan-digest.js +47 -0
  291. package/dist/hub/init/plan-digest.js.map +1 -0
  292. package/dist/hub/init/prompt.d.ts +26 -0
  293. package/dist/hub/init/prompt.js +110 -0
  294. package/dist/hub/init/prompt.js.map +1 -0
  295. package/dist/hub/init/secret-file.d.ts +1 -0
  296. package/dist/hub/init/secret-file.js +59 -0
  297. package/dist/hub/init/secret-file.js.map +1 -0
  298. package/dist/hub/init/text.d.ts +127 -0
  299. package/dist/hub/init/text.js +247 -0
  300. package/dist/hub/init/text.js.map +1 -0
  301. package/dist/hub/init/types.d.ts +114 -0
  302. package/dist/hub/init/types.js +9 -0
  303. package/dist/hub/init/types.js.map +1 -0
  304. package/dist/hub/init/wizard.d.ts +34 -0
  305. package/dist/hub/init/wizard.js +554 -0
  306. package/dist/hub/init/wizard.js.map +1 -0
  307. package/dist/hub/initialization.d.ts +23 -0
  308. package/dist/hub/initialization.js +28 -0
  309. package/dist/hub/initialization.js.map +1 -0
  310. package/dist/hub/member/agent-mode.d.ts +6 -0
  311. package/dist/hub/member/agent-mode.js +23 -0
  312. package/dist/hub/member/agent-mode.js.map +1 -0
  313. package/dist/hub/member/attachments.d.ts +29 -0
  314. package/dist/hub/member/attachments.js +107 -0
  315. package/dist/hub/member/attachments.js.map +1 -0
  316. package/dist/hub/member/exposure-api.d.ts +87 -0
  317. package/dist/hub/member/exposure-api.js +64 -0
  318. package/dist/hub/member/exposure-api.js.map +1 -0
  319. package/dist/hub/member/exposures.d.ts +123 -0
  320. package/dist/hub/member/exposures.js +282 -0
  321. package/dist/hub/member/exposures.js.map +1 -0
  322. package/dist/hub/member/pairing-api.d.ts +85 -0
  323. package/dist/hub/member/pairing-api.js +385 -0
  324. package/dist/hub/member/pairing-api.js.map +1 -0
  325. package/dist/hub/member/quota.d.ts +20 -0
  326. package/dist/hub/member/quota.js +98 -0
  327. package/dist/hub/member/quota.js.map +1 -0
  328. package/dist/hub/member-journal.d.ts +104 -0
  329. package/dist/hub/member-journal.js +336 -0
  330. package/dist/hub/member-journal.js.map +1 -0
  331. package/dist/hub/member-reconciliation.d.ts +14 -0
  332. package/dist/hub/member-reconciliation.js +97 -0
  333. package/dist/hub/member-reconciliation.js.map +1 -0
  334. package/dist/hub/mount.d.ts +39 -0
  335. package/dist/hub/mount.js +123 -0
  336. package/dist/hub/mount.js.map +1 -0
  337. package/dist/hub/pairing-client.d.ts +17 -0
  338. package/dist/hub/pairing-client.js +108 -0
  339. package/dist/hub/pairing-client.js.map +1 -0
  340. package/dist/hub/pairing.d.ts +67 -0
  341. package/dist/hub/pairing.js +214 -0
  342. package/dist/hub/pairing.js.map +1 -0
  343. package/dist/hub/policy.d.ts +63 -0
  344. package/dist/hub/policy.js +147 -0
  345. package/dist/hub/policy.js.map +1 -0
  346. package/dist/hub/preview.d.ts +32 -0
  347. package/dist/hub/preview.js +64 -0
  348. package/dist/hub/preview.js.map +1 -0
  349. package/dist/hub/private-files.d.ts +5 -0
  350. package/dist/hub/private-files.js +44 -0
  351. package/dist/hub/private-files.js.map +1 -0
  352. package/dist/hub/profile.d.ts +59 -0
  353. package/dist/hub/profile.js +73 -0
  354. package/dist/hub/profile.js.map +1 -0
  355. package/dist/hub/protocol.d.ts +779 -0
  356. package/dist/hub/protocol.js +93 -0
  357. package/dist/hub/protocol.js.map +1 -0
  358. package/dist/hub/quota.d.ts +24 -0
  359. package/dist/hub/quota.js +112 -0
  360. package/dist/hub/quota.js.map +1 -0
  361. package/dist/hub/representative.d.ts +141 -0
  362. package/dist/hub/representative.js +528 -0
  363. package/dist/hub/representative.js.map +1 -0
  364. package/dist/hub/retention.d.ts +17 -0
  365. package/dist/hub/retention.js +45 -0
  366. package/dist/hub/retention.js.map +1 -0
  367. package/dist/hub/rooms.d.ts +120 -0
  368. package/dist/hub/rooms.js +535 -0
  369. package/dist/hub/rooms.js.map +1 -0
  370. package/dist/hub/runtime.d.ts +106 -0
  371. package/dist/hub/runtime.js +298 -0
  372. package/dist/hub/runtime.js.map +1 -0
  373. package/dist/hub/server.d.ts +58 -0
  374. package/dist/hub/server.js +212 -0
  375. package/dist/hub/server.js.map +1 -0
  376. package/dist/hub/service-start.d.ts +17 -0
  377. package/dist/hub/service-start.js +109 -0
  378. package/dist/hub/service-start.js.map +1 -0
  379. package/dist/hub/sessions.d.ts +53 -0
  380. package/dist/hub/sessions.js +196 -0
  381. package/dist/hub/sessions.js.map +1 -0
  382. package/dist/hub/socket.d.ts +24 -0
  383. package/dist/hub/socket.js +79 -0
  384. package/dist/hub/socket.js.map +1 -0
  385. package/dist/hub/store.d.ts +77 -0
  386. package/dist/hub/store.js +88 -0
  387. package/dist/hub/store.js.map +1 -0
  388. package/dist/hub/tls.d.ts +31 -0
  389. package/dist/hub/tls.js +135 -0
  390. package/dist/hub/tls.js.map +1 -0
  391. package/dist/hub/types.d.ts +401 -0
  392. package/dist/hub/types.js +2 -0
  393. package/dist/hub/types.js.map +1 -0
  394. package/dist/hub/validation.d.ts +33 -0
  395. package/dist/hub/validation.js +136 -0
  396. package/dist/hub/validation.js.map +1 -0
  397. package/dist/hub/version-floor.d.ts +10 -0
  398. package/dist/hub/version-floor.js +45 -0
  399. package/dist/hub/version-floor.js.map +1 -0
  400. package/dist/hub-browser-certificate-policy.d.ts +31 -0
  401. package/dist/hub-browser-certificate-policy.js +25 -0
  402. package/dist/hub-browser-certificate-policy.js.map +1 -0
  403. package/dist/hub-membership-settings.d.ts +6 -0
  404. package/dist/hub-membership-settings.js +21 -0
  405. package/dist/hub-membership-settings.js.map +1 -0
  406. package/dist/hub-mode.d.ts +15 -0
  407. package/dist/hub-mode.js +17 -0
  408. package/dist/hub-mode.js.map +1 -0
  409. package/dist/hub-pairing-summary.d.ts +48 -0
  410. package/dist/hub-pairing-summary.js +36 -0
  411. package/dist/hub-pairing-summary.js.map +1 -0
  412. package/dist/hub-report-target.d.ts +32 -0
  413. package/dist/hub-report-target.js +33 -0
  414. package/dist/hub-report-target.js.map +1 -0
  415. package/dist/hub-retention-policy.d.ts +14 -0
  416. package/dist/hub-retention-policy.js +15 -0
  417. package/dist/hub-retention-policy.js.map +1 -0
  418. package/dist/instance-config-impact.js +7 -3
  419. package/dist/instance-config-impact.js.map +1 -1
  420. package/dist/instance-lifecycle.d.ts +34 -2
  421. package/dist/instance-lifecycle.js +96 -9
  422. package/dist/instance-lifecycle.js.map +1 -1
  423. package/dist/instance-topic-delete.d.ts +77 -0
  424. package/dist/instance-topic-delete.js +123 -0
  425. package/dist/instance-topic-delete.js.map +1 -0
  426. package/dist/instructions.d.ts +1 -1
  427. package/dist/instructions.js +1 -1
  428. package/dist/instructions.js.map +1 -1
  429. package/dist/kiro-engine-status.d.ts +11 -0
  430. package/dist/kiro-engine-status.js +6 -0
  431. package/dist/kiro-engine-status.js.map +1 -1
  432. package/dist/launchd-service-domain.d.ts +5 -0
  433. package/dist/launchd-service-domain.js +21 -0
  434. package/dist/launchd-service-domain.js.map +1 -0
  435. package/dist/locale.js +146 -3
  436. package/dist/locale.js.map +1 -1
  437. package/dist/log-service.d.ts +28 -0
  438. package/dist/log-service.js +29 -0
  439. package/dist/log-service.js.map +1 -1
  440. package/dist/log-steps.d.ts +4 -3
  441. package/dist/log-steps.js +32 -7
  442. package/dist/log-steps.js.map +1 -1
  443. package/dist/logger.d.ts +16 -2
  444. package/dist/logger.js +346 -66
  445. package/dist/logger.js.map +1 -1
  446. package/dist/login-controller.d.ts +5 -0
  447. package/dist/login-controller.js +11 -0
  448. package/dist/login-controller.js.map +1 -1
  449. package/dist/login-flows.d.ts +15 -7
  450. package/dist/login-flows.js +29 -3
  451. package/dist/login-flows.js.map +1 -1
  452. package/dist/login-manager.js +25 -4
  453. package/dist/login-manager.js.map +1 -1
  454. package/dist/login-window-lock.d.ts +2 -1
  455. package/dist/login-window-lock.js.map +1 -1
  456. package/dist/ls-rows.d.ts +1 -1
  457. package/dist/ls-rows.js +3 -4
  458. package/dist/ls-rows.js.map +1 -1
  459. package/dist/machine-accounts.d.ts +110 -0
  460. package/dist/machine-accounts.js +229 -0
  461. package/dist/machine-accounts.js.map +1 -0
  462. package/dist/machine-signins.d.ts +89 -0
  463. package/dist/machine-signins.js +182 -0
  464. package/dist/machine-signins.js.map +1 -0
  465. package/dist/missed-offline.d.ts +25 -0
  466. package/dist/missed-offline.js +79 -0
  467. package/dist/missed-offline.js.map +1 -0
  468. package/dist/muse-usage-relay.d.ts +2 -0
  469. package/dist/muse-usage-relay.js +5 -3
  470. package/dist/muse-usage-relay.js.map +1 -1
  471. package/dist/native-instance-api.d.ts +0 -1
  472. package/dist/native-instance-api.js +15 -3
  473. package/dist/native-instance-api.js.map +1 -1
  474. package/dist/native-instance-input.d.ts +3 -0
  475. package/dist/native-instance-input.js +6 -1
  476. package/dist/native-instance-input.js.map +1 -1
  477. package/dist/native-instance-registry.d.ts +6 -0
  478. package/dist/native-instance-registry.js +24 -0
  479. package/dist/native-instance-registry.js.map +1 -1
  480. package/dist/native-mcp.d.ts +3 -0
  481. package/dist/native-mcp.js +15 -2
  482. package/dist/native-mcp.js.map +1 -1
  483. package/dist/native-pane-lifecycle.d.ts +8 -0
  484. package/dist/native-pane-lifecycle.js +13 -4
  485. package/dist/native-pane-lifecycle.js.map +1 -1
  486. package/dist/native-pane-manager.js +17 -9
  487. package/dist/native-pane-manager.js.map +1 -1
  488. package/dist/needs-you-hub.d.ts +12 -1
  489. package/dist/needs-you-hub.js +57 -9
  490. package/dist/needs-you-hub.js.map +1 -1
  491. package/dist/needs-you.d.ts +80 -2
  492. package/dist/needs-you.js +50 -3
  493. package/dist/needs-you.js.map +1 -1
  494. package/dist/office-share-page.js +2 -2
  495. package/dist/office-share-page.js.map +1 -1
  496. package/dist/office-share.d.ts +11 -0
  497. package/dist/office-share.js +14 -0
  498. package/dist/office-share.js.map +1 -1
  499. package/dist/office-talk.d.ts +26 -0
  500. package/dist/office-talk.js +50 -0
  501. package/dist/office-talk.js.map +1 -0
  502. package/dist/outbound-handlers.d.ts +14 -0
  503. package/dist/outbound-handlers.js +49 -6
  504. package/dist/outbound-handlers.js.map +1 -1
  505. package/dist/outbound-schemas.d.ts +33 -1
  506. package/dist/outbound-schemas.js +29 -16
  507. package/dist/outbound-schemas.js.map +1 -1
  508. package/dist/pane-quota-history.d.ts +9 -0
  509. package/dist/pane-quota-history.js +67 -0
  510. package/dist/pane-quota-history.js.map +1 -0
  511. package/dist/pause-marker.d.ts +1 -1
  512. package/dist/pause-marker.js +1 -1
  513. package/dist/pause-marker.js.map +1 -1
  514. package/dist/platform-general.d.ts +46 -0
  515. package/dist/platform-general.js +91 -0
  516. package/dist/platform-general.js.map +1 -0
  517. package/dist/public-web-gateway.js +7 -0
  518. package/dist/public-web-gateway.js.map +1 -1
  519. package/dist/queued-handoffs.d.ts +33 -0
  520. package/dist/queued-handoffs.js +75 -0
  521. package/dist/queued-handoffs.js.map +1 -0
  522. package/dist/quickstart.d.ts +13 -0
  523. package/dist/quickstart.js +68 -3
  524. package/dist/quickstart.js.map +1 -1
  525. package/dist/quiet-run.d.ts +31 -0
  526. package/dist/quiet-run.js +50 -0
  527. package/dist/quiet-run.js.map +1 -0
  528. package/dist/quota-notice-config.d.ts +22 -0
  529. package/dist/quota-notice-config.js +41 -0
  530. package/dist/quota-notice-config.js.map +1 -0
  531. package/dist/quota-notice.d.ts +7 -0
  532. package/dist/quota-notice.js +40 -0
  533. package/dist/quota-notice.js.map +1 -1
  534. package/dist/reply-buttons-controller.js +10 -6
  535. package/dist/reply-buttons-controller.js.map +1 -1
  536. package/dist/reply-polls.d.ts +2 -2
  537. package/dist/reply-polls.js +3 -3
  538. package/dist/reply-polls.js.map +1 -1
  539. package/dist/runtime-api.d.ts +15 -0
  540. package/dist/runtime-api.js +149 -7
  541. package/dist/runtime-api.js.map +1 -1
  542. package/dist/runtime-build-info.d.ts +2 -1
  543. package/dist/runtime-build-info.js +9 -3
  544. package/dist/runtime-build-info.js.map +1 -1
  545. package/dist/runtime-bundle.d.ts +3 -0
  546. package/dist/runtime-bundle.js +3 -1
  547. package/dist/runtime-bundle.js.map +1 -1
  548. package/dist/runtime-cli-install.d.ts +153 -0
  549. package/dist/runtime-cli-install.js +675 -0
  550. package/dist/runtime-cli-install.js.map +1 -0
  551. package/dist/runtime-cli.d.ts +8 -1
  552. package/dist/runtime-cli.js +273 -9
  553. package/dist/runtime-cli.js.map +1 -1
  554. package/dist/runtime-client-store.d.ts +7 -0
  555. package/dist/runtime-client-store.js +30 -2
  556. package/dist/runtime-client-store.js.map +1 -1
  557. package/dist/runtime-client.d.ts +126 -2
  558. package/dist/runtime-client.js +558 -27
  559. package/dist/runtime-client.js.map +1 -1
  560. package/dist/runtime-coordinator.d.ts +17 -1
  561. package/dist/runtime-coordinator.js +304 -35
  562. package/dist/runtime-coordinator.js.map +1 -1
  563. package/dist/runtime-credential-profiles.d.ts +87 -0
  564. package/dist/runtime-credential-profiles.js +304 -0
  565. package/dist/runtime-credential-profiles.js.map +1 -0
  566. package/dist/runtime-install.d.ts +50 -0
  567. package/dist/runtime-install.js +189 -0
  568. package/dist/runtime-install.js.map +1 -0
  569. package/dist/runtime-pane-assets.d.ts +1 -1
  570. package/dist/runtime-pane-assets.js +1 -1
  571. package/dist/runtime-pane-assets.js.map +1 -1
  572. package/dist/runtime-pane-codex-index.d.ts +10 -1
  573. package/dist/runtime-pane-codex-index.js +131 -27
  574. package/dist/runtime-pane-codex-index.js.map +1 -1
  575. package/dist/runtime-pane-host.d.ts +19 -0
  576. package/dist/runtime-pane-host.js +50 -7
  577. package/dist/runtime-pane-host.js.map +1 -1
  578. package/dist/runtime-pane-link.d.ts +7 -0
  579. package/dist/runtime-pane-link.js +95 -3
  580. package/dist/runtime-pane-link.js.map +1 -1
  581. package/dist/runtime-pane-mcp-relay.d.ts +1 -0
  582. package/dist/runtime-pane-mcp-relay.js +10 -0
  583. package/dist/runtime-pane-mcp-relay.js.map +1 -1
  584. package/dist/runtime-pane-mcp.d.ts +4 -0
  585. package/dist/runtime-pane-mcp.js +6 -3
  586. package/dist/runtime-pane-mcp.js.map +1 -1
  587. package/dist/runtime-pane-native.d.ts +32 -2
  588. package/dist/runtime-pane-native.js +55 -6
  589. package/dist/runtime-pane-native.js.map +1 -1
  590. package/dist/runtime-pane-port.d.ts +5 -0
  591. package/dist/runtime-pane-port.js +17 -1
  592. package/dist/runtime-pane-port.js.map +1 -1
  593. package/dist/runtime-pane-process.d.ts +1 -1
  594. package/dist/runtime-pane-process.js +11 -2
  595. package/dist/runtime-pane-process.js.map +1 -1
  596. package/dist/runtime-pane-protocol.d.ts +11 -1
  597. package/dist/runtime-pane-protocol.js +27 -5
  598. package/dist/runtime-pane-protocol.js.map +1 -1
  599. package/dist/runtime-pane-quota-history.d.ts +6 -0
  600. package/dist/runtime-pane-quota-history.js +44 -0
  601. package/dist/runtime-pane-quota-history.js.map +1 -0
  602. package/dist/runtime-pane-service.d.ts +5 -0
  603. package/dist/runtime-pane-service.js +49 -14
  604. package/dist/runtime-pane-service.js.map +1 -1
  605. package/dist/runtime-pane-store.d.ts +10 -0
  606. package/dist/runtime-pane-store.js +13 -1
  607. package/dist/runtime-pane-store.js.map +1 -1
  608. package/dist/runtime-pane-transcript.d.ts +5 -0
  609. package/dist/runtime-pane-transcript.js +66 -5
  610. package/dist/runtime-pane-transcript.js.map +1 -1
  611. package/dist/runtime-pane-worker.js +19 -6
  612. package/dist/runtime-pane-worker.js.map +1 -1
  613. package/dist/runtime-profile-ownership.d.ts +66 -0
  614. package/dist/runtime-profile-ownership.js +391 -0
  615. package/dist/runtime-profile-ownership.js.map +1 -0
  616. package/dist/runtime-protocol.d.ts +103 -2
  617. package/dist/runtime-protocol.js +52 -0
  618. package/dist/runtime-protocol.js.map +1 -1
  619. package/dist/runtime-remote-accounts.d.ts +197 -0
  620. package/dist/runtime-remote-accounts.js +663 -0
  621. package/dist/runtime-remote-accounts.js.map +1 -0
  622. package/dist/runtime-remote-setup.d.ts +105 -0
  623. package/dist/runtime-remote-setup.js +529 -0
  624. package/dist/runtime-remote-setup.js.map +1 -0
  625. package/dist/runtime-signin-transport.d.ts +39 -0
  626. package/dist/runtime-signin-transport.js +110 -0
  627. package/dist/runtime-signin-transport.js.map +1 -0
  628. package/dist/runtime-signin.d.ts +132 -0
  629. package/dist/runtime-signin.js +289 -0
  630. package/dist/runtime-signin.js.map +1 -0
  631. package/dist/runtime-update-activity.d.ts +21 -0
  632. package/dist/runtime-update-activity.js +51 -0
  633. package/dist/runtime-update-activity.js.map +1 -0
  634. package/dist/runtime-update-artifact.d.ts +31 -0
  635. package/dist/runtime-update-artifact.js +252 -0
  636. package/dist/runtime-update-artifact.js.map +1 -0
  637. package/dist/runtime-update-attention.d.ts +4 -0
  638. package/dist/runtime-update-attention.js +11 -0
  639. package/dist/runtime-update-attention.js.map +1 -0
  640. package/dist/runtime-update-controller.d.ts +75 -0
  641. package/dist/runtime-update-controller.js +691 -0
  642. package/dist/runtime-update-controller.js.map +1 -0
  643. package/dist/runtime-update-install.d.ts +31 -0
  644. package/dist/runtime-update-install.js +205 -0
  645. package/dist/runtime-update-install.js.map +1 -0
  646. package/dist/runtime-update-ipc.d.ts +42 -0
  647. package/dist/runtime-update-ipc.js +144 -0
  648. package/dist/runtime-update-ipc.js.map +1 -0
  649. package/dist/runtime-update-journal.d.ts +49 -0
  650. package/dist/runtime-update-journal.js +128 -0
  651. package/dist/runtime-update-journal.js.map +1 -0
  652. package/dist/runtime-update-lock.d.ts +48 -0
  653. package/dist/runtime-update-lock.js +232 -0
  654. package/dist/runtime-update-lock.js.map +1 -0
  655. package/dist/runtime-update-owners.d.ts +29 -0
  656. package/dist/runtime-update-owners.js +240 -0
  657. package/dist/runtime-update-owners.js.map +1 -0
  658. package/dist/runtime-update-protocol.d.ts +15 -0
  659. package/dist/runtime-update-protocol.js +13 -0
  660. package/dist/runtime-update-protocol.js.map +1 -0
  661. package/dist/runtime-update-status.d.ts +30 -0
  662. package/dist/runtime-update-status.js +31 -0
  663. package/dist/runtime-update-status.js.map +1 -0
  664. package/dist/runtime-windows-bridge.d.ts +2 -1
  665. package/dist/runtime-windows-bridge.js +11 -1
  666. package/dist/runtime-windows-bridge.js.map +1 -1
  667. package/dist/scheduler/db.d.ts +2 -1
  668. package/dist/scheduler/db.js +23 -9
  669. package/dist/scheduler/db.js.map +1 -1
  670. package/dist/scheduler/task-board-text.js +1 -1
  671. package/dist/scheduler/task-board-text.js.map +1 -1
  672. package/dist/scheduler/task-board.d.ts +13 -0
  673. package/dist/scheduler/task-board.js +28 -3
  674. package/dist/scheduler/task-board.js.map +1 -1
  675. package/dist/service-drain.d.ts +19 -0
  676. package/dist/service-drain.js +64 -0
  677. package/dist/service-drain.js.map +1 -0
  678. package/dist/service-installer.d.ts +7 -2
  679. package/dist/service-installer.js +13 -10
  680. package/dist/service-installer.js.map +1 -1
  681. package/dist/settings-api.d.ts +20 -0
  682. package/dist/settings-api.js +417 -4
  683. package/dist/settings-api.js.map +1 -1
  684. package/dist/settings-baseline.d.ts +6 -0
  685. package/dist/settings-baseline.js +3 -1
  686. package/dist/settings-baseline.js.map +1 -1
  687. package/dist/settings-change.js +37 -6
  688. package/dist/settings-change.js.map +1 -1
  689. package/dist/settings-effect.d.ts +13 -0
  690. package/dist/settings-effect.js +97 -0
  691. package/dist/settings-effect.js.map +1 -1
  692. package/dist/settings-http-confirmation.js +13 -1
  693. package/dist/settings-http-confirmation.js.map +1 -1
  694. package/dist/settings-instance-patch.js +28 -1
  695. package/dist/settings-instance-patch.js.map +1 -1
  696. package/dist/setup-wizard.js +4 -2
  697. package/dist/setup-wizard.js.map +1 -1
  698. package/dist/signin-keepalive.d.ts +203 -0
  699. package/dist/signin-keepalive.js +652 -0
  700. package/dist/signin-keepalive.js.map +1 -0
  701. package/dist/structured-signin-transport.js +4 -0
  702. package/dist/structured-signin-transport.js.map +1 -1
  703. package/dist/structured-signin.d.ts +7 -0
  704. package/dist/structured-signin.js +1 -1
  705. package/dist/structured-signin.js.map +1 -1
  706. package/dist/task-board-tool.d.ts +13 -1
  707. package/dist/task-board-tool.js +104 -4
  708. package/dist/task-board-tool.js.map +1 -1
  709. package/dist/task-board-waker.d.ts +6 -0
  710. package/dist/task-board-waker.js +4 -0
  711. package/dist/task-board-waker.js.map +1 -1
  712. package/dist/tmux-binary.d.ts +59 -0
  713. package/dist/tmux-binary.js +189 -0
  714. package/dist/tmux-binary.js.map +1 -0
  715. package/dist/tmux-control.js +4 -4
  716. package/dist/tmux-control.js.map +1 -1
  717. package/dist/tmux-exec-helper.js +32 -1
  718. package/dist/tmux-exec-helper.js.map +1 -1
  719. package/dist/tmux-legacy.d.ts +94 -0
  720. package/dist/tmux-legacy.js +309 -0
  721. package/dist/tmux-legacy.js.map +1 -0
  722. package/dist/tmux-manager.d.ts +7 -1
  723. package/dist/tmux-manager.js +56 -37
  724. package/dist/tmux-manager.js.map +1 -1
  725. package/dist/tmux-read.js +4 -3
  726. package/dist/tmux-read.js.map +1 -1
  727. package/dist/tmux-rollback.d.ts +31 -0
  728. package/dist/tmux-rollback.js +72 -0
  729. package/dist/tmux-rollback.js.map +1 -0
  730. package/dist/tmux-server.d.ts +102 -0
  731. package/dist/tmux-server.js +248 -0
  732. package/dist/tmux-server.js.map +1 -0
  733. package/dist/tool-permissions.d.ts +5 -2
  734. package/dist/tool-permissions.js +6 -5
  735. package/dist/tool-permissions.js.map +1 -1
  736. package/dist/tool-progress.d.ts +2 -0
  737. package/dist/tool-progress.js +19 -3
  738. package/dist/tool-progress.js.map +1 -1
  739. package/dist/topic-commands.js +10 -5
  740. package/dist/topic-commands.js.map +1 -1
  741. package/dist/transcript-monitor.d.ts +20 -0
  742. package/dist/transcript-monitor.js +87 -5
  743. package/dist/transcript-monitor.js.map +1 -1
  744. package/dist/transcript-needles.d.ts +7 -0
  745. package/dist/transcript-needles.js +9 -1
  746. package/dist/transcript-needles.js.map +1 -1
  747. package/dist/transcript-records.d.ts +2 -1
  748. package/dist/transcript-records.js +5 -1
  749. package/dist/transcript-records.js.map +1 -1
  750. package/dist/transcript-sources.js +3 -0
  751. package/dist/transcript-sources.js.map +1 -1
  752. package/dist/types.d.ts +9 -0
  753. package/dist/ui/account-identity.js +27 -0
  754. package/dist/ui/accounts-keepalive.js +112 -0
  755. package/dist/ui/accounts-manage.js +237 -0
  756. package/dist/ui/accounts-view.js +358 -0
  757. package/dist/ui/agent-runtime-settings.js +11 -9
  758. package/dist/ui/app.html +8 -1
  759. package/dist/ui/backend-signin.js +4 -1
  760. package/dist/ui/chat-ambient.js +1 -1
  761. package/dist/ui/chat-md-strings.js +3 -0
  762. package/dist/ui/chat-render.js +3 -670
  763. package/dist/ui/chat-store.js +1 -1
  764. package/dist/ui/chat-strings.js +3 -333
  765. package/dist/ui/chat-thread.js +3 -919
  766. package/dist/ui/chat-time.js +3 -80
  767. package/dist/ui/chat-tour.js +1 -1
  768. package/dist/ui/credential-profile-select.js +54 -0
  769. package/dist/ui/fleet-office-dialogue.d.ts +30 -0
  770. package/dist/ui/fleet-office-dialogue.js +382 -0
  771. package/dist/ui/fleet-office-pack.d.ts +9 -0
  772. package/dist/ui/fleet-office-pack.js +76 -4
  773. package/dist/ui/fleet-office-skin.js +23 -5
  774. package/dist/ui/fleet-office-store.js +5 -0
  775. package/dist/ui/fleet-office.js +173 -6
  776. package/dist/ui/fleet-task-card.js +10 -6
  777. package/dist/ui/fleet-task-common.js +12 -2
  778. package/dist/ui/fleet-task-menu.js +188 -0
  779. package/dist/ui/fleet-task-stats.js +124 -0
  780. package/dist/ui/fleet-task-view.js +340 -0
  781. package/dist/ui/fleet-tasks.js +131 -43
  782. package/dist/ui/fleet-usage.js +90 -27
  783. package/dist/ui/html-attachment.js +3 -40
  784. package/dist/ui/hub-agent-copy.js +23 -0
  785. package/dist/ui/hub-attachments.js +90 -0
  786. package/dist/ui/hub-button-actions.js +65 -0
  787. package/dist/ui/hub-chat-store.js +163 -0
  788. package/dist/ui/hub-chat-strings.js +77 -0
  789. package/dist/ui/hub-client.js +348 -0
  790. package/dist/ui/hub-owner-strings.js +51 -0
  791. package/dist/ui/hub-preview.js +101 -0
  792. package/dist/ui/hub-provider-guidance.js +31 -0
  793. package/dist/ui/hub-quota.js +85 -0
  794. package/dist/ui/hub-strings.js +162 -0
  795. package/dist/ui/hub-switcher.js +27 -0
  796. package/dist/ui/machine-signin.js +56 -0
  797. package/dist/ui/native-pane-recovery.js +1 -1
  798. package/dist/ui/office-share-page.js +4 -2
  799. package/dist/ui/panel-chat.js +34 -48
  800. package/dist/ui/panel-details.js +1 -1
  801. package/dist/ui/panel-fleet.js +79 -11
  802. package/dist/ui/panel-hub.js +714 -0
  803. package/dist/ui/panel-log.js +2 -2
  804. package/dist/ui/panel-needs.js +36 -14
  805. package/dist/ui/panel-notices.js +4 -3
  806. package/dist/ui/panel-runtimes.js +131 -27
  807. package/dist/ui/panel-settings.js +81 -86
  808. package/dist/ui/panel-windows-agent.js +2 -1
  809. package/dist/ui/panel-windows-cli.js +12 -2
  810. package/dist/ui/preview-pages.js +3 -41
  811. package/dist/ui/preview-panel-actions.js +3 -161
  812. package/dist/ui/preview-panel.js +11 -472
  813. package/dist/ui/preview-versions.js +3 -155
  814. package/dist/ui/preview.js +3 -476
  815. package/dist/ui/runtime-cli-install.js +114 -0
  816. package/dist/ui/runtime-commands.d.ts +4 -0
  817. package/dist/ui/runtime-commands.js +59 -0
  818. package/dist/ui/runtime-update-commands.d.ts +2 -0
  819. package/dist/ui/runtime-update-commands.js +11 -0
  820. package/dist/ui/runtime-update-status.js +53 -0
  821. package/dist/ui/search-dialog.js +5 -2
  822. package/dist/ui/settings-access-strings.js +42 -0
  823. package/dist/ui/settings-build-version.js +35 -0
  824. package/dist/ui/settings-codex-copy.js +19 -0
  825. package/dist/ui/settings-devices.js +253 -0
  826. package/dist/ui/settings-dialogs.js +28 -7
  827. package/dist/ui/settings-guests.js +3 -2
  828. package/dist/ui/settings-hub-browser-certificate.js +76 -0
  829. package/dist/ui/settings-hub-membership.js +78 -0
  830. package/dist/ui/settings-hub-retention.js +54 -0
  831. package/dist/ui/settings-hub.js +204 -0
  832. package/dist/ui/settings-layout.js +8 -11
  833. package/dist/ui/settings-model.js +16 -2
  834. package/dist/ui/settings-outside.js +104 -38
  835. package/dist/ui/settings-quota-notice.js +100 -0
  836. package/dist/ui/settings-registry.js +5 -1
  837. package/dist/ui/settings-shared-strings.js +143 -0
  838. package/dist/ui/settings-shared.js +345 -0
  839. package/dist/ui/settings-strings.js +12 -48
  840. package/dist/ui/settings-web-authority.js +7 -3
  841. package/dist/ui/shared/accounts-keepalive.css +7 -0
  842. package/dist/ui/shared/accounts.css +28 -0
  843. package/dist/ui/shared/app-i18n.js +2 -2
  844. package/dist/ui/shared/app-needs.js +1 -1
  845. package/dist/ui/shared/app-route.js +7 -2
  846. package/dist/ui/shared/app-session.js +6 -2
  847. package/dist/ui/shared/app-shell.js +73 -11
  848. package/dist/ui/shared/app-store.js +2 -2
  849. package/dist/ui/shared/app.css +134 -30
  850. package/dist/ui/shared/app.js +14 -4
  851. package/dist/ui/shared/chat-composer.js +68 -0
  852. package/dist/ui/shared/chat-md-strings.js +9 -0
  853. package/dist/ui/shared/chat-render.js +682 -0
  854. package/dist/ui/shared/chat-strings.js +333 -0
  855. package/dist/ui/shared/chat-thread.js +969 -0
  856. package/dist/ui/shared/chat-time.js +80 -0
  857. package/dist/ui/shared/header-tools.js +3 -5
  858. package/dist/ui/shared/html-attachment.js +42 -0
  859. package/dist/ui/shared/hub-chat.css +86 -0
  860. package/dist/ui/shared/hub-owner.css +33 -0
  861. package/dist/ui/shared/hub-quota.css +8 -0
  862. package/dist/ui/shared/hub.css +71 -0
  863. package/dist/ui/shared/loading.css +37 -0
  864. package/dist/ui/shared/page-head.js +8 -0
  865. package/dist/ui/shared/panel-view.js +77 -4
  866. package/dist/ui/shared/preview-pages.js +41 -0
  867. package/dist/ui/shared/preview-panel-actions.js +168 -0
  868. package/dist/ui/shared/preview-panel.js +565 -0
  869. package/dist/ui/shared/preview-versions.js +155 -0
  870. package/dist/ui/shared/preview.js +476 -0
  871. package/dist/ui/shared/runtime-install.css +30 -0
  872. package/dist/ui/shared/side-rail.js +15 -0
  873. package/dist/ui/shared/signin.js +238 -4
  874. package/dist/ui/shared/task-board.css +95 -0
  875. package/dist/ui/shared/ui-states.js +14 -3
  876. package/dist/ui/shared/usage-dialog.js +18 -1
  877. package/dist/ui/shared/view-history.css +17 -0
  878. package/dist/ui/shared/view-history.js +438 -0
  879. package/dist/ui/shared/view-strings.js +16 -0
  880. package/dist/ui/shared/workspace-follow.css +19 -0
  881. package/dist/ui/shared/workspace.css +20 -0
  882. package/dist/ui/signin.html +27 -2
  883. package/dist/ui/structured-signin.js +31 -7
  884. package/dist/ui/workspace-follow-strings.js +28 -0
  885. package/dist/ui/workspace-panel.js +378 -0
  886. package/dist/ui/workspace-strings.js +35 -0
  887. package/dist/unattended-install.d.ts +11 -2
  888. package/dist/unattended-install.js +41 -6
  889. package/dist/unattended-install.js.map +1 -1
  890. package/dist/update-install.d.ts +7 -0
  891. package/dist/update-install.js +23 -0
  892. package/dist/update-install.js.map +1 -1
  893. package/dist/usage/capacity.d.ts +69 -0
  894. package/dist/usage/capacity.js +119 -0
  895. package/dist/usage/capacity.js.map +1 -0
  896. package/dist/usage/i18n-keys.d.ts +1 -1
  897. package/dist/usage/i18n-keys.js +3 -0
  898. package/dist/usage/i18n-keys.js.map +1 -1
  899. package/dist/usage/profile-timeline.d.ts +16 -0
  900. package/dist/usage/profile-timeline.js +58 -0
  901. package/dist/usage/profile-timeline.js.map +1 -0
  902. package/dist/usage/providers.d.ts +5 -0
  903. package/dist/usage/providers.js +7 -1
  904. package/dist/usage/providers.js.map +1 -1
  905. package/dist/usage/quota-history.d.ts +43 -0
  906. package/dist/usage/quota-history.js +168 -0
  907. package/dist/usage/quota-history.js.map +1 -0
  908. package/dist/usage/quota-notices.d.ts +38 -0
  909. package/dist/usage/quota-notices.js +160 -0
  910. package/dist/usage/quota-notices.js.map +1 -0
  911. package/dist/usage/usage-api.d.ts +32 -0
  912. package/dist/usage/usage-api.js +96 -1
  913. package/dist/usage/usage-api.js.map +1 -1
  914. package/dist/usage-report.d.ts +25 -1
  915. package/dist/usage-report.js +55 -4
  916. package/dist/usage-report.js.map +1 -1
  917. package/dist/usage-rollup.d.ts +6 -1
  918. package/dist/usage-rollup.js +16 -4
  919. package/dist/usage-rollup.js.map +1 -1
  920. package/dist/view-api.d.ts +16 -0
  921. package/dist/view-api.js +105 -23
  922. package/dist/view-api.js.map +1 -1
  923. package/dist/view-history.d.ts +84 -0
  924. package/dist/view-history.js +116 -0
  925. package/dist/view-history.js.map +1 -0
  926. package/dist/web-api.d.ts +81 -2
  927. package/dist/web-api.js +615 -13
  928. package/dist/web-api.js.map +1 -1
  929. package/dist/web-backend-login.d.ts +23 -1
  930. package/dist/web-backend-login.js +11 -17
  931. package/dist/web-backend-login.js.map +1 -1
  932. package/dist/web-device-login.d.ts +153 -0
  933. package/dist/web-device-login.js +278 -0
  934. package/dist/web-device-login.js.map +1 -0
  935. package/dist/web-login.d.ts +35 -1
  936. package/dist/web-login.js +51 -5
  937. package/dist/web-login.js.map +1 -1
  938. package/dist/web-office-skins.d.ts +9 -0
  939. package/dist/web-office-skins.js +16 -1
  940. package/dist/web-office-skins.js.map +1 -1
  941. package/dist/web-session-authorization.d.ts +13 -2
  942. package/dist/web-session-authorization.js +10 -3
  943. package/dist/web-session-authorization.js.map +1 -1
  944. package/dist/web-session.d.ts +46 -0
  945. package/dist/web-session.js +45 -1
  946. package/dist/web-session.js.map +1 -1
  947. package/dist/web-settings-patch.d.ts +3 -1
  948. package/dist/web-settings-patch.js +4 -1
  949. package/dist/web-settings-patch.js.map +1 -1
  950. package/dist/web-shell-routes.d.ts +7 -1
  951. package/dist/web-shell-routes.js +8 -1
  952. package/dist/web-shell-routes.js.map +1 -1
  953. package/dist/web-signin-link.d.ts +42 -0
  954. package/dist/web-signin-link.js +110 -0
  955. package/dist/web-signin-link.js.map +1 -0
  956. package/dist/web-terminal.d.ts +4 -30
  957. package/dist/web-terminal.js +9 -6
  958. package/dist/web-terminal.js.map +1 -1
  959. package/dist/windows-agents.d.ts +1 -0
  960. package/dist/windows-agents.js +1 -0
  961. package/dist/windows-agents.js.map +1 -1
  962. package/dist/windows-cli-api.d.ts +18 -1
  963. package/dist/windows-cli-api.js +38 -1
  964. package/dist/windows-cli-api.js.map +1 -1
  965. package/dist/windows-cli-providers.d.ts +0 -9
  966. package/dist/windows-cli-providers.js +4 -9
  967. package/dist/windows-cli-providers.js.map +1 -1
  968. package/dist/windows-cli-worker.d.ts +26 -0
  969. package/dist/windows-cli-worker.js +113 -7
  970. package/dist/windows-cli-worker.js.map +1 -1
  971. package/dist/windows-cli.d.ts +10 -0
  972. package/dist/windows-cli.js +10 -1
  973. package/dist/windows-cli.js.map +1 -1
  974. package/dist/workspace-follow-parse.d.ts +36 -0
  975. package/dist/workspace-follow-parse.js +208 -0
  976. package/dist/workspace-follow-parse.js.map +1 -0
  977. package/dist/workspace-follow-records.d.ts +17 -0
  978. package/dist/workspace-follow-records.js +88 -0
  979. package/dist/workspace-follow-records.js.map +1 -0
  980. package/dist/workspace-follow.d.ts +41 -0
  981. package/dist/workspace-follow.js +143 -0
  982. package/dist/workspace-follow.js.map +1 -0
  983. package/dist/wsl-detect.d.ts +1 -0
  984. package/dist/wsl-detect.js +20 -0
  985. package/dist/wsl-detect.js.map +1 -0
  986. package/dist/yaml-shared-nodes.js +8 -3
  987. package/dist/yaml-shared-nodes.js.map +1 -1
  988. package/launcher/agend-install.cjs +8 -1
  989. package/launcher/launchd-session-type.cjs +14 -0
  990. package/launcher/postinstall.cjs +27 -2
  991. package/launcher/private-home.cjs +1 -1
  992. package/launcher/tmux-bundle.cjs +263 -0
  993. package/package.json +8 -3
  994. package/templates/launchd.plist.ejs +3 -1
  995. package/templates/runtime-install/install.ps1 +411 -0
@@ -0,0 +1,30 @@
1
+ /* Settings -> Runtime: the install-method tabs, the copyable command cards, the "needs reinstall" notice, and a computer's account
2
+ list (credential profiles and which account each sign-in is). Linked by panel-runtimes.js itself (a tab opened before an upgrade
3
+ has an app.css without these rules). */
4
+ .runtime-install { min-width: 0; }
5
+ .runtime-install-tabs { margin-bottom: 16px; }
6
+ .runtime-install-panel { min-width: 0; }
7
+ .runtime-command-card { min-width: 0; margin: 0 0 8px; }
8
+ .runtime-command-label { display: block; margin: 0 0 6px; font-size: var(--fs-sm); color: var(--text-2); }
9
+ .runtime-command-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
10
+ .runtime-command-row .btn { flex: none; }
11
+ .runtime-command-text { flex: 1; min-width: 0; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; overflow-x: auto; user-select: all; }
12
+ .runtime-command-text code { font: inherit; }
13
+ @media (max-width: 600px) { .runtime-command-row { flex-direction: column; align-items: stretch; } .runtime-command-row .btn { align-self: flex-start; } }
14
+ .runtime-installer-hash code { overflow-wrap: anywhere; font-family: var(--font-mono); }
15
+ .runtime-installer-error, .runtime-reinstall { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 8px; background: var(--warn-bg); font-size: var(--fs-sm); line-height: 1.5; }
16
+ .runtime-profiles { margin: 0 0 16px; }
17
+ .runtime-profiles h4 { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 500; }
18
+ .runtime-profile-list { list-style: none; margin: 0 0 6px; padding: 0; }
19
+ .runtime-profile-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
20
+ .runtime-profile-list li code { font: var(--fs-sm)/1.4 var(--font-mono); overflow-wrap: anywhere; }
21
+ .runtime-profile-list .runtime-cli-auth { margin-inline-start: auto; }
22
+ .runtime-account { display: block; color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
23
+ .runtime-profile-list .runtime-account { display: inline; }
24
+ .runtime-profile-default { padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-2); font-size: var(--fs-xs); }
25
+ .runtime-profiles .note, .runtime-profiles-old { margin: 4px 0 0; font-size: var(--fs-xs); }
26
+ .runtime-profiles-old { margin-bottom: 16px; }
27
+ /* Lazy Runtime update diagnostics remain readable with an older app.css. */
28
+ .runtime-update-notice { margin-block: .75rem; padding: .6rem .8rem; border-inline-start: 3px solid var(--border, #777); }
29
+ .runtime-update-notice p { margin-block: .25rem; overflow-wrap: anywhere; }
30
+ .runtime-update-notice[role="alert"] { border-inline-start-color: var(--warning, #b87218); }
@@ -0,0 +1,15 @@
1
+ // Hub PR A (#3226): the right-hand rail's frame — the AI usage rail's (#1673) layout, shared so the Hub's context panel is
2
+ // the same thing: a column beside the page with its title, the caller's tools and × on top, and its body below
3
+ // (`.u-rail`, `.u-rail-head`, `.u-rail-body`; app.css). Drawing only: whether it shows, what × does and what is inside
4
+ // are the caller's (UsageRail keeps its shown/hidden choice per device in agend_usage_rail).
5
+ import { html } from "./app-html.js";
6
+ import { Icon } from "./ui-icons.js";
7
+
8
+ /** `trust`: the region's data-trust; `label`: its accessible name; `title`: the heading; `tools`: beside the heading. */
9
+ export function RailFrame({ trust, label, title, tools = null, closeLabel, onClose, children }) {
10
+ return html`<aside data-trust=${trust} class="u-rail" aria-label=${label}>
11
+ <div class="u-rail-head"><h2>${title}</h2>${tools}
12
+ <button type="button" class="icon-btn" onClick=${onClose} aria-label=${closeLabel} title=${closeLabel}><${Icon} name="close" size=${16} /></button></div>
13
+ <div class="u-rail-body">${children}</div>
14
+ </aside>`;
15
+ }
@@ -17,6 +17,8 @@
17
17
  nobot: "No chat bot?", nobot_body: "Ask the operator to run agend web --code on the AgEnD computer.",
18
18
  safe: "Page looks wrong after signing in?", safe_body: "Your custom CSS may be hiding something. Add ?safe=1 to the end of the address to load the page without it, then fix it or turn it off in Settings → Look.",
19
19
  refused: "The code is invalid or no longer works. Send /web in General, then press a sign-in button for a new code.",
20
+ // #3270: the code in the opened link did not work (expired, used, or the fleet restarted). It is never put back in the box.
21
+ autofail: "The automatic sign-in did not work — its code has expired or was already used. Run agend web on the AgEnD computer for a new one.",
20
22
  unconfirmed: "Sign-in could not be confirmed. Get a new code and try again; if it keeps failing, contact the operator.",
21
23
  paused: "Too many wrong codes — sign-in is paused for a few minutes.",
22
24
  network: "Could not reach AgEnD. Check the connection and try again.",
@@ -33,6 +35,15 @@
33
35
  refused_outside: "That code didn't work. Check that your phone's clock is right and try the newest code.",
34
36
  paused_outside: "Too many wrong codes. Try again in {duration}.",
35
37
  minutes: "{0} minutes", minute: "1 minute", hours: "{0} hours", hour: "1 hour",
38
+ // #3061: sign in with another device — an 8-character code shown here, approved on a device that is already signed in.
39
+ another: "Sign in with another device", dev_title: "Sign in with another device",
40
+ dev_lead: "On a device that is already signed in to AgEnD as the owner, open Settings → Access & security, choose Add device under Devices & sign-in, and enter this code.",
41
+ dev_waiting: "Waiting for approval… Expires in {time}.", dev_approved: "Approved — signing in…",
42
+ dev_expired: "This code has expired.", dev_denied: "This request was denied.", dev_new: "Get a new code", dev_back: "Back",
43
+ dev_busy: "Too many devices are waiting right now. Try again in a moment.", dev_limited: "Too many codes asked for. Try again in {duration}.",
44
+ dev_unavailable: "Signing in with another device isn't available here.", dev_failed: "Could not get a code. Check the connection and try again.",
45
+ dev_lost: "Could not reach AgEnD. Still trying…",
46
+ dev_qr: "Or scan this QR code with a device that is already signed in as the owner. It holds this page's address and the code above, nothing else.",
36
47
  },
37
48
  "zh-TW": {
38
49
  checking: "正在確認登入狀態…", title: "登入 AgEnD", lead: "輸入登入碼。",
@@ -41,6 +52,7 @@
41
52
  nobot: "沒有聊天 bot?", nobot_body: "請管理員在 AgEnD 電腦執行 agend web --code。",
42
53
  safe: "登入後畫面不對勁?", safe_body: "可能是你的自訂 CSS 把東西藏起來了。在網址最後加上 ?safe=1,就會不套用它地載入;再到「設定 → 外觀」修正或關閉。",
43
54
  refused: "登入碼無效或已失效。請在 General 傳 /web,再按登入按鈕取新碼。",
55
+ autofail: "自動登入沒有成功:登入碼已過期或已使用過。請在 AgEnD 電腦上執行 agend web 取得新的登入碼。",
44
56
  unconfirmed: "登入暫時無法確認。請重新取碼再試;若仍失敗,請聯絡管理員。",
45
57
  paused: "錯誤次數過多,登入暫停幾分鐘。",
46
58
  network: "連不上 AgEnD,請檢查連線後再試。",
@@ -55,6 +67,14 @@
55
67
  refused_outside: "代碼不對。請確認手機時間正確,並輸入最新的代碼。",
56
68
  paused_outside: "錯誤次數太多,請 {duration} 後再試。",
57
69
  minutes: "{0} 分鐘", minute: "1 分鐘", hours: "{0} 小時", hour: "1 小時",
70
+ another: "使用其他裝置登入", dev_title: "使用其他裝置登入",
71
+ dev_lead: "在已登入且已驗證擁有者的裝置上,開啟「設定 → 存取與安全」,在「裝置與登入」選「新增裝置」,輸入這組代碼。",
72
+ dev_waiting: "等待核准中… {time} 後失效。", dev_approved: "已核准,登入中…",
73
+ dev_expired: "這組代碼已失效。", dev_denied: "這個請求已被拒絕。", dev_new: "取得新代碼", dev_back: "返回",
74
+ dev_busy: "目前等待核准的裝置太多,請稍後再試。", dev_limited: "要求代碼的次數太多,請 {duration} 後再試。",
75
+ dev_unavailable: "這裡無法使用其他裝置登入。", dev_failed: "無法取得代碼。請檢查連線後再試。",
76
+ dev_lost: "連不上 AgEnD,仍在重試…",
77
+ dev_qr: "也可以用已登入且已驗證擁有者的裝置掃描這個 QR Code。裡面只有這個頁面的網址和上面的代碼,沒有其他東西。",
58
78
  },
59
79
  };
60
80
  const lang = /^zh/i.test(navigator.language || "") ? "zh-TW" : "en";
@@ -63,6 +83,13 @@
63
83
  // #3008: …and one served through the link "Allow connections from outside" opened (<body data-outside="1">): signing in
64
84
  // is the authenticator app's code, posted to /auth/totp.
65
85
  const outside = webOnly && document.body.getAttribute("data-outside") === "1";
86
+ // #3061: …and one on this computer's own listener (<body data-device-login="1">, never the public link) offers "Sign in
87
+ // with another device".
88
+ const deviceLogin = webOnly && !outside && document.body.getAttribute("data-device-login") === "1";
89
+ // #3061 (P2b): …and, when `web.login_qr` is on (<body data-login-qr="1">), it also draws the QR code of the approve link.
90
+ const loginQr = deviceLogin && document.body.getAttribute("data-login-qr") === "1";
91
+ // Reserve the gated action while the form is still hidden, so ending the session read does not resize the card.
92
+ if (deviceLogin) $("another").hidden = false;
66
93
  const t = (k) => (outside && (T[lang][`${k}_outside`] || T.en[`${k}_outside`])) || (webOnly && (T[lang][`${k}_web`] || T.en[`${k}_web`])) || T[lang][k] || T.en[k] || k;
67
94
  /** A wait as words: "15 minutes" / 「15 分鐘」, "2 hours" / 「2 小時」 (rounded up). */
68
95
  const duration = (ms) => {
@@ -74,12 +101,37 @@
74
101
  // …and no "No chat bot?" help: the hint above already is it.
75
102
  if (webOnly) document.querySelectorAll("details.help").forEach((d) => { if (d.querySelector && d.querySelector('[data-i18n="nobot"]')) d.hidden = true; });
76
103
  document.documentElement.lang = lang === "zh-TW" ? "zh-Hant" : "en";
104
+ $("checking").setAttribute?.("aria-label", t("checking"));
77
105
  if (outside) {
78
106
  const input = $("code");
79
107
  input.setAttribute("inputmode", "numeric"); input.setAttribute("maxlength", "7"); input.setAttribute("placeholder", "123456");
80
108
  input.setAttribute("pattern", "[0-9 ]*");
81
109
  }
82
110
 
111
+ // #3270: `agend web` opens this page on this computer as /signin#code=XXXX-XXXX. A fragment is never sent to the server, a
112
+ // log or a Referer; it is read here and taken out of the address bar and the history entry BEFORE anything else runs —
113
+ // before any request this script makes — so it cannot be copied, bookmarked or shared from the address bar. It is
114
+ // cleared wherever the page is (a link pasted from the terminal must not leave a code behind), but it is only ever
115
+ // exchanged on this computer's own loopback name: a page reached by any other name never spends it on its own. It is
116
+ // also only exchanged on a fresh navigation by a browser with no session yet (below) — a reload or a history entry that
117
+ // still carried a code must not sign a different session in over the one the person has.
118
+ const LOOPBACK_NAMES = /^(localhost|127\.0\.0\.1|::1|\[::1\])$/i;
119
+ let fragmentCode = null;
120
+ try {
121
+ const params = new URLSearchParams(String(location.hash || "").replace(/^#/, ""));
122
+ if (params.has("code")) {
123
+ const raw = params.get("code") || "";
124
+ history.replaceState(null, "", location.pathname + location.search);
125
+ if (/^[A-Za-z0-9]{4}-?[A-Za-z0-9]{4}$/.test(raw)) fragmentCode = raw;
126
+ }
127
+ } catch { /* nothing to clean */ }
128
+ let freshNavigation = true;
129
+ try {
130
+ const nav = typeof performance === "object" && performance && typeof performance.getEntriesByType === "function" ? performance.getEntriesByType("navigation")[0] : null;
131
+ if (nav && nav.type && nav.type !== "navigate") freshNavigation = false;
132
+ } catch { /* no navigation timing: treat as fresh */ }
133
+ const autoCode = fragmentCode && freshNavigation && !outside && LOOPBACK_NAMES.test(location.hostname || "") ? fragmentCode : null;
134
+
83
135
  // An old dashboard link carries `?token=`. It is not a credential any more (the server ignored it and
84
136
  // answered with this page), but it is still the fleet's token: take it out of the address bar and
85
137
  // the history entry at once, so it is not copied, bookmarked or shared from here.
@@ -180,6 +232,158 @@
180
232
  button.disabled = false;
181
233
  });
182
234
 
235
+ // ── #3061: sign in with another device ──
236
+ // POST /auth/device-login → the code to show (and an HttpOnly cookie that is this browser's request); then POST
237
+ // /auth/device-login/poll every couple of seconds until a signed-in owner has approved it (the poll that finds it
238
+ // approved is what signs this browser in, so nothing is handed over by the approving device), denied it, or it ran out.
239
+ // Never a GET: asking and polling both change state, and a preview must not.
240
+ const DEV_POLL_MS = 2000;
241
+ let dev = null;
242
+ // One call at a time, in the order they were asked for. Every one of the three answers may carry a Set-Cookie for the
243
+ // request's cookie (asking sets it, cancelling and a poll that finds it spent clear it), and the browser applies a cookie when
244
+ // the answer ARRIVES, not when this page chose to ask. So a stale call's late answer would replace or expire the cookie of the
245
+ // attempt that came after it (Back, then a new attempt, while the first attempt's create or cancel was still on the wire):
246
+ // the new attempt would poll with the wrong request, or none, and read "expired" after its owner had approved it. Each call
247
+ // therefore starts only when the one before it has finished: answered, or given up on after DEV_CALL_MS by aborting it. A response
248
+ // that has not arrived when its call is aborted is dropped by the browser, its Set-Cookie never processed; one whose headers had
249
+ // already arrived has applied its cookie before the next call is sent. Either way a call carries, and leaves behind, what the last
250
+ // one left. (An aborted request may still have been handled by the server; at worst that leaves an unused request that expires on
251
+ // its own.) `mine`: the attempt a create or poll belongs to; one that was stopped before its turn comes is not sent at all.
252
+ const DEV_CALL_MS = 15000;
253
+ let devTurn = Promise.resolve();
254
+ function devCall(path, mine) {
255
+ const run = async () => {
256
+ if (mine && mine.stopped) return null;
257
+ const ctl = typeof AbortController === "function" ? new AbortController() : null;
258
+ const timer = ctl ? setTimeout(() => ctl.abort(), DEV_CALL_MS) : 0;
259
+ try {
260
+ const r = await fetch(`/auth/device-login${path}`, { method: "POST", credentials: "same-origin", cache: "no-store", headers: { "Content-Type": "application/json" }, body: "{}", ...(ctl ? { signal: ctl.signal } : {}) });
261
+ let body = null;
262
+ try { body = await r.json(); } catch { /* no body, or not JSON */ }
263
+ return { r, body };
264
+ } finally { clearTimeout(timer); }
265
+ };
266
+ const call = devTurn.then(run);
267
+ devTurn = call.then(() => undefined, () => undefined);
268
+ return call;
269
+ }
270
+ const clock = (ms) => { const s = Math.max(0, Math.ceil(ms / 1000)); return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`; };
271
+ function devStop() {
272
+ hideQr();
273
+ if ($("devLoading")) $("devLoading").hidden = true;
274
+ if (!dev) return;
275
+ dev.stopped = true;
276
+ clearTimeout(dev.poll); clearInterval(dev.tick);
277
+ dev = null;
278
+ }
279
+ function devSay(text, bad, spent) {
280
+ $("devStatus").textContent = text;
281
+ $("devStatus").classList?.[bad ? "add" : "remove"]("bad");
282
+ $("devCode").classList?.[spent ? "add" : "remove"]("spent");
283
+ }
284
+ function devEnded(text, bad) {
285
+ devStop();
286
+ devSay(text, bad, true);
287
+ $("devNew").hidden = false;
288
+ hideQr();
289
+ }
290
+ // ── #3061 (P2b): the approve link as a QR code ──
291
+ // The link is THIS page's own address plus the code on screen — /settings/access?approve=XXXX-XXXX — and nothing else: no
292
+ // request id, no cookie, no token (the request's poll cookie is HttpOnly and never leaves this browser). A device that
293
+ // opens it has to be signed in as the verified owner to do anything with it, and what it opens is the same "Add device"
294
+ // dialog with the code filled in: the person still presses Continue, sees who is asking, and presses Allow. A sign-in page
295
+ // reached as localhost cannot be opened from another device, so no code is drawn there.
296
+ const reachableFromElsewhere = () => !/^(localhost|.*\.localhost|127(\.\d{1,3}){3}|\[?::1\]?)$/i.test(location.hostname);
297
+ function hideQr() { if (!loginQr) return; $("devQr").hidden = true; $("devQrSvg").replaceChildren(); }
298
+ async function showQr(code, mine) {
299
+ if (!loginQr || !reachableFromElsewhere()) return;
300
+ let make;
301
+ try { const m = await import("/assets/qrcode.module.js"); make = m.default || m.qrcode; } catch { return; }
302
+ if (dev !== mine || mine.stopped) return; // this request ended, or a newer one began, while the encoder loaded
303
+ const qr = make(0, "M");
304
+ qr.addData(`${location.origin}/settings/access?approve=${encodeURIComponent(code)}`);
305
+ qr.make();
306
+ const n = qr.getModuleCount(), size = n + 8;
307
+ let d = "";
308
+ for (let r = 0; r < n; r++) for (let c = 0; c < n; c++) if (qr.isDark(r, c)) d += `M${c + 4} ${r + 4}h1v1h-1z`;
309
+ const NS = "http://www.w3.org/2000/svg", svg = $("devQrSvg");
310
+ svg.setAttribute("viewBox", `0 0 ${size} ${size}`);
311
+ const back = document.createElementNS(NS, "rect"), dark = document.createElementNS(NS, "path");
312
+ back.setAttribute("width", String(size)); back.setAttribute("height", String(size)); back.setAttribute("fill", "#fff");
313
+ dark.setAttribute("d", d); dark.setAttribute("fill", "#000");
314
+ svg.replaceChildren(back, dark);
315
+ $("devQr").hidden = false;
316
+ }
317
+ async function devStart() {
318
+ devStop();
319
+ $("form").hidden = true; $("device").hidden = false; $("devNew").hidden = true;
320
+ hideQr();
321
+ $("devCode").textContent = "";
322
+ if ($("devLoading")) { $("devLoading").hidden = false; $("devLoading").setAttribute?.("aria-label", t("dev_title")); }
323
+ devSay("", false, true);
324
+ const mine = { stopped: false, poll: 0, tick: 0, deadline: 0, lost: 0 };
325
+ dev = mine;
326
+ let made;
327
+ try { made = await devCall("", mine); } catch { if (!mine.stopped) devEnded(t("dev_failed"), true); return; }
328
+ if (mine.stopped || !made) return;
329
+ if ($("devLoading")) $("devLoading").hidden = true;
330
+ const { r, body } = made;
331
+ if (!r.ok || !body || typeof body.code !== "string") {
332
+ if (r.status === 429) {
333
+ let wait = Number(r.headers.get("Retry-After")) * 1000;
334
+ if (Number.isFinite(body && body.retryAfterMs)) wait = body.retryAfterMs;
335
+ devEnded(t("dev_limited").replace("{duration}", duration(Number.isFinite(wait) && wait > 0 ? wait : 60000)), true);
336
+ } else devEnded(r.status === 503 ? t("dev_busy") : r.status === 404 ? t("dev_unavailable") : t("dev_failed"), true);
337
+ return;
338
+ }
339
+ $("devCode").textContent = body.code;
340
+ $("devCode").classList?.remove("spent");
341
+ showQr(body.code, mine);
342
+ // The countdown runs on this browser's own clock from when the code arrived (the server's is the authority: its poll
343
+ // says `expired` when it is).
344
+ mine.deadline = Date.now() + (Number.isFinite(body.ttlMs) && body.ttlMs > 0 ? body.ttlMs : 300000);
345
+ const waiting = () => devSay(t("dev_waiting").replace("{time}", clock(mine.deadline - Date.now())), false, false);
346
+ waiting();
347
+ mine.tick = setInterval(() => { if (!mine.stopped && !mine.approved) waiting(); }, 1000);
348
+ const again = () => { if (!mine.stopped) mine.poll = setTimeout(ask, DEV_POLL_MS); };
349
+ const ask = async () => {
350
+ let asked = null;
351
+ try { asked = await devCall("/poll", mine); } catch { /* below */ }
352
+ if (mine.stopped) return;
353
+ const p = asked && asked.r, state = asked && asked.body && asked.body.state;
354
+ if (state === "approved" && p && p.ok) {
355
+ mine.approved = true;
356
+ devSay(t("dev_approved"), false, false);
357
+ clearBounce(); location.replace(nextTarget());
358
+ return;
359
+ }
360
+ if (p && p.status === 404) { devEnded(t("dev_unavailable"), true); return; } // closed while waiting (e.g. web authorization turned off)
361
+ if (state === "denied") { devEnded(t("dev_denied"), true); return; }
362
+ if (state === "expired") { devEnded(t("dev_expired"), true); return; }
363
+ if (state === "pending") { mine.lost = 0; again(); return; }
364
+ // The network, or an answer that is none of these: keep trying — the server ends the request when it is time —
365
+ // but say so after a few, and stop waiting once the code's own time is well past.
366
+ if (Date.now() > mine.deadline + 15000) { devEnded(t("dev_expired"), true); return; }
367
+ if (++mine.lost >= 3) devSay(t("dev_lost"), true, false);
368
+ again();
369
+ };
370
+ again();
371
+ }
372
+ async function devBack() {
373
+ const mine = dev;
374
+ devStop();
375
+ $("device").hidden = true; $("form").hidden = false;
376
+ $("code").focus();
377
+ // Queued behind a create or poll of this attempt that is still on the wire (it needs the cookie that call sets), and ahead of
378
+ // whatever the person asks for next: a new attempt never starts while this one's cancel is still out.
379
+ if (mine && !mine.approved) { try { await devCall("/cancel"); } catch { /* it expires by itself */ } }
380
+ }
381
+ if (deviceLogin) {
382
+ $("another").addEventListener("click", () => { devStart(); });
383
+ $("devNew").addEventListener("click", () => { devStart(); });
384
+ $("devBack").addEventListener("click", () => { devBack(); });
385
+ }
386
+
183
387
  async function probe() {
184
388
  // A second bounce inside ten seconds means the cookie is valid but not being sent on the
185
389
  // navigation; going round again would loop, so stop and let the person type a code.
@@ -192,6 +396,28 @@
192
396
  } catch { return false; }
193
397
  }
194
398
 
399
+ // What a refused POST /auth/login says (the form's and the fragment's exchange alike): 429 and 5xx are not a wrong code.
400
+ const failureText = (status) => (status === 429 ? t("paused") : status >= 500 ? t("unconfirmed") : t("refused"));
401
+
402
+ // #3270: the exchange of the code `agend web` put in the fragment. Resolves null once the browser is on its way into the
403
+ // app, else the words for why not — the form then shows them, so an expired or used code never leaves a blank page. The
404
+ // code itself is never shown or put in the box: whatever it was, it is spent or useless now.
405
+ async function autoSignIn(code) {
406
+ $("checking").textContent = t("working");
407
+ try {
408
+ const r = await fetch("/auth/login", {
409
+ method: "POST",
410
+ credentials: "same-origin",
411
+ headers: { "Content-Type": "application/json" },
412
+ body: JSON.stringify({ code }),
413
+ });
414
+ if (r.ok) { clearBounce(); location.replace(nextTarget()); return null; }
415
+ return r.status === 429 || r.status >= 500 ? failureText(r.status) : t("autofail");
416
+ } catch {
417
+ return t("network");
418
+ }
419
+ }
420
+
195
421
  $("form").addEventListener("submit", async (event) => {
196
422
  event.preventDefault();
197
423
  const button = $("go");
@@ -216,7 +442,7 @@
216
442
  }
217
443
  // #1854: a 5xx is the server failing to confirm the sign-in (503: a public link's notice did not go out), not a
218
444
  // wrong code — say so. The code is spent either way: the way on is a new one.
219
- msg.textContent = r.status === 429 ? t("paused") : r.status >= 500 ? t("unconfirmed") : t("refused");
445
+ msg.textContent = failureText(r.status);
220
446
  } catch (err) {
221
447
  if (err !== "shown") msg.textContent = t("network");
222
448
  }
@@ -225,8 +451,16 @@
225
451
  $("code").select();
226
452
  });
227
453
 
228
- probe().then((signedIn) => {
229
- if (signedIn) { markBounce(); location.replace(nextTarget()); return; }
454
+ (async () => {
455
+ // Someone who already has a session is simply let in: the code in the link is not exchanged over it (it stays unspent
456
+ // and, being from a link, short-lived anyway).
457
+ if (await probe()) { markBounce(); location.replace(nextTarget()); return; }
458
+ let failure = null;
459
+ if (autoCode) {
460
+ failure = await autoSignIn(autoCode);
461
+ if (failure === null) return;
462
+ }
230
463
  showForm();
231
- });
464
+ if (failure) $("msg").textContent = failure;
465
+ })();
232
466
  })();
@@ -0,0 +1,95 @@
1
+ /* The task board's list, filters, Display, card menu and Insights (#3169, #3170, #3171; igs-willyliao). Its own file,
2
+ linked by fleet-task-view.js: a tab opened before an upgrade has an app.css without these rules. */
3
+ /* A project's Insights (fleet-task-stats.js): its choices, a bar per row coloured by class, its numbers. */
4
+ .tb-stats > .tb-insights { min-height: 26px; padding: 0 var(--s-2); }
5
+ .ts { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
6
+ .ts-choices { display: flex; flex-wrap: wrap; gap: var(--s-3); }
7
+ .ts-pick { flex: 1 1 140px; min-width: 0; margin: 0; }
8
+ .ts-sum, .ts-note { margin: 0; }
9
+ .ts-sum { font-size: var(--fs-sm); }
10
+ .ts-note { font-size: var(--fs-xs); }
11
+ .ts-legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--text-2); }
12
+ .ts-legend li { display: inline-flex; align-items: center; gap: var(--s-1); }
13
+ .ts-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--text-3); }
14
+ .ts-scroll { overflow-x: auto; }
15
+ .ts-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
16
+ .ts-table th, .ts-table td { padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--border); text-align: left; font-weight: var(--fw-regular); white-space: nowrap; }
17
+ .ts-table thead th { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
18
+ .ts-table thead th.ts-part { max-width: 5em; white-space: normal; vertical-align: bottom; }
19
+ .ts-table tbody th { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
20
+ .ts-table tbody th .tb-person { max-width: 100%; }
21
+ .ts-table tbody th .tb-who { overflow: hidden; text-overflow: ellipsis; }
22
+ .ts-table .ts-bar-col { width: 35%; min-width: 96px; }
23
+ .ts-bar { display: block; width: 100%; height: 10px; border-radius: 2px; overflow: hidden; }
24
+ .ts-track { fill: var(--surface-2); }
25
+ .ts-table .ts-n { text-align: right; font-variant-numeric: tabular-nums; }
26
+ .ts-n.zero { color: var(--text-3); }
27
+ .ts-table .ts-total { font-weight: var(--fw-semibold); }
28
+ /* The parts' colours: a status as the board's dots; a priority from urgent (red) to low (grey); a size by weight. */
29
+ .ts-seg.none-all { fill: var(--accent); }
30
+ .ts-seg.status-open, .ts-key.status-open, .ts-seg.priority-low, .ts-key.priority-low, .ts-seg.size-none, .ts-key.size-none { fill: var(--text-3); background: var(--text-3); }
31
+ .ts-seg.status-claimed, .ts-key.status-claimed, .ts-seg.priority-normal, .ts-key.priority-normal, .ts-seg.size-M, .ts-key.size-M { fill: var(--accent); background: var(--accent); }
32
+ .ts-seg.status-blocked, .ts-key.status-blocked, .ts-seg.priority-urgent, .ts-key.priority-urgent { fill: var(--danger); background: var(--danger); }
33
+ .ts-seg.status-review, .ts-key.status-review, .ts-seg.priority-high, .ts-key.priority-high, .ts-seg.size-L, .ts-key.size-L { fill: var(--warn); background: var(--warn); }
34
+ .ts-seg.status-done, .ts-key.status-done, .ts-seg.size-S, .ts-key.size-S { fill: var(--ok); background: var(--ok); }
35
+ /* A phone keeps the bar and the total; the parts are in the legend's colours. */
36
+ @media (max-width: 899px) { .ts-table .ts-part { display: none; } }
37
+
38
+ /* A project's Filter and Display, its filters as chips, and the project as a list (fleet-task-view.js). */
39
+ .menu-text { gap: var(--s-1); }
40
+ /* Under the project's header, as Linear's options row: Filter, Display, then the filters in force. */
41
+ .tb-view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; }
42
+ .tb-view-bar > .menu > .menu-text.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
43
+ .tb-view-bar .menu-list { left: 0; right: auto; max-height: min(70vh, 520px); overflow-y: auto; }
44
+ .tb-columns.no-done { grid-template-columns: repeat(4, minmax(176px, 1fr)); }
45
+ .tb-filters { display: contents; }
46
+ .tb-chip { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-xs); }
47
+ .tb-chip-field { padding: 0 var(--s-2) 0 var(--s-3); color: var(--text-2); white-space: nowrap; }
48
+ .tb-chip-op, .tb-chip-x { align-self: stretch; padding: 0 var(--s-2); border: 0; border-left: 1px solid var(--border); background: none; color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; }
49
+ .tb-chip.not .tb-chip-op { color: var(--danger); font-weight: var(--fw-semibold); }
50
+ .tb-chip-op:hover, .tb-chip-x:hover { background: var(--surface-2); color: var(--text); }
51
+ .tb-chip-x { display: inline-flex; align-items: center; border-radius: 0 var(--r-full) var(--r-full) 0; }
52
+ .tb-chip .menu { min-width: 0; }
53
+ .tb-chip .menu-text { min-height: 28px; max-width: 240px; padding: 0 var(--s-2); border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; }
54
+ .tb-chip .menu-text > span { overflow: hidden; text-overflow: ellipsis; }
55
+ .tb-list { display: flex; flex-direction: column; gap: var(--s-4); }
56
+ .tb-group-head { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
57
+ .tb-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
58
+ .tb-row { border-bottom: 1px solid var(--border); cursor: pointer; }
59
+ .tb-row:hover { background: var(--surface); }
60
+ .tb-row.flash { animation: tb-flash 1.6s var(--ease); }
61
+ .tb-row-line { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: var(--s-1) var(--s-2); font-size: var(--fs-sm); min-width: 0; }
62
+ .tb-row.is-sub .tb-row-line { padding-left: var(--s-6); }
63
+ .tb-row-main { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
64
+ .tb-row-text { flex: 1; display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
65
+ .tb-row-title { flex-shrink: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: var(--fw-medium); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
66
+ .tb-row-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
67
+ .tb-row-note { flex: 1 1 0; min-width: 0; font-size: var(--fs-xs); color: var(--danger); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
68
+ .tb-row-tags { display: inline-flex; align-items: center; gap: var(--s-1); flex-shrink: 0; }
69
+ .tb-row-progress { display: inline-flex; align-items: center; gap: var(--s-1); flex-shrink: 0; padding: 2px var(--s-1); border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font-size: var(--fs-xs); white-space: nowrap; }
70
+ .tb-row-progress > .tb-bar { width: 48px; }
71
+ button.tb-row-progress { cursor: pointer; }
72
+ button.tb-row-progress:hover { background: var(--surface-2); }
73
+ .tb-row-who { display: inline-flex; flex-shrink: 0; width: 140px; min-width: 0; font-size: var(--fs-xs); }
74
+ .tb-row-who .tb-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
75
+ .tb-row-time { flex-shrink: 0; width: 7em; font-size: var(--fs-xs); text-align: right; white-space: nowrap; }
76
+ .tb-row > .tb-subs { margin: 0 var(--s-2) var(--s-2) var(--s-6); }
77
+ @media (max-width: 899px) {
78
+ /* A phone's row: number and title on the first line, the rest under them. */
79
+ .tb-row-line { flex-wrap: wrap; row-gap: var(--s-1); }
80
+ .tb-row-text { flex: 1 1 calc(100% - 96px); }
81
+ .tb-row-who { width: auto; }
82
+ .tb-row-time { width: auto; margin-left: auto; }
83
+ .tb-row.is-sub .tb-row-line { padding-left: var(--s-4); }
84
+ }
85
+
86
+ /* A card's menu at the pointer (fleet-task-menu.js): the app's menu, fixed where the right click was; and the card's
87
+ Previous / Next in its dialog's header. */
88
+ .menu-list.tb-card-menu { position: fixed; left: 0; top: 0; right: auto; max-height: min(80vh, 560px); overflow-y: auto; z-index: 40; }
89
+ .tb-card-menu .menu-heading.bare { padding: 0; }
90
+ .tb-card-menu .menu-item > .tb-dot { margin: 0 4px; }
91
+ .tc-steps { display: inline-flex; align-items: center; gap: 2px; margin-right: var(--s-1); }
92
+ .tc-step-at { min-width: 3.5em; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
93
+ @media (prefers-reduced-motion: reduce) {
94
+ .tb-row.flash { animation: none; }
95
+ }
@@ -3,9 +3,20 @@ import { html } from "./app-html.js";
3
3
  import { Icon } from "./ui-icons.js";
4
4
  import { t } from "./app-i18n.js";
5
5
 
6
- /** Placeholder lines while something loads. Shown only after 300 ms (CSS), so a fast load never flashes. */
7
- export function Skeleton({ lines = 3 }) {
8
- return html`<div class="skeleton" aria-busy="true" aria-label=${t("app.loading")}>${Array.from({ length: lines }, (_, i) => html`<div key=${i} class="sk-line"></div>`)}</div>`;
6
+ // Lazy panels can arrive in a shell with an older app.css. Keep the loading shapes in their own public stylesheet.
7
+ function loadingStyles() {
8
+ if (typeof document === "undefined" || !document.head || document.querySelector('link[href="/assets/loading.css"]')) return;
9
+ const link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/loading.css");
10
+ document.head.appendChild(link);
11
+ }
12
+ /** Initial data only: retain populated content on refresh. Existing callers still get simple text lines. */
13
+ export function Skeleton({ lines = 3, variant = "lines", label }) {
14
+ loadingStyles();
15
+ return html`<div class=${`skeleton sk-${variant}`} role="status" aria-busy="true" aria-label=${label || t("app.loading")}>
16
+ <div aria-hidden="true">${Array.from({ length: lines }, (_, i) => variant === "rows" || variant === "cards"
17
+ ? html`<div key=${i} class="sk-row"><div class="sk-line sk-thumb"></div><div class="sk-copy"><div class="sk-line"></div><div class="sk-line"></div></div><div class="sk-line sk-pill"></div></div>`
18
+ : html`<div key=${i} class="sk-line"></div>`)}</div>
19
+ </div>`;
9
20
  }
10
21
 
11
22
  export function Empty({ icon = "info", title, hint, action }) {
@@ -64,6 +64,22 @@ function expiryText(iso) {
64
64
  if (!(ms > 0)) return "";
65
65
  return usageText("", { key: "usage.ticket_expiry", args: [`${at.getMonth() + 1}/${at.getDate()}`, usageDuration(ms)] });
66
66
  }
67
+ /**
68
+ * #3066 §1: a server line ({ text, i18n }) in this page's language — or, when this tab's strings predate the key (a
69
+ * stale tab), the server's own English text, never the bare key.
70
+ */
71
+ export function capacityLine(x) {
72
+ if (!x || typeof x.text !== "string") return "";
73
+ const key = x.i18n && typeof x.i18n.key === "string" ? `view.${x.i18n.key}` : null;
74
+ return key && t(key) !== key ? usageText(x.text, x.i18n) : x.text;
75
+ }
76
+ /** #3066 §1: a weekly quota's measured 100% (or why not yet), and the limit it always carries: only this fleet counts. */
77
+ function UsageCapacity({ c }) {
78
+ const notes = Array.isArray(c.notes) ? c.notes : [];
79
+ return html`<div class=${`u-cap${c.status === "ok" ? "" : " u-cap-wait"}`}>
80
+ <div class="u-cap-line">${capacityLine(c.line)}</div>
81
+ ${notes.map((n, i) => html`<div key=${i} class="u-cap-note">${capacityLine(n)}</div>`)}</div>`;
82
+ }
67
83
  export function UsageMetric({ m }) {
68
84
  const bar = useRef(null);
69
85
  const label = usageText(m.label, m.labelI18n);
@@ -78,7 +94,8 @@ export function UsageMetric({ m }) {
78
94
  const sub = [note, resetText(m.resetsAt)].filter(Boolean).join(" · ");
79
95
  return html`<div class="u-metric"><div class="u-row"><span class="u-label">${label}</span>${word ? html`<span class=${`u-status ${cls}`}>${word}</span>` : null}
80
96
  <span class=${`u-pct ${cls}`}>${pct.toFixed(0)}<span class="u-unit">%</span></span></div>
81
- <div class="u-meter"><div ref=${bar} class=${`u-fill ${cls}`}></div></div>${sub ? html`<div class="u-sub">${sub}</div>` : null}</div>`;
97
+ <div class="u-meter"><div ref=${bar} class=${`u-fill ${cls}`}></div></div>${sub ? html`<div class="u-sub">${sub}</div>` : null}
98
+ ${m.capacity ? html`<${UsageCapacity} c=${m.capacity} />` : null}</div>`;
82
99
  }
83
100
  if (m.type === "dollars") {
84
101
  const val = m.limit ? `$${(m.used ?? 0).toFixed(2)} / $${m.limit.toFixed(2)}` : `$${(m.used ?? 0).toFixed(2)}`;
@@ -0,0 +1,17 @@
1
+ /* Claude history in the View (view-history.js): its own stylesheet, linked by the module itself, so a tab opened before
2
+ an upgrade (an app.css without these rules) draws it the same. Colours come from the live screen, set per element. */
3
+ .v-pre .vh { white-space: pre-wrap; overflow-wrap: anywhere; }
4
+ .vh-line { padding-left: 2ch; text-indent: -2ch; min-height: 1.2em; }
5
+ .vh-line.vh-res { padding-left: 5ch; text-indent: -5ch; }
6
+ .vh-step + .vh-step { margin-top: 1.2em; }
7
+ .vh-b { font-weight: 700; }
8
+ .vh-diff { display: inline-block; width: 100%; vertical-align: top; text-indent: 0; }
9
+ .vh-dim { opacity: .6; }
10
+ .vh-more { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-indent: 0; cursor: pointer;
11
+ text-decoration: underline dotted; text-underline-offset: 2px; }
12
+ .vh-more:disabled { cursor: progress; opacity: .7; }
13
+ .vh-more:focus-visible { outline: 1px solid currentColor; outline-offset: 1px; }
14
+ .vh-divider, .vh-cap { font-family: var(--font-ui, sans-serif); font-size: .85em; color: #8a8a8a; }
15
+ .vh-divider { display: flex; align-items: center; gap: 1ch; margin: .8em 0 .6em; white-space: nowrap; }
16
+ .vh-divider::before, .vh-divider::after { content: ""; flex: 1; border-top: 1px dashed #3c3c3c; }
17
+ .vh-cap { white-space: normal; padding-bottom: .8em; }