@odla-ai/chapter 0.39.2 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/chapter",
3
- "version": "0.39.2",
3
+ "version": "0.40.0",
4
4
  "description": "A leader/follower foundation for branded membership sites: shared CRM, admin, auth, payments, booking, and explicit record delivery from one defineChapter config.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/chapter",
@@ -748,10 +748,15 @@ deployed dev origin.
748
748
  ### Stripe test mode
749
749
 
750
750
  1. Create the approved recurring test product/price.
751
- 2. Point a Stripe test webhook to
752
- `https://<dev-origin>/api/webhooks/stripe`.
753
- 3. Store `stripe_secret_key` and `stripe_webhook_secret` as named dev vault
754
- secrets through write-only `odla-ai secrets set ... --stdin`.
751
+ 2. Store `stripe_secret_key` in the shared dev vault through write-only
752
+ `odla-ai secrets set stripe_secret_key --env dev --stdin`.
753
+ 3. For one Worker per developer on shared dev data, declare top-level
754
+ `runtimes.<name>` with `dataEnvironment: "dev"` and its stable origin, then
755
+ run `odla-ai environment reconcile --runtime <name>`. ODLA creates the
756
+ endpoint, stores `stripe_webhook_secret__<name>` under write-only custody,
757
+ and binds `ODLA_RUNTIME`; do not manually reuse one signing secret across
758
+ endpoints. A legacy single-Worker app may still store
759
+ `stripe_webhook_secret` directly.
755
760
  4. In the guarded `groups` row, set `stripePublishableKey` and `stripePriceId`.
756
761
  5. Read that exact Stripe Price from Stripe and compare its first charge,
757
762
  recurring amount, currency, and interval with the approved public contract.