CodeSampleX

Пример

verify pkg:npm/prelude-ls@1.2.1

sha256:2de7346d30486435e7df2b48b160855ebc5da7bebfe0dd009e3b607fe86f2e89

Эта сеть предлагает одно: образец, который собирается. Она запустила его в песочнице и сохранила подписанную квитанцию. Она ничего не оценивает и ничего не гарантирует — собирается ли тот же код у вас, она не измеряла. Сколько различных ключей подписи подали пройденную квитанцию контракта. Один — только автор; больше одного — значит, кто-то ещё тоже собрал. Ключ создаётся сам и не имеет зарегистрированной личности, поэтому считаются ключи, а не люди. 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/prelude-ls@1.2.1
Пакеты
Окружение
node 22.23.2
Создан
2026-08-27T15:45:50Z

Контракт

  1. map transforms elements in an array by applying a unary mapping function
  2. filter keeps elements satisfying a predicate and reject excludes elements satisfying a predicate
  3. partition splits an array into a pair of arrays of elements that pass and fail a predicate
  4. foldl reduces elements from the left with an accumulator and initial value, while foldr reduces from the right
  5. sum computes the arithmetic sum of numbers and product computes their product
  6. take extracts the first n elements and drop removes the first n elements from an array
  7. splitAt partitions an array at a specified index into a tuple of two sub-arrays
  8. takeWhile takes elements while a predicate holds true and dropWhile drops elements while a predicate holds true
  9. head returns the first element, tail returns all except the first, last returns the final element, and initial returns all except the last
  10. unique removes duplicate elements, intersection finds common elements, difference removes elements present in another list, and union merges lists without duplicates
  11. zip pairs corresponding elements from two lists and zipWith combines them using a binary function
  12. groupBy groups elements into an object keyed by the result of a grouping function and sortBy sorts elements by an extracted key
  13. pairsToObj constructs an object from key-value pairs and objToPairs extracts key-value pairs from an object
  14. capitalize, camelize, and dasherize format string casing, and words, unwords, lines, unlines split and join string sequences
  15. curry converts a multi-argument function into a curried function and flip reverses the order of the first two arguments
  16. isType validates the constructor type name of JavaScript values including String, Number, and Array

Файлы

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

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

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

аноним