Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Second Reality Video · Open Client

БесплатноЗапускает вложенные скриптыНе проверен

Open client and wire protocol for a deterministic world-state video service, plus the deterministic rendering engine itself under engine/. A persistent…

nohn3043-archот nohn3043-arch411 установок в других каталогах

Об этом скилле

Second Reality Video · Open Client + Engine

A deterministic video pipeline. Persistent world state becomes film; the camera picks framing, never story: frame = render(state, shot). Same seed and shots give byte-identical pixels anyone can recompute.

Scope, stated up front. This package ships two things:

  1. The open client — the protocol, the orchestration script, the API contract and a local protocol simulator. It calls a compatible render service over HTTP (--api-base / SRV_API_BASE), receives a 402 Payment-Needed bill, hands that bill to the official Alipay payment capability, then retries the same request with Payment-Proof.
  2. The rendering engine (engine/) — the deterministic pipeline itself, run locally: extract → scene → render → attest → verify. No service, no payment, no key.

Both produce the same artifacts: the film, per-frame sha256 hashes, an Ed25519-signed RenderManifest and a 25-dimension constitutional audit report.

What is in the box

✅ Included (client) scripts/second-reality-video-client.mjs (probe / pay / complete / status / pricing), scripts/mock-service.mjs (offline 402 protocol simulator), API contract, shot-file schema, determinism notes
✅ Included (engine) engine/video/ (extract / scene / render / encode / manifest / state feed / structure), engine/system/ (world runtime, ledger, keys, consensus, API), engine/audit_engine.py + engine/constitution.py + engine/constitution_rules.py (25-dimension audit), engine/smoke_video.py (end-to-end determinism smoke)
❌ Not included any key or order state; the client's .state/ session directory; tests/, tmp/, .world_data/ from the source repository

The protocol in one picture

probe    → POST /api/v1/render                → 402 + Payment-Needed (bill, base64url)
pay      → hand the bill to official alipay-bot → user pays
complete → same request + Payment-Proof       → 200 + content + Payment-Validation
         → GET /api/v1/render/{order}/artifacts/{name} → film + manifest + audit

Two rules carry the whole design:

  1. Reuse the order. After payment, replay the identical request body on the identical order. Different parameters ⇒ a different order and a second bill.
  2. Never pay twice. If the payment state is unclear, look the order up first (status), instead of ordering again.

Try it offline, in 30 seconds

The bundled simulator speaks the same protocol and never touches money:

# terminal 1 — protocol simulator (not a renderer)
node scripts/mock-service.mjs

# terminal 2 — the client
node scripts/second-reality-video-client.mjs probe \
  --api-base http://127.0.0.1:8788 --ticks 0-149 --state-dir .state --session-id demo
# → HTTP 402, exit code 2, state saved to .state/demo.json

node scripts/second-reality-video-client.mjs pay --state-dir .state --session-id demo
# → prints the bill as a structured payment request (it does not pay)

node scripts/second-reality-video-client.mjs complete \
  --state-dir .state --session-id demo \
  --payment-proof mock.<order_id> --out-dir ./out
# → 202 → job ready → artifacts written to ./out with sha256 verified

Replace mock.<order_id> with the value from the 402 response's mock_proof_hint.

Against a real service

# buyer-side official payment capability (install once)
npx -y @alipay/agent-payment@latest install

export SRV_API_BASE=https://api.example.com
node scripts/second-reality-video-client.mjs probe \
  --ticks 0-599 --resolution 1280x720 --fps 30 --shot demo \
  --state-dir .state --session-id demo-001

Payment itself always goes through the official capability — this client never holds a key and never signs a payment. On the success path the result is the receipt: do not append a separate "payment successful" message.

Parameters

Flag Default Meaning
--api-base $SRV_API_BASE base URL of a compatible render service
--world-id sr-video-demo world identifier (part of the reproducibility key)
--seed 42 genesis seed
--agents 10 number of souls in the world
--ticks 0-599 tick range; 10 ticks = 1 s of film
--resolution 1280x720 output resolution
--fps 30 must be an integer multiple of 10 (the engine's fixed time base)
--shot demo shot-plan preset name
--samples 3 how many still frames are dumped for review
--service-id auto force a pricing tier (read from /api/v1/pricing)
--state-dir .state session state directory (bill + original request)
--session-id default session key
--payment-proof — credential returned by the official payment capability
--out-dir ./out where artifacts are written

Endpoints

| Method | Path | Purpose | |---|---

Полный SKILL.md на ClawHub

Установить Second Reality Video · Open Client в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Second Reality Video · Open Client?

Open client and wire protocol for a deterministic world-state video service, plus the deterministic rendering engine itself under engine/. A persistent simulated world evolves under its own rules while the camera only chooses framing, so the same seed and shot plan always produce byte-identical frames that any third party can recompute and verify. The client calls a compatible render service over HTTP, receives a 402 Payment-Needed bill, hands that bill to the official Alipay payment capability, then retries the very same request with Payment-Proof and collects the film, per-frame hashes, a signed reproducibility manifest and a 25-dimension constitutional audit report. The engine under engine/ runs the same pipeline locally (extract, scene, render, attest, verify) with no service and no payment.

Как установить скилл Second Reality Video · Open Client?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Second Reality Video · Open Client запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Second Reality Video · Open Client с