Standardize settings file naming and relocate documentation files Fix code quality violations from rsx:check Reorganize user_management directory into logical subdirectories Move Quill Bundle to core and align with Tom Select pattern Simplify Site Settings page to focus on core site information Complete Phase 5: Multi-tenant authentication with login flow and site selection Add route query parameter rule and synchronize filename validation logic Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs Implement filename convention rule and resolve VS Code auto-rename conflict Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns Implement RPC server architecture for JavaScript parsing WIP: Add RPC server infrastructure for JS parsing (partial implementation) Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation Add JQHTML-CLASS-01 rule and fix redundant class names Improve code quality rules and resolve violations Remove legacy fatal error format in favor of unified 'fatal' error type Filter internal keys from window.rsxapp output Update button styling and comprehensive form/modal documentation Add conditional fly-in animation for modals Fix non-deterministic bundle compilation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
RSX Binary Tools
This directory contains standalone command-line tools for the RSX framework.
rsx-format
A standalone PHP formatter for RSX files that is completely independent of Laravel.
Features
- Laravel-independent: Runs without requiring Laravel bootstrap
- Namespace management: Automatically updates namespaces based on file location
- Use statement generation: Detects and adds required use statements
- PHP 8 Attribute support: Properly detects and resolves attribute classes
- Pint integration: Applies Laravel Pint formatting after fixing structure
- Smart detection: Only formats files that need it
Usage
# Format a single file
php bin/rsx-format path/to/file.php
# Force formatting even if file appears formatted
php bin/rsx-format path/to/file.php --force
How It Works
- Detects file type: RSX, app, or other directories
- For RSX class files:
- Updates namespace to match directory structure
- Extracts all referenced classes (including PHP 8 attributes)
- Generates and updates use statements
- Adds LLM directive markers
- Normalizes spacing
- Applies Pint formatting
- For non-class files: Just applies Pint formatting
VS Code Integration
The formatter is automatically run on save for all PHP files via the VS Code settings:
"emeraldwalk.runonsave": {
"commands": [{
"match": "\\.php$",
"cmd": "php ${workspaceFolder}/bin/rsx-format ${file}"
}]
}
Why Standalone?
The formatter needs to be able to process PHP files that may not be valid PHP yet (missing use statements). If it depended on Laravel's autoloader, it would fail when trying to load classes with syntax errors, creating a chicken-and-egg problem.
By being standalone, it can:
- Parse files using simple regex patterns
- Add missing use statements to make files valid
- Then apply more sophisticated formatting
This ensures files can always be formatted, even when they're in an invalid state.