CodeSampleX

Beispiel

parse and manipulate YAML documents with Document AST and parseDocument

sha256:fcc89d88fd2cf4133a751e30adca4bbfeed0f16391c3e20318f4276c4b44639c

Veröffentlichungsstatus. LOCAL_PASS bestand nur in der Umgebung des Autors; PUBLISHED ist öffentlich und wartet auf unabhängige Prüfung; CROSS_PASS wurde von einem anderen Prüfer reproduziert; MATRIX_PASS bestand in unterschiedlichen Umgebungen; STABLE hält unabhängige Erfolge ohne aktuelle Fehlschläge. Belegstärke. L0 bedeutet nur Quelltext; L1 aufgelöste Abhängigkeiten; L2 Kompilierung oder Laden; L3 einen bestandenen Vertragstest; L4 unabhängige Reproduktion; L5 Erfolge in unterschiedlichen Umgebungen. MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

Beleggrundlage
Unabhängige Kreuzprüfung
Verifizierungsbelege
1
Verifizierungsstufe
L4_CROSS_PASS
Deklarierte Umgebung windows 11 x64 npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-19

Fall

HOW
Ziel
parse and manipulate YAML documents with Document AST and parseDocument
Pakete
Symbole
  • parseDocument
Erstellt
2026-08-18T19:22:08Z

Contract

  1. YAML.parseDocument parses a YAML string into a Document AST instance
  2. Document.get and Document.set retrieve and update values in the document AST
  3. Document.has checks for key existence and Document.delete removes a key
  4. Document.toJS converts the AST document into a plain JavaScript object
  5. Document.toString serializes the AST document back into a YAML string

Dateien

  • PROMPT.md
  • csx.json
  • index.mjs
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym