feat(commands): 9 new REPL commands — v0.3.0 (PRD-004) - #4
Merged
Merged
Conversation
Port of 9 missing commands from Node.js moleculer-repl: - bench: action benchmarking (req/sec, latency stats) - cache: keys listing + clear by pattern - cls: clear terminal screen - destroy: remove local service at runtime - env: display environment variables - listener: subscribe/unsubscribe to events live - load: load service from .py file dynamically - metrics: display collected metrics - quit: graceful broker stop + exit Total: 18 commands (was 10). 95%+ Node.js parity. 231 existing tests pass, ruff clean. Refs: PRD-004 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Audit: 2 CRITICAL + 5 HIGH → all fixed: - listener.py: instance-level state (was global module dict → memory leak) - listener.py: uses local_bus for event subscription - bench.py: real RPS = total/wall_time (was 1000/avg_ms) - bench.py: default 5s time-based mode (Node.js compat) - bench.py: error timings counted in stats - load.py: security warning in docstring 231 tests pass, ruff clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
9 new commands: bench, cache, cls, destroy, env, listener, load, metrics, quit.
18/19 Node.js parity. 231 tests pass.
🤖 Generated with Claude Code