Skip to content

Add read-only terminal portfolio filesystem - #19

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/terminal-emulation-feature-4c75
Draft

Add read-only terminal portfolio filesystem#19
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/terminal-emulation-feature-4c75

Conversation

@cursor

@cursor cursor Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Issue

Problem

The terminal interface exposed pwd/cd placeholders and ls only listed commands, which limited the site’s terminal-emulation goal.

Proposed solution

Add a generated, read-only /home/guest portfolio filesystem backed by existing site JSON data.

Acceptance criteria

  • pwd prints the current virtual directory.
  • ls [path] lists filesystem entries, with ls --commands preserving the command index.
  • cd [path] supports relative paths, absolute paths, ~, ., and ...
  • cat [file] reads generated portfolio files.
  • tree [path] renders recursive directory trees.
  • Tab completion includes filesystem paths for cd, cat, ls, and tree.

Changes

  • Added virtual filesystem helpers and path resolution utilities in src/lib/terminal/index.js.
  • Wired pwd, ls, cd, cat, and tree into the terminal runtime with path-aware prompts.
  • Added unit coverage for filesystem generation, traversal, errors, tree output, and completions.
  • Documented the terminal filesystem in README.md.

Verification

  • Pre-push npm run check passed: lint, format check, coverage tests, and Astro build.
Open in Web View Automation 

cursoragent and others added 2 commits May 25, 2026 12:06
Co-authored-by: Jakob Langtry <jjalangtry@users.noreply.github.com>
Co-authored-by: Jakob Langtry <jjalangtry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant