1 Commits

Author SHA1 Message Date
1d6aedc361 feat(dodo): Portfolio add-on product and Scribase meters script, test mode by default (PY1.1)
scripts/dodo/portfolio-addon-products.mjs creates the Scribase Portfolio
add-on subscription product (price read from Scribase config/plans.json
addons.portfolio.priceUsd, $10 a month today) and the five Scribase meters of
the Railyard consumer contract (5.3). Dry run by default; --apply talks to the
Dodo test host; the live run needs --live and SCRIBASE_DODO_LIVE=1 (owner item
Y1). Idempotent (product matched by metadata or name, meters by event_name);
prints SCRIBASE_DODO_ADDON_PORTFOLIO_PRODUCT_ID=<id>; never prints the key.

Tests: scripts/dodo/test 5/5 (fake Dodo: created once, reused on re-run, live
refused without both switches, CLI refuses without --plans).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:22:02 +03:00