Ejemplo
typed-query-selector 2.12.2: scripts
Muestra verificada para npm typed-query-selector 2.12.2: scripts. El contrato se ejecutó en node 22 · linux debian/x64 · docker y pasó.
sha256:c86b1010a03f83e96e3c5f07976d24ecfecbecda0f1c01be9b2d64ddf7f3b773
Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido.
Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas.
MIT-0
Evidencia de ejecución
El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.
- Base de evidencia
- Contrato firmado aprobado
- Recibos de verificación
- 1
- Claves de firma que lo compilaron
- 1
Entorno declarado
linux 24 · ubuntu · glibc 2.39 x64 npm
Entornos de las ejecuciones de verificación
| Entorno | Contrato | Etapas | Ejecución |
|---|---|---|---|
| node 22 · linux debian/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22@sha256:8a34c4ab3ea2… |
2026-09-07 |
Caso
HOW- Objetivo
- verify typed-query-selector.scripts in pkg:npm/typed-query-selector@2.12.2
- Paquetes
- Símbolos
-
- typed-query-selector.scripts
- Creado
- 2026-09-07T04:25:43Z
Contrato
- typed-query-selector package.json defines scripts object with test, fmt, and fmt:check commands
- typed-query-selector package.json scripts test command executes tsc and tsgo typecheck
- typed-query-selector package.json scripts fmt command executes prettier write on TypeScript files
- typed-query-selector package.json scripts fmt:check command executes prettier check on TypeScript files
- typed-query-selector package.json scripts contains expected keys and non-empty string commands
Archivos
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
Código fuente
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 typed-query-selector.scripts in pkg:npm/typed-query-selector@2.12.2
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/typed-query-selector@2.12.2
Demonstrate these symbols/APIs:
- typed-query-selector.scripts
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:3c996aa56c6873ea476843266ba427927038394b6edc1b21f23d192aeb4885dd","contract":["typed-query-selector package.json defines scripts object with test, fmt, and fmt:check commands","typed-query-selector package.json scripts test command executes tsc and tsgo typecheck","typed-query-selector package.json scripts fmt command executes prettier write on TypeScript files","typed-query-selector package.json scripts fmt:check command executes prettier check on TypeScript files","typed-query-selector package.json scripts contains expected keys and non-empty string commands"],"goal":"verify typed-query-selector.scripts in pkg:npm/typed-query-selector@2.12.2","kind":"HOW","packages":["pkg:npm/typed-query-selector@2.12.2"],"schemaVersion":1,"symbols":["typed-query-selector.scripts"]},"contractCommand":["node","test/contract.mjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","libc":"glibc","libcVersion":"2.39","os":"linux","osVersionBucket":"24","packageManager":"npm","schemaVersion":1},"license":"MIT-0","packages":["pkg:npm/typed-query-selector@2.12.2"],"schemaVersion":1,"subject":"pkg:npm/typed-query-selector@2.12.2","symbols":["typed-query-selector.scripts"],"verifierAdapter":"node-typescript@1"}
{
"name": "sample-typed-query-selector-scripts",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-typed-query-selector-scripts",
"version": "1.0.0",
"license": "MIT-0",
"dependencies": {
"typed-query-selector": "2.12.2"
}
},
"node_modules/typed-query-selector": {
"version": "2.12.2",
"resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.2.tgz",
"integrity": "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ==",
"license": "MIT"
}
}
}
{
"name": "sample-typed-query-selector-scripts",
"version": "1.0.0",
"type": "module",
"private": true,
"license": "MIT-0",
"dependencies": {
"typed-query-selector": "2.12.2"
}
}
{
"schemaVersion": 1,
"goal": "verify typed-query-selector.scripts in pkg:npm/typed-query-selector@2.12.2",
"kind": "HOW",
"packages": [
"pkg:npm/typed-query-selector@2.12.2"
],
"symbols": [
"typed-query-selector.scripts"
]
}
import assert from 'node:assert/strict';
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
// 1. typed-query-selector package.json defines scripts object with test, fmt, and fmt:check commands
const pkgJson = require('typed-query-selector/package.json');
assert.ok(pkgJson.scripts, 'scripts field must exist in package.json');
assert.equal(typeof pkgJson.scripts, 'object');
const scriptKeys = Object.keys(pkgJson.scripts).sort();
assert.deepEqual(scriptKeys, ['fmt', 'fmt:check', 'test']);
// 2. typed-query-selector package.json scripts test command executes tsc and tsgo typecheck
assert.equal(typeof pkgJson.scripts.test, 'string');
assert.equal(pkgJson.scripts.test, 'tsc -p . && tsgo -p .');
assert.ok(pkgJson.scripts.test.includes('tsc -p .'));
assert.ok(pkgJson.scripts.test.includes('tsgo -p .'));
// 3. typed-query-selector package.json scripts fmt command executes prettier write on TypeScript files
assert.equal(typeof pkgJson.scripts.fmt, 'string');
assert.equal(pkgJson.scripts.fmt, 'prettier --write *.ts');
// 4. typed-query-selector package.json scripts fmt:check command executes prettier check on TypeScript files
assert.equal(typeof pkgJson.scripts['fmt:check'], 'string');
assert.equal(pkgJson.scripts['fmt:check'], 'prettier --check *.ts');
// 5. typed-query-selector package.json scripts contains expected keys and non-empty string commands
for (const key of ['test', 'fmt', 'fmt:check']) {
assert.ok(typeof pkgJson.scripts[key] === 'string' && pkgJson.scripts[key].length > 0);
}
console.log('All contract assertions for typed-query-selector.scripts passed.');
Seeder de origen
anónimo