included more features

This commit is contained in:
rob 2025-10-15 23:03:34 -03:00
parent 58afa54a7d
commit 4eb4a6b8db
1 changed files with 15 additions and 0 deletions

View File

@ -23,6 +23,21 @@
verbose(msg, data) { this._log(4, 'VERBOSE', msg, data); }
trace(msg, data) { this._log(5, 'TRACE', msg, data); }
/**
* Logs command lifecycle events with visual icons for easy scanning.
*
* Currently unused in the refactored architecture, but reserved for future
* command state tracking. The dev branch used this extensively for monitoring
* command execution through different states.
*
* @param {string} action - The command action (e.g., 'get_file', 'update_file')
* @param {string} status - Command status: 'detected', 'parsing', 'validating', 'debouncing', 'executing', 'complete', 'error'
* @param {Object} [extra={}] - Additional data to log
*
* @example
* log.command('get_file', 'executing', { path: 'src/main.js' });
* // Logs: "⚙️ get_file [executing]" with extra data
*/
command(action, status, extra={}) {
const icon = {
detected:'👁️', parsing:'📝', validating:'✓', debouncing:'⏳',