Sample
@types/node 24.13.5
Verified sample for npm @types/node 24.13.5. The contract ran on node 22 · linux debian/x64 · docker and passed: @types/node package.json declares type…
sha256:2143a2e35cf9b4d12b74e56c299f339fd5c6c549052eec54497f2b10ba544105
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 1
- Signing keys that built it
- 1
Declared environment
node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| node 22 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22@sha256:8a34c4ab3ea2… |
2026-09-17 |
Case
HOW- Goal
- verify pkg:npm/%40types/node@24.13.5
- Packages
- Environment
- node 22.23.2
- Created
- 2026-09-17T13:12:08Z
Contract
- @types/node package.json declares type definitions entry point index.d.ts and version 24.13.5
- @types/node index.d.ts references core declaration files including fs.d.ts, buffer.d.ts, events.d.ts, and path.d.ts
- @types/node events.d.ts declares EventEmitter class in module events and module node:events
- @types/node buffer.d.ts declares Buffer namespace and BufferConstructor with isBuffer and isEncoding methods
- @types/node fs.d.ts declares readFileSync, writeFileSync, and existsSync in module fs and node:fs
- @types/node path.d.ts declares PlatformPath interface with join, resolve, normalize, and matchesGlob methods
Files
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
Source
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/node@24.13.5
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/%40types/node@24.13.5
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:41d80398d6adb47e8414f7b567e0d6fc06cc01497227168a9ad651e9f3b9de2f","constraints":{"executionContext":"node"},"contract":["@types/node package.json declares type definitions entry point index.d.ts and version 24.13.5","@types/node index.d.ts references core declaration files including fs.d.ts, buffer.d.ts, events.d.ts, and path.d.ts","@types/node events.d.ts declares EventEmitter class in module events and module node:events","@types/node buffer.d.ts declares Buffer namespace and BufferConstructor with isBuffer and isEncoding methods","@types/node fs.d.ts declares readFileSync, writeFileSync, and existsSync in module fs and node:fs","@types/node path.d.ts declares PlatformPath interface with join, resolve, normalize, and matchesGlob methods"],"goal":"verify pkg:npm/%40types/node@24.13.5","kind":"HOW","packages":["pkg:npm/%40types/node@24.13.5"],"schemaVersion":1},"contractCommand":["node","test/contract.mjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","executionContext":"node","language":"javascript","libc":"glibc","libcVersion":"2.39","moduleSystem":"esm","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/node@24.13.5"],"schemaVersion":1,"subject":"pkg:npm/%40types/node@24.13.5","verifierAdapter":"node-typescript@1"}
{
"name": "sample-types-node",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-types-node",
"version": "1.0.0",
"license": "MIT-0",
"dependencies": {
"@types/node": "24.13.5"
}
},
"node_modules/@types/node": {
"version": "24.13.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.5.tgz",
"integrity": "sha512-TXyindR+lBr22aJIdMQzCFHPHR6cR4js838mRDCSz5hOKWZvZwsXSSiXDmjRj4iJmgl+sR9O+1mkoVBSMadNug==",
"license": "MIT",
"dependencies": {
"undici-types": "~7.18.0"
}
},
"node_modules/undici-types": {
"version": "7.18.2",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
"integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
"license": "MIT"
}
}
}
{
"name": "sample-types-node",
"version": "1.0.0",
"type": "module",
"private": true,
"license": "MIT-0",
"dependencies": {
"@types/node": "24.13.5"
}
}
{
"schemaVersion": 1,
"goal": "verify pkg:npm/%40types/node@24.13.5",
"kind": "HOW",
"packages": [
"pkg:npm/%40types/node@24.13.5"
],
"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/strict';
import fs from 'node:fs';
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
// 1. @types/node package.json declares type definitions entry point index.d.ts and version 24.13.5
const pkgJson = require('@types/node/package.json');
assert.equal(pkgJson.name, '@types/node');
assert.equal(pkgJson.version, '24.13.5');
assert.equal(pkgJson.types, 'index.d.ts');
// 2. @types/node index.d.ts references core declaration files including fs.d.ts, buffer.d.ts, events.d.ts, and path.d.ts
const indexDtsPath = require.resolve('@types/node/index.d.ts');
assert.ok(fs.existsSync(indexDtsPath));
const indexDtsContent = fs.readFileSync(indexDtsPath, 'utf8');
assert.ok(indexDtsContent.includes('/// <reference path="fs.d.ts" />'));
assert.ok(indexDtsContent.includes('/// <reference path="buffer.d.ts" />'));
assert.ok(indexDtsContent.includes('/// <reference path="events.d.ts" />'));
assert.ok(indexDtsContent.includes('/// <reference path="path.d.ts" />'));
// 3. @types/node events.d.ts declares EventEmitter class in module events and module node:events
const eventsDtsPath = require.resolve('@types/node/events.d.ts');
assert.ok(fs.existsSync(eventsDtsPath));
const eventsDtsContent = fs.readFileSync(eventsDtsPath, 'utf8');
assert.ok(eventsDtsContent.includes('declare module "events" {'));
assert.ok(eventsDtsContent.includes('class EventEmitter<T extends EventMap<T> = DefaultEventMap> {'));
assert.ok(eventsDtsContent.includes('export = EventEmitter;'));
assert.ok(eventsDtsContent.includes('declare module "node:events" {'));
// 4. @types/node buffer.d.ts declares Buffer namespace and BufferConstructor with isBuffer and isEncoding methods
const bufferDtsPath = require.resolve('@types/node/buffer.d.ts');
assert.ok(fs.existsSync(bufferDtsPath));
const bufferDtsContent = fs.readFileSync(bufferDtsPath, 'utf8');
assert.ok(bufferDtsContent.includes('declare module "buffer" {'));
assert.ok(bufferDtsContent.includes('interface BufferConstructor {'));
assert.ok(bufferDtsContent.includes('isBuffer(obj: any): obj is Buffer;'));
assert.ok(bufferDtsContent.includes('isEncoding(encoding: string): encoding is BufferEncoding;'));
// 5. @types/node fs.d.ts declares readFileSync, writeFileSync, and existsSync in module fs and node:fs
const fsDtsPath = require.resolve('@types/node/fs.d.ts');
assert.ok(fs.existsSync(fsDtsPath));
const fsDtsContent = fs.readFileSync(fsDtsPath, 'utf8');
assert.ok(fsDtsContent.includes('declare module "fs" {'));
assert.ok(fsDtsContent.includes('export function readFileSync('));
assert.ok(fsDtsContent.includes('export function writeFileSync('));
assert.ok(fsDtsContent.includes('export function existsSync(path: PathLike): boolean;'));
assert.ok(fsDtsContent.includes('declare module "node:fs" {'));
// 6. @types/node path.d.ts declares PlatformPath interface with join, resolve, normalize, and matchesGlob methods
const pathDtsPath = require.resolve('@types/node/path.d.ts');
assert.ok(fs.existsSync(pathDtsPath));
const pathDtsContent = fs.readFileSync(pathDtsPath, 'utf8');
assert.ok(pathDtsContent.includes('declare module "path" {'));
assert.ok(pathDtsContent.includes('interface PlatformPath {'));
assert.ok(pathDtsContent.includes('join(...paths: string[]): string;'));
assert.ok(pathDtsContent.includes('resolve(...paths: string[]): string;'));
assert.ok(pathDtsContent.includes('matchesGlob(path: string, pattern: string): boolean;'));
assert.ok(pathDtsContent.includes('declare module "node:path" {'));
console.log('All contract tests passed.');
Origin Seeder
anonymous