5 Commits

Author SHA1 Message Date
5d4ff5d4b8 chore: move runtime to Node 22 (required by @nktkas/hyperliquid)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:20:13 +03:00
pextacy
71e89bdfd8 feat(lepton): attribution package (RFB 6.01) + creator-dashboard
Adds @settlekit/attribution — reuse-detection, weighted provenance lineage,
and HMAC-signed proofs-of-citation — wired live into the rsshub-citation-toll
sidecar (POST /attribution/{detect,proof,verify}) and persisted via
PgLineageStore/PgProofStore over new lepton_lineage_edges + lepton_citation_proofs
tables.

Adds apps/creator-dashboard — a Next.js earnings view in the Statement
greenbar-ledger design system, driven by real domain logic (createSource +
computeRoyaltyDistribution + detectReuse, not mocks). Statement / Sources /
Payouts / Reuse & proofs (interactive) / Wallet. next build green.

Also bundles in-progress settlement hardening: settlement-core idempotency
concurrency, api env validation, bundles + contracts/worker tweaks.

Verified: 943 vitest tests, 27 Foundry tests, next build all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 01:19:22 +03:00
4d6c0bc715 feat(deploy): migration-aware start so the API is Postgres-ready
Root `pnpm start` now runs scripts/start.mjs: when DATABASE_URL is set it applies
pending migrations (bundled programmatic migrator, no drizzle-kit) before booting
the API, aborting if they fail; otherwise it boots in in-memory mode. Attaching a
Postgres database to the Render service is now a one-step env change.
2026-06-17 18:00:13 +03:00
99db203c70 fix(deploy): boot API from root pnpm start; add Vercel configs for all Next apps
Render's default Web Service runs `pnpm start` at the repo root, which had no
script — deploys failed with ERR_PNPM_NO_SCRIPT_OR_SERVER and "no open ports".
Add a root `start` that boots the API (@hono/node-server binds 0.0.0.0:$PORT),
so a plain root-level Render service now works (build = full workspace, start =
API). For API + worker + Postgres together, the render.yaml Blueprint still applies.

Add per-app vercel.json (web/dashboard/marketplace/checkout/docs) with the
pnpm-workspace install + filtered build and the correct package names
(marketplace-app / checkout-app / docs-app). Document the Render-API +
Vercel-frontends split in DEPLOYMENT.md.
2026-06-17 16:54:17 +03:00
4afda54455 feat: monorepo scaffold + @settlekit/common contract package
- pnpm workspace, shared tsconfig, vitest
- common: ids, money (USDC base-unit math), Result/SettleKitError, time
- domain types: product, customer, payment, entitlement, delivery, integration
- 13 passing contract tests
2026-06-15 02:55:22 +03:00