Commit Graph
117 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 884c0141a1 refac 2026-11-07 21:42:09 +09:00
Timothy Jaeryang Baek aa60f5bc2a refac 2026-11-07 19:47:21 +09:00
Timothy Jaeryang Baek 2d22dc9a1b refac 2026-11-07 13:04:38 +09:00
Timothy Jaeryang Baek 4b059deb9f refac 2026-11-06 22:11:38 +09:00
Timothy Jaeryang Baek d3301f9d6b refac 2026-11-06 13:55:30 +09:00
Timothy Jaeryang Baek beff6a5d24 refac 2026-11-06 13:34:57 +09:00
Timothy Jaeryang Baek 7f2c306cd5 refac 2026-11-06 08:58:02 +09:00
Timothy Jaeryang Baek 5c6c2f8aab refac 2026-11-05 21:06:22 +09:00
Timothy Jaeryang Baek cc8dae2859 refac 2026-11-05 20:48:03 +09:00
Timothy Jaeryang Baek da209717e6 refac 2026-11-05 20:40:00 +09:00
Timothy Jaeryang Baek 055aeab132 refac 2026-11-05 18:10:37 +09:00
Timothy Jaeryang Baek e7248af7b4 refac 2026-11-05 12:43:53 +09:00
Timothy Jaeryang Baek 2059b65ee0 refac 2026-11-05 12:41:59 +09:00
Timothy Jaeryang Baek 1f2460a6f9 refac 2026-11-04 15:01:34 +09:00
Timothy Jaeryang Baek 6444534c8a refac 2026-11-02 12:15:59 +09:00
Timothy Jaeryang Baek 8137834d19 refac 2026-11-02 09:53:08 +09:00
Timothy Jaeryang Baek affad6cce7 refac 2026-11-02 09:06:26 +09:00
Timothy Jaeryang Baek 23cdf75428 refac 2026-11-02 08:53:30 +09:00
Timothy Jaeryang Baek 200b7ee445 refac 2026-11-02 08:27:16 +09:00
Timothy Jaeryang Baek b1fdd9ea1d refac 2026-11-02 02:20:33 +09:00
Timothy Jaeryang Baek 6c5c2a7333 refac 2026-11-02 01:47:00 +09:00
Timothy Jaeryang Baek f08aeb1538 refac 2026-11-02 01:27:36 +09:00
Timothy Jaeryang Baek 13afaba925 refac 2026-11-01 23:44:20 +09:00
Timothy Jaeryang Baek bda6209717 refac 2026-11-01 23:10:42 +09:00
Timothy Jaeryang Baek 238784880a refac 2026-11-01 22:15:46 +09:00
Timothy Jaeryang Baek 3df29aa0fb refac 2026-10-31 06:05:33 +09:00
Timothy Jaeryang Baek 431fc2bccf refac 2026-10-29 03:49:56 +09:00
Timothy Jaeryang Baek 3994f0939b refac 2026-10-25 12:39:40 +09:00
Timothy Jaeryang Baek 6f0b75076b refac 2026-10-24 05:14:56 +09:00
Timothy Jaeryang Baek cb09637663 refac 2026-10-24 05:03:54 +09:00
Timothy Jaeryang Baek 3b80fc69c3 refac 2026-10-19 04:02:44 +09:00
Timothy Jaeryang Baek 64a03197b7 refac 2026-10-16 14:25:49 +04:00
Timothy Jaeryang Baek b58442aa85 refac 2026-09-23 12:58:09 -04:00
Classic298 83bafddf87 auth: verify MCP HTTP clients against the API key (#181)
The MCP server now gates its HTTP transports with a token verifier that
requires the connecting client to present the API key, compared with
hmac.compare_digest to match the FastAPI layer. The stdio transport is
local and does not pass through the HTTP auth layer, so it keeps working
unchanged. Raises the fastmcp floor to >=4.0.0, where the auth API used
here is available.
2026-09-23 12:38:11 -04:00
Timothy Jaeryang Baek 2085cd819e refac 2026-09-13 23:02:37 -04:00
Timothy Jaeryang Baek 72fb783bb9 refac 2026-09-08 20:37:16 -04:00
Timothy Jaeryang Baek 38d6a2b8b6 refac 2026-09-06 15:28:18 -04:00
Timothy Jaeryang Baek c0273cc39e refac 2026-08-27 19:28:22 -04:00
Timothy Jaeryang Baek e0f2b69f1e refac 2026-08-25 16:42:10 -04:00
Timothy Jaeryang Baek 1a71bfdd24 refac 2026-08-22 09:27:00 -04:00
Timothy Jaeryang Baek 0a82381f23 refac 2026-08-22 09:14:41 -04:00
Timothy Jaeryang Baek 9c9706d475 refac 2026-08-22 08:45:43 -04:00
Timothy Jaeryang Baek c6c2b82741 refac 2026-08-10 01:03:19 -06:00
Timothy Jaeryang Baek 9162e808c3 feat: add /files/serve/{path} endpoint for iframe relative URL resolution 2026-04-08 14:49:49 -07:00
Timothy Jaeryang Baek f74428ffb8 refac 2026-04-08 13:07:45 -07:00
Timothy Jaeryang Baek 8c154351df fix: default grep_search to regex mode
Closes #101
2026-04-08 13:03:47 -07:00
Timothy Jaeryang Baek 96d8134e1e feat: resolve relative paths against session cwd in all file endpoints
All LLM-exposed file endpoints (list_files, read_file, write_file,
display_file, replace_file_content, grep_search, glob_search) now
read the X-Session-Id header and resolve relative paths against the
session's working directory instead of always using fs.home.

- Added optional cwd parameter to UserFS.resolve_path()
- Relative paths join against cwd if provided, else fs.home
- Absolute paths are unaffected
- execute endpoint also resolves relative cwd param against session cwd
2026-03-29 21:34:44 -05:00
Timothy Jaeryang Baek fbaf2e8e69 feat: per-session working directory tracking via X-Session-Id header
Replace the process-global os.chdir() with an in-memory dictionary
keyed by session ID (passed via X-Session-Id header). Multiple
concurrent chat sessions now maintain independent working directories.

- GET/POST /files/cwd read X-Session-Id to resolve per-session cwd
- POST /execute falls back to session cwd when no cwd param provided
- POST /api/terminals spawns PTY in the session's cwd
- 7-day sliding TTL for session entries
- Fully backward compatible: no header = fs.home default
2026-03-29 20:59:47 -05:00
Timothy Jaeryang Baek 004ee891e6 security: harden API key handling and add startup warnings
- Increase auto-generated API key entropy from 192-bit to 384-bit
- Use hmac.compare_digest() for constant-time key comparison (HTTP + WS)
- Refuse to start without OPEN_TERMINAL_API_KEY configured
- Add prominent CORS wildcard warning at startup
- Bump version to 0.11.30
2026-03-25 17:15:15 -05:00
Timothy Jaeryang Baek 952c3f1314 fix: set group-write permission on files after chown in multi-user mode
_chown() transferred file ownership to the provisioned user but didn't
set group-write permission, leaving files at 644. The server process
(a group member) could create new files but couldn't overwrite them on
subsequent saves, returning PermissionError. Now sets chmod g+w after
chown, matching the 2770 treatment already applied to directories.

Fixes #93
2026-03-24 16:53:28 -05:00