Skip to content

Keep the wf prefix, add read-only file commands and the dependency graph to the terminal (#575) - #576

Merged
ambroise-leclerc merged 3 commits into
developfrom
575-terminal-commands
Nov 14, 2026
Merged

ambroise-leclerc merged 3 commits into
developfrom
575-terminal-commands

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Closes #575. Decision recorded in ADR-023.

What changes

  • wf stays the prefix of project commands. Bare names belong to the terminal and to the application; a wf command typed without its prefix is not run and answers with the line to type (Did you mean: wf install react?).
  • Read-only file commands in the terminal: ls [-l] [-a], cat, tree [-a] [-L n] and mounts (what the application serves to the browser, layer by layer). Paths are relative to the project and cannot leave it.
  • ls -l uses a new callback, webfront.developer.entries (Store::entries). It is an addition: the environment API version stays 1, and an older library only loses ls -l.
  • Dependency graph: wf list --tree, wf why <package>, wf info <package>, read from the lock alone.
  • Environment 0.9.3 in distribution.json; the pinned header stays on 0.9.2 until the release.

Breaking

webfront::commands::reservedNames grows from 5 to 26 names: ls, cat, tree, mounts, and the file commands reserved without being provided (cd, pwd, cp, mv, rm, mkdir, rmdir, touch, edit, find, grep, head, tail, less, stat, du, df). echo is deliberately not reserved.

Tests

  • Catch2: Store::entries, reserved names.
  • Jasmine (wf test): files-specs.mjs, dependencies-specs.mjs (29 specs; 196 in total pass).
  • Browser: the terminal part of developer_integration runs the commands; wf list --tree, wf why, wf info in the application part.
  • Local: 615/615 without CEF, 107/107 web-integration with CEF (GCC 16.1, Release).

Note

With GCC 16.1 in Release, the CEF test targets fail on -Werror=array-bounds in CEF.hpp (CefRefCount::AddRef inlined), in code this PR does not touch; the local CEF run used -Wno-error=array-bounds.

…aph to the terminal (#575)

The terminal gains ls, cat, tree and mounts, which only read the project, and reserves the usual
file command names it does not provide. wf list --tree, wf why and wf info read the graph of the
lock. A wf command typed without its prefix answers with the line to type. Store::entries and the
webfront.developer.entries callback give ls -l sizes and dates. Environment 0.9.3.
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 74b0f47c-c1fe-4a3d-95be-78d87342e579
Commits

Reviewing files that changed from the base of the PR and between 0cc72ea and d831135.

Files selected for processing: 26

  • AGENTS.md
  • README.md
  • docs/CHANGELOG.md
  • docs/DEVELOPER_ENVIRONMENT.md
  • docs/DEVELOPING_WITH_AGENTS.md
  • docs/PROJECT_STATUS.md
  • docs/adr/ADR-023-espace-de-noms-des-commandes-du-terminal.md
  • docs/adr/README.md
  • include/webfront/Commands.hpp
  • include/webfront/DeveloperApp.hpp
  • include/webfront/system/DeveloperStore.hpp
  • js/developer/environment/bundles.json
  • js/developer/environment/commands.mjs
  • js/developer/environment/dependencies.mjs
  • js/developer/environment/files.mjs
  • js/developer/environment/runtime.mjs
  • js/developer/environment/terminal.mjs
  • js/developer/tools/bundle-inputs.json
  • js/developer/tools/distribution.json
  • js/developer/webfront.project.json
  • test/developer/memory-bridge.mjs
  • test/developer/specs/dependencies-specs.mjs
  • test/developer/specs/files-specs.mjs
  • test/unit/CommandsTests.cpp
  • test/unit/DeveloperTests.cpp
  • test/web/developer-specs.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…cept -L3, -aL 2 and --, say when tree names a file (#575)

Names of files and packages, and what a package.json declares, are shown with their C0, DEL and
C1 control characters made visible in ls, tree, wf list, wf why and wf info, like the text of
cat. tree reports a file as one and shows a directory it can no longer list without content.
wf info reads a license in its string, object and array forms. The browser journey pins the
bridge's wording for a callback that is not registered, which ls -l reads to recognize an older
library. ADR-023 states the cost of reserving names that are not provided.
@ambroise-leclerc
ambroise-leclerc merged commit 9f9e7c0 into develop Nov 14, 2026
42 of 45 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 575-terminal-commands branch November 14, 2026 16:32
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.

Terminal développeur : garder le préfixe wf, commandes de fichiers en lecture seule, graphe des dépendances

2 participants