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

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 (838) hide show
  1. package/THIRD_PARTY_NOTICES.md +52 -0
  2. package/dist/accounts-view.d.ts +97 -0
  3. package/dist/accounts-view.js +116 -0
  4. package/dist/accounts-view.js.map +1 -0
  5. package/dist/agent-cli-instructions.md +1 -1
  6. package/dist/agent-credentials.d.ts +24 -0
  7. package/dist/agent-credentials.js +66 -0
  8. package/dist/agent-credentials.js.map +1 -0
  9. package/dist/agent-endpoint.d.ts +3 -1
  10. package/dist/agent-endpoint.js +13 -0
  11. package/dist/agent-endpoint.js.map +1 -1
  12. package/dist/agent-file-read.js +1 -1
  13. package/dist/agent-file-read.js.map +1 -1
  14. package/dist/agent-runtime-change.d.ts +3 -1
  15. package/dist/agent-runtime-change.js +15 -3
  16. package/dist/agent-runtime-change.js.map +1 -1
  17. package/dist/agent-workspace.d.ts +93 -0
  18. package/dist/agent-workspace.js +353 -0
  19. package/dist/agent-workspace.js.map +1 -0
  20. package/dist/auth-api.d.ts +27 -0
  21. package/dist/auth-api.js +164 -3
  22. package/dist/auth-api.js.map +1 -1
  23. package/dist/authority/session-authorizations.d.ts +28 -4
  24. package/dist/authority/session-authorizations.js +63 -17
  25. package/dist/authority/session-authorizations.js.map +1 -1
  26. package/dist/backend/antigravity.js +3 -1
  27. package/dist/backend/antigravity.js.map +1 -1
  28. package/dist/backend/codex-footer-hints.d.ts +3 -0
  29. package/dist/backend/codex-footer-hints.js +14 -0
  30. package/dist/backend/codex-footer-hints.js.map +1 -1
  31. package/dist/backend/codex-metadata.d.ts +14 -0
  32. package/dist/backend/codex-metadata.js +45 -0
  33. package/dist/backend/codex-metadata.js.map +1 -1
  34. package/dist/backend/codex-quota-history.d.ts +7 -0
  35. package/dist/backend/codex-quota-history.js +57 -0
  36. package/dist/backend/codex-quota-history.js.map +1 -0
  37. package/dist/backend/codex-session-lookup.d.ts +6 -0
  38. package/dist/backend/codex-session-lookup.js +1 -1
  39. package/dist/backend/codex-session-lookup.js.map +1 -1
  40. package/dist/backend/codex-speed.d.ts +14 -0
  41. package/dist/backend/codex-speed.js +35 -0
  42. package/dist/backend/codex-speed.js.map +1 -0
  43. package/dist/backend/codex.d.ts +7 -0
  44. package/dist/backend/codex.js +78 -15
  45. package/dist/backend/codex.js.map +1 -1
  46. package/dist/backend/grok-weekly-reset.d.ts +24 -0
  47. package/dist/backend/grok-weekly-reset.js +95 -0
  48. package/dist/backend/grok-weekly-reset.js.map +1 -0
  49. package/dist/backend/grok.d.ts +30 -1
  50. package/dist/backend/grok.js +301 -54
  51. package/dist/backend/grok.js.map +1 -1
  52. package/dist/backend/kiro.d.ts +3 -0
  53. package/dist/backend/kiro.js +50 -2
  54. package/dist/backend/kiro.js.map +1 -1
  55. package/dist/backend/muse.js +5 -3
  56. package/dist/backend/muse.js.map +1 -1
  57. package/dist/backend/native-pane.d.ts +3 -1
  58. package/dist/backend/native-pane.js +2 -2
  59. package/dist/backend/native-pane.js.map +1 -1
  60. package/dist/backend/types.d.ts +13 -1
  61. package/dist/backend/types.js +3 -0
  62. package/dist/backend/types.js.map +1 -1
  63. package/dist/build-provenance-cli.d.ts +3 -0
  64. package/dist/build-provenance-cli.js +11 -0
  65. package/dist/build-provenance-cli.js.map +1 -0
  66. package/dist/build-provenance.d.ts +20 -0
  67. package/dist/build-provenance.js +67 -0
  68. package/dist/build-provenance.js.map +1 -0
  69. package/dist/build-provenance.json +1 -0
  70. package/dist/cache-ledger.d.ts +95 -0
  71. package/dist/cache-ledger.js +276 -4
  72. package/dist/cache-ledger.js.map +1 -1
  73. package/dist/cache-service.d.ts +5 -0
  74. package/dist/cache-service.js +16 -4
  75. package/dist/cache-service.js.map +1 -1
  76. package/dist/channel/adapters/discord.js +11 -3
  77. package/dist/channel/adapters/discord.js.map +1 -1
  78. package/dist/channel/adapters/telegram.d.ts +51 -0
  79. package/dist/channel/adapters/telegram.js +235 -17
  80. package/dist/channel/adapters/telegram.js.map +1 -1
  81. package/dist/channel/mcp-tools.js +3 -3
  82. package/dist/channel/mcp-tools.js.map +1 -1
  83. package/dist/channel/types.d.ts +2 -0
  84. package/dist/claude-auth-status.d.ts +48 -0
  85. package/dist/claude-auth-status.js +149 -0
  86. package/dist/claude-auth-status.js.map +1 -0
  87. package/dist/cli.js +138 -37
  88. package/dist/cli.js.map +1 -1
  89. package/dist/config-validator.js +21 -1
  90. package/dist/config-validator.js.map +1 -1
  91. package/dist/cross-instance-notice.d.ts +10 -0
  92. package/dist/cross-instance-notice.js +67 -5
  93. package/dist/cross-instance-notice.js.map +1 -1
  94. package/dist/daemon.d.ts +70 -1
  95. package/dist/daemon.js +547 -25
  96. package/dist/daemon.js.map +1 -1
  97. package/dist/dashboard-permissions.d.ts +8 -0
  98. package/dist/dashboard-permissions.js +16 -0
  99. package/dist/dashboard-permissions.js.map +1 -1
  100. package/dist/delivery-consumed-watch.d.ts +23 -1
  101. package/dist/delivery-consumed-watch.js +30 -3
  102. package/dist/delivery-consumed-watch.js.map +1 -1
  103. package/dist/delivery-reconciliation.d.ts +1 -1
  104. package/dist/delivery-reconciliation.js +1 -1
  105. package/dist/delivery-reconciliation.js.map +1 -1
  106. package/dist/doctor.js +20 -9
  107. package/dist/doctor.js.map +1 -1
  108. package/dist/export-import.d.ts +7 -0
  109. package/dist/export-import.js +44 -10
  110. package/dist/export-import.js.map +1 -1
  111. package/dist/fleet-context.d.ts +2 -0
  112. package/dist/fleet-manager.d.ts +359 -7
  113. package/dist/fleet-manager.js +1365 -90
  114. package/dist/fleet-manager.js.map +1 -1
  115. package/dist/fleet-windows-runtime.d.ts +2 -1
  116. package/dist/fleet-windows-runtime.js +25 -7
  117. package/dist/fleet-windows-runtime.js.map +1 -1
  118. package/dist/general-knowledge/skills/concepts/SKILL.md +425 -0
  119. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +5 -2
  120. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +1 -0
  121. package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
  122. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +3 -1
  123. package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +41 -4
  124. package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
  125. package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
  126. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +31 -15
  127. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
  128. package/dist/general-role.d.ts +1 -1
  129. package/dist/general-role.js +1 -0
  130. package/dist/general-role.js.map +1 -1
  131. package/dist/hub/admission.d.ts +28 -0
  132. package/dist/hub/admission.js +62 -0
  133. package/dist/hub/admission.js.map +1 -0
  134. package/dist/hub/attachments/limits.d.ts +20 -0
  135. package/dist/hub/attachments/limits.js +48 -0
  136. package/dist/hub/attachments/limits.js.map +1 -0
  137. package/dist/hub/attachments/store.d.ts +116 -0
  138. package/dist/hub/attachments/store.js +246 -0
  139. package/dist/hub/attachments/store.js.map +1 -0
  140. package/dist/hub/audit/index.d.ts +62 -0
  141. package/dist/hub/audit/index.js +344 -0
  142. package/dist/hub/audit/index.js.map +1 -0
  143. package/dist/hub/browser-certificate.d.ts +38 -0
  144. package/dist/hub/browser-certificate.js +247 -0
  145. package/dist/hub/browser-certificate.js.map +1 -0
  146. package/dist/hub/buttons-model.d.ts +9 -0
  147. package/dist/hub/buttons-model.js +42 -0
  148. package/dist/hub/buttons-model.js.map +1 -0
  149. package/dist/hub/buttons.d.ts +54 -0
  150. package/dist/hub/buttons.js +346 -0
  151. package/dist/hub/buttons.js.map +1 -0
  152. package/dist/hub/catalog.d.ts +74 -0
  153. package/dist/hub/catalog.js +195 -0
  154. package/dist/hub/catalog.js.map +1 -0
  155. package/dist/hub/client.d.ts +69 -0
  156. package/dist/hub/client.js +300 -0
  157. package/dist/hub/client.js.map +1 -0
  158. package/dist/hub/compose/member.d.ts +139 -0
  159. package/dist/hub/compose/member.js +450 -0
  160. package/dist/hub/compose/member.js.map +1 -0
  161. package/dist/hub/compose/server.d.ts +77 -0
  162. package/dist/hub/compose/server.js +349 -0
  163. package/dist/hub/compose/server.js.map +1 -0
  164. package/dist/hub/compose/views.d.ts +12 -0
  165. package/dist/hub/compose/views.js +4 -0
  166. package/dist/hub/compose/views.js.map +1 -0
  167. package/dist/hub/db.d.ts +56 -0
  168. package/dist/hub/db.js +188 -0
  169. package/dist/hub/db.js.map +1 -0
  170. package/dist/hub/directory/config.d.ts +39 -0
  171. package/dist/hub/directory/config.js +108 -0
  172. package/dist/hub/directory/config.js.map +1 -0
  173. package/dist/hub/directory/directory.d.ts +18 -0
  174. package/dist/hub/directory/directory.js +320 -0
  175. package/dist/hub/directory/directory.js.map +1 -0
  176. package/dist/hub/directory/index.d.ts +7 -0
  177. package/dist/hub/directory/index.js +4 -0
  178. package/dist/hub/directory/index.js.map +1 -0
  179. package/dist/hub/directory/profiles.d.ts +41 -0
  180. package/dist/hub/directory/profiles.js +90 -0
  181. package/dist/hub/directory/profiles.js.map +1 -0
  182. package/dist/hub/directory/types.d.ts +71 -0
  183. package/dist/hub/directory/types.js +14 -0
  184. package/dist/hub/directory/types.js.map +1 -0
  185. package/dist/hub/execution/cli-provider.d.ts +23 -0
  186. package/dist/hub/execution/cli-provider.js +341 -0
  187. package/dist/hub/execution/cli-provider.js.map +1 -0
  188. package/dist/hub/execution/index.d.ts +13 -0
  189. package/dist/hub/execution/index.js +8 -0
  190. package/dist/hub/execution/index.js.map +1 -0
  191. package/dist/hub/execution/model-broker.d.ts +24 -0
  192. package/dist/hub/execution/model-broker.js +208 -0
  193. package/dist/hub/execution/model-broker.js.map +1 -0
  194. package/dist/hub/execution/provider-setup.d.ts +11 -0
  195. package/dist/hub/execution/provider-setup.js +21 -0
  196. package/dist/hub/execution/provider-setup.js.map +1 -0
  197. package/dist/hub/execution/sandbox-runner.d.ts +1 -0
  198. package/dist/hub/execution/sandbox-runner.js +221 -0
  199. package/dist/hub/execution/sandbox-runner.js.map +1 -0
  200. package/dist/hub/execution/service.d.ts +136 -0
  201. package/dist/hub/execution/service.js +459 -0
  202. package/dist/hub/execution/service.js.map +1 -0
  203. package/dist/hub/execution/store.d.ts +61 -0
  204. package/dist/hub/execution/store.js +182 -0
  205. package/dist/hub/execution/store.js.map +1 -0
  206. package/dist/hub/execution/views.d.ts +20 -0
  207. package/dist/hub/execution/views.js +48 -0
  208. package/dist/hub/execution/views.js.map +1 -0
  209. package/dist/hub/http/compose.d.ts +20 -0
  210. package/dist/hub/http/compose.js +518 -0
  211. package/dist/hub/http/compose.js.map +1 -0
  212. package/dist/hub/http/core.d.ts +49 -0
  213. package/dist/hub/http/core.js +124 -0
  214. package/dist/hub/http/core.js.map +1 -0
  215. package/dist/hub/http/deps.d.ts +61 -0
  216. package/dist/hub/http/deps.js +2 -0
  217. package/dist/hub/http/deps.js.map +1 -0
  218. package/dist/hub/http/schema.d.ts +14 -0
  219. package/dist/hub/http/schema.js +80 -0
  220. package/dist/hub/http/schema.js.map +1 -0
  221. package/dist/hub/identity.d.ts +32 -0
  222. package/dist/hub/identity.js +80 -0
  223. package/dist/hub/identity.js.map +1 -0
  224. package/dist/hub/init/browser-certificate.d.ts +9 -0
  225. package/dist/hub/init/browser-certificate.js +78 -0
  226. package/dist/hub/init/browser-certificate.js.map +1 -0
  227. package/dist/hub/init/browser-tls.d.ts +18 -0
  228. package/dist/hub/init/browser-tls.js +62 -0
  229. package/dist/hub/init/browser-tls.js.map +1 -0
  230. package/dist/hub/init/cli.d.ts +3 -0
  231. package/dist/hub/init/cli.js +83 -0
  232. package/dist/hub/init/cli.js.map +1 -0
  233. package/dist/hub/init/directory-certificate.d.ts +24 -0
  234. package/dist/hub/init/directory-certificate.js +222 -0
  235. package/dist/hub/init/directory-certificate.js.map +1 -0
  236. package/dist/hub/init/existing-fleet.d.ts +6 -0
  237. package/dist/hub/init/existing-fleet.js +58 -0
  238. package/dist/hub/init/existing-fleet.js.map +1 -0
  239. package/dist/hub/init/handoff.d.ts +8 -0
  240. package/dist/hub/init/handoff.js +36 -0
  241. package/dist/hub/init/handoff.js.map +1 -0
  242. package/dist/hub/init/identity.d.ts +5 -0
  243. package/dist/hub/init/identity.js +24 -0
  244. package/dist/hub/init/identity.js.map +1 -0
  245. package/dist/hub/init/initializer.d.ts +24 -0
  246. package/dist/hub/init/initializer.js +385 -0
  247. package/dist/hub/init/initializer.js.map +1 -0
  248. package/dist/hub/init/inventory.d.ts +17 -0
  249. package/dist/hub/init/inventory.js +33 -0
  250. package/dist/hub/init/inventory.js.map +1 -0
  251. package/dist/hub/init/layout.d.ts +32 -0
  252. package/dist/hub/init/layout.js +53 -0
  253. package/dist/hub/init/layout.js.map +1 -0
  254. package/dist/hub/init/network.d.ts +18 -0
  255. package/dist/hub/init/network.js +104 -0
  256. package/dist/hub/init/network.js.map +1 -0
  257. package/dist/hub/init/plan-digest.d.ts +5 -0
  258. package/dist/hub/init/plan-digest.js +47 -0
  259. package/dist/hub/init/plan-digest.js.map +1 -0
  260. package/dist/hub/init/prompt.d.ts +26 -0
  261. package/dist/hub/init/prompt.js +110 -0
  262. package/dist/hub/init/prompt.js.map +1 -0
  263. package/dist/hub/init/secret-file.d.ts +1 -0
  264. package/dist/hub/init/secret-file.js +59 -0
  265. package/dist/hub/init/secret-file.js.map +1 -0
  266. package/dist/hub/init/text.d.ts +127 -0
  267. package/dist/hub/init/text.js +247 -0
  268. package/dist/hub/init/text.js.map +1 -0
  269. package/dist/hub/init/types.d.ts +114 -0
  270. package/dist/hub/init/types.js +9 -0
  271. package/dist/hub/init/types.js.map +1 -0
  272. package/dist/hub/init/wizard.d.ts +34 -0
  273. package/dist/hub/init/wizard.js +554 -0
  274. package/dist/hub/init/wizard.js.map +1 -0
  275. package/dist/hub/initialization.d.ts +23 -0
  276. package/dist/hub/initialization.js +28 -0
  277. package/dist/hub/initialization.js.map +1 -0
  278. package/dist/hub/member/agent-mode.d.ts +6 -0
  279. package/dist/hub/member/agent-mode.js +23 -0
  280. package/dist/hub/member/agent-mode.js.map +1 -0
  281. package/dist/hub/member/attachments.d.ts +29 -0
  282. package/dist/hub/member/attachments.js +107 -0
  283. package/dist/hub/member/attachments.js.map +1 -0
  284. package/dist/hub/member/exposure-api.d.ts +87 -0
  285. package/dist/hub/member/exposure-api.js +64 -0
  286. package/dist/hub/member/exposure-api.js.map +1 -0
  287. package/dist/hub/member/exposures.d.ts +123 -0
  288. package/dist/hub/member/exposures.js +282 -0
  289. package/dist/hub/member/exposures.js.map +1 -0
  290. package/dist/hub/member/pairing-api.d.ts +85 -0
  291. package/dist/hub/member/pairing-api.js +385 -0
  292. package/dist/hub/member/pairing-api.js.map +1 -0
  293. package/dist/hub/member/quota.d.ts +20 -0
  294. package/dist/hub/member/quota.js +98 -0
  295. package/dist/hub/member/quota.js.map +1 -0
  296. package/dist/hub/member-journal.d.ts +104 -0
  297. package/dist/hub/member-journal.js +336 -0
  298. package/dist/hub/member-journal.js.map +1 -0
  299. package/dist/hub/member-reconciliation.d.ts +14 -0
  300. package/dist/hub/member-reconciliation.js +97 -0
  301. package/dist/hub/member-reconciliation.js.map +1 -0
  302. package/dist/hub/mount.d.ts +39 -0
  303. package/dist/hub/mount.js +123 -0
  304. package/dist/hub/mount.js.map +1 -0
  305. package/dist/hub/pairing-client.d.ts +17 -0
  306. package/dist/hub/pairing-client.js +108 -0
  307. package/dist/hub/pairing-client.js.map +1 -0
  308. package/dist/hub/pairing.d.ts +65 -0
  309. package/dist/hub/pairing.js +211 -0
  310. package/dist/hub/pairing.js.map +1 -0
  311. package/dist/hub/policy.d.ts +63 -0
  312. package/dist/hub/policy.js +147 -0
  313. package/dist/hub/policy.js.map +1 -0
  314. package/dist/hub/preview.d.ts +32 -0
  315. package/dist/hub/preview.js +64 -0
  316. package/dist/hub/preview.js.map +1 -0
  317. package/dist/hub/private-files.d.ts +5 -0
  318. package/dist/hub/private-files.js +44 -0
  319. package/dist/hub/private-files.js.map +1 -0
  320. package/dist/hub/profile.d.ts +59 -0
  321. package/dist/hub/profile.js +73 -0
  322. package/dist/hub/profile.js.map +1 -0
  323. package/dist/hub/protocol.d.ts +779 -0
  324. package/dist/hub/protocol.js +93 -0
  325. package/dist/hub/protocol.js.map +1 -0
  326. package/dist/hub/quota.d.ts +24 -0
  327. package/dist/hub/quota.js +112 -0
  328. package/dist/hub/quota.js.map +1 -0
  329. package/dist/hub/representative.d.ts +141 -0
  330. package/dist/hub/representative.js +528 -0
  331. package/dist/hub/representative.js.map +1 -0
  332. package/dist/hub/retention.d.ts +17 -0
  333. package/dist/hub/retention.js +45 -0
  334. package/dist/hub/retention.js.map +1 -0
  335. package/dist/hub/rooms.d.ts +120 -0
  336. package/dist/hub/rooms.js +535 -0
  337. package/dist/hub/rooms.js.map +1 -0
  338. package/dist/hub/runtime.d.ts +106 -0
  339. package/dist/hub/runtime.js +298 -0
  340. package/dist/hub/runtime.js.map +1 -0
  341. package/dist/hub/server.d.ts +56 -0
  342. package/dist/hub/server.js +202 -0
  343. package/dist/hub/server.js.map +1 -0
  344. package/dist/hub/service-start.d.ts +17 -0
  345. package/dist/hub/service-start.js +109 -0
  346. package/dist/hub/service-start.js.map +1 -0
  347. package/dist/hub/sessions.d.ts +53 -0
  348. package/dist/hub/sessions.js +196 -0
  349. package/dist/hub/sessions.js.map +1 -0
  350. package/dist/hub/socket.d.ts +24 -0
  351. package/dist/hub/socket.js +79 -0
  352. package/dist/hub/socket.js.map +1 -0
  353. package/dist/hub/store.d.ts +77 -0
  354. package/dist/hub/store.js +88 -0
  355. package/dist/hub/store.js.map +1 -0
  356. package/dist/hub/tls.d.ts +31 -0
  357. package/dist/hub/tls.js +135 -0
  358. package/dist/hub/tls.js.map +1 -0
  359. package/dist/hub/types.d.ts +401 -0
  360. package/dist/hub/types.js +2 -0
  361. package/dist/hub/types.js.map +1 -0
  362. package/dist/hub/validation.d.ts +33 -0
  363. package/dist/hub/validation.js +136 -0
  364. package/dist/hub/validation.js.map +1 -0
  365. package/dist/hub/version-floor.d.ts +10 -0
  366. package/dist/hub/version-floor.js +45 -0
  367. package/dist/hub/version-floor.js.map +1 -0
  368. package/dist/hub-browser-certificate-policy.d.ts +31 -0
  369. package/dist/hub-browser-certificate-policy.js +25 -0
  370. package/dist/hub-browser-certificate-policy.js.map +1 -0
  371. package/dist/hub-membership-settings.d.ts +6 -0
  372. package/dist/hub-membership-settings.js +21 -0
  373. package/dist/hub-membership-settings.js.map +1 -0
  374. package/dist/hub-mode.d.ts +15 -0
  375. package/dist/hub-mode.js +17 -0
  376. package/dist/hub-mode.js.map +1 -0
  377. package/dist/hub-pairing-summary.d.ts +48 -0
  378. package/dist/hub-pairing-summary.js +36 -0
  379. package/dist/hub-pairing-summary.js.map +1 -0
  380. package/dist/hub-report-target.d.ts +32 -0
  381. package/dist/hub-report-target.js +33 -0
  382. package/dist/hub-report-target.js.map +1 -0
  383. package/dist/hub-retention-policy.d.ts +14 -0
  384. package/dist/hub-retention-policy.js +15 -0
  385. package/dist/hub-retention-policy.js.map +1 -0
  386. package/dist/instance-config-impact.js +3 -0
  387. package/dist/instance-config-impact.js.map +1 -1
  388. package/dist/instance-lifecycle.d.ts +17 -2
  389. package/dist/instance-lifecycle.js +58 -8
  390. package/dist/instance-lifecycle.js.map +1 -1
  391. package/dist/instance-topic-delete.d.ts +77 -0
  392. package/dist/instance-topic-delete.js +123 -0
  393. package/dist/instance-topic-delete.js.map +1 -0
  394. package/dist/instructions.d.ts +1 -1
  395. package/dist/instructions.js +1 -1
  396. package/dist/instructions.js.map +1 -1
  397. package/dist/kiro-engine-status.d.ts +11 -0
  398. package/dist/kiro-engine-status.js +6 -0
  399. package/dist/kiro-engine-status.js.map +1 -1
  400. package/dist/launchd-service-domain.d.ts +5 -0
  401. package/dist/launchd-service-domain.js +21 -0
  402. package/dist/launchd-service-domain.js.map +1 -0
  403. package/dist/locale.js +125 -3
  404. package/dist/locale.js.map +1 -1
  405. package/dist/log-service.d.ts +28 -0
  406. package/dist/log-service.js +29 -0
  407. package/dist/log-service.js.map +1 -1
  408. package/dist/log-steps.d.ts +4 -3
  409. package/dist/log-steps.js +32 -7
  410. package/dist/log-steps.js.map +1 -1
  411. package/dist/logger.d.ts +16 -2
  412. package/dist/logger.js +346 -66
  413. package/dist/logger.js.map +1 -1
  414. package/dist/login-flows.d.ts +15 -7
  415. package/dist/login-flows.js +29 -3
  416. package/dist/login-flows.js.map +1 -1
  417. package/dist/login-manager.js +25 -4
  418. package/dist/login-manager.js.map +1 -1
  419. package/dist/ls-rows.js +3 -4
  420. package/dist/ls-rows.js.map +1 -1
  421. package/dist/missed-offline.d.ts +25 -0
  422. package/dist/missed-offline.js +79 -0
  423. package/dist/missed-offline.js.map +1 -0
  424. package/dist/native-instance-api.d.ts +0 -1
  425. package/dist/native-instance-api.js +15 -3
  426. package/dist/native-instance-api.js.map +1 -1
  427. package/dist/native-instance-input.d.ts +3 -0
  428. package/dist/native-instance-input.js +6 -1
  429. package/dist/native-instance-input.js.map +1 -1
  430. package/dist/native-instance-registry.d.ts +6 -0
  431. package/dist/native-instance-registry.js +24 -0
  432. package/dist/native-instance-registry.js.map +1 -1
  433. package/dist/native-mcp.d.ts +3 -0
  434. package/dist/native-mcp.js +15 -2
  435. package/dist/native-mcp.js.map +1 -1
  436. package/dist/native-pane-lifecycle.d.ts +8 -0
  437. package/dist/native-pane-lifecycle.js +13 -4
  438. package/dist/native-pane-lifecycle.js.map +1 -1
  439. package/dist/native-pane-manager.js +17 -9
  440. package/dist/native-pane-manager.js.map +1 -1
  441. package/dist/needs-you-hub.d.ts +9 -1
  442. package/dist/needs-you-hub.js +46 -8
  443. package/dist/needs-you-hub.js.map +1 -1
  444. package/dist/needs-you.d.ts +47 -2
  445. package/dist/needs-you.js +31 -3
  446. package/dist/needs-you.js.map +1 -1
  447. package/dist/office-share-page.js +2 -2
  448. package/dist/office-share-page.js.map +1 -1
  449. package/dist/office-share.d.ts +11 -0
  450. package/dist/office-share.js +14 -0
  451. package/dist/office-share.js.map +1 -1
  452. package/dist/office-talk.d.ts +26 -0
  453. package/dist/office-talk.js +50 -0
  454. package/dist/office-talk.js.map +1 -0
  455. package/dist/outbound-handlers.d.ts +14 -0
  456. package/dist/outbound-handlers.js +49 -6
  457. package/dist/outbound-handlers.js.map +1 -1
  458. package/dist/outbound-schemas.d.ts +33 -1
  459. package/dist/outbound-schemas.js +29 -16
  460. package/dist/outbound-schemas.js.map +1 -1
  461. package/dist/pane-quota-history.d.ts +9 -0
  462. package/dist/pane-quota-history.js +67 -0
  463. package/dist/pane-quota-history.js.map +1 -0
  464. package/dist/pause-marker.d.ts +1 -1
  465. package/dist/pause-marker.js +1 -1
  466. package/dist/pause-marker.js.map +1 -1
  467. package/dist/platform-general.d.ts +46 -0
  468. package/dist/platform-general.js +91 -0
  469. package/dist/platform-general.js.map +1 -0
  470. package/dist/public-web-gateway.js +7 -0
  471. package/dist/public-web-gateway.js.map +1 -1
  472. package/dist/queued-handoffs.d.ts +33 -0
  473. package/dist/queued-handoffs.js +75 -0
  474. package/dist/queued-handoffs.js.map +1 -0
  475. package/dist/quickstart.d.ts +13 -0
  476. package/dist/quickstart.js +81 -5
  477. package/dist/quickstart.js.map +1 -1
  478. package/dist/quota-notice.d.ts +7 -0
  479. package/dist/quota-notice.js +40 -0
  480. package/dist/quota-notice.js.map +1 -1
  481. package/dist/reply-buttons-controller.js +10 -6
  482. package/dist/reply-buttons-controller.js.map +1 -1
  483. package/dist/reply-polls.d.ts +2 -2
  484. package/dist/reply-polls.js +3 -3
  485. package/dist/reply-polls.js.map +1 -1
  486. package/dist/runtime-api.d.ts +2 -0
  487. package/dist/runtime-api.js +25 -7
  488. package/dist/runtime-api.js.map +1 -1
  489. package/dist/runtime-build-info.js +5 -3
  490. package/dist/runtime-build-info.js.map +1 -1
  491. package/dist/runtime-bundle.d.ts +3 -0
  492. package/dist/runtime-bundle.js +3 -1
  493. package/dist/runtime-bundle.js.map +1 -1
  494. package/dist/runtime-cli.d.ts +8 -1
  495. package/dist/runtime-cli.js +127 -8
  496. package/dist/runtime-cli.js.map +1 -1
  497. package/dist/runtime-client-store.d.ts +7 -0
  498. package/dist/runtime-client-store.js +30 -2
  499. package/dist/runtime-client-store.js.map +1 -1
  500. package/dist/runtime-client.d.ts +63 -1
  501. package/dist/runtime-client.js +295 -21
  502. package/dist/runtime-client.js.map +1 -1
  503. package/dist/runtime-coordinator.d.ts +7 -0
  504. package/dist/runtime-coordinator.js +213 -35
  505. package/dist/runtime-coordinator.js.map +1 -1
  506. package/dist/runtime-credential-profiles.d.ts +78 -0
  507. package/dist/runtime-credential-profiles.js +280 -0
  508. package/dist/runtime-credential-profiles.js.map +1 -0
  509. package/dist/runtime-install.d.ts +50 -0
  510. package/dist/runtime-install.js +186 -0
  511. package/dist/runtime-install.js.map +1 -0
  512. package/dist/runtime-pane-assets.d.ts +1 -1
  513. package/dist/runtime-pane-assets.js +1 -1
  514. package/dist/runtime-pane-assets.js.map +1 -1
  515. package/dist/runtime-pane-codex-index.d.ts +10 -1
  516. package/dist/runtime-pane-codex-index.js +131 -27
  517. package/dist/runtime-pane-codex-index.js.map +1 -1
  518. package/dist/runtime-pane-host.d.ts +19 -0
  519. package/dist/runtime-pane-host.js +50 -7
  520. package/dist/runtime-pane-host.js.map +1 -1
  521. package/dist/runtime-pane-link.d.ts +7 -0
  522. package/dist/runtime-pane-link.js +93 -2
  523. package/dist/runtime-pane-link.js.map +1 -1
  524. package/dist/runtime-pane-mcp-relay.d.ts +1 -0
  525. package/dist/runtime-pane-mcp-relay.js +10 -0
  526. package/dist/runtime-pane-mcp-relay.js.map +1 -1
  527. package/dist/runtime-pane-mcp.d.ts +4 -0
  528. package/dist/runtime-pane-mcp.js +6 -3
  529. package/dist/runtime-pane-mcp.js.map +1 -1
  530. package/dist/runtime-pane-native.d.ts +32 -2
  531. package/dist/runtime-pane-native.js +55 -6
  532. package/dist/runtime-pane-native.js.map +1 -1
  533. package/dist/runtime-pane-port.d.ts +5 -0
  534. package/dist/runtime-pane-port.js +17 -1
  535. package/dist/runtime-pane-port.js.map +1 -1
  536. package/dist/runtime-pane-process.d.ts +1 -1
  537. package/dist/runtime-pane-process.js +11 -2
  538. package/dist/runtime-pane-process.js.map +1 -1
  539. package/dist/runtime-pane-protocol.d.ts +11 -1
  540. package/dist/runtime-pane-protocol.js +27 -5
  541. package/dist/runtime-pane-protocol.js.map +1 -1
  542. package/dist/runtime-pane-quota-history.d.ts +6 -0
  543. package/dist/runtime-pane-quota-history.js +44 -0
  544. package/dist/runtime-pane-quota-history.js.map +1 -0
  545. package/dist/runtime-pane-service.d.ts +5 -0
  546. package/dist/runtime-pane-service.js +47 -12
  547. package/dist/runtime-pane-service.js.map +1 -1
  548. package/dist/runtime-pane-transcript.d.ts +5 -0
  549. package/dist/runtime-pane-transcript.js +66 -5
  550. package/dist/runtime-pane-transcript.js.map +1 -1
  551. package/dist/runtime-pane-worker.js +19 -6
  552. package/dist/runtime-pane-worker.js.map +1 -1
  553. package/dist/runtime-protocol.d.ts +17 -2
  554. package/dist/runtime-protocol.js +12 -0
  555. package/dist/runtime-protocol.js.map +1 -1
  556. package/dist/runtime-update-activity.d.ts +21 -0
  557. package/dist/runtime-update-activity.js +51 -0
  558. package/dist/runtime-update-activity.js.map +1 -0
  559. package/dist/runtime-update-artifact.d.ts +31 -0
  560. package/dist/runtime-update-artifact.js +252 -0
  561. package/dist/runtime-update-artifact.js.map +1 -0
  562. package/dist/runtime-update-install.d.ts +31 -0
  563. package/dist/runtime-update-install.js +205 -0
  564. package/dist/runtime-update-install.js.map +1 -0
  565. package/dist/runtime-update-journal.d.ts +44 -0
  566. package/dist/runtime-update-journal.js +121 -0
  567. package/dist/runtime-update-journal.js.map +1 -0
  568. package/dist/runtime-update-lock.d.ts +48 -0
  569. package/dist/runtime-update-lock.js +217 -0
  570. package/dist/runtime-update-lock.js.map +1 -0
  571. package/dist/runtime-update-owners.d.ts +29 -0
  572. package/dist/runtime-update-owners.js +240 -0
  573. package/dist/runtime-update-owners.js.map +1 -0
  574. package/dist/runtime-update-protocol.d.ts +15 -0
  575. package/dist/runtime-update-protocol.js +13 -0
  576. package/dist/runtime-update-protocol.js.map +1 -0
  577. package/dist/runtime-windows-bridge.d.ts +2 -1
  578. package/dist/runtime-windows-bridge.js +11 -1
  579. package/dist/runtime-windows-bridge.js.map +1 -1
  580. package/dist/scheduler/db.d.ts +2 -1
  581. package/dist/scheduler/db.js +23 -9
  582. package/dist/scheduler/db.js.map +1 -1
  583. package/dist/scheduler/task-board-text.js +1 -1
  584. package/dist/scheduler/task-board-text.js.map +1 -1
  585. package/dist/scheduler/task-board.d.ts +13 -0
  586. package/dist/scheduler/task-board.js +28 -3
  587. package/dist/scheduler/task-board.js.map +1 -1
  588. package/dist/service-drain.d.ts +19 -0
  589. package/dist/service-drain.js +64 -0
  590. package/dist/service-drain.js.map +1 -0
  591. package/dist/service-installer.d.ts +7 -2
  592. package/dist/service-installer.js +13 -10
  593. package/dist/service-installer.js.map +1 -1
  594. package/dist/settings-api.d.ts +20 -0
  595. package/dist/settings-api.js +414 -4
  596. package/dist/settings-api.js.map +1 -1
  597. package/dist/settings-baseline.d.ts +6 -0
  598. package/dist/settings-baseline.js +3 -1
  599. package/dist/settings-baseline.js.map +1 -1
  600. package/dist/settings-change.js +29 -6
  601. package/dist/settings-change.js.map +1 -1
  602. package/dist/settings-effect.d.ts +13 -0
  603. package/dist/settings-effect.js +97 -0
  604. package/dist/settings-effect.js.map +1 -1
  605. package/dist/settings-http-confirmation.js +13 -1
  606. package/dist/settings-http-confirmation.js.map +1 -1
  607. package/dist/settings-instance-patch.js +27 -0
  608. package/dist/settings-instance-patch.js.map +1 -1
  609. package/dist/setup-wizard.js +6 -2
  610. package/dist/setup-wizard.js.map +1 -1
  611. package/dist/task-board-tool.d.ts +13 -1
  612. package/dist/task-board-tool.js +104 -4
  613. package/dist/task-board-tool.js.map +1 -1
  614. package/dist/task-board-waker.d.ts +6 -0
  615. package/dist/task-board-waker.js +4 -0
  616. package/dist/task-board-waker.js.map +1 -1
  617. package/dist/tmux-binary.d.ts +59 -0
  618. package/dist/tmux-binary.js +200 -0
  619. package/dist/tmux-binary.js.map +1 -0
  620. package/dist/tmux-control.js +4 -4
  621. package/dist/tmux-control.js.map +1 -1
  622. package/dist/tmux-exec-helper.js +32 -1
  623. package/dist/tmux-exec-helper.js.map +1 -1
  624. package/dist/tmux-manager.d.ts +1 -1
  625. package/dist/tmux-manager.js +45 -36
  626. package/dist/tmux-manager.js.map +1 -1
  627. package/dist/tmux-read.js +4 -3
  628. package/dist/tmux-read.js.map +1 -1
  629. package/dist/tool-permissions.d.ts +5 -2
  630. package/dist/tool-permissions.js +6 -5
  631. package/dist/tool-permissions.js.map +1 -1
  632. package/dist/tool-progress.d.ts +2 -0
  633. package/dist/tool-progress.js +19 -3
  634. package/dist/tool-progress.js.map +1 -1
  635. package/dist/topic-commands.js +10 -5
  636. package/dist/topic-commands.js.map +1 -1
  637. package/dist/transcript-monitor.d.ts +20 -0
  638. package/dist/transcript-monitor.js +47 -3
  639. package/dist/transcript-monitor.js.map +1 -1
  640. package/dist/transcript-needles.d.ts +7 -0
  641. package/dist/transcript-needles.js +9 -1
  642. package/dist/transcript-needles.js.map +1 -1
  643. package/dist/transcript-records.d.ts +1 -1
  644. package/dist/transcript-records.js +2 -1
  645. package/dist/transcript-records.js.map +1 -1
  646. package/dist/types.d.ts +6 -0
  647. package/dist/ui/account-identity.js +27 -0
  648. package/dist/ui/accounts-view.js +214 -0
  649. package/dist/ui/agent-runtime-settings.js +9 -8
  650. package/dist/ui/backend-signin.js +4 -1
  651. package/dist/ui/chat-ambient.js +1 -1
  652. package/dist/ui/chat-md-strings.js +3 -0
  653. package/dist/ui/chat-render.js +3 -670
  654. package/dist/ui/chat-store.js +1 -1
  655. package/dist/ui/chat-strings.js +3 -333
  656. package/dist/ui/chat-thread.js +3 -919
  657. package/dist/ui/chat-time.js +3 -80
  658. package/dist/ui/chat-tour.js +1 -1
  659. package/dist/ui/credential-profile-select.js +54 -0
  660. package/dist/ui/fleet-office-dialogue.d.ts +30 -0
  661. package/dist/ui/fleet-office-dialogue.js +382 -0
  662. package/dist/ui/fleet-office-pack.d.ts +9 -0
  663. package/dist/ui/fleet-office-pack.js +76 -4
  664. package/dist/ui/fleet-office-skin.js +23 -5
  665. package/dist/ui/fleet-office-store.js +5 -0
  666. package/dist/ui/fleet-office.js +173 -6
  667. package/dist/ui/fleet-task-card.js +10 -6
  668. package/dist/ui/fleet-task-common.js +12 -2
  669. package/dist/ui/fleet-task-menu.js +188 -0
  670. package/dist/ui/fleet-task-stats.js +124 -0
  671. package/dist/ui/fleet-task-view.js +340 -0
  672. package/dist/ui/fleet-tasks.js +131 -43
  673. package/dist/ui/fleet-usage.js +90 -27
  674. package/dist/ui/html-attachment.js +3 -40
  675. package/dist/ui/hub-agent-copy.js +23 -0
  676. package/dist/ui/hub-button-actions.js +65 -0
  677. package/dist/ui/hub-chat-store.js +158 -0
  678. package/dist/ui/hub-chat-strings.js +77 -0
  679. package/dist/ui/hub-client.js +329 -0
  680. package/dist/ui/hub-owner-strings.js +51 -0
  681. package/dist/ui/hub-provider-guidance.js +31 -0
  682. package/dist/ui/hub-quota.js +85 -0
  683. package/dist/ui/hub-strings.js +162 -0
  684. package/dist/ui/hub-switcher.js +27 -0
  685. package/dist/ui/native-pane-recovery.js +1 -1
  686. package/dist/ui/office-share-page.js +4 -2
  687. package/dist/ui/panel-chat.js +34 -48
  688. package/dist/ui/panel-details.js +1 -1
  689. package/dist/ui/panel-fleet.js +78 -10
  690. package/dist/ui/panel-hub.js +619 -0
  691. package/dist/ui/panel-log.js +2 -2
  692. package/dist/ui/panel-needs.js +24 -8
  693. package/dist/ui/panel-runtimes.js +114 -23
  694. package/dist/ui/panel-settings.js +69 -80
  695. package/dist/ui/panel-windows-cli.js +12 -2
  696. package/dist/ui/preview-pages.js +1 -1
  697. package/dist/ui/preview-panel.js +92 -6
  698. package/dist/ui/preview-versions.js +1 -1
  699. package/dist/ui/preview.js +3 -476
  700. package/dist/ui/runtime-commands.d.ts +4 -0
  701. package/dist/ui/runtime-commands.js +59 -0
  702. package/dist/ui/search-dialog.js +2 -0
  703. package/dist/ui/settings-access-strings.js +42 -0
  704. package/dist/ui/settings-build-version.js +35 -0
  705. package/dist/ui/settings-codex-copy.js +19 -0
  706. package/dist/ui/settings-devices.js +253 -0
  707. package/dist/ui/settings-dialogs.js +28 -7
  708. package/dist/ui/settings-hub-browser-certificate.js +74 -0
  709. package/dist/ui/settings-hub-membership.js +72 -0
  710. package/dist/ui/settings-hub-retention.js +52 -0
  711. package/dist/ui/settings-hub.js +196 -0
  712. package/dist/ui/settings-layout.js +8 -11
  713. package/dist/ui/settings-model.js +16 -2
  714. package/dist/ui/settings-outside.js +104 -38
  715. package/dist/ui/settings-registry.js +4 -1
  716. package/dist/ui/settings-shared-strings.js +143 -0
  717. package/dist/ui/settings-shared.js +345 -0
  718. package/dist/ui/settings-strings.js +10 -46
  719. package/dist/ui/settings-web-authority.js +5 -2
  720. package/dist/ui/shared/accounts.css +15 -0
  721. package/dist/ui/shared/app-i18n.js +2 -2
  722. package/dist/ui/shared/app-needs.js +1 -1
  723. package/dist/ui/shared/app-route.js +6 -1
  724. package/dist/ui/shared/app-session.js +6 -2
  725. package/dist/ui/shared/app-shell.js +64 -8
  726. package/dist/ui/shared/app.css +121 -30
  727. package/dist/ui/shared/app.js +12 -3
  728. package/dist/ui/shared/chat-composer.js +68 -0
  729. package/dist/ui/shared/chat-md-strings.js +9 -0
  730. package/dist/ui/shared/chat-render.js +682 -0
  731. package/dist/ui/shared/chat-strings.js +333 -0
  732. package/dist/ui/shared/chat-thread.js +969 -0
  733. package/dist/ui/shared/chat-time.js +80 -0
  734. package/dist/ui/shared/header-tools.js +3 -5
  735. package/dist/ui/shared/html-attachment.js +42 -0
  736. package/dist/ui/shared/hub-chat.css +85 -0
  737. package/dist/ui/shared/hub-owner.css +33 -0
  738. package/dist/ui/shared/hub-quota.css +8 -0
  739. package/dist/ui/shared/hub.css +71 -0
  740. package/dist/ui/shared/page-head.js +8 -0
  741. package/dist/ui/shared/panel-view.js +77 -4
  742. package/dist/ui/shared/preview.js +476 -0
  743. package/dist/ui/shared/runtime-install.css +26 -0
  744. package/dist/ui/shared/side-rail.js +15 -0
  745. package/dist/ui/shared/signin.js +172 -0
  746. package/dist/ui/shared/task-board.css +95 -0
  747. package/dist/ui/shared/usage-dialog.js +18 -1
  748. package/dist/ui/shared/view-history.css +17 -0
  749. package/dist/ui/shared/view-history.js +438 -0
  750. package/dist/ui/shared/view-strings.js +16 -0
  751. package/dist/ui/shared/workspace.css +20 -0
  752. package/dist/ui/signin.html +21 -0
  753. package/dist/ui/workspace-panel.js +189 -0
  754. package/dist/ui/workspace-strings.js +35 -0
  755. package/dist/unattended-install.d.ts +11 -2
  756. package/dist/unattended-install.js +41 -6
  757. package/dist/unattended-install.js.map +1 -1
  758. package/dist/usage/capacity.d.ts +69 -0
  759. package/dist/usage/capacity.js +119 -0
  760. package/dist/usage/capacity.js.map +1 -0
  761. package/dist/usage/i18n-keys.d.ts +1 -1
  762. package/dist/usage/i18n-keys.js +3 -0
  763. package/dist/usage/i18n-keys.js.map +1 -1
  764. package/dist/usage/profile-timeline.d.ts +16 -0
  765. package/dist/usage/profile-timeline.js +58 -0
  766. package/dist/usage/profile-timeline.js.map +1 -0
  767. package/dist/usage/providers.js +2 -1
  768. package/dist/usage/providers.js.map +1 -1
  769. package/dist/usage/quota-history.d.ts +43 -0
  770. package/dist/usage/quota-history.js +168 -0
  771. package/dist/usage/quota-history.js.map +1 -0
  772. package/dist/usage/usage-api.d.ts +31 -0
  773. package/dist/usage/usage-api.js +80 -1
  774. package/dist/usage/usage-api.js.map +1 -1
  775. package/dist/usage-report.d.ts +25 -1
  776. package/dist/usage-report.js +55 -4
  777. package/dist/usage-report.js.map +1 -1
  778. package/dist/usage-rollup.d.ts +6 -1
  779. package/dist/usage-rollup.js +16 -4
  780. package/dist/usage-rollup.js.map +1 -1
  781. package/dist/view-api.d.ts +16 -0
  782. package/dist/view-api.js +105 -23
  783. package/dist/view-api.js.map +1 -1
  784. package/dist/view-history.d.ts +84 -0
  785. package/dist/view-history.js +116 -0
  786. package/dist/view-history.js.map +1 -0
  787. package/dist/web-api.d.ts +48 -2
  788. package/dist/web-api.js +276 -8
  789. package/dist/web-api.js.map +1 -1
  790. package/dist/web-backend-login.d.ts +23 -1
  791. package/dist/web-backend-login.js +11 -17
  792. package/dist/web-backend-login.js.map +1 -1
  793. package/dist/web-device-login.d.ts +153 -0
  794. package/dist/web-device-login.js +278 -0
  795. package/dist/web-device-login.js.map +1 -0
  796. package/dist/web-office-skins.d.ts +9 -0
  797. package/dist/web-office-skins.js +16 -1
  798. package/dist/web-office-skins.js.map +1 -1
  799. package/dist/web-session-authorization.d.ts +13 -2
  800. package/dist/web-session-authorization.js +10 -3
  801. package/dist/web-session-authorization.js.map +1 -1
  802. package/dist/web-session.d.ts +35 -0
  803. package/dist/web-session.js +7 -0
  804. package/dist/web-session.js.map +1 -1
  805. package/dist/web-settings-patch.d.ts +3 -1
  806. package/dist/web-settings-patch.js +4 -1
  807. package/dist/web-settings-patch.js.map +1 -1
  808. package/dist/web-shell-routes.d.ts +6 -0
  809. package/dist/web-shell-routes.js +7 -0
  810. package/dist/web-shell-routes.js.map +1 -1
  811. package/dist/web-terminal.d.ts +4 -30
  812. package/dist/web-terminal.js +9 -6
  813. package/dist/web-terminal.js.map +1 -1
  814. package/dist/windows-agents.d.ts +1 -0
  815. package/dist/windows-agents.js +1 -0
  816. package/dist/windows-agents.js.map +1 -1
  817. package/dist/windows-cli-api.d.ts +12 -1
  818. package/dist/windows-cli-api.js +27 -1
  819. package/dist/windows-cli-api.js.map +1 -1
  820. package/dist/windows-cli-providers.d.ts +0 -9
  821. package/dist/windows-cli-providers.js +4 -9
  822. package/dist/windows-cli-providers.js.map +1 -1
  823. package/dist/windows-cli-worker.d.ts +24 -0
  824. package/dist/windows-cli-worker.js +96 -5
  825. package/dist/windows-cli-worker.js.map +1 -1
  826. package/dist/windows-cli.d.ts +10 -0
  827. package/dist/windows-cli.js +10 -1
  828. package/dist/windows-cli.js.map +1 -1
  829. package/dist/yaml-shared-nodes.js +8 -3
  830. package/dist/yaml-shared-nodes.js.map +1 -1
  831. package/launcher/agend-install.cjs +8 -1
  832. package/launcher/launchd-session-type.cjs +14 -0
  833. package/launcher/postinstall.cjs +27 -2
  834. package/launcher/private-home.cjs +1 -1
  835. package/launcher/tmux-bundle.cjs +247 -0
  836. package/package.json +3 -2
  837. package/templates/launchd.plist.ejs +3 -1
  838. package/templates/runtime-install/install.ps1 +270 -0
@@ -0,0 +1,438 @@
1
+ // Claude history in the View (the user, hmsg-a8947a2c / hmsg-b4c7ccdf; leader cid-claude-history-build). Claude Code
2
+ // draws on the alternate screen, so tmux keeps nothing above it: scrolling up in its View shows the conversation's
3
+ // earlier part from its transcript (GET /api/pane/<name>?transcript=1, view-history.ts), drawn like Claude's own
4
+ // Ctrl+O view — "❯" prompts on their band, "●" replies and tool calls, "⎿" results, diffs, long output folded — directly
5
+ // above the live screen, under a faint divider.
6
+ //
7
+ // The look is sampled from the live screen the View already shows (samplePalette): the prompt band, the bullet and
8
+ // result glyphs, the tool and diff colours, as this Claude version draws them; Claude 2.1.318's own values when the
9
+ // screen has none of them. A glyph the page's fonts lack falls back (⏺ → ●, ⎿ → └, ❯ → >).
10
+ //
11
+ // Loaded on first use by panel-view.js (a lazy module of its own). A tab opened before an upgrade runs it with the old
12
+ // shell, so it imports nothing but app-i18n.js's register/t (in every shell since #1408), registers its own words and
13
+ // links its own stylesheet (/assets/view-history.css): nothing it needs lives in a long-lived module. A server without
14
+ // the history (an older one answers the pane's text) makes `first()` say `unsupported`: the View stays as it was.
15
+ import { register, t } from "./app-i18n.js";
16
+
17
+ register("viewHistory", {
18
+ en: {
19
+ divider: "History above",
20
+ more: "… +{0} lines (click to expand)",
21
+ moreFailed: "Could not load the full text.",
22
+ cut: "… {0} more characters not shown",
23
+ capped: "Only the latest {0} steps are shown here.",
24
+ },
25
+ "zh-TW": {
26
+ divider: "以上是對話紀錄",
27
+ more: "… 還有 {0} 行(點一下展開)",
28
+ moreFailed: "無法載入完整內容。",
29
+ cut: "… 還有 {0} 個字元未顯示",
30
+ capped: "這裡只顯示最近 {0} 則紀錄。",
31
+ },
32
+ });
33
+ const w = (key, ...values) => t(`viewHistory.${key}`, ...values);
34
+
35
+ /** About this many steps are kept on the page; older pages are not read past it. */
36
+ export const HISTORY_STEP_CAP = 1000;
37
+
38
+ // ── The palette, sampled from the live screen ──
39
+ const BASE = ["#000000", "#cd3131", "#0dbc79", "#e5e510", "#2472c8", "#bc3fbc", "#11a8cd", "#e5e5e5"];
40
+ const BRIGHT = ["#666666", "#f14c4c", "#23d18b", "#f5f543", "#3b8eea", "#d670d6", "#29b8db", "#ffffff"];
41
+ function xterm256(n) {
42
+ if (n < 8) return BASE[n];
43
+ if (n < 16) return BRIGHT[n - 8];
44
+ if (n < 232) { n -= 16; const r = Math.floor(n / 36), g = Math.floor((n % 36) / 6), b = n % 6; const v = (x) => (x ? x * 40 + 55 : 0); return `rgb(${v(r)},${v(g)},${v(b)})`; }
45
+ const l = (n - 232) * 10 + 8; return `rgb(${l},${l},${l})`;
46
+ }
47
+ /** Claude Code 2.1.318's own look (captured from a real pane, dark theme): what is used when the screen shows none. */
48
+ export const DEFAULT_PALETTE = Object.freeze({
49
+ promptGlyph: "❯", promptBand: xterm256(237), promptFg: xterm256(246), promptText: xterm256(231),
50
+ bullet: "●", replyFg: xterm256(231), toolFg: xterm256(114), failedFg: xterm256(203), runningFg: xterm256(246),
51
+ resultGlyph: "⎿", resultFg: xterm256(246),
52
+ delFg: xterm256(167), delBg: xterm256(52), addFg: xterm256(77), addBg: xterm256(22), errorFg: xterm256(203),
53
+ });
54
+
55
+ /** The screen's text as lines of runs: { text, fg, bg, bold } (colours as CSS, null when unset). */
56
+ export function ansiRuns(text) {
57
+ const lines = [[]];
58
+ let fg = null, bg = null, bold = false, reverse = false;
59
+ const push = (chunk) => {
60
+ const parts = chunk.split("\n");
61
+ parts.forEach((part, i) => {
62
+ if (i > 0) lines.push([]);
63
+ if (!part) return;
64
+ let f = typeof fg === "number" ? (bold && fg < 8 ? BRIGHT[fg] : BASE[fg]) : fg;
65
+ let b = typeof bg === "number" ? BASE[bg] : bg;
66
+ if (reverse) [f, b] = [b, f];
67
+ lines[lines.length - 1].push({ text: part, fg: f, bg: b, bold });
68
+ });
69
+ };
70
+ const re = /\x1b\[([0-9;]*)m/g;
71
+ let last = 0, m;
72
+ while ((m = re.exec(text)) !== null) {
73
+ push(text.slice(last, m.index));
74
+ last = re.lastIndex;
75
+ const codes = m[1].split(";").filter((x) => x !== "").map(Number);
76
+ if (codes.length === 0) codes.push(0);
77
+ for (let i = 0; i < codes.length; i++) {
78
+ const c = codes[i];
79
+ if (c === 0) { fg = bg = null; bold = reverse = false; }
80
+ else if (c === 1) bold = true;
81
+ else if (c === 22) bold = false;
82
+ else if (c === 7) reverse = true;
83
+ else if (c === 27) reverse = false;
84
+ else if (c === 39) fg = null;
85
+ else if (c === 49) bg = null;
86
+ else if (c >= 30 && c <= 37) fg = c - 30;
87
+ else if (c >= 90 && c <= 97) fg = BRIGHT[c - 90];
88
+ else if (c >= 40 && c <= 47) bg = c - 40;
89
+ else if (c >= 100 && c <= 107) bg = BRIGHT[c - 100];
90
+ else if (c === 38 || c === 48) {
91
+ let col = null;
92
+ if (codes[i + 1] === 5) { col = xterm256(codes[i + 2]); i += 2; }
93
+ else if (codes[i + 1] === 2) { col = `rgb(${codes[i + 2] || 0},${codes[i + 3] || 0},${codes[i + 4] || 0})`; i += 4; }
94
+ if (c === 38) fg = col; else bg = col;
95
+ }
96
+ }
97
+ }
98
+ push(text.slice(last));
99
+ return lines;
100
+ }
101
+
102
+ const PROMPT_GLYPHS = "❯>›";
103
+ const BULLETS = "●⏺";
104
+ const RESULT_GLYPHS = "⎿└";
105
+ /**
106
+ * How this Claude draws its conversation, read off the live screen (ANSI, as the View fetched it): each value found
107
+ * replaces the default; the most frequent wins where a screen shows several (a failed tool's red bullet among green).
108
+ */
109
+ export function samplePalette(screen) { return sampleScreen(screen).palette; }
110
+ /** samplePalette, and which of its values the screen gave (the rest are the defaults) — for the version audit. */
111
+ export function sampleScreen(screen) {
112
+ const p = { ...DEFAULT_PALETTE };
113
+ const found = new Set();
114
+ const set = (k, v) => { if (v) { p[k] = v; found.add(k); } };
115
+ if (typeof screen !== "string" || !screen) return { palette: p, found: [] };
116
+ const tally = { toolFg: new Map(), replyFg: new Map() };
117
+ const count = (map, v) => { if (v) map.set(v, (map.get(v) || 0) + 1); };
118
+ let banded = false, glyphSeen = false;
119
+ for (const runs of ansiRuns(screen)) {
120
+ const textOf = runs.map((r) => r.text).join("");
121
+ const lead = textOf.length - textOf.trimStart().length;
122
+ // Find the run holding column `col` (and the offset in it).
123
+ const at = (col) => { let n = 0; for (const r of runs) { if (col < n + r.text.length) return r; n += r.text.length; } return null; };
124
+ const first = textOf.charAt(lead);
125
+ // A prompt: its glyph then a space, on a band (a past prompt) — or bare (the composer: the glyph only).
126
+ if (PROMPT_GLYPHS.includes(first) && textOf.charAt(lead + 1) === " " && !banded) {
127
+ const g = at(lead);
128
+ if (g && g.bg) {
129
+ banded = true; glyphSeen = true;
130
+ set("promptGlyph", first); set("promptBand", g.bg); set("promptFg", g.fg);
131
+ const rest = runs.slice(runs.indexOf(g) + 1).find((r) => r.text.trim());
132
+ if (rest) set("promptText", rest.fg);
133
+ } else if (!glyphSeen) { glyphSeen = true; set("promptGlyph", first); }
134
+ continue;
135
+ }
136
+ // A bullet at the line's start: a tool call ("● Name(" with the name bold) or a reply.
137
+ if (lead === 0 && BULLETS.includes(first) && textOf.charAt(1) === " ") {
138
+ set("bullet", first);
139
+ const g = at(0), next = at(2);
140
+ const tool = !!(next && next.bold) && /^. [^(]+\(/.test(textOf);
141
+ count(tool ? tally.toolFg : tally.replyFg, g && g.fg);
142
+ continue;
143
+ }
144
+ // A result: two spaces, its glyph.
145
+ if (lead === 2 && RESULT_GLYPHS.includes(first)) {
146
+ set("resultGlyph", first);
147
+ const g = at(2); if (g) set("resultFg", g.fg);
148
+ continue;
149
+ }
150
+ // A diff row: a line number then - or +, on a coloured background.
151
+ const row = /^\s+\d+\s?([-+])/.exec(textOf);
152
+ if (row) {
153
+ const g = at(textOf.indexOf(row[1], lead));
154
+ if (g && g.bg) { if (row[1] === "-") { set("delBg", g.bg); set("delFg", g.fg); } else { set("addBg", g.bg); set("addFg", g.fg); } }
155
+ }
156
+ }
157
+ const top = (map) => { let best = null, n = 0; for (const [k, v] of map) if (v > n) { best = k; n = v; } return best; };
158
+ set("toolFg", top(tally.toolFg));
159
+ set("replyFg", top(tally.replyFg));
160
+ return { palette: p, found: [...found] };
161
+ }
162
+
163
+ // ── Glyphs the page's fonts lack ──
164
+ const FALLBACK = { "⏺": "●", "●": "*", "⎿": "└", "└": "|", "❯": ">", "›": ">" };
165
+ const glyphCache = new Map();
166
+ /**
167
+ * Whether `ch` draws as itself in `font` (a CSS font-family list): drawn next to a code point no font has, the two must
168
+ * differ. No canvas (a test page): assumed drawn.
169
+ */
170
+ export function hasGlyph(ch, font, doc = typeof document !== "undefined" ? document : null) {
171
+ const key = `${ch}\u0000${font}`;
172
+ if (glyphCache.has(key)) return glyphCache.get(key);
173
+ let ok = true;
174
+ try {
175
+ const canvas = doc && doc.createElement ? doc.createElement("canvas") : null;
176
+ const ctx = canvas && typeof canvas.getContext === "function" ? canvas.getContext("2d") : null;
177
+ if (ctx && typeof ctx.getImageData === "function") {
178
+ canvas.width = 40; canvas.height = 40;
179
+ const draw = (c) => { ctx.clearRect(0, 0, 40, 40); ctx.font = `32px ${font}`; ctx.fillStyle = "#000"; ctx.textBaseline = "top"; ctx.fillText(c, 2, 2); return ctx.getImageData(0, 0, 40, 40).data; };
180
+ const a = draw(ch), none = draw("\u{10FFFD}");
181
+ ok = false;
182
+ for (let i = 3; i < a.length; i += 4) if (a[i] !== none[i]) { ok = true; break; }
183
+ }
184
+ } catch { ok = true; }
185
+ glyphCache.set(key, ok);
186
+ return ok;
187
+ }
188
+ /** The glyph as drawn on this page: itself, or its fallback when the fonts lack it. */
189
+ export function drawable(ch, font, doc) {
190
+ let g = ch;
191
+ for (let i = 0; i < 3 && g && !hasGlyph(g, font, doc); i++) g = FALLBACK[g] || g;
192
+ return g;
193
+ }
194
+
195
+ // ── Which steps the live screen already shows ──
196
+ // Text a needle is compared by: no whitespace (a wrap moves it) and no markdown marks (Claude draws them away).
197
+ const squash = (s) => String(s).replace(/\x1b\[[0-9;]*m/g, "").replace(/[\s*_`#>│]/g, "");
198
+ /**
199
+ * What of a prompt or a reply is looked for on the screen: its WHOLE text, normalised (#3069 review r3, Prism P2-2 — a
200
+ * fixed prefix, however long, is no proof: it can occur inside another message). None for a tool: Claude may draw it
201
+ * summarised.
202
+ */
203
+ function needle(step) {
204
+ if (step.kind !== "user" && step.kind !== "assistant") return null;
205
+ const s = squash(step.body || "");
206
+ return s.length >= 4 ? s : null;
207
+ }
208
+ /**
209
+ * The steps before the live screen, matched conservatively (#3069 review, Prism P2-2): walking back from the newest,
210
+ * each prompt and reply must be found WHOLE on the screen, BEFORE the place the newer one was found — one occurrence
211
+ * never proves two messages, and a shared opening is never taken for the same message. The first one not found that
212
+ * way (a message only partly shown included), and everything older, is history. Tool calls go with their neighbours. Unsure means shown again: a
213
+ * step the screen shows may come twice — never one it does not show not at all.
214
+ */
215
+ export function beforeScreen(steps, screen) {
216
+ const text = squash(screen || "");
217
+ let cut = steps.length, limit = text.length;
218
+ for (let i = steps.length - 1; i >= 0; i--) {
219
+ const n = needle(steps[i]);
220
+ if (n === null) continue;
221
+ const at = limit - n.length >= 0 ? text.lastIndexOf(n, limit - n.length) : -1;
222
+ if (at < 0) break;
223
+ limit = at;
224
+ cut = i;
225
+ }
226
+ return steps.slice(0, cut);
227
+ }
228
+
229
+ // ── Drawing ──
230
+ const TOOL_WORDS = { Edit: "Update", MultiEdit: "Update", Grep: "Search", Glob: "Search", WebFetch: "Fetch", WebSearch: "Web Search", TodoWrite: "Update Todos", Agent: "Task", NotebookEdit: "Edit Notebook" };
231
+ /** Claude's word for a tool, as its screen shows it ("Update" for Edit; "server - tool (MCP)" for an MCP tool). */
232
+ export function toolWord(tool) {
233
+ const mcp = /^mcp__(.+?)__(.+)$/.exec(tool || "");
234
+ if (mcp) return `${mcp[1]} - ${mcp[2]} (MCP)`;
235
+ return TOOL_WORDS[tool] || tool || "?";
236
+ }
237
+
238
+ function el(doc, tag, cls, text) {
239
+ const e = doc.createElement(tag);
240
+ if (cls) e.className = cls;
241
+ if (text != null) e.textContent = text;
242
+ return e;
243
+ }
244
+ function span(doc, text, color, extra) {
245
+ const s = el(doc, "span", extra || null, text);
246
+ if (color) s.style.color = color; // CSSOM, never a style attribute (#1300)
247
+ return s;
248
+ }
249
+ /** A Read result's "12\tcode" lines as the terminal shows them (" 12 code"). */
250
+ const unTab = (text, tool) => (tool === "Read" ? text.replace(/^(\d+)\t/gm, (_, n) => `${n.padStart(4)} `) : text.replace(/\t/g, " "));
251
+
252
+ /** One step's block. `onMore`: the folded step, clicked. */
253
+ export function drawStep(doc, step, pal, glyphs, onMore) {
254
+ const box = el(doc, "div", "vh-step");
255
+ box.dataset.step = step.id;
256
+ const line = (cls) => box.appendChild(el(doc, "div", `vh-line${cls ? ` ${cls}` : ""}`));
257
+ if (step.kind === "user") {
258
+ (step.body || "").split("\n").forEach((text, i) => {
259
+ const l = line("vh-prompt");
260
+ l.style.background = pal.promptBand;
261
+ l.appendChild(span(doc, i === 0 ? `${glyphs.prompt} ` : " ", pal.promptFg));
262
+ l.appendChild(span(doc, text || " ", pal.promptText));
263
+ });
264
+ if (step.cut) line("vh-dim").textContent = ` ${w("cut", step.cut)}`;
265
+ return box;
266
+ }
267
+ if (step.kind === "assistant") {
268
+ (step.body || "").split("\n").forEach((text, i) => {
269
+ const l = line();
270
+ l.appendChild(i === 0 ? span(doc, `${glyphs.bullet} `, pal.replyFg) : span(doc, " "));
271
+ l.appendChild(span(doc, text || " "));
272
+ });
273
+ if (step.cut) line("vh-dim").textContent = ` ${w("cut", step.cut)}`;
274
+ return box;
275
+ }
276
+ if (step.kind === "tool") {
277
+ const head = line();
278
+ const fg = step.status === "failed" ? pal.failedFg : step.status === "running" || step.status === "interrupted" ? pal.runningFg : pal.toolFg;
279
+ head.appendChild(span(doc, `${glyphs.bullet} `, fg));
280
+ head.appendChild(span(doc, toolWord(step.tool), null, "vh-b"));
281
+ head.appendChild(span(doc, step.subject ? `(${step.subject})` : ""));
282
+ }
283
+ // The result: " ⎿ " then its first line; the rest under it — or the edit's diff rows.
284
+ const resultColor = step.kind === "error" || step.status === "failed" ? pal.errorFg : null;
285
+ let firstRow = true;
286
+ const mark = () => { const s = firstRow ? span(doc, ` ${glyphs.result} `, pal.resultFg) : span(doc, " "); firstRow = false; return s; };
287
+ if (step.diff) {
288
+ for (const h of step.diff) {
289
+ for (const [rows, sign, bg, fg] of [[h.del, "-", pal.delBg, pal.delFg], [h.add, "+", pal.addBg, pal.addFg]]) {
290
+ for (const text of rows) {
291
+ const l = line("vh-res");
292
+ l.appendChild(mark());
293
+ const row = span(doc, `${sign} ${text}`, fg, "vh-diff");
294
+ row.style.background = bg;
295
+ l.appendChild(row);
296
+ }
297
+ }
298
+ }
299
+ } else if (step.body != null && step.body !== "") {
300
+ for (const text of unTab(step.body, step.tool).split("\n")) {
301
+ const l = line("vh-res");
302
+ l.appendChild(mark());
303
+ l.appendChild(span(doc, text || " ", resultColor));
304
+ }
305
+ }
306
+ if (step.more) {
307
+ const l = line("vh-res");
308
+ l.appendChild(span(doc, " "));
309
+ const b = el(doc, "button", "vh-more", w("more", step.more));
310
+ b.type = "button";
311
+ b.style.color = pal.resultFg;
312
+ b.addEventListener("click", () => onMore && onMore(step, box, b));
313
+ l.appendChild(b);
314
+ } else if (step.cut) line("vh-res vh-dim").textContent = ` ${w("cut", step.cut)}`;
315
+ return box;
316
+ }
317
+
318
+ /**
319
+ * The history above one agent's live screen. `fetch(url)` reads under the View's lease; `alive()` is false once the
320
+ * View moved on (nothing is drawn then). `root` is the block panel-view.js puts above the screen it shows.
321
+ */
322
+ export function createHistory({ name, fetch, alive = () => true, doc = document, font = "monospace", cols = 0 }) {
323
+ ensureStylesheet(doc);
324
+ const root = el(doc, "div", "vh");
325
+ root.setAttribute("data-trust", "panel-content");
326
+ if (cols > 0) root.style.width = `${cols}ch`;
327
+ const pages = el(doc, "div", "vh-pages");
328
+ const capNote = el(doc, "div", "vh-cap");
329
+ const divider = el(doc, "div", "vh-divider", w("divider"));
330
+ divider.setAttribute("role", "separator");
331
+ root.append(pages, divider);
332
+ let pal = DEFAULT_PALETTE, glyphs = null;
333
+ let key = null, before = null, shown = 0, busy = false;
334
+ const base = `/api/pane/${encodeURIComponent(name)}?transcript=1`;
335
+ const read = async (query) => {
336
+ const r = await fetch(`${base}${query}`);
337
+ // An older server answers the pane's text here: not this history.
338
+ const type = r.headers && typeof r.headers.get === "function" ? String(r.headers.get("Content-Type") || "") : "";
339
+ if (!r.ok) return { failed: true, status: r.status };
340
+ if (!type.includes("application/json")) return { unsupported: true };
341
+ const body = await r.json();
342
+ if (!body || body.view_history !== 1) return { unsupported: true };
343
+ return body;
344
+ };
345
+ const block = (steps, end) => {
346
+ const frag = doc.createDocumentFragment();
347
+ for (const s of steps) {
348
+ const b = drawStep(doc, s, pal, glyphs, more);
349
+ b.dataset.end = String(end);
350
+ frag.appendChild(b);
351
+ }
352
+ return frag;
353
+ };
354
+ async function more(step, box, button) {
355
+ if (button.disabled) return;
356
+ button.disabled = true;
357
+ try {
358
+ const body = await read(`&step=${encodeURIComponent(step.id)}&end=${encodeURIComponent(box.dataset.end)}&key=${encodeURIComponent(key || "")}`);
359
+ if (!alive()) return;
360
+ if (!body.supported || !body.step) throw new Error("gone");
361
+ const whole = drawStep(doc, body.step, pal, glyphs, more);
362
+ whole.dataset.end = box.dataset.end;
363
+ box.replaceWith(whole);
364
+ } catch {
365
+ if (!alive()) return;
366
+ button.disabled = false;
367
+ if (!box.querySelector(".vh-more-failed")) button.parentNode.insertBefore(span(doc, ` ${w("moreFailed")}`, pal.errorFg, "vh-more-failed"), button.nextSibling);
368
+ }
369
+ }
370
+ return {
371
+ root,
372
+ /** Older steps exist and the cap is not reached. */
373
+ hasOlder: () => before !== null && shown < HISTORY_STEP_CAP,
374
+ /**
375
+ * The newest page, minus what the live `screen` (ANSI) shows. "ok" | "empty" (nothing before the screen) |
376
+ * "unsupported" (no history here) | "failed" (with `status`).
377
+ */
378
+ async first(screen) {
379
+ pal = samplePalette(screen);
380
+ glyphs = { prompt: drawable(pal.promptGlyph, font, doc), bullet: drawable(pal.bullet, font, doc), result: drawable(pal.resultGlyph, font, doc) };
381
+ let body;
382
+ try { body = await read(""); } catch { return { kind: "failed", status: 0 }; }
383
+ if (body.failed) return { kind: "failed", status: body.status };
384
+ if (body.unsupported) return { kind: "unsupported" };
385
+ // No history here at all (not Claude, or no reader) — or none YET (a session that has written nothing so far):
386
+ // that one is only nothing earlier, asked again next time.
387
+ if (!body.supported) return { kind: body.reason === "unsupported" || body.reason === "unavailable" ? "unsupported" : "empty" };
388
+ key = body.key; before = body.before;
389
+ let steps = beforeScreen(body.steps || [], screen);
390
+ let end = body.end;
391
+ // Everything in the newest page is on the screen: the page before it is the history.
392
+ if (!steps.length && before !== null) {
393
+ let older;
394
+ try { older = await read(`&before=${before}&key=${encodeURIComponent(key)}`); } catch { older = { failed: true, status: 0 }; }
395
+ if (!older.failed && older.supported && !older.reset) { steps = older.steps || []; before = older.before; end = older.end; }
396
+ }
397
+ if (!alive()) return { kind: "failed", status: 0 };
398
+ if (!steps.length) return { kind: "empty" };
399
+ pages.replaceChildren(block(steps, end));
400
+ shown = steps.length;
401
+ return { kind: "ok" };
402
+ },
403
+ /** The page before what is shown, drawn above it. "ok" | "none" | "capped" | "failed". */
404
+ async older() {
405
+ if (busy) return { kind: "none" };
406
+ if (before === null) return { kind: "none" };
407
+ if (shown >= HISTORY_STEP_CAP) {
408
+ if (!capNote.isConnected) { capNote.textContent = w("capped", HISTORY_STEP_CAP); root.prepend(capNote); }
409
+ return { kind: "capped" };
410
+ }
411
+ busy = true;
412
+ try {
413
+ const body = await read(`&before=${before}&key=${encodeURIComponent(key || "")}`);
414
+ if (!alive()) return { kind: "failed" };
415
+ if (body.failed || body.unsupported || !body.supported) return { kind: "failed" };
416
+ // Another transcript now (a new session): what is shown stays; nothing older of it.
417
+ if (body.reset) { before = null; return { kind: "none" }; }
418
+ before = body.before;
419
+ const steps = body.steps || [];
420
+ if (steps.length) { pages.prepend(block(steps, body.end)); shown += steps.length; }
421
+ return { kind: "ok" };
422
+ } catch { return { kind: "failed" }; }
423
+ finally { busy = false; }
424
+ },
425
+ };
426
+ }
427
+
428
+ /** This module's own stylesheet, linked once (a tab opened before an upgrade has an app.css without these rules). */
429
+ function ensureStylesheet(doc) {
430
+ try {
431
+ if (!doc.head || doc.querySelector('link[data-vh="1"]')) return;
432
+ const link = doc.createElement("link");
433
+ link.setAttribute("rel", "stylesheet");
434
+ link.setAttribute("href", "/assets/view-history.css");
435
+ link.setAttribute("data-vh", "1");
436
+ doc.head.appendChild(link);
437
+ } catch { /* the history still reads without it */ }
438
+ }
@@ -157,6 +157,14 @@ register("view", {
157
157
  "usage.stale.transient": "not updated · cached at {0}",
158
158
  "usage.stale.error": "couldn't read · cached at {0}",
159
159
  "usage.metric.reset_since": "reset since {0}",
160
+ "usage.capacity.line": "100% ≈ {0} ({1}–{2}) · ≈ {3} tokens · from {4} weeks",
161
+ "usage.capacity.line_tokens": "100% ≈ {0} tokens ({1}–{2}) · from {3} weeks",
162
+ "usage.capacity.not_enough": "Not enough usage yet to measure 100% (Δ {0}% of 10%)",
163
+ "usage.capacity.only_agend": "Counts only this fleet's agents; use of the same account elsewhere makes this low.",
164
+ "usage.capacity.mixed": "Bases disagree — possibly used outside this fleet",
165
+ "usage.capacity.best_fit_api": "API-equivalent fits best: ±{0}% across {1} weeks",
166
+ "usage.capacity.best_fit_output": "Output tokens fit best: ±{0}% across {1} weeks",
167
+ "usage.capacity.best_fit_all": "All tokens fit best: ±{0}% across {1} weeks",
160
168
  "usage.error.http": "Usage request failed (HTTP {0}).",
161
169
  "usage.error.billing_http": "Billing request failed (HTTP {0}).",
162
170
  "usage.error.invalid_response": "Invalid response from usage endpoint.",
@@ -421,6 +429,14 @@ register("view", {
421
429
  "usage.stale.transient": "暫時無法更新 · 快取於 {0}",
422
430
  "usage.stale.error": "讀取失敗 · 快取於 {0}",
423
431
  "usage.metric.reset_since": "已於 {0} 重置",
432
+ "usage.capacity.line": "100% ≈ {0}({1}–{2})· 約 {3} token · 依 {4} 週",
433
+ "usage.capacity.line_tokens": "100% ≈ {0} token({1}–{2})· 依 {3} 週",
434
+ "usage.capacity.not_enough": "用量還不夠估算 100%(已用 Δ {0}%,需 10%)",
435
+ "usage.capacity.only_agend": "只計算這個 fleet 的 agent;同一帳號在別處的使用會讓這個值偏低。",
436
+ "usage.capacity.mixed": "各換算方式不一致——可能有 fleet 以外的使用",
437
+ "usage.capacity.best_fit_api": "「API 等值」最吻合:{1} 週內 ±{0}%",
438
+ "usage.capacity.best_fit_output": "「輸出 token」最吻合:{1} 週內 ±{0}%",
439
+ "usage.capacity.best_fit_all": "「全部 token」最吻合:{1} 週內 ±{0}%",
424
440
  "usage.error.http": "用量請求失敗(HTTP {0})。",
425
441
  "usage.error.billing_http": "計費請求失敗(HTTP {0})。",
426
442
  "usage.error.invalid_response": "用量端點回傳了無效資料。",
@@ -0,0 +1,20 @@
1
+ /* #3153 P1: an agent's Files & changes in the side panel (read-only). Linked by workspace-panel.js when the panel first
2
+ opens, so a tab opened before an upgrade (an app.css without these rules) draws it the same. */
3
+ .ws-body { overflow: auto; }
4
+ .ws-text code { white-space: pre; }
5
+ .ws-readonly { margin: 0 var(--s-3) var(--s-2); }
6
+ .ws-summary { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 var(--s-2); }
7
+ .ws-change-list, .ws-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
8
+ .ws-change-head, .ws-entry-btn { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 32px; padding: 4px var(--s-2); border: 0; border-radius: var(--r-sm);
9
+ background: none; color: var(--text); text-align: left; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
10
+ .ws-change-head:hover:not(:disabled), .ws-entry-btn:hover:not(:disabled) { background: var(--surface-2); }
11
+ .ws-change-head:disabled, .ws-entry-btn:disabled { cursor: default; color: var(--text-2); }
12
+ .ws-st { flex: none; width: 1.6em; text-align: center; font-family: var(--font-mono); font-weight: var(--fw-semibold); border-radius: var(--r-sm); background: var(--surface-2); }
13
+ .ws-st.st-untracked, .ws-st.st-added { color: var(--ok); } .ws-st.st-deleted { color: var(--danger); } .ws-st.st-modified { color: var(--warn); }
14
+ .ws-path, .ws-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-xs); }
15
+ .ws-count, .ws-why, .ws-meta { flex: none; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
16
+ .ws-diff { margin: var(--s-1) 0 var(--s-2); max-height: none; }
17
+ .ws-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: var(--s-2); }
18
+ .ws-viewer-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
19
+ .ws-text .ws-ln { color: var(--text-3); user-select: none; padding-right: var(--s-3); }
20
+ .ws-image { max-width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
@@ -33,6 +33,16 @@
33
33
  button.secondary { margin-top: 10px; color: var(--text); background: transparent; border: 1px solid var(--border-strong); }
34
34
  #msg { min-height: 1.5em; margin-top: 14px; font-size: var(--fs-sm); color: var(--danger); }
35
35
  #msg.ok { color: var(--text-2); }
36
+ /* #3061: signing in with another device — the code on screen, big enough to read across a desk. */
37
+ .devcode { margin: 4px 0 8px; padding: 14px 8px; font: 600 30px/1 var(--font-mono); letter-spacing: .12em; text-align: center; user-select: all;
38
+ background: var(--bg); color: var(--text); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); }
39
+ .devcode.spent { color: var(--text-3); text-decoration: line-through; }
40
+ #devStatus { min-height: 1.5em; margin: 0 0 4px; font-size: var(--fs-sm); color: var(--text-2); text-align: center; }
41
+ #devStatus.bad { color: var(--danger); }
42
+ /* #3061 (P2b): the approve link as a QR code — on white, with the encoder's own quiet zone, so any camera reads it in either theme. */
43
+ .devqr { margin: 4px 0 8px; text-align: center; }
44
+ .devqr svg { width: 168px; height: 168px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); }
45
+ .devqr p { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--text-3); }
36
46
  .hint { margin-top: 18px; font-size: var(--fs-xs); color: var(--text-3); }
37
47
  .hint code, .help code { white-space: nowrap; font-family: var(--font-mono); }
38
48
  /* #1854: the operator's way in (no chat bot) — closed until asked for. */
@@ -54,11 +64,22 @@
54
64
  autocorrect="off" spellcheck="false" maxlength="12" placeholder="XXXX-XXXX" required>
55
65
  <button id="go" type="submit" data-i18n="submit">Sign in</button>
56
66
  <button id="resend" type="button" class="secondary" hidden data-i18n="resend">Send me a new code</button>
67
+ <button id="another" type="button" class="secondary" hidden data-i18n="another">Sign in with another device</button>
57
68
  <div id="msg" role="alert" aria-live="polite"></div>
58
69
  <div class="hint" data-i18n="hint">No code? Send /web in General, then press a sign-in button to get one.</div>
59
70
  <details class="help"><summary data-i18n="nobot">No chat bot?</summary><p data-i18n="nobot_body">Ask the operator to run <code>agend web --code</code> on the AgEnD computer.</p></details>
60
71
  <details class="help"><summary data-i18n="safe">Page looks wrong after signing in?</summary><p data-i18n="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 → Web appearance.</p></details>
61
72
  </form>
73
+ <!-- #3061: a web-only fleet's own listener: show a code, and a device that is already signed in as the owner approves it. -->
74
+ <div id="device" hidden>
75
+ <h1 data-i18n="dev_title">Sign in with another device</h1>
76
+ <p data-i18n="dev_lead">On a device that is already signed in to AgEnD as the owner, open Settings → Access &amp; security, choose Add device under Devices &amp; sign-in, and enter this code.</p>
77
+ <div id="devCode" class="devcode" aria-live="polite" aria-label="Code">XXXX-XXXX</div>
78
+ <div id="devStatus" role="status" aria-live="polite"></div>
79
+ <div id="devQr" class="devqr" hidden><svg id="devQrSvg" viewBox="0 0 1 1" role="img" aria-label="QR code" focusable="false"></svg><p data-i18n="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.</p></div>
80
+ <button id="devNew" type="button" hidden data-i18n="dev_new">Get a new code</button>
81
+ <button id="devBack" type="button" class="secondary" data-i18n="dev_back">Back</button>
82
+ </div>
62
83
  <noscript>This page needs JavaScript to sign you in.</noscript>
63
84
  </main>
64
85
  <script src="/assets/signin.js"></script>