/** * SINGLE SOURCE OF TRUTH for the `botmux` wrapper bin dir (codex P1). The daemon * WRITES the wrapper here and every consumer (worker-pool fork PATH, worker.ts * child-env prepends, tmux pane scripts) must PREPEND the SAME dir — otherwise a * core-only service that writes its wrapper to a dedicated dir but leaves the * consumers pointing at the shared `~/.botmux/bin` would resolve `botmux` to a * same-HOME fleet's wrapper (shared:dedicated:… PATH → shared wins). * * - core-only (BOTMUX_CORE_ONLY=1): a DEDICATED `/bin`, so a * same-HOME fleet's `~/.botmux/bin` is never consulted or clobbered. * - normal fleet: the shared `~/.botmux/bin` (unchanged). * * Env-driven (not config) so it resolves identically in the daemon, a forked * worker, and a value baked into a tmux pane script — all of which see the same * BOTMUX_CORE_ONLY / SESSION_DATA_DIR. Falls back to ~/.botmux/bin if a core-only * process somehow lacks SESSION_DATA_DIR (defensive; the entrypoint always sets it). */ export declare function resolveBotmuxWrapperBinDir(env?: NodeJS.ProcessEnv): string; /** * Prepend the wrapper bin dir to a PATH string using the platform-correct * separator (':' on POSIX, ';' on Windows). Hardcoding ':' silently breaks the * inherited PATH on Windows, so route every PATH prepend through here. */ export declare function prependBotmuxBin(binDir: string, currentPath: string | undefined, delim?: string): string; export interface BotmuxWrapperFile { /** Filename within ~/.botmux/bin. */ name: string; content: string; /** chmod mode (ignored on Windows). */ mode: number; } /** * The wrapper files to materialize in ~/.botmux/bin. Always a POSIX `sh` * wrapper (used by macOS/Linux and Git Bash/WSL); on Windows additionally a * `botmux.cmd` so native shells (cmd.exe / PowerShell) resolve `botmux` — * without it `botmux send` from a Windows-native CLI session fails. The `.cmd` * pins the daemon's current Node binary so it never depends on a PATH-resolved * `node`. Both wrappers point at THIS daemon's dist/cli.js. */ export declare function botmuxWrapperFiles(cliScript: string, nodePath: string, platform?: NodeJS.Platform): BotmuxWrapperFile[]; //# sourceMappingURL=botmux-wrapper.d.ts.map