Native JSONL task supervisor for deadcode-laravel.
The supervisor reads one task.run frame from stdin, emits a task.started frame, runs the PHP worker, and relays the worker's JSONL result back to stdout. It is intentionally small: Laravel runtime behavior stays in deadcode-laravel, and dead-code analysis stays in deadcore.
go test ./...
go build -o bin/deadcode-supervisor ./cmd/deadcode-supervisorOn Windows:
go test ./...
go build -o bin/deadcode-supervisor.exe ./cmd/deadcode-supervisorInputs:
- stdin: one JSONL
task.runframe emitted bydeadcode-laravel DEADCODE_WORKER_SCRIPT: optional path tobin/ox-runtime-worker.phpDEADCODE_WORKER_BOOTSTRAP: optional path to the Laravel bootstrap fileDEADCODE_PHP_BINARY: optional PHP executable, defaults tophp
Defaults:
- worker script is resolved from the current Laravel app's
vendor/deadcode/deadcode-laravel/bin/ox-runtime-worker.php - bootstrap file is resolved from
bootstrap/app.phpunder the current working directory
Outputs:
task.started- worker-emitted
task.completed, ortask.failedif the worker exits unsuccessfully
deadcode-laravelowns Laravel bootstrapping, task handlers, reports, staging, and rollbackdeadcoreowns static analysis anddeadcode.analysis.v1go-supervisorowns process supervision and JSONL relay only