Exemple
Asynchronously and synchronously stream logs to files with buffered flushing and lifecycle handling using SonicBoom
sha256:70f5afee3fc41296a397eb25f0f4d405756e9bd0db91832874ce46fe2dc45643
Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré.
Force de la preuve. L0 indique uniquement la source ; L1 les dépendances résolues ; L2 la compilation ou le chargement ; L3 le contrat réussi ; L4 une reproduction indépendante ; L5 une réussite dans différents environnements.
MIT-0
Preuves d'exécution
L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.
- Base de preuve
- Vérification croisée indépendante
- Reçus de vérification
- 1
- Niveau de vérification
- L4_CROSS_PASS
Environnement déclaré
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10
Environnements des exécutions de vérification
| Environnement | Contrat | Étapes | Exécution |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-21 |
Cas
HOW- Objectif
- Asynchronously and synchronously stream logs to files with buffered flushing and lifecycle handling using SonicBoom
- Paquets
- Symboles
-
- SonicBoom
- Environnement
- node 22.23.2
- Créé
- 2026-08-21T04:33:38Z
Contrat
- SonicBoom creates a stream instance and writes string logs asynchronously emitting ready and write events
- SonicBoom buffers writes when minLength is set and flushes data to disk on manual flush or flushSync
- SonicBoom operates in synchronous mode with sync: true writing immediately to destination file
- SonicBoom supports contentMode buffer for writing raw Buffer instances
- SonicBoom emits drop event when buffered data exceeds maxLength
- SonicBoom reopens destination file on reopen method call for log rotation
- SonicBoom end method drains buffered data and emits finish and close events
- SonicBoom destroy method closes file descriptor immediately without flushing remaining buffer
Fichiers
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.cjs
Seeder d'origine
anonyme