CodeSampleX

Exemplo

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

sha256:5af1e96ca115e335bdc16d2538e1001bae469f6b375379a69fe30b8485ab73b3

Estado de publicação. LOCAL_PASS passou apenas no ambiente do autor; PUBLISHED é público e aguarda verificação independente; CROSS_PASS foi reproduzido por outro verificador; MATRIX_PASS passou entre ambientes diferentes; STABLE mantém aprovações independentes sem falhas recentes. Força da evidência. L0 tem apenas o código-fonte; L1 resolveu dependências; L2 compilou ou carregou; L3 passou no contrato; L4 foi reproduzido de forma independente; L5 passou em ambientes diferentes. MIT-0

Evidência de execução

O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.

Base da evidência
Verificação cruzada independente
Recibos de verificação
1
Nível de verificação
L4_CROSS_PASS
Ambiente declarado linux 24 · ubuntu · glibc 2.39 x64 npm

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
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

Caso

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

Contrato

  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

Arquivos

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

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo