Commit Graph
24 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek acb32b0101 feat: use XDG Base Directories for log storage
Change the default LOG_DIR from ~/.open-terminal/logs to
$XDG_STATE_HOME/open-terminal/logs (defaults to
~/.local/state/open-terminal/logs when XDG_STATE_HOME is unset).

The OPEN_TERMINAL_LOG_DIR env var override is unchanged.

Closes #12
2026-03-02 12:26:12 -06:00
Timothy Jaeryang Baek 26090678d4 feat: add Docker secrets support for OPEN_TERMINAL_API_KEY_FILE
Allow loading the API key from a file via OPEN_TERMINAL_API_KEY_FILE,
following the convention used by the official PostgreSQL Docker image.

- Add _resolve_file_env() helper in env.py
- Add file_env shell function in entrypoint.sh
- Add _FILE fallback in cli.py run command
- Update README with Docker Compose example
- Bump version to 0.4.3

Closes #14
2026-03-02 12:17:54 -06:00
Timothy Jaeryang Baek 7be170b5ff feat: add POST /files/move endpoint for drag-and-drop file moves
- Add MoveRequest model and /files/move endpoint (async, hidden from OpenAPI)
- Uses shutil.move in asyncio.to_thread for non-blocking operation
- Validates source exists, dest parent exists, dest doesn't collide (409)
- Bump version to 0.4.2
2026-03-02 12:00:36 -06:00
Timothy Jaeryang Baek ff7fb06154 fix: hide upload_file from OpenAPI schema 2026-03-01 19:47:32 -06:00
Timothy Jaeryang Baek 5b2358c6f6 refac 2026-03-01 02:00:32 -06:00
Timothy Jaeryang Baek 3aef8d189b feat: pseudo-terminal (PTY) execution with factory pattern
- Commands now run under a real PTY by default (PtyRunner), enabling
  colored output, interactive programs, and proper isatty() detection
- Falls back to pipe-based execution (PipeRunner) on Windows
- ProcessRunner abstraction in runner.py with create_runner() factory
- Escape sequence conversion in send_process_input for LLM-emitted
  literal strings (\n, \x03 for Ctrl-C, etc.)
- Output logged as merged type "output" instead of separate stdout/stderr

Bumped to 0.3.0
2026-02-25 23:32:27 -06:00
Timothy Jaeryang Baek 8a584ed804 refac 2026-02-25 19:50:47 -06:00
Timothy Jaeryang Baek 616125998d refac 2026-02-25 16:20:15 -06:00
Timothy Jaeryang Baek a543dca5ab refac 2026-02-25 16:07:34 -06:00
Timothy Jaeryang Baek 87fc0c4b3f refac 2026-02-24 22:03:44 -06:00
Timothy Jaeryang Baek 5213b67814 fix: handle OSError gracefully across file endpoints, bump to v0.2.5 2026-02-23 18:26:36 -06:00
Timothy Jaeryang Baek e88b16c14d refac 2026-02-19 15:00:02 -06:00
Timothy Jaeryang Baek edbaf27df7 v0.2.3: optional MCP server mode via open-terminal mcp 2026-02-15 17:02:52 -06:00
Timothy Jaeryang Baek df0b7c3ce4 refac 2026-02-15 16:39:12 -06:00
Timothy Jaeryang Baek dd5649b696 v0.2.1: file-backed process output with offset-based polling
- Persist all process stdout/stderr to JSONL log files for audit
- Add offset-based polling (next_offset) for stateless incremental reads
- Add tail parameter to bound response size for AI agents
- Remove in-memory output buffer and drain-on-read pattern
- Organize logs under ~/.open-terminal/logs/processes/
- Add aiofiles dependency for async file I/O
- Remove OPEN_TERMINAL_MAX_OUTPUT_LINES (no longer needed)
2026-02-14 19:35:20 -06:00
Timothy Jaeryang Baek af21be471c refac 2026-02-14 17:05:15 -06:00
Timothy Jaeryang Baek cca648f340 refac 2026-02-12 14:56:28 -06:00
Timothy Jaeryang Baek a2f5f2e011 refac 2026-02-12 14:47:36 -06:00
Timothy Jaeryang Baek a6df118dfd refac 2026-02-12 14:29:31 -06:00
Timothy Jaeryang Baek bf00a389f1 refac 2026-02-12 14:24:46 -06:00
Timothy Jaeryang Baek 4a98745671 refac 2026-02-12 14:06:50 -06:00
Timothy Jaeryang Baek d044201f83 refac 2026-02-12 13:54:22 -06:00
Timothy Jaeryang Baek 3103f34ee7 refac 2026-02-12 13:45:59 -06:00
Timothy Jaeryang Baek 3f7c544835 init 2026-02-12 13:10:52 -06:00