Skip to content

v0.4.0

Latest

Choose a tag to compare

@driversti driversti released this 22 Feb 09:14

What's New

  • File Manager — Full file manager accessible from the Android app: browse with metadata (size, date, file type), create files/directories, rename/move, and delete with confirmation dialogs.
  • Text File Editor — View and edit text files with a monospace editor, line number gutter, save with .bak backup, and discard-changes safety dialog.
  • Agent Update UI — ServerDetailScreen now shows agent version and a one-tap Update button when a new release is available.

New API Endpoints

Method Path Description
GET /api/v1/fs/read?path= Read text file contents (1MB limit, binary detection)
PUT /api/v1/fs/write Write file with .bak backup
POST /api/v1/fs/mkdir Create directory
POST /api/v1/fs/rename Rename/move file or directory
DELETE /api/v1/fs/delete?path= Delete file or directory

Enhanced

  • GET /api/v1/fs/browse now returns size, modified_at, and file_type for each entry
  • Browse skips .bak backup files
  • File type icons in the Android file browser (code, config, script, image, etc.)

Fixed

  • Self-update now works on servers where the binary directory is not writable by the service user (e.g. /usr/local/bin owned by root). Downloads to system temp dir with cross-filesystem copy fallback.

Safety

  • Binary file detection (null-byte check, returns 415)
  • 1MB size limit for read/write
  • System directory deletion protection (post-symlink-resolution)
  • Path traversal prevention on the client side