CodeSampleX

샘플

bare-runtime-ios-arm64-simulator 1.31.0: resolve bare runtime asset path for iOS arm64 simulator

검증된 샘플 — npm bare-runtime-ios-arm64-simulator 1.31.0: resolve bare runtime asset path for iOS arm64 simulator. node 22 · linux alpine/x64 · docker에서…

sha256:0ae23e980cd5f7c954439e43121a24d389be78d29c42159087baac8f41e72993

이 네트워크가 제공하는 것은 하나입니다. 빌드되는 샘플. 샌드박스에서 돌리고 서명된 영수증을 보관합니다. 등급을 매기지 않고 무엇도 보증하지 않습니다 — 같은 코드가 당신 환경에서 빌드되는지는 측정한 적이 없습니다. 통과한 계약 영수증을 낸 서로 다른 서명 키의 수입니다. 하나면 작성자 혼자이고, 둘 이상이면 다른 사람도 빌드했다는 뜻입니다. 키는 스스로 만드는 것이고 뒤에 등록된 신원이 없으므로, 세는 것은 사람이 아니라 키입니다. MIT-0

실행 증거

선언된 환경과 서명된 실행을 분리해 두었습니다. 이 샘플이 무엇을 어디서 실행했는지 그대로 볼 수 있습니다.

증거 기준
서명된 컨트랙트 통과
검증 영수증
1
빌드한 서명 키
1
선언된 환경 linux 24 · ubuntu · glibc 2.39 x64 npm

검증 실행 환경

환경 컨트랙트 단계 실행일
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
목표
resolve bare runtime asset path for iOS arm64 simulator
패키지
심벌
  • bare
생성일
2026-08-27T12:58:11Z

컨트랙트

  1. assert.strictEqual(typeof bareRuntime.bare, 'string');
  2. assert.match(bareRuntime.bare, /[/\]bin[/\]bare$/);
  3. assert.strictEqual(fs.existsSync(bareRuntime.bare), true);

파일

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

소스 아티팩트 내려받기 (tar.gz)

소스

.npmrc
force=true
NOTES.md
# bare-runtime-ios-arm64-simulator Asset Resolution

## Known Solution Search
`search_known_solution` returned `NO_SAFE_MATCH` for `pkg:npm/bare-runtime-ios-arm64-simulator@1.31.0`.

## Package Overview
`bare-runtime-ios-arm64-simulator` is a platform-specific distribution asset package for the Bare JavaScript runtime targeting the iOS ARM64 simulator.

## Export and Asset Path Behavior
1. **Asset Export**: The package exports `{ bare: string }` where `bare` is the resolved file path to the `bin/bare` Mach-O binary.
2. **Resolution Mechanism**: Uses `require-asset` to resolve relative asset paths reliably across module systems and packaging layouts.
3. **Execution Context**: The binary itself is a Mach-O arm64 simulator binary designed for iOS simulator environments, while the JS wrapper exports its local asset location for tooling and packagers.
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: resolve bare runtime asset path for iOS arm64 simulator
Kind: HOW

Use EXACTLY these public packages and versions:
  - pkg:npm/bare-runtime-ios-arm64-simulator@1.31.0
Demonstrate these symbols/APIs:
  - bare

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:d4d949da5e62d71f768d19b78a259ab9da86c9641a6b2abdf61137ca8e905d93","contract":["assert.strictEqual(typeof bareRuntime.bare, 'string');","assert.match(bareRuntime.bare, /[/\\]bin[/\\]bare$/);","assert.strictEqual(fs.existsSync(bareRuntime.bare), true);"],"goal":"resolve bare runtime asset path for iOS arm64 simulator","kind":"HOW","packages":["pkg:npm/bare-runtime-ios-arm64-simulator@1.31.0"],"schemaVersion":1,"symbols":["bare"]},"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/bare-runtime-ios-arm64-simulator@1.31.0"],"schemaVersion":1,"subject":"pkg:npm/bare-runtime-ios-arm64-simulator@1.31.0","symbols":["bare"],"verifierAdapter":"node-typescript@1"}
package-lock.json
{
  "name": "bare-runtime-ios-arm64-simulator-sample",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "bare-runtime-ios-arm64-simulator-sample",
      "version": "1.0.0",
      "dependencies": {
        "bare-runtime-ios-arm64-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-arm64-simulator": {
      "version": "1.31.0",
      "resolved": "https://registry.npmjs.org/bare-runtime-ios-arm64-simulator/-/bare-runtime-ios-arm64-simulator-1.31.0.tgz",
      "integrity": "sha512-Q5LbSRQou5Ls0Wn2SN+WsLdwZanlaUB8KPdGvuR/5m13un7iOLL5EO53ZOwaBrtJz+Cru/WVZJefv6LQqTOaZQ==",
      "cpu": [
        "arm64"
      ],
      "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": "bare-runtime-ios-arm64-simulator-sample",
  "version": "1.0.0",
  "type": "module",
  "dependencies": {
    "bare-runtime-ios-arm64-simulator": "1.31.0"
  }
}
spec.json
{
  "schemaVersion": 1,
  "goal": "resolve bare runtime asset path for iOS arm64 simulator",
  "kind": "HOW",
  "packages": [
    "pkg:npm/bare-runtime-ios-arm64-simulator@1.31.0"
  ],
  "symbols": [
    "bare"
  ]
}
test/contract.mjs
import assert from 'node:assert/strict';
import fs from 'node:fs';
import bareRuntime from 'bare-runtime-ios-arm64-simulator';

// 1. Exported shape: the package exports a `bare` property containing the resolved file path to the simulator runtime binary.
assert.strictEqual(typeof bareRuntime.bare, 'string');

// 2. Binary path: the resolved asset path points to the 'bin/bare' executable inside the package structure.
assert.match(bareRuntime.bare, /[/\\]bin[/\\]bare$/);

// 3. Asset existence: the referenced asset file exists on disk.
assert.strictEqual(fs.existsSync(bareRuntime.bare), true);

오리진 시더

익명