Commit Graph
58 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek c8d3285abb ci: add GitHub Release workflow on version bump
Triggers on pushes to main when pyproject.toml changes.
Reads the version, checks if a matching tag already exists,
and if not, creates a git tag and GitHub Release with the
changelog section extracted from CHANGELOG.md.

The new tag then triggers the existing Docker workflow to
build and push versioned images.

Closes #15
2026-03-02 12:30:17 -06:00
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 35a7b5788b doc: wording 2026-03-01 13:22:22 -06:00
Timothy Jaeryang Baek 061643cd8d doc: wording 2026-03-01 11:16:13 -06:00
Timothy Jaeryang Baek 9c0308a208 doc: wording 2026-03-01 03:14:10 -06:00
Timothy Jaeryang Baek 2beb208e56 refac 2026-03-01 03:06:27 -06:00
Timothy Jaeryang Baek 1ee96beb6d refac 2026-03-01 02:58:51 -06:00
Timothy Jaeryang Baek 5b2358c6f6 refac 2026-03-01 02:00:32 -06:00
Timothy Jaeryang Baek 150af47399 refac 2026-02-28 21:46:17 -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 2aef7ad7ad refac 2026-02-25 20:17:56 -06:00
Timothy Jaeryang Baek 19543ee983 refac 2026-02-25 19:56:20 -06:00
Timothy Jaeryang Baek 8a584ed804 refac 2026-02-25 19:50:47 -06:00
Timothy Jaeryang Baek 9f780d75aa refac 2026-02-25 19:45:59 -06:00
Timothy Jaeryang Baek af417e5faa refac 2026-02-25 19:44:18 -06:00
Timothy Jaeryang Baek ad2d12ec8a refac 2026-02-25 17:24:52 -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 de6d93c86d refac 2026-02-25 15:34:17 -06:00
Timothy Jaeryang Baek eced3e04c7 refac 2026-02-24 22:10:12 -06:00
Timothy Jaeryang Baek 87fc0c4b3f refac 2026-02-24 22:03:44 -06:00
Timothy Jaeryang Baek 6c08563b56 refactor: read_file returns raw binary for supported types, rejects others
- Text files: return JSON with content string (unchanged)
- Supported binary types (image/* by default): return raw binary
  with proper Content-Type header
- Unsupported binary types: 415 error
- New env var OPEN_TERMINAL_BINARY_MIME_PREFIXES (comma-separated,
  default: 'image') controls which binary types are allowed
2026-02-24 18:49:47 -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 6797a5e86e fix: handle permission errors gracefully, add entrypoint for volume ownership 2026-02-23 18:24:34 -06:00
Timothy Jaeryang Baek e88b16c14d refac 2026-02-19 15:00:02 -06:00
Timothy Jaeryang Baek 3ba359d55e refac 2026-02-19 14:57:37 -06:00
Timothy Jaeryang Baek 13bcd6ab46 refac 2026-02-19 14:41:05 -06:00
Timothy Jaeryang Baek c51cffb590 refac 2026-02-17 19:05:25 -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 80a9ce0867 refac 2026-02-15 16:38:14 -06:00
Timothy Jaeryang Baek 5f16b797cb refac 2026-02-15 15:43:27 -06:00
Timothy Jaeryang Baek 9908a25426 refac 2026-02-14 19:36:16 -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 736d3bf2d5 feat: add GET /files/search endpoint for structured grep-like search
Returns JSON matches with file paths, line numbers, and content.
Supports regex, case-insensitive search, multiple glob filters,
match_per_line toggle (lines vs filenames), and result capping.
Skips binary files automatically.
2026-02-14 19:06:39 -06:00
Timothy Jaeryang Baek ab212aaa9e feat: add explicit operation_id to all API endpoints
Replaces auto-generated illegible operation IDs with clean,
human-readable names for better OpenAPI spec readability by AI agents.

Uses consistent terminology: 'process' for endpoints with {process_id},
'create_' prefix for link-generation endpoints.
2026-02-14 19:00:59 -06:00
Timothy Jaeryang Baek e223dc0d17 doc: changelog 2026-02-14 18:48:57 -06:00
Timothy Jaeryang Baek 8c17fb2fa9 refac 2026-02-14 18:43:29 -06:00
Timothy Jaeryang Baek 7747f76b0e refac 2026-02-14 18:40:57 -06:00
Timothy Jaeryang Baek 0a8af6d51a refac 2026-02-14 18:36:56 -06:00
Timothy Jaeryang Baek 2d153a3cc8 refac 2026-02-14 18:35:12 -06:00
Timothy Jaeryang Baek af21be471c refac 2026-02-14 17:05:15 -06:00
Timothy Jaeryang Baek 1f6c363381 refac 2026-02-14 16:35:59 -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 c448c55d14 refac 2026-02-12 14:43:33 -06:00
Timothy Jaeryang Baek a6df118dfd refac 2026-02-12 14:29:31 -06:00