CodeSampleX

Sample

Retrieve AST nodes, dependencies, minimum version, and metadata for runtime helpers with @babel/helpers

sha256:5af1e96ca115e335bdc16d2538e1001bae469f6b375379a69fe30b8485ab73b3

Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures. Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments. MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basis
Independent cross-verification
Verification receipts
1
Verification level
L4_CROSS_PASS
Declared environment linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-20

Case

HOW
Goal
Retrieve AST nodes, dependencies, minimum version, and metadata for runtime helpers with @babel/helpers
Packages
Created
2026-08-20T21:24:14Z

Contract

  1. listAllHelpers returns an array of runtime helper names including typeof, classCallCheck, and wrapRegExp
  2. hasHelper checks if a helper is registered in @babel/helpers list
  3. getHelperAst retrieves the AST node statements for a helper declaration
  4. getHelperGlobals returns the required global identifiers for a helper
  5. getHelperMinVersion returns the minimum Babel runtime version for a helper
  6. getHelperDependencies returns dependent helper names required by a helper
  7. isHelperInternal indicates whether a helper is flagged for internal compiler use
  8. getHelperAst throws BABEL_HELPER_UNKNOWN ReferenceError when requesting an unknown helper name

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous