@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.
- package/README.md +5 -3
- package/dist/bin.js +132 -131
- package/package.json +1 -1
- package/templates/golden-path/CLAUDE.md +5 -1
- package/templates/golden-path/README.md +7 -1
- package/templates/golden-path/src/index.ts +20 -0
- package/templates/golden-path/src/payment.ts +79 -7
- package/templates/golden-path/test/fixtures/overlay/platform/payments/mocks/responses.json +9 -0
- package/templates/golden-path/test/payment-app.test.ts +45 -0
- package/templates/golden-path/test/payment-offline.test.ts +25 -1
- package/templates/golden-path/test/payment.test.ts +105 -0
- package/templates/golden-path/test/payments-offline.ts +2 -0
- package/templates/golden-path/web/pple.ts +26 -0
- package/templates/payment-bridge/.github/workflows/ci.yml +21 -0
- package/templates/payment-bridge/CLAUDE.md +9 -0
- package/templates/payment-bridge/README.md +57 -0
- package/templates/payment-bridge/docs/verify-webhook.md +80 -0
- package/templates/payment-bridge/docs/verify-webhook.ts +29 -0
- package/templates/payment-bridge/gitignore +5 -0
- package/templates/payment-bridge/package-lock.json +4198 -0
- package/templates/payment-bridge/package.json +21 -0
- package/templates/payment-bridge/src/bridge-key.ts +18 -0
- package/templates/payment-bridge/src/env.ts +14 -0
- package/templates/payment-bridge/src/index.ts +39 -0
- package/templates/payment-bridge/src/platform.ts +49 -0
- package/templates/payment-bridge/src/webhook.ts +86 -0
- package/templates/payment-bridge/test/docs.test.ts +9 -0
- package/templates/payment-bridge/test/fixtures/payments-responses.json +71 -0
- package/templates/payment-bridge/test/harness.ts +78 -0
- package/templates/payment-bridge/test/inbound.test.ts +138 -0
- package/templates/payment-bridge/test/webhook.test.ts +174 -0
- package/templates/payment-bridge/tsconfig.json +22 -0
- package/templates/payment-bridge/vitest.config.ts +8 -0
- package/templates/payment-bridge/wrangler.jsonc +15 -0
- 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`
|
|
234
|
-
|
|
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.
|