@mastra/core 1.6.0 → 1.7.0-alpha.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 (452) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/dist/agent/agent.d.ts +6 -0
  3. package/dist/agent/agent.d.ts.map +1 -1
  4. package/dist/agent/index.cjs +8 -8
  5. package/dist/agent/index.js +1 -1
  6. package/dist/{chunk-IHDE4CJV.js → chunk-6NRSTTAS.js} +80 -11
  7. package/dist/chunk-6NRSTTAS.js.map +1 -0
  8. package/dist/{chunk-4WG5K4CK.js → chunk-6RTFK6XW.js} +7 -7
  9. package/dist/{chunk-4WG5K4CK.js.map → chunk-6RTFK6XW.js.map} +1 -1
  10. package/dist/{chunk-AYHSPIT6.cjs → chunk-7UAJ6LMR.cjs} +820 -259
  11. package/dist/chunk-7UAJ6LMR.cjs.map +1 -0
  12. package/dist/{chunk-EEU5NHHU.js → chunk-DFCRXDVK.js} +3 -3
  13. package/dist/{chunk-EEU5NHHU.js.map → chunk-DFCRXDVK.js.map} +1 -1
  14. package/dist/{chunk-5K45E5VE.js → chunk-GPJGPARM.js} +3 -2
  15. package/dist/chunk-GPJGPARM.js.map +1 -0
  16. package/dist/{chunk-VJWRJWSC.cjs → chunk-HYU6AULN.cjs} +85 -15
  17. package/dist/chunk-HYU6AULN.cjs.map +1 -0
  18. package/dist/{chunk-DGS2KGDI.js → chunk-HZ33YLNC.js} +6 -5
  19. package/dist/chunk-HZ33YLNC.js.map +1 -0
  20. package/dist/{chunk-3U3XFMGJ.cjs → chunk-N435UBEN.cjs} +13 -8
  21. package/dist/chunk-N435UBEN.cjs.map +1 -0
  22. package/dist/{chunk-5VQPSWPG.cjs → chunk-NAUBU4SI.cjs} +48 -48
  23. package/dist/{chunk-5VQPSWPG.cjs.map → chunk-NAUBU4SI.cjs.map} +1 -1
  24. package/dist/{chunk-MWGGSA5Q.js → chunk-NHYSIYTD.js} +10 -5
  25. package/dist/chunk-NHYSIYTD.js.map +1 -0
  26. package/dist/{chunk-RZNHRIM7.cjs → chunk-OL4P6TXG.cjs} +5 -5
  27. package/dist/{chunk-RZNHRIM7.cjs.map → chunk-OL4P6TXG.cjs.map} +1 -1
  28. package/dist/{chunk-XWZAKKFT.cjs → chunk-S3JIVN4S.cjs} +14 -14
  29. package/dist/{chunk-XWZAKKFT.cjs.map → chunk-S3JIVN4S.cjs.map} +1 -1
  30. package/dist/{chunk-TVPANHLE.cjs → chunk-SBOHDNIZ.cjs} +3 -2
  31. package/dist/chunk-SBOHDNIZ.cjs.map +1 -0
  32. package/dist/{chunk-LNKS4TJ6.cjs → chunk-T4KRCLC3.cjs} +8 -7
  33. package/dist/chunk-T4KRCLC3.cjs.map +1 -0
  34. package/dist/{chunk-RHKNKJNM.js → chunk-WBVBORCZ.js} +4 -4
  35. package/dist/{chunk-RHKNKJNM.js.map → chunk-WBVBORCZ.js.map} +1 -1
  36. package/dist/{chunk-YM6245EM.js → chunk-WR5RUKVK.js} +3 -3
  37. package/dist/{chunk-YM6245EM.js.map → chunk-WR5RUKVK.js.map} +1 -1
  38. package/dist/{chunk-TL2TTA4X.cjs → chunk-YQG7NBPR.cjs} +9 -9
  39. package/dist/{chunk-TL2TTA4X.cjs.map → chunk-YQG7NBPR.cjs.map} +1 -1
  40. package/dist/{chunk-XB3DA67Q.js → chunk-ZSBM2SVU.js} +818 -259
  41. package/dist/chunk-ZSBM2SVU.js.map +1 -0
  42. package/dist/datasets/experiment/scorer.d.ts.map +1 -1
  43. package/dist/datasets/index.cjs +17 -17
  44. package/dist/datasets/index.js +2 -2
  45. package/dist/evals/index.cjs +20 -20
  46. package/dist/evals/index.js +3 -3
  47. package/dist/evals/scoreTraces/index.cjs +7 -6
  48. package/dist/evals/scoreTraces/index.cjs.map +1 -1
  49. package/dist/evals/scoreTraces/index.js +4 -3
  50. package/dist/evals/scoreTraces/index.js.map +1 -1
  51. package/dist/evals/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
  52. package/dist/harness/harness.d.ts +21 -1
  53. package/dist/harness/harness.d.ts.map +1 -1
  54. package/dist/harness/index.cjs +422 -5
  55. package/dist/harness/index.cjs.map +1 -1
  56. package/dist/harness/index.d.ts +2 -1
  57. package/dist/harness/index.d.ts.map +1 -1
  58. package/dist/harness/index.js +418 -3
  59. package/dist/harness/index.js.map +1 -1
  60. package/dist/harness/types.d.ts +151 -0
  61. package/dist/harness/types.d.ts.map +1 -1
  62. package/dist/index.cjs +2 -2
  63. package/dist/index.js +1 -1
  64. package/dist/loop/index.cjs +12 -12
  65. package/dist/loop/index.js +1 -1
  66. package/dist/loop/test-utils/tools.d.ts.map +1 -1
  67. package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
  68. package/dist/mastra/hooks.d.ts.map +1 -1
  69. package/dist/mastra/index.cjs +2 -2
  70. package/dist/mastra/index.js +1 -1
  71. package/dist/memory/index.cjs +14 -14
  72. package/dist/memory/index.js +1 -1
  73. package/dist/processor-provider/index.cjs +10 -10
  74. package/dist/processor-provider/index.js +1 -1
  75. package/dist/processors/index.cjs +45 -41
  76. package/dist/processors/index.js +1 -1
  77. package/dist/processors/processors/index.d.ts +1 -0
  78. package/dist/processors/processors/index.d.ts.map +1 -1
  79. package/dist/processors/processors/workspace-instructions.d.ts +50 -0
  80. package/dist/processors/processors/workspace-instructions.d.ts.map +1 -0
  81. package/dist/relevance/index.cjs +3 -3
  82. package/dist/relevance/index.js +1 -1
  83. package/dist/storage/constants.cjs +56 -56
  84. package/dist/storage/constants.d.ts.map +1 -1
  85. package/dist/storage/constants.js +1 -1
  86. package/dist/storage/index.cjs +160 -160
  87. package/dist/storage/index.js +2 -2
  88. package/dist/storage/types.d.ts +2 -0
  89. package/dist/storage/types.d.ts.map +1 -1
  90. package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts.map +1 -1
  91. package/dist/stream/index.cjs +8 -8
  92. package/dist/stream/index.js +1 -1
  93. package/dist/tool-loop-agent/index.cjs +4 -4
  94. package/dist/tool-loop-agent/index.js +1 -1
  95. package/dist/vector/index.cjs +7 -7
  96. package/dist/vector/index.js +1 -1
  97. package/dist/workflows/evented/index.cjs +10 -10
  98. package/dist/workflows/evented/index.js +1 -1
  99. package/dist/workflows/index.cjs +25 -25
  100. package/dist/workflows/index.js +1 -1
  101. package/dist/workspace/constants/index.d.ts +2 -0
  102. package/dist/workspace/constants/index.d.ts.map +1 -1
  103. package/dist/workspace/errors.d.ts +1 -1
  104. package/dist/workspace/errors.d.ts.map +1 -1
  105. package/dist/workspace/filesystem/composite-filesystem.d.ts +4 -1
  106. package/dist/workspace/filesystem/composite-filesystem.d.ts.map +1 -1
  107. package/dist/workspace/filesystem/file-write-lock.d.ts +35 -0
  108. package/dist/workspace/filesystem/file-write-lock.d.ts.map +1 -0
  109. package/dist/workspace/filesystem/filesystem.d.ts +5 -1
  110. package/dist/workspace/filesystem/filesystem.d.ts.map +1 -1
  111. package/dist/workspace/filesystem/index.d.ts +1 -0
  112. package/dist/workspace/filesystem/index.d.ts.map +1 -1
  113. package/dist/workspace/filesystem/local-filesystem.d.ts +17 -1
  114. package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
  115. package/dist/workspace/index.cjs +72 -64
  116. package/dist/workspace/index.d.ts +3 -2
  117. package/dist/workspace/index.d.ts.map +1 -1
  118. package/dist/workspace/index.js +1 -1
  119. package/dist/workspace/lifecycle.d.ts +1 -9
  120. package/dist/workspace/lifecycle.d.ts.map +1 -1
  121. package/dist/workspace/sandbox/index.d.ts +2 -0
  122. package/dist/workspace/sandbox/index.d.ts.map +1 -1
  123. package/dist/workspace/sandbox/local-process-manager.d.ts +18 -0
  124. package/dist/workspace/sandbox/local-process-manager.d.ts.map +1 -0
  125. package/dist/workspace/sandbox/local-sandbox.d.ts +49 -35
  126. package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
  127. package/dist/workspace/sandbox/mastra-sandbox.d.ts +45 -11
  128. package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -1
  129. package/dist/workspace/sandbox/native-sandbox/bubblewrap.d.ts +2 -3
  130. package/dist/workspace/sandbox/native-sandbox/bubblewrap.d.ts.map +1 -1
  131. package/dist/workspace/sandbox/native-sandbox/seatbelt.d.ts +2 -3
  132. package/dist/workspace/sandbox/native-sandbox/seatbelt.d.ts.map +1 -1
  133. package/dist/workspace/sandbox/native-sandbox/wrapper.d.ts +4 -5
  134. package/dist/workspace/sandbox/native-sandbox/wrapper.d.ts.map +1 -1
  135. package/dist/workspace/sandbox/process-manager/index.d.ts +4 -0
  136. package/dist/workspace/sandbox/process-manager/index.d.ts.map +1 -0
  137. package/dist/workspace/sandbox/process-manager/process-handle.d.ts +107 -0
  138. package/dist/workspace/sandbox/process-manager/process-handle.d.ts.map +1 -0
  139. package/dist/workspace/sandbox/process-manager/process-manager.d.ts +59 -0
  140. package/dist/workspace/sandbox/process-manager/process-manager.d.ts.map +1 -0
  141. package/dist/workspace/sandbox/process-manager/types.d.ts +24 -0
  142. package/dist/workspace/sandbox/process-manager/types.d.ts.map +1 -0
  143. package/dist/workspace/sandbox/sandbox.d.ts +38 -2
  144. package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
  145. package/dist/workspace/sandbox/types.d.ts +9 -2
  146. package/dist/workspace/sandbox/types.d.ts.map +1 -1
  147. package/dist/workspace/sandbox/utils.d.ts +7 -0
  148. package/dist/workspace/sandbox/utils.d.ts.map +1 -0
  149. package/dist/workspace/tools/execute-command.d.ts +53 -2
  150. package/dist/workspace/tools/execute-command.d.ts.map +1 -1
  151. package/dist/workspace/tools/get-process-output.d.ts +6 -0
  152. package/dist/workspace/tools/get-process-output.d.ts.map +1 -0
  153. package/dist/workspace/tools/index.d.ts +4 -1
  154. package/dist/workspace/tools/index.d.ts.map +1 -1
  155. package/dist/workspace/tools/kill-process.d.ts +4 -0
  156. package/dist/workspace/tools/kill-process.d.ts.map +1 -0
  157. package/dist/workspace/tools/output-helpers.d.ts +21 -0
  158. package/dist/workspace/tools/output-helpers.d.ts.map +1 -0
  159. package/dist/workspace/tools/tools.d.ts.map +1 -1
  160. package/dist/workspace/types.d.ts +31 -0
  161. package/dist/workspace/types.d.ts.map +1 -1
  162. package/dist/workspace/utils.d.ts +11 -0
  163. package/dist/workspace/utils.d.ts.map +1 -0
  164. package/dist/workspace/workspace.d.ts +36 -0
  165. package/dist/workspace/workspace.d.ts.map +1 -1
  166. package/package.json +2 -2
  167. package/dist/chunk-3U3XFMGJ.cjs.map +0 -1
  168. package/dist/chunk-5K45E5VE.js.map +0 -1
  169. package/dist/chunk-AYHSPIT6.cjs.map +0 -1
  170. package/dist/chunk-DGS2KGDI.js.map +0 -1
  171. package/dist/chunk-IHDE4CJV.js.map +0 -1
  172. package/dist/chunk-LNKS4TJ6.cjs.map +0 -1
  173. package/dist/chunk-MWGGSA5Q.js.map +0 -1
  174. package/dist/chunk-TVPANHLE.cjs.map +0 -1
  175. package/dist/chunk-VJWRJWSC.cjs.map +0 -1
  176. package/dist/chunk-XB3DA67Q.js.map +0 -1
  177. package/dist/docs/SKILL.md +0 -301
  178. package/dist/docs/assets/SOURCE_MAP.json +0 -1413
  179. package/dist/docs/references/docs-agents-adding-voice.md +0 -353
  180. package/dist/docs/references/docs-agents-agent-approval.md +0 -377
  181. package/dist/docs/references/docs-agents-agent-memory.md +0 -212
  182. package/dist/docs/references/docs-agents-guardrails.md +0 -382
  183. package/dist/docs/references/docs-agents-network-approval.md +0 -275
  184. package/dist/docs/references/docs-agents-networks.md +0 -290
  185. package/dist/docs/references/docs-agents-overview.md +0 -309
  186. package/dist/docs/references/docs-agents-processors.md +0 -632
  187. package/dist/docs/references/docs-agents-structured-output.md +0 -271
  188. package/dist/docs/references/docs-agents-using-tools.md +0 -214
  189. package/dist/docs/references/docs-evals-custom-scorers.md +0 -519
  190. package/dist/docs/references/docs-evals-overview.md +0 -146
  191. package/dist/docs/references/docs-evals-running-in-ci.md +0 -106
  192. package/dist/docs/references/docs-mcp-overview.md +0 -370
  193. package/dist/docs/references/docs-mcp-publishing-mcp-server.md +0 -95
  194. package/dist/docs/references/docs-memory-memory-processors.md +0 -316
  195. package/dist/docs/references/docs-memory-observational-memory.md +0 -246
  196. package/dist/docs/references/docs-memory-overview.md +0 -45
  197. package/dist/docs/references/docs-memory-semantic-recall.md +0 -272
  198. package/dist/docs/references/docs-memory-storage.md +0 -261
  199. package/dist/docs/references/docs-memory-working-memory.md +0 -400
  200. package/dist/docs/references/docs-observability-datasets-overview.md +0 -188
  201. package/dist/docs/references/docs-observability-datasets-running-experiments.md +0 -266
  202. package/dist/docs/references/docs-observability-logging.md +0 -99
  203. package/dist/docs/references/docs-observability-overview.md +0 -70
  204. package/dist/docs/references/docs-observability-tracing-bridges-otel.md +0 -209
  205. package/dist/docs/references/docs-observability-tracing-exporters-arize.md +0 -274
  206. package/dist/docs/references/docs-observability-tracing-exporters-braintrust.md +0 -111
  207. package/dist/docs/references/docs-observability-tracing-exporters-cloud.md +0 -129
  208. package/dist/docs/references/docs-observability-tracing-exporters-datadog.md +0 -187
  209. package/dist/docs/references/docs-observability-tracing-exporters-default.md +0 -211
  210. package/dist/docs/references/docs-observability-tracing-exporters-laminar.md +0 -100
  211. package/dist/docs/references/docs-observability-tracing-exporters-langfuse.md +0 -217
  212. package/dist/docs/references/docs-observability-tracing-exporters-langsmith.md +0 -202
  213. package/dist/docs/references/docs-observability-tracing-exporters-otel.md +0 -479
  214. package/dist/docs/references/docs-observability-tracing-exporters-posthog.md +0 -148
  215. package/dist/docs/references/docs-observability-tracing-overview.md +0 -1114
  216. package/dist/docs/references/docs-rag-chunking-and-embedding.md +0 -183
  217. package/dist/docs/references/docs-rag-graph-rag.md +0 -215
  218. package/dist/docs/references/docs-rag-overview.md +0 -72
  219. package/dist/docs/references/docs-rag-retrieval.md +0 -521
  220. package/dist/docs/references/docs-rag-vector-databases.md +0 -648
  221. package/dist/docs/references/docs-server-auth-auth0.md +0 -222
  222. package/dist/docs/references/docs-server-auth-clerk.md +0 -132
  223. package/dist/docs/references/docs-server-auth-composite-auth.md +0 -234
  224. package/dist/docs/references/docs-server-auth-custom-auth-provider.md +0 -513
  225. package/dist/docs/references/docs-server-auth-firebase.md +0 -272
  226. package/dist/docs/references/docs-server-auth-jwt.md +0 -110
  227. package/dist/docs/references/docs-server-auth-simple-auth.md +0 -178
  228. package/dist/docs/references/docs-server-auth-supabase.md +0 -117
  229. package/dist/docs/references/docs-server-auth-workos.md +0 -190
  230. package/dist/docs/references/docs-server-custom-adapters.md +0 -374
  231. package/dist/docs/references/docs-server-custom-api-routes.md +0 -267
  232. package/dist/docs/references/docs-server-mastra-client.md +0 -243
  233. package/dist/docs/references/docs-server-mastra-server.md +0 -71
  234. package/dist/docs/references/docs-server-middleware.md +0 -228
  235. package/dist/docs/references/docs-server-request-context.md +0 -478
  236. package/dist/docs/references/docs-streaming-events.md +0 -247
  237. package/dist/docs/references/docs-streaming-tool-streaming.md +0 -178
  238. package/dist/docs/references/docs-streaming-workflow-streaming.md +0 -109
  239. package/dist/docs/references/docs-voice-overview.md +0 -979
  240. package/dist/docs/references/docs-voice-speech-to-speech.md +0 -103
  241. package/dist/docs/references/docs-voice-speech-to-text.md +0 -80
  242. package/dist/docs/references/docs-voice-text-to-speech.md +0 -84
  243. package/dist/docs/references/docs-workflows-agents-and-tools.md +0 -170
  244. package/dist/docs/references/docs-workflows-control-flow.md +0 -823
  245. package/dist/docs/references/docs-workflows-error-handling.md +0 -360
  246. package/dist/docs/references/docs-workflows-human-in-the-loop.md +0 -213
  247. package/dist/docs/references/docs-workflows-overview.md +0 -372
  248. package/dist/docs/references/docs-workflows-snapshots.md +0 -238
  249. package/dist/docs/references/docs-workflows-suspend-and-resume.md +0 -205
  250. package/dist/docs/references/docs-workflows-time-travel.md +0 -309
  251. package/dist/docs/references/docs-workflows-workflow-state.md +0 -181
  252. package/dist/docs/references/docs-workspace-filesystem.md +0 -162
  253. package/dist/docs/references/docs-workspace-overview.md +0 -239
  254. package/dist/docs/references/docs-workspace-sandbox.md +0 -63
  255. package/dist/docs/references/docs-workspace-search.md +0 -219
  256. package/dist/docs/references/docs-workspace-skills.md +0 -126
  257. package/dist/docs/references/guides-agent-frameworks-ai-sdk.md +0 -140
  258. package/dist/docs/references/reference-agents-agent.md +0 -142
  259. package/dist/docs/references/reference-agents-generate.md +0 -174
  260. package/dist/docs/references/reference-agents-generateLegacy.md +0 -176
  261. package/dist/docs/references/reference-agents-getDefaultGenerateOptions.md +0 -36
  262. package/dist/docs/references/reference-agents-getDefaultOptions.md +0 -34
  263. package/dist/docs/references/reference-agents-getDefaultStreamOptions.md +0 -36
  264. package/dist/docs/references/reference-agents-getDescription.md +0 -21
  265. package/dist/docs/references/reference-agents-getInstructions.md +0 -34
  266. package/dist/docs/references/reference-agents-getLLM.md +0 -37
  267. package/dist/docs/references/reference-agents-getMemory.md +0 -34
  268. package/dist/docs/references/reference-agents-getModel.md +0 -34
  269. package/dist/docs/references/reference-agents-getTools.md +0 -29
  270. package/dist/docs/references/reference-agents-getVoice.md +0 -34
  271. package/dist/docs/references/reference-agents-listAgents.md +0 -35
  272. package/dist/docs/references/reference-agents-listScorers.md +0 -34
  273. package/dist/docs/references/reference-agents-listTools.md +0 -34
  274. package/dist/docs/references/reference-agents-listWorkflows.md +0 -34
  275. package/dist/docs/references/reference-agents-network.md +0 -134
  276. package/dist/docs/references/reference-ai-sdk-chat-route.md +0 -82
  277. package/dist/docs/references/reference-ai-sdk-network-route.md +0 -74
  278. package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +0 -232
  279. package/dist/docs/references/reference-ai-sdk-with-mastra.md +0 -59
  280. package/dist/docs/references/reference-ai-sdk-workflow-route.md +0 -79
  281. package/dist/docs/references/reference-auth-auth0.md +0 -73
  282. package/dist/docs/references/reference-auth-clerk.md +0 -36
  283. package/dist/docs/references/reference-auth-firebase.md +0 -80
  284. package/dist/docs/references/reference-auth-jwt.md +0 -26
  285. package/dist/docs/references/reference-auth-supabase.md +0 -33
  286. package/dist/docs/references/reference-auth-workos.md +0 -84
  287. package/dist/docs/references/reference-client-js-agents.md +0 -438
  288. package/dist/docs/references/reference-configuration.md +0 -749
  289. package/dist/docs/references/reference-core-addGateway.md +0 -42
  290. package/dist/docs/references/reference-core-getAgent.md +0 -21
  291. package/dist/docs/references/reference-core-getAgentById.md +0 -21
  292. package/dist/docs/references/reference-core-getDeployer.md +0 -22
  293. package/dist/docs/references/reference-core-getGateway.md +0 -38
  294. package/dist/docs/references/reference-core-getGatewayById.md +0 -41
  295. package/dist/docs/references/reference-core-getLogger.md +0 -22
  296. package/dist/docs/references/reference-core-getMCPServer.md +0 -45
  297. package/dist/docs/references/reference-core-getMCPServerById.md +0 -53
  298. package/dist/docs/references/reference-core-getMemory.md +0 -50
  299. package/dist/docs/references/reference-core-getScorer.md +0 -54
  300. package/dist/docs/references/reference-core-getScorerById.md +0 -54
  301. package/dist/docs/references/reference-core-getServer.md +0 -22
  302. package/dist/docs/references/reference-core-getStorage.md +0 -22
  303. package/dist/docs/references/reference-core-getStoredAgentById.md +0 -89
  304. package/dist/docs/references/reference-core-getTelemetry.md +0 -22
  305. package/dist/docs/references/reference-core-getVector.md +0 -22
  306. package/dist/docs/references/reference-core-getWorkflow.md +0 -40
  307. package/dist/docs/references/reference-core-listAgents.md +0 -21
  308. package/dist/docs/references/reference-core-listGateways.md +0 -40
  309. package/dist/docs/references/reference-core-listLogs.md +0 -38
  310. package/dist/docs/references/reference-core-listLogsByRunId.md +0 -36
  311. package/dist/docs/references/reference-core-listMCPServers.md +0 -51
  312. package/dist/docs/references/reference-core-listMemory.md +0 -56
  313. package/dist/docs/references/reference-core-listScorers.md +0 -29
  314. package/dist/docs/references/reference-core-listStoredAgents.md +0 -93
  315. package/dist/docs/references/reference-core-listVectors.md +0 -22
  316. package/dist/docs/references/reference-core-listWorkflows.md +0 -21
  317. package/dist/docs/references/reference-core-mastra-class.md +0 -66
  318. package/dist/docs/references/reference-core-mastra-model-gateway.md +0 -153
  319. package/dist/docs/references/reference-core-setLogger.md +0 -26
  320. package/dist/docs/references/reference-core-setStorage.md +0 -27
  321. package/dist/docs/references/reference-datasets-addItem.md +0 -35
  322. package/dist/docs/references/reference-datasets-addItems.md +0 -33
  323. package/dist/docs/references/reference-datasets-compareExperiments.md +0 -48
  324. package/dist/docs/references/reference-datasets-create.md +0 -49
  325. package/dist/docs/references/reference-datasets-dataset.md +0 -78
  326. package/dist/docs/references/reference-datasets-datasets-manager.md +0 -84
  327. package/dist/docs/references/reference-datasets-delete.md +0 -23
  328. package/dist/docs/references/reference-datasets-deleteExperiment.md +0 -25
  329. package/dist/docs/references/reference-datasets-deleteItem.md +0 -25
  330. package/dist/docs/references/reference-datasets-deleteItems.md +0 -27
  331. package/dist/docs/references/reference-datasets-get.md +0 -29
  332. package/dist/docs/references/reference-datasets-getDetails.md +0 -45
  333. package/dist/docs/references/reference-datasets-getExperiment.md +0 -28
  334. package/dist/docs/references/reference-datasets-getItem.md +0 -31
  335. package/dist/docs/references/reference-datasets-getItemHistory.md +0 -29
  336. package/dist/docs/references/reference-datasets-list.md +0 -29
  337. package/dist/docs/references/reference-datasets-listExperimentResults.md +0 -37
  338. package/dist/docs/references/reference-datasets-listExperiments.md +0 -31
  339. package/dist/docs/references/reference-datasets-listItems.md +0 -44
  340. package/dist/docs/references/reference-datasets-listVersions.md +0 -31
  341. package/dist/docs/references/reference-datasets-startExperiment.md +0 -60
  342. package/dist/docs/references/reference-datasets-startExperimentAsync.md +0 -41
  343. package/dist/docs/references/reference-datasets-update.md +0 -46
  344. package/dist/docs/references/reference-datasets-updateItem.md +0 -36
  345. package/dist/docs/references/reference-evals-answer-relevancy.md +0 -105
  346. package/dist/docs/references/reference-evals-answer-similarity.md +0 -99
  347. package/dist/docs/references/reference-evals-bias.md +0 -120
  348. package/dist/docs/references/reference-evals-completeness.md +0 -137
  349. package/dist/docs/references/reference-evals-content-similarity.md +0 -101
  350. package/dist/docs/references/reference-evals-context-precision.md +0 -196
  351. package/dist/docs/references/reference-evals-create-scorer.md +0 -270
  352. package/dist/docs/references/reference-evals-faithfulness.md +0 -114
  353. package/dist/docs/references/reference-evals-hallucination.md +0 -220
  354. package/dist/docs/references/reference-evals-keyword-coverage.md +0 -128
  355. package/dist/docs/references/reference-evals-mastra-scorer.md +0 -123
  356. package/dist/docs/references/reference-evals-run-evals.md +0 -138
  357. package/dist/docs/references/reference-evals-scorer-utils.md +0 -330
  358. package/dist/docs/references/reference-evals-textual-difference.md +0 -113
  359. package/dist/docs/references/reference-evals-tone-consistency.md +0 -119
  360. package/dist/docs/references/reference-evals-toxicity.md +0 -123
  361. package/dist/docs/references/reference-harness-harness-class.md +0 -645
  362. package/dist/docs/references/reference-logging-pino-logger.md +0 -117
  363. package/dist/docs/references/reference-memory-deleteMessages.md +0 -40
  364. package/dist/docs/references/reference-memory-memory-class.md +0 -147
  365. package/dist/docs/references/reference-memory-observational-memory.md +0 -565
  366. package/dist/docs/references/reference-observability-tracing-bridges-otel.md +0 -131
  367. package/dist/docs/references/reference-observability-tracing-configuration.md +0 -178
  368. package/dist/docs/references/reference-observability-tracing-exporters-console-exporter.md +0 -138
  369. package/dist/docs/references/reference-observability-tracing-exporters-datadog.md +0 -116
  370. package/dist/docs/references/reference-observability-tracing-instances.md +0 -109
  371. package/dist/docs/references/reference-observability-tracing-interfaces.md +0 -749
  372. package/dist/docs/references/reference-observability-tracing-processors-sensitive-data-filter.md +0 -144
  373. package/dist/docs/references/reference-observability-tracing-spans.md +0 -224
  374. package/dist/docs/references/reference-processors-batch-parts-processor.md +0 -61
  375. package/dist/docs/references/reference-processors-language-detector.md +0 -81
  376. package/dist/docs/references/reference-processors-message-history-processor.md +0 -85
  377. package/dist/docs/references/reference-processors-moderation-processor.md +0 -104
  378. package/dist/docs/references/reference-processors-pii-detector.md +0 -107
  379. package/dist/docs/references/reference-processors-processor-interface.md +0 -525
  380. package/dist/docs/references/reference-processors-prompt-injection-detector.md +0 -71
  381. package/dist/docs/references/reference-processors-semantic-recall-processor.md +0 -123
  382. package/dist/docs/references/reference-processors-system-prompt-scrubber.md +0 -80
  383. package/dist/docs/references/reference-processors-token-limiter-processor.md +0 -113
  384. package/dist/docs/references/reference-processors-tool-call-filter.md +0 -85
  385. package/dist/docs/references/reference-processors-tool-search-processor.md +0 -113
  386. package/dist/docs/references/reference-processors-unicode-normalizer.md +0 -62
  387. package/dist/docs/references/reference-processors-working-memory-processor.md +0 -154
  388. package/dist/docs/references/reference-rag-database-config.md +0 -264
  389. package/dist/docs/references/reference-rag-embeddings.md +0 -92
  390. package/dist/docs/references/reference-server-mastra-server.md +0 -298
  391. package/dist/docs/references/reference-server-register-api-route.md +0 -249
  392. package/dist/docs/references/reference-storage-cloudflare-d1.md +0 -218
  393. package/dist/docs/references/reference-storage-composite.md +0 -235
  394. package/dist/docs/references/reference-storage-lance.md +0 -131
  395. package/dist/docs/references/reference-storage-libsql.md +0 -135
  396. package/dist/docs/references/reference-storage-mongodb.md +0 -262
  397. package/dist/docs/references/reference-storage-mssql.md +0 -155
  398. package/dist/docs/references/reference-storage-overview.md +0 -121
  399. package/dist/docs/references/reference-storage-postgresql.md +0 -529
  400. package/dist/docs/references/reference-storage-upstash.md +0 -160
  401. package/dist/docs/references/reference-streaming-ChunkType.md +0 -292
  402. package/dist/docs/references/reference-streaming-agents-MastraModelOutput.md +0 -182
  403. package/dist/docs/references/reference-streaming-agents-streamLegacy.md +0 -142
  404. package/dist/docs/references/reference-streaming-workflows-observeStream.md +0 -42
  405. package/dist/docs/references/reference-streaming-workflows-resumeStream.md +0 -61
  406. package/dist/docs/references/reference-streaming-workflows-stream.md +0 -88
  407. package/dist/docs/references/reference-streaming-workflows-timeTravelStream.md +0 -142
  408. package/dist/docs/references/reference-templates-overview.md +0 -194
  409. package/dist/docs/references/reference-tools-create-tool.md +0 -237
  410. package/dist/docs/references/reference-tools-graph-rag-tool.md +0 -185
  411. package/dist/docs/references/reference-tools-mcp-client.md +0 -962
  412. package/dist/docs/references/reference-tools-mcp-server.md +0 -1275
  413. package/dist/docs/references/reference-tools-vector-query-tool.md +0 -459
  414. package/dist/docs/references/reference-vectors-libsql.md +0 -305
  415. package/dist/docs/references/reference-vectors-mongodb.md +0 -295
  416. package/dist/docs/references/reference-vectors-pg.md +0 -408
  417. package/dist/docs/references/reference-vectors-upstash.md +0 -294
  418. package/dist/docs/references/reference-voice-composite-voice.md +0 -121
  419. package/dist/docs/references/reference-voice-mastra-voice.md +0 -313
  420. package/dist/docs/references/reference-voice-voice.addInstructions.md +0 -56
  421. package/dist/docs/references/reference-voice-voice.addTools.md +0 -67
  422. package/dist/docs/references/reference-voice-voice.connect.md +0 -94
  423. package/dist/docs/references/reference-voice-voice.events.md +0 -37
  424. package/dist/docs/references/reference-voice-voice.listen.md +0 -164
  425. package/dist/docs/references/reference-voice-voice.on.md +0 -111
  426. package/dist/docs/references/reference-voice-voice.speak.md +0 -157
  427. package/dist/docs/references/reference-workflows-run-methods-cancel.md +0 -86
  428. package/dist/docs/references/reference-workflows-run-methods-restart.md +0 -33
  429. package/dist/docs/references/reference-workflows-run-methods-resume.md +0 -59
  430. package/dist/docs/references/reference-workflows-run-methods-start.md +0 -58
  431. package/dist/docs/references/reference-workflows-run-methods-startAsync.md +0 -67
  432. package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +0 -142
  433. package/dist/docs/references/reference-workflows-run.md +0 -59
  434. package/dist/docs/references/reference-workflows-step.md +0 -119
  435. package/dist/docs/references/reference-workflows-workflow-methods-branch.md +0 -25
  436. package/dist/docs/references/reference-workflows-workflow-methods-commit.md +0 -17
  437. package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +0 -63
  438. package/dist/docs/references/reference-workflows-workflow-methods-dountil.md +0 -25
  439. package/dist/docs/references/reference-workflows-workflow-methods-dowhile.md +0 -25
  440. package/dist/docs/references/reference-workflows-workflow-methods-foreach.md +0 -118
  441. package/dist/docs/references/reference-workflows-workflow-methods-map.md +0 -93
  442. package/dist/docs/references/reference-workflows-workflow-methods-parallel.md +0 -21
  443. package/dist/docs/references/reference-workflows-workflow-methods-sleep.md +0 -35
  444. package/dist/docs/references/reference-workflows-workflow-methods-sleepUntil.md +0 -35
  445. package/dist/docs/references/reference-workflows-workflow-methods-then.md +0 -21
  446. package/dist/docs/references/reference-workflows-workflow.md +0 -157
  447. package/dist/docs/references/reference-workspace-filesystem.md +0 -202
  448. package/dist/docs/references/reference-workspace-local-filesystem.md +0 -327
  449. package/dist/docs/references/reference-workspace-local-sandbox.md +0 -285
  450. package/dist/docs/references/reference-workspace-sandbox.md +0 -81
  451. package/dist/docs/references/reference-workspace-workspace-class.md +0 -226
  452. package/dist/docs/references/reference.md +0 -276
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Local Process Manager
3
+ *
4
+ * Local implementation of SandboxProcessManager using child_process.spawn.
5
+ * Tracks processes in-memory since there's no server to query.
6
+ */
7
+ import type { LocalSandbox } from './local-sandbox.js';
8
+ import { ProcessHandle, SandboxProcessManager } from './process-manager/index.js';
9
+ import type { ProcessInfo, SpawnProcessOptions } from './process-manager/index.js';
10
+ /**
11
+ * Local implementation of SandboxProcessManager.
12
+ * Spawns processes via child_process.spawn and tracks them in-memory.
13
+ */
14
+ export declare class LocalProcessManager extends SandboxProcessManager<LocalSandbox> {
15
+ spawn(command: string, options?: SpawnProcessOptions): Promise<ProcessHandle>;
16
+ list(): Promise<ProcessInfo[]>;
17
+ }
18
+ //# sourceMappingURL=local-process-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-process-manager.d.ts","sourceRoot":"","sources":["../../../src/workspace/sandbox/local-process-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAwH1E;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,qBAAqB,CAAC,YAAY,CAAC;IACpE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC;IAoBjF,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAOrC"}
@@ -8,11 +8,14 @@
8
8
  * - macOS: Uses seatbelt (sandbox-exec) for filesystem and network isolation
9
9
  * - Linux: Uses bubblewrap (bwrap) for namespace isolation
10
10
  */
11
+ import type { RequestContext } from '../../request-context/index.js';
11
12
  import type { ProviderStatus } from '../lifecycle.js';
13
+ import type { InstructionsOption } from '../types.js';
14
+ import { LocalProcessManager } from './local-process-manager.js';
12
15
  import { MastraSandbox } from './mastra-sandbox.js';
13
16
  import type { MastraSandboxOptions } from './mastra-sandbox.js';
14
17
  import type { IsolationBackend, NativeSandboxConfig } from './native-sandbox/index.js';
15
- import type { SandboxInfo, ExecuteCommandOptions, CommandResult } from './types.js';
18
+ import type { SandboxInfo } from './types.js';
16
19
  /**
17
20
  * Local sandbox provider configuration.
18
21
  */
@@ -56,6 +59,16 @@ export interface LocalSandboxOptions extends MastraSandboxOptions {
56
59
  * Only used when isolation is 'seatbelt' or 'bwrap'.
57
60
  */
58
61
  nativeSandbox?: NativeSandboxConfig;
62
+ /**
63
+ * Custom instructions that override the default instructions
64
+ * returned by `getInstructions()`.
65
+ *
66
+ * - `string` — Fully replaces the default instructions.
67
+ * Pass an empty string to suppress instructions entirely.
68
+ * - `(opts) => string` — Receives the default instructions and
69
+ * optional request context so you can extend or customise per-request.
70
+ */
71
+ instructions?: InstructionsOption;
59
72
  }
60
73
  /**
61
74
  * Local sandbox implementation.
@@ -81,45 +94,18 @@ export declare class LocalSandbox extends MastraSandbox {
81
94
  readonly name = "LocalSandbox";
82
95
  readonly provider = "local";
83
96
  status: ProviderStatus;
84
- private readonly _workingDirectory;
97
+ readonly workingDirectory: string;
98
+ readonly isolation: IsolationBackend;
99
+ readonly processes: LocalProcessManager;
85
100
  private readonly env;
86
- private readonly timeout?;
87
- private readonly _isolation;
88
101
  private readonly _nativeSandboxConfig;
89
102
  private _seatbeltProfile?;
90
103
  private _seatbeltProfilePath?;
91
104
  private _sandboxFolderPath?;
92
105
  private _userProvidedProfilePath;
93
106
  private readonly _createdAt;
94
- /**
95
- * The working directory where commands are executed.
96
- */
97
- get workingDirectory(): string;
98
- /**
99
- * The isolation backend being used.
100
- */
101
- get isolation(): IsolationBackend;
102
- /**
103
- * Detect the best available isolation backend for this platform.
104
- * Returns detection result with backend recommendation and availability.
105
- *
106
- * @example
107
- * ```typescript
108
- * const result = LocalSandbox.detectIsolation();
109
- * const sandbox = new LocalSandbox({
110
- * isolation: result.available ? result.backend : 'none',
111
- * });
112
- * ```
113
- */
114
- static detectIsolation(): import("./native-sandbox").SandboxDetectionResult;
107
+ private readonly _instructionsOverride?;
115
108
  constructor(options?: LocalSandboxOptions);
116
- private generateId;
117
- /**
118
- * Build the environment object for execution.
119
- * Always includes PATH by default (needed for finding executables).
120
- * Merges the sandbox's configured env with any additional env from the command.
121
- */
122
- private buildEnv;
123
109
  /**
124
110
  * Start the local sandbox.
125
111
  * Creates working directory and sets up seatbelt profile if using macOS isolation.
@@ -137,13 +123,41 @@ export declare class LocalSandbox extends MastraSandbox {
137
123
  * Status management is handled by the base class.
138
124
  */
139
125
  destroy(): Promise<void>;
126
+ /** @deprecated Use `status === 'running'` instead. */
140
127
  isReady(): Promise<boolean>;
141
128
  getInfo(): Promise<SandboxInfo>;
142
- getInstructions(): string;
129
+ getInstructions(opts?: {
130
+ requestContext?: RequestContext;
131
+ }): string;
132
+ private _getDefaultInstructions;
133
+ private generateId;
134
+ /**
135
+ * Build the environment object for execution.
136
+ * Always includes PATH by default (needed for finding executables).
137
+ * Merges the sandbox's configured env with any additional env from the command.
138
+ * @internal Used by LocalProcessManager.
139
+ */
140
+ buildEnv(additionalEnv?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
143
141
  /**
144
142
  * Wrap a command with the configured isolation backend.
143
+ * @internal Used by LocalProcessManager for background process isolation.
144
+ */
145
+ wrapCommandForIsolation(command: string): {
146
+ command: string;
147
+ args: string[];
148
+ };
149
+ /**
150
+ * Detect the best available isolation backend for this platform.
151
+ * Returns detection result with backend recommendation and availability.
152
+ *
153
+ * @example
154
+ * ```typescript
155
+ * const result = LocalSandbox.detectIsolation();
156
+ * const sandbox = new LocalSandbox({
157
+ * isolation: result.available ? result.backend : 'none',
158
+ * });
159
+ * ```
145
160
  */
146
- private wrapCommandForIsolation;
147
- executeCommand(command: string, args?: string[], options?: ExecuteCommandOptions): Promise<CommandResult>;
161
+ static detectIsolation(): import("./native-sandbox").SandboxDetectionResult;
148
162
  }
149
163
  //# sourceMappingURL=local-sandbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-sandbox.d.ts","sourceRoot":"","sources":["../../../src/workspace/sandbox/local-sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAwEjF;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,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9D;;;OAGG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE;IAa7E;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,eAAe;CAGvB"}
@@ -27,7 +27,9 @@ import type { WorkspaceFilesystem } from '../filesystem/filesystem.js';
27
27
  import type { MountResult } from '../filesystem/mount.js';
28
28
  import type { ProviderStatus } from '../lifecycle.js';
29
29
  import { MountManager } from './mount-manager.js';
30
+ import type { SandboxProcessManager } from './process-manager/index.js';
30
31
  import type { WorkspaceSandbox } from './sandbox.js';
32
+ import type { CommandResult, ExecuteCommandOptions, SandboxInfo } from './types.js';
31
33
  /**
32
34
  * Lifecycle hook that fires during sandbox state transitions.
33
35
  * Receives the sandbox instance so users can call `executeCommand`, read files, etc.
@@ -46,6 +48,27 @@ export interface MastraSandboxOptions {
46
48
  onStop?: SandboxLifecycleHook;
47
49
  /** Called before the sandbox is destroyed */
48
50
  onDestroy?: SandboxLifecycleHook;
51
+ /**
52
+ * Process manager for this sandbox.
53
+ *
54
+ * When provided, the base class automatically:
55
+ * 1. Sets the sandbox back-reference on the process manager
56
+ * 2. Exposes it via `this.processes`
57
+ * 3. Creates a default `executeCommand` implementation (spawn + wait)
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * class MySandbox extends MastraSandbox {
62
+ * constructor() {
63
+ * super({
64
+ * name: 'MySandbox',
65
+ * processes: new MyProcessManager({ env: myEnv }),
66
+ * });
67
+ * }
68
+ * }
69
+ * ```
70
+ */
71
+ processes?: SandboxProcessManager;
49
72
  }
50
73
  /**
51
74
  * Abstract base class for sandbox providers with logger support.
@@ -64,20 +87,15 @@ export interface MastraSandboxOptions {
64
87
  * status: ProviderStatus = 'pending';
65
88
  *
66
89
  * constructor() {
67
- * super({ name: 'MyCustomSandbox' });
68
- * }
69
- *
70
- * // Override start() to provide startup logic
71
- * async start(): Promise<void> {
72
- * // Your startup logic here
90
+ * super({
91
+ * name: 'MyCustomSandbox',
92
+ * processes: new MyProcessManager({ env: myEnv }),
93
+ * });
73
94
  * }
74
95
  *
96
+ * async start(): Promise<void> { /* startup logic *\/ }
75
97
  * async mount(filesystem, mountPath) { ... }
76
98
  * async unmount(mountPath) { ... }
77
- * async executeCommand(command: string, args?: string[]): Promise<CommandResult> {
78
- * this.logger.debug('Executing command', { command, args });
79
- * // Implementation...
80
- * }
81
99
  * }
82
100
  * ```
83
101
  */
@@ -90,10 +108,26 @@ export declare abstract class MastraSandbox extends MastraBase implements Worksp
90
108
  abstract readonly provider: string;
91
109
  /** Current status of the sandbox */
92
110
  abstract status: ProviderStatus;
111
+ /**
112
+ * Execute a shell command and wait for completion.
113
+ *
114
+ * Method syntax (not property syntax) is intentional — it prevents
115
+ * `useDefineForClassFields` from emitting `this.executeCommand = undefined`
116
+ * which would shadow prototype methods defined by subclasses.
117
+ */
118
+ executeCommand?(command: string, args?: string[], options?: ExecuteCommandOptions): Promise<CommandResult>;
119
+ /** Process manager */
120
+ readonly processes?: SandboxProcessManager;
93
121
  /** Mount manager - automatically created if subclass implements mount() */
94
122
  readonly mounts?: MountManager;
95
123
  /** Optional mount method - implement to enable mounting support */
96
124
  mount?(filesystem: WorkspaceFilesystem, mountPath: string): Promise<MountResult>;
125
+ /** Optional unmount method */
126
+ unmount?(mountPath: string): Promise<void>;
127
+ /** Get instructions describing how this sandbox works */
128
+ getInstructions?(): string;
129
+ /** Get sandbox status and metadata */
130
+ getInfo?(): SandboxInfo | Promise<SandboxInfo>;
97
131
  /** Promise for _start() to prevent race conditions from concurrent calls */
98
132
  protected _startPromise?: Promise<void>;
99
133
  /** Promise for _stop() to prevent race conditions from concurrent calls */
@@ -150,7 +184,7 @@ export declare abstract class MastraSandbox extends MastraBase implements Worksp
150
184
  * }
151
185
  * ```
152
186
  */
153
- protected ensureRunning(): Promise<void>;
187
+ ensureRunning(): Promise<void>;
154
188
  /**
155
189
  * Stop the sandbox (wrapper with status management and race-condition safety).
156
190
  *
@@ -1 +1 @@
1
- {"version":3,"file":"mastra-sandbox.d.ts","sourceRoot":"","sources":["../../../src/workspace/sandbox/mastra-sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEjG;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,sCAAsC;IACtC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,8BAAsB,aAAc,SAAQ,UAAW,YAAW,gBAAgB;IAChF,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAE7B,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAE/B,+BAA+B;IAC/B,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE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AQ,CAAC,CAAuB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAuB;IAChD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAuB;gBAEvC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,oBAAoB;IA8C5D;;;;;;;OAOG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAgC7B;;OAEG;YACW,aAAa;IA8B3B;;;;;;;;;;;;OAYG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;;;;;;;;;;;;;;OAeG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBpC;;;;;;;OAOG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB5B;;OAEG;YACW,YAAY;IAe1B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;;;OAOG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B/B;;OAEG;YACW,eAAe;IAe7B;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B;;;OAGG;IACM,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAKlD"}
@@ -8,13 +8,12 @@ import type { NativeSandboxConfig } from './types.js';
8
8
  /**
9
9
  * Build the bwrap command arguments for the given configuration.
10
10
  *
11
- * @param command - The command to run inside the sandbox
12
- * @param args - Arguments for the command
11
+ * @param command - The full shell command string to run inside the sandbox
13
12
  * @param workspacePath - The workspace directory (mounted read-write)
14
13
  * @param config - Additional sandbox configuration
15
14
  * @returns Wrapped command and arguments for bwrap
16
15
  */
17
- export declare function buildBwrapCommand(command: string, args: string[], workspacePath: string, config: NativeSandboxConfig): {
16
+ export declare function buildBwrapCommand(command: string, workspacePath: string, config: NativeSandboxConfig): {
18
17
  command: string;
19
18
  args: string[];
20
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"bubblewrap.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/bubblewrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAwBnD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,mBAAmB,GAC1B;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CA2ErC"}
1
+ {"version":3,"file":"bubblewrap.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/bubblewrap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAwBnD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,mBAAmB,GAC1B;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CA2ErC"}
@@ -34,12 +34,11 @@ export declare function generateSeatbeltProfile(workspacePath: string, config: N
34
34
  * Uses `-p` (inline profile) instead of `-f` (file) because
35
35
  * `-f` doesn't work reliably with path filters on modern macOS.
36
36
  *
37
- * @param command - The command to run
38
- * @param args - Arguments for the command
37
+ * @param command - The full shell command string to run
39
38
  * @param profile - The SBPL profile content (not a file path)
40
39
  * @returns Wrapped command and arguments for sandbox-exec
41
40
  */
42
- export declare function buildSeatbeltCommand(command: string, args: string[], profile: string): {
41
+ export declare function buildSeatbeltCommand(command: string, profile: string): {
43
42
  command: string;
44
43
  args: string[];
45
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"seatbelt.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/seatbelt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA0BnD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,MAAM,CA8FlG;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,MAAM,GACd;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAKrC"}
1
+ {"version":3,"file":"seatbelt.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/seatbelt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA0BnD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,MAAM,CA8FlG;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAK1G"}
@@ -21,21 +21,20 @@ export interface WrapCommandOptions {
21
21
  /**
22
22
  * Wrap a command with the appropriate sandbox backend.
23
23
  *
24
- * @param command - The command to run
25
- * @param args - Arguments for the command
24
+ * @param command - The full shell command string to run
26
25
  * @param options - Wrapping options
27
26
  * @returns The wrapped command and arguments
28
27
  *
29
28
  * @example
30
29
  * ```typescript
31
- * const wrapped = wrapCommand('node', ['script.js'], {
30
+ * const wrapped = wrapCommand('node script.js', {
32
31
  * backend: 'seatbelt',
33
32
  * workspacePath: '/workspace',
34
33
  * config: { allowNetwork: false },
35
34
  * });
36
35
  * // wrapped.command = 'sandbox-exec'
37
- * // wrapped.args = ['-p', '<profile>', 'node', 'script.js']
36
+ * // wrapped.args = ['-p', '<profile>', 'sh', '-c', 'node script.js']
38
37
  * ```
39
38
  */
40
- export declare function wrapCommand(command: string, args: string[], options: WrapCommandOptions): WrappedCommand;
39
+ export declare function wrapCommand(command: string, options: WrapCommandOptions): WrappedCommand;
41
40
  //# sourceMappingURL=wrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/wrapper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,GAAG,cAAc,CAexG"}
1
+ {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/native-sandbox/wrapper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,2FAA2F;IAC3F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,cAAc,CAexF"}
@@ -0,0 +1,4 @@
1
+ export * from './types.js';
2
+ export * from './process-handle.js';
3
+ export * from './process-manager.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/process-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Process Handle (Base Class)
3
+ *
4
+ * Abstract base class for process handles.
5
+ * Manages stdout/stderr callback dispatch and provides lazy
6
+ * reader/writer stream getters — subclasses only implement
7
+ * the platform-specific primitives.
8
+ */
9
+ import { Readable, Writable } from 'node:stream';
10
+ import type { CommandResult } from '../types.js';
11
+ import type { SpawnProcessOptions } from './types.js';
12
+ /**
13
+ * Handle to a spawned process.
14
+ *
15
+ * Subclasses implement the platform-specific primitives (kill, sendStdin,
16
+ * wait). The base class handles stdout/stderr accumulation, callback
17
+ * dispatch via `emitStdout`/`emitStderr`, lazy `reader`/`writer` stream
18
+ * getters, and optional streaming callbacks on `wait()`.
19
+ *
20
+ * **For consumers:**
21
+ * - `handle.stdout` — poll accumulated output
22
+ * - `handle.wait()` — wait for exit, optionally with streaming callbacks
23
+ * - `handle.reader` / `handle.writer` — Node.js stream interop (LSP, JSON-RPC, pipes)
24
+ * - `onStdout`/`onStderr` callbacks in {@link SpawnProcessOptions} — stream at spawn time
25
+ *
26
+ * **For implementors:** Call `emitStdout(data)` / `emitStderr(data)` from
27
+ * your transport callback (ChildProcess events, WebSocket messages, etc.)
28
+ * to dispatch data. Pass `options` through to `super(options)` to wire
29
+ * user callbacks automatically.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * // Poll model
34
+ * const handle = await sandbox.processes.spawn('node server.js');
35
+ * console.log(handle.stdout);
36
+ *
37
+ * // Stream model — callbacks at spawn time
38
+ * const handle = await sandbox.processes.spawn('npm run dev', {
39
+ * onStdout: (data) => console.log(data),
40
+ * });
41
+ *
42
+ * // Stream model — callbacks during wait
43
+ * const result = await handle.wait({
44
+ * onStdout: (data) => process.stdout.write(data),
45
+ * onStderr: (data) => process.stderr.write(data),
46
+ * });
47
+ *
48
+ * // Stream model — pipe to LSP, JSON-RPC, etc.
49
+ * const handle = await sandbox.processes.spawn('typescript-language-server --stdio');
50
+ * const connection = createMessageConnection(
51
+ * new StreamMessageReader(handle.reader),
52
+ * new StreamMessageWriter(handle.writer),
53
+ * );
54
+ * ```
55
+ */
56
+ export declare abstract class ProcessHandle {
57
+ /** Process ID */
58
+ abstract readonly pid: number;
59
+ /** Exit code, undefined while the process is still running */
60
+ abstract readonly exitCode: number | undefined;
61
+ /** The command that was spawned (set by the process manager) */
62
+ command?: string;
63
+ /** Kill the running process (SIGKILL). Returns true if killed, false if not found. */
64
+ abstract kill(): Promise<boolean>;
65
+ /** Send data to the process's stdin */
66
+ abstract sendStdin(data: string): Promise<void>;
67
+ /**
68
+ * Wait for the process to finish and return the result.
69
+ *
70
+ * Optionally pass `onStdout`/`onStderr` callbacks to stream output chunks
71
+ * while waiting. The callbacks are automatically removed when `wait()`
72
+ * resolves, so there's no cleanup needed by the caller.
73
+ *
74
+ * Subclasses implement `wait()` with platform-specific logic — the base
75
+ * constructor wraps it to handle the optional streaming callbacks.
76
+ */
77
+ wait(_options?: {
78
+ onStdout?: (data: string) => void;
79
+ onStderr?: (data: string) => void;
80
+ }): Promise<CommandResult>;
81
+ private _stdout;
82
+ private _stderr;
83
+ private _stdoutListeners;
84
+ private _stderrListeners;
85
+ private _reader?;
86
+ private _writer?;
87
+ constructor(options?: Pick<SpawnProcessOptions, 'onStdout' | 'onStderr'>);
88
+ /** Accumulated stdout so far */
89
+ get stdout(): string;
90
+ /** Accumulated stderr so far */
91
+ get stderr(): string;
92
+ /**
93
+ * Emit stdout data — accumulates, dispatches to user callback, and pushes to reader stream.
94
+ * @internal Called by subclasses and process managers to dispatch transport data.
95
+ */
96
+ emitStdout(data: string): void;
97
+ /**
98
+ * Emit stderr data — accumulates and dispatches to user callback.
99
+ * @internal Called by subclasses and process managers to dispatch transport data.
100
+ */
101
+ emitStderr(data: string): void;
102
+ /** Readable stream of stdout (for use with StreamMessageReader, pipes, etc.) */
103
+ get reader(): Readable;
104
+ /** Writable stream to stdin (for use with StreamMessageWriter, pipes, etc.) */
105
+ get writer(): Writable;
106
+ }
107
+ //# sourceMappingURL=process-handle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-handle.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/process-manager/process-handle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,8BAAsB,aAAa;IACjC,iBAAiB;IACjB,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAC9B,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sFAAsF;IACtF,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IACjC,uCAAuC;IACvC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE/C;;;;;;;;;OASG;IACG,IAAI,CAAC,QAAQ,CAAC,EAAE;QACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KACnC,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1B,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,OAAO,CAAC,CAAW;IAC3B,OAAO,CAAC,OAAO,CAAC,CAAW;gBAEf,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,UAAU,CAAC;IAqBxE,gCAAgC;IAChC,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,gCAAgC;IAChC,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAM9B;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK9B,gFAAgF;IAChF,IAAI,MAAM,IAAI,QAAQ,CASrB;IAED,+EAA+E;IAC/E,IAAI,MAAM,IAAI,QAAQ,CASrB;CACF"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Sandbox Process Manager (Base Class)
3
+ *
4
+ * Abstract base class for sandbox process management.
5
+ * Wraps all methods with ensureRunning() so the sandbox is
6
+ * automatically started before any process operation.
7
+ * Subclasses implement spawn(), list(), get().
8
+ */
9
+ import type { MastraSandbox } from '../mastra-sandbox.js';
10
+ import type { ProcessHandle } from './process-handle.js';
11
+ import type { ProcessInfo, SpawnProcessOptions } from './types.js';
12
+ /**
13
+ * Abstract base class for process management in sandboxes.
14
+ *
15
+ * Wraps subclass overrides of `spawn()`, `list()`, and `get()` with
16
+ * `sandbox.ensureRunning()` so the sandbox is lazily started before
17
+ * any process operation.
18
+ *
19
+ * Subclasses implement the actual platform-specific logic for all methods.
20
+ *
21
+ * @typeParam TSandbox - The sandbox type. Subclasses narrow this to access
22
+ * sandbox-specific properties (e.g. `workingDirectory`, `instance`).
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * const handle = await sandbox.processes.spawn('node server.js');
27
+ * console.log(handle.pid, handle.stdout);
28
+ *
29
+ * const all = await sandbox.processes.list();
30
+ * const proc = await sandbox.processes.get(handle.pid);
31
+ * await proc?.kill();
32
+ * ```
33
+ */
34
+ export interface ProcessManagerOptions {
35
+ env?: Record<string, string | undefined>;
36
+ }
37
+ export declare abstract class SandboxProcessManager<TSandbox extends MastraSandbox = MastraSandbox> {
38
+ /**
39
+ * The sandbox this process manager belongs to.
40
+ * Set automatically by MastraSandbox when processes are passed into the constructor.
41
+ * @internal
42
+ */
43
+ sandbox: TSandbox;
44
+ protected readonly env: Record<string, string | undefined>;
45
+ /** Tracked process handles keyed by PID. Populated by spawn(), used by get()/kill(). */
46
+ protected readonly _tracked: Map<number, ProcessHandle>;
47
+ /** PIDs that have been read after exit and should not be re-discovered by subclass fallbacks. */
48
+ protected readonly _dismissed: Set<number>;
49
+ constructor({ env }?: ProcessManagerOptions);
50
+ /** Spawn a process. */
51
+ spawn(command: string, options?: SpawnProcessOptions): Promise<ProcessHandle>;
52
+ /** List all tracked processes. */
53
+ list(): Promise<ProcessInfo[]>;
54
+ /** Get a handle to a process by PID. Subclasses can override for fallback behavior. */
55
+ get(pid: number): Promise<ProcessHandle | undefined>;
56
+ /** Kill a process by PID. Returns true if killed, false if not found. */
57
+ kill(pid: number): Promise<boolean>;
58
+ }
59
+ //# sourceMappingURL=process-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/process-manager/process-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAMhE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED,8BAAsB,qBAAqB,CAAC,QAAQ,SAAS,aAAa,GAAG,aAAa;IACxF;;;;OAIG;IACH,OAAO,EAAG,QAAQ,CAAC;IAEnB,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAE3D,wFAAwF;IACxF,SAAS,CAAC,QAAQ,CAAC,QAAQ,6BAAoC;IAE/D,iGAAiG;IACjG,SAAS,CAAC,QAAQ,CAAC,UAAU,cAAqB;gBAEtC,EAAE,GAAQ,EAAE,GAAE,qBAA0B;IAuCpD,uBAAuB;IAEjB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC;IAIvF,kCAAkC;IAC5B,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAIpC,uFAAuF;IACjF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAI1D,yEAAyE;IACnE,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAc1C"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Process Manager Types
3
+ *
4
+ * Type definitions for process management.
5
+ */
6
+ import type { CommandOptions } from '../types.js';
7
+ /** Options for spawning a process. */
8
+ export interface SpawnProcessOptions extends CommandOptions {
9
+ }
10
+ /**
11
+ * Info about a tracked process.
12
+ * Returned by {@link SandboxProcessManager.list}.
13
+ */
14
+ export interface ProcessInfo {
15
+ /** Process ID */
16
+ pid: number;
17
+ /** The command that was executed (if available) */
18
+ command?: string;
19
+ /** Whether the process is still running */
20
+ running: boolean;
21
+ /** Exit code if the process has finished */
22
+ exitCode?: number;
23
+ }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/workspace/sandbox/process-manager/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C,sCAAsC;AACtC,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAM9D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -23,10 +23,12 @@
23
23
  * });
24
24
  * ```
25
25
  */
26
+ import type { RequestContext } from '../../request-context/index.js';
26
27
  import type { WorkspaceFilesystem } from '../filesystem/filesystem.js';
27
28
  import type { MountResult } from '../filesystem/mount.js';
28
29
  import type { SandboxLifecycle } from '../lifecycle.js';
29
30
  import type { MountManager } from './mount-manager.js';
31
+ import type { SandboxProcessManager } from './process-manager/index.js';
30
32
  import type { CommandResult, ExecuteCommandOptions, SandboxInfo } from './types.js';
31
33
  /**
32
34
  * Abstract sandbox interface for code and command execution.
@@ -60,16 +62,50 @@ export interface WorkspaceSandbox extends SandboxLifecycle<SandboxInfo> {
60
62
  * Get instructions describing how this sandbox works.
61
63
  * Used in tool descriptions to help agents understand execution context.
62
64
  *
65
+ * @param opts - Optional options including request context for per-request customisation
63
66
  * @returns A string describing how to use this sandbox
64
67
  */
65
- getInstructions?(): string;
68
+ getInstructions?(opts?: {
69
+ requestContext?: RequestContext;
70
+ }): string;
66
71
  /**
67
- * Execute a shell command.
72
+ * Execute a shell command and wait for it to complete.
68
73
  * Optional - if not implemented, the workspace_execute_command tool won't be available.
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * await sandbox.executeCommand('npm install');
78
+ *
79
+ * // With options
80
+ * await sandbox.executeCommand('npm install', [], { timeout: 60000 });
81
+ *
82
+ * // With args array (each arg is shell-quoted automatically)
83
+ * await sandbox.executeCommand('npm', ['install'], { timeout: 60000 });
84
+ * ```
85
+ *
69
86
  * @throws {SandboxExecutionError} if command fails to start
70
87
  * @throws {SandboxTimeoutError} if command times out
71
88
  */
72
89
  executeCommand?(command: string, args?: string[], options?: ExecuteCommandOptions): Promise<CommandResult>;
90
+ /**
91
+ * Process manager.
92
+ * Optional - if not implemented, process management tools won't be available.
93
+ *
94
+ * Provides methods to spawn long-running processes, list them, and interact
95
+ * with them via their {@link ProcessHandle} (kill, sendStdin, wait, read output).
96
+ *
97
+ * @example
98
+ * ```typescript
99
+ * const handle = await sandbox.processes.spawn('node server.js');
100
+ * console.log(handle.pid);
101
+ *
102
+ * const procs = await sandbox.processes.list();
103
+ * const proc = await sandbox.processes.get(handle.pid);
104
+ * await proc?.sendStdin('hello\n');
105
+ * await proc?.kill();
106
+ * ```
107
+ */
108
+ readonly processes?: SandboxProcessManager;
73
109
  /**
74
110
  * Mount manager for tracking and processing filesystem mounts.
75
111
  * Only available if the sandbox implements mount().
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../src/workspace/sandbox/sandbox.ts"],"names":[],"m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