@ambasada/cli 0.7.4 → 0.7.5
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 +4 -0
- package/dist/ambasada.mjs +793 -242
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,6 +18,10 @@ from source: `pnpm village --help`. `create-ambasada/` is the tiny `npm create a
|
|
|
18
18
|
prints `{ ok, target, problems, warnings }`.
|
|
19
19
|
- `ambasada dev` starts the mock Payments API on :8788 and the project's dev server (`next dev`, `vite` or
|
|
20
20
|
`wrangler dev`, `src/stack.ts`) on `product.url`, with `AMBASADA_*` pointed at the mock. `--mock-only`: the mock alone.
|
|
21
|
+
- `src/storage.ts`: `ambasada db migrate | shell | tables | migrations`, `ambasada kv …`, `ambasada files …` on the app's
|
|
22
|
+
D1, KV and R2 through `/v1/dev/{db,kv,files}` (docs/STORAGE.md); `--local` runs the same against wrangler's local
|
|
23
|
+
state (`ambasada dev` applies `db/migrations` locally before starting the dev server). `ambasada deploy` sends the
|
|
24
|
+
project's Durable Objects and migrations from `wrangler.jsonc` and prints what the first deploy provisioned.
|
|
21
25
|
- `src/commands.ts`: login (device code at `/v1/auth/device`, else paste a key; saved in `~/.config/ambasada/config.json`),
|
|
22
26
|
init, dev, deploy, link, check, offerings, wallet, ledger, logs, market, steer, webhook, links.
|
|
23
27
|
- `src/mock/`: the local mock of the Payments API (fake bank, fake visitor, real receipts and webhook signatures,
|