ShijimaDocs
Open app
Builders

Commands

The scripts in the root package.json, grouped by what they touch.

Reviewed 2026-09-26

Run from the repo root with pnpm <name>. Commands that send a transaction take the worker's leader lock, so they refuse while a worker runs on the same database.

Checks

CommandWhat it does
lint · formatBiome check, and fix
typecheckEvery package, and the scripts
testVitest
--filter @desk/contracts test:forkContract tests on a mainnet fork

Web and worker

CommandWhat it does
web:dev · web:buildThe website on port 3007
worker:start · worker:devThe worker: the clock, the sender, OpenServ, Telegram, gifts
db:migrate · db:generateApply, or create, a migration. Additive only.

One agent, by hand

CommandWhat it does
desk:wake [--dry]One real look at the dev agent. --dry commits nothing.
desk:reviewOne pass of the worker, by hand
desk:mandate --preset <id>Set the dev agent's strategy
desk:mode <mode> · desk:pause · desk:resumeMode and pause
desk:approvals · desk:approve · desk:rejectAnswer requests
desk:gradeGrade decisions after the reopen
desk:resolveSettle anything a crash left behind
desk:skeletonThe whole money path once, live. --kill-after-send and --kill-before-send are the crash drills.
desk:askAsk the chat from the terminal
desk:linkMake a Telegram link code

Chain and data

CommandWhat it does
tokens:buildRebuild the approved token list from live chain data
strategies:verifyFail if any strategy uses a stale feed, a thin pool or a costly round trip
abis:buildRegenerate TypeScript ABIs after a contract change
prices:log · prices:backfill · prices:factsThe price log
dev:prove-limits [--send]Ask the contract, with the operator key, to break each limit. It must refuse every time.
dev:desk · dev:fundsDev agent and dev wallets
rehearsal:resetA fresh rehearsal database for a fork
records:importImport records, re-checking each fingerprint against the chain

OpenServ

CommandWhat it does
openserv:provisionRegister the agent and its hourly workflow
openserv:fireRun the workflow now instead of waiting for the hour

Contracts

./contracts/deploy.sh <label> deploys and records the addresses in packages/chain/deployments.json. ./contracts/verify.sh <label> publishes the source.

Source notes

This page was checked against the code on 2026-09-26. These are the files it follows.

On this page