@songsid/agend 2.3.4 → 2.3.5-alpha.11

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 (1538) hide show
  1. package/README.md +2 -0
  2. package/README.zh-TW.md +2 -0
  3. package/THIRD_PARTY_NOTICES.md +67 -0
  4. package/dist/accounts-profiles.d.ts +102 -0
  5. package/dist/accounts-profiles.js +194 -0
  6. package/dist/accounts-profiles.js.map +1 -0
  7. package/dist/accounts-signout.d.ts +59 -0
  8. package/dist/accounts-signout.js +181 -0
  9. package/dist/accounts-signout.js.map +1 -0
  10. package/dist/accounts-view.d.ts +182 -0
  11. package/dist/accounts-view.js +204 -0
  12. package/dist/accounts-view.js.map +1 -0
  13. package/dist/agent-cli-instructions.md +3 -3
  14. package/dist/agent-cli.js +5 -2
  15. package/dist/agent-cli.js.map +1 -1
  16. package/dist/agent-endpoint.d.ts +5 -1
  17. package/dist/agent-endpoint.js +12 -2
  18. package/dist/agent-endpoint.js.map +1 -1
  19. package/dist/agent-file-read.js +1 -1
  20. package/dist/agent-file-read.js.map +1 -1
  21. package/dist/agent-runtime-api.d.ts +4 -0
  22. package/dist/agent-runtime-api.js +59 -0
  23. package/dist/agent-runtime-api.js.map +1 -0
  24. package/dist/agent-runtime-change.d.ts +76 -0
  25. package/dist/agent-runtime-change.js +114 -0
  26. package/dist/agent-runtime-change.js.map +1 -0
  27. package/dist/agent-whats-new.js +5 -0
  28. package/dist/agent-whats-new.js.map +1 -1
  29. package/dist/agent-workspace.d.ts +104 -0
  30. package/dist/agent-workspace.js +381 -0
  31. package/dist/agent-workspace.js.map +1 -0
  32. package/dist/apply-job.d.ts +5 -0
  33. package/dist/apply-job.js +10 -3
  34. package/dist/apply-job.js.map +1 -1
  35. package/dist/auth-api.d.ts +81 -1
  36. package/dist/auth-api.js +365 -14
  37. package/dist/auth-api.js.map +1 -1
  38. package/dist/authority/company-join.d.ts +16 -0
  39. package/dist/authority/company-join.js +37 -0
  40. package/dist/authority/company-join.js.map +1 -0
  41. package/dist/authority/hub-initialization.d.ts +13 -0
  42. package/dist/authority/hub-initialization.js +30 -0
  43. package/dist/authority/hub-initialization.js.map +1 -0
  44. package/dist/authority/session-authorizations.d.ts +2 -0
  45. package/dist/authority/session-authorizations.js +7 -1
  46. package/dist/authority/session-authorizations.js.map +1 -1
  47. package/dist/authority/settings-role.d.ts +56 -0
  48. package/dist/authority/settings-role.js +48 -0
  49. package/dist/authority/settings-role.js.map +1 -0
  50. package/dist/authority/web-authority.d.ts +25 -2
  51. package/dist/authority/web-authority.js +37 -4
  52. package/dist/authority/web-authority.js.map +1 -1
  53. package/dist/backend/claude-code.d.ts +18 -12
  54. package/dist/backend/claude-code.js +228 -145
  55. package/dist/backend/claude-code.js.map +1 -1
  56. package/dist/backend/cli-env-probe.js +6 -2
  57. package/dist/backend/cli-env-probe.js.map +1 -1
  58. package/dist/backend/codex-footer-hints.d.ts +3 -0
  59. package/dist/backend/codex-footer-hints.js +14 -0
  60. package/dist/backend/codex-footer-hints.js.map +1 -1
  61. package/dist/backend/codex-package.d.ts +5 -2
  62. package/dist/backend/codex-package.js +1 -5
  63. package/dist/backend/codex-package.js.map +1 -1
  64. package/dist/backend/codex-quota-history.d.ts +7 -0
  65. package/dist/backend/codex-quota-history.js +57 -0
  66. package/dist/backend/codex-quota-history.js.map +1 -0
  67. package/dist/backend/codex-session-lookup.d.ts +6 -0
  68. package/dist/backend/codex-session-lookup.js +1 -1
  69. package/dist/backend/codex-session-lookup.js.map +1 -1
  70. package/dist/backend/codex.d.ts +148 -116
  71. package/dist/backend/codex.js +1355 -1225
  72. package/dist/backend/codex.js.map +1 -1
  73. package/dist/backend/credential-profile.d.ts +2 -0
  74. package/dist/backend/credential-profile.js +4 -1
  75. package/dist/backend/credential-profile.js.map +1 -1
  76. package/dist/backend/grok-model-cache.d.ts +7 -0
  77. package/dist/backend/grok-model-cache.js +65 -0
  78. package/dist/backend/grok-model-cache.js.map +1 -0
  79. package/dist/backend/grok-weekly-reset.d.ts +24 -0
  80. package/dist/backend/grok-weekly-reset.js +95 -0
  81. package/dist/backend/grok-weekly-reset.js.map +1 -0
  82. package/dist/backend/grok.d.ts +32 -1
  83. package/dist/backend/grok.js +323 -54
  84. package/dist/backend/grok.js.map +1 -1
  85. package/dist/backend/kiro.js +1 -1
  86. package/dist/backend/kiro.js.map +1 -1
  87. package/dist/backend/native-pane.d.ts +11 -0
  88. package/dist/backend/native-pane.js +59 -0
  89. package/dist/backend/native-pane.js.map +1 -0
  90. package/dist/backend/types.d.ts +25 -1
  91. package/dist/backend/types.js.map +1 -1
  92. package/dist/backend-availability.d.ts +15 -0
  93. package/dist/backend-availability.js +37 -1
  94. package/dist/backend-availability.js.map +1 -1
  95. package/dist/backend-signin-pending.d.ts +8 -2
  96. package/dist/backend-signin-pending.js +6 -2
  97. package/dist/backend-signin-pending.js.map +1 -1
  98. package/dist/browser-backend-signins.d.ts +2 -1
  99. package/dist/browser-backend-signins.js +1 -1
  100. package/dist/browser-backend-signins.js.map +1 -1
  101. package/dist/build-provenance-cli.d.ts +3 -0
  102. package/dist/build-provenance-cli.js +11 -0
  103. package/dist/build-provenance-cli.js.map +1 -0
  104. package/dist/build-provenance.d.ts +20 -0
  105. package/dist/build-provenance.js +67 -0
  106. package/dist/build-provenance.js.map +1 -0
  107. package/dist/build-provenance.json +1 -0
  108. package/dist/bundled-tmux-guard.d.ts +23 -0
  109. package/dist/bundled-tmux-guard.js +90 -0
  110. package/dist/bundled-tmux-guard.js.map +1 -0
  111. package/dist/cache-service.d.ts +6 -0
  112. package/dist/cache-service.js +105 -0
  113. package/dist/cache-service.js.map +1 -1
  114. package/dist/channel/access-manager.d.ts +1 -6
  115. package/dist/channel/access-manager.js +4 -94
  116. package/dist/channel/access-manager.js.map +1 -1
  117. package/dist/channel/adapters/discord.d.ts +0 -2
  118. package/dist/channel/adapters/discord.js +0 -8
  119. package/dist/channel/adapters/discord.js.map +1 -1
  120. package/dist/channel/adapters/telegram.d.ts +0 -3
  121. package/dist/channel/adapters/telegram.js +1 -30
  122. package/dist/channel/adapters/telegram.js.map +1 -1
  123. package/dist/channel/ipc-bridge.d.ts +2 -0
  124. package/dist/channel/mcp-tools.js +7 -7
  125. package/dist/channel/mcp-tools.js.map +1 -1
  126. package/dist/channel/types.d.ts +0 -2
  127. package/dist/classic-bindings.d.ts +13 -0
  128. package/dist/classic-bindings.js +28 -2
  129. package/dist/classic-bindings.js.map +1 -1
  130. package/dist/classic-channel-manager.d.ts +2 -0
  131. package/dist/classic-channel-manager.js +5 -1
  132. package/dist/classic-channel-manager.js.map +1 -1
  133. package/dist/claude-auth-status.d.ts +60 -0
  134. package/dist/claude-auth-status.js +165 -0
  135. package/dist/claude-auth-status.js.map +1 -0
  136. package/dist/claude-model-minimum.d.ts +7 -0
  137. package/dist/claude-model-minimum.js +16 -0
  138. package/dist/claude-model-minimum.js.map +1 -0
  139. package/dist/cli-audited.d.ts +60 -0
  140. package/dist/cli-audited.js +84 -0
  141. package/dist/cli-audited.js.map +1 -0
  142. package/dist/cli-capability.d.ts +217 -0
  143. package/dist/cli-capability.js +55 -0
  144. package/dist/cli-capability.js.map +1 -0
  145. package/dist/cli-caps-module.d.ts +33 -0
  146. package/dist/cli-caps-module.js +45 -0
  147. package/dist/cli-caps-module.js.map +1 -0
  148. package/dist/cli-registry-check.d.ts +28 -0
  149. package/dist/cli-registry-check.js +237 -0
  150. package/dist/cli-registry-check.js.map +1 -0
  151. package/dist/cli-registry.d.ts +578 -0
  152. package/dist/cli-registry.js +83 -0
  153. package/dist/cli-registry.js.map +1 -0
  154. package/dist/cli-spec-antigravity.d.ts +71 -0
  155. package/dist/cli-spec-antigravity.js +47 -0
  156. package/dist/cli-spec-antigravity.js.map +1 -0
  157. package/dist/cli-spec-claude-code.d.ts +93 -0
  158. package/dist/cli-spec-claude-code.js +37 -0
  159. package/dist/cli-spec-claude-code.js.map +1 -0
  160. package/dist/cli-spec-codex.d.ts +87 -0
  161. package/dist/cli-spec-codex.js +40 -0
  162. package/dist/cli-spec-codex.js.map +1 -0
  163. package/dist/cli-spec-grok.d.ts +64 -0
  164. package/dist/cli-spec-grok.js +40 -0
  165. package/dist/cli-spec-grok.js.map +1 -0
  166. package/dist/cli-spec-kiro-cli.d.ts +79 -0
  167. package/dist/cli-spec-kiro-cli.js +40 -0
  168. package/dist/cli-spec-kiro-cli.js.map +1 -0
  169. package/dist/cli-spec-muse.d.ts +54 -0
  170. package/dist/cli-spec-muse.js +40 -0
  171. package/dist/cli-spec-muse.js.map +1 -0
  172. package/dist/cli-spec-opencode.d.ts +60 -0
  173. package/dist/cli-spec-opencode.js +42 -0
  174. package/dist/cli-spec-opencode.js.map +1 -0
  175. package/dist/cli.js +286 -68
  176. package/dist/cli.js.map +1 -1
  177. package/dist/config-validator.js +99 -2
  178. package/dist/config-validator.js.map +1 -1
  179. package/dist/config.js +19 -1
  180. package/dist/config.js.map +1 -1
  181. package/dist/daemon.d.ts +165 -7
  182. package/dist/daemon.js +1307 -307
  183. package/dist/daemon.js.map +1 -1
  184. package/dist/dashboard-permissions.d.ts +8 -0
  185. package/dist/dashboard-permissions.js +16 -0
  186. package/dist/dashboard-permissions.js.map +1 -1
  187. package/dist/decision-list.d.ts +2 -0
  188. package/dist/decision-list.js +1 -1
  189. package/dist/decision-list.js.map +1 -1
  190. package/dist/delivery-consumed-watch.d.ts +15 -3
  191. package/dist/delivery-consumed-watch.js +23 -1
  192. package/dist/delivery-consumed-watch.js.map +1 -1
  193. package/dist/delivery-outbox.d.ts +5 -0
  194. package/dist/delivery-outbox.js +32 -4
  195. package/dist/delivery-outbox.js.map +1 -1
  196. package/dist/delivery-reconciliation.d.ts +2 -42
  197. package/dist/delivery-reconciliation.js +2 -164
  198. package/dist/delivery-reconciliation.js.map +1 -1
  199. package/dist/doctor.js +19 -9
  200. package/dist/doctor.js.map +1 -1
  201. package/dist/e2e-isolation.js +5 -2
  202. package/dist/e2e-isolation.js.map +1 -1
  203. package/dist/fleet-context.d.ts +7 -3
  204. package/dist/fleet-control-audit.d.ts +1 -1
  205. package/dist/fleet-level-config.d.ts +1 -1
  206. package/dist/fleet-level-config.js +2 -0
  207. package/dist/fleet-level-config.js.map +1 -1
  208. package/dist/fleet-manager.d.ts +1108 -27
  209. package/dist/fleet-manager.js +5735 -462
  210. package/dist/fleet-manager.js.map +1 -1
  211. package/dist/fleet-process-handlers.d.ts +1 -1
  212. package/dist/fleet-process-handlers.js +3 -2
  213. package/dist/fleet-process-handlers.js.map +1 -1
  214. package/dist/fleet-windows-runtime.d.ts +98 -0
  215. package/dist/fleet-windows-runtime.js +467 -0
  216. package/dist/fleet-windows-runtime.js.map +1 -0
  217. package/dist/general-binding.d.ts +85 -0
  218. package/dist/general-binding.js +298 -0
  219. package/dist/general-binding.js.map +1 -0
  220. package/dist/general-host-owner.d.ts +8 -0
  221. package/dist/general-host-owner.js +26 -0
  222. package/dist/general-host-owner.js.map +1 -0
  223. package/dist/general-instance.d.ts +7 -0
  224. package/dist/general-instance.js +20 -3
  225. package/dist/general-instance.js.map +1 -1
  226. package/dist/general-knowledge/skills/concepts/SKILL.md +101 -39
  227. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +23 -9
  228. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
  229. package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
  230. package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
  231. package/dist/general-knowledge/skills/fleet-health/SKILL.md +3 -3
  232. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
  233. package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
  234. package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
  235. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +51 -33
  236. package/dist/general-knowledge/steering/core-rules.md +7 -5
  237. package/dist/general-role.d.ts +5 -0
  238. package/dist/general-role.js +27 -0
  239. package/dist/general-role.js.map +1 -0
  240. package/dist/hub/admission.d.ts +28 -0
  241. package/dist/hub/admission.js +62 -0
  242. package/dist/hub/admission.js.map +1 -0
  243. package/dist/hub/attachments/limits.d.ts +20 -0
  244. package/dist/hub/attachments/limits.js +48 -0
  245. package/dist/hub/attachments/limits.js.map +1 -0
  246. package/dist/hub/attachments/store.d.ts +116 -0
  247. package/dist/hub/attachments/store.js +246 -0
  248. package/dist/hub/attachments/store.js.map +1 -0
  249. package/dist/hub/audit/index.d.ts +62 -0
  250. package/dist/hub/audit/index.js +344 -0
  251. package/dist/hub/audit/index.js.map +1 -0
  252. package/dist/hub/browser-certificate.d.ts +38 -0
  253. package/dist/hub/browser-certificate.js +247 -0
  254. package/dist/hub/browser-certificate.js.map +1 -0
  255. package/dist/hub/buttons-model.d.ts +9 -0
  256. package/dist/hub/buttons-model.js +42 -0
  257. package/dist/hub/buttons-model.js.map +1 -0
  258. package/dist/hub/buttons.d.ts +54 -0
  259. package/dist/hub/buttons.js +348 -0
  260. package/dist/hub/buttons.js.map +1 -0
  261. package/dist/hub/catalog.d.ts +74 -0
  262. package/dist/hub/catalog.js +380 -0
  263. package/dist/hub/catalog.js.map +1 -0
  264. package/dist/hub/client.d.ts +69 -0
  265. package/dist/hub/client.js +304 -0
  266. package/dist/hub/client.js.map +1 -0
  267. package/dist/hub/compose/member.d.ts +145 -0
  268. package/dist/hub/compose/member.js +458 -0
  269. package/dist/hub/compose/member.js.map +1 -0
  270. package/dist/hub/compose/server.d.ts +167 -0
  271. package/dist/hub/compose/server.js +477 -0
  272. package/dist/hub/compose/server.js.map +1 -0
  273. package/dist/hub/compose/storage.d.ts +5 -0
  274. package/dist/hub/compose/storage.js +28 -0
  275. package/dist/hub/compose/storage.js.map +1 -0
  276. package/dist/hub/compose/views.d.ts +12 -0
  277. package/dist/hub/compose/views.js +4 -0
  278. package/dist/hub/compose/views.js.map +1 -0
  279. package/dist/hub/db.d.ts +58 -0
  280. package/dist/hub/db.js +215 -0
  281. package/dist/hub/db.js.map +1 -0
  282. package/dist/hub/directory/config.d.ts +39 -0
  283. package/dist/hub/directory/config.js +108 -0
  284. package/dist/hub/directory/config.js.map +1 -0
  285. package/dist/hub/directory/directory.d.ts +25 -0
  286. package/dist/hub/directory/directory.js +526 -0
  287. package/dist/hub/directory/directory.js.map +1 -0
  288. package/dist/hub/directory/groups.d.ts +41 -0
  289. package/dist/hub/directory/groups.js +30 -0
  290. package/dist/hub/directory/groups.js.map +1 -0
  291. package/dist/hub/directory/index.d.ts +8 -0
  292. package/dist/hub/directory/index.js +4 -0
  293. package/dist/hub/directory/index.js.map +1 -0
  294. package/dist/hub/directory/profiles.d.ts +41 -0
  295. package/dist/hub/directory/profiles.js +90 -0
  296. package/dist/hub/directory/profiles.js.map +1 -0
  297. package/dist/hub/directory/types.d.ts +83 -0
  298. package/dist/hub/directory/types.js +14 -0
  299. package/dist/hub/directory/types.js.map +1 -0
  300. package/dist/hub/directory-response-owner.d.ts +38 -0
  301. package/dist/hub/directory-response-owner.js +191 -0
  302. package/dist/hub/directory-response-owner.js.map +1 -0
  303. package/dist/hub/enrollment-budget.d.ts +6 -0
  304. package/dist/hub/enrollment-budget.js +24 -0
  305. package/dist/hub/enrollment-budget.js.map +1 -0
  306. package/dist/hub/execution/cli-provider.d.ts +23 -0
  307. package/dist/hub/execution/cli-provider.js +341 -0
  308. package/dist/hub/execution/cli-provider.js.map +1 -0
  309. package/dist/hub/execution/index.d.ts +13 -0
  310. package/dist/hub/execution/index.js +8 -0
  311. package/dist/hub/execution/index.js.map +1 -0
  312. package/dist/hub/execution/model-broker.d.ts +24 -0
  313. package/dist/hub/execution/model-broker.js +208 -0
  314. package/dist/hub/execution/model-broker.js.map +1 -0
  315. package/dist/hub/execution/provider-setup.d.ts +11 -0
  316. package/dist/hub/execution/provider-setup.js +21 -0
  317. package/dist/hub/execution/provider-setup.js.map +1 -0
  318. package/dist/hub/execution/sandbox-runner.d.ts +1 -0
  319. package/dist/hub/execution/sandbox-runner.js +221 -0
  320. package/dist/hub/execution/sandbox-runner.js.map +1 -0
  321. package/dist/hub/execution/service.d.ts +136 -0
  322. package/dist/hub/execution/service.js +459 -0
  323. package/dist/hub/execution/service.js.map +1 -0
  324. package/dist/hub/execution/store.d.ts +61 -0
  325. package/dist/hub/execution/store.js +182 -0
  326. package/dist/hub/execution/store.js.map +1 -0
  327. package/dist/hub/execution/views.d.ts +20 -0
  328. package/dist/hub/execution/views.js +48 -0
  329. package/dist/hub/execution/views.js.map +1 -0
  330. package/dist/hub/group-policy/admin-api.d.ts +30 -0
  331. package/dist/hub/group-policy/admin-api.js +83 -0
  332. package/dist/hub/group-policy/admin-api.js.map +1 -0
  333. package/dist/hub/group-policy/admin-context.d.ts +23 -0
  334. package/dist/hub/group-policy/admin-context.js +52 -0
  335. package/dist/hub/group-policy/admin-context.js.map +1 -0
  336. package/dist/hub/group-policy/admin-control.d.ts +34 -0
  337. package/dist/hub/group-policy/admin-control.js +258 -0
  338. package/dist/hub/group-policy/admin-control.js.map +1 -0
  339. package/dist/hub/group-policy/admin-dto.d.ts +249 -0
  340. package/dist/hub/group-policy/admin-dto.js +55 -0
  341. package/dist/hub/group-policy/admin-dto.js.map +1 -0
  342. package/dist/hub/group-policy/admin-facts.d.ts +17 -0
  343. package/dist/hub/group-policy/admin-facts.js +33 -0
  344. package/dist/hub/group-policy/admin-facts.js.map +1 -0
  345. package/dist/hub/group-policy/admin-impact.d.ts +51 -0
  346. package/dist/hub/group-policy/admin-impact.js +88 -0
  347. package/dist/hub/group-policy/admin-impact.js.map +1 -0
  348. package/dist/hub/group-policy/admin-inventory.d.ts +24 -0
  349. package/dist/hub/group-policy/admin-inventory.js +72 -0
  350. package/dist/hub/group-policy/admin-inventory.js.map +1 -0
  351. package/dist/hub/group-policy/admin-read.d.ts +21 -0
  352. package/dist/hub/group-policy/admin-read.js +95 -0
  353. package/dist/hub/group-policy/admin-read.js.map +1 -0
  354. package/dist/hub/group-policy/authorization.d.ts +65 -0
  355. package/dist/hub/group-policy/authorization.js +315 -0
  356. package/dist/hub/group-policy/authorization.js.map +1 -0
  357. package/dist/hub/group-policy/impact-inventory.d.ts +21 -0
  358. package/dist/hub/group-policy/impact-inventory.js +75 -0
  359. package/dist/hub/group-policy/impact-inventory.js.map +1 -0
  360. package/dist/hub/group-policy/model.d.ts +56 -0
  361. package/dist/hub/group-policy/model.js +46 -0
  362. package/dist/hub/group-policy/model.js.map +1 -0
  363. package/dist/hub/group-policy/resources.d.ts +72 -0
  364. package/dist/hub/group-policy/resources.js +260 -0
  365. package/dist/hub/group-policy/resources.js.map +1 -0
  366. package/dist/hub/group-policy/store.d.ts +69 -0
  367. package/dist/hub/group-policy/store.js +210 -0
  368. package/dist/hub/group-policy/store.js.map +1 -0
  369. package/dist/hub/group-policy/welcome.d.ts +36 -0
  370. package/dist/hub/group-policy/welcome.js +55 -0
  371. package/dist/hub/group-policy/welcome.js.map +1 -0
  372. package/dist/hub/http/compose.d.ts +24 -0
  373. package/dist/hub/http/compose.js +739 -0
  374. package/dist/hub/http/compose.js.map +1 -0
  375. package/dist/hub/http/core.d.ts +71 -0
  376. package/dist/hub/http/core.js +266 -0
  377. package/dist/hub/http/core.js.map +1 -0
  378. package/dist/hub/http/deps.d.ts +79 -0
  379. package/dist/hub/http/deps.js +2 -0
  380. package/dist/hub/http/deps.js.map +1 -0
  381. package/dist/hub/http/schema.d.ts +14 -0
  382. package/dist/hub/http/schema.js +84 -0
  383. package/dist/hub/http/schema.js.map +1 -0
  384. package/dist/hub/identity.d.ts +32 -0
  385. package/dist/hub/identity.js +80 -0
  386. package/dist/hub/identity.js.map +1 -0
  387. package/dist/hub/init/browser-certificate.d.ts +14 -0
  388. package/dist/hub/init/browser-certificate.js +99 -0
  389. package/dist/hub/init/browser-certificate.js.map +1 -0
  390. package/dist/hub/init/browser-tls.d.ts +18 -0
  391. package/dist/hub/init/browser-tls.js +62 -0
  392. package/dist/hub/init/browser-tls.js.map +1 -0
  393. package/dist/hub/init/cli.d.ts +3 -0
  394. package/dist/hub/init/cli.js +83 -0
  395. package/dist/hub/init/cli.js.map +1 -0
  396. package/dist/hub/init/directory-certificate.d.ts +24 -0
  397. package/dist/hub/init/directory-certificate.js +229 -0
  398. package/dist/hub/init/directory-certificate.js.map +1 -0
  399. package/dist/hub/init/existing-fleet.d.ts +6 -0
  400. package/dist/hub/init/existing-fleet.js +58 -0
  401. package/dist/hub/init/existing-fleet.js.map +1 -0
  402. package/dist/hub/init/handoff.d.ts +8 -0
  403. package/dist/hub/init/handoff.js +36 -0
  404. package/dist/hub/init/handoff.js.map +1 -0
  405. package/dist/hub/init/identity.d.ts +5 -0
  406. package/dist/hub/init/identity.js +24 -0
  407. package/dist/hub/init/identity.js.map +1 -0
  408. package/dist/hub/init/initializer.d.ts +34 -0
  409. package/dist/hub/init/initializer.js +504 -0
  410. package/dist/hub/init/initializer.js.map +1 -0
  411. package/dist/hub/init/inventory.d.ts +17 -0
  412. package/dist/hub/init/inventory.js +33 -0
  413. package/dist/hub/init/inventory.js.map +1 -0
  414. package/dist/hub/init/layout.d.ts +32 -0
  415. package/dist/hub/init/layout.js +53 -0
  416. package/dist/hub/init/layout.js.map +1 -0
  417. package/dist/hub/init/network.d.ts +18 -0
  418. package/dist/hub/init/network.js +104 -0
  419. package/dist/hub/init/network.js.map +1 -0
  420. package/dist/hub/init/plan-digest.d.ts +5 -0
  421. package/dist/hub/init/plan-digest.js +47 -0
  422. package/dist/hub/init/plan-digest.js.map +1 -0
  423. package/dist/hub/init/prompt.d.ts +26 -0
  424. package/dist/hub/init/prompt.js +110 -0
  425. package/dist/hub/init/prompt.js.map +1 -0
  426. package/dist/hub/init/secret-file.d.ts +1 -0
  427. package/dist/hub/init/secret-file.js +59 -0
  428. package/dist/hub/init/secret-file.js.map +1 -0
  429. package/dist/hub/init/text.d.ts +127 -0
  430. package/dist/hub/init/text.js +247 -0
  431. package/dist/hub/init/text.js.map +1 -0
  432. package/dist/hub/init/types.d.ts +142 -0
  433. package/dist/hub/init/types.js +9 -0
  434. package/dist/hub/init/types.js.map +1 -0
  435. package/dist/hub/init/web-audit-import.d.ts +12 -0
  436. package/dist/hub/init/web-audit-import.js +39 -0
  437. package/dist/hub/init/web-audit-import.js.map +1 -0
  438. package/dist/hub/init/web-audit.d.ts +30 -0
  439. package/dist/hub/init/web-audit.js +42 -0
  440. package/dist/hub/init/web-audit.js.map +1 -0
  441. package/dist/hub/init/web-error.d.ts +6 -0
  442. package/dist/hub/init/web-error.js +8 -0
  443. package/dist/hub/init/web-error.js.map +1 -0
  444. package/dist/hub/init/web-http.d.ts +9 -0
  445. package/dist/hub/init/web-http.js +103 -0
  446. package/dist/hub/init/web-http.js.map +1 -0
  447. package/dist/hub/init/web.d.ts +118 -0
  448. package/dist/hub/init/web.js +428 -0
  449. package/dist/hub/init/web.js.map +1 -0
  450. package/dist/hub/init/wizard.d.ts +34 -0
  451. package/dist/hub/init/wizard.js +552 -0
  452. package/dist/hub/init/wizard.js.map +1 -0
  453. package/dist/hub/initialization.d.ts +23 -0
  454. package/dist/hub/initialization.js +28 -0
  455. package/dist/hub/initialization.js.map +1 -0
  456. package/dist/hub/join/client.d.ts +35 -0
  457. package/dist/hub/join/client.js +112 -0
  458. package/dist/hub/join/client.js.map +1 -0
  459. package/dist/hub/join/descriptor.d.ts +45 -0
  460. package/dist/hub/join/descriptor.js +52 -0
  461. package/dist/hub/join/descriptor.js.map +1 -0
  462. package/dist/hub/join/fleet-authority.d.ts +2 -0
  463. package/dist/hub/join/fleet-authority.js +3 -0
  464. package/dist/hub/join/fleet-authority.js.map +1 -0
  465. package/dist/hub/join/http.d.ts +8 -0
  466. package/dist/hub/join/http.js +112 -0
  467. package/dist/hub/join/http.js.map +1 -0
  468. package/dist/hub/join/invitation.d.ts +28 -0
  469. package/dist/hub/join/invitation.js +28 -0
  470. package/dist/hub/join/invitation.js.map +1 -0
  471. package/dist/hub/join/local-journal.d.ts +84 -0
  472. package/dist/hub/join/local-journal.js +65 -0
  473. package/dist/hub/join/local-journal.js.map +1 -0
  474. package/dist/hub/join/local.d.ts +116 -0
  475. package/dist/hub/join/local.js +419 -0
  476. package/dist/hub/join/local.js.map +1 -0
  477. package/dist/hub/join/private.d.ts +3 -0
  478. package/dist/hub/join/private.js +46 -0
  479. package/dist/hub/join/private.js.map +1 -0
  480. package/dist/hub/join/protocol.d.ts +69 -0
  481. package/dist/hub/join/protocol.js +96 -0
  482. package/dist/hub/join/protocol.js.map +1 -0
  483. package/dist/hub/join/receipt.d.ts +42 -0
  484. package/dist/hub/join/receipt.js +75 -0
  485. package/dist/hub/join/receipt.js.map +1 -0
  486. package/dist/hub/join/service.d.ts +177 -0
  487. package/dist/hub/join/service.js +564 -0
  488. package/dist/hub/join/service.js.map +1 -0
  489. package/dist/hub/join/store.d.ts +97 -0
  490. package/dist/hub/join/store.js +87 -0
  491. package/dist/hub/join/store.js.map +1 -0
  492. package/dist/hub/join/trust.d.ts +13 -0
  493. package/dist/hub/join/trust.js +68 -0
  494. package/dist/hub/join/trust.js.map +1 -0
  495. package/dist/hub/member/agent-mode.d.ts +6 -0
  496. package/dist/hub/member/agent-mode.js +23 -0
  497. package/dist/hub/member/agent-mode.js.map +1 -0
  498. package/dist/hub/member/attachments.d.ts +29 -0
  499. package/dist/hub/member/attachments.js +107 -0
  500. package/dist/hub/member/attachments.js.map +1 -0
  501. package/dist/hub/member/exposure-api.d.ts +87 -0
  502. package/dist/hub/member/exposure-api.js +64 -0
  503. package/dist/hub/member/exposure-api.js.map +1 -0
  504. package/dist/hub/member/exposures.d.ts +123 -0
  505. package/dist/hub/member/exposures.js +282 -0
  506. package/dist/hub/member/exposures.js.map +1 -0
  507. package/dist/hub/member/pairing-api.d.ts +87 -0
  508. package/dist/hub/member/pairing-api.js +391 -0
  509. package/dist/hub/member/pairing-api.js.map +1 -0
  510. package/dist/hub/member/pairing-notices.d.ts +18 -0
  511. package/dist/hub/member/pairing-notices.js +60 -0
  512. package/dist/hub/member/pairing-notices.js.map +1 -0
  513. package/dist/hub/member/quota.d.ts +20 -0
  514. package/dist/hub/member/quota.js +98 -0
  515. package/dist/hub/member/quota.js.map +1 -0
  516. package/dist/hub/member-journal.d.ts +104 -0
  517. package/dist/hub/member-journal.js +336 -0
  518. package/dist/hub/member-journal.js.map +1 -0
  519. package/dist/hub/member-reconciliation.d.ts +14 -0
  520. package/dist/hub/member-reconciliation.js +97 -0
  521. package/dist/hub/member-reconciliation.js.map +1 -0
  522. package/dist/hub/mount.d.ts +48 -0
  523. package/dist/hub/mount.js +146 -0
  524. package/dist/hub/mount.js.map +1 -0
  525. package/dist/hub/pairing-client.d.ts +17 -0
  526. package/dist/hub/pairing-client.js +108 -0
  527. package/dist/hub/pairing-client.js.map +1 -0
  528. package/dist/hub/pairing-notices.d.ts +47 -0
  529. package/dist/hub/pairing-notices.js +246 -0
  530. package/dist/hub/pairing-notices.js.map +1 -0
  531. package/dist/hub/pairing.d.ts +105 -0
  532. package/dist/hub/pairing.js +514 -0
  533. package/dist/hub/pairing.js.map +1 -0
  534. package/dist/hub/policy.d.ts +65 -0
  535. package/dist/hub/policy.js +154 -0
  536. package/dist/hub/policy.js.map +1 -0
  537. package/dist/hub/preview.d.ts +32 -0
  538. package/dist/hub/preview.js +64 -0
  539. package/dist/hub/preview.js.map +1 -0
  540. package/dist/hub/private-files.d.ts +5 -0
  541. package/dist/hub/private-files.js +44 -0
  542. package/dist/hub/private-files.js.map +1 -0
  543. package/dist/hub/profile.d.ts +59 -0
  544. package/dist/hub/profile.js +73 -0
  545. package/dist/hub/profile.js.map +1 -0
  546. package/dist/hub/protocol.d.ts +840 -0
  547. package/dist/hub/protocol.js +100 -0
  548. package/dist/hub/protocol.js.map +1 -0
  549. package/dist/hub/quota.d.ts +24 -0
  550. package/dist/hub/quota.js +112 -0
  551. package/dist/hub/quota.js.map +1 -0
  552. package/dist/hub/representative.d.ts +141 -0
  553. package/dist/hub/representative.js +528 -0
  554. package/dist/hub/representative.js.map +1 -0
  555. package/dist/hub/retention.d.ts +17 -0
  556. package/dist/hub/retention.js +45 -0
  557. package/dist/hub/retention.js.map +1 -0
  558. package/dist/hub/room-read-pacer.d.ts +14 -0
  559. package/dist/hub/room-read-pacer.js +51 -0
  560. package/dist/hub/room-read-pacer.js.map +1 -0
  561. package/dist/hub/rooms.d.ts +127 -0
  562. package/dist/hub/rooms.js +597 -0
  563. package/dist/hub/rooms.js.map +1 -0
  564. package/dist/hub/runtime.d.ts +155 -0
  565. package/dist/hub/runtime.js +651 -0
  566. package/dist/hub/runtime.js.map +1 -0
  567. package/dist/hub/server.d.ts +61 -0
  568. package/dist/hub/server.js +235 -0
  569. package/dist/hub/server.js.map +1 -0
  570. package/dist/hub/service-start.d.ts +17 -0
  571. package/dist/hub/service-start.js +109 -0
  572. package/dist/hub/service-start.js.map +1 -0
  573. package/dist/hub/session-directory-transition.d.ts +48 -0
  574. package/dist/hub/session-directory-transition.js +118 -0
  575. package/dist/hub/session-directory-transition.js.map +1 -0
  576. package/dist/hub/session-epoch.d.ts +16 -0
  577. package/dist/hub/session-epoch.js +50 -0
  578. package/dist/hub/session-epoch.js.map +1 -0
  579. package/dist/hub/sessions.d.ts +66 -0
  580. package/dist/hub/sessions.js +217 -0
  581. package/dist/hub/sessions.js.map +1 -0
  582. package/dist/hub/settings-api.d.ts +50 -0
  583. package/dist/hub/settings-api.js +92 -0
  584. package/dist/hub/settings-api.js.map +1 -0
  585. package/dist/hub/settings-commit.d.ts +102 -0
  586. package/dist/hub/settings-commit.js +522 -0
  587. package/dist/hub/settings-commit.js.map +1 -0
  588. package/dist/hub/settings-directory-ca.d.ts +31 -0
  589. package/dist/hub/settings-directory-ca.js +115 -0
  590. package/dist/hub/settings-directory-ca.js.map +1 -0
  591. package/dist/hub/settings-directory-control.d.ts +58 -0
  592. package/dist/hub/settings-directory-control.js +117 -0
  593. package/dist/hub/settings-directory-control.js.map +1 -0
  594. package/dist/hub/settings-directory-decision.d.ts +465 -0
  595. package/dist/hub/settings-directory-decision.js +322 -0
  596. package/dist/hub/settings-directory-decision.js.map +1 -0
  597. package/dist/hub/settings-directory-host-http.d.ts +9 -0
  598. package/dist/hub/settings-directory-host-http.js +75 -0
  599. package/dist/hub/settings-directory-host-http.js.map +1 -0
  600. package/dist/hub/settings-directory-host-notice-http.d.ts +9 -0
  601. package/dist/hub/settings-directory-host-notice-http.js +78 -0
  602. package/dist/hub/settings-directory-host-notice-http.js.map +1 -0
  603. package/dist/hub/settings-directory-host-notices.d.ts +11 -0
  604. package/dist/hub/settings-directory-host-notices.js +39 -0
  605. package/dist/hub/settings-directory-host-notices.js.map +1 -0
  606. package/dist/hub/settings-directory-http.d.ts +33 -0
  607. package/dist/hub/settings-directory-http.js +109 -0
  608. package/dist/hub/settings-directory-http.js.map +1 -0
  609. package/dist/hub/settings-directory-mount.d.ts +24 -0
  610. package/dist/hub/settings-directory-mount.js +77 -0
  611. package/dist/hub/settings-directory-mount.js.map +1 -0
  612. package/dist/hub/settings-directory-notices.d.ts +61 -0
  613. package/dist/hub/settings-directory-notices.js +132 -0
  614. package/dist/hub/settings-directory-notices.js.map +1 -0
  615. package/dist/hub/settings-directory-proof.d.ts +77 -0
  616. package/dist/hub/settings-directory-proof.js +313 -0
  617. package/dist/hub/settings-directory-proof.js.map +1 -0
  618. package/dist/hub/settings-directory-recovery-intent.d.ts +13 -0
  619. package/dist/hub/settings-directory-recovery-intent.js +29 -0
  620. package/dist/hub/settings-directory-recovery-intent.js.map +1 -0
  621. package/dist/hub/settings-directory-recovery.d.ts +37 -0
  622. package/dist/hub/settings-directory-recovery.js +173 -0
  623. package/dist/hub/settings-directory-recovery.js.map +1 -0
  624. package/dist/hub/settings-directory-runtime.d.ts +17 -0
  625. package/dist/hub/settings-directory-runtime.js +2 -0
  626. package/dist/hub/settings-directory-runtime.js.map +1 -0
  627. package/dist/hub/settings-directory-save.d.ts +37 -0
  628. package/dist/hub/settings-directory-save.js +175 -0
  629. package/dist/hub/settings-directory-save.js.map +1 -0
  630. package/dist/hub/socket.d.ts +24 -0
  631. package/dist/hub/socket.js +79 -0
  632. package/dist/hub/socket.js.map +1 -0
  633. package/dist/hub/store.d.ts +87 -0
  634. package/dist/hub/store.js +92 -0
  635. package/dist/hub/store.js.map +1 -0
  636. package/dist/hub/tls.d.ts +31 -0
  637. package/dist/hub/tls.js +135 -0
  638. package/dist/hub/tls.js.map +1 -0
  639. package/dist/hub/types.d.ts +416 -0
  640. package/dist/hub/types.js +2 -0
  641. package/dist/hub/types.js.map +1 -0
  642. package/dist/hub/validation.d.ts +33 -0
  643. package/dist/hub/validation.js +136 -0
  644. package/dist/hub/validation.js.map +1 -0
  645. package/dist/hub/version-floor.d.ts +10 -0
  646. package/dist/hub/version-floor.js +45 -0
  647. package/dist/hub/version-floor.js.map +1 -0
  648. package/dist/hub-browser-certificate-policy.d.ts +31 -0
  649. package/dist/hub-browser-certificate-policy.js +25 -0
  650. package/dist/hub-browser-certificate-policy.js.map +1 -0
  651. package/dist/hub-host-settings.d.ts +48 -0
  652. package/dist/hub-host-settings.js +85 -0
  653. package/dist/hub-host-settings.js.map +1 -0
  654. package/dist/hub-membership-settings.d.ts +6 -0
  655. package/dist/hub-membership-settings.js +21 -0
  656. package/dist/hub-membership-settings.js.map +1 -0
  657. package/dist/hub-mode.d.ts +15 -0
  658. package/dist/hub-mode.js +17 -0
  659. package/dist/hub-mode.js.map +1 -0
  660. package/dist/hub-pairing-summary.d.ts +48 -0
  661. package/dist/hub-pairing-summary.js +36 -0
  662. package/dist/hub-pairing-summary.js.map +1 -0
  663. package/dist/hub-report-target.d.ts +32 -0
  664. package/dist/hub-report-target.js +33 -0
  665. package/dist/hub-report-target.js.map +1 -0
  666. package/dist/hub-retention-policy.d.ts +14 -0
  667. package/dist/hub-retention-policy.js +15 -0
  668. package/dist/hub-retention-policy.js.map +1 -0
  669. package/dist/instance-config-impact.js +9 -3
  670. package/dist/instance-config-impact.js.map +1 -1
  671. package/dist/instance-lifecycle.d.ts +52 -5
  672. package/dist/instance-lifecycle.js +493 -200
  673. package/dist/instance-lifecycle.js.map +1 -1
  674. package/dist/instructions.d.ts +2 -0
  675. package/dist/instructions.js +35 -6
  676. package/dist/instructions.js.map +1 -1
  677. package/dist/kiro-history-scan.d.ts +26 -0
  678. package/dist/kiro-history-scan.js +141 -0
  679. package/dist/kiro-history-scan.js.map +1 -0
  680. package/dist/kiro-history-worker.d.ts +1 -0
  681. package/dist/kiro-history-worker.js +9 -0
  682. package/dist/kiro-history-worker.js.map +1 -0
  683. package/dist/kiro-history.d.ts +20 -0
  684. package/dist/kiro-history.js +96 -0
  685. package/dist/kiro-history.js.map +1 -0
  686. package/dist/kiro-usage-run.d.ts +2 -0
  687. package/dist/kiro-usage-run.js +4 -1
  688. package/dist/kiro-usage-run.js.map +1 -1
  689. package/dist/launchd-service-domain.d.ts +5 -0
  690. package/dist/launchd-service-domain.js +21 -0
  691. package/dist/launchd-service-domain.js.map +1 -0
  692. package/dist/local-pane-endpoint.d.ts +46 -0
  693. package/dist/local-pane-endpoint.js +189 -0
  694. package/dist/local-pane-endpoint.js.map +1 -0
  695. package/dist/local-pane-launcher.d.ts +2 -0
  696. package/dist/local-pane-launcher.js +38 -0
  697. package/dist/local-pane-launcher.js.map +1 -0
  698. package/dist/local-pane-stage.ps1 +101 -0
  699. package/dist/locale.js +345 -99
  700. package/dist/locale.js.map +1 -1
  701. package/dist/logger.d.ts +5 -3
  702. package/dist/logger.js +323 -85
  703. package/dist/logger.js.map +1 -1
  704. package/dist/login-controller.d.ts +14 -1
  705. package/dist/login-controller.js +31 -1
  706. package/dist/login-controller.js.map +1 -1
  707. package/dist/login-flows.d.ts +21 -8
  708. package/dist/login-flows.js +40 -18
  709. package/dist/login-flows.js.map +1 -1
  710. package/dist/login-manager.d.ts +2 -2
  711. package/dist/login-manager.js +28 -6
  712. package/dist/login-manager.js.map +1 -1
  713. package/dist/login-window-lock.d.ts +2 -1
  714. package/dist/login-window-lock.js.map +1 -1
  715. package/dist/ls-rows.d.ts +1 -1
  716. package/dist/ls-rows.js +3 -4
  717. package/dist/ls-rows.js.map +1 -1
  718. package/dist/machine-accounts.d.ts +110 -0
  719. package/dist/machine-accounts.js +229 -0
  720. package/dist/machine-accounts.js.map +1 -0
  721. package/dist/machine-signins.d.ts +89 -0
  722. package/dist/machine-signins.js +182 -0
  723. package/dist/machine-signins.js.map +1 -0
  724. package/dist/model-catalog-defaults.d.ts +14 -0
  725. package/dist/model-catalog-defaults.js +20 -0
  726. package/dist/model-catalog-defaults.js.map +1 -0
  727. package/dist/muse-usage-relay.d.ts +2 -0
  728. package/dist/muse-usage-relay.js +5 -3
  729. package/dist/muse-usage-relay.js.map +1 -1
  730. package/dist/native-agent-admission.d.ts +7 -0
  731. package/dist/native-agent-admission.js +26 -0
  732. package/dist/native-agent-admission.js.map +1 -0
  733. package/dist/native-daemon-client.d.ts +13 -0
  734. package/dist/native-daemon-client.js +28 -0
  735. package/dist/native-daemon-client.js.map +1 -0
  736. package/dist/native-instance-api.d.ts +13 -0
  737. package/dist/native-instance-api.js +217 -0
  738. package/dist/native-instance-api.js.map +1 -0
  739. package/dist/native-instance-input.d.ts +87 -0
  740. package/dist/native-instance-input.js +59 -0
  741. package/dist/native-instance-input.js.map +1 -0
  742. package/dist/native-instance-registry.d.ts +38 -0
  743. package/dist/native-instance-registry.js +129 -0
  744. package/dist/native-instance-registry.js.map +1 -0
  745. package/dist/native-mcp.d.ts +43 -0
  746. package/dist/native-mcp.js +291 -0
  747. package/dist/native-mcp.js.map +1 -0
  748. package/dist/native-model-catalog.d.ts +25 -0
  749. package/dist/native-model-catalog.js +181 -0
  750. package/dist/native-model-catalog.js.map +1 -0
  751. package/dist/native-pane-crash-budget.d.ts +20 -0
  752. package/dist/native-pane-crash-budget.js +60 -0
  753. package/dist/native-pane-crash-budget.js.map +1 -0
  754. package/dist/native-pane-create.d.ts +26 -0
  755. package/dist/native-pane-create.js +53 -0
  756. package/dist/native-pane-create.js.map +1 -0
  757. package/dist/native-pane-lifecycle.d.ts +73 -0
  758. package/dist/native-pane-lifecycle.js +239 -0
  759. package/dist/native-pane-lifecycle.js.map +1 -0
  760. package/dist/native-pane-manager.d.ts +59 -0
  761. package/dist/native-pane-manager.js +592 -0
  762. package/dist/native-pane-manager.js.map +1 -0
  763. package/dist/native-pane-output-log.d.ts +15 -0
  764. package/dist/native-pane-output-log.js +108 -0
  765. package/dist/native-pane-output-log.js.map +1 -0
  766. package/dist/native-pane-reconciliation.d.ts +4 -0
  767. package/dist/native-pane-reconciliation.js +40 -0
  768. package/dist/native-pane-reconciliation.js.map +1 -0
  769. package/dist/native-pane-recovery.d.ts +12 -0
  770. package/dist/native-pane-recovery.js +10 -0
  771. package/dist/native-pane-recovery.js.map +1 -0
  772. package/dist/native-pane-tools.d.ts +2 -0
  773. package/dist/native-pane-tools.js +14 -0
  774. package/dist/native-pane-tools.js.map +1 -0
  775. package/dist/needs-you-hub.d.ts +8 -0
  776. package/dist/needs-you-hub.js +29 -3
  777. package/dist/needs-you-hub.js.map +1 -1
  778. package/dist/needs-you.d.ts +78 -2
  779. package/dist/needs-you.js +45 -2
  780. package/dist/needs-you.js.map +1 -1
  781. package/dist/office-levels.d.ts +4 -3
  782. package/dist/office-levels.js +3 -3
  783. package/dist/office-levels.js.map +1 -1
  784. package/dist/office-share-page.js +3 -3
  785. package/dist/office-share-page.js.map +1 -1
  786. package/dist/office-share.d.ts +11 -0
  787. package/dist/office-share.js +14 -0
  788. package/dist/office-share.js.map +1 -1
  789. package/dist/office-talk.d.ts +26 -0
  790. package/dist/office-talk.js +50 -0
  791. package/dist/office-talk.js.map +1 -0
  792. package/dist/outbound-handlers.d.ts +30 -2
  793. package/dist/outbound-handlers.js +156 -18
  794. package/dist/outbound-handlers.js.map +1 -1
  795. package/dist/outbound-schemas.d.ts +94 -1
  796. package/dist/outbound-schemas.js +44 -16
  797. package/dist/outbound-schemas.js.map +1 -1
  798. package/dist/pane-port.d.ts +118 -0
  799. package/dist/pane-port.js +2 -0
  800. package/dist/pane-port.js.map +1 -0
  801. package/dist/pane-quota-history.d.ts +9 -0
  802. package/dist/pane-quota-history.js +67 -0
  803. package/dist/pane-quota-history.js.map +1 -0
  804. package/dist/pause-marker.d.ts +1 -1
  805. package/dist/pause-marker.js +1 -1
  806. package/dist/pause-marker.js.map +1 -1
  807. package/dist/platform-general.d.ts +46 -0
  808. package/dist/platform-general.js +91 -0
  809. package/dist/platform-general.js.map +1 -0
  810. package/dist/profile-signins.d.ts +107 -0
  811. package/dist/profile-signins.js +249 -0
  812. package/dist/profile-signins.js.map +1 -0
  813. package/dist/public-web-gateway.js +17 -1
  814. package/dist/public-web-gateway.js.map +1 -1
  815. package/dist/public-web-link.d.ts +11 -0
  816. package/dist/public-web-link.js +13 -0
  817. package/dist/public-web-link.js.map +1 -1
  818. package/dist/quickstart-api.js +11 -7
  819. package/dist/quickstart-api.js.map +1 -1
  820. package/dist/quickstart.d.ts +14 -0
  821. package/dist/quickstart.js +72 -4
  822. package/dist/quickstart.js.map +1 -1
  823. package/dist/quiet-run.d.ts +31 -0
  824. package/dist/quiet-run.js +50 -0
  825. package/dist/quiet-run.js.map +1 -0
  826. package/dist/quota-notice-config.d.ts +22 -0
  827. package/dist/quota-notice-config.js +41 -0
  828. package/dist/quota-notice-config.js.map +1 -0
  829. package/dist/quota-notice.d.ts +7 -0
  830. package/dist/quota-notice.js +40 -0
  831. package/dist/quota-notice.js.map +1 -1
  832. package/dist/reply-buttons-controller.d.ts +5 -1
  833. package/dist/reply-buttons-controller.js +18 -10
  834. package/dist/reply-buttons-controller.js.map +1 -1
  835. package/dist/reply-buttons.d.ts +6 -2
  836. package/dist/reply-buttons.js +7 -3
  837. package/dist/reply-buttons.js.map +1 -1
  838. package/dist/reply-polls.d.ts +2 -2
  839. package/dist/reply-polls.js +3 -3
  840. package/dist/reply-polls.js.map +1 -1
  841. package/dist/runtime-api.d.ts +23 -0
  842. package/dist/runtime-api.js +413 -0
  843. package/dist/runtime-api.js.map +1 -0
  844. package/dist/runtime-assets/@xterm/addon-serialize/LICENSE +21 -0
  845. package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.js +2 -0
  846. package/dist/runtime-assets/@xterm/addon-serialize/lib/addon-serialize.mjs +19 -0
  847. package/dist/runtime-assets/@xterm/addon-serialize/package.json +29 -0
  848. package/dist/runtime-assets/@xterm/headless/LICENSE +21 -0
  849. package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.js +2 -0
  850. package/dist/runtime-assets/@xterm/headless/lib-headless/xterm-headless.mjs +46 -0
  851. package/dist/runtime-assets/@xterm/headless/package.json +29 -0
  852. package/dist/runtime-assets/node-pty/CONPTY-LICENSE +21 -0
  853. package/dist/runtime-assets/node-pty/CONPTY-NOTICE.md +503 -0
  854. package/dist/runtime-assets/node-pty/LICENSE +69 -0
  855. package/dist/runtime-assets/node-pty/lib/conpty_console_list_agent.js +16 -0
  856. package/dist/runtime-assets/node-pty/lib/eventEmitter2.js +47 -0
  857. package/dist/runtime-assets/node-pty/lib/index.js +52 -0
  858. package/dist/runtime-assets/node-pty/lib/interfaces.js +7 -0
  859. package/dist/runtime-assets/node-pty/lib/shared/conout.js +11 -0
  860. package/dist/runtime-assets/node-pty/lib/terminal.js +190 -0
  861. package/dist/runtime-assets/node-pty/lib/types.js +7 -0
  862. package/dist/runtime-assets/node-pty/lib/unixTerminal.js +346 -0
  863. package/dist/runtime-assets/node-pty/lib/utils.js +39 -0
  864. package/dist/runtime-assets/node-pty/lib/windowsConoutConnection.js +125 -0
  865. package/dist/runtime-assets/node-pty/lib/windowsPtyAgent.js +320 -0
  866. package/dist/runtime-assets/node-pty/lib/windowsTerminal.js +199 -0
  867. package/dist/runtime-assets/node-pty/lib/worker/conoutSocketWorker.js +22 -0
  868. package/dist/runtime-assets/node-pty/package.json +64 -0
  869. package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  870. package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  871. package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
  872. package/dist/runtime-assets/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  873. package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  874. package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  875. package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  876. package/dist/runtime-assets/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  877. package/dist/runtime-autostart.d.ts +61 -0
  878. package/dist/runtime-autostart.js +161 -0
  879. package/dist/runtime-autostart.js.map +1 -0
  880. package/dist/runtime-background.d.ts +200 -0
  881. package/dist/runtime-background.js +480 -0
  882. package/dist/runtime-background.js.map +1 -0
  883. package/dist/runtime-build-info.d.ts +10 -0
  884. package/dist/runtime-build-info.js +64 -0
  885. package/dist/runtime-build-info.js.map +1 -0
  886. package/dist/runtime-bundle.d.ts +22 -0
  887. package/dist/runtime-bundle.js +158 -0
  888. package/dist/runtime-bundle.js.map +1 -0
  889. package/dist/runtime-cli-background.d.ts +92 -0
  890. package/dist/runtime-cli-background.js +336 -0
  891. package/dist/runtime-cli-background.js.map +1 -0
  892. package/dist/runtime-cli-install.d.ts +295 -0
  893. package/dist/runtime-cli-install.js +869 -0
  894. package/dist/runtime-cli-install.js.map +1 -0
  895. package/dist/runtime-cli.d.ts +21 -0
  896. package/dist/runtime-cli.js +578 -0
  897. package/dist/runtime-cli.js.map +1 -0
  898. package/dist/runtime-client-store.d.ts +86 -0
  899. package/dist/runtime-client-store.js +387 -0
  900. package/dist/runtime-client-store.js.map +1 -0
  901. package/dist/runtime-client.d.ts +258 -0
  902. package/dist/runtime-client.js +1353 -0
  903. package/dist/runtime-client.js.map +1 -0
  904. package/dist/runtime-connection.d.ts +22 -0
  905. package/dist/runtime-connection.js +93 -0
  906. package/dist/runtime-connection.js.map +1 -0
  907. package/dist/runtime-coordinator.d.ts +201 -0
  908. package/dist/runtime-coordinator.js +1514 -0
  909. package/dist/runtime-coordinator.js.map +1 -0
  910. package/dist/runtime-credential-profiles.d.ts +89 -0
  911. package/dist/runtime-credential-profiles.js +304 -0
  912. package/dist/runtime-credential-profiles.js.map +1 -0
  913. package/dist/runtime-enroll-notice.d.ts +4 -0
  914. package/dist/runtime-enroll-notice.js +21 -0
  915. package/dist/runtime-enroll-notice.js.map +1 -0
  916. package/dist/runtime-enrollment.d.ts +21 -0
  917. package/dist/runtime-enrollment.js +52 -0
  918. package/dist/runtime-enrollment.js.map +1 -0
  919. package/dist/runtime-general-protocol.d.ts +22 -0
  920. package/dist/runtime-general-protocol.js +57 -0
  921. package/dist/runtime-general-protocol.js.map +1 -0
  922. package/dist/runtime-general-workspace.d.ts +17 -0
  923. package/dist/runtime-general-workspace.js +213 -0
  924. package/dist/runtime-general-workspace.js.map +1 -0
  925. package/dist/runtime-install.d.ts +50 -0
  926. package/dist/runtime-install.js +189 -0
  927. package/dist/runtime-install.js.map +1 -0
  928. package/dist/runtime-pane-assets.d.ts +17 -0
  929. package/dist/runtime-pane-assets.js +23 -0
  930. package/dist/runtime-pane-assets.js.map +1 -0
  931. package/dist/runtime-pane-boot.d.ts +9 -0
  932. package/dist/runtime-pane-boot.js +47 -0
  933. package/dist/runtime-pane-boot.js.map +1 -0
  934. package/dist/runtime-pane-codex-index.d.ts +10 -0
  935. package/dist/runtime-pane-codex-index.js +151 -0
  936. package/dist/runtime-pane-codex-index.js.map +1 -0
  937. package/dist/runtime-pane-config.d.ts +16 -0
  938. package/dist/runtime-pane-config.js +54 -0
  939. package/dist/runtime-pane-config.js.map +1 -0
  940. package/dist/runtime-pane-host.d.ts +63 -0
  941. package/dist/runtime-pane-host.js +467 -0
  942. package/dist/runtime-pane-host.js.map +1 -0
  943. package/dist/runtime-pane-job-owner.d.ts +1 -0
  944. package/dist/runtime-pane-job-owner.js +29 -0
  945. package/dist/runtime-pane-job-owner.js.map +1 -0
  946. package/dist/runtime-pane-job.ps1 +116 -0
  947. package/dist/runtime-pane-link.d.ts +47 -0
  948. package/dist/runtime-pane-link.js +338 -0
  949. package/dist/runtime-pane-link.js.map +1 -0
  950. package/dist/runtime-pane-mcp-protocol.d.ts +32 -0
  951. package/dist/runtime-pane-mcp-protocol.js +39 -0
  952. package/dist/runtime-pane-mcp-protocol.js.map +1 -0
  953. package/dist/runtime-pane-mcp-relay.d.ts +18 -0
  954. package/dist/runtime-pane-mcp-relay.js +80 -0
  955. package/dist/runtime-pane-mcp-relay.js.map +1 -0
  956. package/dist/runtime-pane-mcp.d.ts +55 -0
  957. package/dist/runtime-pane-mcp.js +153 -0
  958. package/dist/runtime-pane-mcp.js.map +1 -0
  959. package/dist/runtime-pane-native.d.ts +75 -0
  960. package/dist/runtime-pane-native.js +114 -0
  961. package/dist/runtime-pane-native.js.map +1 -0
  962. package/dist/runtime-pane-output.d.ts +19 -0
  963. package/dist/runtime-pane-output.js +53 -0
  964. package/dist/runtime-pane-output.js.map +1 -0
  965. package/dist/runtime-pane-port.d.ts +144 -0
  966. package/dist/runtime-pane-port.js +574 -0
  967. package/dist/runtime-pane-port.js.map +1 -0
  968. package/dist/runtime-pane-private.d.ts +14 -0
  969. package/dist/runtime-pane-private.js +51 -0
  970. package/dist/runtime-pane-private.js.map +1 -0
  971. package/dist/runtime-pane-private.ps1 +14 -0
  972. package/dist/runtime-pane-process.d.ts +4 -0
  973. package/dist/runtime-pane-process.js +117 -0
  974. package/dist/runtime-pane-process.js.map +1 -0
  975. package/dist/runtime-pane-protocol.d.ts +182 -0
  976. package/dist/runtime-pane-protocol.js +217 -0
  977. package/dist/runtime-pane-protocol.js.map +1 -0
  978. package/dist/runtime-pane-quota-history.d.ts +6 -0
  979. package/dist/runtime-pane-quota-history.js +44 -0
  980. package/dist/runtime-pane-quota-history.js.map +1 -0
  981. package/dist/runtime-pane-screen.d.ts +19 -0
  982. package/dist/runtime-pane-screen.js +76 -0
  983. package/dist/runtime-pane-screen.js.map +1 -0
  984. package/dist/runtime-pane-service.d.ts +16 -0
  985. package/dist/runtime-pane-service.js +256 -0
  986. package/dist/runtime-pane-service.js.map +1 -0
  987. package/dist/runtime-pane-stdio-protocol.d.ts +54 -0
  988. package/dist/runtime-pane-stdio-protocol.js +94 -0
  989. package/dist/runtime-pane-stdio-protocol.js.map +1 -0
  990. package/dist/runtime-pane-stdio.d.ts +3 -0
  991. package/dist/runtime-pane-stdio.js +123 -0
  992. package/dist/runtime-pane-stdio.js.map +1 -0
  993. package/dist/runtime-pane-store.d.ts +43 -0
  994. package/dist/runtime-pane-store.js +176 -0
  995. package/dist/runtime-pane-store.js.map +1 -0
  996. package/dist/runtime-pane-transcript-protocol.d.ts +43 -0
  997. package/dist/runtime-pane-transcript-protocol.js +58 -0
  998. package/dist/runtime-pane-transcript-protocol.js.map +1 -0
  999. package/dist/runtime-pane-transcript.d.ts +50 -0
  1000. package/dist/runtime-pane-transcript.js +666 -0
  1001. package/dist/runtime-pane-transcript.js.map +1 -0
  1002. package/dist/runtime-pane-worker.d.ts +1 -0
  1003. package/dist/runtime-pane-worker.js +167 -0
  1004. package/dist/runtime-pane-worker.js.map +1 -0
  1005. package/dist/runtime-profile-ownership.d.ts +66 -0
  1006. package/dist/runtime-profile-ownership.js +391 -0
  1007. package/dist/runtime-profile-ownership.js.map +1 -0
  1008. package/dist/runtime-protocol.d.ts +340 -0
  1009. package/dist/runtime-protocol.js +179 -0
  1010. package/dist/runtime-protocol.js.map +1 -0
  1011. package/dist/runtime-remote-accounts.d.ts +209 -0
  1012. package/dist/runtime-remote-accounts.js +714 -0
  1013. package/dist/runtime-remote-accounts.js.map +1 -0
  1014. package/dist/runtime-remote-setup.d.ts +108 -0
  1015. package/dist/runtime-remote-setup.js +532 -0
  1016. package/dist/runtime-remote-setup.js.map +1 -0
  1017. package/dist/runtime-signin-transport.d.ts +39 -0
  1018. package/dist/runtime-signin-transport.js +111 -0
  1019. package/dist/runtime-signin-transport.js.map +1 -0
  1020. package/dist/runtime-signin.d.ts +132 -0
  1021. package/dist/runtime-signin.js +290 -0
  1022. package/dist/runtime-signin.js.map +1 -0
  1023. package/dist/runtime-switches.d.ts +79 -0
  1024. package/dist/runtime-switches.js +90 -0
  1025. package/dist/runtime-switches.js.map +1 -0
  1026. package/dist/runtime-transcript-delta-reader.d.ts +23 -0
  1027. package/dist/runtime-transcript-delta-reader.js +74 -0
  1028. package/dist/runtime-transcript-delta-reader.js.map +1 -0
  1029. package/dist/runtime-transcript-source.d.ts +36 -0
  1030. package/dist/runtime-transcript-source.js +189 -0
  1031. package/dist/runtime-transcript-source.js.map +1 -0
  1032. package/dist/runtime-update-activity.d.ts +21 -0
  1033. package/dist/runtime-update-activity.js +51 -0
  1034. package/dist/runtime-update-activity.js.map +1 -0
  1035. package/dist/runtime-update-artifact.d.ts +31 -0
  1036. package/dist/runtime-update-artifact.js +252 -0
  1037. package/dist/runtime-update-artifact.js.map +1 -0
  1038. package/dist/runtime-update-attention.d.ts +4 -0
  1039. package/dist/runtime-update-attention.js +11 -0
  1040. package/dist/runtime-update-attention.js.map +1 -0
  1041. package/dist/runtime-update-controller.d.ts +86 -0
  1042. package/dist/runtime-update-controller.js +743 -0
  1043. package/dist/runtime-update-controller.js.map +1 -0
  1044. package/dist/runtime-update-install.d.ts +31 -0
  1045. package/dist/runtime-update-install.js +205 -0
  1046. package/dist/runtime-update-install.js.map +1 -0
  1047. package/dist/runtime-update-ipc.d.ts +42 -0
  1048. package/dist/runtime-update-ipc.js +144 -0
  1049. package/dist/runtime-update-ipc.js.map +1 -0
  1050. package/dist/runtime-update-journal.d.ts +49 -0
  1051. package/dist/runtime-update-journal.js +128 -0
  1052. package/dist/runtime-update-journal.js.map +1 -0
  1053. package/dist/runtime-update-lock.d.ts +48 -0
  1054. package/dist/runtime-update-lock.js +232 -0
  1055. package/dist/runtime-update-lock.js.map +1 -0
  1056. package/dist/runtime-update-owners.d.ts +29 -0
  1057. package/dist/runtime-update-owners.js +240 -0
  1058. package/dist/runtime-update-owners.js.map +1 -0
  1059. package/dist/runtime-update-protocol.d.ts +15 -0
  1060. package/dist/runtime-update-protocol.js +13 -0
  1061. package/dist/runtime-update-protocol.js.map +1 -0
  1062. package/dist/runtime-update-status.d.ts +30 -0
  1063. package/dist/runtime-update-status.js +31 -0
  1064. package/dist/runtime-update-status.js.map +1 -0
  1065. package/dist/runtime-windows-bridge.d.ts +42 -0
  1066. package/dist/runtime-windows-bridge.js +167 -0
  1067. package/dist/runtime-windows-bridge.js.map +1 -0
  1068. package/dist/scheduler/db.d.ts +10 -0
  1069. package/dist/scheduler/db.js +38 -11
  1070. package/dist/scheduler/db.js.map +1 -1
  1071. package/dist/scheduler/task-board-text.js +1 -1
  1072. package/dist/scheduler/task-board-text.js.map +1 -1
  1073. package/dist/scheduler/task-board.d.ts +13 -0
  1074. package/dist/scheduler/task-board.js +28 -3
  1075. package/dist/scheduler/task-board.js.map +1 -1
  1076. package/dist/scheduler/types.d.ts +6 -1
  1077. package/dist/service-drain.d.ts +19 -0
  1078. package/dist/service-drain.js +64 -0
  1079. package/dist/service-drain.js.map +1 -0
  1080. package/dist/service-installer.d.ts +7 -2
  1081. package/dist/service-installer.js +13 -10
  1082. package/dist/service-installer.js.map +1 -1
  1083. package/dist/settings-api.d.ts +36 -2
  1084. package/dist/settings-api.js +734 -9
  1085. package/dist/settings-api.js.map +1 -1
  1086. package/dist/settings-baseline.d.ts +7 -0
  1087. package/dist/settings-baseline.js +3 -1
  1088. package/dist/settings-baseline.js.map +1 -1
  1089. package/dist/settings-change.d.ts +5 -3
  1090. package/dist/settings-change.js +61 -1
  1091. package/dist/settings-change.js.map +1 -1
  1092. package/dist/settings-confirmation.d.ts +44 -7
  1093. package/dist/settings-confirmation.js +56 -14
  1094. package/dist/settings-confirmation.js.map +1 -1
  1095. package/dist/settings-effect.d.ts +22 -0
  1096. package/dist/settings-effect.js +294 -4
  1097. package/dist/settings-effect.js.map +1 -1
  1098. package/dist/settings-http-confirmation.d.ts +35 -0
  1099. package/dist/settings-http-confirmation.js +153 -13
  1100. package/dist/settings-http-confirmation.js.map +1 -1
  1101. package/dist/settings-instance-patch.js +1 -1
  1102. package/dist/settings-instance-patch.js.map +1 -1
  1103. package/dist/settings-request-capability.d.ts +14 -0
  1104. package/dist/settings-request-capability.js +12 -1
  1105. package/dist/settings-request-capability.js.map +1 -1
  1106. package/dist/settings-route-lifetime.d.ts +14 -0
  1107. package/dist/settings-route-lifetime.js +48 -0
  1108. package/dist/settings-route-lifetime.js.map +1 -0
  1109. package/dist/settings-transaction.d.ts +4 -0
  1110. package/dist/settings-transaction.js +9 -0
  1111. package/dist/settings-transaction.js.map +1 -1
  1112. package/dist/setup-form.js +6 -3
  1113. package/dist/setup-form.js.map +1 -1
  1114. package/dist/setup-host.js +1 -1
  1115. package/dist/setup-host.js.map +1 -1
  1116. package/dist/setup-i18n.js +7 -4
  1117. package/dist/setup-i18n.js.map +1 -1
  1118. package/dist/setup-wizard.js +4 -2
  1119. package/dist/setup-wizard.js.map +1 -1
  1120. package/dist/signin-keepalive.d.ts +207 -0
  1121. package/dist/signin-keepalive.js +682 -0
  1122. package/dist/signin-keepalive.js.map +1 -0
  1123. package/dist/structured-signin-transport.d.ts +20 -2
  1124. package/dist/structured-signin-transport.js +57 -2
  1125. package/dist/structured-signin-transport.js.map +1 -1
  1126. package/dist/structured-signin.d.ts +11 -2
  1127. package/dist/structured-signin.js +8 -8
  1128. package/dist/structured-signin.js.map +1 -1
  1129. package/dist/subagent-records.d.ts +45 -0
  1130. package/dist/subagent-records.js +214 -0
  1131. package/dist/subagent-records.js.map +1 -0
  1132. package/dist/subagent-service.d.ts +27 -0
  1133. package/dist/subagent-service.js +199 -0
  1134. package/dist/subagent-service.js.map +1 -0
  1135. package/dist/task-board-tool.d.ts +13 -1
  1136. package/dist/task-board-tool.js +104 -4
  1137. package/dist/task-board-tool.js.map +1 -1
  1138. package/dist/task-board-waker.d.ts +6 -0
  1139. package/dist/task-board-waker.js +4 -0
  1140. package/dist/task-board-waker.js.map +1 -1
  1141. package/dist/team-membership.d.ts +7 -0
  1142. package/dist/team-membership.js +10 -0
  1143. package/dist/team-membership.js.map +1 -0
  1144. package/dist/tips.js +4 -4
  1145. package/dist/tips.js.map +1 -1
  1146. package/dist/tmux-binary.d.ts +59 -0
  1147. package/dist/tmux-binary.js +189 -0
  1148. package/dist/tmux-binary.js.map +1 -0
  1149. package/dist/tmux-control.d.ts +2 -1
  1150. package/dist/tmux-control.js +4 -4
  1151. package/dist/tmux-control.js.map +1 -1
  1152. package/dist/tmux-exec-helper.js +32 -1
  1153. package/dist/tmux-exec-helper.js.map +1 -1
  1154. package/dist/tmux-legacy.d.ts +94 -0
  1155. package/dist/tmux-legacy.js +309 -0
  1156. package/dist/tmux-legacy.js.map +1 -0
  1157. package/dist/tmux-manager.d.ts +11 -4
  1158. package/dist/tmux-manager.js +64 -40
  1159. package/dist/tmux-manager.js.map +1 -1
  1160. package/dist/tmux-pane-host.d.ts +26 -0
  1161. package/dist/tmux-pane-host.js +25 -0
  1162. package/dist/tmux-pane-host.js.map +1 -0
  1163. package/dist/tmux-read.js +4 -3
  1164. package/dist/tmux-read.js.map +1 -1
  1165. package/dist/tmux-rollback.d.ts +31 -0
  1166. package/dist/tmux-rollback.js +72 -0
  1167. package/dist/tmux-rollback.js.map +1 -0
  1168. package/dist/tmux-server.d.ts +102 -0
  1169. package/dist/tmux-server.js +248 -0
  1170. package/dist/tmux-server.js.map +1 -0
  1171. package/dist/tool-permissions.d.ts +2 -3
  1172. package/dist/tool-permissions.js +5 -4
  1173. package/dist/tool-permissions.js.map +1 -1
  1174. package/dist/topic-commands.js +10 -6
  1175. package/dist/topic-commands.js.map +1 -1
  1176. package/dist/transcript-delta-reader.d.ts +1 -1
  1177. package/dist/transcript-delta-reader.js +1 -1
  1178. package/dist/transcript-delta-reader.js.map +1 -1
  1179. package/dist/transcript-monitor.d.ts +23 -0
  1180. package/dist/transcript-monitor.js +107 -49
  1181. package/dist/transcript-monitor.js.map +1 -1
  1182. package/dist/transcript-needles.d.ts +42 -0
  1183. package/dist/transcript-needles.js +166 -0
  1184. package/dist/transcript-needles.js.map +1 -0
  1185. package/dist/transcript-records.d.ts +22 -0
  1186. package/dist/transcript-records.js +144 -0
  1187. package/dist/transcript-records.js.map +1 -0
  1188. package/dist/transcript-sources.d.ts +5 -0
  1189. package/dist/transcript-sources.js +11 -79
  1190. package/dist/transcript-sources.js.map +1 -1
  1191. package/dist/types.d.ts +34 -0
  1192. package/dist/types.js.map +1 -1
  1193. package/dist/ui/account-identity.js +29 -0
  1194. package/dist/ui/accounts-keepalive.js +118 -0
  1195. package/dist/ui/accounts-manage.js +256 -0
  1196. package/dist/ui/accounts-view.js +460 -0
  1197. package/dist/ui/agent-proposals.js +90 -0
  1198. package/dist/ui/agent-runtime-settings.js +69 -0
  1199. package/dist/ui/agent-runtime.js +124 -0
  1200. package/dist/ui/app.html +8 -1
  1201. package/dist/ui/backend-signin.js +169 -97
  1202. package/dist/ui/chat-ambient.js +1 -1
  1203. package/dist/ui/chat-commands.js +7 -0
  1204. package/dist/ui/chat-md-strings.js +3 -9
  1205. package/dist/ui/chat-msg-actions.js +50 -4
  1206. package/dist/ui/chat-quote.js +256 -0
  1207. package/dist/ui/chat-render.js +3 -670
  1208. package/dist/ui/chat-store.js +23 -7
  1209. package/dist/ui/chat-strings.js +3 -285
  1210. package/dist/ui/chat-thread.js +3 -969
  1211. package/dist/ui/chat-time.js +3 -80
  1212. package/dist/ui/chat-tour.js +1 -1
  1213. package/dist/ui/cli-caps.js +15 -0
  1214. package/dist/ui/cli-picker.js +42 -0
  1215. package/dist/ui/credential-profile-select.js +54 -0
  1216. package/dist/ui/fleet-cache.js +3 -3
  1217. package/dist/ui/fleet-canvas.js +2 -2
  1218. package/dist/ui/fleet-office-dialogue.d.ts +30 -0
  1219. package/dist/ui/fleet-office-dialogue.js +382 -0
  1220. package/dist/ui/fleet-office-editor.js +1 -1
  1221. package/dist/ui/fleet-office-pack.d.ts +9 -0
  1222. package/dist/ui/fleet-office-pack.js +76 -4
  1223. package/dist/ui/fleet-office-skin.js +23 -5
  1224. package/dist/ui/fleet-office-store.js +5 -0
  1225. package/dist/ui/fleet-office.js +174 -7
  1226. package/dist/ui/fleet-org.js +2 -2
  1227. package/dist/ui/fleet-task-card.js +11 -7
  1228. package/dist/ui/fleet-task-common.js +18 -8
  1229. package/dist/ui/fleet-task-menu.js +188 -0
  1230. package/dist/ui/fleet-task-stats.js +124 -0
  1231. package/dist/ui/fleet-task-view.js +340 -0
  1232. package/dist/ui/fleet-tasks.js +131 -43
  1233. package/dist/ui/general-location.js +85 -0
  1234. package/dist/ui/host-install.js +290 -0
  1235. package/dist/ui/html-attachment.js +3 -40
  1236. package/dist/ui/hub-agent-copy.js +23 -0
  1237. package/dist/ui/hub-attachments.js +90 -0
  1238. package/dist/ui/hub-button-actions.js +65 -0
  1239. package/dist/ui/hub-chat-store.js +168 -0
  1240. package/dist/ui/hub-chat-strings.js +79 -0
  1241. package/dist/ui/hub-client.js +410 -0
  1242. package/dist/ui/hub-company-join-strings.js +77 -0
  1243. package/dist/ui/hub-company-join.js +137 -0
  1244. package/dist/ui/hub-directory-editor-strings.js +56 -0
  1245. package/dist/ui/hub-directory-editor.js +163 -0
  1246. package/dist/ui/hub-directory-notice-strings.js +28 -0
  1247. package/dist/ui/hub-directory-notices.js +66 -0
  1248. package/dist/ui/hub-grant-strings.js +13 -0
  1249. package/dist/ui/hub-group-policy.js +183 -0
  1250. package/dist/ui/hub-group-strings.js +110 -0
  1251. package/dist/ui/hub-host-security-notices.js +28 -0
  1252. package/dist/ui/hub-owner-strings.js +56 -0
  1253. package/dist/ui/hub-pairing-progress-strings.js +15 -0
  1254. package/dist/ui/hub-preview.js +101 -0
  1255. package/dist/ui/hub-provider-guidance.js +31 -0
  1256. package/dist/ui/hub-quick-pairing.js +209 -0
  1257. package/dist/ui/hub-quick-strings.js +43 -0
  1258. package/dist/ui/hub-quota.js +85 -0
  1259. package/dist/ui/hub-read-strings.js +7 -0
  1260. package/dist/ui/hub-strings.js +164 -0
  1261. package/dist/ui/hub-switcher.js +27 -0
  1262. package/dist/ui/hub-this-hub.js +113 -0
  1263. package/dist/ui/hub-welcome.js +102 -0
  1264. package/dist/ui/machine-signin.js +56 -0
  1265. package/dist/ui/model-picker.js +68 -0
  1266. package/dist/ui/native-instance-settings.js +44 -0
  1267. package/dist/ui/native-pane-recovery.js +45 -0
  1268. package/dist/ui/office-share-page.js +4 -2
  1269. package/dist/ui/panel-chat.js +167 -87
  1270. package/dist/ui/panel-details.js +3 -2
  1271. package/dist/ui/panel-fleet.js +183 -32
  1272. package/dist/ui/panel-hub.js +974 -0
  1273. package/dist/ui/panel-log.js +4 -4
  1274. package/dist/ui/panel-needs.js +179 -13
  1275. package/dist/ui/panel-notices.js +4 -3
  1276. package/dist/ui/panel-runtimes.js +645 -0
  1277. package/dist/ui/panel-settings.js +292 -201
  1278. package/dist/ui/panel-windows-agent.js +87 -0
  1279. package/dist/ui/panel-windows-cli.js +189 -0
  1280. package/dist/ui/preview-pages.js +3 -41
  1281. package/dist/ui/preview-panel-actions.js +3 -161
  1282. package/dist/ui/preview-panel.js +11 -548
  1283. package/dist/ui/preview-versions.js +3 -155
  1284. package/dist/ui/preview.js +3 -476
  1285. package/dist/ui/provider-marks.js +83 -0
  1286. package/dist/ui/runtime-catalog.js +55 -0
  1287. package/dist/ui/runtime-cli-install.js +214 -0
  1288. package/dist/ui/runtime-commands.d.ts +6 -0
  1289. package/dist/ui/runtime-commands.js +92 -0
  1290. package/dist/ui/runtime-update-commands.d.ts +2 -0
  1291. package/dist/ui/runtime-update-commands.js +11 -0
  1292. package/dist/ui/runtime-update-status.js +53 -0
  1293. package/dist/ui/search-dialog.js +6 -2
  1294. package/dist/ui/settings-access-strings.js +42 -0
  1295. package/dist/ui/settings-agent-filters.js +94 -0
  1296. package/dist/ui/settings-appearance.js +122 -23
  1297. package/dist/ui/settings-apply.js +12 -5
  1298. package/dist/ui/settings-build-version.js +35 -0
  1299. package/dist/ui/settings-catalog.js +57 -13
  1300. package/dist/ui/settings-confirm.js +108 -10
  1301. package/dist/ui/settings-devices.js +283 -0
  1302. package/dist/ui/settings-dialogs.js +72 -28
  1303. package/dist/ui/settings-guests.js +29 -14
  1304. package/dist/ui/settings-hub-browser-certificate.js +76 -0
  1305. package/dist/ui/settings-hub-company-join.js +165 -0
  1306. package/dist/ui/settings-hub-connection.js +121 -0
  1307. package/dist/ui/settings-hub-directory.js +29 -0
  1308. package/dist/ui/settings-hub-membership.js +93 -0
  1309. package/dist/ui/settings-hub-preview.js +74 -0
  1310. package/dist/ui/settings-hub-retention.js +54 -0
  1311. package/dist/ui/settings-hub-run.js +61 -0
  1312. package/dist/ui/settings-hub-section.js +63 -0
  1313. package/dist/ui/settings-hub-setup-strings.js +70 -0
  1314. package/dist/ui/settings-hub-setup.js +195 -0
  1315. package/dist/ui/settings-hub.js +266 -0
  1316. package/dist/ui/settings-layout.js +246 -0
  1317. package/dist/ui/settings-model.js +10 -1
  1318. package/dist/ui/settings-named-test.js +2 -2
  1319. package/dist/ui/settings-outside.js +310 -0
  1320. package/dist/ui/settings-quota-notice.js +102 -0
  1321. package/dist/ui/settings-registry.js +26 -6
  1322. package/dist/ui/settings-restart-strings.js +17 -0
  1323. package/dist/ui/settings-revoke-strings.js +28 -0
  1324. package/dist/ui/settings-shared-strings.js +143 -0
  1325. package/dist/ui/settings-shared.js +345 -0
  1326. package/dist/ui/settings-shortcuts.js +65 -0
  1327. package/dist/ui/settings-strings.js +146 -71
  1328. package/dist/ui/settings-update.js +69 -0
  1329. package/dist/ui/settings-web-authority.js +29 -15
  1330. package/dist/ui/shared/accounts-keepalive.css +12 -0
  1331. package/dist/ui/shared/accounts.css +88 -0
  1332. package/dist/ui/shared/agend-auth.js +8 -1
  1333. package/dist/ui/shared/app-i18n.js +25 -18
  1334. package/dist/ui/shared/app-route.js +12 -3
  1335. package/dist/ui/shared/app-session.js +13 -12
  1336. package/dist/ui/shared/app-shell.js +320 -48
  1337. package/dist/ui/shared/app-store.js +3 -2
  1338. package/dist/ui/shared/app-stream.js +3 -1
  1339. package/dist/ui/shared/app-update.js +215 -0
  1340. package/dist/ui/shared/app.css +1542 -8
  1341. package/dist/ui/shared/app.js +18 -4
  1342. package/dist/ui/shared/chat-composer.js +68 -0
  1343. package/dist/ui/shared/chat-md-strings.js +9 -0
  1344. package/dist/ui/shared/chat-render.js +682 -0
  1345. package/dist/ui/shared/chat-strings.js +333 -0
  1346. package/dist/ui/shared/chat-thread.js +969 -0
  1347. package/dist/ui/shared/chat-time.js +80 -0
  1348. package/dist/ui/shared/device-roles.js +27 -0
  1349. package/dist/ui/shared/header-tools.js +9 -9
  1350. package/dist/ui/shared/host-install.css +10 -0
  1351. package/dist/ui/shared/html-attachment.js +42 -0
  1352. package/dist/ui/shared/hub-chat.css +98 -0
  1353. package/dist/ui/shared/hub-groups.css +28 -0
  1354. package/dist/ui/shared/hub-owner.css +57 -0
  1355. package/dist/ui/shared/hub-quota.css +8 -0
  1356. package/dist/ui/shared/hub-signin.css +24 -0
  1357. package/dist/ui/shared/hub.css +78 -0
  1358. package/dist/ui/shared/instance-nav.js +35 -8
  1359. package/dist/ui/shared/instance-switch.js +4 -3
  1360. package/dist/ui/shared/loading.css +37 -0
  1361. package/dist/ui/shared/machine-name.js +13 -0
  1362. package/dist/ui/shared/model-picker.css +21 -0
  1363. package/dist/ui/shared/page-head.js +8 -0
  1364. package/dist/ui/shared/preview-pages.js +41 -0
  1365. package/dist/ui/shared/preview-panel-actions.js +168 -0
  1366. package/dist/ui/shared/preview-panel.js +565 -0
  1367. package/dist/ui/shared/preview-versions.js +155 -0
  1368. package/dist/ui/shared/preview.js +476 -0
  1369. package/dist/ui/shared/qrcode.module.js +2237 -0
  1370. package/dist/ui/shared/runtime-install.css +55 -0
  1371. package/dist/ui/shared/settings-width.js +31 -0
  1372. package/dist/ui/shared/setup-host-text.js +8 -5
  1373. package/dist/ui/shared/side-rail.js +15 -0
  1374. package/dist/ui/shared/signin-authenticator.js +60 -0
  1375. package/dist/ui/shared/signin.js +315 -25
  1376. package/dist/ui/shared/subagent-row.css +15 -0
  1377. package/dist/ui/shared/task-board.css +95 -0
  1378. package/dist/ui/shared/tokens.css +1 -0
  1379. package/dist/ui/shared/ui-dialog.js +2 -2
  1380. package/dist/ui/shared/ui-menu.js +30 -10
  1381. package/dist/ui/shared/ui-states.js +14 -3
  1382. package/dist/ui/shared/usage-dialog.js +4 -73
  1383. package/dist/ui/shared/usage-meter.js +84 -0
  1384. package/dist/ui/shared/vendor/qrcode-generator.LICENSE +27 -0
  1385. package/dist/ui/shared/vendor/vendor.json +19 -2
  1386. package/dist/ui/shared/view-strings.js +26 -18
  1387. package/dist/ui/shared/web-authorize.js +55 -5
  1388. package/dist/ui/shared/workspace-follow.css +19 -0
  1389. package/dist/ui/shared/workspace.css +20 -0
  1390. package/dist/ui/signin-authenticator.html +60 -0
  1391. package/dist/ui/signin.html +27 -2
  1392. package/dist/ui/structured-signin.js +89 -39
  1393. package/dist/ui/subagent-row.js +72 -0
  1394. package/dist/ui/web-terminal/terminal.js +9 -9
  1395. package/dist/ui/windows-agents-nav.js +2 -0
  1396. package/dist/ui/windows-cli-catalog.js +108 -0
  1397. package/dist/ui/workspace-follow-strings.js +28 -0
  1398. package/dist/ui/workspace-panel.js +378 -0
  1399. package/dist/ui/workspace-strings.js +35 -0
  1400. package/dist/unattended-install.d.ts +11 -2
  1401. package/dist/unattended-install.js +41 -6
  1402. package/dist/unattended-install.js.map +1 -1
  1403. package/dist/update-dispatch.d.ts +32 -4
  1404. package/dist/update-dispatch.js +146 -16
  1405. package/dist/update-dispatch.js.map +1 -1
  1406. package/dist/update-install.d.ts +7 -0
  1407. package/dist/update-install.js +23 -0
  1408. package/dist/update-install.js.map +1 -1
  1409. package/dist/update-launch.d.ts +1 -1
  1410. package/dist/update-launch.js +6 -3
  1411. package/dist/update-launch.js.map +1 -1
  1412. package/dist/update-marker.d.ts +4 -2
  1413. package/dist/update-marker.js +4 -3
  1414. package/dist/update-marker.js.map +1 -1
  1415. package/dist/update-npm-env.d.ts +70 -0
  1416. package/dist/update-npm-env.js +128 -0
  1417. package/dist/update-npm-env.js.map +1 -0
  1418. package/dist/usage/providers.d.ts +8 -0
  1419. package/dist/usage/providers.js +36 -26
  1420. package/dist/usage/providers.js.map +1 -1
  1421. package/dist/usage/quota-notices.d.ts +38 -0
  1422. package/dist/usage/quota-notices.js +160 -0
  1423. package/dist/usage/quota-notices.js.map +1 -0
  1424. package/dist/usage/usage-api.d.ts +2 -1
  1425. package/dist/usage/usage-api.js +19 -10
  1426. package/dist/usage/usage-api.js.map +1 -1
  1427. package/dist/usage-rollup.d.ts +3 -0
  1428. package/dist/usage-rollup.js +2 -0
  1429. package/dist/usage-rollup.js.map +1 -1
  1430. package/dist/view-api.d.ts +2 -8
  1431. package/dist/view-api.js +8 -16
  1432. package/dist/view-api.js.map +1 -1
  1433. package/dist/web-api.d.ts +163 -3
  1434. package/dist/web-api.js +1391 -32
  1435. package/dist/web-api.js.map +1 -1
  1436. package/dist/web-auth.js +2 -1
  1437. package/dist/web-auth.js.map +1 -1
  1438. package/dist/web-backend-login.d.ts +39 -3
  1439. package/dist/web-backend-login.js +25 -17
  1440. package/dist/web-backend-login.js.map +1 -1
  1441. package/dist/web-channel-echo.js +3 -1
  1442. package/dist/web-channel-echo.js.map +1 -1
  1443. package/dist/web-chat-history.d.ts +19 -2
  1444. package/dist/web-chat-history.js +72 -3
  1445. package/dist/web-chat-history.js.map +1 -1
  1446. package/dist/web-commands.d.ts +9 -1
  1447. package/dist/web-commands.js +7 -1
  1448. package/dist/web-commands.js.map +1 -1
  1449. package/dist/web-device-login.d.ts +153 -0
  1450. package/dist/web-device-login.js +278 -0
  1451. package/dist/web-device-login.js.map +1 -0
  1452. package/dist/web-host-install.d.ts +127 -0
  1453. package/dist/web-host-install.js +165 -0
  1454. package/dist/web-host-install.js.map +1 -0
  1455. package/dist/web-login.d.ts +35 -1
  1456. package/dist/web-login.js +51 -5
  1457. package/dist/web-login.js.map +1 -1
  1458. package/dist/web-notices.d.ts +9 -0
  1459. package/dist/web-notices.js +19 -0
  1460. package/dist/web-notices.js.map +1 -1
  1461. package/dist/web-office-skins.d.ts +9 -0
  1462. package/dist/web-office-skins.js +16 -1
  1463. package/dist/web-office-skins.js.map +1 -1
  1464. package/dist/web-only-fleet.d.ts +20 -0
  1465. package/dist/web-only-fleet.js +21 -0
  1466. package/dist/web-only-fleet.js.map +1 -1
  1467. package/dist/web-remote-access.d.ts +273 -0
  1468. package/dist/web-remote-access.js +610 -0
  1469. package/dist/web-remote-access.js.map +1 -0
  1470. package/dist/web-session.d.ts +61 -0
  1471. package/dist/web-session.js +47 -1
  1472. package/dist/web-session.js.map +1 -1
  1473. package/dist/web-settings-patch.d.ts +3 -1
  1474. package/dist/web-settings-patch.js +4 -1
  1475. package/dist/web-settings-patch.js.map +1 -1
  1476. package/dist/web-shell-routes.d.ts +10 -1
  1477. package/dist/web-shell-routes.js +14 -2
  1478. package/dist/web-shell-routes.js.map +1 -1
  1479. package/dist/web-signin-device.d.ts +16 -0
  1480. package/dist/web-signin-device.js +81 -0
  1481. package/dist/web-signin-device.js.map +1 -0
  1482. package/dist/web-signin-link.d.ts +42 -0
  1483. package/dist/web-signin-link.js +110 -0
  1484. package/dist/web-signin-link.js.map +1 -0
  1485. package/dist/web-terminal.d.ts +11 -30
  1486. package/dist/web-terminal.js +23 -8
  1487. package/dist/web-terminal.js.map +1 -1
  1488. package/dist/web-update.d.ts +78 -0
  1489. package/dist/web-update.js +106 -0
  1490. package/dist/web-update.js.map +1 -0
  1491. package/dist/windows-agents.d.ts +127 -0
  1492. package/dist/windows-agents.js +491 -0
  1493. package/dist/windows-agents.js.map +1 -0
  1494. package/dist/windows-cli-api.d.ts +48 -0
  1495. package/dist/windows-cli-api.js +207 -0
  1496. package/dist/windows-cli-api.js.map +1 -0
  1497. package/dist/windows-cli-providers.d.ts +109 -0
  1498. package/dist/windows-cli-providers.js +396 -0
  1499. package/dist/windows-cli-providers.js.map +1 -0
  1500. package/dist/windows-cli-worker.d.ts +99 -0
  1501. package/dist/windows-cli-worker.js +729 -0
  1502. package/dist/windows-cli-worker.js.map +1 -0
  1503. package/dist/windows-cli.d.ts +130 -0
  1504. package/dist/windows-cli.js +424 -0
  1505. package/dist/windows-cli.js.map +1 -0
  1506. package/dist/windows-native-mcp.d.ts +19 -0
  1507. package/dist/windows-native-mcp.js +143 -0
  1508. package/dist/windows-native-mcp.js.map +1 -0
  1509. package/dist/windows-pane-mcp.d.ts +26 -0
  1510. package/dist/windows-pane-mcp.js +187 -0
  1511. package/dist/windows-pane-mcp.js.map +1 -0
  1512. package/dist/workspace-follow-parse.d.ts +36 -0
  1513. package/dist/workspace-follow-parse.js +208 -0
  1514. package/dist/workspace-follow-parse.js.map +1 -0
  1515. package/dist/workspace-follow-records.d.ts +17 -0
  1516. package/dist/workspace-follow-records.js +88 -0
  1517. package/dist/workspace-follow-records.js.map +1 -0
  1518. package/dist/workspace-follow.d.ts +41 -0
  1519. package/dist/workspace-follow.js +143 -0
  1520. package/dist/workspace-follow.js.map +1 -0
  1521. package/dist/wsl-detect.d.ts +1 -0
  1522. package/dist/wsl-detect.js +20 -0
  1523. package/dist/wsl-detect.js.map +1 -0
  1524. package/dist/yaml-shared-nodes.js +8 -3
  1525. package/dist/yaml-shared-nodes.js.map +1 -1
  1526. package/launcher/agend-install.cjs +24 -4
  1527. package/launcher/launchd-session-type.cjs +14 -0
  1528. package/launcher/postinstall.cjs +27 -2
  1529. package/launcher/tmux-bundle.cjs +263 -0
  1530. package/package.json +16 -4
  1531. package/templates/launchd.plist.ejs +3 -1
  1532. package/templates/runtime-assets/conpty-LICENSE +21 -0
  1533. package/templates/runtime-assets/conpty-NOTICE.md +503 -0
  1534. package/templates/runtime-assets/local-pane-stage.ps1 +101 -0
  1535. package/templates/runtime-assets/runtime-pane-job.ps1 +116 -0
  1536. package/templates/runtime-assets/runtime-pane-private.ps1 +14 -0
  1537. package/templates/runtime-assets/xterm-LICENSE +21 -0
  1538. package/templates/runtime-install/install.ps1 +618 -0
@@ -1,13 +1,18 @@
1
+ import { AgentRuntimeChanges } from "./agent-runtime-change.js";
1
2
  import { type HumanOrigin } from "./human-delivery-receipts.js";
3
+ import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
4
+ import { type GeneralSwitchInput } from "./general-binding.js";
2
5
  import { SettingsExecution } from "./settings-transaction.js";
3
6
  import { AppIconStore } from "./web-app-icon.js";
4
7
  import { type NamedTestResult } from "./tunnel/named-link-test.js";
5
8
  import { OfficeShareService } from "./office-share-service.js";
9
+ import { OfficeTalk } from "./office-talk.js";
6
10
  import { type OfficeShare } from "./office-share.js";
7
11
  import type { PageShare } from "./page-share.js";
8
12
  import type { LoginCodeOwner } from "./web-login.js";
9
13
  import { type ProfileTicket } from "./runtime-cpu-profile.js";
10
14
  import type { CpuProfile } from "./cpu-profile.js";
15
+ import { type IncomingMessage } from "node:http";
11
16
  import { type FleetMemory } from "./process-memory.js";
12
17
  import { MemoryPressure, type MemoryPressureSnapshot } from "./memory-pressure.js";
13
18
  import { ReplyDeduper } from "./reply-dedup.js";
@@ -19,11 +24,12 @@ import { type TopicDeleteOutcome } from "./instance-topic-delete.js";
19
24
  import { BackendAvailabilityStore, type AvailabilityProbes, type BackendAvailability } from "./backend-availability.js";
20
25
  import { AdapterWorld } from "./adapter-world.js";
21
26
  import { CostGuard } from "./cost-guard.js";
22
- import { IpcClient } from "./channel/ipc-bridge.js";
27
+ import { type InstanceClient } from "./channel/ipc-bridge.js";
23
28
  import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction } from "./channel/types.js";
24
29
  import { type BackendCliVersionSnapshot } from "./backend/types.js";
25
30
  import { type Logger } from "./logger.js";
26
31
  import { Scheduler } from "./scheduler/index.js";
32
+ import type { Task } from "./scheduler/types.js";
27
33
  import type { FleetContext } from "./fleet-context.js";
28
34
  import { TmuxControlClient } from "./tmux-control.js";
29
35
  import { RoutingEngine } from "./routing-engine.js";
@@ -52,6 +58,11 @@ export declare const LIVE_TASK_STATUSES: string[];
52
58
  * " \t " and [" ", "\t"] both normalize to undefined (not treated as explicit
53
59
  * filters). The same result drives the live-only default and the cap decision.
54
60
  */
61
+ /**
62
+ * #3195: the saved value of each plain-update field the call named (assignee, priority, result), read back from the
63
+ * task — so the answer shows what was persisted, not what was asked. Status is always in the ack already.
64
+ */
65
+ export declare function savedFields(t: Task, named: Record<string, unknown>): Partial<Pick<Task, "assignee" | "priority" | "result">>;
55
66
  export declare function normalizeStatusFilter(v: unknown): string | string[] | undefined;
56
67
  export declare function applyTaskListCap<T extends {
57
68
  updated_at: string;
@@ -61,6 +72,10 @@ export declare function applyTaskListCap<T extends {
61
72
  hint: string;
62
73
  } | T[];
63
74
  import { type PublicPreviewForUi } from "./web-api.js";
75
+ import { RuntimeInstallService } from "./runtime-install.js";
76
+ import { RuntimeCoordinator } from "./runtime-coordinator.js";
77
+ import { FleetWindowsRuntime, type NativeRuntimePatch } from "./fleet-windows-runtime.js";
78
+ import { NativeMcpSessions } from "./native-mcp.js";
64
79
  import { type LogAnswer, type LogQuery } from "./log-service.js";
65
80
  import { type ViewHistoryAnswer, type ViewHistoryQuery } from "./view-history.js";
66
81
  import { WebChatHistory, type WebChatPost } from "./web-chat-history.js";
@@ -78,6 +93,7 @@ import { type WebAccount } from "./web-profile.js";
78
93
  import type { WebPerson as WebPersonView } from "./web-api.js";
79
94
  import { ReplyButtonsController } from "./reply-buttons-controller.js";
80
95
  import { WebFileLedger } from "./web-upload.js";
96
+ import type { ActiveDecisionRow } from "./daemon.js";
81
97
  import { AppearanceTools } from "./web-appearance-tools.js";
82
98
  import { ModStore } from "./web-mod-store.js";
83
99
  import { type CachedImage } from "./web-images.js";
@@ -85,7 +101,9 @@ import { SearchIndex } from "./search/search-index.js";
85
101
  import { type CrossInstanceRecord, type XmsgVisibility } from "./search/search-docs.js";
86
102
  import { WebSettingsTools } from "./web-settings-tools.js";
87
103
  import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
104
+ import { type WebUpdateHost } from "./web-update.js";
88
105
  import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
106
+ import { WebHostInstalls, type HostInstallMode, type HostInstallReporter, type HostInstallStart } from "./web-host-install.js";
89
107
  import { BrowserBackendSignIns } from "./browser-backend-signins.js";
90
108
  import { type RawConfigPatch } from "./settings-api.js";
91
109
  import { type AgentEndpointContext } from "./agent-endpoint.js";
@@ -99,12 +117,15 @@ import { WakeCoordinator } from "./wake-coordinator.js";
99
117
  import { TargetQueueWorker } from "./target-queue-worker.js";
100
118
  import { resolveDeliveryWorkerMode } from "./types.js";
101
119
  import { type WebNeedsItem } from "./needs-you-hub.js";
120
+ import { type SetResult as KeepAliveSetResult } from "./signin-keepalive.js";
102
121
  import { type OrgChart } from "./web-org.js";
103
122
  import { type MemoryHog } from "./memory-hogs.js";
104
123
  import { type CacheReport } from "./cache-service.js";
105
124
  import { type WebCommandResult } from "./web-commands.js";
106
- import { type SessionRecord } from "./web-session.js";
125
+ import { type TotpSignInResult } from "./auth-api.js";
126
+ import { type SessionRecord, type WebDeviceRow } from "./web-session.js";
107
127
  import { WebNotices } from "./web-notices.js";
128
+ import { WebRemoteAccess } from "./web-remote-access.js";
108
129
  import { VERIFIED_SESSION_HOURS, type HumanAuthority, type WebAuthorityRefusal, type WebAuthorityResult, type WebPeer } from "./authority/web-authority.js";
109
130
  import { type AuthorityState } from "./authority/authority-state.js";
110
131
  import { type SessionAuthorization } from "./authority/session-authorizations.js";
@@ -115,6 +136,12 @@ import { type ConnectionMetadata, type ConnectionBinding, type BindingProbe, typ
115
136
  import { type ProviderSecretStatus } from "./provider-secret-registry.js";
116
137
  import { ApplyJobStore, type ApplyJob, type ApplyTargetKind, type SelfRestartResult } from "./apply-job.js";
117
138
  import { type CarryResult } from "./backend/claude-carry.js";
139
+ import { type AccountsView } from "./accounts-view.js";
140
+ import { type AddResult, type RemoveResult } from "./accounts-profiles.js";
141
+ import { type SignOutResult } from "./accounts-signout.js";
142
+ import { MachineAccounts, type MachineActor, type MachineAccountResult } from "./machine-accounts.js";
143
+ import { MachineSignIns } from "./machine-signins.js";
144
+ import { ProfileSignIns } from "./profile-signins.js";
118
145
  import { StormWindow } from "./storm-window.js";
119
146
  import { SpawnGate } from "./spawn-gate.js";
120
147
  import { BackendOutageTracker } from "./backend-outage.js";
@@ -202,8 +229,18 @@ export interface ModelCatalog {
202
229
  note?: string;
203
230
  }
204
231
  export interface DeliveryOptions {
232
+ /**
233
+ * A Windows instance only: the sender's authority after the handoff (see NativeRuntimeDeliveryOptions.authorityCurrent).
234
+ * stillCurrent fences the handoff itself; this one is rechecked before the Windows process starts.
235
+ */
236
+ authorityCurrent?: () => boolean;
205
237
  /** Explicitly identify agent-to-agent delivery when metadata is unavailable. */
206
238
  isCrossInstance?: boolean;
239
+ /**
240
+ * The Hub representative's last step (docs/design/hub-representative-agent.md): run after any wake, the idle wait and
241
+ * the storm recheck, immediately before the IPC hand-off. False drops the delivery unsent. Not for Windows agents.
242
+ */
243
+ beforeInput?: () => Promise<boolean>;
207
244
  /** Force or bypass the idle gate. Schedules set this explicitly. */
208
245
  waitForIdle?: boolean;
209
246
  /** Test/operational override; normal deliveries use the 60 second backstop. */
@@ -286,6 +323,7 @@ export declare class RestartSupersededError extends Error {
286
323
  }
287
324
  export declare class FleetManager implements FleetContext, LifecycleContext, ArchiverContext, StatuslineWatcherContext, OutboundContext, AgentEndpointContext {
288
325
  dataDir: string;
326
+ private decisionSnapshot;
289
327
  private static signalTarget;
290
328
  private static sighupHandlerInstalled;
291
329
  /** Test seam: inject a spy to verify saveFleetConfig calls fsync. Default: fsyncSync. */
@@ -325,7 +363,269 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
325
363
  /** Live view of lifecycle.daemons — used throughout; not deprecated. */
326
364
  get daemons(): Map<string, Daemon>;
327
365
  fleetConfig: FleetConfig | null;
366
+ private fleetWindowsRuntime;
367
+ private nativeMcpStore;
368
+ private paneManager;
369
+ private localPaneRelay;
370
+ private openingLocalPane;
371
+ private runtimeHub;
372
+ /**
373
+ * A message the owner must get (a computer joined with an install-command token, so nobody approved it). It is written to `pending-owner-notices.json` FIRST and removed only
374
+ * when a delivery is acknowledged: the platform took the message (the send's promise resolved) or the dashboard's Notices recorded it. So none of these loses it: no place to
375
+ * send it yet (a chat-connected fleet with no General and no primary notice target, adapters not up), a send the platform refuses after it was dispatched, a retry that is
376
+ * refused again, a restart. Each kept notice is tried again every minute until it is acknowledged. The file is private. Capacity is explicit, never silent: past
377
+ * OWNER_NOTICE_CAP undelivered notices the oldest are folded into ONE notice that says how many computers joined without a delivered notice and tells the owner to review
378
+ * Settings → Runtime, so the fact is never dropped. Delivery is at least once: a crash between the send and its acknowledgement can send a notice twice.
379
+ */
380
+ private ownerNoticeTimer;
381
+ /** One physical send per kept notice at a time: the claim is held until THAT attempt settles (never aged out) and each attempt's callbacks only act on its own claim. */
382
+ private readonly ownerNoticeLive;
383
+ private readonly ownerNoticeInFlight;
384
+ private pendingOwnerNoticesFile;
385
+ private readPendingOwnerNotices;
386
+ private writePendingOwnerNotices;
387
+ static readonly OWNER_NOTICE_CAP = 100;
388
+ /** Past the cap, the oldest are folded into one notice (a count, and where to look); it never silently disappears. */
389
+ private foldOwnerNotices;
390
+ /** Keeps the notice, then tries to deliver it; it stays on disk until a delivery is acknowledged. */
391
+ deliverOwnerNotice(text: string): void;
392
+ private attemptOwnerNotice;
393
+ /** Tries every kept notice that has no attempt in flight (oldest first); returns how many are kept. */
394
+ flushOwnerNotices(): number;
395
+ private scheduleOwnerNoticeFlush;
396
+ private runtimeInstall;
397
+ /** One service for the public installer routes and the administrator API: the hash the dashboard shows is the hash of what is sent. */
398
+ runtimeInstaller(): RuntimeInstallService;
399
+ private runtimeExecutor;
400
+ private runtimeStatusScheduled;
401
+ private readonly reconciledRemoteResults;
402
+ /** Machine credentials are separate from dashboard sessions and per-turn agent capabilities. */
403
+ runtimeCoordinator(): RuntimeCoordinator;
404
+ private runtimeWindowsExecutor;
405
+ /** Per-turn capabilities for native MCP, separate from browser and Linux-agent credentials. */
406
+ nativeMcpSessions(): NativeMcpSessions;
407
+ /** Retire only existing native capabilities; ordinary lifecycle changes do not instantiate the Windows path. */
408
+ invalidateNativeMcp(name: string): void;
409
+ /** The same instance registry and delivery entry point, with a native Windows execution adapter. */
410
+ nativeInstanceRuntime(): FleetWindowsRuntime;
411
+ private agentRuntimeChangeService?;
412
+ agentRuntimeChanges(): AgentRuntimeChanges;
413
+ /** Explicit dashboard opt-in, with the same General confirmation and ordinary topic/Daemon routing. */
414
+ createNativePaneInstance(profile: Record<string, unknown>, channelId: string | undefined, authorized: () => boolean, execution: SettingsExecution): Promise<{
415
+ name: string;
416
+ runtime: "windows";
417
+ agent: import("./windows-agents.js").WindowsAgent;
418
+ }>;
419
+ /** Admin-only settings path: validate first, then close the exact old launch before changing cold fields. */
420
+ updateNativePaneConfig(name: string, patch: Partial<NativeRuntimePatch>, authorized: () => boolean, transaction?: Pick<SettingsExecution, "mutate" | "complete">): Promise<ReturnType<FleetWindowsRuntime["update"]>>;
421
+ /** The local machine's inventory as last used to open its pane relay (status only; never a launch decision). */
422
+ private localPaneInventory;
423
+ private nativeCliStatus;
424
+ private localNativePaneEndpoint;
425
+ /** Persistent ownership is independent of the exec worker's per-turn capabilities. */
426
+ private nativePanes;
427
+ /** Prepare only bundled role files; this neither switches General nor starts a provider process. */
428
+ prepareWindowsGeneralWorkspace(name: string, machineId: string, cli: "codex" | "claude-code", bindingId: string, authorized: () => boolean): Promise<import("./runtime-general-protocol.js").GeneralWorkspaceReceipt>;
429
+ /** S3c (S-55): the member's exposure API, attached by S5's member composition (null: no Hub member here). */
430
+ private hubMemberExposureApi;
431
+ hubMemberExposures(): import("./hub/member/exposure-api.js").HubMemberExposureApi | null;
432
+ attachHubMemberExposures(api: import("./hub/member/exposure-api.js").HubMemberExposureApi | null): void;
433
+ /** M-2687: local host-session setup; controller creation stays lazy while the Hub is off. */
434
+ private hubSetupController;
435
+ private hubSetupInit;
436
+ private hubDirectoryControl;
437
+ private hubDirectoryInit;
438
+ private hubDirectoryCurrent;
439
+ /** Both private listeners share this controller and the already-created sealed writer; callers prove authority first. */
440
+ hubDirectorySettings(): Promise<import("./hub/settings-directory-control.js").HubDirectorySettingsControl>;
441
+ hubSetupSession(req: IncomingMessage): import("./hub/init/types.js").HubInitHostOwner | null;
442
+ hubSetup(): Promise<import("./hub/init/web.js").HubWebInitializer>;
443
+ /** Existing-state host notices also work while the Hub listener is held. No runtime/initializer is started here. */
444
+ hubDirectoryNotices(): Promise<import("./hub/settings-directory-host-notices.js").HubDirectoryHostNotices>;
445
+ /** The member's company sign-in controller; separate from host-owned Hub initialization. */
446
+ private companyJoinController;
447
+ private companyJoinInit;
448
+ private companyObservedMembership;
449
+ private companyMembershipWrite;
450
+ hubCompanySession(req: IncomingMessage): import("./hub/join/local-journal.js").JoinLocalSession | null;
451
+ hubCompanyJoin(): Promise<import("./hub/join/local.js").CompanyJoinController>;
452
+ invalidateHubCompanyJoin(): void;
453
+ private hubMemberPairingApi;
454
+ private hubPairingNotices;
455
+ hubMemberPairing(): ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null;
456
+ /** Explicit owner Settings read only. A paused binding is not permission to mount or connect a member. */
457
+ hubMemberPairingView(): Promise<import("./hub-pairing-summary.js").HubPairingView>;
458
+ attachHubMemberPairing(api: ReturnType<typeof import("./hub/member/pairing-api.js").createHubMemberPairingApi> | null): void;
459
+ private readonly generalLocationFlights;
460
+ private readonly generalAttentionEpisodes;
461
+ private generalBindings;
462
+ generalLocations(): unknown;
463
+ /** Pure preflight for the confirmation diff and stale-tab refusal; never prepares files or starts a CLI. */
464
+ previewGeneralLocation(raw: unknown): {
465
+ input: GeneralSwitchInput;
466
+ summary: string[];
467
+ connections: string[];
468
+ };
469
+ /** All entry points, including automatic native recovery, must respect an interrupted binding switch. */
470
+ assertGeneralBindingStart(name: string, config: InstanceConfig): void;
471
+ /** Only the Settings replay's confirmed admin can enter; the whole switch owns one lifecycle transition. */
472
+ switchGeneralLocation(raw: unknown, authorized: () => boolean, execution: SettingsExecution): Promise<{
473
+ started: boolean;
474
+ message: string;
475
+ }>;
476
+ /** An offline PC or a confirmed binding boundary holds old waiting input; it never becomes another conversation's queue. */
477
+ private holdGeneralOldDeliveries;
478
+ generalLocationDeliveryHold(name: string): string | null;
479
+ private generalLocationAttention;
480
+ nativePaneFor(name: string, config: InstanceConfig, assertCurrent: () => void): Promise<import("./native-pane-lifecycle.js").NativePaneLifecycle>;
481
+ recoverNativePane(name: string, launchId: string, authorized: () => boolean): Promise<void>;
482
+ holdNativePaneRecovery(name: string, error: unknown): boolean;
483
+ startFreshNativePane(name: string, launchId: string, sessionId: string | null, authorized: () => boolean): Promise<void>;
484
+ nativePanePinnedSession(name: string): string | null;
485
+ onNativePaneRecoverySettled(name: string): void;
486
+ setNativePanePaused(name: string, paused: boolean): void;
487
+ closeRetainedNativePane(name: string): Promise<void>;
488
+ reconcileNativePaneBeforeStart(name: string, daemon: Daemon): Promise<boolean>;
489
+ /** M-2255: the Windows runtimes' switches the fleet's own state reflects (null until the start-up has applied them). */
490
+ private runtimeEffects;
491
+ private runtimeEffectsScheduled;
492
+ private localPaneDrain;
493
+ private remotePaneDrain;
494
+ /** Revoke admissions synchronously; keep the captured transport only long enough for exact owned closes. */
495
+ private drainNativeRuntime;
496
+ /**
497
+ * M-2255: Settings → Runtime's switches (fleet.yaml `runtimes`, or their environment override) in force — set each time
498
+ * the configuration in force changes (a load, a save, a reload's rollback), next to the web authority's. Every gate reads
499
+ * them at once; what the fleet itself holds (paired computers' connections, this PC's Windows process, agents' tool
500
+ * sessions) follows just after, outside the save that changed them (applyRuntimeSwitches): no restart is needed.
501
+ */
502
+ /** S-51: the Hub switches follow the configuration in force (load, save, reload rollback), like the runtime ones. */
503
+ private observeHubSwitches;
504
+ /** Reads the raw configuration at run time (the newest wins); off and never started: returns before any import. */
505
+ private applyHubSwitches;
506
+ /** M-2682: the one writer for sealed Hub settings, created with the Hub runtime. */
507
+ private hubSettingsWriter;
508
+ /** Single flight: one import, one runtime, assigned once; every caller (and Stop) gets that same runtime. */
509
+ private hubRuntimeCreated;
510
+ /**
511
+ * S-51 PR 2b: while the member switch is on, the local owner's "Connect to a Hub" backend (S3c's pairing API) is
512
+ * attached, paired or not; switched off, it is detached. A binding change re-composes the member side.
513
+ */
514
+ private observeHubMemberPairing;
515
+ /**
516
+ * Disconnect: every published exposure is withdrawn and saved before the disconnect reports success. Through the
517
+ * running member's API, or — held or not composed — directly in the member's own store; a failure here makes the
518
+ * disconnect report "unsaved" (S3c), so consent never outlives the disconnect.
519
+ */
520
+ private hubMemberWithdrawAll;
521
+ /**
522
+ * The Hub exposure picker's agents (docs/design/hub-representative-agent.md): every configured instance normal
523
+ * delivery addresses, General included, shown by its display name. The dedicated Hub daemon is not a fleet instance.
524
+ */
525
+ private hubMemberAgents;
526
+ /** Same cached usage source as the owner's rail, scoped to the representative's CLI and credential profile. */
527
+ private hubAgentQuota;
528
+ /**
529
+ * A published representative's lifecycle token (#3145, #3147 review): a DURABLE incarnation id per agent name, rotated
530
+ * whenever its backend, folder or runtime changes and dropped when the instance is removed. A replacement (remove and
531
+ * re-add, even with the same name and config, across restarts) or any retarget — including A→B→A — gets a new id, so
532
+ * earlier consent never matches again without an explicit republish. Stopping or pausing changes nothing.
533
+ */
534
+ private hubAgentToken;
535
+ private hubIncarnationsPath;
536
+ /**
537
+ * M-2451 (#3147 residual): written beside hub-member/, in the data directory itself, when an invalidation could not be
538
+ * made durable in hub-member/. A later process that finds it invalidates every incarnation before handing out any
539
+ * token, so a restart never revives consent the earlier process had to withdraw (A→B→A, or a removal, while hub-member/
540
+ * was unwritable).
541
+ */
542
+ private hubIncarnationsMarkerPath;
543
+ /** Whether this process has settled the incarnations on disk (the marker handled, the file proven writable). */
544
+ private hubIncarnationsSettled;
545
+ /**
546
+ * Once per process, before the first token: an invalidation an earlier process could not persist (the marker) clears
547
+ * every incarnation; and an existing file must be rewritable here, else this process is broken (no token at all) —
548
+ * an incarnation this process could not rotate must never be handed out. Fails closed: any doubt marks it broken.
549
+ */
550
+ private settleHubIncarnations; /**
551
+ * #3147 r2: set when an invalidation could not be made durable in any way (neither the atomic write nor removing the
552
+ * file worked). From then on this process hands out no representative token at all, and the transitions the fleet
553
+ * controls (a config save, a removal) are refused instead of applied.
554
+ */
555
+ private hubIncarnationsBroken;
556
+ private readHubIncarnations;
557
+ /**
558
+ * Persist the incarnation map: "written", or — when the atomic write fails — "cleared": the whole file is removed, which
559
+ * durably invalidates EVERY earlier incarnation (all consent then needs a republish; never a revival). Throws (and
560
+ * marks the process broken) only when neither is possible.
561
+ */
562
+ private writeHubIncarnations;
563
+ /** The agent's durable incarnation id (create: make one if none; else null). A changed fingerprint rotates it. */
564
+ private hubAgentIncarnation;
565
+ /**
566
+ * Every configuration in force: rotate a recorded agent's incarnation when its backend/folder/runtime changed; drop
567
+ * removed ones. strict (a config save the fleet is about to write): a failure to make that durable throws, so the save
568
+ * is refused instead of applied. Otherwise (a load or reload of a hand-edited file) a failure is logged — the
569
+ * invalidation then is the cleared file, or, if nothing could be written, this process hands out no token at all.
570
+ */
571
+ private observeHubAgentIncarnations;
572
+ /** A removed instance's incarnation goes with it (a later instance of the same name is a new one). strict: throw if not durable. */
573
+ private forgetHubAgentIncarnation;
574
+ /**
575
+ * A Hub question to its representative agent: ordinary cross-instance delivery (idle gate, wake, retries), from the
576
+ * reserved Hub sender with the Hub-issued correlation id. beforeInput runs immediately before the IPC hand-off.
577
+ */
578
+ private deliverHubQuestion;
579
+ /** S-51: why the Hub (or this fleet's Hub membership) is not running, if it is held. Empty while off or running. */
580
+ getHubHolds(): readonly import("./hub/runtime.js").HubHold[];
581
+ hubBrowserCertificate(): import("./hub/browser-certificate.js").HubBrowserCertificateControl | null;
582
+ hubRetention(): import("./hub/retention.js").HubRetentionControl | null;
583
+ /** M-2682: an unfinished sealed-settings commit; Hub setting saves wait until recover() has run. */
584
+ hubSettingsBusy(): boolean;
585
+ /** #3298 S-89: this fleet's own Hub offers group permissions (the page mark that shows Settings → Hub's Group permissions row). */
586
+ hubGroupPermissions(): boolean;
587
+ private observeRuntimeSwitches;
588
+ /**
589
+ * Turned off: what it allowed ends now — the paired computers' connections (their agents show as offline) or this PC's
590
+ * Windows process (a turn in progress is cancelled, as when the fleet stops), and those agents' tool sessions.
591
+ * Turned on: the Windows agents are registered and their chat history read, as at start-up.
592
+ */
593
+ private applyRuntimeSwitches;
594
+ /** An unavailable opt-in runtime must not prevent the Linux fleet from starting or restoring its own history. */
595
+ private initializeNativeInstances;
596
+ /** Native CLIs are headless: the manager owns the durable delivery generation instead of a tmux daemon. */
597
+ private deliveryBootId;
328
598
  private rawFleetConfig;
599
+ /**
600
+ * S-51 (#3095, experimental, off by default): the Hub runtime. src/hub/runtime.js is imported only once a Hub switch
601
+ * (hub.enabled / hub_member.enabled) is on; while both are off nothing Hub-related loads, opens or listens.
602
+ */
603
+ private hubRuntime;
604
+ /** S3c's currentBinding reader, loaded with the pairing API (only while the member switch is on). */
605
+ private hubMemberBinding;
606
+ /** The member link as the "Connect to a Hub" view shows it (S5's client lifecycle). */
607
+ private hubMemberLink;
608
+ /** OutboundContext: the Hub representative's answer hook (null: no member service running, or not a Hub answer). */
609
+ hubReport(input: {
610
+ correlationId: string;
611
+ caller: string;
612
+ text: string;
613
+ callerCurrent(): boolean;
614
+ extras?: import("./hub-report-target.js").HubReportExtras;
615
+ }): Promise<import("./hub-report-target.js").HubReportOutcome> | null;
616
+ /** The member side's pane-failure hook for a Hub-issued correlation id (else null). */
617
+ private hubDeliveryFailed;
618
+ /** The member side's report_result hook for HUB_REPORT_TARGET while a representative service runs (else null). */
619
+ private hubReports;
620
+ /** The one in-flight creation (single flight): overlapping first observations share it, Stop waits for it. */
621
+ private hubRuntimeInit;
622
+ private hubEffectsReady;
623
+ private hubEffectsScheduled;
624
+ private hubHolds;
625
+ /** M-2457 §6 rule 2: the fleet is held — an old tmux server is still on the socket and AgEnD can't prove it its own. */
626
+ private tmuxHold;
627
+ /** M-2457 §6 rule 3: instances held by an old 2.3 window AgEnD could not prove its own. */
628
+ private readonly legacyWindowHolds;
329
629
  private rawFleetDocument;
330
630
  /** #2208: the paths a saveFleetConfig() wrote, for its check that nothing else changed. */
331
631
  private fleetDocumentWrites;
@@ -341,7 +641,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
341
641
  get primaryWorld(): AdapterWorld | undefined;
342
642
  readonly routing: RoutingEngine;
343
643
  get routingTable(): Map<string, RouteTarget>;
344
- instanceIpcClients: Map<string, IpcClient>;
644
+ instanceIpcClients: Map<string, InstanceClient>;
345
645
  scheduler: Scheduler | null;
346
646
  private configPath;
347
647
  /** SIGHUPs received before startAll finishes are replayed once startup is safe. */
@@ -479,6 +779,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
479
779
  private kiroMigrationRuns;
480
780
  /** #1386 "Needs you": the list, its live chat messages and Acknowledge. Started with the fleet (finishStartup). */
481
781
  private needsYou;
782
+ /** #3292: "Keep sign-in alive" (signin-keepalive.ts); built at startup, stopped at shutdown. */
783
+ private signInKeepAlive;
784
+ private hubExecutionAttention;
482
785
  private missedOfflineStore;
483
786
  private configHistory;
484
787
  private configHistoryTimer;
@@ -518,6 +821,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
518
821
  private startupDashboard;
519
822
  private adapterState;
520
823
  private adapterRetryInFlight;
824
+ /** #3365 review P2: connections whose adapter could not be confirmed stopped — none is admitted for them until a restart. */
825
+ private adapterTeardownUnknown;
521
826
  /** Web Settings secret rotation is deliberately separate from reconnect
522
827
  * recovery: a rotation must build a fresh provider client with the new token,
523
828
  * and stale callbacks from the old client must not win. */
@@ -565,6 +870,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
565
870
  private previewInputs;
566
871
  private healthPortRetried;
567
872
  private updateCheckTimer;
873
+ /** M-2738: the last update check's answer, for the web (null until the first check settles). */
874
+ private updateCheckState;
875
+ /** M-2738: a web "check now" in flight, and when the last one ran (one a minute at most). */
876
+ private updateCheckNow;
877
+ /** M-2738: a web start's Idempotency-Key → its answer (a retried request never starts a second update). */
878
+ private webUpdateStarts;
879
+ /**
880
+ * M-2738 (Prism #3505 P2-2): this fleet's own claim on a web-started update, from admission until its updater exits
881
+ * (or was never launched). The progress marker expires after 15 minutes so a crashed update cannot silence incident
882
+ * reports; that expiry never proves the update ended, so it never admits a second one while this is held.
883
+ */
884
+ private webUpdateOwned;
568
885
  private updateProgressTimer;
569
886
  private updateProgressEditRunning;
570
887
  private lastUpdateProgressText;
@@ -707,6 +1024,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
707
1024
  /** #2855: a trusted guest's searches, per account. */
708
1025
  readonly guestSearches: OfficeWriteLimiter;
709
1026
  private officeSharesInstance?;
1027
+ /** #2861: when each instance was last talked to and answered (no words), for share links' dialogue box. */
1028
+ readonly officeTalk: OfficeTalk;
710
1029
  /**
711
1030
  * #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of
712
1031
  * their own (a manager and lease of its own: never the fleet's one tunnel lane nor the public link's preview tunnel).
@@ -785,6 +1104,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
785
1104
  * authorizing revoked links and cookies until the fleet restarted.
786
1105
  */
787
1106
  private settingsGeneration;
1107
+ /** #2942: the settings baseline the agent-requested Windows changes are checked against (set with the gate). */
1108
+ private settingsBaselineReader;
788
1109
  private settingsRuntimeRevision;
789
1110
  private settingsConfirmation;
790
1111
  private settingsControl;
@@ -793,32 +1114,258 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
793
1114
  private queueSettingsOperation;
794
1115
  private settingsGate;
795
1116
  /**
796
- * #2170: a held change confirmed by the request itself — only when ALL hold, else the chat card or the host CLI, as
797
- * before:
798
- * - the session is web-verified (#1939: its account confirmed this browser on Discord or Telegram), asked now;
799
- * - the change's effect owners are known and on one platform (settingsChatAuthority — the chat card's own rule), the
800
- * verified account is on that platform and an admin of every one of them;
801
- * - a chat card could have been asked: a connected General on that platform the change does not affect (else the
802
- * change goes to the host CLI, as before) — the General that then hears of it;
803
- * - and, at execution (store.decide asks `current()` again): still web-verified under the same session and account
804
- * (not expired, revoked, signed out or the switch turned off), still those owners' admin, still a General a card
805
- * could go to, the fleet unchanged.
806
- * What it rests on: the account's one confirmation of this browser (#1939), kept for the session until it is revoked,
807
- * expires or signs out — not a fresh confirmation per Apply. Whoever uses that verified session (a browser left signed
808
- * in, its cookie) confirms the same way. A public link never qualifies (evaluateWebAuthority refuses it). General
809
- * still hears it: a notice, not a step.
1117
+ * AGEND-122 (upstream #3486, R1): a held change confirmed by the request itself — by the role of whoever asks, not by a
1118
+ * proof given once per browser. A signed-in human fleet admin on a web cookie session may press Apply now from wherever
1119
+ * the dashboard is reached (this computer, a LAN or tailnet name, a link), for every kind of change, on a chat fleet and
1120
+ * on a web-only one alike. settings-role.ts has the checks, asked of the live session now and again at execution:
1121
+ * - a cookie session of an admin (a guest, a read-only session, a header token, the CLI and an agent's request never);
1122
+ * - the owner's own knobs: the web authorization switch, "Only this computer can authorize", and the link option of a
1123
+ * link the session arrived over;
1124
+ * - a chat account is still an admin of its connection, and of every connection the change touches (the scope the
1125
+ * store holds; when that is not known, its own connection's admin list is all there is to ask).
1126
+ * It no longer asks that a chat card could have been posted, that the account confirmed this browser in a DM (#1939),
1127
+ * or that the host's own session confirms: those were what sent a remote admin to the AgEnD computer. The chat card
1128
+ * stays another way to confirm; General is told of a change a chat account confirmed here, when one can be.
810
1129
  */
811
1130
  private settingsSelfConfirmation;
812
- /** #2170: the Generals a chat card could be posted in (promptSettingsChange's rule): connected, on the platform, unaffected. */
1131
+ /**
1132
+ * AGEND-122 (Prism P2): whether the ordinary New Agent shortcut — created at once, web-confirmed, with no held change — is open to
1133
+ * this request. It is the same policy as Apply now: refused where "Only this computer can authorize" is on and this is not the
1134
+ * AgEnD computer, and off the computer for an admin whose own "ask for my code" switch is on (the creation then waits as a held
1135
+ * change and takes their code). Everything else is as before the role existed.
1136
+ */
1137
+ private settingsDirectCreationAllowed;
1138
+ /** AGEND-122: this request's role over a held change — its cookie session asked afresh each time (settings-role.ts). */
1139
+ private settingsRole;
1140
+ /**
1141
+ * AGEND-122 (upstream R1): a change that opens a link, or one that changes a secret, confirmed from another device always
1142
+ * posts a Notice — the audit trail alone is not what the owner sees. Null: not one of those, or confirmed on this computer.
1143
+ */
1144
+ private settingsRemoteNoticeKind;
1145
+ /**
1146
+ * Where that Notice goes: a web-only fleet's dashboard Notices; a chat fleet's General, else its primary connection's notice
1147
+ * target (notifyFleetError) — and when nothing could be posted there, the web Notices, which a chat fleet's dashboard then
1148
+ * shows. Never throttled, and never silent. It names the change as the card showed it (redacted), who confirmed and how.
1149
+ */
1150
+ private postSettingsRemoteNotice;
1151
+ /**
1152
+ * A security Notice that must not be silent: where a fleet notice goes (General, else the primary connection's notice target,
1153
+ * else a web-only fleet's dashboard Notices) and, when nothing could be posted there, the web Notices store directly — which a
1154
+ * chat fleet's dashboard then shows (recordWebNotice itself refuses a chat fleet). Never throttled; redacted like any Notice.
1155
+ */
1156
+ private postFleetSecurityNotice;
1157
+ /** Who an authenticator action is named after in its Notice. */
1158
+ private adminName;
1159
+ /**
1160
+ * AGEND-122: a chat account confirms a change only as an admin of every connection it touches — settingsChatAuthority's own
1161
+ * rule, without needing a General to post to: the scope the store holds (a scope not known: none, fail closed), and, for a
1162
+ * change with `primaryGeneral` (the Hub, the connection list and order, whole-fleet sensitive settings), the connection that owns
1163
+ * the primary General too. Every connection involved, the account's own included, is configured exactly once and on one platform
1164
+ * (user ids are per platform). Asked at entry and again by `current()`.
1165
+ */
1166
+ private settingsAccountMayConfirm;
1167
+ /**
1168
+ * AGEND-122 (upstream #3486, per admin): each admin's own stricter switch — off by default, kept with their own authenticator
1169
+ * (web-remote-access.ts) and never in fleet.yaml. While it is on, THEIR confirmations from a page that is not the browser on the
1170
+ * AgEnD computer itself do not press Apply now: each takes the code of their own app, bound to that one change
1171
+ * (settingsTotpConfirm). Another admin is never asked, and cannot turn it on or off for them. The computer's own browser is not
1172
+ * asked. The switch lives in the app's record, so it can only be on while the app is set up.
1173
+ */
1174
+ private strictFor;
1175
+ /**
1176
+ * Who is asked for the code: a session with a role over a held change (settings-role.ts) that is not on this computer,
1177
+ * while the option is on. The role carries every check Apply now has — the web authorization switch, "Only this computer
1178
+ * can authorize" (Q6), the link options, a chat account still an admin of the connections the change touches — asked at
1179
+ * entry and again by `current()` at execution, so a demoted admin's pending change never runs. One refusal on top: a change
1180
+ * that opens a link is never confirmed over a link (the public gateway, bound by the gateway itself, never by a header), the
1181
+ * code or not. The code is the authority; the session only carries it.
1182
+ */
1183
+ private settingsCodeSession;
1184
+ /** One look at a code, for every place that asks for one: the fleet-wide wrong-code limit and a clock that looks off, logged and noticed the same way. */
1185
+ private checkAuthenticatorCode;
1186
+ /**
1187
+ * AGEND-122: a page that is not the browser on the AgEnD computer itself — a LAN or tailnet connection (a Host that is
1188
+ * not loopback, a forwarding header, a peer that is not this machine) or a link. Said to the card so it names no host
1189
+ * command and no "go to that computer" step the reader cannot take; asked per request and never a check: what a page may
1190
+ * confirm is still settingsSelfConfirmation / settingsCodeSession, and the card's wording is all this changes.
1191
+ */
1192
+ settingsPageIsRemote(req: IncomingMessage): boolean;
1193
+ settingsTotpState(store: SettingsConfirmationStore, req: IncomingMessage, id: string): "ready" | "not_set_up" | "on_host" | "host_only" | null;
1194
+ /**
1195
+ * The code, checked: the change's digest first (a stale page never burns a code), then one use per time step and the
1196
+ * fleet-wide wrong-code limit (web-remote-access.ts), then a confirmation asked again at execution (`current`) — the same
1197
+ * session and role, the same enrolment (an app replaced, or removed and set up again, while the change waits ends it for good).
1198
+ */
1199
+ settingsTotpConfirm(store: SettingsConfirmationStore, req: IncomingMessage, id: string, code: string, digest: string): {
1200
+ label: string;
1201
+ current(): boolean;
1202
+ audit?: Record<string, unknown>;
1203
+ done?(view: SettingsPendingView): void;
1204
+ } | {
1205
+ error: "wrong" | "paused" | "unavailable" | "not_here" | "changed";
1206
+ retryAfterMs?: number;
1207
+ };
1208
+ /**
1209
+ * alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
1210
+ * post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
1211
+ * 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
1212
+ * Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
1213
+ * still that owner now (this computer, not revoked, signed out or run out), still a fleet with no chat connection,
1214
+ * never over the public link. Anyone else — a guest, a LAN or public-link session, a chat-connected fleet's admin —
1215
+ * gets nothing (a chat fleet keeps General's card as its way).
1216
+ */
1217
+ /**
1218
+ * #2997 review (Prism P2): how many times an agent's request came or was decided — in a web-only fleet's status frame,
1219
+ * so a page that never hears the stream's ping (one polling /ui/poll, one reconnecting, a tab from before the upgrade)
1220
+ * reads the list again when it moves. A count, nothing more.
1221
+ */
1222
+ private agentProposalsRev;
1223
+ private agentProposalOwner;
1224
+ /**
1225
+ * Refs #3061 (P2a): the new-device approval's one authority — the same one that decides an agent's request: this web-only
1226
+ * fleet's owner, asked of the LIVE session each time (a sign-out, an expiry, a revocation, the authority switch or
1227
+ * "Only this computer can authorize" turning a session into a non-owner is seen at once). A LAN session that signed in
1228
+ * with a one-time code, a session a device approval made, a guest, a chat fleet's admin and the CLI's header token are
1229
+ * none of them this: they are told so, and learn nothing about any request.
1230
+ */
1231
+ private deviceApprovalOwner;
1232
+ /**
1233
+ * Refs #3061 (auth-api): device-code sign-in is offered — a web-only fleet with web authorization on. With
1234
+ * `web.verified_authority.enabled: false` no one is an owner (liveOwner → null), so no one could approve: the three
1235
+ * `/auth/device-login*` routes answer 404 and the sign-in page shows no button. "Only this computer can authorize"
1236
+ * does not close it: this computer's own session can still approve.
1237
+ */
1238
+ deviceLoginAvailable(): boolean;
1239
+ /** Refs #3061 (P2b): `web.login_qr` (default off), read per page served — the sign-in page then draws the approve link's QR code. */
1240
+ loginQrEnabled(): boolean;
1241
+ /**
1242
+ * GET /ui/devices — the one device list, for every fleet (AGEND-138, #3486): is this a web-only fleet, may THIS session
1243
+ * approve a new device (web-only: the verified owner) and end the others' (`canEndOthers`), and — to an admin session,
1244
+ * never to a guest or the CLI's header token — every signed-in session of any tier, one row each (webDeviceRows).
1245
+ * `owner`: the verified owner (web-only: this computer's admin here or from outside; a chat fleet: an admin whose chat
1246
+ * account confirmed this session). `authority`: web authorization is on; with it off nobody is an owner, so on a web-only
1247
+ * fleet nobody may add a device or sign another out and the page says so.
1248
+ */
1249
+ webDevicesStatus(req: IncomingMessage): {
1250
+ webOnly: boolean;
1251
+ owner: boolean;
1252
+ authority: boolean;
1253
+ canEndOthers: boolean;
1254
+ devices: WebDeviceRow[];
1255
+ };
1256
+ /**
1257
+ * AGEND-138 (#3486): which sessions may this ADMIN request sign out — one rule for every way in (POST /ui/devices/signout,
1258
+ * DELETE /auth/sessions[/<handle>]) and for the list's `canSignOut`; asked of the live session each time. Null: not an
1259
+ * admin session (a guest or read-only one ends only its own account's, auth-api; the header token none).
1260
+ * - a web-only fleet: the verified owner ends any; every other admin only itself (`any: false`);
1261
+ * - a fleet with a chat connection: an admin ends their OWN other devices (the same chat account) and any guest's or
1262
+ * read-only one; ANOTHER admin's devices only that admin. Every admin sign-in there records its account (`owner`: /web,
1263
+ * /dashboard and the per-admin authenticator); only a session with NO chat account (the host's own `agend web --code`,
1264
+ * or one persisted before accounts were recorded) counts as the host's — one principal that only another such session
1265
+ * may end, and that ends no chat admin's. It does not re-check that the account is still an admin (an existing
1266
+ * limitation of every admin API; follow-up).
1267
+ * Revoke-all (`revokeWebSessions`, /dashboard revoke) is the host's emergency button and is not this rule.
1268
+ */
1269
+ private sessionEndRule;
1270
+ /**
1271
+ * AGEND-138: auth-api's narrowing of `DELETE /auth/sessions[/<handle>]` for an admin. Three answers, never confused:
1272
+ * a predicate (what this caller may end), `undefined` (a web-only fleet: no narrowing here, its own owner check stands) and
1273
+ * `null` — the caller could not be authenticated AGAIN just now (expired or signed out since auth-api's first check): a denial,
1274
+ * which must never be read as "no restriction" (PR #3553 review).
1275
+ */
1276
+ endableSessions(req: IncomingMessage): ((r: SessionRecord) => boolean) | undefined | null;
1277
+ /**
1278
+ * Refs #3061 (P2b), AGEND-138: the device list — every signed-in session of any tier, newest activity first: its tier,
1279
+ * how it was approved, whether it carries owner authority, whether it is the reader's own, and whether the reader may sign
1280
+ * it out (and if not, why). Only an admin session reads it: a guest, a read-only session and the header token get none,
1281
+ * so no one sees another person's devices unless they are an admin.
1282
+ *
1283
+ * `verified` is the §3 verdict for an admin session as it would be used from where it signs in (a host session from this
1284
+ * computer, a session from outside over the link, a chat account's confirmed one): one that signed in with a one-time
1285
+ * code or a device approval is not an owner until the authenticator vouches for it. Display only — the checks that act
1286
+ * on it run again at each use.
1287
+ */
1288
+ private webDeviceRows;
1289
+ /**
1290
+ * Refs #3061 (P2b): may this request's session end ANOTHER session — one signed in elsewhere, or all of them (auth-api
1291
+ * `DELETE /auth/sessions…`, which an admin session could always do). On a web-only fleet that is the verified owner's:
1292
+ * a session a code or a device approval made is signed in but not an owner, and could otherwise sign out the owner's
1293
+ * own. A fleet with a chat connection: yes for an admin, within endableSessions' rule (AGEND-138). Ending one's OWN
1294
+ * session is never this.
1295
+ */
1296
+ mayEndOtherSessions(req: IncomingMessage): boolean;
1297
+ /**
1298
+ * Refs #3061 (P2b), AGEND-138: POST /ui/devices/signout {handle} — an admin ends another signed-in session, by the one
1299
+ * rule (sessionEndRule), asked of the live session each time. A web-only fleet: only the verified owner, and a non-owner
1300
+ * is refused (403 `owner_required`) BEFORE any handle is looked up, so it learns nothing about which handles exist. A chat
1301
+ * fleet: any admin for their own devices and any guest's or read-only one; another admin's device is refused (403
1302
+ * `other_admin`). Never the reader's own session here (Sign out is /auth/logout). The device's authorization goes with
1303
+ * it, so a copy of its cookie is nobody's.
1304
+ */
1305
+ webDeviceSignOut(req: IncomingMessage, handle: string): {
1306
+ status: number;
1307
+ body: Record<string, unknown>;
1308
+ };
1309
+ /**
1310
+ * Refs #3061 (P2a): look a new device's code up (for the confirm screen), approve it, or deny it — the verified owner's,
1311
+ * on a web-only fleet. The answer is the request as it now stands. Approving only marks the request approved: the new
1312
+ * browser makes its own session when it next asks (auth-api POST /auth/device-login/poll), so no credential passes from
1313
+ * here to there — not in the answer, not through the fleet. A wrong code counts against one fleet-wide breaker; while
1314
+ * it is open every code (a right one too) waits.
1315
+ */
1316
+ webDeviceLoginAct(req: IncomingMessage, op: "lookup" | "approve" | "deny", code: string): {
1317
+ status: number;
1318
+ body: Record<string, unknown>;
1319
+ };
1320
+ /** alpha.2: the agents' requests waiting for this web-only fleet's owner, or null when the reader is not that owner. */
1321
+ webAgentProposals(req: IncomingMessage): SettingsPendingView[] | null;
1322
+ /**
1323
+ * alpha.2: the owner's Approve or Reject of an agent's request. The store claims it before its first await (a second
1324
+ * click, from here or the host, finds it no longer pending) and asks the owner, the request (its fleet generation and
1325
+ * Windows switch) and the target machine again before and while it runs the same creation code the web uses. The
1326
+ * answer is always the request as it now stands: applied (with the new agent's name), rejected, expired, stale or
1327
+ * failed (with its reason), or already decided.
1328
+ */
1329
+ webDecideAgentProposal(req: IncomingMessage, id: string, decision: "confirm" | "reject"): Promise<{
1330
+ status: number;
1331
+ body: Record<string, unknown>;
1332
+ }>;
1333
+ /** A confirmation belongs to the server route/lifetime, not the availability of General's model. */
1334
+ private settingsGeneralRoute;
1335
+ /** Connected, same-platform, unaffected server routes can post cards even while the model is offline. */
813
1336
  private settingsNoticeGenerals;
814
1337
  /**
815
1338
  * #2170: General's notice of a change confirmed from the web — the first General a chat card could have been posted
816
1339
  * in, plain text, no mentions. Information only: nothing waits on it.
817
1340
  */
818
1341
  private settingsWebConfirmedNotice;
1342
+ /** The primary General: the General on the primary connection, else the first one — and the connection that owns it. */
1343
+ private settingsPrimaryGeneral;
819
1344
  /** Exact configured effect owners; this does not depend on prompt location. */
820
1345
  private settingsChatAuthority;
1346
+ /**
1347
+ * #2942: a Windows create or settings change an AGENT asked for. Nothing is created or written here: it becomes a
1348
+ * pending settings change whose General card a fleet admin must confirm (promptSettingsChange — the same admin rule
1349
+ * as every card). Its apply runs the same creation/patch code the web uses, inside the store's SettingsExecution, with
1350
+ * the confirming admin, the Windows switch and the target machine asked again at that moment.
1351
+ */
1352
+ private proposeAgentWindowsChange;
1353
+ /** #2942: create_instance with runtime "windows" from an agent: validated like the web, then held for General. */
1354
+ requestWindowsCreate(requester: string, rawArgs: Record<string, unknown>): Promise<SettingsPendingView>;
1355
+ /** #2942: update_instance_config on a Windows agent: only the fields the web editor allows, held for General. */
1356
+ requestWindowsConfig(requester: string, name: string, patch: Record<string, unknown>): Promise<SettingsPendingView>;
1357
+ /**
1358
+ * D3: whether a General could take this change's confirmation card now — the same authority and routes
1359
+ * promptSettingsChange posts by. False: it would wait for the host's command (confirmation kind host_cli).
1360
+ */
1361
+ private settingsCardPossible;
821
1362
  private promptSettingsChange;
1363
+ /**
1364
+ * alpha.6 feedback #2c: why no General could take a change's confirm card, so the page says what is missing in plain words
1365
+ * (the user's decision hmsg-77256f66: never "type a host command"). `platform` null: the authority is unknown or spans
1366
+ * platforms. `attempted`: a General route existed and posting to it failed.
1367
+ */
1368
+ private settingsNoCardReason;
822
1369
  private kiroMigrateDeps;
823
1370
  /**
824
1371
  * #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
@@ -853,6 +1400,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
853
1400
  sseHeartbeatMs: number;
854
1401
  /** The dashboard's login codes. Memory only: a code that outlives the process is a code nobody can prove was not copied. */
855
1402
  private webLoginCodes;
1403
+ /** Refs #3061 (P2a): device-code sign-in requests (in memory; web-device-login.ts). Read by auth-api as `webDeviceLogins`. */
1404
+ private webDeviceLogins;
856
1405
  /**
857
1406
  * #1920 step 4: guests' codes, apart from the admins' — one per account, so no guest's `/web` withdraws another's or
858
1407
  * an admin's code (#2093 review), at most 32 at once. Local sign-in only for now (audience "local").
@@ -992,6 +1541,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
992
1541
  private reconcileQueueWorkers;
993
1542
  private createQueueWorker;
994
1543
  private dispatchDurableDelivery;
1544
+ /** The ordinary durable lane, with provider completion proof instead of terminal/IPC submission proof. */
1545
+ private dispatchNativeDurableDelivery;
1546
+ /** A runtime's persisted completion can outlive this manager. Resolve its original delivery fence, never send
1547
+ * the prompt again, and reconstruct a missing peer report using the same durable operation ID. */
1548
+ private reconcileRemoteDelivery;
995
1549
  private waitForDurableLaneRelease;
996
1550
  private spawnConcurrency;
997
1551
  /** #1685: "elevated" or "critical" while host memory pressure slows or holds new agents; otherwise null (an
@@ -1112,6 +1666,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1112
1666
  private tightenInstanceDirectories;
1113
1667
  /** AgEnD package version (for the Settings "current version" / What's New). */
1114
1668
  get currentVersion(): string;
1669
+ get currentBuild(): import("./build-provenance.js").InstalledBuild;
1115
1670
  /**
1116
1671
  * Resolve a slash-command target in a channel. Classic channels are looked up
1117
1672
  * per-bot (same-channel multi-bot); a fleet-topic instance is found via the
@@ -1131,6 +1686,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1131
1686
  /** SIGUSR1: full process reload. Names who asked (#1120). */
1132
1687
  private onFullRestartSignal;
1133
1688
  private handleUpdateSlash;
1689
+ /**
1690
+ * The update itself, for slash `/update` and the web's Update (M-2738): the installed `agend`, verified, launched
1691
+ * independently with its log — or a failure in the progress marker. `stillAllowed` is asked again once the awaits
1692
+ * are done (the asker may have lost the right, or the fleet begun stopping, meanwhile).
1693
+ */
1694
+ private launchInstalledUpdate;
1134
1695
  private handleProfileSlash;
1135
1696
  /** Typed /profile belongs only to Telegram's General dispatcher. */
1136
1697
  runProfileCommand(msg: InboundMessage, seconds?: string): Promise<void>;
@@ -1230,6 +1791,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1230
1791
  viewHistory(name: string, q: ViewHistoryQuery): Promise<ViewHistoryAnswer | null>;
1231
1792
  /** #1218: GET /ui/steps — an instance's steps, read on demand (null: no such instance). */
1232
1793
  logSteps(name: string, q: LogQuery): Promise<LogAnswer | null>;
1794
+ private subagentReader;
1795
+ subagentRuns(name: string): Promise<import("./subagent-service.js").SubagentAnswer>;
1233
1796
  /**
1234
1797
  * #1218: where an instance's steps are read from, resolved only when its Log asks: the transcript its daemon follows
1235
1798
  * now; for claude-code, also the path its statusline last named (so a stopped instance's Log still shows its last
@@ -1289,6 +1852,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1289
1852
  * retry brings it up, however long the backoff, and fails only once the retries give up.
1290
1853
  */
1291
1854
  private sendWhenConnected;
1855
+ /**
1856
+ * The Hub representative's hand-off (#3145): only once a connected client exists, after every reconnect/order wait,
1857
+ * the begin lease + input intent (beforeInput), then the fence and the LIVE client are checked again and the payload
1858
+ * goes in one attempt. After the intent is spent nothing here retries: false is the caller's uncertain outcome.
1859
+ */
1860
+ private handOffAfterBeforeInput;
1292
1861
  /** Poll for the instance's IPC to come back, then send. Throws if it does not. */
1293
1862
  private sendAfterIpcReturns;
1294
1863
  /**
@@ -1578,6 +2147,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1578
2147
  * Stopped/paused ClassicBot entries count too; their workspace is exactly
1579
2148
  * the one startClassicInstance builds, not this FleetManager's dataDir.
1580
2149
  */
2150
+ /** Take the startup snapshot of every active decision (text cut to 200 characters); see activeDecisions. */
2151
+ snapshotActiveDecisions(): void;
2152
+ /** The startup snapshot of active decisions, for a daemon's Active Decisions (it selects and caps its own). */
2153
+ activeDecisions(): readonly ActiveDecisionRow[];
1581
2154
  kiroPeerWorkingDirectories(name: string): string[];
1582
2155
  /**
1583
2156
  * Probe the same executable set exposed by the web backend catalog.
@@ -1676,7 +2249,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1676
2249
  * A single-use login code for the dashboard, for a channel only the operator
1677
2250
  * can read (`/dashboard`). Null while the panel is closed (no web.token).
1678
2251
  */
1679
- issueDashboardLogin(): {
2252
+ issueDashboardLogin(recipient?: {
2253
+ adapterId: string;
2254
+ userId: string;
2255
+ username?: string;
2256
+ }): {
1680
2257
  display: string;
1681
2258
  expiresAt: number;
1682
2259
  ttlMinutes: number;
@@ -1723,6 +2300,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1723
2300
  /** #1742: `/start web` from a fleet admin: the /web menu right here in the DM, for the General this bot serves. */
1724
2301
  private startWebInDm;
1725
2302
  private getPublicWebLink;
2303
+ /** The public link's wiring to this fleet (a test builds one with the tunnel itself stubbed: `ensure`, `provider`). */
2304
+ private publicWebLinkDeps;
1726
2305
  private publicLinkAutoOpen;
1727
2306
  /**
1728
2307
  * #named-link-ttl: the admin who last opened a named-tunnel link from /web, with the live binding — only while they
@@ -2020,6 +2599,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2020
2599
  beginUpdateProgress(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): void;
2021
2600
  /** Persist the public response, wait for idle, then start the canonical service restart. */
2022
2601
  requestFullRestart(adapter: ChannelAdapter, chatId: string, threadId: string | undefined, messageId: string): Promise<boolean>;
2602
+ /**
2603
+ * S-92: the same tracked reload for a web-only fleet's Settings restart — no chat message to carry its progress: the
2604
+ * marker names the web (WEB_RESTART_TARGET), a refusal is a fleet Notice, and the next fleet says it is back as one.
2605
+ */
2606
+ private requestWebFullRestart;
2607
+ /**
2608
+ * S-92: a fleet (with no chat connection) that comes up from a web-only Settings restart says it is back as a fleet
2609
+ * Notice — the restart was announced as one. Anything else (a chat restart, an update, a plain boot): nothing here.
2610
+ */
2611
+ private announceWebRestartDone;
2612
+ private launchTrackedFullRestart;
2023
2613
  private isOwnedFullRestartMarker;
2024
2614
  /** Give current work the same bounded idle grace used by graceful reload. */
2025
2615
  private waitForFullRestartIdleGrace;
@@ -2066,6 +2656,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2066
2656
  * Discord bot and while some account has a running agent, read every 30 min — the same cached read (its 5-minute TTL
2067
2657
  * still bounds the vendor calls), recorded like any other.
2068
2658
  */
2659
+ private quotaNotices;
2660
+ private stopQuotaObserver;
2661
+ private quotaNoticePolicy;
2069
2662
  private startQuotaBackgroundReads;
2070
2663
  /** #3066 §1: the latest estimates, by `provider\0metric` (what usage-api's lookup reads, synchronously). */
2071
2664
  private capacityEstimates;
@@ -2143,8 +2736,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2143
2736
  * that should be running is running
2144
2737
  * - `degraded` — reachable, but something the operator should look at (an
2145
2738
  * adapter retrying, an instance crashed or stopped)
2146
- * - `down` — the fleet cannot do its job: no adapter is connected, so no
2147
- * message can arrive or be answered
2739
+ * - `down` — no configured adapter is connected, or a dedicated Hub's
2740
+ * server mount is unavailable
2148
2741
  *
2149
2742
  * Deliberately does NOT gate the systemd watchdog — see the comment at the
2150
2743
  * WATCHDOG timer for why.
@@ -2175,6 +2768,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2175
2768
  topProcessesAt?: string;
2176
2769
  };
2177
2770
  problems: string[];
2771
+ warnings: string[];
2772
+ /** Local server mount availability; absent when the Hub server switch is off. */
2773
+ hub?: {
2774
+ server: import("./hub/runtime.js").HubServerHealth;
2775
+ };
2178
2776
  };
2179
2777
  /** Start the primary adapter (backward-compatible, sets this.adapter) */
2180
2778
  private startSingleAdapter;
@@ -2365,6 +2963,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2365
2963
  /** No chat platform is configured at all: the web dashboard is the fleet's only surface. */
2366
2964
  /** #2910: no Discord or Telegram connection at all (src/web-only-fleet.ts). */
2367
2965
  isWebOnlyFleet(): boolean;
2966
+ /**
2967
+ * S-117 story 1: the sign-in page's "no chat" words (no /web to send) — a web-only fleet, or one whose chat is not
2968
+ * connected yet (a fresh install whose bot is still being set up, or is down): /web cannot answer there.
2969
+ */
2970
+ signinWithoutChat(): boolean;
2368
2971
  /** On a fleet with no chat platform, the dashboard is where an instance-health prompt is posted (#1307 item 6). */
2369
2972
  private webOnlyPromptPlace;
2370
2973
  /** Resolves when the reply is in the web chat (#1770: after its files are copied); the caller need not wait. */
@@ -2479,6 +3082,33 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2479
3082
  * create paths. An empty or absent value supersedes nothing and needs nothing; anything else must be an id.
2480
3083
  */
2481
3084
  private decisionSupersedes;
3085
+ /**
3086
+ * The scope (and team) a new decision gets. Team membership is read from fleet.yaml now. Omitted scope: the poster's
3087
+ * team when they are in exactly one, project (this exact directory) when they are in none; in several, they choose.
3088
+ * A team decision goes only to a team the poster is in.
3089
+ */
3090
+ decisionScopeFor(instance: string, scope: unknown, team: unknown): {
3091
+ scope: "project" | "team" | "fleet";
3092
+ team?: string;
3093
+ teams: string[];
3094
+ } | {
3095
+ error: string;
3096
+ };
3097
+ /**
3098
+ * #3421 review: a team decision is only for its team's current members — reading it back through an update (even an
3099
+ * empty one) or archiving it is refused to anyone else, exactly as list/get and supersede are. The refusal names it
3100
+ * "not found", as for an id that does not exist, and changes nothing. Project and fleet decisions: as before.
3101
+ */
3102
+ decisionHiddenFrom(instance: string, id: unknown): string | null;
3103
+ /** A ClassicBot agent's own folder — where startClassicInstance launches it, and its project for decisions (#3454). */
3104
+ classicWorkspaceDir(instanceName: string): string;
3105
+ /**
3106
+ * #3454: the project root of an agent calling the agent endpoint (CLI mode), as the MCP path has it from the daemon's
3107
+ * own working directory. A fleet instance: its fleet.yaml working_directory, as before. A ClassicBot agent (not in
3108
+ * fleet.yaml): its own workspace — it used to fall back to "", one project shared by every CLI-mode ClassicBot room.
3109
+ * Anything else: null, and the caller refuses rather than guess.
3110
+ */
3111
+ decisionProjectRootFor(instance: string): string | null;
2482
3112
  handleDecisionCrudHttp(instance: string, op: string, args: Record<string, unknown>): Promise<unknown>;
2483
3113
  handleTaskCrudHttp(instance: string, args: Record<string, unknown>): Promise<unknown>;
2484
3114
  handleSetDisplayNameHttp(instance: string, name: string): Promise<unknown>;
@@ -2527,6 +3157,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2527
3157
  * channel, are seen to share it; and every connection's own General is protected, with or without a General agent.
2528
3158
  */
2529
3159
  private topicOwnership;
3160
+ /**
3161
+ * The bot an agent's configured topic is on (#3105 review, Prism P1): a fleet.yaml agent's `channel_id` (else the
3162
+ * primary connection) whatever its runtime — a per-turn Windows agent has no execution adapter
3163
+ * (getInstanceAdapterId), yet its topic is still on that bot, and must be counted as an owner and deleted through it.
3164
+ * Topic planning and ownership only; execution routing is getInstanceAdapterId's and unchanged.
3165
+ */
3166
+ private topicAdapterIdOf;
2530
3167
  /** What deleting `name`'s topic would act on: its own bot only — a bot that is not there is never substituted. */
2531
3168
  private planInstanceTopicDelete;
2532
3169
  getForumTopicDeleter(adapterId?: string): ((topicId: number | string) => Promise<void>) | null;
@@ -2613,6 +3250,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2613
3250
  private writingFleetDocument;
2614
3251
  getSettingsConfigPath(): string;
2615
3252
  removeInstance(name: string, authorization: ExplicitInstanceRemoval, execution?: SettingsExecution): Promise<void>;
3253
+ /** Shared instance metadata goes with a native identity; its Windows workspace and provider sessions stay intact. */
3254
+ private nativeInstanceRemoved;
2616
3255
  private removeInstanceOwned;
2617
3256
  startStatuslineWatcher(name: string): void;
2618
3257
  stopStatuslineWatcher(name: string): void;
@@ -2950,6 +3589,32 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2950
3589
  * should say so rather than send into a guaranteed failure.
2951
3590
  */
2952
3591
  private fleetNoticeTarget;
3592
+ /**
3593
+ * M-2457 §5: one fleet notice, the first time an upgraded home's fleet runs on AgEnD's own tmux. Marked done only once it
3594
+ * was dispatched (General, the channel's notice target, or a web-only fleet's Notices), so a start with nowhere to
3595
+ * post it tries again next start.
3596
+ */
3597
+ /** Set at fleet start (before any agent starts): this home ran agents on an earlier AgEnD's system tmux. */
3598
+ ownTmuxUpgradedHome: boolean;
3599
+ /** An upgraded home: agent state from an earlier start, and no AgEnD tmux server ever recorded (`previous`). */
3600
+ static ownTmuxUpgraded(agendHome: string, previous: unknown): boolean;
3601
+ /** Whether any instance directory holds state from an earlier start (its output log or a session id). */
3602
+ static priorAgentState(instancesDir: string): boolean;
3603
+ /** Where an upgraded home's not-yet-dispatched own-tmux notice is kept across restarts; only a dispatch clears it. */
3604
+ static ownTmuxPendingPath(agendHome: string): string;
3605
+ /**
3606
+ * Fleet start's decision, made before this start records server.json: an upgraded home is persisted as owing the
3607
+ * notice. A restart before the notice is dispatched (a slow first start; alpha.6 leg M on the real Mac) would otherwise
3608
+ * read the just-recorded server as "not an upgrade" and drop it.
3609
+ */
3610
+ static ownTmuxStartDecision(agendHome: string, previous: unknown, logger?: {
3611
+ warn: (o: object, m: string) => void;
3612
+ }): boolean;
3613
+ /** Record that this home owes the own-tmux notice (unless it was already posted). */
3614
+ static persistOwnTmuxPending(agendHome: string, logger?: {
3615
+ warn: (o: object, m: string) => void;
3616
+ }): void;
3617
+ announceOwnTmux(): void;
2953
3618
  /**
2954
3619
  * Post the daily summary where fleet-wide notices go.
2955
3620
  *
@@ -2966,10 +3631,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2966
3631
  */
2967
3632
  notifyFleetError(text: string, opts?: {
2968
3633
  throttle?: boolean;
3634
+ ack?: (delivered: boolean) => void;
2969
3635
  }): boolean;
2970
3636
  private webNotices;
2971
3637
  /** #2910 D2 (web-api): the Notices on a web-only fleet; null on any other (its General says them). */
2972
3638
  webNoticesFeed(): WebNotices | null;
3639
+ /** A web-only fleet always has its Notices; a chat fleet only once something was put there (AGEND-122: a confirmation that nothing else could carry). */
3640
+ private hasWebNotices;
2973
3641
  /** #2910 D2: the web-only fleet's Notices (web-notices.json), read on first use. */
2974
3642
  webNoticeStore(): WebNotices | null;
2975
3643
  /**
@@ -2977,6 +3645,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2977
3645
  * told as a Notice, and push it to the dashboard. False on any other fleet (its chat says it; nothing is kept).
2978
3646
  */
2979
3647
  private recordWebNotice;
3648
+ /** #3373 review P2: recordWebNotice for a notice that must be on disk first — true only once it was written. */
3649
+ private recordWebNoticeDurable;
2980
3650
  private static readonly FLEET_ERROR_THROTTLE_MS;
2981
3651
  private fleetErrorNotices;
2982
3652
  /**
@@ -2989,7 +3659,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2989
3659
  * rejection surfaces only as a warn in its .catch. True delivery confirmation
2990
3660
  * would have to make this async and change every caller.
2991
3661
  */
2992
- notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts): boolean;
3662
+ notifyInstanceTopic(instanceName: string, text: string, extraOpts?: import("./channel/types.js").SendOpts, ack?: (delivered: boolean) => void): boolean;
2993
3663
  /**
2994
3664
  * notifyInstanceTopic's routing, handing back the send itself — and which world sent it — for a caller that must
2995
3665
  * edit or delete the message later (#2897). Null when there is no adapter or no postable target (already logged).
@@ -3060,6 +3730,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3060
3730
  onAttentionChanged(name: string): void;
3061
3731
  /** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
3062
3732
  needsYouItems(): WebNeedsItem[];
3733
+ /** Enabled member composition supplies only a local attention reader, never an approval/execution callback. */
3734
+ attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null): void;
3063
3735
  /**
3064
3736
  * #1389: the org chart's structure for the web — the instances the dashboard lists (getUiStatus's names), General,
3065
3737
  * fleet.yaml's teams, each instance's description and thread link. Read on demand; the live state rides the stream.
@@ -3252,6 +3924,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3252
3924
  gateway: boolean;
3253
3925
  peer: WebPeer;
3254
3926
  instance?: string;
3927
+ authorization?: SessionAuthorization | null;
3255
3928
  }): WebAuthorityResult;
3256
3929
  private sessionAuthorizations;
3257
3930
  private sessionAuthorizationStore;
@@ -3276,6 +3949,160 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3276
3949
  * again. A fleet with a chat connection, another session, or another peer: nothing (§3 as before).
3277
3950
  */
3278
3951
  authorizeHostSession(session: SessionRecord, peer: WebPeer): void;
3952
+ private webRemoteAccessState;
3953
+ /** The authenticator, the outside switch and the wrong-code limiter (web-remote-access.json), read on first use. */
3954
+ webRemoteAccess(): WebRemoteAccess | null;
3955
+ /** "Allow connections from outside" is on (an app set up) and this is a web-only fleet. */
3956
+ private outsideOn;
3957
+ /** The link connections from outside opened, while it is open and still theirs: its exposure. Else null. */
3958
+ private outsideLink;
3959
+ /**
3960
+ * The request's live session, asked again each time `current()` is called (its own cookie authenticated anew, the same
3961
+ * handle): this web-only fleet's owner — this computer's admin, on this computer (`hostOnly`), or also signed in from
3962
+ * outside — and web-verified now. Null when it is not (a guest, a LAN session, a chat fleet's admin, nobody).
3963
+ */
3964
+ private liveOwner;
3965
+ /** Every session signed in from outside ends (and the authorizations kept for them). */
3966
+ private endOutsideSessions;
3967
+ /**
3968
+ * #1939 §10 / #3008: a stored receipt's authority as it reads now — the web authority state, and for this computer's
3969
+ * admin from outside the switch and the last revocation of remote authority (Prism P2 2).
3970
+ */
3971
+ receiptAuthorityNow(stored: HumanAuthority, state?: AuthorityState): HumanAuthority;
3972
+ /** #3008 (the sign-in page): this exposure is the outside link, open now. */
3973
+ isOutsideLink(exposureId: string): boolean;
3974
+ /**
3975
+ * What Settings shows: THIS admin's own authenticator (set up or not, when, their own "ask for my code" switch), whether they
3976
+ * may set it up or change it here and whether that asks their current code; and, for the host operator on a web-only fleet,
3977
+ * the outside switch, a wait in force and the link — its address only to this computer.
3978
+ */
3979
+ webOutsideStatus(req: IncomingMessage): {
3980
+ webOnly: boolean;
3981
+ here: boolean;
3982
+ manage: boolean;
3983
+ codeNeeded: boolean;
3984
+ strict: boolean;
3985
+ enrolled: boolean;
3986
+ enrolledAt: number | null;
3987
+ outside: boolean;
3988
+ /** #3486: what THIS admin types as the name at a new browser's authenticator sign-in (their own, never anyone else's); null: a web-only fleet needs none, or no app yet. */
3989
+ signinName: string | null;
3990
+ pausedForMs: number;
3991
+ link: {
3992
+ state: string;
3993
+ url?: string;
3994
+ expiresAt?: number;
3995
+ noExpiry?: true;
3996
+ quick: boolean;
3997
+ } | null;
3998
+ };
3999
+ /**
4000
+ * AGEND-122 (per admin): who may set up, replace or remove an authenticator, and turn its switch on or off — an admin with a
4001
+ * role over held changes (settings-role.ts) on a direct connection (never a link), on a chat fleet and a web-only one alike, and
4002
+ * only THEIR OWN (`who`: their connection and account; a web-only fleet's one admin and a chat fleet's host session are the host
4003
+ * operator's). Another admin's is never reachable from here: a stolen session can lock out at most the admin it belongs to, and
4004
+ * every such change posts a Notice to the fleet. On the AgEnD computer's own browser no code is asked. Connections from outside
4005
+ * and their switch are another thing and stay a web-only fleet's, on its own computer (liveOwner).
4006
+ */
4007
+ private authenticatorOwner;
4008
+ /**
4009
+ * Changing an app that exists — replacing it, removing it, turning its switch off — is the OWNER'S, proven by its current code off
4010
+ * the AgEnD computer, whatever the "ask for my code on confirmations" switch says (that switch is about ordinary Settings
4011
+ * confirmations; this is lifecycle ownership). With no app there is no old code to ask: a first set-up asks nothing, and the AgEnD
4012
+ * computer's own browser is never asked — the recovery controls.
4013
+ */
4014
+ private authenticatorCodeAsked;
4015
+ /** What changing the app asks of this session: nothing, or the current code (of its own app). */
4016
+ private authenticatorStep;
4017
+ /**
4018
+ * An app being set up, per session handle: whether that start was on this computer or passed the code. A set-up begun while the
4019
+ * code was not asked (the secret lives ten minutes) must not be finished by a session whose switch is on by then, and one begun
4020
+ * on this computer is not finished from another device: it never passed the code, so the finish is refused. A "code" start also
4021
+ * records WHICH app the code proved (`enrollment`, the opaque id of the owner's app at that moment, null when there was none): a
4022
+ * code is a proof about that app and about nothing that replaces it — the finish is refused once the owner's app has been
4023
+ * replaced or removed since (say, a recovery on the computer), so an earlier remote set-up can never overwrite the newer app.
4024
+ */
4025
+ private authenticatorStarts;
4026
+ /** Set up (or set up again) your own: a new secret, shown once. Null: not you. A code is asked first when your switch needs one. */
4027
+ webOutsideBeginEnrollment(req: IncomingMessage, code?: string): {
4028
+ secret: string;
4029
+ uri: string;
4030
+ expiresInMs: number;
4031
+ } | {
4032
+ error: "code_required" | "wrong" | "paused" | "unavailable" | "not_here";
4033
+ retryAfterMs?: number;
4034
+ } | null;
4035
+ /** The new app's first code: on "ok" it is now yours (the host operator's replaces the old one, ending the sessions from outside). */
4036
+ webOutsideConfirmEnrollment(req: IncomingMessage, code: string): "ok" | "wrong" | "expired" | "unsaved" | "not_here" | "full";
4037
+ /** Forget your own app (your switch with it). A code is asked first when your switch needs one. Nothing set up: nothing happens. */
4038
+ webOutsideRemove(req: IncomingMessage, code?: string): "ok" | "unsaved" | "not_here" | {
4039
+ error: "code_required" | "wrong" | "paused" | "unavailable";
4040
+ retryAfterMs?: number;
4041
+ };
4042
+ /**
4043
+ * Turn your own "ask for my code to confirm from other devices" switch on or off. On needs your app set up and asks nothing (it
4044
+ * only tightens); off asks your current code off the AgEnD computer — so a session it restricts cannot lift the restriction for
4045
+ * you without it. Never anyone else's. Either way a Notice goes to the fleet's admins.
4046
+ */
4047
+ webOutsideStrict(req: IncomingMessage, on: boolean, code?: string): "ok" | "not_enrolled" | "not_here" | "unsaved" | {
4048
+ error: "code_required" | "wrong" | "paused" | "unavailable";
4049
+ retryAfterMs?: number;
4050
+ };
4051
+ /** The switch. On: needs an app set up; the link opens. Off: it closes and every session from outside ends. */
4052
+ webOutsideSwitch(req: IncomingMessage, on: boolean): "ok" | "not_enrolled" | "not_here" | "not_allowed" | "unsaved";
4053
+ private outsideAttempt;
4054
+ private outsideOpening;
4055
+ /**
4056
+ * Open the outside link: an attempt after each delay in turn until one opens (#3008 B: twice more at most — the quick
4057
+ * link's address service limits how often it may be asked). Every attempt asks again: the switch still on, the fleet
4058
+ * running. A final failure: one Notice; the switch stays on, so the next start tries again.
4059
+ */
4060
+ private openOutsideLink;
4061
+ private closeOutsideLink;
4062
+ /** PublicWebLink.onClose for the outside link: what closed it decides what happens next (#3008 B). */
4063
+ private outsideLinkClosed;
4064
+ /**
4065
+ * #3486 (per admin; auth-api POST /auth/totp): a browser that is not signed in yet signs in as ONE admin, with
4066
+ * the code of THAT admin's own authenticator — the same per-admin app their confirmations use. Who is not found by trying the code
4067
+ * against everyone: the person types a name (`account`), which resolves — among the admins that have an app and are still admins —
4068
+ * to at most one; the page lists nobody. A name that resolves to nobody (no such name, an admin with no app, a name two admins
4069
+ * share, one no longer an admin) is answered exactly as a wrong code is, after the same work and the same counting (store.signIn).
4070
+ * A web-only fleet has one admin (the host operator): its one app, no name needed.
4071
+ *
4072
+ * Where it works: a direct connection (LAN, tailnet, the owner's own proxy — and this computer's own browser) on any fleet; on a
4073
+ * chat fleet also a public link (TOTP_SIGNIN_OVER_PUBLIC_LINK, the one switch that takes that back); on a web-only fleet a link
4074
+ * only as before (#3008): the one "Allow connections from outside" opened. "Only this computer can authorize" closes all of it.
4075
+ * What it makes: a chat admin's session is that account's own (owner), exactly as a sign-in code from the chat makes it; a web-only
4076
+ * fleet's is that fleet's admin session (and over the outside link the #3008 `remote` one, authorized as before). No authority beyond
4077
+ * that: no "Authorize this browser", nothing an agent would take as a go-ahead. Every success tells every admin (a Notice).
4078
+ */
4079
+ totpSignIn(input: {
4080
+ exposureId: string | undefined;
4081
+ peer: WebPeer;
4082
+ account: string | undefined;
4083
+ code: string;
4084
+ browser: {
4085
+ id: string;
4086
+ address: string | undefined;
4087
+ };
4088
+ knownCookie: string | undefined;
4089
+ }): TotpSignInResult;
4090
+ /** The platform handle (Discord / Telegram user name) an account last signed in to the web with, exactly as the platform gave it; undefined when none is known. */
4091
+ private signinHandleOf;
4092
+ /** Where the new-device authenticator sign-in is open: the owner's knobs and the link rules in one place (asked again as the session is made). */
4093
+ private totpSignInOpen;
4094
+ /**
4095
+ * The admin a typed name stands for, among the chat admins that have an authenticator AND are still admins of their connection: by
4096
+ * the platform user name they sign in with (Discord / Telegram handle, no "@", any case), their user id, or `connection:id`. Exactly
4097
+ * one: a name two of them answer to is nobody's here (they use `connection:id`). The loop never stops early, so it takes as long
4098
+ * for a name that is nobody's. `ident` is the normalized text, for the limiter.
4099
+ */
4100
+ private resolveSignInAdmin;
4101
+ /**
4102
+ * #3008: a session just made by totpSignIn's "ok" over the outside link is this computer's admin for its authorization's life. False: it
4103
+ * could not be admitted (its handle not saved, #3015 review r3) — the caller ends it.
4104
+ */
4105
+ authorizeOutsideSession(session: SessionRecord, peer: WebPeer, label: string): boolean;
3279
4106
  private authorityStateStore;
3280
4107
  /**
3281
4108
  * #1939 §10: the switch, "Only this computer can authorize" and the revocation epoch in force for the configuration as
@@ -3293,7 +4120,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3293
4120
  * written), what fleet.yaml says, the hosts that make the dashboard reachable from elsewhere (the warning while
3294
4121
  * loopback_only is off), and the sessions authorized now (§0): each one's device, account, and when it runs out.
3295
4122
  */
3296
- webAuthorityOverview(): {
4123
+ webAuthorityOverview(req?: IncomingMessage): {
4124
+ /** AGEND-138: this browser's own session, and whether it may revoke the others' authorization (the verified owner only). */
4125
+ you: {
4126
+ handle: string | null;
4127
+ canRevoke: boolean;
4128
+ };
3297
4129
  state: AuthorityState;
3298
4130
  configured: WebVerifiedAuthorityConfig;
3299
4131
  hours: typeof VERIFIED_SESSION_HOURS;
@@ -3309,6 +4141,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3309
4141
  }>;
3310
4142
  /** #2453 (§0.2): the admin's named-tunnel hostname, while one is configured (the named-link row shows only then). */
3311
4143
  namedHost: string | null;
4144
+ /** A fleet with no chat connection: the page words the card for the authenticator, not for Discord / Telegram. */
4145
+ webOnly: boolean;
3312
4146
  };
3313
4147
  private authorizationRequests;
3314
4148
  /**
@@ -3349,11 +4183,38 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3349
4183
  state: "none";
3350
4184
  reason: WebAuthorityRefusal;
3351
4185
  };
3352
- /** #1939 §10: revoke every web authority given so far (receipts read as none), without signing anyone out. */
3353
- revokeWebAuthority(): {
4186
+ /**
4187
+ * #1939 §10: revoke every web authority given so far (receipts read as none), without signing anyone out.
4188
+ * AGEND-138: `keep` — the session that asked (the verified owner's own): the epoch still moves, so every other session
4189
+ * and every stored receipt is ended, but this one is authorized again under the new epoch at once (§3 asked afresh,
4190
+ * with the end it already had: a revocation never stretches an authorization). A host session only where it is
4191
+ * allowed to be one — on this computer — as at sign-in.
4192
+ */
4193
+ revokeWebAuthority(keep?: {
4194
+ session: SessionRecord;
4195
+ peer: WebPeer;
4196
+ gateway: boolean;
4197
+ }): {
3354
4198
  epoch: number;
3355
4199
  durable: boolean;
4200
+ kept: boolean;
3356
4201
  };
4202
+ /**
4203
+ * AGEND-138: who may "Revoke authorization of other devices" — the verified owner only, asked of the LIVE session each
4204
+ * time. A web-only fleet: its owner (this computer's admin here, or signed in from outside). A fleet with a chat
4205
+ * connection: an admin session that is web-verified now (its account confirmed in Discord / Telegram) — the same §3
4206
+ * verdict the rest of web authority uses. A guest, a read-only session, an admin not verified (a device-code or one-time-code
4207
+ * sign-in), the header token: null. `revoke()` ends everyone else's and keeps this session verified.
4208
+ */
4209
+ webAuthorityRevoker(req: IncomingMessage): {
4210
+ handle: string;
4211
+ current(): boolean;
4212
+ revoke(): {
4213
+ epoch: number;
4214
+ durable: boolean;
4215
+ kept: boolean;
4216
+ };
4217
+ } | null;
3357
4218
  /** #1269: an instance's chat command from the web chat (web-commands.ts); `publicLink`: a gateway request. */
3358
4219
  /** #2855: the table scope of an instance the web chat may command (a fleet instance or a ClassicBot room), else null. */
3359
4220
  private webCommandScope;
@@ -3364,6 +4225,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3364
4225
  command: string;
3365
4226
  args?: string;
3366
4227
  confirm?: string;
4228
+ action?: import("./web-commands.js").WebModelAction;
3367
4229
  }, opts: {
3368
4230
  publicLink: boolean;
3369
4231
  person?: Pick<WebPersonView, "userId" | "name">;
@@ -3633,12 +4495,27 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3633
4495
  */
3634
4496
  private readonly loginWindow;
3635
4497
  private get webLogin();
4498
+ /**
4499
+ * #3190 Part 3c: dashboard sign-ins on a paired computer (machine-signins.ts): #3212's StructuredSignIn over a RuntimeSignInTransport, one computer and one
4500
+ * credential profile at a time. Its own coordinator, not the host's: it never touches the host's sign-in checklist or login window.
4501
+ */
4502
+ private machineSignInsInstance;
4503
+ get machineSignIns(): MachineSignIns;
4504
+ private machineAccountsInstance;
4505
+ /** #3190 Part 3c: a paired computer's accounts in Settings → Accounts (machine-accounts.ts). */
4506
+ get machineAccounts(): MachineAccounts;
3636
4507
  private browserBackendSignInsInstance;
3637
4508
  private structuredLoginCleanupFailed;
3638
4509
  private readonly pendingBackendSince;
3639
4510
  private browserSignInOwnerCurrent;
3640
4511
  /** #2599: default-account controls share the exact writer reservation with chat/profile/install. */
3641
4512
  get browserBackendSignIns(): BrowserBackendSignIns;
4513
+ private profileSignInsInstance;
4514
+ /**
4515
+ * #3212: a NAMED account's sign-in on this host from Settings → Accounts — #2599's StructuredSignIn (press Sign in, open the page, paste the code), pointed at
4516
+ * that profile's own folder (`CLAUDE_CONFIG_DIR`), under the host's login window like every other credential writer. Not the default account's checklist.
4517
+ */
4518
+ get profileSignIns(): ProfileSignIns;
3642
4519
  private needsYouBackendSignIns;
3643
4520
  /** #2233: sign-ins started from the web dashboard (local admin sessions), on the same controller as chat's. */
3644
4521
  private webBackendLoginsInstance;
@@ -3649,6 +4526,131 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3649
4526
  * #2233: Settings → Agents' sign-in list — every backend's default login as the availability snapshot has it, then
3650
4527
  * each credential profile an agent uses (its own login state, read offline).
3651
4528
  */
4529
+ /** Which account each sign-in is, as the host's own `claude auth status` said (masked; see checkAuthIdentity). Keys are `backend\0profile` in a Map: a name is data, never a property. */
4530
+ private readonly signInIdentities;
4531
+ /** Reads in flight, by the same key: a second request for a sign-in that is already being read joins it instead of starting another process. */
4532
+ private readonly signInIdentityReads;
4533
+ /** Raised each time the accounts are forgotten: a read that began before is never allowed to write what it found. */
4534
+ private signInIdentityGeneration;
4535
+ private signInIdentitySlots;
4536
+ private readonly signInIdentityWaiters;
4537
+ private signInIdentity;
4538
+ /** A sign-in finished (or changed): forget what was read and let no read that was already running put its answer back. */
4539
+ private forgetSignInIdentities;
4540
+ /** At most three `claude auth status` at once across the whole host, however many requests ask. */
4541
+ private withSignInIdentitySlot;
4542
+ /** One `claude auth status` for a sign-in (the default one, or a credential profile's folder). */
4543
+ private readSignInIdentity;
4544
+ /**
4545
+ * Start reading, in the background, the account of each Claude Code sign-in that is signed in (the default and every profile an agent uses) and
4546
+ * not read in the last five minutes. It never waits and never blocks a request: the list shows what is already known, and the pages are told to
4547
+ * read it again when something new was learned. A sign-in already being read is not read twice, and a read that began before the accounts were
4548
+ * forgotten (a sign-in finished meanwhile) is dropped. No login, no network request of ours, nothing logged.
4549
+ */
4550
+ refreshSignInIdentities(): void;
4551
+ /**
4552
+ * #3212 PR 1: the Accounts view (accounts-view.ts) — every CLI's default sign-in and named profiles (used or only on
4553
+ * disk), who uses each and its weekly usage. Host rows only; a paired computer's rows come with #3190 Part 3c. Its
4554
+ * usage is the usage panel's cached read (never forced), given at most `usageWaitMs` before the view is sent without it.
4555
+ */
4556
+ accountsView(usageWaitMs?: number): Promise<AccountsView>;
4557
+ /**
4558
+ * A sign-in just finished for this account: look at its Keep sign-in alive setting once now (when it is on), so what the Accounts row says about
4559
+ * "the last check" is not the one from before the sign-in. Never awaited, and never allowed to fail the sign-in's own follow-up.
4560
+ */
4561
+ private keepAliveAfterSignIn;
4562
+ /** #3292: the keep-alive service (built on first use, so the Accounts view can read settings before startup finishes). */
4563
+ private keepAliveService;
4564
+ private startSignInKeepAlive;
4565
+ /**
4566
+ * #3292 review: which sign-in each host agent is starting or running on, recorded at its start (InstanceLifecycle
4567
+ * admitCredentialUse) from the configuration it launched with — never re-resolved against today's defaults. An entry
4568
+ * whose start ended without a daemon, or whose daemon is gone, is dropped when next read.
4569
+ */
4570
+ private readonly credentialLeases;
4571
+ /** #3292 review: Keep sign-in alive runs in flight, by sign-in: a start on that sign-in waits for its end. */
4572
+ private readonly keepAliveRenewing;
4573
+ private credentialKey;
4574
+ /**
4575
+ * The sign-in a start launches on, from the instance's own (defaults-expanded at load) options — exactly what the
4576
+ * Daemon's clone of that config hands its CLI. Never today's defaults: an older config object keeps its own.
4577
+ */
4578
+ private launchCredentialKey;
4579
+ /**
4580
+ * #3313 review r2: failed starts whose CLI was not proven gone keep holding their sign-in (across a retry of the same
4581
+ * agent too) until a check finds it ended.
4582
+ */
4583
+ private readonly credentialOrphans;
4584
+ private orphanCheck;
4585
+ private recheckCredentialOrphans;
4586
+ /**
4587
+ * LifecycleContext: hold the sign-in a start will launch on (waits while Keep sign-in alive renews it). The key is
4588
+ * read again after every wait; `current(config)` lets the start check, with no await before it builds its Daemon,
4589
+ * that the config still names that sign-in (a save may have changed it meanwhile: then it asks again).
4590
+ */
4591
+ admitCredentialUse(name: string, config: InstanceConfig, backend: string, assertCurrent: () => void): Promise<{
4592
+ published(): void;
4593
+ release(): void;
4594
+ current(config: InstanceConfig): boolean;
4595
+ unknownEnd(ended: () => Promise<boolean>): void;
4596
+ } | null>;
4597
+ /**
4598
+ * #3292: a sign-in is in use when a host agent is starting or running on it (as launched), a ClassicBot room is bound
4599
+ * to it (or the rooms cannot be read — none when there is no classicBot.yaml), or a sign-in for it is running. Codex
4600
+ * refresh tokens are single-use: a refresh beside a live user could spend the one it holds; and use keeps it alive.
4601
+ */
4602
+ private keepAliveInUse;
4603
+ /**
4604
+ * #3292 review: one keep-alive run's admission, decided synchronously: not in use, the shared login window taken, and the
4605
+ * sign-in marked as renewing (a start on it waits). The run's life is an account writer: a stop waits for it, and
4606
+ * sign-in admission reopens after a restart only once it has ended. `release()` only after its CLI has exited.
4607
+ */
4608
+ private acquireKeepAliveRun;
4609
+ /** #3292: Needs you's lines for kept sign-ins, in the fleet's language (posted in General's world, like config issues). */
4610
+ private keepAliveAttention;
4611
+ /** #3292: Settings → Accounts → Keep sign-in alive (POST /ui/accounts/keep-alive). `by`: the session's label, for the fleet log. */
4612
+ setAccountKeepAlive(backend: unknown, profile: unknown, enabled: unknown, fallback: unknown, by: string): KeepAliveSetResult;
4613
+ /**
4614
+ * Who uses which account: host agents (an agent on a paired Windows computer runs on that computer's accounts — its
4615
+ * own scope), ClassicBot rooms and the fleet default per CLI, each with its effective profile (null: the default sign-in).
4616
+ */
4617
+ private accountUses;
4618
+ /** #3212 PR 2: Settings → Accounts → + Add account (accounts-profiles.ts). `by`: the session's label, for the fleet log. */
4619
+ addAccountProfile(backend: string, name: unknown, by: string, machine?: MachineActor): AddResult | Promise<MachineAccountResult>;
4620
+ /** The profile names the configuration refers to for this backend — an agent, a ClassicBot room, the fleet default — whether or not their folders exist yet. */
4621
+ private configuredProfileNames;
4622
+ /**
4623
+ * #3212 PR 2: Settings → Accounts → Remove. Refused while anything uses it or a sign-in for it runs (the login controller,
4624
+ * or the login window held for this backend by a sign-in whose profile is not known yet); see accounts-profiles.ts.
4625
+ * The fleet log records who removed which backend's profile — never what was in it.
4626
+ */
4627
+ removeAccountProfile(backend: string, name: unknown, confirm: unknown, by: string, machine?: MachineActor, opts?: {
4628
+ cancelSignIn?: true;
4629
+ }): Promise<RemoveResult | MachineAccountResult>;
4630
+ /**
4631
+ * Remove's whole safety proof, read now (#3291 review): who uses the account — configured agents and live daemons, the
4632
+ * fleet default, ClassicBot rooms read strictly — and whether a sign-in for it runs. `ownClaim`: the login window this
4633
+ * removal holds itself, which is not someone else's sign-in.
4634
+ */
4635
+ private removalRequest;
4636
+ /**
4637
+ * #3212 PR 3: Settings → Accounts → Sign out (accounts-signout.ts): the CLI's own logout for the default sign-in
4638
+ * (`profile` null) or a named account. Refused while a sign-in for it runs (case-insensitive, as Remove). The fleet
4639
+ * log records who signed out which backend's account; then every page reads the sign-ins again.
4640
+ */
4641
+ /** How a CLI's logout is run and the Keychain asked (a test's stand-in; the platform with it). */
4642
+ accountSignOutDeps: Pick<import("./accounts-signout.js").SignOutDeps, "keychainHas" | "platform" | "run">;
4643
+ /** #3305 review: every account logout's whole life — its CLI children until positively gone (shutdown drains them). */
4644
+ private readonly accountWriters;
4645
+ /**
4646
+ * #3305 review P2-3/P2-5: run `work` as the owner of the credential writer (`claim`). Its CLIs run through a runner
4647
+ * that records each child's positive end; the work is told whether it still owns the writer (`stillOwner`) before it
4648
+ * cleans anything; and the claim is released only once every child it started is positively gone — a child whose end
4649
+ * is unknown keeps sign-in admission closed (logged). Shutdown waits for these (shutdownLoginWindows), and a restart
4650
+ * reopens admission only after they are gone.
4651
+ */
4652
+ private withAccountWriter;
4653
+ signOutAccount(backend: string, profile: unknown, confirm: unknown, by: string, machine?: MachineActor): Promise<SignOutResult | MachineAccountResult>;
3652
4654
  backendSignInTargets(): SignInTarget[];
3653
4655
  /** #2233: the session with this handle is live, admin, local and of the current dashboard token. */
3654
4656
  private isLocalAdminSession;
@@ -3722,6 +4724,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3722
4724
  /** The sign-in itself, in the web terminal, for a CLI that is installed. */
3723
4725
  private launchSignIn;
3724
4726
  /** Fleet shutdown: end any web login or install window and wait for its confirmed teardown. */
4727
+ /**
4728
+ * #3305 review P2-3: reopen sign-in admission after a restart — only once no account logout's CLI from before is still
4729
+ * alive (a fresh sign-in must never overlap it). Each reopen supersedes a deferred one.
4730
+ */
4731
+ private loginReopenGen;
4732
+ private reopenLoginWindow;
3725
4733
  private shutdownLoginWindows;
3726
4734
  /** `/login cancel` — abort the active session and remove its window. */
3727
4735
  cancelLoginSession(): Promise<string>;
@@ -3764,6 +4772,25 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3764
4772
  }, signIn?: {
3765
4773
  profile?: string;
3766
4774
  }): Promise<string>;
4775
+ /**
4776
+ * The install window itself, for `/login`'s chat install and the dashboard's Install button alike (AGEND-133): a tmux window running the registry's
4777
+ * command through `unattendedInstallCommand` (no terminal to ask on, low priority, stoppable as a whole, the user's own $SHELL), judged by the installer's
4778
+ * own exit code. The caller holds `claim` (taken before its first await) and gets it released here on every failure; once the session is running,
4779
+ * `events.onDone` owns the release. `activeInstall` is set while it runs, so `/login cancel`, the dashboard's Cancel and a fleet stop all reach it.
4780
+ */
4781
+ private openInstallWindow;
4782
+ /** AGEND-133: the dashboard's Install button — what the Accounts page asks of `/login`'s install, with no chat to report in. */
4783
+ private webHostInstallsInstance;
4784
+ get webHostInstalls(): WebHostInstalls;
4785
+ /**
4786
+ * AGEND-133: install a CLI for the dashboard. Only the CLI's id arrives (the caller validated it against the registry's table); the command is
4787
+ * `info.unattended ?? info.install` read here, the window and its judgement are `/login`'s (openInstallWindow). The verdict is then checked the way chat's
4788
+ * is — a fresh login shell, else the installer's own directories — and the availability probe reads the version for the page. Everything is
4789
+ * reported through `reporter`; nothing is posted to any chat, and no sign-in is started (the page offers Sign in itself).
4790
+ */
4791
+ startWebInstall(backendArg: string, reporter: HostInstallReporter, execution?: SettingsExecution, mode?: HostInstallMode): Promise<HostInstallStart>;
4792
+ /** A fresh login shell's answer for `binary`, else the installer's own directories (see locateBinaryOnLoginShell / locateInstalledBackend). */
4793
+ private locateInstalledCli;
3767
4794
  /** Whether this backend's CLI is on the fleet's PATH (what `/login` installs when it is not). */
3768
4795
  isCliInstalled(backend: string): boolean;
3769
4796
  /** M-2281: isCliInstalled without holding the fleet loop (a chat click's path: `which` on a slow PATH can take seconds). */
@@ -3992,6 +5019,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3992
5019
  private persistCliEnvProbeResult;
3993
5020
  /** Background-probe every distinct backend in use at startup (non-blocking). */
3994
5021
  private probeCliEnvs;
5022
+ /** Maintain discovery after committed config changes; a model-field read remains passive. */
5023
+ private probeChangedCliEnvs;
3995
5024
  /** Best-effort model list for `/model`: cached CLI env first, else live probe. Never throws. */
3996
5025
  private getModelOptions;
3997
5026
  /**
@@ -4173,7 +5202,25 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4173
5202
  * #2072 part 3: the models a Settings field offers for `backend` — the cached catalog (an instance's own credential
4174
5203
  * profile's, when it is named and has one), claude's account catalog included. Read only: never a probe.
4175
5204
  */
4176
- modelCatalogFor(backend: string, instance: string | null): import("./backend/types.js").ModelOption[];
5205
+ private webModelTargetIds;
5206
+ private webModelTargetSequence;
5207
+ private webModelCatalogs;
5208
+ private webModelRefreshes;
5209
+ /** Resolve only trusted config; the browser never supplies a home, provider URL or credentials. */
5210
+ private webModelBinding;
5211
+ private webModelEnv;
5212
+ modelCatalogFor(backend: string, instance: string | null, selection?: {
5213
+ profile?: string;
5214
+ }): import("./backend/types.js").ModelOption[];
5215
+ /** Explicit, bounded vendor rediscovery. Never publish an answer under a different account/config/instance. */
5216
+ refreshModelCatalogFor(backend: string, instance: string | null, selection?: {
5217
+ profile?: string;
5218
+ }): Promise<{
5219
+ models: import("./backend/types.js").ModelOption[];
5220
+ refreshed: boolean;
5221
+ }>;
5222
+ /** Host-default fallback only: Grok has no modeled profile home. Never construct a backend or start a probe. */
5223
+ cliModelCatalogFor(backend: string, instance: string | null): Promise<import("./backend/types.js").ModelOption[]>;
4177
5224
  /**
4178
5225
  * #2072 (#2078 review): the snapshot as THIS instance would see it. Its sign-in on a backend is its own credential
4179
5226
  * profile's when it has one there — the host's default login says nothing about it. A profile's login is a file check
@@ -4361,7 +5408,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4361
5408
  * audit notice — and only once all of that holds is the attempt written to
4362
5409
  * disk and fsynced, before anything spawns.
4363
5410
  */
4364
- requestSettingsSelfRestart(jobId: string, key: string): Promise<SelfRestartResult>;
5411
+ requestSettingsSelfRestart(requestedJobId: string | null, key: string): Promise<SelfRestartResult>;
4365
5412
  /** The audit notice, and the message the restart progress will edit. */
4366
5413
  private postSelfRestartNotice;
4367
5414
  /** Jobs outlive this process on purpose; see apply-job.ts. */
@@ -4498,6 +5545,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4498
5545
  };
4499
5546
  getConnectionSecretApply(jobId: string, sessionBinding: string): SecretApplyJob | null;
4500
5547
  private runConnectionSecretApply;
5548
+ /**
5549
+ * S-91: how a connection stands against what this process set up at start. "same": its adapter start ran (and failed, or
5550
+ * found no token), so starting it now is what the background retry does. "changed": its binding waits for the restart —
5551
+ * never started live, whatever its role (#3365 review P2). "added": #1519 P6's rule.
5552
+ */
5553
+ private startedWithConnection;
5554
+ /**
5555
+ * S-91: a token's live start for a connection that was not running did not come up. Whatever adapter it left is taken
5556
+ * down (handlers off, stopped, unregistered), and the connection goes back to the background retry with the error.
5557
+ */
5558
+ private dropAdapterAfterFailedStart;
4501
5559
  /** Stop the old provider client and construct a new one from process.env. */
4502
5560
  private rebuildAdapterForSecret;
4503
5561
  /**
@@ -4541,7 +5599,28 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4541
5599
  };
4542
5600
  private runSettingsApply;
4543
5601
  restartInstances(): Promise<void>;
5602
+ /** The running package's version (package.json next to this code). */
5603
+ private runningAgendVersion;
5604
+ /**
5605
+ * What the install's own channel offers: the target version and whether it came from that channel's dist-tag. Throws
5606
+ * when npm cannot be asked (the callers decide what a failed look means).
5607
+ */
5608
+ private lookUpUpdateTarget;
5609
+ /** M-2738: record a look's answer for the web — the same offer the notice below would make. */
5610
+ private recordUpdateCheck;
4544
5611
  private checkForUpdates;
5612
+ /** The web's update routes (web-api.ts handleWebUpdate) read and start through this. */
5613
+ get webUpdate(): WebUpdateHost;
5614
+ /** "Check for updates": look now, no chat notice. One a minute; a second ask while one runs waits for it. */
5615
+ private checkUpdateNow;
5616
+ /**
5617
+ * M-2738: Update from the web — a fleet admin's session, after its own confirmation (the leader's D1). Only what the
5618
+ * last check offers as installable; the update itself is chat `/update`'s (launchInstalledUpdate). Its progress marker
5619
+ * targets no chat message (WEB_UPDATE_ADAPTER); the page reads the stages the updater writes into it.
5620
+ */
5621
+ private startWebUpdate;
5622
+ /** M-2738: a web start's answer for its key, the same on a retry (at most 32 kept). */
5623
+ private startWebUpdateOnce;
4545
5624
  /**
4546
5625
  * Semver "a > b". Compares major.minor.patch numerically; a version without a
4547
5626
  * prerelease outranks the same core with one (2.0.8 > 2.0.8-beta.16); two
@@ -4644,3 +5723,5 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4644
5723
  getUiStatus(): unknown;
4645
5724
  private getUiStatusSync;
4646
5725
  }
5726
+ /** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
5727
+ export declare function agentNameOf(view: SettingsPendingView): string | null;