/** * Railway Process Manager * * Implements SandboxProcessManager for Railway sandboxes. * Wraps the Railway SDK's `Sandbox.exec()` API. * * Railway's `exec(command, options)` accepts per-call `cwd` and `env` options * (since SDK v3.3.1) and returns an `ExecHandle` that runs the command * server-side, independently of the client. Each spawn() starts one exec. * The handle streams output via `onStdout`/`onStderr` callbacks wired to * `emitStdout`/`emitStderr`, exposes a durable `sessionName`, and can be * terminated with `kill(signal)`. */ import { ProcessHandle, SandboxProcessManager } from '@mastra/core/workspace'; import type { ProcessInfo, SpawnProcessOptions } from '@mastra/core/workspace'; import type { RailwaySandbox } from './index.js'; export declare const LOG_PREFIX = "[RailwaySandbox]"; /** * Railway implementation of SandboxProcessManager. * Uses the Railway SDK's `Sandbox.exec()` with one exec per spawned process. */ export declare class RailwayProcessManager extends SandboxProcessManager { private _spawnCounter; spawn(command: string, options?: SpawnProcessOptions): Promise; /** * List tracked processes. * * Railway has no API to enumerate running exec sessions by sandbox, so this * reports the processes this manager spawned. */ list(): Promise; } //# sourceMappingURL=process-manager.d.ts.map