CodeSampleX

Пример

bare-runtime-ios-x64-simulator 1.31.0

Проверенный пример — npm bare-runtime-ios-x64-simulator 1.31.0. Контракт выполнен на node 22 · linux alpine/x64 · docker и пройден.

sha256:18047e65b319d470b7e0dd06dfe8184c9933bfc753f01092a03d58121351f533

Эта сеть предлагает одно: образец, который собирается. Она запустила его в песочнице и сохранила подписанную квитанцию. Она ничего не оценивает и ничего не гарантирует — собирается ли тот же код у вас, она не измеряла. Сколько различных ключей подписи подали пройденную квитанцию контракта. Один — только автор; больше одного — значит, кто-то ещё тоже собрал. Ключ создаётся сам и не имеет зарегистрированной личности, поэтому считаются ключи, а не люди. MIT-0

Свидетельства выполнения

Заявленное окружение и подписанные запуски разделены, чтобы вы точно видели, что этот образец запускал и где.

Основа свидетельства
Подписанный контракт пройден
Квитанции проверки
1
Ключи подписи, собравшие его
1
Заявленная среда node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

Среды запусков проверки

Окружение Контракт Этапы Запуск
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-27

Кейс

HOW
Цель
verify pkg:npm/bare-runtime-ios-x64-simulator@1.31.0
Пакеты
Окружение
node 22.23.2
Создан
2026-08-27T13:09:09Z

Контракт

  1. assert runtime.bare exports the path string to the simulator binary
  2. assert getBarePath returns the resolved bare runtime binary path

Файлы

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

Скачать артефакт с исходным кодом (tar.gz)

Исходный код

.npmrc
force=true
PROMPT.md
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/bare-runtime-ios-x64-simulator@1.31.0
Kind: HOW

Use EXACTLY these public packages and versions:
  - pkg:npm/bare-runtime-ios-x64-simulator@1.31.0
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.
csx.json
{"case":{"caseId":"case:sha256:995d519545db64212b6ae118c57aae4c74ff28cf1d3924890d532aecc93b709a","constraints":{"executionContext":"node"},"contract":["assert runtime.bare exports the path string to the simulator binary","assert getBarePath returns the resolved bare runtime binary path"],"goal":"verify pkg:npm/bare-runtime-ios-x64-simulator@1.31.0","kind":"HOW","packages":["pkg:npm/bare-runtime-ios-x64-simulator@1.31.0"],"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/bare-runtime-ios-x64-simulator@1.31.0"],"schemaVersion":1,"subject":"pkg:npm/bare-runtime-ios-x64-simulator@1.31.0","verifierAdapter":"node-typescript@1"}
index.js
const runtime = require('bare-runtime-ios-x64-simulator');

function getBarePath() {
  return runtime.bare;
}

module.exports = {
  getBarePath,
  bare: runtime.bare,
};
package-lock.json
{
  "name": "sample-bare-runtime-ios-x64-simulator",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "sample-bare-runtime-ios-x64-simulator",
      "version": "1.0.0",
      "license": "MIT-0",
      "dependencies": {
        "bare-runtime-ios-x64-simulator": "1.31.0"
      }
    },
    "node_modules/bare-module-resolve": {
      "version": "1.12.4",
      "resolved": "https://registry.npmjs.org/bare-module-resolve/-/bare-module-resolve-1.12.4.tgz",
      "integrity": "sha512-xcfgg2u7HqgJiBmah71O9vvdFAgHCvkqC/WSC2O7Bbgosoc1eC/BWe/6IDJ4OsfKlkxuvC/TDWXC+oH5yeW8mA==",
      "license": "Apache-2.0",
      "dependencies": {
        "bare-semver": "^1.0.0"
      },
      "peerDependencies": {
        "bare-url": "*"
      },
      "peerDependenciesMeta": {
        "bare-url": {
          "optional": true
        }
      }
    },
    "node_modules/bare-runtime-ios-x64-simulator": {
      "version": "1.31.0",
      "resolved": "https://registry.npmjs.org/bare-runtime-ios-x64-simulator/-/bare-runtime-ios-x64-simulator-1.31.0.tgz",
      "integrity": "sha512-A+EIZwLpzI9V6GdPsrHe5+/v8qtglMoj042fM8XvuCRpe7frc4tPtccwkDmdUkc8LUbKt9w3hN3DF4c4M1Hl8g==",
      "cpu": [
        "x64"
      ],
      "license": "Apache-2.0",
      "os": [
        "ios"
      ],
      "dependencies": {
        "require-asset": "^1.0.2"
      },
      "bin": {
        "bare": "bin/bare"
      }
    },
    "node_modules/bare-semver": {
      "version": "1.1.0",
      "resolved": "https://registry.npmjs.org/bare-semver/-/bare-semver-1.1.0.tgz",
      "integrity": "sha512-1Hw5qJ7hXdVt3uPUqjeFTuxyvBUJauvz5A1I2jk8gzjZMHp04n//6nV9MDbG9CMw78JHY2lGV0w6s//LrASm2w==",
      "license": "Apache-2.0"
    },
    "node_modules/require-asset": {
      "version": "1.2.2",
      "resolved": "https://registry.npmjs.org/require-asset/-/require-asset-1.2.2.tgz",
      "integrity": "sha512-uc8nWKhqAxVD9Z4rST2b4yaemrC9Xb5vA1wlCz5AiCYnBYdwGRWNqFjneA5zRILzlo1MNrB63ry9+pc8wNR26w==",
      "license": "Apache-2.0",
      "dependencies": {
        "bare-module-resolve": "^1.6.2"
      },
      "engines": {
        "bare": ">=1.10.0",
        "node": ">=18"
      }
    }
  }
}
package.json
{
  "name": "sample-bare-runtime-ios-x64-simulator",
  "version": "1.0.0",
  "description": "Minimal sample for bare-runtime-ios-x64-simulator binary path resolution",
  "main": "index.js",
  "license": "MIT-0",
  "dependencies": {
    "bare-runtime-ios-x64-simulator": "1.31.0"
  }
}
spec.json
{
  "schemaVersion": 1,
  "goal": "verify pkg:npm/bare-runtime-ios-x64-simulator@1.31.0",
  "kind": "HOW",
  "packages": [
    "pkg:npm/bare-runtime-ios-x64-simulator@1.31.0"
  ],
  "constraints": {
    "executionContext": "node"
  },
  "runtimeConditions": {
    "ecosystem": "npm",
    "language": "javascript",
    "moduleSystem": "cjs",
    "packageManager": "npm@10.9.8",
    "runtime": "node@22.23.2"
  }
}
test/contract.mjs
import assert from 'node:assert';
import runtime from 'bare-runtime-ios-x64-simulator';
import { getBarePath } from '../index.js';

assert.strictEqual(typeof runtime.bare, 'string', 'runtime.bare must be a string path');
assert.strictEqual(getBarePath(), runtime.bare, 'getBarePath() must return runtime.bare');
assert.ok(runtime.bare.includes('bare'), 'bare path must contain bare');

console.log('Contract passed');

Исходный сидер

аноним