Commit Graph

278 Commits

Author SHA1 Message Date
Sylvestre Ledru 7131cf384a Fix YAML indentation in website workflow heredoc
The heredoc body for version.js was at column 0 while the surrounding
run block is indented 10 spaces, causing YAML to terminate the block
scalar and fail with 'Invalid workflow file' at line 146. Replace the
heredoc with a grouped echo block that respects the block indentation.
2026-04-13 09:17:26 +02:00
Sylvestre Ledru d843e3d2c2 Show uutils commit hash and date on playground page
Emit a version.js alongside the WASM binary in CI recording the
coreutils commit used for the build, and display it under the
terminal with a link to the commit on GitHub.
2026-04-13 09:02:41 +02:00
Sylvestre Ledru 834f710c0f fix typos 2026-04-05 09:48:25 +02:00
Sylvestre Ledru b9f48cf0df fix typos 2026-04-05 09:41:29 +02:00
Sylvestre Ledru 19abaf2af8 Add link to GitHub source on playground page 2026-04-04 23:35:44 +02:00
Sylvestre Ledru f19bbc82d9 rename the page 2026-04-04 23:32:36 +02:00
Sylvestre Ledru e64308bb0b Strip legacy FA4 class from uudoc-generated platform icons
mdbook 0.5's built-in Font Awesome parser sees the legacy `fa` class
that uudoc emits and defaults to type=regular, failing to find
linux/windows/apple (which live under `brands`) and spamming hundreds
of WARN lines per build. Drop the `fa ` prefix between uudoc and
mdbook build for both English and translated docs.
2026-04-04 23:16:11 +02:00
Sylvestre Ledru c8c195ed63 Fix French arch --help test assertion
Upstream coreutils-l10n updated the French translation of arch-about
from "Afficher l'architecture de la machine" to "Affiche l'architecture
de la machine", which was causing the WASM terminal test to fail in CI.
2026-04-04 23:09:59 +02:00
Sylvestre Ledru c7f75bfccb Merge pull request #45 from uutils/renovate/shalzz-zola-deploy-action-0.x
Update shalzz/zola-deploy-action action to v0.22.1
2026-04-04 22:56:41 +02:00
renovate[bot] 51dffbc8a8 Update shalzz/zola-deploy-action action to v0.22.1 2026-04-04 20:23:51 +00:00
Sylvestre Ledru 886625f9da add static/wasm/ to .gitignore 2026-04-04 13:04:04 +02:00
Sylvestre Ledru 604191d5c8 Add blog post: Try uutils Coreutils directly in your browser 2026-04-04 13:00:11 +02:00
Sylvestre Ledru 824cc5d0c1 Docs: update how-it-works to reflect removal of JS fallback 2026-04-04 12:59:52 +02:00
Sylvestre Ledru 7b8c877eb0 Playground: remove JS fallback, require WASM for all commands
Remove the jsFallback function and its tests. Commands now require
the WASM binary to be loaded. If WASM is still loading, a "please
wait" message is shown instead of running JS approximations.
2026-04-04 12:58:14 +02:00
Sylvestre Ledru b00263738c Revert "Playground: capture Ctrl+W as delete-previous-word"
This reverts commit b82f7b65fb.
2026-04-04 12:53:25 +02:00
Sylvestre Ledru b82f7b65fb Playground: capture Ctrl+W as delete-previous-word
Prevent the browser from closing the tab when Ctrl+W is pressed
while the terminal is focused. Instead, handle it as the standard
terminal "delete previous word" action.
2026-04-04 12:52:31 +02:00
Sylvestre Ledru b39e3382e8 Playground: add input redirection example 2026-04-04 12:43:52 +02:00
Sylvestre Ledru c596ff7755 Playground: add support for I/O redirection (< > >>)
Parse < (stdin from file), > (stdout to file), and >> (append) in
the command line. Files are read from and written to the persistent
virtual filesystem, so redirected output persists across commands.
2026-04-04 12:43:52 +02:00
Sylvestre Ledru 99aadcf376 Playground: remove ".." JS workaround, now handled in ls 2026-04-04 12:43:52 +02:00
Sylvestre Ledru aec0f96454 Playground: clarify shell vs. coreutils responsibilities in docs
Explain that constructs like if/while/for, globbing, and variable
expansion are shell features, not coreutils features, and why they
are not available in the playground's minimal JS shell.
2026-04-04 12:43:52 +02:00
Sylvestre Ledru ddd1a9237d Playground: add "How It Works" technical documentation page
Explains the architecture (xterm.js, JS shell, WASI shim, WASM binary),
command lifecycle, pipeline execution, WASM loading, command parsing,
and the Rust side (feat_wasm, multicall binary, WASI adaptations,
locale embedding). Also adds Weblate link for missing translations.
2026-04-04 12:43:52 +02:00
Sylvestre Ledru 17e38beade Playground: fix corrupted file sizes in ls output
browser_wasi_shim's Filestat.write_bytes() uses setUint8 for the
1-byte filetype field at offset 16, leaving bytes 17-23 unwritten.
Since Rust allocates the stat buffer with MaybeUninit, those padding
bytes contain stack garbage that corrupts the struct.

Fix by replacing write_bytes with a version that writes filetype as
a full 8-byte BigUint64 (zero-extended), clearing the padding.
Also add a test asserting file sizes are reasonable.
2026-04-04 11:55:54 +02:00
Sylvestre Ledru 0c49cf76fd Add tests for ls -al WASI fixes (timestamps, parent dir) 2026-04-04 11:43:46 +02:00
Sylvestre Ledru a800abdb28 Playground: fix ls -al timestamps and parent dir access
Patch browser_wasi_shim File/Directory stat() to return current
timestamps instead of epoch 0 (which showed Jan 1 1970).

Patch path_filestat_get and path_open to resolve ".." at the
preopened root to "." instead of failing with NOTCAPABLE, matching
real filesystem behavior.
2026-04-04 11:43:42 +02:00
Sylvestre Ledru d2d1f52a10 Playground: document ?cmd= URL parameter with examples 2026-04-04 11:38:44 +02:00