Repository navigation
Keep the wf prefix, add read-only file commands and the dependency graph to the terminal (#575) - #576
Merged
Merged
Conversation
…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.
|
Warning Review limit reachedYou'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. View limit details
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. |
…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.
AM-L
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #575. Decision recorded in ADR-023.
What changes
wfstays the prefix of project commands. Bare names belong to the terminal and to the application; awfcommand typed without its prefix is not run and answers with the line to type (Did you mean: wf install react?).ls [-l] [-a],cat,tree [-a] [-L n]andmounts(what the application serves to the browser, layer by layer). Paths are relative to the project and cannot leave it.ls -luses a new callback,webfront.developer.entries(Store::entries). It is an addition: the environment API version stays 1, and an older library only losesls -l.wf list --tree,wf why <package>,wf info <package>, read from the lock alone.distribution.json; the pinned header stays on 0.9.2 until the release.Breaking
webfront::commands::reservedNamesgrows 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).echois deliberately not reserved.Tests
Store::entries, reserved names.wf test):files-specs.mjs,dependencies-specs.mjs(29 specs; 196 in total pass).developer_integrationruns the commands;wf list --tree,wf why,wf infoin the application part.web-integrationwith CEF (GCC 16.1, Release).Note
With GCC 16.1 in Release, the CEF test targets fail on
-Werror=array-boundsinCEF.hpp(CefRefCount::AddRefinlined), in code this PR does not touch; the local CEF run used-Wno-error=array-bounds.