CodeSampleX

サンプル

verify pkg:npm/quick-lru@5.1.1

sha256:d933984dd5e340e8e728bc3ddfa3bdae72c5e0d67def59ba84b66715cfc69869

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 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-26

ケース

HOW
ゴール
verify pkg:npm/quick-lru@5.1.1
パッケージ
シンボル
  • QuickLRU
作成日
2026-08-26T08:05:43Z

コントラクト

  1. new QuickLRU({ maxSize: number }) creates a new QuickLRU cache instance
  2. new QuickLRU() throws TypeError when maxSize option is omitted or not greater than 0
  3. set(key, value) inserts a key-value entry and returns the instance
  4. get(key) returns stored value and updates recency
  5. peek(key) returns stored value without updating recency
  6. has(key) returns true for existing key and false for missing key
  7. delete(key) removes key and returns true if existed
  8. clear() removes all entries and resets size to 0
  9. size returns the current number of cached items
  10. evicts least recently used items when cache exceeds maxSize
  11. onEviction callback is called when items are evicted

ファイル

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

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名