Beispiel
@types/babel__template 7.4.4
Verifiziertes Beispiel für npm @types/babel__template 7.4.4. Der Vertrag lief auf node 22 · linux alpine/x64 · docker und bestand.
sha256:03481f9fd4c75bf91eda6fb66ab7e3e7cd2a68da61b6f7aa7bf8451462f870f2
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 1
- Signaturschlüssel, die es gebaut haben
- 1
Deklarierte Umgebung
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| 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 |
Fall
HOW- Ziel
- verify pkg:npm/%40types/babel__template@7.4.4
- Pakete
- Umgebung
- node 22.23.2
- Erstellt
- 2026-08-21T10:14:41Z
Contract
- @types/babel__template provides TypeScript declarations for @babel/template AST template builder
- template builder creates Statement AST nodes using template.statement and template.smart
- template builder creates Expression AST nodes using template.expression
- template builder creates Program AST nodes and Statement arrays using template.program and template.statements
- template.ast parses code strings directly into AST nodes without an intermediate function
Dateien
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
Quelltext
Clean-room public code sample — generation instructions
Write a brand-new, minimal, self-contained code sample in this clean-room directory.
Do not copy, paraphrase, or reference any existing project source. Work only from this spec.
A csx.json manifest scaffold already exists. Do not recreate it from memory. Preserve its case.goal, packages and symbols; fill its empty case.contract with exact assertions and correct its environment, commands and verifierAdapter for the files you generate.
Goal: verify pkg:npm/%40types/babel__template@7.4.4
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/%40types/babel__template@7.4.4
Constraints:
- executionContext: node
Required runtime conditions:
- ecosystem: npm
- language: javascript
- moduleSystem: cjs
- packageManager: npm@10.9.8
- runtime: node@22.23.2
Rules:
- One focused purpose; the smallest project that proves the goal.
- Include a contract test (test/contract.*) that runs OFFLINE and exits 0 exactly when the goal behavior works.
- Pin every dependency with a lockfile so resolution is reproducible.
- No secrets, credentials, or tokens. No real URLs (only example.com or localhost). No absolute paths.
- No personal names, emails, company names, or project identifiers of any kind.
- No binaries and no generated output (node_modules, dist, target, venv, .git, .env).
- Keep it under 200 files and 256KB packed.
{"case":{"caseId":"case:sha256:ecfd4750860f1c638ccf739d986a35887564dac6856cece3822aba4b26a73bd6","constraints":{"executionContext":"node"},"contract":["@types/babel__template provides TypeScript declarations for @babel/template AST template builder","template builder creates Statement AST nodes using template.statement and template.smart","template builder creates Expression AST nodes using template.expression","template builder creates Program AST nodes and Statement arrays using template.program and template.statements","template.ast parses code strings directly into AST nodes without an intermediate function"],"goal":"verify pkg:npm/%40types/babel__template@7.4.4","kind":"HOW","packages":["pkg:npm/%40types/babel__template@7.4.4"],"schemaVersion":1},"contractCommand":["node","test/contract.mjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","executionContext":"node","language":"javascript","libc":"glibc","libcVersion":"2.39","moduleSystem":"cjs","os":"linux","osVersionBucket":"24","packageManager":"npm","packageManagerVersion":"10.9.8","runtime":"node","runtimeVersion":"22.23.2","schemaVersion":1},"license":"MIT-0","packages":["pkg:npm/%40types/babel__template@7.4.4"],"schemaVersion":1,"subject":"pkg:npm/%40types/babel__template@7.4.4","verifierAdapter":"node-typescript@1"}
{
"name": "sample-babel-template-types",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-babel-template-types",
"version": "1.0.0",
"dependencies": {
"@babel/template": "7.25.9",
"@types/babel__template": "7.4.4"
}
},
"node_modules/@babel/code-frame": {
"version": "7.29.7",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
"integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
"license": "MIT",
"dependencies": {
"@babel/helper-validator-identifier": "^7.29.7",
"js-tokens": "^4.0.0",
"picocolors": "^1.1.1"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-string-parser": {
"version": "7.29.7",
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
"integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
"license": "MIT",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-validator-identifier": {
"version": "7.29.7",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
"integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
"license": "MIT",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/parser": {
"version": "7.29.8",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",
"integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",
"license": "MIT",
"dependencies": {
"@babel/types": "^7.29.8"
},
"bin": {
"parser": "bin/babel-parser.js"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@babel/template": {
"version": "7.25.9",
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz",
"integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==",
"license": "MIT",
"dependencies": {
"@babel/code-frame": "^7.25.9",
"@babel/parser": "^7.25.9",
"@babel/types": "^7.25.9"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/types": {
"version": "7.29.8",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
"integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
"license": "MIT",
"dependencies": {
"@babel/helper-string-parser": "^7.29.7",
"@babel/helper-validator-identifier": "^7.29.7"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@types/babel__template": {
"version": "7.4.4",
"resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
"integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
"license": "MIT",
"dependencies": {
"@babel/parser": "^7.1.0",
"@babel/types": "^7.0.0"
}
},
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
"license": "MIT"
},
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
"license": "ISC"
}
}
}
{
"name": "sample-babel-template-types",
"version": "1.0.0",
"private": true,
"description": "Clean-room verification sample for @types/babel__template",
"dependencies": {
"@babel/template": "7.25.9",
"@types/babel__template": "7.4.4"
}
}
{
"schemaVersion": 1,
"goal": "verify pkg:npm/%40types/babel__template@7.4.4",
"kind": "HOW",
"packages": [
"pkg:npm/%40types/babel__template@7.4.4"
],
"constraints": {
"executionContext": "node"
},
"runtimeConditions": {
"ecosystem": "npm",
"language": "javascript",
"moduleSystem": "cjs",
"packageManager": "npm@10.9.8",
"runtime": "node@22.23.2"
}
}
import assert from "node:assert";
import templatePkg from "@babel/template";
const template = templatePkg.default || templatePkg;
// 1. template.smart produces Statement AST node with replacements
const buildRequire = template.smart("const %%IMPORT_NAME%% = require(%%SOURCE%%);");
const ast1 = buildRequire({
IMPORT_NAME: { type: "Identifier", name: "myModule" },
SOURCE: { type: "StringLiteral", value: "my-module" }
});
assert.strictEqual(ast1.type, "VariableDeclaration");
assert.strictEqual(ast1.declarations[0].id.name, "myModule");
// 2. template.statement produces Statement AST node
const buildStmt = template.statement("let count = %%INIT%%;");
const ast2 = buildStmt({
INIT: { type: "NumericLiteral", value: 10 }
});
assert.strictEqual(ast2.type, "VariableDeclaration");
assert.strictEqual(ast2.declarations[0].init.value, 10);
// 3. template.expression produces Expression AST node
const buildExpr = template.expression("%%A%% + %%B%%");
const ast3 = buildExpr({
A: { type: "Identifier", name: "x" },
B: { type: "Identifier", name: "y" }
});
assert.strictEqual(ast3.type, "BinaryExpression");
assert.strictEqual(ast3.operator, "+");
// 4. template.statements produces Statement[] AST nodes
const buildStmts = template.statements("const x = 1; const y = 2;");
const ast4 = buildStmts();
assert(Array.isArray(ast4));
assert.strictEqual(ast4.length, 2);
// 5. template.program produces Program AST node
const buildProg = template.program("function hello() { return 42; }");
const ast5 = buildProg();
assert.strictEqual(ast5.type, "Program");
// 6. template.ast parses directly into AST node
const ast6 = template.ast("const answer = 42;");
assert.strictEqual(ast6.type, "VariableDeclaration");
Ursprungs-Seeder
anonym