vora-ai 0.1.0

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 (2380) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +606 -0
  3. package/assets/avatar-placeholder.svg +19 -0
  4. package/assets/chrome-extension/icons/icon128.png +0 -0
  5. package/assets/chrome-extension/icons/icon16.png +0 -0
  6. package/assets/chrome-extension/icons/icon32.png +0 -0
  7. package/assets/chrome-extension/icons/icon48.png +0 -0
  8. package/assets/dmg-background-small.png +0 -0
  9. package/assets/dmg-background.png +0 -0
  10. package/dist/abort-bAEt3OX0.js +192 -0
  11. package/dist/abort-cutoff-BW9X8atp.js +56 -0
  12. package/dist/abort-cutoff.runtime-BTdcverG.js +20 -0
  13. package/dist/abort-primitives-BkLaStf6.js +92 -0
  14. package/dist/abort-signal-OQ0B1Hsw.js +13 -0
  15. package/dist/abort.runtime-Bk-WTrsH.js +2 -0
  16. package/dist/access-DUWbTdtq.js +82 -0
  17. package/dist/account-action-gate-BhV8CpjB.js +12 -0
  18. package/dist/account-core-BxpV-R9y.js +26 -0
  19. package/dist/account-helpers-D1v4-R4z.js +102 -0
  20. package/dist/account-helpers-DsRxse98.js +1 -0
  21. package/dist/account-id-Da7aL0Gd.js +1 -0
  22. package/dist/account-inspect-CAOMlXxX.js +158 -0
  23. package/dist/account-inspect-sHk3NdqU.js +81 -0
  24. package/dist/account-lookup-C6jbidQL.js +17 -0
  25. package/dist/account-resolution-DKAWqmga.js +30 -0
  26. package/dist/account-snapshot-fields-D7AI5hQQ.js +130 -0
  27. package/dist/account-summary-BgeGcB_3.js +36 -0
  28. package/dist/accounts-Db4FI6Zz.js +58 -0
  29. package/dist/accounts-qrnlKu1q.js +137 -0
  30. package/dist/ack-reactions-BZ-o06GS.js +43 -0
  31. package/dist/acp-cli-BvaZntRI.js +88 -0
  32. package/dist/acp-runtime-JWaJYUhz.js +8 -0
  33. package/dist/acp-stateful-target-driver-Bw7044NV.js +60 -0
  34. package/dist/action-runtime-api-Oe9YXMPW.js +1026 -0
  35. package/dist/agent-B1rpctfA.js +2 -0
  36. package/dist/agent-command-Ca6TUUTc.js +1462 -0
  37. package/dist/agent-events-DvBJWaR9.js +51 -0
  38. package/dist/agent-list-BLH_azHg.js +52 -0
  39. package/dist/agent-media-payload-DJHM1u8B.js +17 -0
  40. package/dist/agent-paths-A_P9FLsb.js +12 -0
  41. package/dist/agent-runner-utils-9OoCJtjv.js +178 -0
  42. package/dist/agent-runner.runtime-CBOjZZGX.js +2205 -0
  43. package/dist/agent-runtime-DUidz-g-.js +142 -0
  44. package/dist/agent-scope-BsqFyt8u.js +203 -0
  45. package/dist/agents/auth-profiles.runtime.js +7 -0
  46. package/dist/agents/pi-model-discovery-runtime.js +2 -0
  47. package/dist/agents-BalJcJ6y.js +5 -0
  48. package/dist/agents-C3mHfRHd.js +888 -0
  49. package/dist/agents.config-BDTgYzjf.js +3 -0
  50. package/dist/agents.config-CD4kuH-_.js +121 -0
  51. package/dist/allow-from-Bj0HDNYh.js +20 -0
  52. package/dist/allow-from-D-rvXQ8h.js +9 -0
  53. package/dist/allow-from-xOap1t02.js +62 -0
  54. package/dist/allow-list-BFJp0pl8.js +341 -0
  55. package/dist/allowlist-config-edit-Cm1yBM1Z.js +279 -0
  56. package/dist/allowlist-match-CvP7M2nU.js +63 -0
  57. package/dist/ansi-B_0KjIJj.js +54 -0
  58. package/dist/anthropic-vertex-CmYuMVC4.js +21 -0
  59. package/dist/anthropic-vertex-stream-CDum4sTM.js +631 -0
  60. package/dist/api-C8PGNlY8.js +10 -0
  61. package/dist/api-CUkBKFva.js +74 -0
  62. package/dist/api-builder-Dxtk0Cjs.js +172 -0
  63. package/dist/api-fetch-D1Orij33.js +35 -0
  64. package/dist/api-key-rotation-BgD2ZwFB.js +150 -0
  65. package/dist/apply-uNQmdYrd.js +485 -0
  66. package/dist/apply.runtime-CDBPl8wO.js +166 -0
  67. package/dist/apply.runtime-DXzYQs7u.js +2 -0
  68. package/dist/approval-renderers-D-qQquHC.js +83 -0
  69. package/dist/approval-runtime-DodHpuxq.js +122 -0
  70. package/dist/archive-BUHAoH49.js +537 -0
  71. package/dist/arg-split-ShoVtQWt.js +38 -0
  72. package/dist/artifacts-UsJTFgjT.js +52 -0
  73. package/dist/assistant-error-format-KDZ_osDM.js +109 -0
  74. package/dist/audio-DFt2UJ9l.js +41 -0
  75. package/dist/audit-234llk_L.js +85 -0
  76. package/dist/audit-BzzkNrPw.js +893 -0
  77. package/dist/audit-D8ikC9Ex.js +54 -0
  78. package/dist/audit-channel.allow-from.runtime-todwwiYs.js +5 -0
  79. package/dist/audit-channel.collect.runtime-DmpUSGTW.js +528 -0
  80. package/dist/audit-channel.discord.runtime-eztVMsVi.js +5 -0
  81. package/dist/audit-channel.telegram.runtime-C1XTQaXt.js +8 -0
  82. package/dist/audit-channel.zalouser.runtime-0HM10car.js +5 -0
  83. package/dist/audit-extra.async-CSQaJlTH.js +820 -0
  84. package/dist/audit-fs-ClsvRCTg.js +375 -0
  85. package/dist/audit-membership-runtime-ByM59rIs.js +55 -0
  86. package/dist/audit.deep.runtime-DXGK_1J_.js +2 -0
  87. package/dist/audit.nondeep.runtime-DJXN9aBX.js +831 -0
  88. package/dist/audit.runtime-BS7_g95e.js +7 -0
  89. package/dist/auth-DEuZoVpN.js +371 -0
  90. package/dist/auth-choice-9Go6Q-oV.js +3 -0
  91. package/dist/auth-choice-BQBEikSW.js +69 -0
  92. package/dist/auth-choice-CbU_5K03.js +341 -0
  93. package/dist/auth-choice-legacy-D9rcQsLS.js +44 -0
  94. package/dist/auth-choice-options-DzvdP-W5.js +98 -0
  95. package/dist/auth-choice-prompt-CAt3z9Wn.js +2 -0
  96. package/dist/auth-choice-prompt-DfuSZB7t.js +36 -0
  97. package/dist/auth-choice.apply-helpers-CxPMo6aR.js +2 -0
  98. package/dist/auth-choice.plugin-providers.runtime-C4iPKNWh.js +11 -0
  99. package/dist/auth-health-CztAfAX3.js +165 -0
  100. package/dist/auth-mode-policy-C2dpPPMZ.js +18 -0
  101. package/dist/auth-profiles-DgsNxC4M.js +431 -0
  102. package/dist/auth-rate-limit-B3HOQz3U.js +119 -0
  103. package/dist/avatar-policy-D_F2Olbt.js +67 -0
  104. package/dist/backend-config-DRYC_KQP.js +311 -0
  105. package/dist/backoff-C-fId8Y0.js +18 -0
  106. package/dist/backup-create-CWffgs90.js +462 -0
  107. package/dist/banner-BJJQ_jor.js +2 -0
  108. package/dist/banner-CzYuF1AM.js +369 -0
  109. package/dist/base-session-key-yPDY2ReX.js +14 -0
  110. package/dist/binaries-D04aDwRb.js +2 -0
  111. package/dist/binaries-UyZ8gKvx.js +11 -0
  112. package/dist/binding-registry-DeW6GWl7.js +422 -0
  113. package/dist/binding-targets-Dew-Cmhe.js +99 -0
  114. package/dist/bindings-Be6kpbqd.js +21 -0
  115. package/dist/bindings-C415Adm_.js +69 -0
  116. package/dist/block-reply-pipeline-DOyiLrmk.js +266 -0
  117. package/dist/block-streaming-irtDjCPX.js +107 -0
  118. package/dist/bluebubbles-cpaV8DUH.js +64 -0
  119. package/dist/bluebubbles-policy-DO-t7OnD.js +13 -0
  120. package/dist/boolean-BRxEL2pT.js +29 -0
  121. package/dist/boolean-param-B3tzmZ3k.js +13 -0
  122. package/dist/bootstrap-budget-lNGYv_xu.js +314 -0
  123. package/dist/bootstrap-cache-CwL_mvEY.js +19 -0
  124. package/dist/bot-message-context-BDfCxJZs.js +1213 -0
  125. package/dist/bot-message-context-C-8RvNrP.js +2 -0
  126. package/dist/bot-native-commands.delivery.runtime-z0viWrSs.js +3 -0
  127. package/dist/boundary-file-read-DzY137L0.js +192 -0
  128. package/dist/brave-web-search-provider-Bab38BrX.js +441 -0
  129. package/dist/brew-CTkvvpxg.js +44 -0
  130. package/dist/browser-open-BU6ETbQQ.js +94 -0
  131. package/dist/browser-runtime-C9uxHbGW.js +76 -0
  132. package/dist/browser-support-Bb_k0jpF.js +34 -0
  133. package/dist/btw-command-NOqYNWtX.js +16 -0
  134. package/dist/bundle-lsp-BeRKY2JZ.js +93 -0
  135. package/dist/bundle-mcp-Bx8MNFO5.js +263 -0
  136. package/dist/bundled/boot-md/handler.js +180 -0
  137. package/dist/bundled/bootstrap-extra-files/handler.js +42 -0
  138. package/dist/bundled/command-logger/handler.js +56 -0
  139. package/dist/bundled/session-memory/handler.js +196 -0
  140. package/dist/bundled-capability-metadata-BJSb_HDr.js +38 -0
  141. package/dist/bundled-compat-CAM7KkKK.js +64 -0
  142. package/dist/bundled-plugin-metadata-DuQVm9f5.js +621 -0
  143. package/dist/bundled-sources-cwLmVfLO.js +53 -0
  144. package/dist/cache-controls-CpBpLE7o.js +40 -0
  145. package/dist/call-CYGZtInt.js +649 -0
  146. package/dist/call-DNl9zM74.js +2 -0
  147. package/dist/capability-provider-runtime-yc24eaUD.js +40 -0
  148. package/dist/catalog-CTTRbG9P.js +272 -0
  149. package/dist/channel-Ur_UNzw2.js +679 -0
  150. package/dist/channel-account-context-BWgKFgVH.js +104 -0
  151. package/dist/channel-actions-BOFC-_zU.js +39 -0
  152. package/dist/channel-catalog.json +26 -0
  153. package/dist/channel-config-B-7hYcg1.js +115 -0
  154. package/dist/channel-config-helpers-C1S4WfJJ.js +482 -0
  155. package/dist/channel-config-schema-2huPMu2x.js +6 -0
  156. package/dist/channel-feedback-Ro-BTZzh.js +257 -0
  157. package/dist/channel-inbound-_DJyFgZs.js +30 -0
  158. package/dist/channel-issues-BPmcKiOr.js +13 -0
  159. package/dist/channel-lifecycle-tykcw1CK.js +286 -0
  160. package/dist/channel-lifecycle.core-3OcmXTam.js +69 -0
  161. package/dist/channel-options-DgOdpBj-.js +39 -0
  162. package/dist/channel-pairing-Dx7NU9a4.js +68 -0
  163. package/dist/channel-plugin-common-B7gWshwF.js +4 -0
  164. package/dist/channel-plugin-ids-DGJsaNeP.js +230 -0
  165. package/dist/channel-plugin-resolution-B3C2B0Xc.js +113 -0
  166. package/dist/channel-policy-BiAdlZRY.js +32 -0
  167. package/dist/channel-reply-pipeline-DZQu_Smr.js +16 -0
  168. package/dist/channel-resolution-BRpGejEv.js +57 -0
  169. package/dist/channel-runtime-B3OwaSIN.js +8 -0
  170. package/dist/channel-selection-CJiUKode.js +125 -0
  171. package/dist/channel-send-result-C4cfMY3q.js +40 -0
  172. package/dist/channel-setup-CVb_d9r3.js +51 -0
  173. package/dist/channel-status-is1j_O8T.js +2 -0
  174. package/dist/channel-summary-CcHbPriu.js +2 -0
  175. package/dist/channel-summary-ChMRan7Y.js +139 -0
  176. package/dist/channel-target-B2-JZuxb.js +157 -0
  177. package/dist/channel-targets-C7I-yneV.js +173 -0
  178. package/dist/channel.runtime-DPqGWQMI.js +5 -0
  179. package/dist/channels-BLrLpPbs.js +1134 -0
  180. package/dist/channels-ClZdlIAP.js +409 -0
  181. package/dist/channels-cli-CxyDo24U.js +246 -0
  182. package/dist/channels-status-issues-DOvoiysl.js +17 -0
  183. package/dist/chat-envelope-BKa8gVwt.js +158 -0
  184. package/dist/chat-meta-CxxUMjgT.js +77 -0
  185. package/dist/chat-type-D66QkgK0.js +10 -0
  186. package/dist/chunk-BRNunu6m.js +334 -0
  187. package/dist/chunk-DBEY4PJZ.js +16 -0
  188. package/dist/chutes-oauth-df1s-ETh.js +127 -0
  189. package/dist/cjk-chars-nOH-kRF8.js +50 -0
  190. package/dist/clack-prompter-ByYhQnEc.js +112 -0
  191. package/dist/clawbot-cli-B1PP3cQS.js +9 -0
  192. package/dist/clawhub-BlNkstQC.js +163 -0
  193. package/dist/clawhub-PHPunBYA.js +263 -0
  194. package/dist/cli/daemon-cli.js +3 -0
  195. package/dist/cli-BVs9q78-.js +2 -0
  196. package/dist/cli-backend-BY5ACL_R.js +1 -0
  197. package/dist/cli-backend-MiCoOt1Y.js +44 -0
  198. package/dist/cli-eS9_49Ka.js +153 -0
  199. package/dist/cli-name-l1qeysOp.js +21 -0
  200. package/dist/cli-runner-rgKmST01.js +1010 -0
  201. package/dist/cli-utils-CMfpS8SF.js +40 -0
  202. package/dist/cli-watchdog-defaults-3Qs4l3Yf.js +14 -0
  203. package/dist/cmd-argv-BafMhhA4.js +68 -0
  204. package/dist/codex-native-web-search-CWYqRu9M.js +2 -0
  205. package/dist/codex-native-web-search-CbRntg-q.js +155 -0
  206. package/dist/command-auth-CJsP4GL7.js +64 -0
  207. package/dist/command-auth-Dfgmp_6_.js +356 -0
  208. package/dist/command-auth-native-CdgZoflY.js +3 -0
  209. package/dist/command-detection-CyrUVnod.js +46 -0
  210. package/dist/command-format-CfBy_-A6.js +2 -0
  211. package/dist/command-format-DmvS76BD.js +22 -0
  212. package/dist/command-gating-HO-bVa6h.js +40 -0
  213. package/dist/command-options-BUoAEXAi.js +25 -0
  214. package/dist/command-poll-backoff-BbGeC12t.js +56 -0
  215. package/dist/command-poll-backoff.runtime-BDcejg_n.js +7 -0
  216. package/dist/command-registry-C0kFYtIa.js +199 -0
  217. package/dist/command-registry-VUV6Y6SA.js +3 -0
  218. package/dist/command-secret-gateway-B2PsoqGE.js +2 -0
  219. package/dist/command-secret-gateway-rXrG4_xf.js +449 -0
  220. package/dist/command-secret-targets-BMcCyKKM.js +85 -0
  221. package/dist/command-secret-targets-DYLJqbik.js +2 -0
  222. package/dist/commands/status.summary.runtime.js +146 -0
  223. package/dist/commands-BNN8qnEq.js +42 -0
  224. package/dist/commands-D905e2TE.js +4 -0
  225. package/dist/commands-acp-DxpRaS_2.js +994 -0
  226. package/dist/commands-context-DYfg86cW.js +33 -0
  227. package/dist/commands-core-BkTgFXRe.js +185 -0
  228. package/dist/commands-core.runtime-DL4UA7LO.js +2 -0
  229. package/dist/commands-handlers.runtime-Dnqn4WRI.js +3597 -0
  230. package/dist/commands-info-9qXzZJZy.js +638 -0
  231. package/dist/commands-models-DaGXLYpI.js +395 -0
  232. package/dist/commands-rHJt1A27.js +192 -0
  233. package/dist/commands-registry-DsvlObRs.js +295 -0
  234. package/dist/commands-registry.data-D4mfAJVD.js +928 -0
  235. package/dist/commands-registry.runtime-CvK5vfUk.js +2 -0
  236. package/dist/commands-status.runtime-Biqry_fJ.js +2 -0
  237. package/dist/commands.runtime-BQNIS1_C.js +4 -0
  238. package/dist/common-B8KXadTs.js +206 -0
  239. package/dist/compact.runtime-DrIYPOe_.js +7 -0
  240. package/dist/completion-cli-DADmFZNY.js +2 -0
  241. package/dist/completion-cli-Xpp8XJNt.js +466 -0
  242. package/dist/config-B8J_0cJd.js +41 -0
  243. package/dist/config-BeMghpRW.js +136 -0
  244. package/dist/config-C6sbf2mt.js +7 -0
  245. package/dist/config-CKbWnj3S.js +52 -0
  246. package/dist/config-DUHgkJzn.js +421 -0
  247. package/dist/config-cli-CwphzfyS.js +944 -0
  248. package/dist/config-eval-DM9FHTGd.js +100 -0
  249. package/dist/config-guard-BQvfMpPf.js +94 -0
  250. package/dist/config-helpers-DiGV2z9-.js +117 -0
  251. package/dist/config-paths-h016qQJq.js +8 -0
  252. package/dist/config-presence-C16x_f3x.js +79 -0
  253. package/dist/config-regex-CvZFnWkO.js +39 -0
  254. package/dist/config-runtime-CGUisiU5.js +12 -0
  255. package/dist/config-schema-5JUAk8XL.js +202 -0
  256. package/dist/config-schema-BRTDDWFV.js +65 -0
  257. package/dist/config-schema-B_uHmf_j.js +133 -0
  258. package/dist/config-schema-dV8ghEVQ.js +85 -0
  259. package/dist/config-state-CiYvCzdZ.js +185 -0
  260. package/dist/config-validation-CzH2O_-H.js +276 -0
  261. package/dist/config-value-B0LE9l8u.js +25 -0
  262. package/dist/configure-BUZKW20U.js +1140 -0
  263. package/dist/configure-CFbHMkXc.js +2 -0
  264. package/dist/configured-provider-fallback-HW8QhjlX.js +15 -0
  265. package/dist/connection-auth-Cs3qTX0J.js +30 -0
  266. package/dist/connection-details-GqZVX1_1.js +56 -0
  267. package/dist/constants-lHqfjBOu.js +71 -0
  268. package/dist/content-blocks-DdN51R-1.js +1640 -0
  269. package/dist/context-Bv7BKF9l.js +227 -0
  270. package/dist/context-window-guard-BKQgasN7.js +46 -0
  271. package/dist/control-ui/apple-touch-icon.png +0 -0
  272. package/dist/control-ui/assets/agents-sN8RQ1eS.js +813 -0
  273. package/dist/control-ui/assets/anthropic-ZDTkKd9P.js +37 -0
  274. package/dist/control-ui/assets/azure-openai-responses-CQjyuM35.js +2 -0
  275. package/dist/control-ui/assets/channel-config-extras-DNCeHtEf.js +2 -0
  276. package/dist/control-ui/assets/channels-LecGHhYY.js +349 -0
  277. package/dist/control-ui/assets/cron-BCSmuADd.js +928 -0
  278. package/dist/control-ui/assets/de-BhrN2Nih.js +2 -0
  279. package/dist/control-ui/assets/debug-DIDwUeSi.js +94 -0
  280. package/dist/control-ui/assets/directive-C6NBp6xJ.js +2 -0
  281. package/dist/control-ui/assets/dist-D8DZLmCF.js +18 -0
  282. package/dist/control-ui/assets/es-D2hTJirx.js +2 -0
  283. package/dist/control-ui/assets/event-stream-B8X6sYaV.js +2 -0
  284. package/dist/control-ui/assets/format-Cbj45nru.js +2 -0
  285. package/dist/control-ui/assets/github-copilot-headers-CrI0CIJ7.js +2 -0
  286. package/dist/control-ui/assets/google-gemini-cli-BpxbH95Q.js +3 -0
  287. package/dist/control-ui/assets/google-shared-CbPHVnPr.js +12 -0
  288. package/dist/control-ui/assets/google-vertex-lQwbjEII.js +2 -0
  289. package/dist/control-ui/assets/google-xtjMQAen.js +2 -0
  290. package/dist/control-ui/assets/hash-Bt1aVMQ3.js +2 -0
  291. package/dist/control-ui/assets/index-DqTClMaZ.js +4714 -0
  292. package/dist/control-ui/assets/index-yaW_F-Wi.css +1 -0
  293. package/dist/control-ui/assets/instances-CMgIM69b.js +57 -0
  294. package/dist/control-ui/assets/lit-zdTgzAJI.js +3 -0
  295. package/dist/control-ui/assets/logs-vVeVJ0CI.js +74 -0
  296. package/dist/control-ui/assets/mistral-u1o8NcCM.js +8 -0
  297. package/dist/control-ui/assets/nodes-B1R45Hyv.js +430 -0
  298. package/dist/control-ui/assets/openai-Cn7eGqwa.js +17 -0
  299. package/dist/control-ui/assets/openai-codex-responses-o0Z3RMWa.js +8 -0
  300. package/dist/control-ui/assets/openai-completions-7V2Ovprv.js +6 -0
  301. package/dist/control-ui/assets/openai-responses-oNxOx3Q1.js +2 -0
  302. package/dist/control-ui/assets/openai-responses-shared-OKpfrZ-q.js +11 -0
  303. package/dist/control-ui/assets/preload-helper-xBbMyY7u.js +1 -0
  304. package/dist/control-ui/assets/pt-BR-Bd9tFPER.js +2 -0
  305. package/dist/control-ui/assets/sessions-Lc0IvBNe.js +236 -0
  306. package/dist/control-ui/assets/skills-k1ptbgMP.js +216 -0
  307. package/dist/control-ui/assets/skills-shared-D4l2M8cL.js +11 -0
  308. package/dist/control-ui/assets/transform-messages-XKqwKV3D.js +2 -0
  309. package/dist/control-ui/assets/zh-CN-DvLwUwA1.js +2 -0
  310. package/dist/control-ui/assets/zh-TW-BXT7QT3h.js +2 -0
  311. package/dist/control-ui/favicon-32.png +0 -0
  312. package/dist/control-ui/favicon.ico +0 -0
  313. package/dist/control-ui/favicon.svg +22 -0
  314. package/dist/control-ui/index.html +75 -0
  315. package/dist/control-ui-assets-DbOOvjtb.js +233 -0
  316. package/dist/control-ui-shared-DsqkrmmN.js +29 -0
  317. package/dist/conversation-binding-input-BGI5gsf7.js +250 -0
  318. package/dist/conversation-binding-xxmmj56H.js +520 -0
  319. package/dist/conversation-id-B2-7oYz5.js +9 -0
  320. package/dist/conversation-label-CDBJEzqs.js +32 -0
  321. package/dist/conversation-runtime-CPXVzEGP.js +85 -0
  322. package/dist/core-DidBIGEJ.js +195 -0
  323. package/dist/core-api-VzeJYIaC.js +670 -0
  324. package/dist/core-command-descriptors-OO8iMaXR.js +91 -0
  325. package/dist/credential-planner-B6V18E6X.js +109 -0
  326. package/dist/credentials-T7b82ytT.js +135 -0
  327. package/dist/cron-cli-D2epg2QX.js +643 -0
  328. package/dist/current-time-AvIq1E3O.js +20 -0
  329. package/dist/daemon-cli-Be7LAwcB.js +368 -0
  330. package/dist/daemon-install-CfvYrNa-.js +63 -0
  331. package/dist/daemon-install-plan.shared-Dm6sK7Lg.js +222 -0
  332. package/dist/daemon-runtime-DPejcJWG.js +12 -0
  333. package/dist/dangerous-config-flags-DyYwhFd-.js +38 -0
  334. package/dist/dangerous-name-matching-DJGvHcqL.js +48 -0
  335. package/dist/date-time-ChwO2p0r.js +118 -0
  336. package/dist/dedupe-ClGH5AD-.js +59 -0
  337. package/dist/default-account-warnings-DhrBUOxe.js +15 -0
  338. package/dist/default-models-p_jLxv9h.js +35 -0
  339. package/dist/defaults-DAt--D9n.js +6 -0
  340. package/dist/delegate-D_a6-aW6.js +43 -0
  341. package/dist/deliver-NyzvqqW3.js +954 -0
  342. package/dist/deliver-YFpAT2Gv.js +3 -0
  343. package/dist/deliver-runtime-CDYmnxXC.js +2 -0
  344. package/dist/delivery-DHz1_gua.js +819 -0
  345. package/dist/delivery-context-wkeob4lC.js +106 -0
  346. package/dist/delivery-info-0NXZH054.js +36 -0
  347. package/dist/delivery-queue-BceSoMom.js +2 -0
  348. package/dist/delivery-queue-Dij4z9yQ.js +289 -0
  349. package/dist/deps-xJ6d5mcR.js +67 -0
  350. package/dist/detect-binary-D5oXUD9C.js +30 -0
  351. package/dist/device-auth-BPeQrfAM.js +19 -0
  352. package/dist/device-bootstrap-IW2esZhx.js +176 -0
  353. package/dist/device-identity-2GhXUC5d.js +2 -0
  354. package/dist/device-identity-DH-dBXN2.js +140 -0
  355. package/dist/device-metadata-normalization-DesKWnX9.js +21 -0
  356. package/dist/device-pairing-D-eXc4mS.js +543 -0
  357. package/dist/devices-cli-CUkbtT5k.js +328 -0
  358. package/dist/diagnostic-BYcJF51S.js +311 -0
  359. package/dist/diagnostic-events-R6R0hsS8.js +48 -0
  360. package/dist/diagnostic-flags-DI1-YJxA.js +64 -0
  361. package/dist/diagnostic-runtime-iwrls2oi.js +1 -0
  362. package/dist/diagnostics-Bn7WBAMb.js +2 -0
  363. package/dist/diagnostics-CNOhNbiG.js +33 -0
  364. package/dist/direct-dm-DX9Sqse3.js +139 -0
  365. package/dist/directive-handling.defaults-CiM3zY4c.js +19 -0
  366. package/dist/directive-handling.fast-lane-CBsRyqm9.js +64 -0
  367. package/dist/directive-handling.fast-lane-CkLifH7t.js +2 -0
  368. package/dist/directive-handling.impl-DDDo9_pC.js +2 -0
  369. package/dist/directive-handling.impl-Rcgo5SCg.js +674 -0
  370. package/dist/directive-handling.levels-Dlk68wUB.js +2 -0
  371. package/dist/directive-handling.levels-Y1fuvRYT.js +12 -0
  372. package/dist/directive-handling.parse-CMEE0kEW.js +375 -0
  373. package/dist/directive-handling.persist-CvEtXaAd.js +133 -0
  374. package/dist/directive-handling.persist.runtime-Cdksoe_I.js +2 -0
  375. package/dist/directive-handling.shared-8kteIv4q.js +158 -0
  376. package/dist/directive-tags-B4NiUGng.js +109 -0
  377. package/dist/directives-DLcHC9jG.js +209 -0
  378. package/dist/directory-cache-KFfoEzq3.js +62 -0
  379. package/dist/directory-cli-DUY3BGGz.js +238 -0
  380. package/dist/directory-config-helpers-DBmVJY3U.js +141 -0
  381. package/dist/directory-runtime-DWVDd3A5.js +20 -0
  382. package/dist/discord-2uEduGX9.js +6 -0
  383. package/dist/discord-BMCiYFK_.js +11 -0
  384. package/dist/discord-account-HmxkZycn.js +11 -0
  385. package/dist/discord-core-Pl5ukuXB.js +5 -0
  386. package/dist/discord-runtime-surface-DNQNbA29.js +67 -0
  387. package/dist/discord-session-key-DoaFTAH3.js +11 -0
  388. package/dist/discord-surface-Cn77ggmj.js +30 -0
  389. package/dist/discord-thread-bindings-DRMbWo4Q.js +21 -0
  390. package/dist/discord-timeouts-Cv7cpmLu.js +12 -0
  391. package/dist/dispatch-CZypQktI.js +842 -0
  392. package/dist/dispatch-acp.runtime-DVu2VG71.js +887 -0
  393. package/dist/dist-C22HbjJn.js +3 -0
  394. package/dist/dist-C26-w-eb.js +14245 -0
  395. package/dist/dist-_cqaGkQM.js +503 -0
  396. package/dist/dm-policy-shared-BsSmWpF_.js +188 -0
  397. package/dist/dns-cli-CypS3rSW.js +192 -0
  398. package/dist/docker-e3sy4uxj.js +837 -0
  399. package/dist/docs-cli-CAc6XPQ1.js +156 -0
  400. package/dist/doctor-completion-D1GX1eYy.js +90 -0
  401. package/dist/doctor-config-preflight-BIjpCYLH.js +2 -0
  402. package/dist/doctor-config-preflight-C5YWG1Il.js +147 -0
  403. package/dist/doctor-state-migrations-C4JRWbB5.js +2 -0
  404. package/dist/doctor-state-migrations-Hkw1WYQh.js +3 -0
  405. package/dist/dotenv-5B3Ltg5m.js +11 -0
  406. package/dist/dotenv-C-ipPVRV.js +91 -0
  407. package/dist/enable-1JBZrsl3.js +57 -0
  408. package/dist/entry-status-8GZhSwz9.js +172 -0
  409. package/dist/entry.js +209 -0
  410. package/dist/env-DAI7QbHD.js +40 -0
  411. package/dist/env-substitution-D4FvNwAw.js +136 -0
  412. package/dist/envelope-BT4nxsRe.js +137 -0
  413. package/dist/error-runtime-BWR3edBz.js +2 -0
  414. package/dist/error-text-Dz9S7qeJ.js +9 -0
  415. package/dist/errors-BVF4CQJh.js +15 -0
  416. package/dist/errors-BxyFnvP3.js +58 -0
  417. package/dist/exa-web-search-provider-YdwhKG_r.js +355 -0
  418. package/dist/exec-DBEtpL4G.js +2 -0
  419. package/dist/exec-DNTgEe82.js +375 -0
  420. package/dist/exec-approval-reply-CIaFux57.js +161 -0
  421. package/dist/exec-approval-session-target-BsD_thnK.js +159 -0
  422. package/dist/exec-approvals-D6Kd1FHX.js +120 -0
  423. package/dist/exec-approvals-XWl5Qihe.js +394 -0
  424. package/dist/exec-approvals-allowlist-B90zHMFx.js +771 -0
  425. package/dist/exec-approvals-cli-CBwEU5lx.js +375 -0
  426. package/dist/exec-safe-bin-runtime-policy-CQ_6FV8z.js +90 -0
  427. package/dist/exec-safety-FkFR1qf5.js +24 -0
  428. package/dist/extensionAPI.js +17 -0
  429. package/dist/extensions/brave/index.js +13 -0
  430. package/dist/extensions/brave/package.json +12 -0
  431. package/dist/extensions/brave/test-api.js +2 -0
  432. package/dist/extensions/brave/vora.plugin.json +50 -0
  433. package/dist/extensions/brave/web-search-provider.js +2 -0
  434. package/dist/extensions/browser/browser-runtime-api.js +4 -0
  435. package/dist/extensions/browser/index.js +20 -0
  436. package/dist/extensions/browser/package.json +12 -0
  437. package/dist/extensions/browser/runtime-api.js +6 -0
  438. package/dist/extensions/browser/test-support.js +19 -0
  439. package/dist/extensions/browser/vora.plugin.json +9 -0
  440. package/dist/extensions/discord/action-runtime-api.js +2 -0
  441. package/dist/extensions/discord/api.js +14 -0
  442. package/dist/extensions/discord/channel-config-api.js +2 -0
  443. package/dist/extensions/discord/index.js +615 -0
  444. package/dist/extensions/discord/package.json +40 -0
  445. package/dist/extensions/discord/runtime-api.js +229 -0
  446. package/dist/extensions/discord/session-key-api.js +2 -0
  447. package/dist/extensions/discord/setup-entry.js +10 -0
  448. package/dist/extensions/discord/test-api.js +45 -0
  449. package/dist/extensions/discord/timeouts.js +2 -0
  450. package/dist/extensions/discord/vora.plugin.json +11 -0
  451. package/dist/extensions/exa/index.js +13 -0
  452. package/dist/extensions/exa/package.json +12 -0
  453. package/dist/extensions/exa/vora.plugin.json +39 -0
  454. package/dist/extensions/exa/web-search-provider.js +2 -0
  455. package/dist/extensions/openai/api.js +4 -0
  456. package/dist/extensions/openai/cli-backend.js +2 -0
  457. package/dist/extensions/openai/default-models.js +2 -0
  458. package/dist/extensions/openai/image-generation-provider.js +2 -0
  459. package/dist/extensions/openai/index.js +24 -0
  460. package/dist/extensions/openai/media-understanding-provider.js +2 -0
  461. package/dist/extensions/openai/openai-codex-auth-identity.js +2 -0
  462. package/dist/extensions/openai/openai-codex-catalog.js +2 -0
  463. package/dist/extensions/openai/openai-codex-provider.js +2 -0
  464. package/dist/extensions/openai/openai-codex-provider.runtime.js +14 -0
  465. package/dist/extensions/openai/openai-provider.js +2 -0
  466. package/dist/extensions/openai/package.json +12 -0
  467. package/dist/extensions/openai/shared.js +4 -0
  468. package/dist/extensions/openai/speech-provider.js +2 -0
  469. package/dist/extensions/openai/test-api.js +5 -0
  470. package/dist/extensions/openai/tts.js +2 -0
  471. package/dist/extensions/openai/vora.plugin.json +61 -0
  472. package/dist/extensions/tavily/index.js +128 -0
  473. package/dist/extensions/tavily/package.json +12 -0
  474. package/dist/extensions/tavily/skills/tavily/SKILL.md +94 -0
  475. package/dist/extensions/tavily/vora.plugin.json +53 -0
  476. package/dist/extensions/tavily/web-search-provider.js +2 -0
  477. package/dist/extensions/telegram/allow-from.js +2 -0
  478. package/dist/extensions/telegram/api.js +13 -0
  479. package/dist/extensions/telegram/channel-config-api.js +2 -0
  480. package/dist/extensions/telegram/index.js +12 -0
  481. package/dist/extensions/telegram/package.json +37 -0
  482. package/dist/extensions/telegram/runtime-api.js +24 -0
  483. package/dist/extensions/telegram/session-key-api.js +2 -0
  484. package/dist/extensions/telegram/setup-entry.js +13 -0
  485. package/dist/extensions/telegram/test-api.js +87 -0
  486. package/dist/extensions/telegram/test-support.js +72 -0
  487. package/dist/extensions/telegram/update-offset-runtime-api.js +2 -0
  488. package/dist/extensions/telegram/vora.plugin.json +11 -0
  489. package/dist/external-content-CCU3ADB4.js +242 -0
  490. package/dist/facade-runtime-FE2gvW08.js +183 -0
  491. package/dist/failover-error-Bv6ZpTGn.js +194 -0
  492. package/dist/feishu-conversation-CRGPLs2e.js +17 -0
  493. package/dist/feishu-setup-D3qBPVeH.js +12 -0
  494. package/dist/fetch-B7l-vxJ5.js +65 -0
  495. package/dist/fetch-BlEbs4zu.js +416 -0
  496. package/dist/fetch-guard-DECxJSgV.js +132 -0
  497. package/dist/fetch-mock-Y15aY-vX.js +6 -0
  498. package/dist/fetch-runtime-DfJc8pAb.js +4 -0
  499. package/dist/fetch-timeout-DlhFJxaz.js +58 -0
  500. package/dist/file-identity-CFjEVvlD.js +567 -0
  501. package/dist/file-lock-I_Ef85iM.js +141 -0
  502. package/dist/file-lock-_Bv5Z0H8.js +2 -0
  503. package/dist/format-Cmirp0jV.js +19 -0
  504. package/dist/format-DTr5MrB3.js +787 -0
  505. package/dist/format-datetime-BzFsOTtu.js +73 -0
  506. package/dist/format-duration-3-yx54b_.js +57 -0
  507. package/dist/format-relative-CKRrUR_e.js +54 -0
  508. package/dist/frontmatter-7NzkXiTl.js +45 -0
  509. package/dist/frontmatter-BruYJzuJ.js +210 -0
  510. package/dist/fs-safe-C7Y0npoY.js +999 -0
  511. package/dist/gateway-cli-CL9kkVgP.js +25330 -0
  512. package/dist/gateway-discovery-targets-Nj88oSf4.js +430 -0
  513. package/dist/gateway-install-token-DT4JSzW6.js +231 -0
  514. package/dist/gateway-presence-C9FNv0wz.js +15 -0
  515. package/dist/gateway-registry-bOE6bwiW.js +74 -0
  516. package/dist/gateway-rpc-EUERnNbW.js +26 -0
  517. package/dist/gateway-runtime-DA85e49x.js +12 -0
  518. package/dist/gaxios-fetch-compat-TyJGVB6l.js +180 -0
  519. package/dist/gemini-auth-DU9RM3Fo.js +29 -0
  520. package/dist/get-reply-from-config.runtime-BTZAHGwc.js +2 -0
  521. package/dist/git-commit-B_DkJ7LE.js +177 -0
  522. package/dist/git-commit-Bx0Yma3I.js +2 -0
  523. package/dist/github-copilot-login-BiqEMA_7.js +11 -0
  524. package/dist/github-copilot-token-BMHm0urT.js +2 -0
  525. package/dist/github-copilot-token-CGpIsMSL.js +77 -0
  526. package/dist/global-singleton-54zT3rCn.js +13 -0
  527. package/dist/global-singleton-o2ArPCEw.js +1 -0
  528. package/dist/global-state-DUuMGgts.js +17 -0
  529. package/dist/globals-DNhziPZz.js +25 -0
  530. package/dist/gmail-setup-utils-B4xK25jT.js +421 -0
  531. package/dist/google-CPRZDTjq.js +24 -0
  532. package/dist/group-access-Cd6mU7Ys.js +113 -0
  533. package/dist/group-activation-BwfaA0gP.js +22 -0
  534. package/dist/group-id-vLZLwNVz.js +11 -0
  535. package/dist/group-policy-Cr7UXkoj.js +201 -0
  536. package/dist/group-policy-warnings-DmIDYgw8.js +196 -0
  537. package/dist/groups.runtime-DKOqtNQC.js +7 -0
  538. package/dist/handle-action-DsH0nVWk.js +500 -0
  539. package/dist/health-B3O0HygG.js +577 -0
  540. package/dist/health-CojrwX7m.js +2 -0
  541. package/dist/health-format-JFM9rFJB.js +26 -0
  542. package/dist/heartbeat-C1Xvupsk.js +122 -0
  543. package/dist/heartbeat-reply-payload-C-Rlp4k5.js +13 -0
  544. package/dist/heartbeat-summary-D5pDHsmN.js +57 -0
  545. package/dist/heartbeat-visibility-kNXllOIC.js +102 -0
  546. package/dist/heartbeat-wake-DfVExPSU.js +188 -0
  547. package/dist/help-CpuviX5S.js +81 -0
  548. package/dist/help-format-Dad85O74.js +15 -0
  549. package/dist/helpers-4IKdDZX5.js +24 -0
  550. package/dist/helpers-fNw5R_YT.js +32 -0
  551. package/dist/history-CK-v5j98.js +102 -0
  552. package/dist/home-dir-BXPtwSCY.js +83 -0
  553. package/dist/hook-runner-global-DEn0PCL0.js +602 -0
  554. package/dist/hook-runtime-Dn-Congb.js +3 -0
  555. package/dist/hooks-cli-DNKW70lO.js +353 -0
  556. package/dist/hooks-policy-Ad8y_Dfl.js +20 -0
  557. package/dist/hooks-status-Cb31D01g.js +86 -0
  558. package/dist/host-env-security-Cks-ZF3X.js +285 -0
  559. package/dist/hostname-BYGiBG2v.js +8 -0
  560. package/dist/http-body-DoRUn0Id.js +238 -0
  561. package/dist/http-registry-1oFXUjVZ.js +54 -0
  562. package/dist/http-route-overlap-CRbY2bBV.js +101 -0
  563. package/dist/identity-BBfQnFMg.js +29 -0
  564. package/dist/identity-BoQQh6Y8.js +26 -0
  565. package/dist/identity-D7VGm34b.js +84 -0
  566. package/dist/identity-avatar-CBJpFxtc.js +86 -0
  567. package/dist/identity-file-9bBicCze.js +60 -0
  568. package/dist/image-UFatuV93.js +152 -0
  569. package/dist/image-generation-CB1-VO0n.js +1 -0
  570. package/dist/image-generation-provider-CoHdiPC_.js +86 -0
  571. package/dist/image-ops-EABsGjsc.js +476 -0
  572. package/dist/image-runtime-ZZOiUbiY.js +7 -0
  573. package/dist/imessage-UUBzYSCn.js +19 -0
  574. package/dist/inbound-context-BxNfypB6.js +59 -0
  575. package/dist/inbound-context-DQ_fXNSa.js +38 -0
  576. package/dist/inbound-debounce-YEtyt_k_.js +159 -0
  577. package/dist/inbound-envelope-B6C8FhsE.js +61 -0
  578. package/dist/inbound-reply-dispatch-BP3sajLc.js +73 -0
  579. package/dist/inbound-text-DibnKFqn.js +14 -0
  580. package/dist/inbound.runtime-SCcR_etw.js +3 -0
  581. package/dist/includes-CHoL4g8x.js +188 -0
  582. package/dist/includes-scan-rcUlg6Nq.js +55 -0
  583. package/dist/index.js +56 -0
  584. package/dist/infra/warning-filter.js +2 -0
  585. package/dist/infra-runtime-D1S_mYfO.js +326 -0
  586. package/dist/input-files-BJKZz7LU.js +251 -0
  587. package/dist/input-provenance-DqtZ-oaB.js +44 -0
  588. package/dist/inspect-BdrrX2i3.js +282 -0
  589. package/dist/install-BwbpybtH.js +588 -0
  590. package/dist/install-package-dir-DhoPrQ04.js +284 -0
  591. package/dist/install-safe-path-BK_5xK2H.js +69 -0
  592. package/dist/install-security-scan-qS3b3qEq.js +22 -0
  593. package/dist/install-security-scan.runtime-BChyO9J8.js +166 -0
  594. package/dist/install-source-utils-BvLftGQS.js +167 -0
  595. package/dist/install-target-CTg66IIO.js +175 -0
  596. package/dist/install.runtime-BTSq91Fr.js +27 -0
  597. package/dist/install.runtime-D4V_unI1.js +11 -0
  598. package/dist/installs-CRoSOFIQ.js +28 -0
  599. package/dist/interactive-C3NpHdfG.js +8 -0
  600. package/dist/interactive-runtime-ihi8xJat.js +1 -0
  601. package/dist/internal-DBQug4hL.js +411 -0
  602. package/dist/internal-hooks-BbEvCG0I.js +155 -0
  603. package/dist/io-B07IaARR.js +20276 -0
  604. package/dist/io-CNajM2P9.js +4 -0
  605. package/dist/ip-B9fdE2gz.js +208 -0
  606. package/dist/ipv4-C3dcphoh.js +82 -0
  607. package/dist/irc-surface-76sLILVt.js +15 -0
  608. package/dist/is-main-Bv5ej4lF.js +27 -0
  609. package/dist/issue-format-BSF24W54.js +31 -0
  610. package/dist/issue-format-DOmwnG2e.js +2 -0
  611. package/dist/json-file-BWMSefn1.js +23 -0
  612. package/dist/json-files-BTzholfl.js +72 -0
  613. package/dist/json-mode-BSMgY7a9.js +34 -0
  614. package/dist/json-pointer-jqlJaexT.js +43 -0
  615. package/dist/json-store-BMjN0M0e.js +37 -0
  616. package/dist/keyed-async-queue-BThh1lNJ.js +32 -0
  617. package/dist/kill-tree-B6ozo-AE.js +82 -0
  618. package/dist/kill-tree-Cqktd2UA.js +2 -0
  619. package/dist/launchd-D65d45MJ.js +517 -0
  620. package/dist/lazy-runtime-CeSDvNOX.js +29 -0
  621. package/dist/lazy-service-module-BfNSCPnr.js +24 -0
  622. package/dist/legacy-names-alNfx9uv.js +7 -0
  623. package/dist/legacy-web-search-PlL5wfRE.js +140 -0
  624. package/dist/legacy.shared-BdJdF_Ji.js +45 -0
  625. package/dist/level-overrides-DkpAP8Z5.js +36 -0
  626. package/dist/library-D0LkGi9S.js +44 -0
  627. package/dist/lifecycle-core-LQrm8n7o.js +401 -0
  628. package/dist/line-C7MzXHd9.js +4 -0
  629. package/dist/line-runtime-D0TK2zdy.js +60 -0
  630. package/dist/line-surface-CN8Lvuud.js +27 -0
  631. package/dist/links-Dew9XRNK.js +17 -0
  632. package/dist/listeners-CUHNPyTB.js +14 -0
  633. package/dist/llm-slug-generator-DdO4_-IV.js +68 -0
  634. package/dist/llm-slug-generator.js +2 -0
  635. package/dist/load-CadZ3tcc.js +28 -0
  636. package/dist/loader-CbUrcgTY.js +2096 -0
  637. package/dist/local-file-access-BKg2BnYT.js +49 -0
  638. package/dist/location-DAl2Dv-o.js +42 -0
  639. package/dist/logger-BOH4EG1g.js +75 -0
  640. package/dist/logger-DXmZnecR.js +582 -0
  641. package/dist/logger-hR5Nn0oR.js +11 -0
  642. package/dist/logging-BVrQyk5K.js +13 -0
  643. package/dist/logging-BoyMPDyh.js +16 -0
  644. package/dist/logging-DPN6sRQx.js +3 -0
  645. package/dist/logging-core-BOrwsQp5.js +3 -0
  646. package/dist/logging-x8ySQJz4.js +2 -0
  647. package/dist/logs-cli-DUKwlDzr.js +221 -0
  648. package/dist/magic-string.es-CnHiwmBJ.js +1011 -0
  649. package/dist/main-session-BQ1fLshb.js +38 -0
  650. package/dist/manager-BfZUkAlZ.js +7 -0
  651. package/dist/manager.runtime-CiRcAT_V.js +670 -0
  652. package/dist/manifest-D49j8zhq.js +231 -0
  653. package/dist/manifest-registry-CVwreH55.js +955 -0
  654. package/dist/map-size-CHeGE-Hu.js +15 -0
  655. package/dist/markdown-tables-D2sUymqZ.js +31 -0
  656. package/dist/mask-api-key-Dxw856id.js +10 -0
  657. package/dist/matrix-Ds9X7gxo.js +340 -0
  658. package/dist/matrix-config-helpers-CXItIHIe.js +153 -0
  659. package/dist/matrix-helper-dQNUz9y1.js +20 -0
  660. package/dist/matrix-migration-snapshot-BSPlCZpf.js +714 -0
  661. package/dist/matrix-runtime-surface-Dggb-0DD.js +12 -0
  662. package/dist/matrix-surface-CxJ9TM8l.js +13 -0
  663. package/dist/matrix-thread-bindings-CT4Dqsid.js +12 -0
  664. package/dist/mcp/plugin-tools-serve.js +105 -0
  665. package/dist/mcp-cli-IzvP-l2E.js +768 -0
  666. package/dist/mcp-config-Bul9F_lO.js +117 -0
  667. package/dist/media-limits-CfgImPSH.js +14 -0
  668. package/dist/media-runtime-D2qFlSNy.js +293 -0
  669. package/dist/media-understanding-D930-yxA.js +43 -0
  670. package/dist/media-understanding-provider-WeSvV5Jz.js +27 -0
  671. package/dist/media-understanding-runtime-C2xB_w9c.js +15 -0
  672. package/dist/media-understanding.runtime-Cad8YO-5.js +7 -0
  673. package/dist/memory-core-engine-runtime-e08xLNwK.js +14 -0
  674. package/dist/memory-core-host-engine-embeddings-CeqjF8mF.js +1369 -0
  675. package/dist/memory-core-host-engine-qmd-2rX9HR2g.js +375 -0
  676. package/dist/memory-core-host-engine-storage-BocZ6yow.js +109 -0
  677. package/dist/memory-core-host-multimodal-DgBuQzZm.js +1 -0
  678. package/dist/memory-core-host-query-Cekrv97-.js +2 -0
  679. package/dist/memory-core-host-runtime-cli--EQHw17R.js +10 -0
  680. package/dist/memory-core-host-runtime-core-DX17el9Z.js +8 -0
  681. package/dist/memory-core-host-runtime-files-CeDFldc-.js +3 -0
  682. package/dist/memory-core-host-secret-BUGjwboV.js +1 -0
  683. package/dist/memory-core-host-status-C7nF33J8.js +44 -0
  684. package/dist/memory-embedding-providers-C8KLZUqC.js +34 -0
  685. package/dist/memory-runtime-D2rQY7mY.js +2 -0
  686. package/dist/memory-runtime-WuWYrOU9.js +30 -0
  687. package/dist/memory-search-BQs_twVs.js +2 -0
  688. package/dist/memory-search-L16IM5VZ.js +202 -0
  689. package/dist/memory-state-BPOopEhZ.js +41 -0
  690. package/dist/mention-gating-BJSMiJu8.js +25 -0
  691. package/dist/mentions-D0fLhfbe.js +155 -0
  692. package/dist/mentions-Ksl6lu1X.js +65 -0
  693. package/dist/merge-patch-CY3S-7zE.js +240 -0
  694. package/dist/message-D1nCeSGV.js +205 -0
  695. package/dist/message-action-discovery-Bp_zFTg1.js +133 -0
  696. package/dist/message-action-runner-DOaZ7jbV.js +1601 -0
  697. package/dist/message-channel-Di9LQZCg.js +105 -0
  698. package/dist/message-handler-CVxycGRP.js +1759 -0
  699. package/dist/message-hook-mappers-CgJovp_6.js +255 -0
  700. package/dist/message-secret-scope-BsvGcXOU.js +104 -0
  701. package/dist/method-scopes-1fMDkPgy.js +2608 -0
  702. package/dist/mime-CPj5mSwT.js +150 -0
  703. package/dist/min-host-version-BROqyGiT.js +348 -0
  704. package/dist/minimax-vlm-ciXgon3-.js +502 -0
  705. package/dist/model-auth-FAjaPIyj.js +330 -0
  706. package/dist/model-auth-env-aXebmtnO.js +42 -0
  707. package/dist/model-auth-label-BdkmYsfL.js +45 -0
  708. package/dist/model-auth-markers-CAxoOhNr.js +70 -0
  709. package/dist/model-auth-runtime-shared-C6EfNsiC.js +18 -0
  710. package/dist/model-catalog-DcYmAWnK.js +208 -0
  711. package/dist/model-catalog.runtime-BnfcWBe6.js +2 -0
  712. package/dist/model-input-shLH7pnZ.js +20 -0
  713. package/dist/model-overrides-CCPXEsf4.js +61 -0
  714. package/dist/model-overrides-CbljEHPO.js +84 -0
  715. package/dist/model-param-b-C9Se0GAW.js +15 -0
  716. package/dist/model-picker-7YHY1_DM.js +439 -0
  717. package/dist/model-picker-cAVRu3J8.js +3 -0
  718. package/dist/model-picker.runtime-DbCF7jcT.js +15 -0
  719. package/dist/model-selection-DLV9QudA.js +486 -0
  720. package/dist/model-selection-teaznyVt.js +407 -0
  721. package/dist/model-suppression-DxU9Wl3w.js +24 -0
  722. package/dist/model-suppression.runtime-DdJpj7Pn.js +7 -0
  723. package/dist/models-BktgoCTN.js +3 -0
  724. package/dist/models-DxC1yWIR.js +2550 -0
  725. package/dist/models-cli-BQJGDwlZ.js +197 -0
  726. package/dist/models-config-BrM95ZWn.js +2 -0
  727. package/dist/models-config-WznILp-f.js +1106 -0
  728. package/dist/models-config.runtime-DKvV7dBw.js +2 -0
  729. package/dist/monitor-B7Wimfc0.js +6004 -0
  730. package/dist/moonshot-stream-wrappers-CAVTNNIV.js +27 -0
  731. package/dist/moonshot-thinking-stream-wrappers-DSGFaY0P.js +69 -0
  732. package/dist/multimodal-fHfIB02R.js +66 -0
  733. package/dist/mutable-allowlist-detectors-Cz3_rHTS.js +62 -0
  734. package/dist/native-command-session-targets-YEwzYdBY.js +10 -0
  735. package/dist/net-DV8cgxeU.js +264 -0
  736. package/dist/network-mode-DlVi9UOI.js +17 -0
  737. package/dist/node-cli-BOOTFx0A.js +2201 -0
  738. package/dist/node-command-policy-H9JvUbqw.js +190 -0
  739. package/dist/node-commands-CtUW-J-z.js +11 -0
  740. package/dist/node-require-BgDD9bTi.js +14 -0
  741. package/dist/node-resolve-r0n2qCFZ.js +110 -0
  742. package/dist/node-service-BTIQHcIe.js +68 -0
  743. package/dist/node-startup-env-CVMjxAUF.js +50 -0
  744. package/dist/nodes-cli-DSe8_891.js +1050 -0
  745. package/dist/nodes-screen-BFBwMK0F.js +219 -0
  746. package/dist/nodes.helpers-C5_joVF0.js +204 -0
  747. package/dist/normalize-TCHtmmQz.js +35 -0
  748. package/dist/normalize-reply-D3AZv-Ku.js +500 -0
  749. package/dist/normalize-secret-input-Botsab7G.js +32 -0
  750. package/dist/note-BopuvWl0.js +109 -0
  751. package/dist/npm-registry-spec-C04c6qSA.js +100 -0
  752. package/dist/ollama-DHGG2Bt4.js +26 -0
  753. package/dist/ollama-surface-C297W-Hb.js +24 -0
  754. package/dist/onboard-BLF26Ra3.js +591 -0
  755. package/dist/onboard-channels-C7VwUlqL.js +2 -0
  756. package/dist/onboard-channels-CNYuwk6A.js +705 -0
  757. package/dist/onboard-config-BHR99vFk.js +2 -0
  758. package/dist/onboard-config-CDwd7KFG.js +29 -0
  759. package/dist/onboard-custom-B-SjrGJ_.js +2 -0
  760. package/dist/onboard-custom-BYciMnUV.js +646 -0
  761. package/dist/onboard-helpers-CXSVhHmw.js +4 -0
  762. package/dist/onboard-helpers-DQzH15KX.js +272 -0
  763. package/dist/onboard-hooks-dbSmp47O.js +52 -0
  764. package/dist/onboard-remote-76zO-wtV.js +2 -0
  765. package/dist/onboard-remote-CV8CYWRk.js +193 -0
  766. package/dist/onboard-search-CR1tclPf.js +339 -0
  767. package/dist/onboard-skills-B3nol3_I.js +2 -0
  768. package/dist/onboard-skills-BWzgYZiw.js +134 -0
  769. package/dist/openai-CYdnp7Xp.js +21 -0
  770. package/dist/openai-codex-auth-identity-DYIekza3.js +40 -0
  771. package/dist/openai-codex-catalog-C9jNVPkk.js +11 -0
  772. package/dist/openai-codex-provider-CihFFdms.js +254 -0
  773. package/dist/openai-provider-CY9og1U4.js +272 -0
  774. package/dist/openai-stream-wrappers-DMltslUP.js +453 -0
  775. package/dist/operator-approvals-client-CrZARXVS.js +33 -0
  776. package/dist/order-EE5jGs_C.js +744 -0
  777. package/dist/origin-routing-IIB1gZNP.js +15 -0
  778. package/dist/os-summary-B2xVpxVk.js +26 -0
  779. package/dist/outbound-adapter-BXuNyLX4.js +181 -0
  780. package/dist/outbound-media-Do8el7w-.js +48 -0
  781. package/dist/outbound-runtime-BsrPMYQX.js +2 -0
  782. package/dist/outbound-send-deps-RCYokJDu.js +7 -0
  783. package/dist/pairing-challenge-C6zO1O_e.js +33 -0
  784. package/dist/pairing-cli-lSGiQegx.js +116 -0
  785. package/dist/pairing-labels-CqTzyQv4.js +7 -0
  786. package/dist/pairing-message-CLV_7GCg.js +4 -0
  787. package/dist/pairing-messages-Bms_bews.js +23 -0
  788. package/dist/pairing-pending-CymkYopg.js +14 -0
  789. package/dist/pairing-store-BgSXc67b.js +617 -0
  790. package/dist/pairing-token-trqjnXaR.js +80 -0
  791. package/dist/parse-duration-FGYGEVrK.js +41 -0
  792. package/dist/parse-finite-number-CpMi4ac9.js +30 -0
  793. package/dist/parse-log-line-DB02BPsG.js +43 -0
  794. package/dist/parse-port-CfkrReDG.js +8 -0
  795. package/dist/parse-timeout-CqVxIetA.js +27 -0
  796. package/dist/path-alias-guards-CTG--JDv.js +40 -0
  797. package/dist/path-env-Coe9j6U3.js +87 -0
  798. package/dist/path-safety-BtrNm8CZ.js +12 -0
  799. package/dist/paths-dFp6bjkV.js +180 -0
  800. package/dist/paths-voC5pD8X.js +201 -0
  801. package/dist/payload-BiCTL_Go.js +90 -0
  802. package/dist/pdf-extract-DYqhcrys.js +73 -0
  803. package/dist/persistent-bindings.resolve-BG1W2wH2.js +12 -0
  804. package/dist/persistent-bindings.types-yg27a-LN.js +6 -0
  805. package/dist/persistent-dedupe-DeJFOp8F.js +116 -0
  806. package/dist/pi-model-discovery-4V1cP6C-.js +188 -0
  807. package/dist/pi-settings-tFYTni5h.js +57 -0
  808. package/dist/plugin-approvals-BBS3Vgt6.js +34 -0
  809. package/dist/plugin-auto-enable-B4gIDfiP.js +349 -0
  810. package/dist/plugin-entry-D7EjsbGL.js +25 -0
  811. package/dist/plugin-install-CBe57uiZ.js +2 -0
  812. package/dist/plugin-install-PbQ6ukY-.js +191 -0
  813. package/dist/plugin-install-config-policy-MQbVt-fA.js +93 -0
  814. package/dist/plugin-install-path-warnings-BfBOA9nm.js +40 -0
  815. package/dist/plugin-install-plan-DKH1Osjr.js +50 -0
  816. package/dist/plugin-registry-D2DvWTxI.js +2 -0
  817. package/dist/plugin-registry-t_GnpNNe.js +70 -0
  818. package/dist/plugin-runtime-kxm6OF3O.js +6 -0
  819. package/dist/plugin-sdk/account-core.js +8 -0
  820. package/dist/plugin-sdk/account-helpers.js +4 -0
  821. package/dist/plugin-sdk/account-id.js +3 -0
  822. package/dist/plugin-sdk/account-resolution.js +12 -0
  823. package/dist/plugin-sdk/acp-runtime.js +6 -0
  824. package/dist/plugin-sdk/agent-config-primitives.js +3 -0
  825. package/dist/plugin-sdk/agent-runtime.js +29 -0
  826. package/dist/plugin-sdk/allow-from.js +5 -0
  827. package/dist/plugin-sdk/allowlist-config-edit.js +2 -0
  828. package/dist/plugin-sdk/amazon-bedrock.js +15 -0
  829. package/dist/plugin-sdk/anthropic-vertex.js +2 -0
  830. package/dist/plugin-sdk/approval-runtime.js +7 -0
  831. package/dist/plugin-sdk/bluebubbles-policy.js +2 -0
  832. package/dist/plugin-sdk/bluebubbles.js +255 -0
  833. package/dist/plugin-sdk/boolean-param.js +2 -0
  834. package/dist/plugin-sdk/browser-runtime.js +2 -0
  835. package/dist/plugin-sdk/browser-support.js +44 -0
  836. package/dist/plugin-sdk/browser.js +15 -0
  837. package/dist/plugin-sdk/byteplus.js +17 -0
  838. package/dist/plugin-sdk/channel-actions.js +3 -0
  839. package/dist/plugin-sdk/channel-config-helpers.js +2 -0
  840. package/dist/plugin-sdk/channel-config-primitives.js +3 -0
  841. package/dist/plugin-sdk/channel-config-schema.js +7 -0
  842. package/dist/plugin-sdk/channel-config-writes.js +2 -0
  843. package/dist/plugin-sdk/channel-contract.js +1 -0
  844. package/dist/plugin-sdk/channel-feedback.js +5 -0
  845. package/dist/plugin-sdk/channel-inbound.js +10 -0
  846. package/dist/plugin-sdk/channel-lifecycle.js +3 -0
  847. package/dist/plugin-sdk/channel-pairing.js +2 -0
  848. package/dist/plugin-sdk/channel-policy.js +6 -0
  849. package/dist/plugin-sdk/channel-reply-pipeline.js +2 -0
  850. package/dist/plugin-sdk/channel-runtime.js +15 -0
  851. package/dist/plugin-sdk/channel-send-result.js +2 -0
  852. package/dist/plugin-sdk/channel-setup.js +5 -0
  853. package/dist/plugin-sdk/channel-status.js +5 -0
  854. package/dist/plugin-sdk/channel-targets.js +4 -0
  855. package/dist/plugin-sdk/chutes.js +20 -0
  856. package/dist/plugin-sdk/cli-backend.js +3 -0
  857. package/dist/plugin-sdk/cli-runtime.js +6 -0
  858. package/dist/plugin-sdk/cloudflare-ai-gateway.js +18 -0
  859. package/dist/plugin-sdk/collection-runtime.js +2 -0
  860. package/dist/plugin-sdk/command-auth-native.js +6 -0
  861. package/dist/plugin-sdk/command-auth.js +14 -0
  862. package/dist/plugin-sdk/compat.js +35 -0
  863. package/dist/plugin-sdk/config-runtime.js +22 -0
  864. package/dist/plugin-sdk/conversation-runtime.js +15 -0
  865. package/dist/plugin-sdk/core.js +22 -0
  866. package/dist/plugin-sdk/deepseek.js +14 -0
  867. package/dist/plugin-sdk/device-bootstrap.js +3 -0
  868. package/dist/plugin-sdk/diagnostic-runtime.js +4 -0
  869. package/dist/plugin-sdk/diagnostics-otel.js +5 -0
  870. package/dist/plugin-sdk/diffs.js +3 -0
  871. package/dist/plugin-sdk/direct-dm.js +2 -0
  872. package/dist/plugin-sdk/directory-runtime.js +5 -0
  873. package/dist/plugin-sdk/discord-account.js +2 -0
  874. package/dist/plugin-sdk/discord-core.js +9 -0
  875. package/dist/plugin-sdk/discord-runtime-surface.js +2 -0
  876. package/dist/plugin-sdk/discord-session-key.js +2 -0
  877. package/dist/plugin-sdk/discord-surface.js +2 -0
  878. package/dist/plugin-sdk/discord-thread-bindings.js +2 -0
  879. package/dist/plugin-sdk/discord-timeouts.js +2 -0
  880. package/dist/plugin-sdk/discord.js +21 -0
  881. package/dist/plugin-sdk/error-runtime.js +3 -0
  882. package/dist/plugin-sdk/extension-shared.js +75 -0
  883. package/dist/plugin-sdk/feishu-conversation.js +2 -0
  884. package/dist/plugin-sdk/feishu-setup.js +2 -0
  885. package/dist/plugin-sdk/feishu.js +33 -0
  886. package/dist/plugin-sdk/fetch-runtime.js +7 -0
  887. package/dist/plugin-sdk/file-lock.js +2 -0
  888. package/dist/plugin-sdk/gateway-runtime.js +4 -0
  889. package/dist/plugin-sdk/github-copilot-login.js +2 -0
  890. package/dist/plugin-sdk/github-copilot-token.js +2 -0
  891. package/dist/plugin-sdk/global-singleton.js +4 -0
  892. package/dist/plugin-sdk/google.js +2 -0
  893. package/dist/plugin-sdk/googlechat.js +58 -0
  894. package/dist/plugin-sdk/group-access.js +2 -0
  895. package/dist/plugin-sdk/hook-runtime.js +4 -0
  896. package/dist/plugin-sdk/host-runtime.js +3 -0
  897. package/dist/plugin-sdk/huggingface.js +18 -0
  898. package/dist/plugin-sdk/image-generation-core.js +63 -0
  899. package/dist/plugin-sdk/image-generation.js +2 -0
  900. package/dist/plugin-sdk/index.js +5 -0
  901. package/dist/plugin-sdk/infra-runtime.js +45 -0
  902. package/dist/plugin-sdk/interactive-runtime.js +4 -0
  903. package/dist/plugin-sdk/irc-surface.js +2 -0
  904. package/dist/plugin-sdk/irc.js +30 -0
  905. package/dist/plugin-sdk/json-store.js +3 -0
  906. package/dist/plugin-sdk/keyed-async-queue.js +2 -0
  907. package/dist/plugin-sdk/kilocode.js +23 -0
  908. package/dist/plugin-sdk/kimi-coding.js +11 -0
  909. package/dist/plugin-sdk/lazy-runtime.js +2 -0
  910. package/dist/plugin-sdk/line-core.js +6 -0
  911. package/dist/plugin-sdk/line-runtime.js +2 -0
  912. package/dist/plugin-sdk/line-surface.js +2 -0
  913. package/dist/plugin-sdk/line.js +9 -0
  914. package/dist/plugin-sdk/llm-task.js +5 -0
  915. package/dist/plugin-sdk/logging-core.js +5 -0
  916. package/dist/plugin-sdk/matrix-helper.js +2 -0
  917. package/dist/plugin-sdk/matrix-runtime-heavy.js +4 -0
  918. package/dist/plugin-sdk/matrix-runtime-shared.js +2 -0
  919. package/dist/plugin-sdk/matrix-runtime-surface.js +2 -0
  920. package/dist/plugin-sdk/matrix-surface.js +2 -0
  921. package/dist/plugin-sdk/matrix-thread-bindings.js +2 -0
  922. package/dist/plugin-sdk/matrix.js +64 -0
  923. package/dist/plugin-sdk/mattermost-policy.js +11 -0
  924. package/dist/plugin-sdk/mattermost.js +42 -0
  925. package/dist/plugin-sdk/media-runtime.js +15 -0
  926. package/dist/plugin-sdk/media-understanding-runtime.js +2 -0
  927. package/dist/plugin-sdk/media-understanding.js +3 -0
  928. package/dist/plugin-sdk/memory-core-engine-runtime.js +2 -0
  929. package/dist/plugin-sdk/memory-core-host-engine-embeddings.js +6 -0
  930. package/dist/plugin-sdk/memory-core-host-engine-foundation.js +17 -0
  931. package/dist/plugin-sdk/memory-core-host-engine-qmd.js +3 -0
  932. package/dist/plugin-sdk/memory-core-host-engine-storage.js +4 -0
  933. package/dist/plugin-sdk/memory-core-host-multimodal.js +3 -0
  934. package/dist/plugin-sdk/memory-core-host-query.js +3 -0
  935. package/dist/plugin-sdk/memory-core-host-runtime-cli.js +12 -0
  936. package/dist/plugin-sdk/memory-core-host-runtime-core.js +13 -0
  937. package/dist/plugin-sdk/memory-core-host-runtime-files.js +4 -0
  938. package/dist/plugin-sdk/memory-core-host-secret.js +3 -0
  939. package/dist/plugin-sdk/memory-core-host-status.js +2 -0
  940. package/dist/plugin-sdk/memory-core.js +28 -0
  941. package/dist/plugin-sdk/memory-lancedb.js +4 -0
  942. package/dist/plugin-sdk/minimax.js +24 -0
  943. package/dist/plugin-sdk/mistral.js +17 -0
  944. package/dist/plugin-sdk/modelstudio-definitions.js +19 -0
  945. package/dist/plugin-sdk/modelstudio.js +24 -0
  946. package/dist/plugin-sdk/moonshot.js +17 -0
  947. package/dist/plugin-sdk/msteams.js +54 -0
  948. package/dist/plugin-sdk/nextcloud-talk.js +35 -0
  949. package/dist/plugin-sdk/nostr.js +24 -0
  950. package/dist/plugin-sdk/nvidia.js +11 -0
  951. package/dist/plugin-sdk/ollama-surface.js +2 -0
  952. package/dist/plugin-sdk/ollama.js +2 -0
  953. package/dist/plugin-sdk/openai.js +2 -0
  954. package/dist/plugin-sdk/opencode-go.js +14 -0
  955. package/dist/plugin-sdk/opencode.js +15 -0
  956. package/dist/plugin-sdk/outbound-runtime.js +5 -0
  957. package/dist/plugin-sdk/param-readers.js +2 -0
  958. package/dist/plugin-sdk/plugin-entry.js +3 -0
  959. package/dist/plugin-sdk/plugin-runtime.js +8 -0
  960. package/dist/plugin-sdk/process-runtime.js +2 -0
  961. package/dist/plugin-sdk/provider-auth-api-key.js +9 -0
  962. package/dist/plugin-sdk/provider-auth-login.js +2 -0
  963. package/dist/plugin-sdk/provider-auth-result.js +2 -0
  964. package/dist/plugin-sdk/provider-auth-runtime.js +5 -0
  965. package/dist/plugin-sdk/provider-auth.js +17 -0
  966. package/dist/plugin-sdk/provider-catalog-shared.js +2 -0
  967. package/dist/plugin-sdk/provider-entry.js +86 -0
  968. package/dist/plugin-sdk/provider-env-vars.js +2 -0
  969. package/dist/plugin-sdk/provider-http.js +3 -0
  970. package/dist/plugin-sdk/provider-model-shared.js +5 -0
  971. package/dist/plugin-sdk/provider-moonshot.js +3 -0
  972. package/dist/plugin-sdk/provider-onboard.js +3 -0
  973. package/dist/plugin-sdk/provider-setup.js +2 -0
  974. package/dist/plugin-sdk/provider-stream.js +4 -0
  975. package/dist/plugin-sdk/provider-tools.js +2 -0
  976. package/dist/plugin-sdk/provider-usage.js +3 -0
  977. package/dist/plugin-sdk/provider-web-search.js +6 -0
  978. package/dist/plugin-sdk/provider-zai-endpoint.js +116 -0
  979. package/dist/plugin-sdk/qianfan.js +13 -0
  980. package/dist/plugin-sdk/reply-chunking.js +3 -0
  981. package/dist/plugin-sdk/reply-dispatch-runtime.js +5 -0
  982. package/dist/plugin-sdk/reply-history.js +3 -0
  983. package/dist/plugin-sdk/reply-payload.js +2 -0
  984. package/dist/plugin-sdk/reply-runtime.js +14 -0
  985. package/dist/plugin-sdk/request-url.js +2 -0
  986. package/dist/plugin-sdk/retry-runtime.js +4 -0
  987. package/dist/plugin-sdk/root-alias.cjs +347 -0
  988. package/dist/plugin-sdk/routing.js +9 -0
  989. package/dist/plugin-sdk/runtime-env.js +17 -0
  990. package/dist/plugin-sdk/runtime-store.js +2 -0
  991. package/dist/plugin-sdk/runtime.js +9 -0
  992. package/dist/plugin-sdk/sandbox.js +5 -0
  993. package/dist/plugin-sdk/secret-input.js +4 -0
  994. package/dist/plugin-sdk/security-runtime.js +5 -0
  995. package/dist/plugin-sdk/self-hosted-provider-setup.js +2 -0
  996. package/dist/plugin-sdk/setup-adapter-runtime.js +3 -0
  997. package/dist/plugin-sdk/setup-runtime.js +6 -0
  998. package/dist/plugin-sdk/setup-tools.js +6 -0
  999. package/dist/plugin-sdk/setup.js +13 -0
  1000. package/dist/plugin-sdk/sglang.js +15 -0
  1001. package/dist/plugin-sdk/signal-account.js +2 -0
  1002. package/dist/plugin-sdk/signal-surface.js +2 -0
  1003. package/dist/plugin-sdk/signal.js +24 -0
  1004. package/dist/plugin-sdk/slack-account.js +2 -0
  1005. package/dist/plugin-sdk/slack-core.js +7 -0
  1006. package/dist/plugin-sdk/slack-runtime-surface.js +2 -0
  1007. package/dist/plugin-sdk/slack-surface.js +2 -0
  1008. package/dist/plugin-sdk/slack-target-parser.js +2 -0
  1009. package/dist/plugin-sdk/slack-targets.js +3 -0
  1010. package/dist/plugin-sdk/slack.js +20 -0
  1011. package/dist/plugin-sdk/speech-core.js +4 -0
  1012. package/dist/plugin-sdk/speech-runtime.js +2 -0
  1013. package/dist/plugin-sdk/speech.js +5 -0
  1014. package/dist/plugin-sdk/ssrf-runtime.js +6 -0
  1015. package/dist/plugin-sdk/state-paths.js +3 -0
  1016. package/dist/plugin-sdk/status-helpers.js +4 -0
  1017. package/dist/plugin-sdk/synthetic.js +17 -0
  1018. package/dist/plugin-sdk/telegram-account.js +2 -0
  1019. package/dist/plugin-sdk/telegram-allow-from.js +12 -0
  1020. package/dist/plugin-sdk/telegram-core.js +18 -0
  1021. package/dist/plugin-sdk/telegram-surface.js +42 -0
  1022. package/dist/plugin-sdk/temp-path.js +4 -0
  1023. package/dist/plugin-sdk/testing.js +11 -0
  1024. package/dist/plugin-sdk/text-runtime.js +20 -0
  1025. package/dist/plugin-sdk/thread-bindings-runtime.js +3 -0
  1026. package/dist/plugin-sdk/thread-ownership.js +4 -0
  1027. package/dist/plugin-sdk/tlon.js +23 -0
  1028. package/dist/plugin-sdk/together.js +16 -0
  1029. package/dist/plugin-sdk/tool-send.js +2 -0
  1030. package/dist/plugin-sdk/twitch.js +17 -0
  1031. package/dist/plugin-sdk/venice.js +16 -0
  1032. package/dist/plugin-sdk/vllm.js +15 -0
  1033. package/dist/plugin-sdk/voice-call.js +6 -0
  1034. package/dist/plugin-sdk/volcengine.js +17 -0
  1035. package/dist/plugin-sdk/web-media.js +3 -0
  1036. package/dist/plugin-sdk/webhook-ingress.js +9 -0
  1037. package/dist/plugin-sdk/webhook-path.js +2 -0
  1038. package/dist/plugin-sdk/webhook-request-guards.js +3 -0
  1039. package/dist/plugin-sdk/whatsapp-auth-presence.js +3 -0
  1040. package/dist/plugin-sdk/whatsapp-core.js +11 -0
  1041. package/dist/plugin-sdk/whatsapp-shared.js +3 -0
  1042. package/dist/plugin-sdk/whatsapp-surface.js +2 -0
  1043. package/dist/plugin-sdk/whatsapp-targets.js +2 -0
  1044. package/dist/plugin-sdk/windows-spawn.js +2 -0
  1045. package/dist/plugin-sdk/xai.js +2 -0
  1046. package/dist/plugin-sdk/zalo-setup.js +2 -0
  1047. package/dist/plugin-sdk/zalo.js +37 -0
  1048. package/dist/plugin-sdk/zalouser.js +39 -0
  1049. package/dist/plugin-sdk/zod.js +2 -0
  1050. package/dist/plugins/build-smoke-entry.js +4 -0
  1051. package/dist/plugins/provider-runtime.runtime.js +2 -0
  1052. package/dist/plugins/runtime/index.js +2 -0
  1053. package/dist/plugins/runtime/runtime-line.contract.js +23 -0
  1054. package/dist/plugins-BUhqQahf.js +7 -0
  1055. package/dist/plugins-D3E9gBoB.js +5 -0
  1056. package/dist/plugins-allowlist-BsE4VUd6.js +14 -0
  1057. package/dist/plugins-cli-DNIRlpEw.js +551 -0
  1058. package/dist/plugins-command-helpers-D0cHWZ8k.js +116 -0
  1059. package/dist/plugins-install-persist-B4VRDkMW.js +121 -0
  1060. package/dist/plugins-update-command-CVpqSCHk.js +974 -0
  1061. package/dist/pluralkit-BLAFsOsu.js +21 -0
  1062. package/dist/poll-params-BRovIMUP.js +52 -0
  1063. package/dist/polls-BJAJSaiP.js +35 -0
  1064. package/dist/port-defaults-BSVMFkjY.js +30 -0
  1065. package/dist/ports-Bc5Ccog1.js +262 -0
  1066. package/dist/ports-C4UXOMrf.js +432 -0
  1067. package/dist/ports-lsof-BGtOoYbU.js +25 -0
  1068. package/dist/ports-probe-BsWR8TFT.js +14 -0
  1069. package/dist/preflight-audio.runtime-C9Vy2rmC.js +7 -0
  1070. package/dist/probe-BQag0DWb.js +178 -0
  1071. package/dist/probe-Ba_tzX9A.js +383 -0
  1072. package/dist/probe-CU89zpYY.js +2 -0
  1073. package/dist/probe-DqrD8L5s.js +137 -0
  1074. package/dist/probe-auth-B_8xyHva.js +63 -0
  1075. package/dist/probe-auth-ynM8e9Ac.js +2 -0
  1076. package/dist/probe.runtime-CJ9xp7YD.js +2 -0
  1077. package/dist/process-scoped-map-DSo5-USL.js +61 -0
  1078. package/dist/profile-utils-C7uzTwgJ.js +15 -0
  1079. package/dist/profiles-bHSSYfJl.js +79 -0
  1080. package/dist/program-context-87EEruZh.js +10 -0
  1081. package/dist/program-context-D14SwQxo.js +2 -0
  1082. package/dist/program-wvgzSxLY.js +158 -0
  1083. package/dist/progress-BvK_oMpz.js +132 -0
  1084. package/dist/prompt-CtkpPKiX.js +2 -0
  1085. package/dist/prompt-DOBS3BID.js +20 -0
  1086. package/dist/prompt-select-styled-c91_PlKW.js +5468 -0
  1087. package/dist/prompt-style-DRmsfagi.js +7 -0
  1088. package/dist/prompts-DAJPf5yB.js +9 -0
  1089. package/dist/prototype-keys-BWjW0VW8.js +11 -0
  1090. package/dist/provider-C6dmSPJE.js +7237 -0
  1091. package/dist/provider-api-key-auth-BBRnMefH.js +109 -0
  1092. package/dist/provider-api-key-auth.runtime-obo7wOYn.js +14 -0
  1093. package/dist/provider-auth-BTrDFsFt.js +43 -0
  1094. package/dist/provider-auth-api-key-BhD_cXM7.js +5 -0
  1095. package/dist/provider-auth-choice-2fsBmYtb.js +134 -0
  1096. package/dist/provider-auth-choice-helpers-DLlNwVwg.js +58 -0
  1097. package/dist/provider-auth-choice-preference-BkZTzT1J.js +44 -0
  1098. package/dist/provider-auth-choice.runtime-BHkXn7WH.js +14 -0
  1099. package/dist/provider-auth-choice.runtime-r6ydqD_o.js +2 -0
  1100. package/dist/provider-auth-choices-AHFkSF9C.js +65 -0
  1101. package/dist/provider-auth-guidance-Bo67Hboq.js +35 -0
  1102. package/dist/provider-auth-helpers-Bk-AB5Wp.js +92 -0
  1103. package/dist/provider-auth-input-kKdGWlxc.js +116 -0
  1104. package/dist/provider-auth-login-dOLrU5NV.js +8 -0
  1105. package/dist/provider-auth-login.runtime-C_GzFGmF.js +196 -0
  1106. package/dist/provider-auth-mode-B8uz1z07.js +20 -0
  1107. package/dist/provider-auth-ref-Bq-MejeL.js +2 -0
  1108. package/dist/provider-auth-ref-DRl66ULG.js +171 -0
  1109. package/dist/provider-auth-result-CkUVvE5c.js +31 -0
  1110. package/dist/provider-auth-runtime-BRAnqbBW.js +32 -0
  1111. package/dist/provider-catalog-shared-BdXDqt2_.js +28 -0
  1112. package/dist/provider-discovery.runtime-BKQXZvW1.js +10 -0
  1113. package/dist/provider-dispatcher-Cic3Zvgm.js +22 -0
  1114. package/dist/provider-env-vars-X-m-m1cR.js +119 -0
  1115. package/dist/provider-flow-rMDy096Q.js +93 -0
  1116. package/dist/provider-id-CTiEzT1T.js +30 -0
  1117. package/dist/provider-model-primary-QC1J1e8s.js +26 -0
  1118. package/dist/provider-model-shared-YwZtB78q.js +104 -0
  1119. package/dist/provider-oauth-flow-DGhuMjqj.js +33 -0
  1120. package/dist/provider-onboard-Dhee14q4.js +264 -0
  1121. package/dist/provider-openai-codex-oauth-tls-CExxHKyb.js +101 -0
  1122. package/dist/provider-registry-7IbNpklR.js +49 -0
  1123. package/dist/provider-runtime-C3NxbOtm.js +2 -0
  1124. package/dist/provider-runtime-DWDjorB4.js +275 -0
  1125. package/dist/provider-runtime.runtime-BYVCPiGA.js +26 -0
  1126. package/dist/provider-self-hosted-setup-Cr4L3fdW.js +272 -0
  1127. package/dist/provider-session.runtime-BHtGAIna.js +8 -0
  1128. package/dist/provider-stream-DpUrpHvN.js +266 -0
  1129. package/dist/provider-tools-L23YSx8p.js +37 -0
  1130. package/dist/provider-usage-BWLu6XJt.js +375 -0
  1131. package/dist/provider-usage-BwHu9Ee_.js +3 -0
  1132. package/dist/provider-usage-CfYpxnUD.js +2 -0
  1133. package/dist/provider-usage.fetch-BCNscJcf.js +633 -0
  1134. package/dist/provider-web-search-CJBYgiMq.js +717 -0
  1135. package/dist/provider-wizard-BGXsleZZ.js +209 -0
  1136. package/dist/provider.runtime-BS0qB3qa.js +2 -0
  1137. package/dist/providers-DTi5kDSF.js +59 -0
  1138. package/dist/providers.runtime-7kqrRLzO.js +55 -0
  1139. package/dist/proxy-env-CEq84zdW.js +40 -0
  1140. package/dist/proxy-fetch-BI4S6OOr.js +55 -0
  1141. package/dist/push-apns-btlZ1qmo.js +921 -0
  1142. package/dist/pw-ai-Crk1oU2c.js +1827 -0
  1143. package/dist/qr-cli-CBrnKR40.js +368 -0
  1144. package/dist/qr-cli-D35IbCMe.js +2 -0
  1145. package/dist/query-expansion-CTVRVJBc.js +633 -0
  1146. package/dist/read-only-account-inspect-CtMAYZjJ.js +9 -0
  1147. package/dist/read-only-account-inspect.telegram-DsWhEWsi.js +202 -0
  1148. package/dist/reasoning-tags-C0A8lJGB.js +77 -0
  1149. package/dist/redact-BDinS1q9.js +102 -0
  1150. package/dist/redact-identifier-CIxwZTyq.js +13 -0
  1151. package/dist/redact-sensitive-url-BYqi2BEL.js +50 -0
  1152. package/dist/redirect-headers-BX_akPpf.js +25 -0
  1153. package/dist/ref-contract-D5ynmOGd.js +53 -0
  1154. package/dist/register-lazy-command-C1up25zY.js +43 -0
  1155. package/dist/register.agent-BoS4J17I.js +239 -0
  1156. package/dist/register.backup-CJxtB0Qd.js +236 -0
  1157. package/dist/register.configure-a7pFaHfe.js +15 -0
  1158. package/dist/register.maintenance-BtI8X-uf.js +450 -0
  1159. package/dist/register.message-BQRkPLq3.js +643 -0
  1160. package/dist/register.onboard-CthiWQxu.js +79 -0
  1161. package/dist/register.setup-BnxRKFDi.js +104 -0
  1162. package/dist/register.status-health-sessions-CHaa5NX0.js +705 -0
  1163. package/dist/register.subclis-DKmBSSCn.js +3 -0
  1164. package/dist/register.subclis-TJY--uPt.js +287 -0
  1165. package/dist/registry-8eF_COje.js +667 -0
  1166. package/dist/registry-B84vjqPA.js +11 -0
  1167. package/dist/registry-CJH_346k.js +60 -0
  1168. package/dist/registry-CiuAeUhZ.js +50 -0
  1169. package/dist/registry-DrnXCaTU.js +219 -0
  1170. package/dist/repair-bIiF2iJn.js +112 -0
  1171. package/dist/reply-B1wBiwTS.js +3134 -0
  1172. package/dist/reply-dispatch-runtime-nSg-l3YV.js +3 -0
  1173. package/dist/reply-history-DiOD0MK2.js +2 -0
  1174. package/dist/reply-payload-D0XXyIHC.js +232 -0
  1175. package/dist/reply-payloads-DW1w7Ckr.js +116 -0
  1176. package/dist/reply-payloads-dedupe-BEPyuQQJ.js +135 -0
  1177. package/dist/reply-payloads-dedupe.runtime-ClraIPuB.js +2 -0
  1178. package/dist/reply-prefix-Bmqt3err.js +39 -0
  1179. package/dist/reply-runtime-bbaSgEmi.js +123 -0
  1180. package/dist/reply.runtime-leqfq1BG.js +2 -0
  1181. package/dist/request-url-B5e58odi.js +10 -0
  1182. package/dist/resolve-B-OthG4M.js +2 -0
  1183. package/dist/resolve-BjvAwAfZ.js +619 -0
  1184. package/dist/resolve-bBpW2W5z.js +174 -0
  1185. package/dist/resolve-channels-543uTQ-Q.js +263 -0
  1186. package/dist/resolve-configured-secret-input-string-CcNZQ54A.js +112 -0
  1187. package/dist/resolve-route-CCHWflcJ.js +486 -0
  1188. package/dist/resolve-system-bin-M8rzqZWg.js +120 -0
  1189. package/dist/resolve-users-B2hIFlh6.js +145 -0
  1190. package/dist/resolve-utils-B34dER9i.js +102 -0
  1191. package/dist/response-prefix-template-CmRtMrPn.js +50 -0
  1192. package/dist/restart-sentinel-BEGeUiKE.js +70 -0
  1193. package/dist/restart-stale-pids-Co_AHlf1.js +187 -0
  1194. package/dist/retry-DB6rKQUK.js +76 -0
  1195. package/dist/retry-policy-vpZZs4Ql.js +58 -0
  1196. package/dist/retry-runtime-BwFtUlOC.js +3 -0
  1197. package/dist/root-help-BKc92COf.js +53 -0
  1198. package/dist/route-reply-BhwCACur.js +133 -0
  1199. package/dist/route-reply.runtime-CR3o0GzY.js +2 -0
  1200. package/dist/route-resolution-C30ccEVA.js +1222 -0
  1201. package/dist/routes-BkjFgytb.js +6880 -0
  1202. package/dist/routing-B6ZVsl1G.js +16 -0
  1203. package/dist/rpc-Ceg29ThW.js +67 -0
  1204. package/dist/run-command-Bec0f6Qx.js +32 -0
  1205. package/dist/run-main-B5ZRlNEV.js +425 -0
  1206. package/dist/run-with-concurrency-oNPuq9N9.js +41 -0
  1207. package/dist/runner-BEbGymO4.js +1478 -0
  1208. package/dist/runtime-B3T4VytJ.js +1627 -0
  1209. package/dist/runtime-CiU2aDgB.js +42 -0
  1210. package/dist/runtime-D0VpiCHi.js +125 -0
  1211. package/dist/runtime-Dtd5v6Gj.js +153 -0
  1212. package/dist/runtime-Fhelf5Qd.js +126 -0
  1213. package/dist/runtime-api-B0fBYyFa.js +241 -0
  1214. package/dist/runtime-api-JdnJolgR.js +2484 -0
  1215. package/dist/runtime-discord-ops.runtime-Cc-Clbrs.js +26 -0
  1216. package/dist/runtime-embedded-pi.runtime-CAq8BTmS.js +2 -0
  1217. package/dist/runtime-env-CkoJ2p8u.js +9 -0
  1218. package/dist/runtime-forwarders-BwQHD11s.js +44 -0
  1219. package/dist/runtime-gaN3vB28.js +284 -0
  1220. package/dist/runtime-group-policy-BPxHuPda.js +59 -0
  1221. package/dist/runtime-guard-VWNtYR4l.js +70 -0
  1222. package/dist/runtime-media-understanding.runtime-BnfH3VZb.js +2 -0
  1223. package/dist/runtime-model-auth.runtime-Bd2GMW6W.js +2 -0
  1224. package/dist/runtime-parse-DFyJekfB.js +83 -0
  1225. package/dist/runtime-paths-C22j-CNR.js +333 -0
  1226. package/dist/runtime-schema-Bft9ccja.js +14524 -0
  1227. package/dist/runtime-slack-ops.runtime-qCe8vp_N.js +15 -0
  1228. package/dist/runtime-status-C7QK-Xow.js +109 -0
  1229. package/dist/runtime-status-SEjcftwu.js +15 -0
  1230. package/dist/runtime-store-j5RNDQBQ.js +22 -0
  1231. package/dist/runtime-tts.runtime-IxRggKLH.js +2 -0
  1232. package/dist/runtime-web-tools-Lf22Il6X.js +1891 -0
  1233. package/dist/runtime-whatsapp-boundary-BQeud5Kv.js +6 -0
  1234. package/dist/runtime-whatsapp-boundary-DbAJ9jGX.js +2 -0
  1235. package/dist/safe-regex-tLlDZYfM.js +244 -0
  1236. package/dist/safe-text-CRAu9RDR.js +16 -0
  1237. package/dist/sandbox-DxQGIkI1.js +2698 -0
  1238. package/dist/sandbox-cli-Bd8ECmMx.js +443 -0
  1239. package/dist/sandbox-paths-ui_vqw2W.js +146 -0
  1240. package/dist/sanitize-env-vars-DpPdECQ9.js +82 -0
  1241. package/dist/scan-paths-VhLKL5WT.js +28 -0
  1242. package/dist/scoped-expiring-id-cache-BmlyFPPR.js +35 -0
  1243. package/dist/scp-host-C5NgDe_6.js +62 -0
  1244. package/dist/secret-equal-fMR1DjSl.js +9 -0
  1245. package/dist/secret-file-COQ7QNO9.js +4 -0
  1246. package/dist/secret-file-Dv42g1FG.js +92 -0
  1247. package/dist/secret-input-CzbdxXxu.js +13 -0
  1248. package/dist/secret-input-DJ-sTcOE.js +38 -0
  1249. package/dist/secrets-cli-OoRkxItP.js +2112 -0
  1250. package/dist/secure-random-DJ9MB_Og.js +20 -0
  1251. package/dist/security-cli-CQ4HiQLb.js +477 -0
  1252. package/dist/security-runtime-CU_gbsBJ.js +51 -0
  1253. package/dist/semver-compare-aGN2MIqz.js +53 -0
  1254. package/dist/send-COItao1A.js +2473 -0
  1255. package/dist/send-deps-K4k6Myst.js +19 -0
  1256. package/dist/send-policy-B1t4c2Ab.js +60 -0
  1257. package/dist/server-BPOSwT-c.js +67 -0
  1258. package/dist/server-middleware-QGnAuw-H.js +108 -0
  1259. package/dist/server-node-events-CoM4XGHV.js +454 -0
  1260. package/dist/server-startup-matrix-migration-CMLAopuE.js +1255 -0
  1261. package/dist/service-8Ef_HfQd.js +2 -0
  1262. package/dist/service-DzXqyjgG.js +849 -0
  1263. package/dist/session-DNTpr0A7.js +50 -0
  1264. package/dist/session-archive.runtime-Bz20yPKg.js +2 -0
  1265. package/dist/session-binding-service-BqY1J7gs.js +421 -0
  1266. package/dist/session-context-D4ioj_ZC.js +23 -0
  1267. package/dist/session-conversation-D3BLZCjg.js +15 -0
  1268. package/dist/session-conversation-SDN1QbLK.js +135 -0
  1269. package/dist/session-cost-usage-5D6Kkthv.js +650 -0
  1270. package/dist/session-cost-usage-CqniZ9Q3.js +2 -0
  1271. package/dist/session-envelope-DdZaP6iS.js +18 -0
  1272. package/dist/session-file-SVifvwcV.js +120 -0
  1273. package/dist/session-fork.runtime-Bhgl-_lq.js +50 -0
  1274. package/dist/session-key-BIrdMs11.js +279 -0
  1275. package/dist/session-key-CCQ4ZS9B.js +53 -0
  1276. package/dist/session-key-normalization-DGxkxG3U.js +22 -0
  1277. package/dist/session-meta-5PkRqQxG.js +9 -0
  1278. package/dist/session-override-CqiOQ4Om.js +100 -0
  1279. package/dist/session-reset-model.runtime-DFL5rk1J.js +119 -0
  1280. package/dist/session-subagent-reactivation.runtime-DIIFdc6I.js +2 -0
  1281. package/dist/session-system-events-BrXQQl_c.js +62 -0
  1282. package/dist/session-transcript-files.fs-BltD5xvW.js +124 -0
  1283. package/dist/session-updates-Dd6r5vhZ.js +177 -0
  1284. package/dist/session-updates.runtime-CTmXpESa.js +2 -0
  1285. package/dist/session-utils-CYh1zGmy.js +1735 -0
  1286. package/dist/session-write-lock-D_1twm3Q.js +343 -0
  1287. package/dist/sessions-BBObTITM.js +2 -0
  1288. package/dist/sessions-BLL-TKEv.js +224 -0
  1289. package/dist/sessions-zgiFsm1E.js +381 -0
  1290. package/dist/setup-BnAbcoEP.js +15 -0
  1291. package/dist/setup-CDUb3AWu.js +427 -0
  1292. package/dist/setup-adapter-runtime-kV6aLMzB.js +2 -0
  1293. package/dist/setup-binary-C35NJX1i.js +2 -0
  1294. package/dist/setup-core-C-0ynF1r.js +256 -0
  1295. package/dist/setup-group-access-BrKTGyeK.js +70 -0
  1296. package/dist/setup-helpers-CNcOI9ct.js +390 -0
  1297. package/dist/setup-runtime-CZF60tJ1.js +4 -0
  1298. package/dist/setup-surface-BcZenSzA.js +237 -0
  1299. package/dist/setup-surface-BwZZukYI.js +97 -0
  1300. package/dist/setup-tools-DB-J75x8.js +4 -0
  1301. package/dist/setup-wizard-helpers-u8iQ-OcY.js +841 -0
  1302. package/dist/setup-wizard-proxy-DiI-Brmi.js +127 -0
  1303. package/dist/setup.finalize-L3P2sSFi.js +443 -0
  1304. package/dist/setup.gateway-config-ISaEE7wH.js +246 -0
  1305. package/dist/setup.secret-input-DCxgkYJ3.js +25 -0
  1306. package/dist/shared-B0P4kmoP.js +50 -0
  1307. package/dist/shared-BOaKRLRY.js +64 -0
  1308. package/dist/shared-BXUt8yQc.js +160 -0
  1309. package/dist/shared-BZ338OsD.js +64 -0
  1310. package/dist/shared-BjU08Pt_.js +54 -0
  1311. package/dist/shared-BsFd7tT-.js +136 -0
  1312. package/dist/shared-CvC-RYap.js +37 -0
  1313. package/dist/shared-dXZZGNhj.js +10 -0
  1314. package/dist/shared-rGax8vC3.js +221 -0
  1315. package/dist/shell-argv-Z5ptFecq.js +72 -0
  1316. package/dist/shell-env-BSJycHpS.js +181 -0
  1317. package/dist/signal-BSV2xBJt.js +46 -0
  1318. package/dist/signal-BZDASWHO.js +13 -0
  1319. package/dist/signal-CId8sMA8.js +6 -0
  1320. package/dist/signal-account-DcEiRyli.js +11 -0
  1321. package/dist/signal-cli-install-CzSdr2VM.js +188 -0
  1322. package/dist/signal-surface-DrUgouip.js +21 -0
  1323. package/dist/simple-completion-transport-BNMmn163.js +24 -0
  1324. package/dist/skill-commands-CZ_x2Cqy.js +77 -0
  1325. package/dist/skill-commands-base-wY_Bsohb.js +60 -0
  1326. package/dist/skill-commands.runtime-BV7uDCJx.js +2 -0
  1327. package/dist/skill-scanner-B27VLIIq.js +354 -0
  1328. package/dist/skills-BTiQjfVL.js +1310 -0
  1329. package/dist/skills-CIF8vVlP.js +3 -0
  1330. package/dist/skills-clawhub-BDym_41x.js +274 -0
  1331. package/dist/skills-cli-C8m1I_bL.js +369 -0
  1332. package/dist/skills-install-B_gFFO8I.js +818 -0
  1333. package/dist/skills-remote-QuF4recE.js +550 -0
  1334. package/dist/skills-status-BEZWIOBR.js +2 -0
  1335. package/dist/skills-status-Dm_Jhtes.js +169 -0
  1336. package/dist/slack-Cs63YrE6.js +6 -0
  1337. package/dist/slack-account-5pXdcCaK.js +11 -0
  1338. package/dist/slack-liv3adei.js +9 -0
  1339. package/dist/slack-runtime-surface-B5JYrWWf.js +18 -0
  1340. package/dist/slack-surface-DpNHDOit.js +44 -0
  1341. package/dist/slack-target-parser-CErq1YCw.js +12 -0
  1342. package/dist/slack-targets-xF6pth_v.js +45 -0
  1343. package/dist/slots-PFLvT1Kq.js +93 -0
  1344. package/dist/speech-BY_tUO7g.js +46 -0
  1345. package/dist/speech-provider-S9O0XAp5.js +154 -0
  1346. package/dist/speech-runtime-oxmNRw3Z.js +34 -0
  1347. package/dist/ssh-config-BDfMcgtS.js +77 -0
  1348. package/dist/ssh-tunnel-DG9ZYGsa.js +159 -0
  1349. package/dist/ssh-tunnel-D_XZfkBV.js +2 -0
  1350. package/dist/ssrf-BRA26Q75.js +246 -0
  1351. package/dist/ssrf-policy-BIG3iChD.js +69 -0
  1352. package/dist/ssrf-runtime-BPxpSyiW.js +5 -0
  1353. package/dist/stage-sandbox-media.runtime-DOOiTZkt.js +229 -0
  1354. package/dist/state-migrations-cqOvSXP-.js +845 -0
  1355. package/dist/state-paths-CudqznX-.js +2 -0
  1356. package/dist/status-B5sZUURG.js +3 -0
  1357. package/dist/status-BXjWA90V.js +608 -0
  1358. package/dist/status-Biw1EIdt.js +2 -0
  1359. package/dist/status-CgHjqeMn.js +650 -0
  1360. package/dist/status-DQZ0kLxk.js +44 -0
  1361. package/dist/status-VHq1HAMM.js +240 -0
  1362. package/dist/status-all-DhEDLGP9.js +798 -0
  1363. package/dist/status-helpers-B7-UgIy8.js +170 -0
  1364. package/dist/status-issues-BFrNHsVn.js +335 -0
  1365. package/dist/status-issues-BUaLeYpi.js +187 -0
  1366. package/dist/status-json-DOnh1xDZ.js +86 -0
  1367. package/dist/status.agent-local-CaYKjhhX.js +59 -0
  1368. package/dist/status.command.text-runtime-DsOhXWI5.js +18 -0
  1369. package/dist/status.daemon-CriBgB61.js +25 -0
  1370. package/dist/status.format-c9WFxqY6.js +44 -0
  1371. package/dist/status.gateway-probe-FD9wNXhY.js +15 -0
  1372. package/dist/status.link-channel-DYBN8KV3.js +35 -0
  1373. package/dist/status.node-mode-FwHcEfkE.js +2 -0
  1374. package/dist/status.node-mode-dPc3mfqx.js +32 -0
  1375. package/dist/status.scan-DTGuZcAs.js +264 -0
  1376. package/dist/status.scan.deps.runtime-BlestHMC.js +18 -0
  1377. package/dist/status.scan.fast-json-Co7nNA_T.js +97 -0
  1378. package/dist/status.scan.fast-json-DRsEwD_h.js +2 -0
  1379. package/dist/status.scan.json-core-DaBuCMzr.js +254 -0
  1380. package/dist/status.scan.runtime-Dp_UkjfG.js +9 -0
  1381. package/dist/status.service-summary-BmHN_sIt.js +32 -0
  1382. package/dist/status.summary-C0Jn9d8y.js +2 -0
  1383. package/dist/status.summary-C3KHSLR1.js +210 -0
  1384. package/dist/status.update-DiRYpvwE.js +2 -0
  1385. package/dist/status.update-DjXE_PsH.js +79 -0
  1386. package/dist/sticker-cache-kEcJqycr.js +1516 -0
  1387. package/dist/sticker-vision.runtime-DdnhPS7k.js +16 -0
  1388. package/dist/store-DKzOIKqx.js +1342 -0
  1389. package/dist/store-DwAEHdgR.js +749 -0
  1390. package/dist/store-HBHyNMRe.js +10 -0
  1391. package/dist/store-NoUggnB3.js +365 -0
  1392. package/dist/store-read-BHYG1WxT.js +16 -0
  1393. package/dist/store.runtime-jT-JoPV1.js +2 -0
  1394. package/dist/string-normalization-k4ilMPRu.js +19 -0
  1395. package/dist/string-sample-BIWt11jp.js +11 -0
  1396. package/dist/strip-inbound-meta-DuOzaKMB.js +665 -0
  1397. package/dist/subagent-orphan-recovery-BaGPnDpY.js +206 -0
  1398. package/dist/subagent-registry-runtime-C0hklxy4.js +2 -0
  1399. package/dist/subcli-descriptors-Ccul9RKX.js +151 -0
  1400. package/dist/subsystem-CpBs2R1c.js +582 -0
  1401. package/dist/supervisor-log.runtime-BbxSpWqa.js +8 -0
  1402. package/dist/system-cli-rGgbAbhD.js +58 -0
  1403. package/dist/system-events-CkTr2pVV.js +93 -0
  1404. package/dist/system-message-BwHVKRn-.js +16 -0
  1405. package/dist/system-run-command-CeFzgmkE.js +295 -0
  1406. package/dist/systemd-aS57J-tg.js +588 -0
  1407. package/dist/systemd-hints-DexZGkZU.js +325 -0
  1408. package/dist/systemd-linger-Dum_Ly5E.js +68 -0
  1409. package/dist/systemd-linger-a109c27V.js +2 -0
  1410. package/dist/table-BNAxmbtm.js +305 -0
  1411. package/dist/tables-AGjErT3Z.js +832 -0
  1412. package/dist/tailnet-CtCjQNPK.js +76 -0
  1413. package/dist/tailscale-IqBQ_JBD.js +232 -0
  1414. package/dist/tailscale-status-SUYxe8DO.js +71 -0
  1415. package/dist/target-errors-Dd5ygAn4.js +26 -0
  1416. package/dist/target-parsing-DsTnx9-F.js +14 -0
  1417. package/dist/target-registry-Je8d-VjB.js +1280 -0
  1418. package/dist/targets-B5CwzJUC.js +748 -0
  1419. package/dist/targets-CsuOrZri.js +269 -0
  1420. package/dist/targets-CwnVSfRA.js +70 -0
  1421. package/dist/targets-DuUFEzKS.js +78 -0
  1422. package/dist/task-registry-delivery-runtime-DqP8eooO.js +2 -0
  1423. package/dist/task-registry.audit.shared-C4RGABy7.js +18 -0
  1424. package/dist/task-registry.maintenance-Bu37anXR.js +281 -0
  1425. package/dist/task-registry.maintenance-DOsnDSZk.js +2 -0
  1426. package/dist/task-registry.summary-DxVk_l3y.js +44 -0
  1427. package/dist/tavily-search-provider-CJqkM2Pl.js +226 -0
  1428. package/dist/telegram/audit.js +2 -0
  1429. package/dist/telegram/token.js +2 -0
  1430. package/dist/telegram-DYAW3Sfk.js +23 -0
  1431. package/dist/telegram-account-BJWXAeS3.js +11 -0
  1432. package/dist/telegram-core-BB-oqWi1.js +6 -0
  1433. package/dist/temp-download-vS-txIoM.js +62 -0
  1434. package/dist/temp-path-DfCfU6WG.js +2 -0
  1435. package/dist/templating-NXIs4v5N.js +24 -0
  1436. package/dist/terminal-link-TU0E45HO.js +10 -0
  1437. package/dist/testing-BnS6kfoS.js +575 -0
  1438. package/dist/text-chunking-90VX7tgk.js +12 -0
  1439. package/dist/text-chunking-BVps1926.js +20 -0
  1440. package/dist/text-format-B1S_nIVb.js +8 -0
  1441. package/dist/text-runtime-vMYWZmQD.js +398 -0
  1442. package/dist/theme-BJIQPogA.js +34 -0
  1443. package/dist/theme-SO8WovMK.js +2 -0
  1444. package/dist/thinking-uI0siSaD.js +68 -0
  1445. package/dist/thinking.shared-C4SN38qn.js +243 -0
  1446. package/dist/thread-bindings-policy-BcpXmcKL.js +172 -0
  1447. package/dist/thread-bindings-u1VyUaZn.js +778 -0
  1448. package/dist/thread-bindings.discord-api-Cq6oEKwK.js +486 -0
  1449. package/dist/threading-helpers-PW95yLIC.js +14 -0
  1450. package/dist/timeouts-CTDvzc8O.js +72 -0
  1451. package/dist/tmp-vora-dir-D2qk7W45.js +102 -0
  1452. package/dist/token-CHFyaNO5.js +45 -0
  1453. package/dist/token-D6h_ZVJn.js +82 -0
  1454. package/dist/tokens-shGOmvyA.js +66 -0
  1455. package/dist/tool-display-DqKeDkdg.js +1607 -0
  1456. package/dist/tool-images-Dk60Ug5h.js +270 -0
  1457. package/dist/tool-policy-CQHL2-I3.js +515 -0
  1458. package/dist/tool-policy-match-DL8JY2vg.js +48 -0
  1459. package/dist/tool-send-hJCuDJfS.js +16 -0
  1460. package/dist/tools-effective-inventory-CWzIubjU.js +148 -0
  1461. package/dist/tools-pE9BlK9y.js +119 -0
  1462. package/dist/transcript-events-DRsDmwmp.js +29 -0
  1463. package/dist/transport-ready-f6mdQOwn.js +36 -0
  1464. package/dist/tts-B1m3C2Az.js +102 -0
  1465. package/dist/tts-DUrUS0mZ.js +85 -0
  1466. package/dist/tts-auto-mode-C8_kw3FV.js +14 -0
  1467. package/dist/tts.runtime-BoqipRLV.js +2 -0
  1468. package/dist/tui-CQLplrBK.js +3898 -0
  1469. package/dist/tui-cli-DT0FyMjs.js +31 -0
  1470. package/dist/typebox-DR5b98DT.js +22 -0
  1471. package/dist/types-CGCTcpfm.js +465 -0
  1472. package/dist/types-DDSZHm1L.js +12 -0
  1473. package/dist/types-KyI2zD1Y.js +83 -0
  1474. package/dist/types.secrets-CxoujPzV.js +80 -0
  1475. package/dist/types.tools-DbA37tJ5.js +22 -0
  1476. package/dist/typing-Dz7FaNst.js +68 -0
  1477. package/dist/typing-mode-D3dtTRFq.js +75 -0
  1478. package/dist/typing-policy-DNdXa4aP.js +11 -0
  1479. package/dist/typing-start-guard-Bd69zP69.js +73 -0
  1480. package/dist/ui-DBzDVf5Z.js +182 -0
  1481. package/dist/undici-global-dispatcher-jevw8Gzz.js +99 -0
  1482. package/dist/unhandled-rejections-D0HD8aaS.js +2 -0
  1483. package/dist/unhandled-rejections-yZafPL2A.js +241 -0
  1484. package/dist/update-Bof-SJAQ.js +1253 -0
  1485. package/dist/update-channels-d8te77R1.js +78 -0
  1486. package/dist/update-check-DK2tfDQH.js +354 -0
  1487. package/dist/update-cli-Ck2vsRAq.js +1446 -0
  1488. package/dist/update-offset-store-DzcRNELt.js +75 -0
  1489. package/dist/utils-BiWzD1kh.js +230 -0
  1490. package/dist/utils-QayXenI0.js +3 -0
  1491. package/dist/version-B8PcQo5n.js +79 -0
  1492. package/dist/version-DBzWIScg.js +2 -0
  1493. package/dist/vora-embedded-block-chunker-3yyZObTq.js +258 -0
  1494. package/dist/vora-embedded-helpers-CcpQ4UhE.js +1451 -0
  1495. package/dist/vora-embedded-runner-CtRc9sK4.js +35200 -0
  1496. package/dist/vora-embedded.runtime-DnQSqL4C.js +3 -0
  1497. package/dist/vora-exec-env-D4Xwhvu2.js +14 -0
  1498. package/dist/vora-root-LrpnxvkN.js +88 -0
  1499. package/dist/vora-tools.before-tool-call.runtime-DMDQZj3b.js +354 -0
  1500. package/dist/vora-tools.runtime-CRE3qINm.js +2 -0
  1501. package/dist/wait-DINWFDZY.js +7 -0
  1502. package/dist/warning-filter-SAevhKdH.js +57 -0
  1503. package/dist/web-media-xqpNAEze.js +630 -0
  1504. package/dist/web-search-providers-Dzq6HxbB.js +21 -0
  1505. package/dist/web-search-providers.runtime-CtA0c8j7.js +110 -0
  1506. package/dist/web-search-providers.shared-BDbtn1DP.js +404 -0
  1507. package/dist/webhook-ingress-VjrwfCEq.js +164 -0
  1508. package/dist/webhook-memory-guards-B-_GNMqp.js +129 -0
  1509. package/dist/webhook-path-KmDDjLxH.js +22 -0
  1510. package/dist/webhook-request-guards-RvZR0xOr.js +178 -0
  1511. package/dist/webhooks-cli-DW2licxV.js +325 -0
  1512. package/dist/whatsapp-BdBhDmjG.js +4 -0
  1513. package/dist/whatsapp-DrWLgII5.js +33 -0
  1514. package/dist/whatsapp-heartbeat-B9ic2dUo.js +114 -0
  1515. package/dist/whatsapp-shared-CCB6ISPU.js +56 -0
  1516. package/dist/whatsapp-surface-Dj75n55B.js +26 -0
  1517. package/dist/whatsapp-targets-DC3kH_Ao.js +13 -0
  1518. package/dist/widearea-dns-CQmUW5IF.js +125 -0
  1519. package/dist/windows-argv-Dp3PZAV0.js +345 -0
  1520. package/dist/windows-install-roots-XI3CvO9O.js +149 -0
  1521. package/dist/windows-spawn-Bo5J7nQU.js +154 -0
  1522. package/dist/with-timeout-82_4MKPJ.js +13 -0
  1523. package/dist/with-timeout-C9cQCRMB.js +215 -0
  1524. package/dist/workspace-Byy6tyA9.js +479 -0
  1525. package/dist/workspace-dirs-DD2rvoad.js +13 -0
  1526. package/dist/workspace-rZgvKsfA.js +306 -0
  1527. package/dist/ws-H_UxQmDV.js +11 -0
  1528. package/dist/ws-log-Colefm0_.js +289 -0
  1529. package/dist/wsl-Cja5t6Cg.js +57 -0
  1530. package/dist/xai-G_qBZ2Uy.js +27 -0
  1531. package/dist/zalo-setup-DhLwoxOU.js +14 -0
  1532. package/dist/zod-parse-CoS4Cf-k.js +14 -0
  1533. package/dist/zod-schema.agent-runtime-DvpP4fxf.js +602 -0
  1534. package/dist/zod-schema.channels-BAf89d5l.js +10 -0
  1535. package/dist/zod-schema.core-BTG8QVOn.js +514 -0
  1536. package/dist/zod-schema.providers-core-CBsF2dSN.js +1569 -0
  1537. package/dist/zod-schema.providers-whatsapp-BORKPdar.js +125 -0
  1538. package/dist/zod-schema.sensitive-bgI4eB_k.js +5 -0
  1539. package/docs/.i18n/README.md +31 -0
  1540. package/docs/.i18n/glossary.ja-JP.json +14 -0
  1541. package/docs/.i18n/glossary.zh-CN.json +306 -0
  1542. package/docs/.i18n/ja-JP.tm.jsonl +0 -0
  1543. package/docs/assets/install-script.svg +1 -0
  1544. package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
  1545. package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
  1546. package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
  1547. package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
  1548. package/docs/assets/macos-onboarding/05-permissions.png +0 -0
  1549. package/docs/assets/pixel-lobster.svg +60 -0
  1550. package/docs/assets/showcase/agents-ui.jpg +0 -0
  1551. package/docs/assets/showcase/bambu-cli.png +0 -0
  1552. package/docs/assets/showcase/codexmonitor.png +0 -0
  1553. package/docs/assets/showcase/gohome-grafana.png +0 -0
  1554. package/docs/assets/showcase/ios-testflight.jpg +0 -0
  1555. package/docs/assets/showcase/oura-health.png +0 -0
  1556. package/docs/assets/showcase/padel-cli.svg +11 -0
  1557. package/docs/assets/showcase/padel-screenshot.jpg +0 -0
  1558. package/docs/assets/showcase/papla-tts.jpg +0 -0
  1559. package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
  1560. package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
  1561. package/docs/assets/showcase/roborock-status.svg +13 -0
  1562. package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
  1563. package/docs/assets/showcase/snag.png +0 -0
  1564. package/docs/assets/showcase/tesco-shop.jpg +0 -0
  1565. package/docs/assets/showcase/wienerlinien.png +0 -0
  1566. package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
  1567. package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
  1568. package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
  1569. package/docs/assets/sponsors/blacksmith-light.svg +14 -0
  1570. package/docs/assets/sponsors/blacksmith.svg +14 -0
  1571. package/docs/assets/sponsors/convex-light.svg +16 -0
  1572. package/docs/assets/sponsors/convex.svg +16 -0
  1573. package/docs/assets/sponsors/nvidia-dark.svg +9 -0
  1574. package/docs/assets/sponsors/nvidia.svg +9 -0
  1575. package/docs/assets/sponsors/openai-light.svg +3 -0
  1576. package/docs/assets/sponsors/openai.svg +3 -0
  1577. package/docs/assets/sponsors/vercel-light.svg +5 -0
  1578. package/docs/assets/sponsors/vercel.svg +5 -0
  1579. package/docs/assets/vora-logo-text-dark.png +0 -0
  1580. package/docs/assets/vora-logo-text-dark.svg +418 -0
  1581. package/docs/assets/vora-logo-text.png +0 -0
  1582. package/docs/assets/vora-logo-text.svg +418 -0
  1583. package/docs/auth-credential-semantics.md +60 -0
  1584. package/docs/automation/auth-monitoring.md +44 -0
  1585. package/docs/automation/clawflow.md +109 -0
  1586. package/docs/automation/cron-jobs.md +744 -0
  1587. package/docs/automation/cron-vs-heartbeat.md +299 -0
  1588. package/docs/automation/gmail-pubsub.md +256 -0
  1589. package/docs/automation/hooks.md +1375 -0
  1590. package/docs/automation/index.md +69 -0
  1591. package/docs/automation/poll.md +86 -0
  1592. package/docs/automation/standing-orders.md +254 -0
  1593. package/docs/automation/tasks.md +247 -0
  1594. package/docs/automation/troubleshooting.md +122 -0
  1595. package/docs/automation/webhook.md +217 -0
  1596. package/docs/brave-search.md +93 -0
  1597. package/docs/channels/bluebubbles.md +430 -0
  1598. package/docs/channels/broadcast-groups.md +442 -0
  1599. package/docs/channels/channel-routing.md +139 -0
  1600. package/docs/channels/discord.md +1240 -0
  1601. package/docs/channels/feishu.md +760 -0
  1602. package/docs/channels/googlechat.md +270 -0
  1603. package/docs/channels/group-messages.md +84 -0
  1604. package/docs/channels/groups.md +385 -0
  1605. package/docs/channels/imessage.md +427 -0
  1606. package/docs/channels/index.md +50 -0
  1607. package/docs/channels/irc.md +250 -0
  1608. package/docs/channels/line.md +221 -0
  1609. package/docs/channels/location.md +56 -0
  1610. package/docs/channels/matrix.md +779 -0
  1611. package/docs/channels/mattermost.md +435 -0
  1612. package/docs/channels/msteams.md +802 -0
  1613. package/docs/channels/nextcloud-talk.md +146 -0
  1614. package/docs/channels/nostr.md +257 -0
  1615. package/docs/channels/pairing.md +114 -0
  1616. package/docs/channels/qqbot.md +193 -0
  1617. package/docs/channels/signal.md +337 -0
  1618. package/docs/channels/slack.md +607 -0
  1619. package/docs/channels/synology-chat.md +150 -0
  1620. package/docs/channels/telegram.md +991 -0
  1621. package/docs/channels/tlon.md +284 -0
  1622. package/docs/channels/troubleshooting.md +118 -0
  1623. package/docs/channels/twitch.md +387 -0
  1624. package/docs/channels/whatsapp.md +462 -0
  1625. package/docs/channels/zalo.md +251 -0
  1626. package/docs/channels/zalouser.md +189 -0
  1627. package/docs/ci.md +57 -0
  1628. package/docs/cli/acp.md +297 -0
  1629. package/docs/cli/agent.md +29 -0
  1630. package/docs/cli/agents.md +123 -0
  1631. package/docs/cli/approvals.md +50 -0
  1632. package/docs/cli/backup.md +76 -0
  1633. package/docs/cli/browser.md +127 -0
  1634. package/docs/cli/channels.md +102 -0
  1635. package/docs/cli/clawbot.md +21 -0
  1636. package/docs/cli/completion.md +35 -0
  1637. package/docs/cli/config.md +317 -0
  1638. package/docs/cli/configure.md +42 -0
  1639. package/docs/cli/cron.md +80 -0
  1640. package/docs/cli/daemon.md +55 -0
  1641. package/docs/cli/dashboard.md +22 -0
  1642. package/docs/cli/devices.md +139 -0
  1643. package/docs/cli/directory.md +63 -0
  1644. package/docs/cli/dns.md +23 -0
  1645. package/docs/cli/docs.md +15 -0
  1646. package/docs/cli/doctor.md +48 -0
  1647. package/docs/cli/flows.md +54 -0
  1648. package/docs/cli/gateway.md +238 -0
  1649. package/docs/cli/health.md +21 -0
  1650. package/docs/cli/hooks.md +330 -0
  1651. package/docs/cli/index.md +1239 -0
  1652. package/docs/cli/logs.md +28 -0
  1653. package/docs/cli/mcp.md +467 -0
  1654. package/docs/cli/memory.md +66 -0
  1655. package/docs/cli/message.md +280 -0
  1656. package/docs/cli/models.md +90 -0
  1657. package/docs/cli/node.md +132 -0
  1658. package/docs/cli/nodes.md +55 -0
  1659. package/docs/cli/onboard.md +160 -0
  1660. package/docs/cli/pairing.md +32 -0
  1661. package/docs/cli/plugins.md +229 -0
  1662. package/docs/cli/qr.md +46 -0
  1663. package/docs/cli/reset.md +20 -0
  1664. package/docs/cli/sandbox.md +197 -0
  1665. package/docs/cli/secrets.md +188 -0
  1666. package/docs/cli/security.md +79 -0
  1667. package/docs/cli/sessions.md +110 -0
  1668. package/docs/cli/setup.md +29 -0
  1669. package/docs/cli/skills.md +40 -0
  1670. package/docs/cli/status.md +30 -0
  1671. package/docs/cli/system.md +60 -0
  1672. package/docs/cli/tui.md +30 -0
  1673. package/docs/cli/uninstall.md +20 -0
  1674. package/docs/cli/update.md +103 -0
  1675. package/docs/cli/voicecall.md +34 -0
  1676. package/docs/cli/webhooks.md +25 -0
  1677. package/docs/concepts/agent-loop.md +166 -0
  1678. package/docs/concepts/agent-workspace.md +243 -0
  1679. package/docs/concepts/agent.md +122 -0
  1680. package/docs/concepts/architecture.md +144 -0
  1681. package/docs/concepts/compaction.md +93 -0
  1682. package/docs/concepts/context-engine.md +274 -0
  1683. package/docs/concepts/context.md +179 -0
  1684. package/docs/concepts/delegate-architecture.md +296 -0
  1685. package/docs/concepts/features.md +73 -0
  1686. package/docs/concepts/markdown-formatting.md +130 -0
  1687. package/docs/concepts/memory-builtin.md +105 -0
  1688. package/docs/concepts/memory-honcho.md +140 -0
  1689. package/docs/concepts/memory-qmd.md +163 -0
  1690. package/docs/concepts/memory-search.md +141 -0
  1691. package/docs/concepts/memory.md +102 -0
  1692. package/docs/concepts/messages.md +161 -0
  1693. package/docs/concepts/model-failover.md +160 -0
  1694. package/docs/concepts/model-providers.md +599 -0
  1695. package/docs/concepts/models.md +232 -0
  1696. package/docs/concepts/multi-agent.md +602 -0
  1697. package/docs/concepts/oauth.md +193 -0
  1698. package/docs/concepts/presence.md +102 -0
  1699. package/docs/concepts/queue.md +89 -0
  1700. package/docs/concepts/retry.md +69 -0
  1701. package/docs/concepts/session-pruning.md +80 -0
  1702. package/docs/concepts/session-tool.md +84 -0
  1703. package/docs/concepts/session.md +116 -0
  1704. package/docs/concepts/streaming.md +161 -0
  1705. package/docs/concepts/system-prompt.md +132 -0
  1706. package/docs/concepts/timezone.md +97 -0
  1707. package/docs/concepts/typebox.md +291 -0
  1708. package/docs/concepts/typing-indicators.md +68 -0
  1709. package/docs/concepts/usage-tracking.md +35 -0
  1710. package/docs/date-time.md +128 -0
  1711. package/docs/debug/node-issue.md +85 -0
  1712. package/docs/diagnostics/flags.md +91 -0
  1713. package/docs/docs.json +2143 -0
  1714. package/docs/gateway/authentication.md +204 -0
  1715. package/docs/gateway/background-process.md +97 -0
  1716. package/docs/gateway/bonjour.md +177 -0
  1717. package/docs/gateway/bridge-protocol.md +86 -0
  1718. package/docs/gateway/cli-backends.md +249 -0
  1719. package/docs/gateway/configuration-examples.md +652 -0
  1720. package/docs/gateway/configuration-reference.md +3384 -0
  1721. package/docs/gateway/configuration.md +633 -0
  1722. package/docs/gateway/discovery.md +127 -0
  1723. package/docs/gateway/doctor.md +463 -0
  1724. package/docs/gateway/gateway-lock.md +37 -0
  1725. package/docs/gateway/health.md +53 -0
  1726. package/docs/gateway/heartbeat.md +407 -0
  1727. package/docs/gateway/index.md +286 -0
  1728. package/docs/gateway/local-models.md +153 -0
  1729. package/docs/gateway/logging.md +113 -0
  1730. package/docs/gateway/multiple-gateways.md +112 -0
  1731. package/docs/gateway/network-model.md +24 -0
  1732. package/docs/gateway/openai-http-api.md +266 -0
  1733. package/docs/gateway/openresponses-http-api.md +322 -0
  1734. package/docs/gateway/openshell.md +307 -0
  1735. package/docs/gateway/pairing.md +99 -0
  1736. package/docs/gateway/protocol.md +280 -0
  1737. package/docs/gateway/remote-gateway-readme.md +160 -0
  1738. package/docs/gateway/remote.md +248 -0
  1739. package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +134 -0
  1740. package/docs/gateway/sandboxing.md +469 -0
  1741. package/docs/gateway/secrets-plan-contract.md +116 -0
  1742. package/docs/gateway/secrets.md +541 -0
  1743. package/docs/gateway/security/index.md +1216 -0
  1744. package/docs/gateway/tailscale.md +132 -0
  1745. package/docs/gateway/tools-invoke-http-api.md +147 -0
  1746. package/docs/gateway/troubleshooting.md +382 -0
  1747. package/docs/gateway/trusted-proxy-auth.md +342 -0
  1748. package/docs/help/debugging.md +168 -0
  1749. package/docs/help/environment.md +163 -0
  1750. package/docs/help/faq.md +3002 -0
  1751. package/docs/help/index.md +28 -0
  1752. package/docs/help/scripts.md +28 -0
  1753. package/docs/help/testing.md +664 -0
  1754. package/docs/help/troubleshooting.md +352 -0
  1755. package/docs/images/configure-model-picker-unsearchable.png +0 -0
  1756. package/docs/images/feishu-step2-create-app.png +0 -0
  1757. package/docs/images/feishu-step3-credentials.png +0 -0
  1758. package/docs/images/feishu-step4-permissions.png +0 -0
  1759. package/docs/images/feishu-step5-bot-capability.png +0 -0
  1760. package/docs/images/feishu-step6-event-subscription.png +0 -0
  1761. package/docs/images/feishu-verification-token.png +0 -0
  1762. package/docs/images/groups-flow.svg +52 -0
  1763. package/docs/images/mobile-ui-screenshot.png +0 -0
  1764. package/docs/index.md +196 -0
  1765. package/docs/install/ansible.md +230 -0
  1766. package/docs/install/azure.md +311 -0
  1767. package/docs/install/bun.md +55 -0
  1768. package/docs/install/clawdock.md +105 -0
  1769. package/docs/install/development-channels.md +120 -0
  1770. package/docs/install/digitalocean.md +129 -0
  1771. package/docs/install/docker-vm-runtime.md +142 -0
  1772. package/docs/install/docker.md +404 -0
  1773. package/docs/install/exe-dev.md +126 -0
  1774. package/docs/install/fly.md +501 -0
  1775. package/docs/install/gcp.md +402 -0
  1776. package/docs/install/hetzner.md +251 -0
  1777. package/docs/install/index.md +183 -0
  1778. package/docs/install/installer.md +421 -0
  1779. package/docs/install/kubernetes.md +191 -0
  1780. package/docs/install/macos-vm.md +281 -0
  1781. package/docs/install/migrating-matrix.md +346 -0
  1782. package/docs/install/migrating.md +110 -0
  1783. package/docs/install/nix.md +89 -0
  1784. package/docs/install/node.md +144 -0
  1785. package/docs/install/northflank.mdx +40 -0
  1786. package/docs/install/oracle.md +156 -0
  1787. package/docs/install/podman.md +269 -0
  1788. package/docs/install/railway.mdx +87 -0
  1789. package/docs/install/raspberry-pi.md +159 -0
  1790. package/docs/install/render.mdx +159 -0
  1791. package/docs/install/uninstall.md +128 -0
  1792. package/docs/install/updating.md +134 -0
  1793. package/docs/ja-JP/index.md +186 -0
  1794. package/docs/ja-JP/start/getting-started.md +125 -0
  1795. package/docs/ja-JP/start/wizard.md +77 -0
  1796. package/docs/logging.md +357 -0
  1797. package/docs/nav-tabs-underline.js +100 -0
  1798. package/docs/network.md +63 -0
  1799. package/docs/nodes/audio.md +187 -0
  1800. package/docs/nodes/camera.md +162 -0
  1801. package/docs/nodes/images.md +72 -0
  1802. package/docs/nodes/index.md +395 -0
  1803. package/docs/nodes/location-command.md +98 -0
  1804. package/docs/nodes/media-understanding.md +394 -0
  1805. package/docs/nodes/talk.md +92 -0
  1806. package/docs/nodes/troubleshooting.md +114 -0
  1807. package/docs/nodes/voicewake.md +66 -0
  1808. package/docs/perplexity.md +174 -0
  1809. package/docs/pi-dev.md +80 -0
  1810. package/docs/pi.md +567 -0
  1811. package/docs/platforms/android.md +168 -0
  1812. package/docs/platforms/digitalocean.md +266 -0
  1813. package/docs/platforms/index.md +54 -0
  1814. package/docs/platforms/ios.md +220 -0
  1815. package/docs/platforms/linux.md +94 -0
  1816. package/docs/platforms/mac/bundled-gateway.md +73 -0
  1817. package/docs/platforms/mac/canvas.md +125 -0
  1818. package/docs/platforms/mac/child-process.md +69 -0
  1819. package/docs/platforms/mac/dev-setup.md +104 -0
  1820. package/docs/platforms/mac/health.md +34 -0
  1821. package/docs/platforms/mac/icon.md +31 -0
  1822. package/docs/platforms/mac/logging.md +57 -0
  1823. package/docs/platforms/mac/menu-bar.md +81 -0
  1824. package/docs/platforms/mac/peekaboo.md +65 -0
  1825. package/docs/platforms/mac/permissions.md +50 -0
  1826. package/docs/platforms/mac/remote.md +84 -0
  1827. package/docs/platforms/mac/signing.md +47 -0
  1828. package/docs/platforms/mac/skills.md +34 -0
  1829. package/docs/platforms/mac/voice-overlay.md +60 -0
  1830. package/docs/platforms/mac/voicewake.md +67 -0
  1831. package/docs/platforms/mac/webchat.md +43 -0
  1832. package/docs/platforms/mac/xpc.md +61 -0
  1833. package/docs/platforms/macos.md +228 -0
  1834. package/docs/platforms/oracle.md +303 -0
  1835. package/docs/platforms/raspberry-pi.md +412 -0
  1836. package/docs/platforms/windows.md +241 -0
  1837. package/docs/plugins/agent-tools.md +10 -0
  1838. package/docs/plugins/architecture.md +1400 -0
  1839. package/docs/plugins/building-extensions.md +10 -0
  1840. package/docs/plugins/building-plugins.md +283 -0
  1841. package/docs/plugins/bundles.md +278 -0
  1842. package/docs/plugins/community.md +145 -0
  1843. package/docs/plugins/manifest.md +284 -0
  1844. package/docs/plugins/sdk-channel-plugins.md +419 -0
  1845. package/docs/plugins/sdk-entrypoints.md +184 -0
  1846. package/docs/plugins/sdk-migration.md +180 -0
  1847. package/docs/plugins/sdk-overview.md +287 -0
  1848. package/docs/plugins/sdk-provider-plugins.md +440 -0
  1849. package/docs/plugins/sdk-runtime.md +347 -0
  1850. package/docs/plugins/sdk-setup.md +365 -0
  1851. package/docs/plugins/sdk-testing.md +263 -0
  1852. package/docs/plugins/voice-call.md +397 -0
  1853. package/docs/plugins/zalouser.md +78 -0
  1854. package/docs/prose.md +134 -0
  1855. package/docs/providers/anthropic.md +375 -0
  1856. package/docs/providers/bedrock.md +217 -0
  1857. package/docs/providers/claude-max-api-proxy.md +154 -0
  1858. package/docs/providers/cloudflare-ai-gateway.md +71 -0
  1859. package/docs/providers/deepgram.md +93 -0
  1860. package/docs/providers/deepseek.md +53 -0
  1861. package/docs/providers/github-copilot.md +72 -0
  1862. package/docs/providers/glm.md +43 -0
  1863. package/docs/providers/google.md +78 -0
  1864. package/docs/providers/groq.md +96 -0
  1865. package/docs/providers/huggingface.md +209 -0
  1866. package/docs/providers/index.md +72 -0
  1867. package/docs/providers/kilocode.md +74 -0
  1868. package/docs/providers/litellm.md +154 -0
  1869. package/docs/providers/minimax.md +183 -0
  1870. package/docs/providers/mistral.md +54 -0
  1871. package/docs/providers/models.md +45 -0
  1872. package/docs/providers/moonshot.md +175 -0
  1873. package/docs/providers/nvidia.md +55 -0
  1874. package/docs/providers/ollama.md +352 -0
  1875. package/docs/providers/openai.md +319 -0
  1876. package/docs/providers/opencode-go.md +45 -0
  1877. package/docs/providers/opencode.md +64 -0
  1878. package/docs/providers/openrouter.md +37 -0
  1879. package/docs/providers/perplexity-provider.md +62 -0
  1880. package/docs/providers/qianfan.md +38 -0
  1881. package/docs/providers/qwen.md +33 -0
  1882. package/docs/providers/qwen_modelstudio.md +85 -0
  1883. package/docs/providers/sglang.md +104 -0
  1884. package/docs/providers/synthetic.md +99 -0
  1885. package/docs/providers/together.md +66 -0
  1886. package/docs/providers/venice.md +282 -0
  1887. package/docs/providers/vercel-ai-gateway.md +60 -0
  1888. package/docs/providers/vllm.md +92 -0
  1889. package/docs/providers/volcengine.md +74 -0
  1890. package/docs/providers/xai.md +69 -0
  1891. package/docs/providers/xiaomi.md +86 -0
  1892. package/docs/providers/zai.md +46 -0
  1893. package/docs/reference/AGENTS.default.md +126 -0
  1894. package/docs/reference/RELEASING.md +80 -0
  1895. package/docs/reference/api-usage-costs.md +144 -0
  1896. package/docs/reference/credits.md +30 -0
  1897. package/docs/reference/device-models.md +47 -0
  1898. package/docs/reference/memory-config.md +370 -0
  1899. package/docs/reference/prompt-caching.md +195 -0
  1900. package/docs/reference/rpc.md +43 -0
  1901. package/docs/reference/secretref-credential-surface.md +137 -0
  1902. package/docs/reference/secretref-user-supplied-credentials-matrix.json +535 -0
  1903. package/docs/reference/session-management-compaction.md +326 -0
  1904. package/docs/reference/templates/AGENTS.dev.md +84 -0
  1905. package/docs/reference/templates/AGENTS.md +219 -0
  1906. package/docs/reference/templates/BOOT.md +11 -0
  1907. package/docs/reference/templates/BOOTSTRAP.md +62 -0
  1908. package/docs/reference/templates/HEARTBEAT.md +14 -0
  1909. package/docs/reference/templates/IDENTITY.dev.md +48 -0
  1910. package/docs/reference/templates/IDENTITY.md +30 -0
  1911. package/docs/reference/templates/SOUL.dev.md +77 -0
  1912. package/docs/reference/templates/SOUL.md +43 -0
  1913. package/docs/reference/templates/TOOLS.dev.md +25 -0
  1914. package/docs/reference/templates/TOOLS.md +47 -0
  1915. package/docs/reference/templates/USER.dev.md +19 -0
  1916. package/docs/reference/templates/USER.md +24 -0
  1917. package/docs/reference/test.md +120 -0
  1918. package/docs/reference/token-use.md +175 -0
  1919. package/docs/reference/transcript-hygiene.md +151 -0
  1920. package/docs/reference/wizard.md +235 -0
  1921. package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
  1922. package/docs/security/THREAT-MODEL-ATLAS.md +608 -0
  1923. package/docs/security/formal-verification.md +167 -0
  1924. package/docs/snippets/plugin-publish/minimal-package.json +16 -0
  1925. package/docs/snippets/plugin-publish/minimal-vora.plugin.json +9 -0
  1926. package/docs/start/bootstrapping.md +41 -0
  1927. package/docs/start/docs-directory.md +66 -0
  1928. package/docs/start/getting-started.md +116 -0
  1929. package/docs/start/hubs.md +198 -0
  1930. package/docs/start/lore.md +219 -0
  1931. package/docs/start/onboarding-overview.md +67 -0
  1932. package/docs/start/onboarding.md +91 -0
  1933. package/docs/start/quickstart.md +22 -0
  1934. package/docs/start/setup.md +164 -0
  1935. package/docs/start/showcase.md +418 -0
  1936. package/docs/start/vora.md +224 -0
  1937. package/docs/start/wizard-cli-automation.md +215 -0
  1938. package/docs/start/wizard-cli-reference.md +302 -0
  1939. package/docs/start/wizard.md +125 -0
  1940. package/docs/style.css +37 -0
  1941. package/docs/tools/acp-agents.md +772 -0
  1942. package/docs/tools/agent-send.md +100 -0
  1943. package/docs/tools/apply-patch.md +52 -0
  1944. package/docs/tools/brave-search.md +97 -0
  1945. package/docs/tools/browser-linux-troubleshooting.md +138 -0
  1946. package/docs/tools/browser-login.md +73 -0
  1947. package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +211 -0
  1948. package/docs/tools/browser.md +824 -0
  1949. package/docs/tools/btw.md +142 -0
  1950. package/docs/tools/capability-cookbook.md +119 -0
  1951. package/docs/tools/clawhub.md +336 -0
  1952. package/docs/tools/code-execution.md +90 -0
  1953. package/docs/tools/creating-skills.md +117 -0
  1954. package/docs/tools/diffs.md +388 -0
  1955. package/docs/tools/duckduckgo-search.md +101 -0
  1956. package/docs/tools/elevated.md +114 -0
  1957. package/docs/tools/exa-search.md +127 -0
  1958. package/docs/tools/exec-approvals.md +502 -0
  1959. package/docs/tools/exec.md +217 -0
  1960. package/docs/tools/firecrawl.md +144 -0
  1961. package/docs/tools/gemini-search.md +93 -0
  1962. package/docs/tools/grok-search.md +98 -0
  1963. package/docs/tools/image-generation.md +125 -0
  1964. package/docs/tools/index.md +140 -0
  1965. package/docs/tools/kimi-search.md +73 -0
  1966. package/docs/tools/llm-task.md +119 -0
  1967. package/docs/tools/lobster.md +348 -0
  1968. package/docs/tools/loop-detection.md +100 -0
  1969. package/docs/tools/multi-agent-sandbox-tools.md +364 -0
  1970. package/docs/tools/pdf.md +161 -0
  1971. package/docs/tools/perplexity-search.md +178 -0
  1972. package/docs/tools/plugin.md +291 -0
  1973. package/docs/tools/reactions.md +64 -0
  1974. package/docs/tools/skills-config.md +95 -0
  1975. package/docs/tools/skills.md +331 -0
  1976. package/docs/tools/slash-commands.md +315 -0
  1977. package/docs/tools/subagents.md +296 -0
  1978. package/docs/tools/tavily.md +129 -0
  1979. package/docs/tools/thinking.md +96 -0
  1980. package/docs/tools/tts.md +416 -0
  1981. package/docs/tools/web-fetch.md +135 -0
  1982. package/docs/tools/web.md +362 -0
  1983. package/docs/tts.md +416 -0
  1984. package/docs/vps.md +112 -0
  1985. package/docs/web/control-ui.md +285 -0
  1986. package/docs/web/dashboard.md +56 -0
  1987. package/docs/web/index.md +120 -0
  1988. package/docs/web/tui.md +175 -0
  1989. package/docs/web/webchat.md +65 -0
  1990. package/docs/whatsapp-vora-ai-zh.jpg +0 -0
  1991. package/docs/whatsapp-vora.jpg +0 -0
  1992. package/docs/zh-CN/AGENTS.md +61 -0
  1993. package/docs/zh-CN/automation/auth-monitoring.md +47 -0
  1994. package/docs/zh-CN/automation/cron-jobs.md +435 -0
  1995. package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
  1996. package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
  1997. package/docs/zh-CN/automation/hooks.md +1051 -0
  1998. package/docs/zh-CN/automation/poll.md +76 -0
  1999. package/docs/zh-CN/automation/troubleshooting.md +8 -0
  2000. package/docs/zh-CN/automation/webhook.md +163 -0
  2001. package/docs/zh-CN/brave-search.md +60 -0
  2002. package/docs/zh-CN/channels/bluebubbles.md +354 -0
  2003. package/docs/zh-CN/channels/broadcast-groups.md +449 -0
  2004. package/docs/zh-CN/channels/channel-routing.md +117 -0
  2005. package/docs/zh-CN/channels/discord.md +468 -0
  2006. package/docs/zh-CN/channels/feishu.md +728 -0
  2007. package/docs/zh-CN/channels/googlechat.md +257 -0
  2008. package/docs/zh-CN/channels/grammy.md +38 -0
  2009. package/docs/zh-CN/channels/group-messages.md +91 -0
  2010. package/docs/zh-CN/channels/groups.md +379 -0
  2011. package/docs/zh-CN/channels/imessage.md +302 -0
  2012. package/docs/zh-CN/channels/index.md +53 -0
  2013. package/docs/zh-CN/channels/line.md +180 -0
  2014. package/docs/zh-CN/channels/location.md +63 -0
  2015. package/docs/zh-CN/channels/matrix.md +221 -0
  2016. package/docs/zh-CN/channels/mattermost.md +144 -0
  2017. package/docs/zh-CN/channels/msteams.md +775 -0
  2018. package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
  2019. package/docs/zh-CN/channels/nostr.md +249 -0
  2020. package/docs/zh-CN/channels/pairing.md +89 -0
  2021. package/docs/zh-CN/channels/signal.md +209 -0
  2022. package/docs/zh-CN/channels/slack.md +531 -0
  2023. package/docs/zh-CN/channels/synology-chat.md +138 -0
  2024. package/docs/zh-CN/channels/telegram.md +751 -0
  2025. package/docs/zh-CN/channels/tlon.md +136 -0
  2026. package/docs/zh-CN/channels/troubleshooting.md +36 -0
  2027. package/docs/zh-CN/channels/twitch.md +385 -0
  2028. package/docs/zh-CN/channels/whatsapp.md +411 -0
  2029. package/docs/zh-CN/channels/zalo.md +196 -0
  2030. package/docs/zh-CN/channels/zalouser.md +147 -0
  2031. package/docs/zh-CN/cli/acp.md +173 -0
  2032. package/docs/zh-CN/cli/agent.md +30 -0
  2033. package/docs/zh-CN/cli/agents.md +82 -0
  2034. package/docs/zh-CN/cli/approvals.md +57 -0
  2035. package/docs/zh-CN/cli/browser.md +114 -0
  2036. package/docs/zh-CN/cli/channels.md +86 -0
  2037. package/docs/zh-CN/cli/config.md +57 -0
  2038. package/docs/zh-CN/cli/configure.md +38 -0
  2039. package/docs/zh-CN/cli/cron.md +43 -0
  2040. package/docs/zh-CN/cli/dashboard.md +23 -0
  2041. package/docs/zh-CN/cli/devices.md +74 -0
  2042. package/docs/zh-CN/cli/directory.md +70 -0
  2043. package/docs/zh-CN/cli/dns.md +30 -0
  2044. package/docs/zh-CN/cli/docs.md +22 -0
  2045. package/docs/zh-CN/cli/doctor.md +48 -0
  2046. package/docs/zh-CN/cli/gateway.md +206 -0
  2047. package/docs/zh-CN/cli/health.md +28 -0
  2048. package/docs/zh-CN/cli/hooks.md +298 -0
  2049. package/docs/zh-CN/cli/index.md +1142 -0
  2050. package/docs/zh-CN/cli/logs.md +31 -0
  2051. package/docs/zh-CN/cli/memory.md +52 -0
  2052. package/docs/zh-CN/cli/message.md +246 -0
  2053. package/docs/zh-CN/cli/models.md +85 -0
  2054. package/docs/zh-CN/cli/node.md +115 -0
  2055. package/docs/zh-CN/cli/nodes.md +62 -0
  2056. package/docs/zh-CN/cli/onboard.md +164 -0
  2057. package/docs/zh-CN/cli/pairing.md +28 -0
  2058. package/docs/zh-CN/cli/plugins.md +66 -0
  2059. package/docs/zh-CN/cli/reset.md +24 -0
  2060. package/docs/zh-CN/cli/sandbox.md +158 -0
  2061. package/docs/zh-CN/cli/security.md +33 -0
  2062. package/docs/zh-CN/cli/sessions.md +23 -0
  2063. package/docs/zh-CN/cli/setup.md +36 -0
  2064. package/docs/zh-CN/cli/skills.md +33 -0
  2065. package/docs/zh-CN/cli/status.md +33 -0
  2066. package/docs/zh-CN/cli/system.md +63 -0
  2067. package/docs/zh-CN/cli/tui.md +30 -0
  2068. package/docs/zh-CN/cli/uninstall.md +24 -0
  2069. package/docs/zh-CN/cli/update.md +101 -0
  2070. package/docs/zh-CN/cli/voicecall.md +41 -0
  2071. package/docs/zh-CN/cli/webhooks.md +32 -0
  2072. package/docs/zh-CN/concepts/agent-loop.md +146 -0
  2073. package/docs/zh-CN/concepts/agent-workspace.md +219 -0
  2074. package/docs/zh-CN/concepts/agent.md +115 -0
  2075. package/docs/zh-CN/concepts/architecture.md +123 -0
  2076. package/docs/zh-CN/concepts/compaction.md +67 -0
  2077. package/docs/zh-CN/concepts/context.md +168 -0
  2078. package/docs/zh-CN/concepts/features.md +59 -0
  2079. package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
  2080. package/docs/zh-CN/concepts/memory.md +412 -0
  2081. package/docs/zh-CN/concepts/messages.md +141 -0
  2082. package/docs/zh-CN/concepts/model-failover.md +145 -0
  2083. package/docs/zh-CN/concepts/model-providers.md +589 -0
  2084. package/docs/zh-CN/concepts/models.md +225 -0
  2085. package/docs/zh-CN/concepts/multi-agent.md +372 -0
  2086. package/docs/zh-CN/concepts/oauth.md +164 -0
  2087. package/docs/zh-CN/concepts/presence.md +99 -0
  2088. package/docs/zh-CN/concepts/queue.md +94 -0
  2089. package/docs/zh-CN/concepts/retry.md +76 -0
  2090. package/docs/zh-CN/concepts/session-pruning.md +129 -0
  2091. package/docs/zh-CN/concepts/session-tool.md +200 -0
  2092. package/docs/zh-CN/concepts/session.md +166 -0
  2093. package/docs/zh-CN/concepts/streaming.md +133 -0
  2094. package/docs/zh-CN/concepts/system-prompt.md +101 -0
  2095. package/docs/zh-CN/concepts/timezone.md +96 -0
  2096. package/docs/zh-CN/concepts/typebox.md +284 -0
  2097. package/docs/zh-CN/concepts/typing-indicators.md +74 -0
  2098. package/docs/zh-CN/concepts/usage-tracking.md +42 -0
  2099. package/docs/zh-CN/date-time.md +129 -0
  2100. package/docs/zh-CN/debug/node-issue.md +90 -0
  2101. package/docs/zh-CN/diagnostics/flags.md +98 -0
  2102. package/docs/zh-CN/gateway/authentication.md +184 -0
  2103. package/docs/zh-CN/gateway/background-process.md +100 -0
  2104. package/docs/zh-CN/gateway/bonjour.md +174 -0
  2105. package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
  2106. package/docs/zh-CN/gateway/cli-backends.md +213 -0
  2107. package/docs/zh-CN/gateway/configuration-examples.md +587 -0
  2108. package/docs/zh-CN/gateway/configuration-reference.md +3103 -0
  2109. package/docs/zh-CN/gateway/configuration.md +640 -0
  2110. package/docs/zh-CN/gateway/discovery.md +123 -0
  2111. package/docs/zh-CN/gateway/doctor.md +238 -0
  2112. package/docs/zh-CN/gateway/gateway-lock.md +41 -0
  2113. package/docs/zh-CN/gateway/health.md +42 -0
  2114. package/docs/zh-CN/gateway/heartbeat.md +274 -0
  2115. package/docs/zh-CN/gateway/index.md +335 -0
  2116. package/docs/zh-CN/gateway/local-models.md +159 -0
  2117. package/docs/zh-CN/gateway/logging.md +114 -0
  2118. package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
  2119. package/docs/zh-CN/gateway/network-model.md +23 -0
  2120. package/docs/zh-CN/gateway/openai-http-api.md +125 -0
  2121. package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
  2122. package/docs/zh-CN/gateway/pairing.md +99 -0
  2123. package/docs/zh-CN/gateway/protocol.md +220 -0
  2124. package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
  2125. package/docs/zh-CN/gateway/remote.md +133 -0
  2126. package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
  2127. package/docs/zh-CN/gateway/sandboxing.md +188 -0
  2128. package/docs/zh-CN/gateway/security/index.md +777 -0
  2129. package/docs/zh-CN/gateway/tailscale.md +124 -0
  2130. package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
  2131. package/docs/zh-CN/gateway/troubleshooting.md +771 -0
  2132. package/docs/zh-CN/help/debugging.md +160 -0
  2133. package/docs/zh-CN/help/environment.md +88 -0
  2134. package/docs/zh-CN/help/faq.md +2640 -0
  2135. package/docs/zh-CN/help/index.md +28 -0
  2136. package/docs/zh-CN/help/scripts.md +35 -0
  2137. package/docs/zh-CN/help/testing.md +375 -0
  2138. package/docs/zh-CN/help/troubleshooting.md +104 -0
  2139. package/docs/zh-CN/index.md +186 -0
  2140. package/docs/zh-CN/install/ansible.md +215 -0
  2141. package/docs/zh-CN/install/bun.md +65 -0
  2142. package/docs/zh-CN/install/development-channels.md +81 -0
  2143. package/docs/zh-CN/install/docker.md +532 -0
  2144. package/docs/zh-CN/install/exe-dev.md +133 -0
  2145. package/docs/zh-CN/install/fly.md +490 -0
  2146. package/docs/zh-CN/install/gcp.md +510 -0
  2147. package/docs/zh-CN/install/hetzner.md +337 -0
  2148. package/docs/zh-CN/install/index.md +235 -0
  2149. package/docs/zh-CN/install/installer.md +422 -0
  2150. package/docs/zh-CN/install/macos-vm.md +288 -0
  2151. package/docs/zh-CN/install/migrating.md +199 -0
  2152. package/docs/zh-CN/install/nix.md +99 -0
  2153. package/docs/zh-CN/install/node.md +8 -0
  2154. package/docs/zh-CN/install/northflank.mdx +60 -0
  2155. package/docs/zh-CN/install/railway.mdx +106 -0
  2156. package/docs/zh-CN/install/render.mdx +169 -0
  2157. package/docs/zh-CN/install/uninstall.md +135 -0
  2158. package/docs/zh-CN/install/updating.md +233 -0
  2159. package/docs/zh-CN/logging.md +329 -0
  2160. package/docs/zh-CN/network.md +59 -0
  2161. package/docs/zh-CN/nodes/audio.md +120 -0
  2162. package/docs/zh-CN/nodes/camera.md +162 -0
  2163. package/docs/zh-CN/nodes/images.md +79 -0
  2164. package/docs/zh-CN/nodes/index.md +350 -0
  2165. package/docs/zh-CN/nodes/location-command.md +120 -0
  2166. package/docs/zh-CN/nodes/media-understanding.md +380 -0
  2167. package/docs/zh-CN/nodes/talk.md +97 -0
  2168. package/docs/zh-CN/nodes/troubleshooting.md +8 -0
  2169. package/docs/zh-CN/nodes/voicewake.md +72 -0
  2170. package/docs/zh-CN/perplexity.md +102 -0
  2171. package/docs/zh-CN/pi-dev.md +87 -0
  2172. package/docs/zh-CN/pi.md +571 -0
  2173. package/docs/zh-CN/platforms/android.md +155 -0
  2174. package/docs/zh-CN/platforms/digitalocean.md +273 -0
  2175. package/docs/zh-CN/platforms/index.md +60 -0
  2176. package/docs/zh-CN/platforms/ios.md +114 -0
  2177. package/docs/zh-CN/platforms/linux.md +100 -0
  2178. package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
  2179. package/docs/zh-CN/platforms/mac/canvas.md +128 -0
  2180. package/docs/zh-CN/platforms/mac/child-process.md +73 -0
  2181. package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
  2182. package/docs/zh-CN/platforms/mac/health.md +41 -0
  2183. package/docs/zh-CN/platforms/mac/icon.md +38 -0
  2184. package/docs/zh-CN/platforms/mac/logging.md +64 -0
  2185. package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
  2186. package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
  2187. package/docs/zh-CN/platforms/mac/permissions.md +46 -0
  2188. package/docs/zh-CN/platforms/mac/remote.md +90 -0
  2189. package/docs/zh-CN/platforms/mac/signing.md +54 -0
  2190. package/docs/zh-CN/platforms/mac/skills.md +40 -0
  2191. package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
  2192. package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
  2193. package/docs/zh-CN/platforms/mac/webchat.md +43 -0
  2194. package/docs/zh-CN/platforms/mac/xpc.md +68 -0
  2195. package/docs/zh-CN/platforms/macos.md +193 -0
  2196. package/docs/zh-CN/platforms/oracle.md +310 -0
  2197. package/docs/zh-CN/platforms/raspberry-pi.md +416 -0
  2198. package/docs/zh-CN/platforms/windows.md +247 -0
  2199. package/docs/zh-CN/plugins/agent-tools.md +99 -0
  2200. package/docs/zh-CN/plugins/manifest.md +68 -0
  2201. package/docs/zh-CN/plugins/voice-call.md +250 -0
  2202. package/docs/zh-CN/plugins/zalouser.md +88 -0
  2203. package/docs/zh-CN/prose.md +141 -0
  2204. package/docs/zh-CN/providers/anthropic.md +265 -0
  2205. package/docs/zh-CN/providers/bedrock.md +170 -0
  2206. package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
  2207. package/docs/zh-CN/providers/cloudflare-ai-gateway.md +78 -0
  2208. package/docs/zh-CN/providers/deepgram.md +97 -0
  2209. package/docs/zh-CN/providers/github-copilot.md +67 -0
  2210. package/docs/zh-CN/providers/glm.md +50 -0
  2211. package/docs/zh-CN/providers/huggingface.md +216 -0
  2212. package/docs/zh-CN/providers/index.md +69 -0
  2213. package/docs/zh-CN/providers/kilocode.md +80 -0
  2214. package/docs/zh-CN/providers/litellm.md +160 -0
  2215. package/docs/zh-CN/providers/minimax.md +222 -0
  2216. package/docs/zh-CN/providers/mistral.md +61 -0
  2217. package/docs/zh-CN/providers/models.md +51 -0
  2218. package/docs/zh-CN/providers/moonshot.md +182 -0
  2219. package/docs/zh-CN/providers/nvidia.md +62 -0
  2220. package/docs/zh-CN/providers/ollama.md +359 -0
  2221. package/docs/zh-CN/providers/openai.md +308 -0
  2222. package/docs/zh-CN/providers/opencode-go.md +52 -0
  2223. package/docs/zh-CN/providers/opencode.md +71 -0
  2224. package/docs/zh-CN/providers/openrouter.md +44 -0
  2225. package/docs/zh-CN/providers/qianfan.md +45 -0
  2226. package/docs/zh-CN/providers/qwen.md +36 -0
  2227. package/docs/zh-CN/providers/sglang.md +111 -0
  2228. package/docs/zh-CN/providers/synthetic.md +106 -0
  2229. package/docs/zh-CN/providers/together.md +72 -0
  2230. package/docs/zh-CN/providers/venice.md +289 -0
  2231. package/docs/zh-CN/providers/vercel-ai-gateway.md +66 -0
  2232. package/docs/zh-CN/providers/xiaomi.md +93 -0
  2233. package/docs/zh-CN/providers/zai.md +53 -0
  2234. package/docs/zh-CN/reference/AGENTS.default.md +131 -0
  2235. package/docs/zh-CN/reference/RELEASING.md +48 -0
  2236. package/docs/zh-CN/reference/api-usage-costs.md +141 -0
  2237. package/docs/zh-CN/reference/credits.md +34 -0
  2238. package/docs/zh-CN/reference/device-models.md +54 -0
  2239. package/docs/zh-CN/reference/rpc.md +48 -0
  2240. package/docs/zh-CN/reference/session-management-compaction.md +287 -0
  2241. package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
  2242. package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
  2243. package/docs/zh-CN/reference/templates/BOOT.md +17 -0
  2244. package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
  2245. package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
  2246. package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
  2247. package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
  2248. package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
  2249. package/docs/zh-CN/reference/templates/SOUL.md +49 -0
  2250. package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
  2251. package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
  2252. package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
  2253. package/docs/zh-CN/reference/templates/USER.md +30 -0
  2254. package/docs/zh-CN/reference/test.md +57 -0
  2255. package/docs/zh-CN/reference/token-use.md +119 -0
  2256. package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
  2257. package/docs/zh-CN/reference/wizard.md +242 -0
  2258. package/docs/zh-CN/security/formal-verification.md +171 -0
  2259. package/docs/zh-CN/start/bootstrapping.md +9 -0
  2260. package/docs/zh-CN/start/docs-directory.md +70 -0
  2261. package/docs/zh-CN/start/getting-started.md +143 -0
  2262. package/docs/zh-CN/start/hubs.md +194 -0
  2263. package/docs/zh-CN/start/lore.md +226 -0
  2264. package/docs/zh-CN/start/onboarding-overview.md +58 -0
  2265. package/docs/zh-CN/start/onboarding.md +105 -0
  2266. package/docs/zh-CN/start/quickstart.md +88 -0
  2267. package/docs/zh-CN/start/setup.md +153 -0
  2268. package/docs/zh-CN/start/showcase.md +423 -0
  2269. package/docs/zh-CN/start/vora.md +248 -0
  2270. package/docs/zh-CN/start/wizard-cli-automation.md +222 -0
  2271. package/docs/zh-CN/start/wizard-cli-reference.md +306 -0
  2272. package/docs/zh-CN/start/wizard.md +132 -0
  2273. package/docs/zh-CN/tools/agent-send.md +59 -0
  2274. package/docs/zh-CN/tools/apply-patch.md +57 -0
  2275. package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
  2276. package/docs/zh-CN/tools/browser-login.md +75 -0
  2277. package/docs/zh-CN/tools/browser.md +553 -0
  2278. package/docs/zh-CN/tools/chrome-extension.md +183 -0
  2279. package/docs/zh-CN/tools/clawhub.md +225 -0
  2280. package/docs/zh-CN/tools/creating-skills.md +61 -0
  2281. package/docs/zh-CN/tools/diffs.md +393 -0
  2282. package/docs/zh-CN/tools/elevated.md +64 -0
  2283. package/docs/zh-CN/tools/exec-approvals.md +234 -0
  2284. package/docs/zh-CN/tools/exec.md +169 -0
  2285. package/docs/zh-CN/tools/firecrawl.md +68 -0
  2286. package/docs/zh-CN/tools/index.md +514 -0
  2287. package/docs/zh-CN/tools/llm-task.md +117 -0
  2288. package/docs/zh-CN/tools/lobster.md +349 -0
  2289. package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
  2290. package/docs/zh-CN/tools/plugin.md +1610 -0
  2291. package/docs/zh-CN/tools/reactions.md +29 -0
  2292. package/docs/zh-CN/tools/skills-config.md +78 -0
  2293. package/docs/zh-CN/tools/skills.md +279 -0
  2294. package/docs/zh-CN/tools/slash-commands.md +205 -0
  2295. package/docs/zh-CN/tools/subagents.md +167 -0
  2296. package/docs/zh-CN/tools/thinking.md +80 -0
  2297. package/docs/zh-CN/tools/web.md +289 -0
  2298. package/docs/zh-CN/tts.md +375 -0
  2299. package/docs/zh-CN/vps.md +47 -0
  2300. package/docs/zh-CN/web/control-ui.md +191 -0
  2301. package/docs/zh-CN/web/dashboard.md +53 -0
  2302. package/docs/zh-CN/web/index.md +118 -0
  2303. package/docs/zh-CN/web/tui.md +166 -0
  2304. package/docs/zh-CN/web/webchat.md +56 -0
  2305. package/package.json +1305 -0
  2306. package/scripts/postinstall-bundled-plugins.mjs +166 -0
  2307. package/skills/1password/SKILL.md +70 -0
  2308. package/skills/1password/references/cli-examples.md +29 -0
  2309. package/skills/1password/references/get-started.md +17 -0
  2310. package/skills/apple-notes/SKILL.md +77 -0
  2311. package/skills/apple-reminders/SKILL.md +118 -0
  2312. package/skills/bear-notes/SKILL.md +107 -0
  2313. package/skills/blogwatcher/SKILL.md +69 -0
  2314. package/skills/blucli/SKILL.md +47 -0
  2315. package/skills/bluebubbles/SKILL.md +131 -0
  2316. package/skills/camsnap/SKILL.md +45 -0
  2317. package/skills/canvas/SKILL.md +199 -0
  2318. package/skills/clawflow/SKILL.md +76 -0
  2319. package/skills/clawflow/examples/inbox-triage.lobster +33 -0
  2320. package/skills/clawflow/examples/pr-intake.lobster +32 -0
  2321. package/skills/clawflow-inbox-triage/SKILL.md +62 -0
  2322. package/skills/clawhub/SKILL.md +77 -0
  2323. package/skills/coding-agent/SKILL.md +316 -0
  2324. package/skills/discord/SKILL.md +197 -0
  2325. package/skills/eightctl/SKILL.md +50 -0
  2326. package/skills/gemini/SKILL.md +43 -0
  2327. package/skills/gh-issues/SKILL.md +885 -0
  2328. package/skills/gifgrep/SKILL.md +79 -0
  2329. package/skills/github/SKILL.md +163 -0
  2330. package/skills/gog/SKILL.md +116 -0
  2331. package/skills/goplaces/SKILL.md +52 -0
  2332. package/skills/healthcheck/SKILL.md +245 -0
  2333. package/skills/himalaya/SKILL.md +257 -0
  2334. package/skills/himalaya/references/configuration.md +184 -0
  2335. package/skills/himalaya/references/message-composition.md +199 -0
  2336. package/skills/imsg/SKILL.md +122 -0
  2337. package/skills/mcporter/SKILL.md +61 -0
  2338. package/skills/model-usage/SKILL.md +69 -0
  2339. package/skills/model-usage/references/codexbar-cli.md +33 -0
  2340. package/skills/model-usage/scripts/model_usage.py +320 -0
  2341. package/skills/model-usage/scripts/test_model_usage.py +40 -0
  2342. package/skills/nano-pdf/SKILL.md +38 -0
  2343. package/skills/node-connect/SKILL.md +142 -0
  2344. package/skills/notion/SKILL.md +174 -0
  2345. package/skills/obsidian/SKILL.md +81 -0
  2346. package/skills/openai-whisper/SKILL.md +38 -0
  2347. package/skills/openai-whisper-api/SKILL.md +62 -0
  2348. package/skills/openai-whisper-api/scripts/transcribe.sh +88 -0
  2349. package/skills/openhue/SKILL.md +112 -0
  2350. package/skills/oracle/SKILL.md +125 -0
  2351. package/skills/ordercli/SKILL.md +78 -0
  2352. package/skills/peekaboo/SKILL.md +190 -0
  2353. package/skills/sag/SKILL.md +87 -0
  2354. package/skills/session-logs/SKILL.md +151 -0
  2355. package/skills/sherpa-onnx-tts/SKILL.md +109 -0
  2356. package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
  2357. package/skills/skill-creator/SKILL.md +372 -0
  2358. package/skills/skill-creator/license.txt +202 -0
  2359. package/skills/skill-creator/scripts/init_skill.py +378 -0
  2360. package/skills/skill-creator/scripts/package_skill.py +139 -0
  2361. package/skills/skill-creator/scripts/quick_validate.py +159 -0
  2362. package/skills/skill-creator/scripts/test_package_skill.py +160 -0
  2363. package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
  2364. package/skills/slack/SKILL.md +144 -0
  2365. package/skills/songsee/SKILL.md +49 -0
  2366. package/skills/sonoscli/SKILL.md +65 -0
  2367. package/skills/spotify-player/SKILL.md +64 -0
  2368. package/skills/summarize/SKILL.md +87 -0
  2369. package/skills/things-mac/SKILL.md +86 -0
  2370. package/skills/tmux/SKILL.md +170 -0
  2371. package/skills/tmux/scripts/find-sessions.sh +112 -0
  2372. package/skills/tmux/scripts/wait-for-text.sh +83 -0
  2373. package/skills/trello/SKILL.md +108 -0
  2374. package/skills/video-frames/SKILL.md +46 -0
  2375. package/skills/video-frames/scripts/frame.sh +81 -0
  2376. package/skills/voice-call/SKILL.md +45 -0
  2377. package/skills/wacli/SKILL.md +72 -0
  2378. package/skills/weather/SKILL.md +129 -0
  2379. package/skills/xurl/SKILL.md +461 -0
  2380. package/vora.mjs +183 -0
@@ -0,0 +1,2698 @@
1
+ import { n as defaultRuntime } from "./runtime-D0VpiCHi.js";
2
+ import { n as resolvePreferredVoraTmpDir } from "./tmp-vora-dir-D2qk7W45.js";
3
+ import { c as isPathInside, r as resolveBoundaryPath } from "./file-identity-CFjEVvlD.js";
4
+ import { r as openBoundaryFile } from "./boundary-file-read-DzY137L0.js";
5
+ import { C as sliceUtf16Safe, v as resolveUserPath } from "./utils-BiWzD1kh.js";
6
+ import { a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_SOUL_FILENAME, d as ensureAgentWorkspace, i as DEFAULT_HEARTBEAT_FILENAME, l as DEFAULT_TOOLS_FILENAME, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, t as DEFAULT_AGENTS_FILENAME, u as DEFAULT_USER_FILENAME } from "./workspace-Byy6tyA9.js";
7
+ import { c as loadConfig } from "./io-B07IaARR.js";
8
+ import "./config-CKbWnj3S.js";
9
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CTG--JDv.js";
10
+ import { a as isToolAllowed, f as SANDBOX_AGENT_WORKSPACE_MOUNT, m as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, n as resolveSandboxConfigForAgent, t as resolveSandboxBrowserDockerCreateConfig } from "./config-DUHgkJzn.js";
11
+ import { n as resolveSandboxRuntimeStatus } from "./runtime-status-C7QK-Xow.js";
12
+ import { i as resolveSandboxPath, n as assertSandboxPath, r as resolveSandboxInputPath } from "./sandbox-paths-ui_vqw2W.js";
13
+ import { I as ensureBrowserControlAuth, a as DEFAULT_VORA_BROWSER_PROFILE_NAME, ct as stopBrowserBridgeServer, et as resolveBrowserControlAuth, i as DEFAULT_VORA_BROWSER_COLOR, n as DEFAULT_BROWSER_EVALUATE_ENABLED, ot as startBrowserBridgeServer, rt as resolveProfile } from "./browser-runtime-C9uxHbGW.js";
14
+ import { c as syncSkillsToWorkspace } from "./skills-BTiQjfVL.js";
15
+ import { t as sanitizeEnvVars } from "./sanitize-env-vars-DpPdECQ9.js";
16
+ import { C as updateRegistry, S as updateBrowserRegistry, _ as slugifySessionKey, a as execDockerRaw, b as removeBrowserRegistryEntry, c as readDockerPort, d as validateNetworkMode, f as resolveSandboxHostPathViaExistingAncestor, g as resolveSandboxWorkspaceDir, h as resolveSandboxScopeKey, i as execDocker, l as appendWorkspaceMountArgs, m as resolveSandboxAgentId, n as dockerContainerState, o as readDockerContainerEnvVar, p as splitSandboxBindSpec, r as ensureSandboxContainer, s as readDockerContainerLabel, t as buildSandboxCreateArgs, v as readBrowserRegistry, w as computeSandboxBrowserConfigHash, x as removeRegistryEntry, y as readRegistry } from "./docker-e3sy4uxj.js";
17
+ import { t as parseSshTarget } from "./ssh-tunnel-DG9ZYGsa.js";
18
+ import { n as deriveDefaultBrowserCdpPortRange } from "./port-defaults-BSVMFkjY.js";
19
+ import fsSync, { existsSync, statSync } from "node:fs";
20
+ import path from "node:path";
21
+ import { spawn } from "node:child_process";
22
+ import os, { homedir } from "node:os";
23
+ import fs from "node:fs/promises";
24
+ import crypto from "node:crypto";
25
+ //#region src/agents/bash-tools.shared.ts
26
+ const CHUNK_LIMIT = 8 * 1024;
27
+ function buildSandboxEnv(params) {
28
+ const env = {
29
+ PATH: params.defaultPath,
30
+ HOME: params.containerWorkdir
31
+ };
32
+ for (const [key, value] of Object.entries(params.sandboxEnv ?? {})) env[key] = value;
33
+ for (const [key, value] of Object.entries(params.paramsEnv ?? {})) env[key] = value;
34
+ return env;
35
+ }
36
+ function coerceEnv(env) {
37
+ const record = {};
38
+ if (!env) return record;
39
+ for (const [key, value] of Object.entries(env)) if (typeof value === "string") record[key] = value;
40
+ return record;
41
+ }
42
+ function buildDockerExecArgs(params) {
43
+ const args = ["exec", "-i"];
44
+ if (params.tty) args.push("-t");
45
+ if (params.workdir) args.push("-w", params.workdir);
46
+ for (const [key, value] of Object.entries(params.env)) {
47
+ if (key === "PATH") continue;
48
+ args.push("-e", `${key}=${value}`);
49
+ }
50
+ const hasCustomPath = typeof params.env.PATH === "string" && params.env.PATH.length > 0;
51
+ if (hasCustomPath) args.push("-e", `VORA_PREPEND_PATH=${params.env.PATH}`);
52
+ const pathExport = hasCustomPath ? "export PATH=\"${VORA_PREPEND_PATH}:$PATH\"; unset VORA_PREPEND_PATH; " : "";
53
+ args.push(params.containerName, "/bin/sh", "-lc", `${pathExport}${params.command}`);
54
+ return args;
55
+ }
56
+ async function resolveSandboxWorkdir(params) {
57
+ const fallback = params.sandbox.workspaceDir;
58
+ const candidateWorkdir = mapContainerWorkdirToHost({
59
+ workdir: params.workdir,
60
+ sandbox: params.sandbox
61
+ }) ?? params.workdir;
62
+ try {
63
+ const resolved = await assertSandboxPath({
64
+ filePath: candidateWorkdir,
65
+ cwd: process.cwd(),
66
+ root: params.sandbox.workspaceDir
67
+ });
68
+ if (!(await fs.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
69
+ const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
70
+ const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
71
+ return {
72
+ hostWorkdir: resolved.resolved,
73
+ containerWorkdir
74
+ };
75
+ } catch {
76
+ params.warnings.push(`Warning: workdir "${params.workdir}" is unavailable; using "${fallback}".`);
77
+ return {
78
+ hostWorkdir: fallback,
79
+ containerWorkdir: params.sandbox.containerWorkdir
80
+ };
81
+ }
82
+ }
83
+ function mapContainerWorkdirToHost(params) {
84
+ const workdir = normalizeContainerPath$2(params.workdir);
85
+ const containerRoot = normalizeContainerPath$2(params.sandbox.containerWorkdir);
86
+ if (containerRoot === ".") return;
87
+ if (workdir === containerRoot) return path.resolve(params.sandbox.workspaceDir);
88
+ if (!workdir.startsWith(`${containerRoot}/`)) return;
89
+ const rel = workdir.slice(containerRoot.length + 1).split("/").filter(Boolean);
90
+ return path.resolve(params.sandbox.workspaceDir, ...rel);
91
+ }
92
+ function normalizeContainerPath$2(input) {
93
+ const normalized = input.trim().replace(/\\/g, "/");
94
+ if (!normalized) return ".";
95
+ return path.posix.normalize(normalized);
96
+ }
97
+ function resolveWorkdir(workdir, warnings) {
98
+ const fallback = safeCwd() ?? homedir();
99
+ try {
100
+ if (statSync(workdir).isDirectory()) return workdir;
101
+ } catch {}
102
+ warnings.push(`Warning: workdir "${workdir}" is unavailable; using "${fallback}".`);
103
+ return fallback;
104
+ }
105
+ function safeCwd() {
106
+ try {
107
+ const cwd = process.cwd();
108
+ return existsSync(cwd) ? cwd : null;
109
+ } catch {
110
+ return null;
111
+ }
112
+ }
113
+ /**
114
+ * Clamp a number within min/max bounds, using defaultValue if undefined or NaN.
115
+ */
116
+ function clampWithDefault(value, defaultValue, min, max) {
117
+ if (value === void 0 || Number.isNaN(value)) return defaultValue;
118
+ return Math.min(Math.max(value, min), max);
119
+ }
120
+ function readEnvInt(key) {
121
+ const raw = process.env[key];
122
+ if (!raw) return;
123
+ const parsed = Number.parseInt(raw, 10);
124
+ return Number.isFinite(parsed) ? parsed : void 0;
125
+ }
126
+ function chunkString(input, limit = CHUNK_LIMIT) {
127
+ const chunks = [];
128
+ for (let i = 0; i < input.length; i += limit) chunks.push(input.slice(i, i + limit));
129
+ return chunks;
130
+ }
131
+ function truncateMiddle(str, max) {
132
+ if (str.length <= max) return str;
133
+ const half = Math.floor((max - 3) / 2);
134
+ return `${sliceUtf16Safe(str, 0, half)}...${sliceUtf16Safe(str, -half)}`;
135
+ }
136
+ function sliceLogLines(text, offset, limit) {
137
+ if (!text) return {
138
+ slice: "",
139
+ totalLines: 0,
140
+ totalChars: 0
141
+ };
142
+ const lines = text.replace(/\r\n/g, "\n").split("\n");
143
+ if (lines.length > 0 && lines[lines.length - 1] === "") lines.pop();
144
+ const totalLines = lines.length;
145
+ const totalChars = text.length;
146
+ let start = typeof offset === "number" && Number.isFinite(offset) ? Math.max(0, Math.floor(offset)) : 0;
147
+ if (limit !== void 0 && offset === void 0) start = Math.max(totalLines - Math.max(0, Math.floor(limit)), 0);
148
+ const end = typeof limit === "number" && Number.isFinite(limit) ? start + Math.max(0, Math.floor(limit)) : void 0;
149
+ return {
150
+ slice: lines.slice(start, end).join("\n"),
151
+ totalLines,
152
+ totalChars
153
+ };
154
+ }
155
+ function deriveSessionName(command) {
156
+ const tokens = tokenizeCommand(command);
157
+ if (tokens.length === 0) return;
158
+ const verb = tokens[0];
159
+ let target = tokens.slice(1).find((t) => !t.startsWith("-"));
160
+ if (!target) target = tokens[1];
161
+ if (!target) return verb;
162
+ const cleaned = truncateMiddle(stripQuotes(target), 48);
163
+ return `${stripQuotes(verb)} ${cleaned}`;
164
+ }
165
+ function tokenizeCommand(command) {
166
+ return (command.match(/(?:[^\s"']+|"(?:\\.|[^"])*"|'(?:\\.|[^'])*')+/g) ?? []).map((token) => stripQuotes(token)).filter(Boolean);
167
+ }
168
+ function stripQuotes(value) {
169
+ const trimmed = value.trim();
170
+ if (trimmed.startsWith("\"") && trimmed.endsWith("\"") || trimmed.startsWith("'") && trimmed.endsWith("'")) return trimmed.slice(1, -1);
171
+ return trimmed;
172
+ }
173
+ function pad(str, width) {
174
+ if (str.length >= width) return str;
175
+ return str + " ".repeat(width - str.length);
176
+ }
177
+ //#endregion
178
+ //#region src/agents/sandbox/docker-backend.ts
179
+ async function createDockerSandboxBackend(params) {
180
+ return createDockerSandboxBackendHandle({
181
+ containerName: await ensureSandboxContainer({
182
+ sessionKey: params.sessionKey,
183
+ workspaceDir: params.workspaceDir,
184
+ agentWorkspaceDir: params.agentWorkspaceDir,
185
+ cfg: params.cfg
186
+ }),
187
+ workdir: params.cfg.docker.workdir,
188
+ env: params.cfg.docker.env,
189
+ image: params.cfg.docker.image
190
+ });
191
+ }
192
+ function createDockerSandboxBackendHandle(params) {
193
+ return {
194
+ id: "docker",
195
+ runtimeId: params.containerName,
196
+ runtimeLabel: params.containerName,
197
+ workdir: params.workdir,
198
+ env: params.env,
199
+ configLabel: params.image,
200
+ configLabelKind: "Image",
201
+ capabilities: { browser: true },
202
+ async buildExecSpec({ command, workdir, env, usePty }) {
203
+ return {
204
+ argv: ["docker", ...buildDockerExecArgs({
205
+ containerName: params.containerName,
206
+ command,
207
+ workdir: workdir ?? params.workdir,
208
+ env,
209
+ tty: usePty
210
+ })],
211
+ env: process.env,
212
+ stdinMode: usePty ? "pipe-open" : "pipe-closed"
213
+ };
214
+ },
215
+ runShellCommand(command) {
216
+ return runDockerSandboxShellCommand({
217
+ containerName: params.containerName,
218
+ ...command
219
+ });
220
+ }
221
+ };
222
+ }
223
+ function runDockerSandboxShellCommand(params) {
224
+ const dockerArgs = [
225
+ "exec",
226
+ "-i",
227
+ params.containerName,
228
+ "sh",
229
+ "-c",
230
+ params.script,
231
+ "vora-sandbox-fs"
232
+ ];
233
+ if (params.args?.length) dockerArgs.push(...params.args);
234
+ return execDockerRaw(dockerArgs, {
235
+ input: params.stdin,
236
+ allowFailure: params.allowFailure,
237
+ signal: params.signal
238
+ });
239
+ }
240
+ const dockerSandboxBackendManager = {
241
+ async describeRuntime({ entry, config, agentId }) {
242
+ const state = await dockerContainerState(entry.containerName);
243
+ let actualConfigLabel = entry.image;
244
+ if (state.exists) try {
245
+ const result = await execDocker([
246
+ "inspect",
247
+ "-f",
248
+ "{{.Config.Image}}",
249
+ entry.containerName
250
+ ], { allowFailure: true });
251
+ if (result.code === 0) actualConfigLabel = result.stdout.trim() || actualConfigLabel;
252
+ } catch {}
253
+ const configuredImage = resolveSandboxConfigForAgent(config, agentId).docker.image;
254
+ return {
255
+ running: state.running,
256
+ actualConfigLabel,
257
+ configLabelMatch: actualConfigLabel === configuredImage
258
+ };
259
+ },
260
+ async removeRuntime({ entry }) {
261
+ try {
262
+ await execDocker([
263
+ "rm",
264
+ "-f",
265
+ entry.containerName
266
+ ], { allowFailure: true });
267
+ } catch {}
268
+ }
269
+ };
270
+ //#endregion
271
+ //#region src/agents/sandbox/fs-bridge-mutation-helper.ts
272
+ const SANDBOX_PINNED_MUTATION_PYTHON_CANDIDATES = [
273
+ "/usr/bin/python3",
274
+ "/usr/local/bin/python3",
275
+ "/opt/homebrew/bin/python3",
276
+ "/bin/python3"
277
+ ];
278
+ const SANDBOX_PINNED_MUTATION_PYTHON = [
279
+ "import errno",
280
+ "import os",
281
+ "import secrets",
282
+ "import stat",
283
+ "import sys",
284
+ "",
285
+ "operation = sys.argv[1]",
286
+ "",
287
+ "DIR_FLAGS = os.O_RDONLY",
288
+ "if hasattr(os, 'O_DIRECTORY'):",
289
+ " DIR_FLAGS |= os.O_DIRECTORY",
290
+ "if hasattr(os, 'O_NOFOLLOW'):",
291
+ " DIR_FLAGS |= os.O_NOFOLLOW",
292
+ "",
293
+ "READ_FLAGS = os.O_RDONLY",
294
+ "if hasattr(os, 'O_NOFOLLOW'):",
295
+ " READ_FLAGS |= os.O_NOFOLLOW",
296
+ "",
297
+ "WRITE_FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL",
298
+ "if hasattr(os, 'O_NOFOLLOW'):",
299
+ " WRITE_FLAGS |= os.O_NOFOLLOW",
300
+ "",
301
+ "def split_relative(path_value):",
302
+ " segments = []",
303
+ " for segment in path_value.split('/'):",
304
+ " if not segment or segment == '.':",
305
+ " continue",
306
+ " if segment == '..':",
307
+ " raise OSError(errno.EPERM, 'path traversal is not allowed', segment)",
308
+ " segments.append(segment)",
309
+ " return segments",
310
+ "",
311
+ "def open_dir(path_value, dir_fd=None):",
312
+ " return os.open(path_value, DIR_FLAGS, dir_fd=dir_fd)",
313
+ "",
314
+ "def walk_dir(root_fd, rel_path, mkdir_enabled):",
315
+ " current_fd = os.dup(root_fd)",
316
+ " try:",
317
+ " for segment in split_relative(rel_path):",
318
+ " try:",
319
+ " next_fd = open_dir(segment, dir_fd=current_fd)",
320
+ " except FileNotFoundError:",
321
+ " if not mkdir_enabled:",
322
+ " raise",
323
+ " os.mkdir(segment, 0o777, dir_fd=current_fd)",
324
+ " next_fd = open_dir(segment, dir_fd=current_fd)",
325
+ " os.close(current_fd)",
326
+ " current_fd = next_fd",
327
+ " return current_fd",
328
+ " except Exception:",
329
+ " os.close(current_fd)",
330
+ " raise",
331
+ "",
332
+ "def create_temp_file(parent_fd, basename):",
333
+ " prefix = '.vora-write-' + basename + '.'",
334
+ " for _ in range(128):",
335
+ " candidate = prefix + secrets.token_hex(6)",
336
+ " try:",
337
+ " fd = os.open(candidate, WRITE_FLAGS, 0o600, dir_fd=parent_fd)",
338
+ " return candidate, fd",
339
+ " except FileExistsError:",
340
+ " continue",
341
+ " raise RuntimeError('failed to allocate sandbox temp file')",
342
+ "",
343
+ "def create_temp_dir(parent_fd, basename, mode):",
344
+ " prefix = '.vora-move-' + basename + '.'",
345
+ " for _ in range(128):",
346
+ " candidate = prefix + secrets.token_hex(6)",
347
+ " try:",
348
+ " os.mkdir(candidate, mode, dir_fd=parent_fd)",
349
+ " return candidate",
350
+ " except FileExistsError:",
351
+ " continue",
352
+ " raise RuntimeError('failed to allocate sandbox temp directory')",
353
+ "",
354
+ "def write_atomic(parent_fd, basename, stdin_buffer):",
355
+ " temp_fd = None",
356
+ " temp_name = None",
357
+ " try:",
358
+ " temp_name, temp_fd = create_temp_file(parent_fd, basename)",
359
+ " while True:",
360
+ " chunk = stdin_buffer.read(65536)",
361
+ " if not chunk:",
362
+ " break",
363
+ " os.write(temp_fd, chunk)",
364
+ " os.fsync(temp_fd)",
365
+ " os.close(temp_fd)",
366
+ " temp_fd = None",
367
+ " os.replace(temp_name, basename, src_dir_fd=parent_fd, dst_dir_fd=parent_fd)",
368
+ " temp_name = None",
369
+ " os.fsync(parent_fd)",
370
+ " finally:",
371
+ " if temp_fd is not None:",
372
+ " os.close(temp_fd)",
373
+ " if temp_name is not None:",
374
+ " try:",
375
+ " os.unlink(temp_name, dir_fd=parent_fd)",
376
+ " except FileNotFoundError:",
377
+ " pass",
378
+ "",
379
+ "def read_file(parent_fd, basename):",
380
+ " file_fd = os.open(basename, READ_FLAGS, dir_fd=parent_fd)",
381
+ " try:",
382
+ " file_stat = os.fstat(file_fd)",
383
+ " if not stat.S_ISREG(file_stat.st_mode):",
384
+ " raise OSError(errno.EPERM, 'only regular files are allowed', basename)",
385
+ " if file_stat.st_nlink > 1:",
386
+ " raise OSError(errno.EPERM, 'hardlinked file is not allowed', basename)",
387
+ " while True:",
388
+ " chunk = os.read(file_fd, 65536)",
389
+ " if not chunk:",
390
+ " break",
391
+ " os.write(1, chunk)",
392
+ " finally:",
393
+ " os.close(file_fd)",
394
+ "",
395
+ "def remove_tree(parent_fd, basename):",
396
+ " entry_stat = os.lstat(basename, dir_fd=parent_fd)",
397
+ " if not stat.S_ISDIR(entry_stat.st_mode) or stat.S_ISLNK(entry_stat.st_mode):",
398
+ " os.unlink(basename, dir_fd=parent_fd)",
399
+ " return",
400
+ " dir_fd = open_dir(basename, dir_fd=parent_fd)",
401
+ " try:",
402
+ " for child in os.listdir(dir_fd):",
403
+ " remove_tree(dir_fd, child)",
404
+ " finally:",
405
+ " os.close(dir_fd)",
406
+ " os.rmdir(basename, dir_fd=parent_fd)",
407
+ "",
408
+ "def move_entry(src_parent_fd, src_basename, dst_parent_fd, dst_basename):",
409
+ " try:",
410
+ " os.rename(src_basename, dst_basename, src_dir_fd=src_parent_fd, dst_dir_fd=dst_parent_fd)",
411
+ " os.fsync(dst_parent_fd)",
412
+ " os.fsync(src_parent_fd)",
413
+ " return",
414
+ " except OSError as err:",
415
+ " if err.errno != errno.EXDEV:",
416
+ " raise",
417
+ " src_stat = os.lstat(src_basename, dir_fd=src_parent_fd)",
418
+ " if stat.S_ISDIR(src_stat.st_mode) and not stat.S_ISLNK(src_stat.st_mode):",
419
+ " temp_dir_name = create_temp_dir(dst_parent_fd, dst_basename, stat.S_IMODE(src_stat.st_mode) or 0o755)",
420
+ " temp_dir_fd = open_dir(temp_dir_name, dir_fd=dst_parent_fd)",
421
+ " src_dir_fd = open_dir(src_basename, dir_fd=src_parent_fd)",
422
+ " try:",
423
+ " for child in os.listdir(src_dir_fd):",
424
+ " move_entry(src_dir_fd, child, temp_dir_fd, child)",
425
+ " finally:",
426
+ " os.close(src_dir_fd)",
427
+ " os.close(temp_dir_fd)",
428
+ " os.rename(temp_dir_name, dst_basename, src_dir_fd=dst_parent_fd, dst_dir_fd=dst_parent_fd)",
429
+ " os.rmdir(src_basename, dir_fd=src_parent_fd)",
430
+ " os.fsync(dst_parent_fd)",
431
+ " os.fsync(src_parent_fd)",
432
+ " return",
433
+ " if stat.S_ISLNK(src_stat.st_mode):",
434
+ " link_target = os.readlink(src_basename, dir_fd=src_parent_fd)",
435
+ " try:",
436
+ " os.unlink(dst_basename, dir_fd=dst_parent_fd)",
437
+ " except FileNotFoundError:",
438
+ " pass",
439
+ " os.symlink(link_target, dst_basename, dir_fd=dst_parent_fd)",
440
+ " os.unlink(src_basename, dir_fd=src_parent_fd)",
441
+ " os.fsync(dst_parent_fd)",
442
+ " os.fsync(src_parent_fd)",
443
+ " return",
444
+ " src_fd = os.open(src_basename, READ_FLAGS, dir_fd=src_parent_fd)",
445
+ " temp_fd = None",
446
+ " temp_name = None",
447
+ " try:",
448
+ " temp_name, temp_fd = create_temp_file(dst_parent_fd, dst_basename)",
449
+ " while True:",
450
+ " chunk = os.read(src_fd, 65536)",
451
+ " if not chunk:",
452
+ " break",
453
+ " os.write(temp_fd, chunk)",
454
+ " try:",
455
+ " os.fchmod(temp_fd, stat.S_IMODE(src_stat.st_mode))",
456
+ " except AttributeError:",
457
+ " pass",
458
+ " os.fsync(temp_fd)",
459
+ " os.close(temp_fd)",
460
+ " temp_fd = None",
461
+ " os.replace(temp_name, dst_basename, src_dir_fd=dst_parent_fd, dst_dir_fd=dst_parent_fd)",
462
+ " temp_name = None",
463
+ " os.unlink(src_basename, dir_fd=src_parent_fd)",
464
+ " os.fsync(dst_parent_fd)",
465
+ " os.fsync(src_parent_fd)",
466
+ " finally:",
467
+ " if temp_fd is not None:",
468
+ " os.close(temp_fd)",
469
+ " if temp_name is not None:",
470
+ " try:",
471
+ " os.unlink(temp_name, dir_fd=dst_parent_fd)",
472
+ " except FileNotFoundError:",
473
+ " pass",
474
+ " os.close(src_fd)",
475
+ "",
476
+ "if operation == 'write':",
477
+ " root_fd = open_dir(sys.argv[2])",
478
+ " parent_fd = None",
479
+ " try:",
480
+ " parent_fd = walk_dir(root_fd, sys.argv[3], sys.argv[5] == '1')",
481
+ " write_atomic(parent_fd, sys.argv[4], sys.stdin.buffer)",
482
+ " finally:",
483
+ " if parent_fd is not None:",
484
+ " os.close(parent_fd)",
485
+ " os.close(root_fd)",
486
+ "elif operation == 'read':",
487
+ " root_fd = open_dir(sys.argv[2])",
488
+ " parent_fd = None",
489
+ " try:",
490
+ " parent_fd = walk_dir(root_fd, sys.argv[3], False)",
491
+ " read_file(parent_fd, sys.argv[4])",
492
+ " finally:",
493
+ " if parent_fd is not None:",
494
+ " os.close(parent_fd)",
495
+ " os.close(root_fd)",
496
+ "elif operation == 'mkdirp':",
497
+ " root_fd = open_dir(sys.argv[2])",
498
+ " target_fd = None",
499
+ " try:",
500
+ " target_fd = walk_dir(root_fd, sys.argv[3], True)",
501
+ " os.fsync(target_fd)",
502
+ " finally:",
503
+ " if target_fd is not None:",
504
+ " os.close(target_fd)",
505
+ " os.close(root_fd)",
506
+ "elif operation == 'remove':",
507
+ " root_fd = open_dir(sys.argv[2])",
508
+ " parent_fd = None",
509
+ " try:",
510
+ " parent_fd = walk_dir(root_fd, sys.argv[3], False)",
511
+ " try:",
512
+ " if sys.argv[5] == '1':",
513
+ " remove_tree(parent_fd, sys.argv[4])",
514
+ " else:",
515
+ " entry_stat = os.lstat(sys.argv[4], dir_fd=parent_fd)",
516
+ " if stat.S_ISDIR(entry_stat.st_mode) and not stat.S_ISLNK(entry_stat.st_mode):",
517
+ " os.rmdir(sys.argv[4], dir_fd=parent_fd)",
518
+ " else:",
519
+ " os.unlink(sys.argv[4], dir_fd=parent_fd)",
520
+ " os.fsync(parent_fd)",
521
+ " except FileNotFoundError:",
522
+ " if sys.argv[6] != '1':",
523
+ " raise",
524
+ " finally:",
525
+ " if parent_fd is not None:",
526
+ " os.close(parent_fd)",
527
+ " os.close(root_fd)",
528
+ "elif operation == 'rename':",
529
+ " src_root_fd = open_dir(sys.argv[2])",
530
+ " dst_root_fd = open_dir(sys.argv[5])",
531
+ " src_parent_fd = None",
532
+ " dst_parent_fd = None",
533
+ " try:",
534
+ " src_parent_fd = walk_dir(src_root_fd, sys.argv[3], False)",
535
+ " dst_parent_fd = walk_dir(dst_root_fd, sys.argv[6], sys.argv[8] == '1')",
536
+ " move_entry(src_parent_fd, sys.argv[4], dst_parent_fd, sys.argv[7])",
537
+ " finally:",
538
+ " if src_parent_fd is not None:",
539
+ " os.close(src_parent_fd)",
540
+ " if dst_parent_fd is not None:",
541
+ " os.close(dst_parent_fd)",
542
+ " os.close(src_root_fd)",
543
+ " os.close(dst_root_fd)",
544
+ "else:",
545
+ " raise RuntimeError('unknown sandbox mutation operation: ' + operation)"
546
+ ].join("\n");
547
+ const SANDBOX_PINNED_MUTATION_PYTHON_SHELL_LITERAL = `'${SANDBOX_PINNED_MUTATION_PYTHON.replaceAll("'", `'\\''`)}'`;
548
+ function buildPinnedMutationPlan(params) {
549
+ return {
550
+ checks: params.checks,
551
+ recheckBeforeCommand: true,
552
+ script: [
553
+ "set -eu",
554
+ "python_cmd=''",
555
+ ...SANDBOX_PINNED_MUTATION_PYTHON_CANDIDATES.map((candidate) => `if [ -z "$python_cmd" ] && [ -x '${candidate}' ]; then python_cmd='${candidate}'; fi`),
556
+ "if [ -z \"$python_cmd\" ]; then python_cmd=$(command -v python3 2>/dev/null || command -v python 2>/dev/null || true); fi",
557
+ "if [ -z \"$python_cmd\" ]; then",
558
+ " echo >&2 'sandbox pinned mutation helper requires python3 or python'",
559
+ " exit 127",
560
+ "fi",
561
+ `python_script=${SANDBOX_PINNED_MUTATION_PYTHON_SHELL_LITERAL}`,
562
+ "exec \"$python_cmd\" -c \"$python_script\" \"$@\""
563
+ ].join("\n"),
564
+ args: params.args
565
+ };
566
+ }
567
+ function buildPinnedWritePlan(params) {
568
+ return buildPinnedMutationPlan({
569
+ checks: [params.check],
570
+ args: [
571
+ "write",
572
+ params.pinned.mountRootPath,
573
+ params.pinned.relativeParentPath,
574
+ params.pinned.basename,
575
+ params.mkdir ? "1" : "0"
576
+ ]
577
+ });
578
+ }
579
+ function buildPinnedMkdirpPlan(params) {
580
+ return buildPinnedMutationPlan({
581
+ checks: [params.check],
582
+ args: [
583
+ "mkdirp",
584
+ params.pinned.mountRootPath,
585
+ params.pinned.relativePath
586
+ ]
587
+ });
588
+ }
589
+ function buildPinnedRemovePlan(params) {
590
+ return buildPinnedMutationPlan({
591
+ checks: [{
592
+ target: params.check.target,
593
+ options: {
594
+ ...params.check.options,
595
+ aliasPolicy: PATH_ALIAS_POLICIES.unlinkTarget
596
+ }
597
+ }],
598
+ args: [
599
+ "remove",
600
+ params.pinned.mountRootPath,
601
+ params.pinned.relativeParentPath,
602
+ params.pinned.basename,
603
+ params.recursive ? "1" : "0",
604
+ params.force === false ? "0" : "1"
605
+ ]
606
+ });
607
+ }
608
+ function buildPinnedRenamePlan(params) {
609
+ return buildPinnedMutationPlan({
610
+ checks: [{
611
+ target: params.fromCheck.target,
612
+ options: {
613
+ ...params.fromCheck.options,
614
+ aliasPolicy: PATH_ALIAS_POLICIES.unlinkTarget
615
+ }
616
+ }, params.toCheck],
617
+ args: [
618
+ "rename",
619
+ params.from.mountRootPath,
620
+ params.from.relativeParentPath,
621
+ params.from.basename,
622
+ params.to.mountRootPath,
623
+ params.to.relativeParentPath,
624
+ params.to.basename,
625
+ "1"
626
+ ]
627
+ });
628
+ }
629
+ //#endregion
630
+ //#region src/agents/sandbox/fs-bridge-rename-targets.ts
631
+ function resolveWritableRenameTargets(params) {
632
+ const action = params.action ?? "rename files";
633
+ const from = params.resolveTarget({
634
+ filePath: params.from,
635
+ cwd: params.cwd
636
+ });
637
+ const to = params.resolveTarget({
638
+ filePath: params.to,
639
+ cwd: params.cwd
640
+ });
641
+ params.ensureWritable(from, action);
642
+ params.ensureWritable(to, action);
643
+ return {
644
+ from,
645
+ to
646
+ };
647
+ }
648
+ function resolveWritableRenameTargetsForBridge(params, resolveTarget, ensureWritable) {
649
+ return resolveWritableRenameTargets({
650
+ ...params,
651
+ resolveTarget,
652
+ ensureWritable
653
+ });
654
+ }
655
+ function createWritableRenameTargetResolver(resolveTarget, ensureWritable) {
656
+ return (params) => resolveWritableRenameTargetsForBridge(params, resolveTarget, ensureWritable);
657
+ }
658
+ //#endregion
659
+ //#region src/agents/sandbox/path-utils.ts
660
+ function normalizeContainerPath$1(value) {
661
+ const normalized = path.posix.normalize(value);
662
+ return normalized === "." ? "/" : normalized;
663
+ }
664
+ function isPathInsideContainerRoot(root, target) {
665
+ const normalizedRoot = normalizeContainerPath$1(root);
666
+ const normalizedTarget = normalizeContainerPath$1(target);
667
+ if (normalizedRoot === "/") return true;
668
+ return normalizedTarget === normalizedRoot || normalizedTarget.startsWith(`${normalizedRoot}/`);
669
+ }
670
+ //#endregion
671
+ //#region src/agents/sandbox/remote-fs-bridge.ts
672
+ function createRemoteShellSandboxFsBridge(params) {
673
+ return new RemoteShellSandboxFsBridge(params.sandbox, params.runtime);
674
+ }
675
+ var RemoteShellSandboxFsBridge = class {
676
+ constructor(sandbox, runtime) {
677
+ this.sandbox = sandbox;
678
+ this.runtime = runtime;
679
+ this.resolveRenameTargets = createWritableRenameTargetResolver((target) => this.resolveTarget(target), (target, action) => this.ensureWritable(target, action));
680
+ }
681
+ resolvePath(params) {
682
+ const target = this.resolveTarget(params);
683
+ return {
684
+ relativePath: target.relativePath,
685
+ containerPath: target.containerPath
686
+ };
687
+ }
688
+ async readFile(params) {
689
+ const target = this.resolveTarget(params);
690
+ const relativePath = path.posix.relative(target.mountRootPath, target.containerPath);
691
+ if (relativePath === "" || relativePath === "." || relativePath.startsWith("..") || path.posix.isAbsolute(relativePath)) throw new Error(`Invalid sandbox entry target: ${target.containerPath}`);
692
+ return (await this.runMutation({
693
+ args: [
694
+ "read",
695
+ target.mountRootPath,
696
+ path.posix.dirname(relativePath) === "." ? "" : path.posix.dirname(relativePath),
697
+ path.posix.basename(relativePath)
698
+ ],
699
+ signal: params.signal
700
+ })).stdout;
701
+ }
702
+ async writeFile(params) {
703
+ const target = this.resolveTarget(params);
704
+ this.ensureWritable(target, "write files");
705
+ const pinned = await this.resolvePinnedParent({
706
+ containerPath: target.containerPath,
707
+ action: "write files",
708
+ requireWritable: true
709
+ });
710
+ await this.assertNoHardlinkedFile({
711
+ containerPath: target.containerPath,
712
+ action: "write files",
713
+ signal: params.signal
714
+ });
715
+ const buffer = Buffer.isBuffer(params.data) ? params.data : Buffer.from(params.data, params.encoding ?? "utf8");
716
+ await this.runMutation({
717
+ args: [
718
+ "write",
719
+ pinned.mountRootPath,
720
+ pinned.relativeParentPath,
721
+ pinned.basename,
722
+ params.mkdir !== false ? "1" : "0"
723
+ ],
724
+ stdin: buffer,
725
+ signal: params.signal
726
+ });
727
+ }
728
+ async mkdirp(params) {
729
+ const target = this.resolveTarget(params);
730
+ this.ensureWritable(target, "create directories");
731
+ const relativePath = path.posix.relative(target.mountRootPath, target.containerPath);
732
+ if (relativePath.startsWith("..") || path.posix.isAbsolute(relativePath)) throw new Error(`Sandbox path escapes allowed mounts; cannot create directories: ${target.containerPath}`);
733
+ await this.runMutation({
734
+ args: [
735
+ "mkdirp",
736
+ target.mountRootPath,
737
+ relativePath === "." ? "" : relativePath
738
+ ],
739
+ signal: params.signal
740
+ });
741
+ }
742
+ async remove(params) {
743
+ const target = this.resolveTarget(params);
744
+ this.ensureWritable(target, "remove files");
745
+ if (!await this.remotePathExists(target.containerPath, params.signal)) {
746
+ if (params.force === false) throw new Error(`Sandbox path not found; cannot remove files: ${target.containerPath}`);
747
+ return;
748
+ }
749
+ const pinned = await this.resolvePinnedParent({
750
+ containerPath: target.containerPath,
751
+ action: "remove files",
752
+ requireWritable: true,
753
+ allowFinalSymlinkForUnlink: true
754
+ });
755
+ await this.runMutation({
756
+ args: [
757
+ "remove",
758
+ pinned.mountRootPath,
759
+ pinned.relativeParentPath,
760
+ pinned.basename,
761
+ params.recursive ? "1" : "0",
762
+ params.force === false ? "0" : "1"
763
+ ],
764
+ signal: params.signal,
765
+ allowFailure: params.force !== false
766
+ });
767
+ }
768
+ async rename(params) {
769
+ const { from, to } = this.resolveRenameTargets(params);
770
+ const fromPinned = await this.resolvePinnedParent({
771
+ containerPath: from.containerPath,
772
+ action: "rename files",
773
+ requireWritable: true,
774
+ allowFinalSymlinkForUnlink: true
775
+ });
776
+ const toPinned = await this.resolvePinnedParent({
777
+ containerPath: to.containerPath,
778
+ action: "rename files",
779
+ requireWritable: true
780
+ });
781
+ await this.runMutation({
782
+ args: [
783
+ "rename",
784
+ fromPinned.mountRootPath,
785
+ fromPinned.relativeParentPath,
786
+ fromPinned.basename,
787
+ toPinned.mountRootPath,
788
+ toPinned.relativeParentPath,
789
+ toPinned.basename,
790
+ "1"
791
+ ],
792
+ signal: params.signal
793
+ });
794
+ }
795
+ async stat(params) {
796
+ const target = this.resolveTarget(params);
797
+ if (!await this.remotePathExists(target.containerPath, params.signal)) return null;
798
+ const canonical = await this.resolveCanonicalPath({
799
+ containerPath: target.containerPath,
800
+ action: "stat files",
801
+ signal: params.signal
802
+ });
803
+ await this.assertNoHardlinkedFile({
804
+ containerPath: canonical,
805
+ action: "stat files",
806
+ signal: params.signal
807
+ });
808
+ const [kindRaw = "", sizeRaw = "0", mtimeRaw = "0"] = (await this.runRemoteScript({
809
+ script: "set -eu\nstat -c \"%F|%s|%Y\" -- \"$1\"",
810
+ args: [canonical],
811
+ signal: params.signal
812
+ })).stdout.toString("utf8").trim().split("|");
813
+ return {
814
+ type: kindRaw === "directory" ? "directory" : kindRaw === "regular file" ? "file" : "other",
815
+ size: Number(sizeRaw),
816
+ mtimeMs: Number(mtimeRaw) * 1e3
817
+ };
818
+ }
819
+ getMounts() {
820
+ const mounts = [{
821
+ containerRoot: normalizeContainerPath(this.runtime.remoteWorkspaceDir),
822
+ writable: this.sandbox.workspaceAccess === "rw",
823
+ source: "workspace"
824
+ }];
825
+ if (this.sandbox.workspaceAccess !== "none" && path.resolve(this.sandbox.agentWorkspaceDir) !== path.resolve(this.sandbox.workspaceDir)) mounts.push({
826
+ containerRoot: normalizeContainerPath(this.runtime.remoteAgentWorkspaceDir),
827
+ writable: this.sandbox.workspaceAccess === "rw",
828
+ source: "agent"
829
+ });
830
+ return mounts;
831
+ }
832
+ resolveTarget(params) {
833
+ const workspaceRoot = path.resolve(this.sandbox.workspaceDir);
834
+ const agentRoot = path.resolve(this.sandbox.agentWorkspaceDir);
835
+ const workspaceContainerRoot = normalizeContainerPath(this.runtime.remoteWorkspaceDir);
836
+ const agentContainerRoot = normalizeContainerPath(this.runtime.remoteAgentWorkspaceDir);
837
+ const mounts = this.getMounts();
838
+ const input = params.filePath.trim();
839
+ const inputPosix = input.replace(/\\/g, "/");
840
+ const maybeContainerMount = path.posix.isAbsolute(inputPosix) ? this.resolveMountByContainerPath(mounts, normalizeContainerPath(inputPosix)) : null;
841
+ if (maybeContainerMount) return this.toResolvedPath({
842
+ mount: maybeContainerMount,
843
+ containerPath: normalizeContainerPath(inputPosix)
844
+ });
845
+ const hostCwd = params.cwd ? path.resolve(params.cwd) : workspaceRoot;
846
+ const hostCandidate = path.isAbsolute(input) ? path.resolve(input) : path.resolve(hostCwd, input);
847
+ if (isPathInside(workspaceRoot, hostCandidate)) {
848
+ const relative = toPosixRelative(workspaceRoot, hostCandidate);
849
+ return this.toResolvedPath({
850
+ mount: mounts[0],
851
+ containerPath: relative ? path.posix.join(workspaceContainerRoot, relative) : workspaceContainerRoot
852
+ });
853
+ }
854
+ if (mounts[1] && isPathInside(agentRoot, hostCandidate)) {
855
+ const relative = toPosixRelative(agentRoot, hostCandidate);
856
+ return this.toResolvedPath({
857
+ mount: mounts[1],
858
+ containerPath: relative ? path.posix.join(agentContainerRoot, relative) : agentContainerRoot
859
+ });
860
+ }
861
+ if (params.cwd) {
862
+ const cwdPosix = params.cwd.replace(/\\/g, "/");
863
+ if (path.posix.isAbsolute(cwdPosix)) {
864
+ const cwdContainer = normalizeContainerPath(cwdPosix);
865
+ const cwdMount = this.resolveMountByContainerPath(mounts, cwdContainer);
866
+ if (cwdMount) return this.toResolvedPath({
867
+ mount: cwdMount,
868
+ containerPath: normalizeContainerPath(path.posix.resolve(cwdContainer, inputPosix))
869
+ });
870
+ }
871
+ }
872
+ throw new Error(`Sandbox path escapes allowed mounts; cannot access: ${params.filePath}`);
873
+ }
874
+ toResolvedPath(params) {
875
+ const relative = path.posix.relative(params.mount.containerRoot, params.containerPath);
876
+ if (relative.startsWith("..") || path.posix.isAbsolute(relative)) throw new Error(`Sandbox path escapes allowed mounts; cannot access: ${params.containerPath}`);
877
+ return {
878
+ relativePath: params.mount.source === "workspace" ? relative === "." ? "" : relative : relative === "." ? params.mount.containerRoot : `${params.mount.containerRoot}/${relative}`,
879
+ containerPath: params.containerPath,
880
+ writable: params.mount.writable,
881
+ mountRootPath: params.mount.containerRoot,
882
+ source: params.mount.source
883
+ };
884
+ }
885
+ resolveMountByContainerPath(mounts, containerPath) {
886
+ const ordered = [...mounts].toSorted((a, b) => b.containerRoot.length - a.containerRoot.length);
887
+ for (const mount of ordered) if (isPathInsideContainerRoot(mount.containerRoot, containerPath)) return mount;
888
+ return null;
889
+ }
890
+ ensureWritable(target, action) {
891
+ if (this.sandbox.workspaceAccess !== "rw" || !target.writable) throw new Error(`Sandbox path is read-only; cannot ${action}: ${target.containerPath}`);
892
+ }
893
+ async remotePathExists(containerPath, signal) {
894
+ return (await this.runRemoteScript({
895
+ script: "if [ -e \"$1\" ] || [ -L \"$1\" ]; then printf \"1\\n\"; else printf \"0\\n\"; fi",
896
+ args: [containerPath],
897
+ signal
898
+ })).stdout.toString("utf8").trim() === "1";
899
+ }
900
+ async resolveCanonicalPath(params) {
901
+ const script = [
902
+ "set -eu",
903
+ "target=\"$1\"",
904
+ "allow_final=\"$2\"",
905
+ "suffix=\"\"",
906
+ "probe=\"$target\"",
907
+ "if [ \"$allow_final\" = \"1\" ] && [ -L \"$target\" ]; then probe=$(dirname -- \"$target\"); fi",
908
+ "cursor=\"$probe\"",
909
+ "while [ ! -e \"$cursor\" ] && [ ! -L \"$cursor\" ]; do",
910
+ " parent=$(dirname -- \"$cursor\")",
911
+ " if [ \"$parent\" = \"$cursor\" ]; then break; fi",
912
+ " base=$(basename -- \"$cursor\")",
913
+ " suffix=\"/$base$suffix\"",
914
+ " cursor=\"$parent\"",
915
+ "done",
916
+ "canonical=$(readlink -f -- \"$cursor\")",
917
+ "printf \"%s%s\\n\" \"$canonical\" \"$suffix\""
918
+ ].join("\n");
919
+ const canonical = normalizeContainerPath((await this.runRemoteScript({
920
+ script,
921
+ args: [params.containerPath, params.allowFinalSymlinkForUnlink ? "1" : "0"],
922
+ signal: params.signal
923
+ })).stdout.toString("utf8").trim());
924
+ if (!this.resolveMountByContainerPath(this.getMounts(), canonical)) throw new Error(`Sandbox path escapes allowed mounts; cannot ${params.action}: ${params.containerPath}`);
925
+ return canonical;
926
+ }
927
+ async assertNoHardlinkedFile(params) {
928
+ const output = (await this.runRemoteScript({
929
+ script: [
930
+ "if [ ! -e \"$1\" ] && [ ! -L \"$1\" ]; then exit 0; fi",
931
+ "stats=$(stat -c \"%F|%h\" -- \"$1\")",
932
+ "printf \"%s\\n\" \"$stats\""
933
+ ].join("\n"),
934
+ args: [params.containerPath],
935
+ signal: params.signal,
936
+ allowFailure: true
937
+ })).stdout.toString("utf8").trim();
938
+ if (!output) return;
939
+ const [kind = "", linksRaw = "1"] = output.split("|");
940
+ if (kind === "regular file" && Number(linksRaw) > 1) throw new Error(`Hardlinked path is not allowed under sandbox mount root: ${params.containerPath}`);
941
+ }
942
+ async resolvePinnedParent(params) {
943
+ const basename = path.posix.basename(params.containerPath);
944
+ if (!basename || basename === "." || basename === "/") throw new Error(`Invalid sandbox entry target: ${params.containerPath}`);
945
+ const canonicalParent = await this.resolveCanonicalPath({
946
+ containerPath: normalizeContainerPath(path.posix.dirname(params.containerPath)),
947
+ action: params.action,
948
+ allowFinalSymlinkForUnlink: params.allowFinalSymlinkForUnlink
949
+ });
950
+ const mount = this.resolveMountByContainerPath(this.getMounts(), canonicalParent);
951
+ if (!mount) throw new Error(`Sandbox path escapes allowed mounts; cannot ${params.action}: ${params.containerPath}`);
952
+ if (params.requireWritable && !mount.writable) throw new Error(`Sandbox path is read-only; cannot ${params.action}: ${params.containerPath}`);
953
+ const relativeParentPath = path.posix.relative(mount.containerRoot, canonicalParent);
954
+ if (relativeParentPath.startsWith("..") || path.posix.isAbsolute(relativeParentPath)) throw new Error(`Sandbox path escapes allowed mounts; cannot ${params.action}: ${params.containerPath}`);
955
+ return {
956
+ mountRootPath: mount.containerRoot,
957
+ relativeParentPath: relativeParentPath === "." ? "" : relativeParentPath,
958
+ basename
959
+ };
960
+ }
961
+ async runMutation(params) {
962
+ return await this.runRemoteScript({
963
+ script: [
964
+ "set -eu",
965
+ "python3 /dev/fd/3 \"$@\" 3<<'PY'",
966
+ SANDBOX_PINNED_MUTATION_PYTHON,
967
+ "PY"
968
+ ].join("\n"),
969
+ args: params.args,
970
+ stdin: params.stdin,
971
+ signal: params.signal,
972
+ allowFailure: params.allowFailure
973
+ });
974
+ }
975
+ async runRemoteScript(params) {
976
+ return await this.runtime.runRemoteShellScript({
977
+ script: params.script,
978
+ args: params.args,
979
+ stdin: params.stdin,
980
+ signal: params.signal,
981
+ allowFailure: params.allowFailure
982
+ });
983
+ }
984
+ };
985
+ function normalizeContainerPath(value) {
986
+ const normalized = normalizeContainerPath$1(value.trim() || "/");
987
+ return normalized.startsWith("/") ? normalized : `/${normalized}`;
988
+ }
989
+ function toPosixRelative(root, candidate) {
990
+ return path.relative(root, candidate).split(path.sep).filter(Boolean).join(path.posix.sep);
991
+ }
992
+ //#endregion
993
+ //#region src/agents/sandbox/ssh.ts
994
+ function normalizeInlineSshMaterial(contents, filename) {
995
+ const normalizedEscapedNewlines = contents.replace(/^\uFEFF/, "").replace(/\r\n?/g, "\n").replace(/\\r\\n/g, "\\n").replace(/\\r/g, "\\n");
996
+ const expanded = filename === "identity" || filename === "certificate.pub" ? normalizedEscapedNewlines.replace(/\\n/g, "\n") : normalizedEscapedNewlines;
997
+ return expanded.endsWith("\n") ? expanded : `${expanded}\n`;
998
+ }
999
+ function buildSshFailureMessage(stderr, exitCode) {
1000
+ const trimmed = stderr.trim();
1001
+ if (trimmed.includes("error in libcrypto") && (trimmed.includes("Load key \"") || trimmed.includes("Permission denied (publickey)"))) return `${trimmed}\nSSH sandbox failed to load the configured identity. The private key contents may be malformed (for example CRLF or escaped newlines). Prefer identityFile when possible.`;
1002
+ return trimmed || (exitCode !== void 0 ? `ssh exited with code ${exitCode}` : "ssh exited with a non-zero status");
1003
+ }
1004
+ function shellEscape(value) {
1005
+ return `'${value.replaceAll("'", `'"'"'`)}'`;
1006
+ }
1007
+ function buildRemoteCommand(argv) {
1008
+ return argv.map((entry) => shellEscape(entry)).join(" ");
1009
+ }
1010
+ function buildExecRemoteCommand(params) {
1011
+ const body = params.workdir ? `cd ${shellEscape(params.workdir)} && ${params.command}` : params.command;
1012
+ return buildRemoteCommand(Object.keys(params.env).length > 0 ? [
1013
+ "env",
1014
+ ...Object.entries(params.env).map(([key, value]) => `${key}=${value}`),
1015
+ "/bin/sh",
1016
+ "-c",
1017
+ body
1018
+ ] : [
1019
+ "/bin/sh",
1020
+ "-c",
1021
+ body
1022
+ ]);
1023
+ }
1024
+ function buildSshSandboxArgv(params) {
1025
+ return [
1026
+ params.session.command,
1027
+ "-F",
1028
+ params.session.configPath,
1029
+ ...params.tty ? [
1030
+ "-tt",
1031
+ "-o",
1032
+ "RequestTTY=force",
1033
+ "-o",
1034
+ "SetEnv=TERM=xterm-256color"
1035
+ ] : [
1036
+ "-T",
1037
+ "-o",
1038
+ "RequestTTY=no"
1039
+ ],
1040
+ params.session.host,
1041
+ params.remoteCommand
1042
+ ];
1043
+ }
1044
+ async function createSshSandboxSessionFromConfigText(params) {
1045
+ const host = params.host?.trim() || parseSshConfigHost(params.configText);
1046
+ if (!host) throw new Error("Failed to parse SSH config output.");
1047
+ const configDir = await fs.mkdtemp(path.join(resolveSshTmpRoot(), "vora-sandbox-ssh-"));
1048
+ const configPath = path.join(configDir, "config");
1049
+ await fs.writeFile(configPath, params.configText, {
1050
+ encoding: "utf8",
1051
+ mode: 384
1052
+ });
1053
+ await fs.chmod(configPath, 384);
1054
+ return {
1055
+ command: params.command?.trim() || "ssh",
1056
+ configPath,
1057
+ host
1058
+ };
1059
+ }
1060
+ async function createSshSandboxSessionFromSettings(settings) {
1061
+ const parsed = parseSshTarget(settings.target);
1062
+ if (!parsed) throw new Error(`Invalid sandbox SSH target: ${settings.target}`);
1063
+ const configDir = await fs.mkdtemp(path.join(resolveSshTmpRoot(), "vora-sandbox-ssh-"));
1064
+ try {
1065
+ const materializedIdentity = settings.identityData ? await writeSecretMaterial(configDir, "identity", settings.identityData) : void 0;
1066
+ const materializedCertificate = settings.certificateData ? await writeSecretMaterial(configDir, "certificate.pub", settings.certificateData) : void 0;
1067
+ const materializedKnownHosts = settings.knownHostsData ? await writeSecretMaterial(configDir, "known_hosts", settings.knownHostsData) : void 0;
1068
+ const identityFile = materializedIdentity ?? resolveOptionalLocalPath(settings.identityFile);
1069
+ const certificateFile = materializedCertificate ?? resolveOptionalLocalPath(settings.certificateFile);
1070
+ const knownHostsFile = materializedKnownHosts ?? resolveOptionalLocalPath(settings.knownHostsFile);
1071
+ const hostAlias = "vora-sandbox";
1072
+ const configPath = path.join(configDir, "config");
1073
+ const lines = [
1074
+ `Host ${hostAlias}`,
1075
+ ` HostName ${parsed.host}`,
1076
+ ` Port ${parsed.port}`,
1077
+ " BatchMode yes",
1078
+ " ConnectTimeout 5",
1079
+ " ServerAliveInterval 15",
1080
+ " ServerAliveCountMax 3",
1081
+ ` StrictHostKeyChecking ${settings.strictHostKeyChecking ? "yes" : "no"}`,
1082
+ ` UpdateHostKeys ${settings.updateHostKeys ? "yes" : "no"}`
1083
+ ];
1084
+ if (parsed.user) lines.push(` User ${parsed.user}`);
1085
+ if (knownHostsFile) lines.push(` UserKnownHostsFile ${knownHostsFile}`);
1086
+ else if (!settings.strictHostKeyChecking) lines.push(" UserKnownHostsFile /dev/null");
1087
+ if (identityFile) lines.push(` IdentityFile ${identityFile}`);
1088
+ if (certificateFile) lines.push(` CertificateFile ${certificateFile}`);
1089
+ if (identityFile || certificateFile) lines.push(" IdentitiesOnly yes");
1090
+ await fs.writeFile(configPath, `${lines.join("\n")}\n`, {
1091
+ encoding: "utf8",
1092
+ mode: 384
1093
+ });
1094
+ await fs.chmod(configPath, 384);
1095
+ return {
1096
+ command: settings.command.trim() || "ssh",
1097
+ configPath,
1098
+ host: hostAlias
1099
+ };
1100
+ } catch (error) {
1101
+ await fs.rm(configDir, {
1102
+ recursive: true,
1103
+ force: true
1104
+ });
1105
+ throw error;
1106
+ }
1107
+ }
1108
+ async function disposeSshSandboxSession(session) {
1109
+ await fs.rm(path.dirname(session.configPath), {
1110
+ recursive: true,
1111
+ force: true
1112
+ });
1113
+ }
1114
+ async function runSshSandboxCommand(params) {
1115
+ const argv = buildSshSandboxArgv({
1116
+ session: params.session,
1117
+ remoteCommand: params.remoteCommand,
1118
+ tty: params.tty
1119
+ });
1120
+ const sshEnv = sanitizeEnvVars(process.env).allowed;
1121
+ return await new Promise((resolve, reject) => {
1122
+ const child = spawn(argv[0], argv.slice(1), {
1123
+ stdio: [
1124
+ "pipe",
1125
+ "pipe",
1126
+ "pipe"
1127
+ ],
1128
+ env: sshEnv,
1129
+ signal: params.signal
1130
+ });
1131
+ const stdoutChunks = [];
1132
+ const stderrChunks = [];
1133
+ child.stdout.on("data", (chunk) => stdoutChunks.push(Buffer.from(chunk)));
1134
+ child.stderr.on("data", (chunk) => stderrChunks.push(Buffer.from(chunk)));
1135
+ child.on("error", reject);
1136
+ child.on("close", (code) => {
1137
+ const stdout = Buffer.concat(stdoutChunks);
1138
+ const stderr = Buffer.concat(stderrChunks);
1139
+ const exitCode = code ?? 0;
1140
+ if (exitCode !== 0 && !params.allowFailure) {
1141
+ reject(Object.assign(new Error(buildSshFailureMessage(stderr.toString("utf8"), exitCode)), {
1142
+ code: exitCode,
1143
+ stdout,
1144
+ stderr
1145
+ }));
1146
+ return;
1147
+ }
1148
+ resolve({
1149
+ stdout,
1150
+ stderr,
1151
+ code: exitCode
1152
+ });
1153
+ });
1154
+ if (params.stdin !== void 0) {
1155
+ child.stdin.end(params.stdin);
1156
+ return;
1157
+ }
1158
+ child.stdin.end();
1159
+ });
1160
+ }
1161
+ async function uploadDirectoryToSshTarget(params) {
1162
+ await assertSafeUploadSymlinks(params.localDir);
1163
+ const remoteCommand = buildRemoteCommand([
1164
+ "/bin/sh",
1165
+ "-c",
1166
+ "mkdir -p -- \"$1\" && tar -xf - -C \"$1\"",
1167
+ "vora-sandbox-upload",
1168
+ params.remoteDir
1169
+ ]);
1170
+ const sshArgv = buildSshSandboxArgv({
1171
+ session: params.session,
1172
+ remoteCommand
1173
+ });
1174
+ const sshEnv = sanitizeEnvVars(process.env).allowed;
1175
+ await new Promise((resolve, reject) => {
1176
+ const tar = spawn("tar", [
1177
+ "-C",
1178
+ params.localDir,
1179
+ "-cf",
1180
+ "-",
1181
+ "."
1182
+ ], {
1183
+ stdio: [
1184
+ "ignore",
1185
+ "pipe",
1186
+ "pipe"
1187
+ ],
1188
+ signal: params.signal
1189
+ });
1190
+ const ssh = spawn(sshArgv[0], sshArgv.slice(1), {
1191
+ stdio: [
1192
+ "pipe",
1193
+ "pipe",
1194
+ "pipe"
1195
+ ],
1196
+ env: sshEnv,
1197
+ signal: params.signal
1198
+ });
1199
+ const tarStderr = [];
1200
+ const sshStdout = [];
1201
+ const sshStderr = [];
1202
+ let tarClosed = false;
1203
+ let sshClosed = false;
1204
+ let tarCode = 0;
1205
+ let sshCode = 0;
1206
+ tar.stderr.on("data", (chunk) => tarStderr.push(Buffer.from(chunk)));
1207
+ ssh.stdout.on("data", (chunk) => sshStdout.push(Buffer.from(chunk)));
1208
+ ssh.stderr.on("data", (chunk) => sshStderr.push(Buffer.from(chunk)));
1209
+ const fail = (error) => {
1210
+ tar.kill("SIGKILL");
1211
+ ssh.kill("SIGKILL");
1212
+ reject(error);
1213
+ };
1214
+ tar.on("error", fail);
1215
+ ssh.on("error", fail);
1216
+ tar.stdout.pipe(ssh.stdin);
1217
+ tar.on("close", (code) => {
1218
+ tarClosed = true;
1219
+ tarCode = code ?? 0;
1220
+ maybeResolve();
1221
+ });
1222
+ ssh.on("close", (code) => {
1223
+ sshClosed = true;
1224
+ sshCode = code ?? 0;
1225
+ maybeResolve();
1226
+ });
1227
+ function maybeResolve() {
1228
+ if (!tarClosed || !sshClosed) return;
1229
+ if (tarCode !== 0) {
1230
+ reject(new Error(Buffer.concat(tarStderr).toString("utf8").trim() || `tar exited with code ${tarCode}`));
1231
+ return;
1232
+ }
1233
+ if (sshCode !== 0) {
1234
+ reject(new Error(Buffer.concat(sshStderr).toString("utf8").trim() || `ssh exited with code ${sshCode}`));
1235
+ return;
1236
+ }
1237
+ resolve();
1238
+ }
1239
+ });
1240
+ }
1241
+ async function assertSafeUploadSymlinks(localDir) {
1242
+ const rootDir = path.resolve(localDir);
1243
+ await walkDirectory(rootDir);
1244
+ async function walkDirectory(currentDir) {
1245
+ const entries = await fs.readdir(currentDir, { withFileTypes: true });
1246
+ for (const entry of entries) {
1247
+ const entryPath = path.join(currentDir, entry.name);
1248
+ if (entry.isSymbolicLink()) {
1249
+ try {
1250
+ await resolveBoundaryPath({
1251
+ absolutePath: entryPath,
1252
+ rootPath: rootDir,
1253
+ boundaryLabel: "SSH sandbox upload tree"
1254
+ });
1255
+ } catch (error) {
1256
+ const relativePath = path.relative(rootDir, entryPath).split(path.sep).join("/");
1257
+ throw new Error(`SSH sandbox upload refuses symlink escaping the workspace: ${relativePath}`, { cause: error });
1258
+ }
1259
+ continue;
1260
+ }
1261
+ if (entry.isDirectory()) await walkDirectory(entryPath);
1262
+ }
1263
+ }
1264
+ }
1265
+ function parseSshConfigHost(configText) {
1266
+ return configText.match(/^\s*Host\s+(\S+)/m)?.[1]?.trim() || null;
1267
+ }
1268
+ function resolveSshTmpRoot() {
1269
+ return path.resolve(resolvePreferredVoraTmpDir() ?? os.tmpdir());
1270
+ }
1271
+ function resolveOptionalLocalPath(value) {
1272
+ const trimmed = value?.trim();
1273
+ return trimmed ? resolveUserPath(trimmed) : void 0;
1274
+ }
1275
+ async function writeSecretMaterial(dir, filename, contents) {
1276
+ const pathname = path.join(dir, filename);
1277
+ await fs.writeFile(pathname, normalizeInlineSshMaterial(contents, filename), {
1278
+ encoding: "utf8",
1279
+ mode: 384
1280
+ });
1281
+ await fs.chmod(pathname, 384);
1282
+ return pathname;
1283
+ }
1284
+ //#endregion
1285
+ //#region src/agents/sandbox/ssh-backend.ts
1286
+ const sshSandboxBackendManager = {
1287
+ async describeRuntime({ entry, config, agentId }) {
1288
+ const cfg = resolveSandboxConfigForAgent(config, agentId);
1289
+ if (cfg.backend !== "ssh" || !cfg.ssh.target) return {
1290
+ running: false,
1291
+ actualConfigLabel: cfg.ssh.target,
1292
+ configLabelMatch: false
1293
+ };
1294
+ const runtimePaths = resolveSshRuntimePaths(cfg.ssh.workspaceRoot, entry.sessionKey);
1295
+ const session = await createSshSandboxSessionFromSettings({
1296
+ ...cfg.ssh,
1297
+ target: cfg.ssh.target
1298
+ });
1299
+ try {
1300
+ return {
1301
+ running: (await runSshSandboxCommand({
1302
+ session,
1303
+ remoteCommand: buildRemoteCommand([
1304
+ "/bin/sh",
1305
+ "-c",
1306
+ "if [ -d \"$1\" ]; then printf \"1\\n\"; else printf \"0\\n\"; fi",
1307
+ "vora-sandbox-check",
1308
+ runtimePaths.runtimeRootDir
1309
+ ])
1310
+ })).stdout.toString("utf8").trim() === "1",
1311
+ actualConfigLabel: cfg.ssh.target,
1312
+ configLabelMatch: entry.image === cfg.ssh.target
1313
+ };
1314
+ } finally {
1315
+ await disposeSshSandboxSession(session);
1316
+ }
1317
+ },
1318
+ async removeRuntime({ entry, config, agentId }) {
1319
+ const cfg = resolveSandboxConfigForAgent(config, agentId);
1320
+ if (cfg.backend !== "ssh" || !cfg.ssh.target) return;
1321
+ const runtimePaths = resolveSshRuntimePaths(cfg.ssh.workspaceRoot, entry.sessionKey);
1322
+ const session = await createSshSandboxSessionFromSettings({
1323
+ ...cfg.ssh,
1324
+ target: cfg.ssh.target
1325
+ });
1326
+ try {
1327
+ await runSshSandboxCommand({
1328
+ session,
1329
+ remoteCommand: buildRemoteCommand([
1330
+ "/bin/sh",
1331
+ "-c",
1332
+ "rm -rf -- \"$1\"",
1333
+ "vora-sandbox-remove",
1334
+ runtimePaths.runtimeRootDir
1335
+ ]),
1336
+ allowFailure: true
1337
+ });
1338
+ } finally {
1339
+ await disposeSshSandboxSession(session);
1340
+ }
1341
+ }
1342
+ };
1343
+ async function createSshSandboxBackend(params) {
1344
+ if ((params.cfg.docker.binds?.length ?? 0) > 0) throw new Error("SSH sandbox backend does not support sandbox.docker.binds.");
1345
+ const target = params.cfg.ssh.target;
1346
+ if (!target) throw new Error("Sandbox backend \"ssh\" requires agents.defaults.sandbox.ssh.target.");
1347
+ return new SshSandboxBackendImpl({
1348
+ createParams: params,
1349
+ target,
1350
+ runtimePaths: resolveSshRuntimePaths(params.cfg.ssh.workspaceRoot, params.scopeKey)
1351
+ }).asHandle();
1352
+ }
1353
+ var SshSandboxBackendImpl = class {
1354
+ constructor(params) {
1355
+ this.params = params;
1356
+ this.ensurePromise = null;
1357
+ }
1358
+ asHandle() {
1359
+ return {
1360
+ id: "ssh",
1361
+ runtimeId: this.params.runtimePaths.runtimeId,
1362
+ runtimeLabel: this.params.runtimePaths.runtimeId,
1363
+ workdir: this.params.runtimePaths.remoteWorkspaceDir,
1364
+ env: this.params.createParams.cfg.docker.env,
1365
+ configLabel: this.params.target,
1366
+ configLabelKind: "Target",
1367
+ remoteWorkspaceDir: this.params.runtimePaths.remoteWorkspaceDir,
1368
+ remoteAgentWorkspaceDir: this.params.runtimePaths.remoteAgentWorkspaceDir,
1369
+ buildExecSpec: async ({ command, workdir, env, usePty }) => {
1370
+ await this.ensureRuntime();
1371
+ const sshSession = await this.createSession();
1372
+ return {
1373
+ argv: buildSshSandboxArgv({
1374
+ session: sshSession,
1375
+ remoteCommand: buildExecRemoteCommand({
1376
+ command,
1377
+ workdir: workdir ?? this.params.runtimePaths.remoteWorkspaceDir,
1378
+ env
1379
+ }),
1380
+ tty: usePty
1381
+ }),
1382
+ env: sanitizeEnvVars(process.env).allowed,
1383
+ stdinMode: "pipe-open",
1384
+ finalizeToken: { sshSession }
1385
+ };
1386
+ },
1387
+ finalizeExec: async ({ token }) => {
1388
+ const sshSession = token?.sshSession;
1389
+ if (sshSession) await disposeSshSandboxSession(sshSession);
1390
+ },
1391
+ runShellCommand: async (command) => await this.runRemoteShellScript(command),
1392
+ createFsBridge: ({ sandbox }) => createRemoteShellSandboxFsBridge({
1393
+ sandbox,
1394
+ runtime: this.asHandle()
1395
+ }),
1396
+ runRemoteShellScript: async (command) => await this.runRemoteShellScript(command)
1397
+ };
1398
+ }
1399
+ async createSession() {
1400
+ return await createSshSandboxSessionFromSettings({
1401
+ ...this.params.createParams.cfg.ssh,
1402
+ target: this.params.target
1403
+ });
1404
+ }
1405
+ async ensureRuntime() {
1406
+ if (this.ensurePromise) return await this.ensurePromise;
1407
+ this.ensurePromise = this.ensureRuntimeInner();
1408
+ try {
1409
+ await this.ensurePromise;
1410
+ } catch (error) {
1411
+ this.ensurePromise = null;
1412
+ throw error;
1413
+ }
1414
+ }
1415
+ async ensureRuntimeInner() {
1416
+ const session = await this.createSession();
1417
+ try {
1418
+ if ((await runSshSandboxCommand({
1419
+ session,
1420
+ remoteCommand: buildRemoteCommand([
1421
+ "/bin/sh",
1422
+ "-c",
1423
+ "if [ -d \"$1\" ]; then printf \"1\\n\"; else printf \"0\\n\"; fi",
1424
+ "vora-sandbox-check",
1425
+ this.params.runtimePaths.runtimeRootDir
1426
+ ])
1427
+ })).stdout.toString("utf8").trim() === "1") return;
1428
+ await this.replaceRemoteDirectoryFromLocal(session, this.params.createParams.workspaceDir, this.params.runtimePaths.remoteWorkspaceDir);
1429
+ if (this.params.createParams.cfg.workspaceAccess !== "none" && path.resolve(this.params.createParams.agentWorkspaceDir) !== path.resolve(this.params.createParams.workspaceDir)) await this.replaceRemoteDirectoryFromLocal(session, this.params.createParams.agentWorkspaceDir, this.params.runtimePaths.remoteAgentWorkspaceDir);
1430
+ } finally {
1431
+ await disposeSshSandboxSession(session);
1432
+ }
1433
+ }
1434
+ async replaceRemoteDirectoryFromLocal(session, localDir, remoteDir) {
1435
+ await runSshSandboxCommand({
1436
+ session,
1437
+ remoteCommand: buildRemoteCommand([
1438
+ "/bin/sh",
1439
+ "-c",
1440
+ "mkdir -p -- \"$1\" && find \"$1\" -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +",
1441
+ "vora-sandbox-clear",
1442
+ remoteDir
1443
+ ])
1444
+ });
1445
+ await uploadDirectoryToSshTarget({
1446
+ session,
1447
+ localDir,
1448
+ remoteDir
1449
+ });
1450
+ }
1451
+ async runRemoteShellScript(params) {
1452
+ await this.ensureRuntime();
1453
+ const session = await this.createSession();
1454
+ try {
1455
+ return await runSshSandboxCommand({
1456
+ session,
1457
+ remoteCommand: buildRemoteCommand([
1458
+ "/bin/sh",
1459
+ "-c",
1460
+ params.script,
1461
+ "vora-sandbox-fs",
1462
+ ...params.args ?? []
1463
+ ]),
1464
+ stdin: params.stdin,
1465
+ allowFailure: params.allowFailure,
1466
+ signal: params.signal
1467
+ });
1468
+ } finally {
1469
+ await disposeSshSandboxSession(session);
1470
+ }
1471
+ }
1472
+ };
1473
+ function resolveSshRuntimePaths(workspaceRoot, scopeKey) {
1474
+ const runtimeId = buildSshSandboxRuntimeId(scopeKey);
1475
+ const runtimeRootDir = path.posix.join(workspaceRoot, runtimeId);
1476
+ return {
1477
+ runtimeId,
1478
+ runtimeRootDir,
1479
+ remoteWorkspaceDir: path.posix.join(runtimeRootDir, "workspace"),
1480
+ remoteAgentWorkspaceDir: path.posix.join(runtimeRootDir, "agent")
1481
+ };
1482
+ }
1483
+ function buildSshSandboxRuntimeId(scopeKey) {
1484
+ const trimmed = scopeKey.trim() || "session";
1485
+ const safe = trimmed.toLowerCase().replace(/[^a-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 32);
1486
+ const hash = Array.from(trimmed).reduce((acc, char) => (acc * 33 ^ char.charCodeAt(0)) >>> 0, 5381);
1487
+ return `vora-ssh-${safe || "session"}-${hash.toString(16).slice(0, 8)}`;
1488
+ }
1489
+ //#endregion
1490
+ //#region src/agents/sandbox/backend.ts
1491
+ const SANDBOX_BACKEND_FACTORIES = /* @__PURE__ */ new Map();
1492
+ function normalizeSandboxBackendId(id) {
1493
+ const normalized = id.trim().toLowerCase();
1494
+ if (!normalized) throw new Error("Sandbox backend id must not be empty.");
1495
+ return normalized;
1496
+ }
1497
+ function registerSandboxBackend(id, registration) {
1498
+ const normalizedId = normalizeSandboxBackendId(id);
1499
+ const resolved = typeof registration === "function" ? { factory: registration } : registration;
1500
+ const previous = SANDBOX_BACKEND_FACTORIES.get(normalizedId);
1501
+ SANDBOX_BACKEND_FACTORIES.set(normalizedId, resolved);
1502
+ return () => {
1503
+ if (previous) {
1504
+ SANDBOX_BACKEND_FACTORIES.set(normalizedId, previous);
1505
+ return;
1506
+ }
1507
+ SANDBOX_BACKEND_FACTORIES.delete(normalizedId);
1508
+ };
1509
+ }
1510
+ function getSandboxBackendFactory(id) {
1511
+ return SANDBOX_BACKEND_FACTORIES.get(normalizeSandboxBackendId(id))?.factory ?? null;
1512
+ }
1513
+ function getSandboxBackendManager(id) {
1514
+ return SANDBOX_BACKEND_FACTORIES.get(normalizeSandboxBackendId(id))?.manager ?? null;
1515
+ }
1516
+ function requireSandboxBackendFactory(id) {
1517
+ const factory = getSandboxBackendFactory(id);
1518
+ if (factory) return factory;
1519
+ throw new Error([`Sandbox backend "${id}" is not registered.`, "Load the plugin that provides it, or set agents.defaults.sandbox.backend=docker."].join("\n"));
1520
+ }
1521
+ registerSandboxBackend("docker", {
1522
+ factory: createDockerSandboxBackend,
1523
+ manager: dockerSandboxBackendManager
1524
+ });
1525
+ registerSandboxBackend("ssh", {
1526
+ factory: createSshSandboxBackend,
1527
+ manager: sshSandboxBackendManager
1528
+ });
1529
+ //#endregion
1530
+ //#region src/agents/sandbox/browser-bridges.ts
1531
+ const BROWSER_BRIDGES = /* @__PURE__ */ new Map();
1532
+ //#endregion
1533
+ //#region src/agents/sandbox/novnc-auth.ts
1534
+ const NOVNC_PASSWORD_ENV_KEY = "VORA_BROWSER_NOVNC_PASSWORD";
1535
+ const NOVNC_TOKEN_TTL_MS = 60 * 1e3;
1536
+ const NOVNC_PASSWORD_LENGTH = 8;
1537
+ const NOVNC_PASSWORD_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1538
+ const NO_VNC_OBSERVER_TOKENS = /* @__PURE__ */ new Map();
1539
+ function pruneExpiredNoVncObserverTokens(now) {
1540
+ for (const [token, entry] of NO_VNC_OBSERVER_TOKENS) if (entry.expiresAt <= now) NO_VNC_OBSERVER_TOKENS.delete(token);
1541
+ }
1542
+ function isNoVncEnabled(params) {
1543
+ return params.enableNoVnc && !params.headless;
1544
+ }
1545
+ function generateNoVncPassword() {
1546
+ let out = "";
1547
+ for (let i = 0; i < NOVNC_PASSWORD_LENGTH; i += 1) out += NOVNC_PASSWORD_ALPHABET[crypto.randomInt(0, 62)];
1548
+ return out;
1549
+ }
1550
+ function issueNoVncObserverToken(params) {
1551
+ const now = params.nowMs ?? Date.now();
1552
+ pruneExpiredNoVncObserverTokens(now);
1553
+ const token = crypto.randomBytes(24).toString("hex");
1554
+ NO_VNC_OBSERVER_TOKENS.set(token, {
1555
+ noVncPort: params.noVncPort,
1556
+ password: params.password?.trim() || void 0,
1557
+ expiresAt: now + Math.max(1, params.ttlMs ?? NOVNC_TOKEN_TTL_MS)
1558
+ });
1559
+ return token;
1560
+ }
1561
+ function consumeNoVncObserverToken(token, nowMs) {
1562
+ const now = nowMs ?? Date.now();
1563
+ pruneExpiredNoVncObserverTokens(now);
1564
+ const normalized = token.trim();
1565
+ if (!normalized) return null;
1566
+ const entry = NO_VNC_OBSERVER_TOKENS.get(normalized);
1567
+ if (!entry) return null;
1568
+ NO_VNC_OBSERVER_TOKENS.delete(normalized);
1569
+ if (entry.expiresAt <= now) return null;
1570
+ return {
1571
+ noVncPort: entry.noVncPort,
1572
+ password: entry.password
1573
+ };
1574
+ }
1575
+ function buildNoVncObserverTokenUrl(baseUrl, token) {
1576
+ return `${baseUrl}/sandbox/novnc?${new URLSearchParams({ token }).toString()}`;
1577
+ }
1578
+ //#endregion
1579
+ //#region src/agents/sandbox/browser.ts
1580
+ const HOT_BROWSER_WINDOW_MS = 300 * 1e3;
1581
+ const CDP_SOURCE_RANGE_ENV_KEY = "VORA_BROWSER_CDP_SOURCE_RANGE";
1582
+ async function waitForSandboxCdp(params) {
1583
+ const deadline = Date.now() + Math.max(0, params.timeoutMs);
1584
+ const url = `http://127.0.0.1:${params.cdpPort}/json/version`;
1585
+ while (Date.now() < deadline) {
1586
+ try {
1587
+ const ctrl = new AbortController();
1588
+ const t = setTimeout(ctrl.abort.bind(ctrl), 1e3);
1589
+ try {
1590
+ if ((await fetch(url, { signal: ctrl.signal })).ok) return true;
1591
+ } finally {
1592
+ clearTimeout(t);
1593
+ }
1594
+ } catch {}
1595
+ await new Promise((r) => setTimeout(r, 150));
1596
+ }
1597
+ return false;
1598
+ }
1599
+ function buildSandboxBrowserResolvedConfig(params) {
1600
+ const cdpHost = "127.0.0.1";
1601
+ const cdpPortRange = deriveDefaultBrowserCdpPortRange(params.controlPort);
1602
+ return {
1603
+ enabled: true,
1604
+ evaluateEnabled: params.evaluateEnabled,
1605
+ controlPort: params.controlPort,
1606
+ cdpProtocol: "http",
1607
+ cdpHost,
1608
+ cdpIsLoopback: true,
1609
+ cdpPortRangeStart: cdpPortRange.start,
1610
+ cdpPortRangeEnd: cdpPortRange.end,
1611
+ remoteCdpTimeoutMs: 1500,
1612
+ remoteCdpHandshakeTimeoutMs: 3e3,
1613
+ color: DEFAULT_VORA_BROWSER_COLOR,
1614
+ executablePath: void 0,
1615
+ headless: params.headless,
1616
+ noSandbox: false,
1617
+ attachOnly: true,
1618
+ defaultProfile: DEFAULT_VORA_BROWSER_PROFILE_NAME,
1619
+ extraArgs: [],
1620
+ profiles: { [DEFAULT_VORA_BROWSER_PROFILE_NAME]: {
1621
+ cdpPort: params.cdpPort,
1622
+ color: DEFAULT_VORA_BROWSER_COLOR
1623
+ } }
1624
+ };
1625
+ }
1626
+ async function ensureSandboxBrowserImage(image) {
1627
+ if ((await execDocker([
1628
+ "image",
1629
+ "inspect",
1630
+ image
1631
+ ], { allowFailure: true })).code === 0) return;
1632
+ throw new Error(`Sandbox browser image not found: ${image}. Build it with scripts/sandbox-browser-setup.sh.`);
1633
+ }
1634
+ async function ensureDockerNetwork(network, opts) {
1635
+ validateNetworkMode(network, { allowContainerNamespaceJoin: opts?.allowContainerNamespaceJoin === true });
1636
+ const normalized = network.trim().toLowerCase();
1637
+ if (!normalized || normalized === "bridge" || normalized === "none") return;
1638
+ if ((await execDocker([
1639
+ "network",
1640
+ "inspect",
1641
+ network
1642
+ ], { allowFailure: true })).code === 0) return;
1643
+ await execDocker([
1644
+ "network",
1645
+ "create",
1646
+ "--driver",
1647
+ "bridge",
1648
+ network
1649
+ ]);
1650
+ }
1651
+ async function ensureSandboxBrowser(params) {
1652
+ if (!params.cfg.browser.enabled) return null;
1653
+ if (!isToolAllowed(params.cfg.tools, "browser")) return null;
1654
+ const slug = params.cfg.scope === "shared" ? "shared" : slugifySessionKey(params.scopeKey);
1655
+ const containerName = `${params.cfg.browser.containerPrefix}${slug}`.slice(0, 63);
1656
+ const state = await dockerContainerState(containerName);
1657
+ const browserImage = params.cfg.browser.image ?? "vora-sandbox-browser:bookworm-slim";
1658
+ const cdpSourceRange = params.cfg.browser.cdpSourceRange?.trim() || void 0;
1659
+ const browserDockerCfg = resolveSandboxBrowserDockerCreateConfig({
1660
+ docker: params.cfg.docker,
1661
+ browser: {
1662
+ ...params.cfg.browser,
1663
+ image: browserImage
1664
+ }
1665
+ });
1666
+ const expectedHash = computeSandboxBrowserConfigHash({
1667
+ docker: browserDockerCfg,
1668
+ browser: {
1669
+ cdpPort: params.cfg.browser.cdpPort,
1670
+ vncPort: params.cfg.browser.vncPort,
1671
+ noVncPort: params.cfg.browser.noVncPort,
1672
+ headless: params.cfg.browser.headless,
1673
+ enableNoVnc: params.cfg.browser.enableNoVnc,
1674
+ cdpSourceRange
1675
+ },
1676
+ securityEpoch: SANDBOX_BROWSER_SECURITY_HASH_EPOCH,
1677
+ workspaceAccess: params.cfg.workspaceAccess,
1678
+ workspaceDir: params.workspaceDir,
1679
+ agentWorkspaceDir: params.agentWorkspaceDir,
1680
+ mountFormatVersion: 2
1681
+ });
1682
+ const now = Date.now();
1683
+ let hasContainer = state.exists;
1684
+ let running = state.running;
1685
+ let currentHash = null;
1686
+ let hashMismatch = false;
1687
+ const noVncEnabled = isNoVncEnabled(params.cfg.browser);
1688
+ let noVncPassword;
1689
+ if (hasContainer) {
1690
+ if (noVncEnabled) noVncPassword = await readDockerContainerEnvVar(containerName, "VORA_BROWSER_NOVNC_PASSWORD") ?? void 0;
1691
+ const registryEntry = (await readBrowserRegistry()).entries.find((entry) => entry.containerName === containerName);
1692
+ currentHash = await readDockerContainerLabel(containerName, "vora.configHash");
1693
+ hashMismatch = !currentHash || currentHash !== expectedHash;
1694
+ if (!currentHash) {
1695
+ currentHash = registryEntry?.configHash ?? null;
1696
+ hashMismatch = !currentHash || currentHash !== expectedHash;
1697
+ }
1698
+ if (hashMismatch) {
1699
+ const lastUsedAtMs = registryEntry?.lastUsedAtMs;
1700
+ if (running && (typeof lastUsedAtMs !== "number" || now - lastUsedAtMs < HOT_BROWSER_WINDOW_MS)) {
1701
+ const hint = (() => {
1702
+ if (params.cfg.scope === "session") return `vora sandbox recreate --browser --session ${params.scopeKey}`;
1703
+ if (params.cfg.scope === "agent") return `vora sandbox recreate --browser --agent ${resolveSandboxAgentId(params.scopeKey) ?? "main"}`;
1704
+ return "vora sandbox recreate --browser --all";
1705
+ })();
1706
+ defaultRuntime.log(`Sandbox browser config changed for ${containerName} (recently used). Recreate to apply: ${hint}`);
1707
+ } else {
1708
+ await execDocker([
1709
+ "rm",
1710
+ "-f",
1711
+ containerName
1712
+ ], { allowFailure: true });
1713
+ hasContainer = false;
1714
+ running = false;
1715
+ }
1716
+ }
1717
+ }
1718
+ if (!hasContainer) {
1719
+ if (noVncEnabled) noVncPassword = generateNoVncPassword();
1720
+ await ensureDockerNetwork(browserDockerCfg.network, { allowContainerNamespaceJoin: browserDockerCfg.dangerouslyAllowContainerNamespaceJoin === true });
1721
+ await ensureSandboxBrowserImage(browserImage);
1722
+ const args = buildSandboxCreateArgs({
1723
+ name: containerName,
1724
+ cfg: browserDockerCfg,
1725
+ scopeKey: params.scopeKey,
1726
+ labels: {
1727
+ "vora.sandboxBrowser": "1",
1728
+ "vora.browserConfigEpoch": SANDBOX_BROWSER_SECURITY_HASH_EPOCH
1729
+ },
1730
+ configHash: expectedHash,
1731
+ includeBinds: false,
1732
+ bindSourceRoots: [params.workspaceDir, params.agentWorkspaceDir]
1733
+ });
1734
+ appendWorkspaceMountArgs({
1735
+ args,
1736
+ workspaceDir: params.workspaceDir,
1737
+ agentWorkspaceDir: params.agentWorkspaceDir,
1738
+ workdir: params.cfg.docker.workdir,
1739
+ workspaceAccess: params.cfg.workspaceAccess
1740
+ });
1741
+ if (browserDockerCfg.binds?.length) for (const bind of browserDockerCfg.binds) args.push("-v", bind);
1742
+ args.push("-p", `127.0.0.1::${params.cfg.browser.cdpPort}`);
1743
+ if (noVncEnabled) args.push("-p", `127.0.0.1::${params.cfg.browser.noVncPort}`);
1744
+ args.push("-e", `VORA_BROWSER_HEADLESS=${params.cfg.browser.headless ? "1" : "0"}`);
1745
+ args.push("-e", `VORA_BROWSER_ENABLE_NOVNC=${params.cfg.browser.enableNoVnc ? "1" : "0"}`);
1746
+ args.push("-e", `VORA_BROWSER_CDP_PORT=${params.cfg.browser.cdpPort}`);
1747
+ if (cdpSourceRange) args.push("-e", `${CDP_SOURCE_RANGE_ENV_KEY}=${cdpSourceRange}`);
1748
+ args.push("-e", `VORA_BROWSER_VNC_PORT=${params.cfg.browser.vncPort}`);
1749
+ args.push("-e", `VORA_BROWSER_NOVNC_PORT=${params.cfg.browser.noVncPort}`);
1750
+ args.push("-e", "VORA_BROWSER_NO_SANDBOX=1");
1751
+ if (noVncEnabled && noVncPassword) args.push("-e", `${NOVNC_PASSWORD_ENV_KEY}=${noVncPassword}`);
1752
+ args.push(browserImage);
1753
+ await execDocker(args);
1754
+ await execDocker(["start", containerName]);
1755
+ } else if (!running) await execDocker(["start", containerName]);
1756
+ const mappedCdp = await readDockerPort(containerName, params.cfg.browser.cdpPort);
1757
+ if (!mappedCdp) throw new Error(`Failed to resolve CDP port mapping for ${containerName}.`);
1758
+ const mappedNoVnc = noVncEnabled ? await readDockerPort(containerName, params.cfg.browser.noVncPort) : null;
1759
+ if (noVncEnabled && !noVncPassword) noVncPassword = await readDockerContainerEnvVar(containerName, "VORA_BROWSER_NOVNC_PASSWORD") ?? void 0;
1760
+ const existing = BROWSER_BRIDGES.get(params.scopeKey);
1761
+ const existingProfile = existing ? resolveProfile(existing.bridge.state.resolved, DEFAULT_VORA_BROWSER_PROFILE_NAME) : null;
1762
+ let desiredAuthToken = params.bridgeAuth?.token?.trim() || void 0;
1763
+ let desiredAuthPassword = params.bridgeAuth?.password?.trim() || void 0;
1764
+ if (!desiredAuthToken && !desiredAuthPassword) {
1765
+ desiredAuthToken = existing?.authToken;
1766
+ desiredAuthPassword = existing?.authPassword;
1767
+ if (!desiredAuthToken && !desiredAuthPassword) desiredAuthToken = crypto.randomBytes(24).toString("hex");
1768
+ }
1769
+ const shouldReuse = existing && existing.containerName === containerName && existingProfile?.cdpPort === mappedCdp;
1770
+ const authMatches = !existing || existing.authToken === desiredAuthToken && existing.authPassword === desiredAuthPassword;
1771
+ if (existing && !shouldReuse) {
1772
+ await stopBrowserBridgeServer(existing.bridge.server).catch(() => void 0);
1773
+ BROWSER_BRIDGES.delete(params.scopeKey);
1774
+ }
1775
+ if (existing && shouldReuse && !authMatches) {
1776
+ await stopBrowserBridgeServer(existing.bridge.server).catch(() => void 0);
1777
+ BROWSER_BRIDGES.delete(params.scopeKey);
1778
+ }
1779
+ const bridge = (() => {
1780
+ if (shouldReuse && authMatches && existing) return existing.bridge;
1781
+ return null;
1782
+ })();
1783
+ const ensureBridge = async () => {
1784
+ if (bridge) return bridge;
1785
+ const onEnsureAttachTarget = params.cfg.browser.autoStart ? async () => {
1786
+ const currentState = await dockerContainerState(containerName);
1787
+ if (currentState.exists && !currentState.running) await execDocker(["start", containerName]);
1788
+ if (!await waitForSandboxCdp({
1789
+ cdpPort: mappedCdp,
1790
+ timeoutMs: params.cfg.browser.autoStartTimeoutMs
1791
+ })) throw new Error(`Sandbox browser CDP did not become reachable on 127.0.0.1:${mappedCdp} within ${params.cfg.browser.autoStartTimeoutMs}ms.`);
1792
+ } : void 0;
1793
+ return await startBrowserBridgeServer({
1794
+ resolved: buildSandboxBrowserResolvedConfig({
1795
+ controlPort: 0,
1796
+ cdpPort: mappedCdp,
1797
+ headless: params.cfg.browser.headless,
1798
+ evaluateEnabled: params.evaluateEnabled ?? DEFAULT_BROWSER_EVALUATE_ENABLED
1799
+ }),
1800
+ authToken: desiredAuthToken,
1801
+ authPassword: desiredAuthPassword,
1802
+ onEnsureAttachTarget,
1803
+ resolveSandboxNoVncToken: consumeNoVncObserverToken
1804
+ });
1805
+ };
1806
+ const resolvedBridge = await ensureBridge();
1807
+ if (!shouldReuse || !authMatches) BROWSER_BRIDGES.set(params.scopeKey, {
1808
+ bridge: resolvedBridge,
1809
+ containerName,
1810
+ authToken: desiredAuthToken,
1811
+ authPassword: desiredAuthPassword
1812
+ });
1813
+ await updateBrowserRegistry({
1814
+ containerName,
1815
+ sessionKey: params.scopeKey,
1816
+ createdAtMs: now,
1817
+ lastUsedAtMs: now,
1818
+ image: browserImage,
1819
+ configHash: hashMismatch && running ? currentHash ?? void 0 : expectedHash,
1820
+ cdpPort: mappedCdp,
1821
+ noVncPort: mappedNoVnc ?? void 0
1822
+ });
1823
+ const noVncUrl = mappedNoVnc && noVncEnabled ? (() => {
1824
+ const token = issueNoVncObserverToken({
1825
+ noVncPort: mappedNoVnc,
1826
+ password: noVncPassword
1827
+ });
1828
+ return buildNoVncObserverTokenUrl(resolvedBridge.baseUrl, token);
1829
+ })() : void 0;
1830
+ return {
1831
+ bridgeUrl: resolvedBridge.baseUrl,
1832
+ noVncUrl,
1833
+ containerName
1834
+ };
1835
+ }
1836
+ //#endregion
1837
+ //#region src/agents/sandbox/fs-bridge-path-safety.ts
1838
+ var SandboxFsPathGuard = class {
1839
+ constructor(params) {
1840
+ this.mountsByContainer = params.mountsByContainer;
1841
+ this.runCommand = params.runCommand;
1842
+ }
1843
+ async assertPathChecks(checks) {
1844
+ for (const check of checks) await this.assertPathSafety(check.target, check.options);
1845
+ }
1846
+ async assertPathSafety(target, options) {
1847
+ const guarded = await this.openBoundaryWithinRequiredMount(target, options.action, {
1848
+ aliasPolicy: options.aliasPolicy,
1849
+ allowedType: options.allowedType
1850
+ });
1851
+ await this.assertGuardedPathSafety(target, options, guarded);
1852
+ }
1853
+ async openReadableFile(target) {
1854
+ const opened = await this.openBoundaryWithinRequiredMount(target, "read files");
1855
+ if (!opened.ok) throw opened.error instanceof Error ? opened.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot read files: ${target.containerPath}`);
1856
+ return opened;
1857
+ }
1858
+ resolveRequiredMount(containerPath, action) {
1859
+ const lexicalMount = this.resolveMountByContainerPath(containerPath);
1860
+ if (!lexicalMount) throw new Error(`Sandbox path escapes allowed mounts; cannot ${action}: ${containerPath}`);
1861
+ return lexicalMount;
1862
+ }
1863
+ finalizePinnedEntry(params) {
1864
+ const relativeParentPath = path.posix.relative(params.mount.containerRoot, params.parentPath);
1865
+ if (relativeParentPath.startsWith("..") || path.posix.isAbsolute(relativeParentPath)) throw new Error(`Sandbox path escapes allowed mounts; cannot ${params.action}: ${params.targetPath}`);
1866
+ return {
1867
+ mountRootPath: params.mount.containerRoot,
1868
+ relativeParentPath: relativeParentPath === "." ? "" : relativeParentPath,
1869
+ basename: params.basename
1870
+ };
1871
+ }
1872
+ async assertGuardedPathSafety(target, options, guarded) {
1873
+ if (!guarded.ok) {
1874
+ if (guarded.reason !== "path") {
1875
+ if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
1876
+ }
1877
+ } else fsSync.closeSync(guarded.fd);
1878
+ const canonicalContainerPath = await this.resolveCanonicalContainerPath({
1879
+ containerPath: target.containerPath,
1880
+ allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
1881
+ });
1882
+ const canonicalMount = this.resolveRequiredMount(canonicalContainerPath, options.action);
1883
+ if (options.requireWritable && !canonicalMount.writable) throw new Error(`Sandbox path is read-only; cannot ${options.action}: ${target.containerPath}`);
1884
+ }
1885
+ async openBoundaryWithinRequiredMount(target, action, options) {
1886
+ const lexicalMount = this.resolveRequiredMount(target.containerPath, action);
1887
+ return await openBoundaryFile({
1888
+ absolutePath: target.hostPath,
1889
+ rootPath: lexicalMount.hostRoot,
1890
+ boundaryLabel: "sandbox mount root",
1891
+ aliasPolicy: options?.aliasPolicy,
1892
+ allowedType: options?.allowedType
1893
+ });
1894
+ }
1895
+ resolvePinnedEntry(target, action) {
1896
+ const basename = path.posix.basename(target.containerPath);
1897
+ if (!basename || basename === "." || basename === "/") throw new Error(`Invalid sandbox entry target: ${target.containerPath}`);
1898
+ const parentPath = normalizeContainerPath$1(path.posix.dirname(target.containerPath));
1899
+ const mount = this.resolveRequiredMount(parentPath, action);
1900
+ return this.finalizePinnedEntry({
1901
+ mount,
1902
+ parentPath,
1903
+ basename,
1904
+ targetPath: target.containerPath,
1905
+ action
1906
+ });
1907
+ }
1908
+ async resolveAnchoredSandboxEntry(target, action) {
1909
+ const basename = path.posix.basename(target.containerPath);
1910
+ if (!basename || basename === "." || basename === "/") throw new Error(`Invalid sandbox entry target: ${target.containerPath}`);
1911
+ const parentPath = normalizeContainerPath$1(path.posix.dirname(target.containerPath));
1912
+ const canonicalParentPath = await this.resolveCanonicalContainerPath({
1913
+ containerPath: parentPath,
1914
+ allowFinalSymlinkForUnlink: false
1915
+ });
1916
+ this.resolveRequiredMount(canonicalParentPath, action);
1917
+ return {
1918
+ canonicalParentPath,
1919
+ basename
1920
+ };
1921
+ }
1922
+ async resolveAnchoredPinnedEntry(target, action) {
1923
+ const anchoredTarget = await this.resolveAnchoredSandboxEntry(target, action);
1924
+ const mount = this.resolveRequiredMount(anchoredTarget.canonicalParentPath, action);
1925
+ return this.finalizePinnedEntry({
1926
+ mount,
1927
+ parentPath: anchoredTarget.canonicalParentPath,
1928
+ basename: anchoredTarget.basename,
1929
+ targetPath: target.containerPath,
1930
+ action
1931
+ });
1932
+ }
1933
+ resolvePinnedDirectoryEntry(target, action) {
1934
+ const mount = this.resolveRequiredMount(target.containerPath, action);
1935
+ const relativePath = path.posix.relative(mount.containerRoot, target.containerPath);
1936
+ if (relativePath.startsWith("..") || path.posix.isAbsolute(relativePath)) throw new Error(`Sandbox path escapes allowed mounts; cannot ${action}: ${target.containerPath}`);
1937
+ return {
1938
+ mountRootPath: mount.containerRoot,
1939
+ relativePath: relativePath === "." ? "" : relativePath
1940
+ };
1941
+ }
1942
+ pathIsExistingDirectory(hostPath) {
1943
+ try {
1944
+ return fsSync.statSync(hostPath).isDirectory();
1945
+ } catch {
1946
+ return false;
1947
+ }
1948
+ }
1949
+ resolveMountByContainerPath(containerPath) {
1950
+ const normalized = normalizeContainerPath$1(containerPath);
1951
+ for (const mount of this.mountsByContainer) if (isPathInsideContainerRoot(normalizeContainerPath$1(mount.containerRoot), normalized)) return mount;
1952
+ return null;
1953
+ }
1954
+ async resolveCanonicalContainerPath(params) {
1955
+ const script = [
1956
+ "set -eu",
1957
+ "target=\"$1\"",
1958
+ "allow_final=\"$2\"",
1959
+ "suffix=\"\"",
1960
+ "probe=\"$target\"",
1961
+ "if [ \"$allow_final\" = \"1\" ] && [ -L \"$target\" ]; then probe=$(dirname -- \"$target\"); fi",
1962
+ "cursor=\"$probe\"",
1963
+ "while [ ! -e \"$cursor\" ] && [ ! -L \"$cursor\" ]; do",
1964
+ " parent=$(dirname -- \"$cursor\")",
1965
+ " if [ \"$parent\" = \"$cursor\" ]; then break; fi",
1966
+ " base=$(basename -- \"$cursor\")",
1967
+ " suffix=\"/$base$suffix\"",
1968
+ " cursor=\"$parent\"",
1969
+ "done",
1970
+ "canonical=$(readlink -f -- \"$cursor\")",
1971
+ "printf \"%s%s\\n\" \"$canonical\" \"$suffix\""
1972
+ ].join("\n");
1973
+ const canonical = (await this.runCommand(script, { args: [params.containerPath, params.allowFinalSymlinkForUnlink ? "1" : "0"] })).stdout.toString("utf8").trim();
1974
+ if (!canonical.startsWith("/")) throw new Error(`Failed to resolve canonical sandbox path: ${params.containerPath}`);
1975
+ return normalizeContainerPath$1(canonical);
1976
+ }
1977
+ };
1978
+ //#endregion
1979
+ //#region src/agents/sandbox/fs-bridge-shell-command-plans.ts
1980
+ function buildStatPlan(target, anchoredTarget) {
1981
+ return {
1982
+ checks: [{
1983
+ target,
1984
+ options: { action: "stat files" }
1985
+ }],
1986
+ script: "set -eu\ncd -- \"$1\"\nstat -c \"%F|%s|%Y\" -- \"$2\"",
1987
+ args: [anchoredTarget.canonicalParentPath, anchoredTarget.basename],
1988
+ allowFailure: true
1989
+ };
1990
+ }
1991
+ //#endregion
1992
+ //#region src/agents/sandbox/fs-paths.ts
1993
+ function parseSandboxBindMount(spec) {
1994
+ const trimmed = spec.trim();
1995
+ if (!trimmed) return null;
1996
+ const parsed = splitSandboxBindSpec(trimmed);
1997
+ if (!parsed) return null;
1998
+ const hostToken = parsed.host.trim();
1999
+ const containerToken = parsed.container.trim();
2000
+ if (!hostToken || !containerToken || !path.posix.isAbsolute(containerToken)) return null;
2001
+ const optionsToken = parsed.options.trim().toLowerCase();
2002
+ const writable = !(optionsToken ? optionsToken.split(",").map((entry) => entry.trim()).filter(Boolean) : []).includes("ro");
2003
+ return {
2004
+ hostRoot: path.resolve(hostToken),
2005
+ containerRoot: normalizeContainerPath$1(containerToken),
2006
+ writable
2007
+ };
2008
+ }
2009
+ function buildSandboxFsMounts(sandbox) {
2010
+ const mounts = [{
2011
+ hostRoot: path.resolve(sandbox.workspaceDir),
2012
+ containerRoot: normalizeContainerPath$1(sandbox.containerWorkdir),
2013
+ writable: sandbox.workspaceAccess === "rw",
2014
+ source: "workspace"
2015
+ }];
2016
+ if (sandbox.workspaceAccess !== "none" && path.resolve(sandbox.agentWorkspaceDir) !== path.resolve(sandbox.workspaceDir)) mounts.push({
2017
+ hostRoot: path.resolve(sandbox.agentWorkspaceDir),
2018
+ containerRoot: SANDBOX_AGENT_WORKSPACE_MOUNT,
2019
+ writable: sandbox.workspaceAccess === "rw",
2020
+ source: "agent"
2021
+ });
2022
+ for (const bind of sandbox.docker.binds ?? []) {
2023
+ const parsed = parseSandboxBindMount(bind);
2024
+ if (!parsed) continue;
2025
+ mounts.push({
2026
+ hostRoot: parsed.hostRoot,
2027
+ containerRoot: parsed.containerRoot,
2028
+ writable: parsed.writable,
2029
+ source: "bind"
2030
+ });
2031
+ }
2032
+ return dedupeMounts(mounts);
2033
+ }
2034
+ function resolveSandboxFsPathWithMounts(params) {
2035
+ const mountsByContainer = [...params.mounts].toSorted(compareMountsByContainerPath);
2036
+ const mountsByHost = [...params.mounts].toSorted(compareMountsByHostPath);
2037
+ const input = params.filePath;
2038
+ const inputPosix = normalizePosixInput(input);
2039
+ if (path.posix.isAbsolute(inputPosix)) {
2040
+ const containerMount = findMountByContainerPath(mountsByContainer, inputPosix);
2041
+ if (containerMount) {
2042
+ const rel = path.posix.relative(containerMount.containerRoot, inputPosix);
2043
+ return {
2044
+ hostPath: rel ? path.resolve(containerMount.hostRoot, ...toHostSegments(rel)) : containerMount.hostRoot,
2045
+ containerPath: rel ? path.posix.join(containerMount.containerRoot, rel) : containerMount.containerRoot,
2046
+ relativePath: toDisplayRelative({
2047
+ containerPath: rel ? path.posix.join(containerMount.containerRoot, rel) : containerMount.containerRoot,
2048
+ defaultContainerRoot: params.defaultContainerRoot
2049
+ }),
2050
+ writable: containerMount.writable
2051
+ };
2052
+ }
2053
+ }
2054
+ const hostResolved = resolveSandboxInputPath(input, params.cwd);
2055
+ const hostMount = findMountByHostPath(mountsByHost, hostResolved);
2056
+ if (hostMount) {
2057
+ const relHost = path.relative(hostMount.hostRoot, hostResolved);
2058
+ const relPosix = relHost ? relHost.split(path.sep).join(path.posix.sep) : "";
2059
+ const containerPath = relPosix ? path.posix.join(hostMount.containerRoot, relPosix) : hostMount.containerRoot;
2060
+ return {
2061
+ hostPath: hostResolved,
2062
+ containerPath,
2063
+ relativePath: toDisplayRelative({
2064
+ containerPath,
2065
+ defaultContainerRoot: params.defaultContainerRoot
2066
+ }),
2067
+ writable: hostMount.writable
2068
+ };
2069
+ }
2070
+ resolveSandboxPath({
2071
+ filePath: input,
2072
+ cwd: params.cwd,
2073
+ root: params.defaultWorkspaceRoot
2074
+ });
2075
+ throw new Error(`Path escapes sandbox root (${params.defaultWorkspaceRoot}): ${input}`);
2076
+ }
2077
+ function compareMountsByContainerPath(a, b) {
2078
+ const byLength = b.containerRoot.length - a.containerRoot.length;
2079
+ if (byLength !== 0) return byLength;
2080
+ return mountSourcePriority(b.source) - mountSourcePriority(a.source);
2081
+ }
2082
+ function compareMountsByHostPath(a, b) {
2083
+ const byLength = b.hostRoot.length - a.hostRoot.length;
2084
+ if (byLength !== 0) return byLength;
2085
+ return mountSourcePriority(b.source) - mountSourcePriority(a.source);
2086
+ }
2087
+ function mountSourcePriority(source) {
2088
+ if (source === "bind") return 2;
2089
+ if (source === "agent") return 1;
2090
+ return 0;
2091
+ }
2092
+ function dedupeMounts(mounts) {
2093
+ const seen = /* @__PURE__ */ new Set();
2094
+ const deduped = [];
2095
+ for (const mount of mounts) {
2096
+ const key = `${mount.hostRoot}=>${mount.containerRoot}`;
2097
+ if (seen.has(key)) continue;
2098
+ seen.add(key);
2099
+ deduped.push(mount);
2100
+ }
2101
+ return deduped;
2102
+ }
2103
+ function findMountByContainerPath(mounts, target) {
2104
+ for (const mount of mounts) if (isPathInsideContainerRoot(mount.containerRoot, target)) return mount;
2105
+ return null;
2106
+ }
2107
+ function findMountByHostPath(mounts, target) {
2108
+ for (const mount of mounts) if (isPathInsideHost(mount.hostRoot, target)) return mount;
2109
+ return null;
2110
+ }
2111
+ function isPathInsideHost(root, target) {
2112
+ const canonicalRoot = resolveSandboxHostPathViaExistingAncestor(path.resolve(root));
2113
+ const resolvedTarget = path.resolve(target);
2114
+ const canonicalTargetParent = resolveSandboxHostPathViaExistingAncestor(path.dirname(resolvedTarget));
2115
+ const canonicalTarget = path.resolve(canonicalTargetParent, path.basename(resolvedTarget));
2116
+ const rel = path.relative(canonicalRoot, canonicalTarget);
2117
+ if (!rel) return true;
2118
+ return !(rel.startsWith("..") || path.isAbsolute(rel));
2119
+ }
2120
+ function toHostSegments(relativePosix) {
2121
+ return relativePosix.split("/").filter(Boolean);
2122
+ }
2123
+ function toDisplayRelative(params) {
2124
+ const rel = path.posix.relative(params.defaultContainerRoot, params.containerPath);
2125
+ if (!rel) return "";
2126
+ if (!rel.startsWith("..") && !path.posix.isAbsolute(rel)) return rel;
2127
+ return params.containerPath;
2128
+ }
2129
+ function normalizePosixInput(value) {
2130
+ return value.replace(/\\/g, "/").trim();
2131
+ }
2132
+ //#endregion
2133
+ //#region src/agents/sandbox/fs-bridge.ts
2134
+ function createSandboxFsBridge(params) {
2135
+ return new SandboxFsBridgeImpl(params.sandbox);
2136
+ }
2137
+ var SandboxFsBridgeImpl = class {
2138
+ constructor(sandbox) {
2139
+ this.sandbox = sandbox;
2140
+ this.mounts = buildSandboxFsMounts(sandbox);
2141
+ this.pathGuard = new SandboxFsPathGuard({
2142
+ mountsByContainer: [...this.mounts].toSorted((a, b) => b.containerRoot.length - a.containerRoot.length),
2143
+ runCommand: (script, options) => this.runCommand(script, options)
2144
+ });
2145
+ }
2146
+ resolvePath(params) {
2147
+ const target = this.resolveResolvedPath(params);
2148
+ return {
2149
+ hostPath: target.hostPath,
2150
+ relativePath: target.relativePath,
2151
+ containerPath: target.containerPath
2152
+ };
2153
+ }
2154
+ async readFile(params) {
2155
+ const target = this.resolveResolvedPath(params);
2156
+ return this.readPinnedFile(target);
2157
+ }
2158
+ async writeFile(params) {
2159
+ const target = this.resolveResolvedPath(params);
2160
+ this.ensureWriteAccess(target, "write files");
2161
+ const writeCheck = {
2162
+ target,
2163
+ options: {
2164
+ action: "write files",
2165
+ requireWritable: true
2166
+ }
2167
+ };
2168
+ await this.pathGuard.assertPathSafety(target, writeCheck.options);
2169
+ const buffer = Buffer.isBuffer(params.data) ? params.data : Buffer.from(params.data, params.encoding ?? "utf8");
2170
+ const pinnedWriteTarget = await this.pathGuard.resolveAnchoredPinnedEntry(target, "write files");
2171
+ await this.runCheckedCommand({
2172
+ ...buildPinnedWritePlan({
2173
+ check: writeCheck,
2174
+ pinned: pinnedWriteTarget,
2175
+ mkdir: params.mkdir !== false
2176
+ }),
2177
+ stdin: buffer,
2178
+ signal: params.signal
2179
+ });
2180
+ }
2181
+ async mkdirp(params) {
2182
+ const target = this.resolveResolvedPath(params);
2183
+ this.ensureWriteAccess(target, "create directories");
2184
+ const mkdirCheck = {
2185
+ target,
2186
+ options: {
2187
+ action: "create directories",
2188
+ requireWritable: true,
2189
+ allowedType: "directory"
2190
+ }
2191
+ };
2192
+ await this.runCheckedCommand({
2193
+ ...buildPinnedMkdirpPlan({
2194
+ check: mkdirCheck,
2195
+ pinned: this.pathGuard.resolvePinnedDirectoryEntry(target, "create directories")
2196
+ }),
2197
+ signal: params.signal
2198
+ });
2199
+ }
2200
+ async remove(params) {
2201
+ const target = this.resolveResolvedPath(params);
2202
+ this.ensureWriteAccess(target, "remove files");
2203
+ const removeCheck = {
2204
+ target,
2205
+ options: {
2206
+ action: "remove files",
2207
+ requireWritable: true
2208
+ }
2209
+ };
2210
+ await this.runCheckedCommand({
2211
+ ...buildPinnedRemovePlan({
2212
+ check: removeCheck,
2213
+ pinned: this.pathGuard.resolvePinnedEntry(target, "remove files"),
2214
+ recursive: params.recursive,
2215
+ force: params.force
2216
+ }),
2217
+ signal: params.signal
2218
+ });
2219
+ }
2220
+ async rename(params) {
2221
+ const from = this.resolveResolvedPath({
2222
+ filePath: params.from,
2223
+ cwd: params.cwd
2224
+ });
2225
+ const to = this.resolveResolvedPath({
2226
+ filePath: params.to,
2227
+ cwd: params.cwd
2228
+ });
2229
+ this.ensureWriteAccess(from, "rename files");
2230
+ this.ensureWriteAccess(to, "rename files");
2231
+ const fromCheck = {
2232
+ target: from,
2233
+ options: {
2234
+ action: "rename files",
2235
+ requireWritable: true
2236
+ }
2237
+ };
2238
+ const toCheck = {
2239
+ target: to,
2240
+ options: {
2241
+ action: "rename files",
2242
+ requireWritable: true
2243
+ }
2244
+ };
2245
+ await this.runCheckedCommand({
2246
+ ...buildPinnedRenamePlan({
2247
+ fromCheck,
2248
+ toCheck,
2249
+ from: this.pathGuard.resolvePinnedEntry(from, "rename files"),
2250
+ to: this.pathGuard.resolvePinnedEntry(to, "rename files")
2251
+ }),
2252
+ signal: params.signal
2253
+ });
2254
+ }
2255
+ async stat(params) {
2256
+ const target = this.resolveResolvedPath(params);
2257
+ const anchoredTarget = await this.pathGuard.resolveAnchoredSandboxEntry(target, "stat files");
2258
+ const result = await this.runPlannedCommand(buildStatPlan(target, anchoredTarget), params.signal);
2259
+ if (result.code !== 0) {
2260
+ const stderr = result.stderr.toString("utf8");
2261
+ if (stderr.includes("No such file or directory")) return null;
2262
+ const message = stderr.trim() || `stat failed with code ${result.code}`;
2263
+ throw new Error(`stat failed for ${target.containerPath}: ${message}`);
2264
+ }
2265
+ const [typeRaw, sizeRaw, mtimeRaw] = result.stdout.toString("utf8").trim().split("|");
2266
+ const size = Number.parseInt(sizeRaw ?? "0", 10);
2267
+ const mtime = Number.parseInt(mtimeRaw ?? "0", 10) * 1e3;
2268
+ return {
2269
+ type: coerceStatType(typeRaw),
2270
+ size: Number.isFinite(size) ? size : 0,
2271
+ mtimeMs: Number.isFinite(mtime) ? mtime : 0
2272
+ };
2273
+ }
2274
+ async runCommand(script, options = {}) {
2275
+ const backend = this.sandbox.backend;
2276
+ if (backend) return await backend.runShellCommand({
2277
+ script,
2278
+ args: options.args,
2279
+ stdin: options.stdin,
2280
+ allowFailure: options.allowFailure,
2281
+ signal: options.signal
2282
+ });
2283
+ return await runDockerSandboxShellCommand({
2284
+ containerName: this.sandbox.containerName,
2285
+ script,
2286
+ args: options.args,
2287
+ stdin: options.stdin,
2288
+ allowFailure: options.allowFailure,
2289
+ signal: options.signal
2290
+ });
2291
+ }
2292
+ async readPinnedFile(target) {
2293
+ const opened = await this.pathGuard.openReadableFile(target);
2294
+ try {
2295
+ return fsSync.readFileSync(opened.fd);
2296
+ } finally {
2297
+ fsSync.closeSync(opened.fd);
2298
+ }
2299
+ }
2300
+ async runCheckedCommand(plan) {
2301
+ await this.pathGuard.assertPathChecks(plan.checks);
2302
+ if (plan.recheckBeforeCommand) await this.pathGuard.assertPathChecks(plan.checks);
2303
+ return await this.runCommand(plan.script, {
2304
+ args: plan.args,
2305
+ stdin: plan.stdin,
2306
+ allowFailure: plan.allowFailure,
2307
+ signal: plan.signal
2308
+ });
2309
+ }
2310
+ async runPlannedCommand(plan, signal) {
2311
+ return await this.runCheckedCommand({
2312
+ ...plan,
2313
+ signal
2314
+ });
2315
+ }
2316
+ ensureWriteAccess(target, action) {
2317
+ if (!allowsWrites(this.sandbox.workspaceAccess) || !target.writable) throw new Error(`Sandbox path is read-only; cannot ${action}: ${target.containerPath}`);
2318
+ }
2319
+ resolveResolvedPath(params) {
2320
+ return resolveSandboxFsPathWithMounts({
2321
+ filePath: params.filePath,
2322
+ cwd: params.cwd ?? this.sandbox.workspaceDir,
2323
+ defaultWorkspaceRoot: this.sandbox.workspaceDir,
2324
+ defaultContainerRoot: this.sandbox.containerWorkdir,
2325
+ mounts: this.mounts
2326
+ });
2327
+ }
2328
+ };
2329
+ function allowsWrites(access) {
2330
+ return access === "rw";
2331
+ }
2332
+ function coerceStatType(typeRaw) {
2333
+ if (!typeRaw) return "other";
2334
+ const normalized = typeRaw.trim().toLowerCase();
2335
+ if (normalized.includes("directory")) return "directory";
2336
+ if (normalized.includes("file")) return "file";
2337
+ return "other";
2338
+ }
2339
+ //#endregion
2340
+ //#region src/agents/sandbox/prune.ts
2341
+ let lastPruneAtMs = 0;
2342
+ function shouldPruneSandboxEntry(cfg, now, entry) {
2343
+ const idleHours = cfg.prune.idleHours;
2344
+ const maxAgeDays = cfg.prune.maxAgeDays;
2345
+ if (idleHours === 0 && maxAgeDays === 0) return false;
2346
+ const idleMs = now - entry.lastUsedAtMs;
2347
+ const ageMs = now - entry.createdAtMs;
2348
+ return idleHours > 0 && idleMs > idleHours * 60 * 60 * 1e3 || maxAgeDays > 0 && ageMs > maxAgeDays * 24 * 60 * 60 * 1e3;
2349
+ }
2350
+ async function pruneSandboxRegistryEntries(params) {
2351
+ const now = Date.now();
2352
+ if (params.cfg.prune.idleHours === 0 && params.cfg.prune.maxAgeDays === 0) return;
2353
+ const registry = await params.read();
2354
+ for (const entry of registry.entries) {
2355
+ if (!shouldPruneSandboxEntry(params.cfg, now, entry)) continue;
2356
+ try {
2357
+ await params.removeRuntime(entry);
2358
+ } catch {} finally {
2359
+ await params.remove(entry.containerName);
2360
+ await params.onRemoved?.(entry);
2361
+ }
2362
+ }
2363
+ }
2364
+ async function pruneSandboxContainers(cfg) {
2365
+ const config = loadConfig();
2366
+ await pruneSandboxRegistryEntries({
2367
+ cfg,
2368
+ read: readRegistry,
2369
+ remove: removeRegistryEntry,
2370
+ removeRuntime: async (entry) => {
2371
+ await getSandboxBackendManager(entry.backendId ?? "docker")?.removeRuntime({
2372
+ entry,
2373
+ config
2374
+ });
2375
+ }
2376
+ });
2377
+ }
2378
+ async function pruneSandboxBrowsers(cfg) {
2379
+ const config = loadConfig();
2380
+ await pruneSandboxRegistryEntries({
2381
+ cfg,
2382
+ read: readBrowserRegistry,
2383
+ remove: removeBrowserRegistryEntry,
2384
+ removeRuntime: async (entry) => {
2385
+ await dockerSandboxBackendManager.removeRuntime({
2386
+ entry: {
2387
+ ...entry,
2388
+ backendId: "docker",
2389
+ runtimeLabel: entry.containerName,
2390
+ configLabelKind: "Image"
2391
+ },
2392
+ config
2393
+ });
2394
+ },
2395
+ onRemoved: async (entry) => {
2396
+ const bridge = BROWSER_BRIDGES.get(entry.sessionKey);
2397
+ if (bridge?.containerName === entry.containerName) {
2398
+ await stopBrowserBridgeServer(bridge.bridge.server).catch(() => void 0);
2399
+ BROWSER_BRIDGES.delete(entry.sessionKey);
2400
+ }
2401
+ }
2402
+ });
2403
+ }
2404
+ async function maybePruneSandboxes(cfg) {
2405
+ const now = Date.now();
2406
+ if (now - lastPruneAtMs < 300 * 1e3) return;
2407
+ lastPruneAtMs = now;
2408
+ try {
2409
+ await pruneSandboxContainers(cfg);
2410
+ await pruneSandboxBrowsers(cfg);
2411
+ } catch (error) {
2412
+ const message = error instanceof Error ? error.message : typeof error === "string" ? error : JSON.stringify(error);
2413
+ defaultRuntime.error?.(`Sandbox prune failed: ${message ?? "unknown error"}`);
2414
+ }
2415
+ }
2416
+ //#endregion
2417
+ //#region src/agents/sandbox/workspace.ts
2418
+ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
2419
+ await fs.mkdir(workspaceDir, { recursive: true });
2420
+ if (seedFrom) {
2421
+ const seed = resolveUserPath(seedFrom);
2422
+ const files = [
2423
+ DEFAULT_AGENTS_FILENAME,
2424
+ DEFAULT_SOUL_FILENAME,
2425
+ DEFAULT_TOOLS_FILENAME,
2426
+ DEFAULT_IDENTITY_FILENAME,
2427
+ DEFAULT_USER_FILENAME,
2428
+ DEFAULT_BOOTSTRAP_FILENAME,
2429
+ DEFAULT_HEARTBEAT_FILENAME
2430
+ ];
2431
+ for (const name of files) {
2432
+ const src = path.join(seed, name);
2433
+ const dest = path.join(workspaceDir, name);
2434
+ try {
2435
+ await fs.access(dest);
2436
+ } catch {
2437
+ try {
2438
+ const opened = await openBoundaryFile({
2439
+ absolutePath: src,
2440
+ rootPath: seed,
2441
+ boundaryLabel: "sandbox seed workspace"
2442
+ });
2443
+ if (!opened.ok) continue;
2444
+ try {
2445
+ const content = fsSync.readFileSync(opened.fd, "utf-8");
2446
+ await fs.writeFile(dest, content, {
2447
+ encoding: "utf-8",
2448
+ flag: "wx"
2449
+ });
2450
+ } finally {
2451
+ fsSync.closeSync(opened.fd);
2452
+ }
2453
+ } catch {}
2454
+ }
2455
+ }
2456
+ }
2457
+ await ensureAgentWorkspace({
2458
+ dir: workspaceDir,
2459
+ ensureBootstrapFiles: !skipBootstrap
2460
+ });
2461
+ }
2462
+ //#endregion
2463
+ //#region src/agents/sandbox/context.ts
2464
+ async function ensureSandboxWorkspaceLayout(params) {
2465
+ const { cfg, rawSessionKey } = params;
2466
+ const agentWorkspaceDir = resolveUserPath(params.workspaceDir?.trim() || DEFAULT_AGENT_WORKSPACE_DIR);
2467
+ const workspaceRoot = resolveUserPath(cfg.workspaceRoot);
2468
+ const scopeKey = resolveSandboxScopeKey(cfg.scope, rawSessionKey);
2469
+ const sandboxWorkspaceDir = cfg.scope === "shared" ? workspaceRoot : resolveSandboxWorkspaceDir(workspaceRoot, scopeKey);
2470
+ const workspaceDir = cfg.workspaceAccess === "rw" ? agentWorkspaceDir : sandboxWorkspaceDir;
2471
+ if (workspaceDir === sandboxWorkspaceDir) {
2472
+ await ensureSandboxWorkspace(sandboxWorkspaceDir, agentWorkspaceDir, params.config?.agents?.defaults?.skipBootstrap);
2473
+ if (cfg.workspaceAccess !== "rw") try {
2474
+ await syncSkillsToWorkspace({
2475
+ sourceWorkspaceDir: agentWorkspaceDir,
2476
+ targetWorkspaceDir: sandboxWorkspaceDir,
2477
+ config: params.config
2478
+ });
2479
+ } catch (error) {
2480
+ const message = error instanceof Error ? error.message : JSON.stringify(error);
2481
+ defaultRuntime.error?.(`Sandbox skill sync failed: ${message}`);
2482
+ }
2483
+ } else await fs.mkdir(workspaceDir, { recursive: true });
2484
+ return {
2485
+ agentWorkspaceDir,
2486
+ scopeKey,
2487
+ sandboxWorkspaceDir,
2488
+ workspaceDir
2489
+ };
2490
+ }
2491
+ async function resolveSandboxDockerUser(params) {
2492
+ if (params.docker.user?.trim()) return params.docker;
2493
+ const stat = params.stat ?? ((workspaceDir) => fs.stat(workspaceDir));
2494
+ try {
2495
+ const workspaceStat = await stat(params.workspaceDir);
2496
+ const uid = Number.isInteger(workspaceStat.uid) ? workspaceStat.uid : null;
2497
+ const gid = Number.isInteger(workspaceStat.gid) ? workspaceStat.gid : null;
2498
+ if (uid === null || gid === null || uid < 0 || gid < 0) return params.docker;
2499
+ return {
2500
+ ...params.docker,
2501
+ user: `${uid}:${gid}`
2502
+ };
2503
+ } catch {
2504
+ return params.docker;
2505
+ }
2506
+ }
2507
+ function resolveSandboxSession(params) {
2508
+ const rawSessionKey = params.sessionKey?.trim();
2509
+ if (!rawSessionKey) return null;
2510
+ const runtime = resolveSandboxRuntimeStatus({
2511
+ cfg: params.config,
2512
+ sessionKey: rawSessionKey
2513
+ });
2514
+ if (!runtime.sandboxed) return null;
2515
+ return {
2516
+ rawSessionKey,
2517
+ runtime,
2518
+ cfg: resolveSandboxConfigForAgent(params.config, runtime.agentId)
2519
+ };
2520
+ }
2521
+ async function resolveSandboxContext(params) {
2522
+ const resolved = resolveSandboxSession(params);
2523
+ if (!resolved) return null;
2524
+ const { rawSessionKey, cfg } = resolved;
2525
+ await maybePruneSandboxes(cfg);
2526
+ const { agentWorkspaceDir, scopeKey, workspaceDir } = await ensureSandboxWorkspaceLayout({
2527
+ cfg,
2528
+ rawSessionKey,
2529
+ config: params.config,
2530
+ workspaceDir: params.workspaceDir
2531
+ });
2532
+ const docker = await resolveSandboxDockerUser({
2533
+ docker: cfg.docker,
2534
+ workspaceDir
2535
+ });
2536
+ const resolvedCfg = docker === cfg.docker ? cfg : {
2537
+ ...cfg,
2538
+ docker
2539
+ };
2540
+ const backend = await requireSandboxBackendFactory(resolvedCfg.backend)({
2541
+ sessionKey: rawSessionKey,
2542
+ scopeKey,
2543
+ workspaceDir,
2544
+ agentWorkspaceDir,
2545
+ cfg: resolvedCfg
2546
+ });
2547
+ await updateRegistry({
2548
+ containerName: backend.runtimeId,
2549
+ backendId: backend.id,
2550
+ runtimeLabel: backend.runtimeLabel,
2551
+ sessionKey: scopeKey,
2552
+ createdAtMs: Date.now(),
2553
+ lastUsedAtMs: Date.now(),
2554
+ image: backend.configLabel ?? resolvedCfg.docker.image,
2555
+ configLabelKind: backend.configLabelKind ?? "Image"
2556
+ });
2557
+ const evaluateEnabled = params.config?.browser?.evaluateEnabled ?? DEFAULT_BROWSER_EVALUATE_ENABLED;
2558
+ const bridgeAuth = cfg.browser.enabled ? await (async () => {
2559
+ const cfgForAuth = params.config ?? loadConfig();
2560
+ let browserAuth = resolveBrowserControlAuth(cfgForAuth);
2561
+ try {
2562
+ browserAuth = (await ensureBrowserControlAuth({ cfg: cfgForAuth })).auth;
2563
+ } catch (error) {
2564
+ const message = error instanceof Error ? error.message : JSON.stringify(error);
2565
+ defaultRuntime.error?.(`Sandbox browser auth ensure failed: ${message}`);
2566
+ }
2567
+ return browserAuth;
2568
+ })() : void 0;
2569
+ if (resolvedCfg.browser.enabled && backend.capabilities?.browser !== true) throw new Error(`Sandbox backend "${resolvedCfg.backend}" does not support browser sandboxes yet.`);
2570
+ const browser = resolvedCfg.browser.enabled && backend.capabilities?.browser === true ? await ensureSandboxBrowser({
2571
+ scopeKey,
2572
+ workspaceDir,
2573
+ agentWorkspaceDir,
2574
+ cfg: resolvedCfg,
2575
+ evaluateEnabled,
2576
+ bridgeAuth
2577
+ }) : null;
2578
+ const sandboxContext = {
2579
+ enabled: true,
2580
+ backendId: backend.id,
2581
+ sessionKey: rawSessionKey,
2582
+ workspaceDir,
2583
+ agentWorkspaceDir,
2584
+ workspaceAccess: resolvedCfg.workspaceAccess,
2585
+ runtimeId: backend.runtimeId,
2586
+ runtimeLabel: backend.runtimeLabel,
2587
+ containerName: backend.runtimeId,
2588
+ containerWorkdir: backend.workdir,
2589
+ docker: resolvedCfg.docker,
2590
+ tools: resolvedCfg.tools,
2591
+ browserAllowHostControl: resolvedCfg.browser.allowHostControl,
2592
+ browser: browser ?? void 0,
2593
+ backend
2594
+ };
2595
+ sandboxContext.fsBridge = backend.createFsBridge?.({ sandbox: sandboxContext }) ?? createSandboxFsBridge({ sandbox: sandboxContext });
2596
+ return sandboxContext;
2597
+ }
2598
+ async function ensureSandboxWorkspaceForSession(params) {
2599
+ const resolved = resolveSandboxSession(params);
2600
+ if (!resolved) return null;
2601
+ const { rawSessionKey, cfg } = resolved;
2602
+ const { workspaceDir } = await ensureSandboxWorkspaceLayout({
2603
+ cfg,
2604
+ rawSessionKey,
2605
+ config: params.config,
2606
+ workspaceDir: params.workspaceDir
2607
+ });
2608
+ return {
2609
+ workspaceDir,
2610
+ containerWorkdir: cfg.docker.workdir
2611
+ };
2612
+ }
2613
+ //#endregion
2614
+ //#region src/agents/sandbox/manage.ts
2615
+ async function listSandboxContainers() {
2616
+ const config = loadConfig();
2617
+ const registry = await readRegistry();
2618
+ const results = [];
2619
+ for (const entry of registry.entries) {
2620
+ const manager = getSandboxBackendManager(entry.backendId ?? "docker");
2621
+ if (!manager) {
2622
+ results.push({
2623
+ ...entry,
2624
+ running: false,
2625
+ imageMatch: true
2626
+ });
2627
+ continue;
2628
+ }
2629
+ const agentId = resolveSandboxAgentId(entry.sessionKey);
2630
+ const runtime = await manager.describeRuntime({
2631
+ entry,
2632
+ config,
2633
+ agentId
2634
+ });
2635
+ results.push({
2636
+ ...entry,
2637
+ image: runtime.actualConfigLabel ?? entry.image,
2638
+ running: runtime.running,
2639
+ imageMatch: runtime.configLabelMatch
2640
+ });
2641
+ }
2642
+ return results;
2643
+ }
2644
+ async function listSandboxBrowsers() {
2645
+ const config = loadConfig();
2646
+ const registry = await readBrowserRegistry();
2647
+ const results = [];
2648
+ for (const entry of registry.entries) {
2649
+ const agentId = resolveSandboxAgentId(entry.sessionKey);
2650
+ const runtime = await dockerSandboxBackendManager.describeRuntime({
2651
+ entry: {
2652
+ ...entry,
2653
+ backendId: "docker",
2654
+ runtimeLabel: entry.containerName,
2655
+ configLabelKind: "Image"
2656
+ },
2657
+ config,
2658
+ agentId
2659
+ });
2660
+ results.push({
2661
+ ...entry,
2662
+ image: runtime.actualConfigLabel ?? entry.image,
2663
+ running: runtime.running,
2664
+ imageMatch: runtime.configLabelMatch
2665
+ });
2666
+ }
2667
+ return results;
2668
+ }
2669
+ async function removeSandboxContainer(containerName) {
2670
+ const config = loadConfig();
2671
+ const entry = (await readRegistry()).entries.find((item) => item.containerName === containerName);
2672
+ if (entry) await getSandboxBackendManager(entry.backendId ?? "docker")?.removeRuntime({
2673
+ entry,
2674
+ config,
2675
+ agentId: resolveSandboxAgentId(entry.sessionKey)
2676
+ });
2677
+ await removeRegistryEntry(containerName);
2678
+ }
2679
+ async function removeSandboxBrowserContainer(containerName) {
2680
+ const config = loadConfig();
2681
+ const entry = (await readBrowserRegistry()).entries.find((item) => item.containerName === containerName);
2682
+ if (entry) await dockerSandboxBackendManager.removeRuntime({
2683
+ entry: {
2684
+ ...entry,
2685
+ backendId: "docker",
2686
+ runtimeLabel: entry.containerName,
2687
+ configLabelKind: "Image"
2688
+ },
2689
+ config
2690
+ });
2691
+ await removeBrowserRegistryEntry(containerName);
2692
+ for (const [sessionKey, bridge] of BROWSER_BRIDGES.entries()) if (bridge.containerName === containerName) {
2693
+ await stopBrowserBridgeServer(bridge.bridge.server).catch(() => void 0);
2694
+ BROWSER_BRIDGES.delete(sessionKey);
2695
+ }
2696
+ }
2697
+ //#endregion
2698
+ export { pad as A, resolveWritableRenameTargetsForBridge as C, clampWithDefault as D, chunkString as E, truncateMiddle as F, resolveSandboxWorkdir as M, resolveWorkdir as N, coerceEnv as O, sliceLogLines as P, resolveWritableRenameTargets as S, buildSandboxEnv as T, runSshSandboxCommand as _, ensureSandboxWorkspaceForSession as a, createRemoteShellSandboxFsBridge as b, getSandboxBackendManager as c, buildExecRemoteCommand as d, buildRemoteCommand as f, disposeSshSandboxSession as g, createSshSandboxSessionFromSettings as h, removeSandboxContainer as i, readEnvInt as j, deriveSessionName as k, registerSandboxBackend as l, createSshSandboxSessionFromConfigText as m, listSandboxContainers as n, resolveSandboxContext as o, buildSshSandboxArgv as p, removeSandboxBrowserContainer as r, getSandboxBackendFactory as s, listSandboxBrowsers as t, requireSandboxBackendFactory as u, shellEscape as v, buildDockerExecArgs as w, createWritableRenameTargetResolver as x, uploadDirectoryToSshTarget as y };