| 1 | // Package persistentshell runs foreground bash commands in a session-scoped |
| 2 | // PTY so cwd, exported variables, and shell functions survive across calls. |
| 3 | // Command wrappers use ASCII-only byte escapes: interactive line editors must |
| 4 | // not reinterpret non-ASCII command bytes when the host has no UTF-8 locale. |
| 5 | // |
| 6 | // It is invisible to models: the bash tool schema and description stay |
| 7 | // byte-identical. Background jobs, commands that background a child, per-call |
| 8 | // write-root escalations, host terminals, and PowerShell hosts keep using |
| 9 | // one-shot processes; see Supports. |
| 10 | package persistentshell |
| 11 |