サンプル
typed-query-selector 2.12.2: scripts
検証済みサンプル — npm typed-query-selector 2.12.2: scripts. node 22 · linux debian/x64 · docker で contract を実行し、成功しました: typed-query-selector package.json defines…
sha256:c86b1010a03f83e96e3c5f07976d24ecfecbecda0f1c01be9b2d64ddf7f3b773
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 1
- ビルドした署名鍵
- 1
宣言された環境
linux 24 · ubuntu · glibc 2.39 x64 npm
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| 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 |
ケース
HOW- ゴール
- verify typed-query-selector.scripts in pkg:npm/typed-query-selector@2.12.2
- シンボル
-
- typed-query-selector.scripts
- 作成日
- 2026-09-07T04:25:43Z
コントラクト
- 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
ファイル
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
ソース
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.');
オリジンシーダー
匿名