Conversation
- container.run() API for executing shell commands (npm run, npm test, etc.) - Real vitest test execution using @vitest/expect assertions - Vitest watch mode with VFS file watchers and auto-rerun - Streaming container.run() with onStdout/onStderr/signal options - xterm.js terminal with ANSI color rendering in vitest demo - Save button and Cmd+S/Ctrl+S support in editor - npm scripts demo and vitest testing demo pages - Docs updates for streaming API and watch mode - E2E tests for npm scripts and vitest demos - Unit tests for npm run, vitest run, and vitest command Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…im fixes - Generic bin stubs: npm install creates /node_modules/.bin/ scripts from package bin fields - Streaming container.run() with onStdout/onStderr/signal (AbortController) support - container.sendInput() for stdin to running processes (data + keypress events) - Watch mode restart pattern: abort + re-launch vitest on file save (Vite caches modules) - Object.defineProperty patch forces configurable: true on globalThis properties - VFS adapter returns 0o755 mode for .bin/ files (just-bash executability check) - Runtime.clearCache() now clears in-place instead of replacing the object - New shims: rollup, fs.realpathSync.native, fs.createReadStream/WriteStream - New process methods: getuid(), getgid(), umask() - path.delimiter, path.win32, util.deprecate() - Removed custom vitest command — vitest runs through generic bin stub + node - Updated README with CLI tools, streaming, and API reference docs - Updated CHANGELOG and bumped version to 0.2.12 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Object.defineProperty override: use `object` return type with cast - _activeProcessStdin.emit: accept variadic args for keypress events - Process interface: add optional `send` and `connected` for IPC support Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🟢 Node.js Compatibility: 98%
Modules tested
|
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.
Summary
npm installreads each package'sbinfield and creates executable scripts in/node_modules/.bin/. CLI tools likevitest,eslint,tsc, etc. work automatically — no custom commands needed.container.run()API withonStdout/onStderrcallbacks andAbortControllersignal for long-running commandscontainer.sendInput()sends stdin data to running processes (emits bothdataandkeypressevents for readline compatibility)vitest-command.tsdeleted) — vitest now runs through the generic bin stub +nodecommand like any other CLI toolObject.definePropertyglobalThis patch,Runtime.clearCache()in-place fix, VFS adapter executable mode for.bin/filesfs.realpathSync.native,fs.createReadStream/createWriteStream,path.delimiter,path.win32,process.getuid()/getgid()/umask(),util.deprecate()Test plan
npm run test:run)npm install vitestcreates/node_modules/.bin/vitestvitest runexecutes through bin stub → node command → real vitest🤖 Generated with Claude Code