Skip to content

Releases

module-kit v0.3.0

Choose a tag to compare

@immakermatty immakermatty released this 06 Nov 09:05
3a733c4

Adds appAccess(request, id = "app", env) (Python: app_access(headers, listener_id)): who came to the App and with which application role, the stable contract of Lazurio decision 0231. Every answer has the same five fields: entry (environment, app, local, unknown), appRole (admin, user, none with unknown), person (Lazurio subject and username), source (gateway, later auth) and reason. A request whose Host names the App's hostname counts only by the gateway's statement; only a loopback Host is local; a missing, repeated or malformed statement is unknown, never a role. proof/gateway.ts runs both implementations behind the real gateway.

Available on an Environment once the gateway release that states the person and the entry (HumanAndMachine-ai/Machines#1103) reaches it; until then a hosted request reads unknown. Everything from v0.2.0 unchanged. Install: bun add github:Lazurio/module-kit#v0.3.0; Python uv add "lazurio-module-kit @ git+https://github.com/Lazurio/module-kit@v0.3.0#subdirectory=python".

module-kit v0.2.0

Choose a tag to compare

@immakermatty immakermatty released this 30 Sep 10:26

Adds viteShutdownPlugin(): on SIGTERM/SIGINT it closes every connection of the Vite dev or preview server, bounds server.close() (2 s) and exits 0 — the Lazurio Module Standard 4.4 stop contract for Vite-based Apps (issue #1). Everything from v0.1.0 unchanged. Install: bun add github:Lazurio/module-kit#v0.2.0.

module-kit v0.1.0

Choose a tag to compare

@immakermatty immakermatty released this 30 Sep 08:19

First release of the Lazurio Module Standard runtime helpers (manual/module-standard.md, decision 0171): listener, listeners, runtimeIdentity, allowedHosts, viteServerOptions, astroServerOptions, health, withHealth, onShutdown, requireEnvironment; Python package lazurio-module-kit with listener and health. Install: bun add github:Lazurio/module-kit#v0.1.0.