SIMON Master Console Rebuild
True command center for SIMON + WEB360
This rebuild gives you a cleaner production spine: interactive tree, live viewer, guarded editor, dynamic graphics, architecture map, and note storage. It is designed to sit beside your existing
console.php
and become the stronger replacement path.
Dashboard
Tree
Viewer
System Map
File Registry
Notes
Files
15,338
Folders
408
Scanned Size
3.84 GB
PHP Files
890
Editable Text Files
12,599
File viewer
guarded to /htdocs
/web360/Engine/JobEngine.php
<?php require_once __DIR__.'/SmartEngine.php'; final class JobEngine { public static function all(): array { return w360_read('jobs',[]); } public static function create(array $data): array { $jobs=self::all(); $job=['id'=>'job_'.bin2hex(random_bytes(6)),'type'=>$data['type'] ?? 'auto','provider'=>$data['provider'] ?? 'auto','bounce'=>$data['bounce'] ?? 'off','prompt'=>trim((string)($data['prompt'] ?? '')),'status'=>'queued','result'=>null,'created_at'=>gmdate('c'),'updated_at'=>gmdate('c')]; $jobs[]=$job; w360_write('jobs',$jobs); w360_log('job.created',['id'=>$job['id']]); return $job; } public static function run(string $id): array { $jobs=self::all(); foreach($jobs as $i=>$job){ if(($job['id'] ?? '')===$id){ $jobs[$i]['status']='running'; $jobs[$i]['updated_at']=gmdate('c'); w360_write('jobs',$jobs); $res=SmartEngine::run($jobs[$i]); $jobs[$i]['result']=$res; $jobs[$i]['status']=!empty($res['ok'])?'done':'failed'; $jobs[$i]['updated_at']=gmdate('c'); w360_write('jobs',$jobs); return $jobs[$i]; } } throw new RuntimeException('Job not found'); } }
Save file
Quick jump
open a path
Open