SourcePageHandler
Complete JSON pages of UTF-8 source; the cursor binds a byte position to path and content.
SourcePageHandler::__construct()
public function __construct(Milpa\DevTools\Support\RootResolver $roots = new RootResolver()):Parameters
| Name | Type | Description |
|---|---|---|
| $roots | Milpa\DevTools\Support\RootResolver |
SourcePageHandler::handle()
public function handle(array $input, ?Milpa\Command\InvocationContext $context = null, ?Milpa\ToolRuntime\Contracts\ToolContext $authority = null): arrayThe caller supplies a budget outside a model transport; an explicit bound only tightens it. Each invocation rereads the complete file to reject a cursor for changed content.
Parameters
| Name | Type | Description |
|---|---|---|
| $input | array<string, mixed> | |
| $context | ?Milpa\Command\InvocationContext | |
| $authority | ?Milpa\ToolRuntime\Contracts\ToolContext |