@unotest/core
v0.9.1
Published
Shared runner-side utilities for the @unotest ecosystem: JSONL run-artifact writer (steps.jsonl + heartbeat), atomic run-manifest + run-sources writers, atomic runtime-state writer with a protocol-normalizing runtime-inspection helper, layered .env reader
Readme
@unotest/core
Shared runner-side utilities for the @unotest ecosystem — the thin
filesystem layer both @unotest/web and @unotest/mobile need:
JsonlRunArtifactWriter/createRunArtifactWriter— append-onlysteps.jsonl+ heartbeat file in a run dir; synthesizes a terminalrun:finishedon close; optional event redactor (secret masking).writeRunManifest— atomic (tmp + rename)manifest.jsonwriter.readEnvLayers/applyEnvLayers/readEnvFile— layered env loading across the target (dash) and environment (dot) axes (.env → .env-<target> → .env.<env> → .env-<target>.<env>), ambientprocess.envalways winning.appendUniqueLines— idempotent.gitignore(or any line-based file) updater used by the runners'init.
Depends only on @unotest/protocol. Unlike protocol (pure data, no fs),
this package deliberately owns filesystem side effects.
