Skip to content

Add Meta Commands to WASM Browser REPL#2170

Merged
KCarretto merged 2 commits intomainfrom
add-wasm-browser-repl-meta-commands-1599520417755463683
Apr 6, 2026
Merged

Add Meta Commands to WASM Browser REPL#2170
KCarretto merged 2 commits intomainfrom
add-wasm-browser-repl-meta-commands-1599520417755463683

Conversation

@KCarretto
Copy link
Copy Markdown
Collaborator

Adds a new local execution path (meta commands) to the WASM Browser REPL, initially supporting help and help(obj) commands. The Rust interpreter now intercepts these inputs and returns a structured enum, which is handled directly by the frontend terminal to display static documentation.


PR created automatically by Jules for task 1599520417755463683 started by @KCarretto

Introduced a `MetaCommand` enum in `eldritch-wasm` and implemented AST parsing inside `BrowserRepl::input` to identify explicit meta commands such as `help` and `help(...)` that should execute entirely inside the browser.

Updated the TypeScript adapter and React hooks to process responses with `status: "meta"`, and implemented the `handleMetaCommand` logic in `useShellTerminal.ts` to output formatted documentation loaded directly from the `eldritch-docs.json` asset.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 6, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
208 208 0 0 0 0 1ms

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#1937 208 208 0 0 0 0 not captured

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
208 0 0 704ms

Test Changes

0 test added, 0 removed

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter component interactions > should preserve filter values when toggling lock state 1 704ms 704ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter lock/unlock toggle > should toggle isLocked when lock button is clicked 1 701ms 701ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter lock/unlock toggle > should disable filter components when isLocked is true 1 582ms 582ms
src/components/create-shell-button/CreateShellButtonWindowOpen.test.tsx: CreateShellButton opens new tab on click 1 447ms 447ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter label calculation > should count text search filters correctly 1 443ms 443ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter label calculation > should count multiple active filters correctly 1 405ms 405ms
src/context/SortContext/tests/SortingControls.test.tsx: SortingControls > Updating sort settings > should update sort field when field dropdown changes 1 371ms 371ms
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter component interactions > should update filter state when inputs change 1 343ms 343ms
src/components/tavern-base-ui/table/tests/Table.test.tsx: Table > Column sorting > should set column width from getSize() 1 229ms 229ms
src/components/tavern-base-ui/table/tests/TablePagination.test.tsx: TablePagination > Navigation callbacks > should call refetchTable with startCursor on Previous click 1 208ms 208ms

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

@KCarretto KCarretto marked this pull request as ready for review April 6, 2026 02:29
@KCarretto KCarretto merged commit 53bc819 into main Apr 6, 2026
1 of 8 checks passed
@KCarretto KCarretto deleted the add-wasm-browser-repl-meta-commands-1599520417755463683 branch April 6, 2026 02:29
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