@pplethai/cli 0.19.0 → 0.21.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.
Files changed (35) hide show
  1. package/README.md +5 -3
  2. package/dist/bin.js +132 -131
  3. package/package.json +1 -1
  4. package/templates/golden-path/CLAUDE.md +5 -1
  5. package/templates/golden-path/README.md +7 -1
  6. package/templates/golden-path/src/index.ts +20 -0
  7. package/templates/golden-path/src/payment.ts +79 -7
  8. package/templates/golden-path/test/fixtures/overlay/platform/payments/mocks/responses.json +9 -0
  9. package/templates/golden-path/test/payment-app.test.ts +45 -0
  10. package/templates/golden-path/test/payment-offline.test.ts +25 -1
  11. package/templates/golden-path/test/payment.test.ts +105 -0
  12. package/templates/golden-path/test/payments-offline.ts +2 -0
  13. package/templates/golden-path/web/pple.ts +26 -0
  14. package/templates/payment-bridge/.github/workflows/ci.yml +21 -0
  15. package/templates/payment-bridge/CLAUDE.md +9 -0
  16. package/templates/payment-bridge/README.md +57 -0
  17. package/templates/payment-bridge/docs/verify-webhook.md +80 -0
  18. package/templates/payment-bridge/docs/verify-webhook.ts +29 -0
  19. package/templates/payment-bridge/gitignore +5 -0
  20. package/templates/payment-bridge/package-lock.json +4198 -0
  21. package/templates/payment-bridge/package.json +21 -0
  22. package/templates/payment-bridge/src/bridge-key.ts +18 -0
  23. package/templates/payment-bridge/src/env.ts +14 -0
  24. package/templates/payment-bridge/src/index.ts +39 -0
  25. package/templates/payment-bridge/src/platform.ts +49 -0
  26. package/templates/payment-bridge/src/webhook.ts +86 -0
  27. package/templates/payment-bridge/test/docs.test.ts +9 -0
  28. package/templates/payment-bridge/test/fixtures/payments-responses.json +71 -0
  29. package/templates/payment-bridge/test/harness.ts +78 -0
  30. package/templates/payment-bridge/test/inbound.test.ts +138 -0
  31. package/templates/payment-bridge/test/webhook.test.ts +174 -0
  32. package/templates/payment-bridge/tsconfig.json +22 -0
  33. package/templates/payment-bridge/vitest.config.ts +8 -0
  34. package/templates/payment-bridge/wrangler.jsonc +15 -0
  35. package/templates/payment-bridge.version +1 -0
package/README.md CHANGED
@@ -229,9 +229,11 @@ minted. A local path would let every clone and push succeed with no credential
229
229
  at all, and nothing would show that the platform's token is what opens a
230
230
  private repo.
231
231
 
232
- The published package carries its own copy of the golden-path template
233
- (`npm run build:template` copies `../template`). Running from a checkout falls
234
- back to that repo path directly. The Skill is not bundled: tests serve it from
232
+ The published package carries its own copy of the golden-path template and of
233
+ the Payment Bridge template (`npm run build:template` copies `../template` and
234
+ `../payment-bridge-template`; `resolveTemplateDir(env, "payment-bridge")` finds
235
+ the second, and `scaffold` copies either). Running from a checkout falls back to
236
+ those repo paths directly. The Skill is not bundled: tests serve it from
235
237
  the fake platform. `PPLE_TEMPLATE_DIR`, `PPLE_API_BASE`, `PPLE_SSO_BASE`, `PPLE_CLIENT_ID`,
236
238
  `PPLE_REPO_BASE`, and `PPLE_REGISTRY_BASE` override the defaults for staging
237
239
  work.