The main package of the Larena Panel edition: the server area of a hosting panel. simai-env stays the only component that changes the host; this package asks it through the panel gateway and shows the answers. An action is never done by the panel: it is planned, confirmed by a person, and run by the server as a job the panel follows.
Contracts\PanelGateway: ask one question, get an answer with a status and, unless it is ok, a reason code. Drivers never throw for a refusal or a failure.Gateway\RecordedAnswersGateway: replays answers recorded by simai-env (resources/recorded-answers, a sample oftesting/fixtures/panel/with its manifest). Allowed only inlocalandtesting; the screen says the data is recorded.Gateway\SshGateway: ssh to the gateway over a key with a forced command, throughProcessExecutorandGatewayRunnerof larena/core. The request goes on stdin as one JSON line; argv holds only the configured target. The credential is a path to a key; ssh's stderr is never kept, shown or logged.Gateway\SudoGateway: the same protocol to the gateway on this server,sudo -n /usr/local/sbin/simai-panel-gatewith no arguments and one JSON line on stdin; the default, the way a panel installed bypanel installreaches it.Server\ServerOverviewReader:self:describeas typed data, without paths and database names.Server\SiteDetailsReader: one site (site:describe) and its nginx log (logs:nginx), typed the same way: a backup is named by its own name, never by its path on the host.Operations\PanelOperations: the one way an action happens —plan()says what it would do,start()runs it only after a person confirmed that plan,view()follows the job it started andcancel()stops one that still runs.Operations\SiteOperation: the actions a site's screen offers, and which of them suit it: a site without a certificate has nothing to renew, without a previous release nothing to roll back to, without workers no queue to restart.Area\ServerArea: the main scopeorganization:server.php artisan larena:env:arearegisters it; a panel assembly setslarena-core.first_runtoServerArea::firstRunDeclaration().People\PersonOwners: which owner of the server a person at the user level works as;People\PanelAudit: the panel's own audit events./admin/server/peoplegives people their spaces and lets the system level look as them./admin/server,/admin/server/sites/<domain>and/admin/server/jobs/<id>: the screens, composed only where larena/admin is installed. Reading them isenv.server.read; planning, confirming and stopping isenv.server.operate.
- larena/audit is required (composer
require, auditor msg-3d61bd36 point 2). The panel profile ships it in every case: Root'scomposer.distribution.jsonand the panel'sassembly/composer.jsonboth require it, so making it a hard dependency costs nothing and says what the code needs. A change of the server is still refused explicitly where the audit sink is not bound (an application that installed the package without registering larena/audit's provider):PanelOperations::startCommand()answersaudit_unavailablebefore the server is asked, while plans and reads go on. - The chain of a change.
PlanResultcarries the plan's request id (the plan id) and the server'soperation_id;PlanReceiptskeeps them in the plan's receipt (Operations\PlanTrail, one per request). The confirmed receipt hands them to the start:JobStartResultis the job's receipt — who (and for whom, while acting as someone), the start'srequest_id,plan_id,job_idandoperation_id— and the same set is written asenv.server.change_started, correlated by the plan id.JobViewResultcarries the job's starting request and its operation id; the job's screen shows the operation id. - Who hears about the server.
People\PanelRecipientsis the one list for the bell and the mail: active administrators who holdenv.server.read, and for a site the active people of its server account who holdenv.sites.read. Access and Auth do not signal blocking, a revoked role or a removal, so the list is worked out when it is used;larena:env-checkdrops the link «person — server account» of a removed person or of one who lostenv.sites.readon each run, each drop in the audit log (env.person.owner_released, reasonremovedorright_revoked). A blocked person keeps the link and is not told.
Providers\EnvDeclarations is the one source of the package's rights (RIGHTS: six, with label, target, grant, risk
and audit) and audit events (AUDIT_EVENTS, the 22 the panel writes; VIEW_EVENTS, the 17 its menu rows name). The
provider registers the rights from it and PanelAudit refuses to write a type it does not name. access.yaml,
audit.yaml and module.yaml are written by hand to match it, and composer run declarations:check (part of
quality:gate) fails on any difference: a file's list or field, the rights the provider registers, the menu's rights and
view events, the access: rights of routes and config, the rights the code authorizes, and the events it writes — an
undeclared one, or a declared one nothing writes. A new right or event goes into EnvDeclarations first, then into the
three files.
LARENA_ENV_GATEWAY is sudo (default; LARENA_ENV_SUDO_BINARY, _GATE, _TIMEOUT), recorded or ssh; for ssh also LARENA_ENV_SSH_HOST, _USER (simai-panel),
_PORT, _KEY (a path), _KNOWN_HOSTS (a path; the host's key must be there), _BINARY, _TIMEOUT. An incomplete
target, or recorded answers outside local and testing, leaves the screen saying gateway_not_configured.
The panel's background jobs on the application's scheduler — larena:env-check every 5 minutes and larena:env-warm every
minute — run only where larena-env.scheduler.enabled is on (LARENA_ENV_SCHEDULER_ENABLED, off by default). The panel's
edition (PanelEditionServiceProvider) turns it on, and larena/notification's daily cleanup with it; any other application
that installs this package schedules nothing.
assembly/ is the application of the Larena Panel edition: exact package revisions in composer.lock, the list in
build.json, the requirements for simai-env in .simai/app.json. scripts/build-panel-archive.sh makes
dist/larena-panel-<version>.tar.gz and its .sha256, with vendor/ and the Framework assets inside, for
simai-admin.sh panel install --archive <file> --sha256 <hash> --domain <name> --confirm yes.
Providers\PanelEditionServiceProvider, listed only by the assembly:
- the release works with a
.envthat holds only the database:Panel\PanelEnvironmentgives the defaults and writesAPP_KEYonce; /?setup=<SIMAI_PANEL_SETUP_TOKEN>opens the first-run screen for one browser session, and without it the screen answers 403; when the first administrator exists, the line is removed from.env;artisan migratealso synchronizes the access presets and registers the server's scope; safe to run again;/upanswers without sign-in;/and/adminlead to the server screen;- state is only in
.envandstorage/; the records naming the Framework bundle are put intostorage/from the release.
composer run quality:gate. Re-record the sample with simai-env after a change of the answers' shape, never edit it by hand:
a file that differs from its manifest is refused (recording_tampered).