@waffo/pancake-cli 0.0.0-stage → 0.0.1-rc.1
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/CHANGELOG.md +37 -0
- package/CONTRIBUTING.md +38 -0
- package/LICENSE +21 -0
- package/README.md +218 -2
- package/SECURITY.md +23 -0
- package/SKILL.md +108 -0
- package/dist/adapters/browser-login.js +210 -0
- package/dist/adapters/config.js +133 -0
- package/dist/adapters/files.js +222 -0
- package/dist/adapters/loopback-forward.js +33 -0
- package/dist/adapters/operations.js +89 -0
- package/dist/adapters/pancake/client.js +238 -0
- package/dist/adapters/pancake/conflict-error.js +18 -0
- package/dist/adapters/pancake/graphql-errors.js +41 -0
- package/dist/adapters/pancake/http-error-reason.js +12 -0
- package/dist/adapters/pancake/queries.js +9 -0
- package/dist/adapters/pancake/safe-reason.js +23 -0
- package/dist/adapters/system-process.js +12 -0
- package/dist/application/action-result.js +41 -0
- package/dist/application/api-actions.js +82 -0
- package/dist/application/api-reads.js +56 -0
- package/dist/application/auth-context.js +34 -0
- package/dist/application/auth.js +112 -0
- package/dist/application/confirmation.js +14 -0
- package/dist/application/diagnostics.js +48 -0
- package/dist/application/dispatch.js +107 -0
- package/dist/application/listen.js +147 -0
- package/dist/application/local.js +35 -0
- package/dist/application/product-verification.js +96 -0
- package/dist/application/products.js +72 -0
- package/dist/application/queries.js +26 -0
- package/dist/application/read-handlers.js +30 -0
- package/dist/application/read-operation.js +30 -0
- package/dist/application/webhooks.js +59 -0
- package/dist/cli/guidance.js +29 -0
- package/dist/cli/human-output.js +44 -0
- package/dist/cli/input.js +62 -0
- package/dist/cli/listen-output.js +10 -0
- package/dist/cli/login-prompt.js +66 -0
- package/dist/cli/output.js +43 -0
- package/dist/cli/run.js +128 -0
- package/dist/commands/action-definitions.js +75 -0
- package/dist/commands/action-schemas.js +47 -0
- package/dist/commands/action-values.js +11 -0
- package/dist/commands/api-coverage.js +24 -0
- package/dist/commands/checkout-action-schema.js +25 -0
- package/dist/commands/discount-definitions.js +43 -0
- package/dist/commands/discount-schemas.js +39 -0
- package/dist/commands/discount-validation.js +17 -0
- package/dist/commands/listen-input.js +12 -0
- package/dist/commands/operation-impact.js +16 -0
- package/dist/commands/product-action-schemas.js +26 -0
- package/dist/commands/read-definitions.js +92 -0
- package/dist/commands/read-query.js +49 -0
- package/dist/commands/read-schemas.js +17 -0
- package/dist/commands/registry.js +45 -0
- package/dist/commands/schemas.js +94 -0
- package/dist/contracts/command.js +1 -0
- package/dist/contracts/errors.js +26 -0
- package/dist/contracts/impact.js +1 -0
- package/dist/contracts/listen.js +1 -0
- package/dist/contracts/loopback-target.js +14 -0
- package/dist/contracts/types.js +1 -0
- package/dist/index.js +20 -0
- package/docs/api-coverage.md +154 -0
- package/docs/usage.md +455 -0
- package/package.json +60 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.1-rc.1
|
|
4
|
+
|
|
5
|
+
Release candidate for UAT acceptance on npm's `next` channel. Production service availability and acceptance are separate from this package release.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Require explicit Production/shared-resource confirmations independently of `--yes`; declare operation impact in discovery, previews, output and local records.
|
|
10
|
+
|
|
11
|
+
- Provide 62 commands for merchant authentication, stores, products, subscription groups, checkout, refunds, notification recipients, content-safety checks, discounts, webhooks and diagnostics.
|
|
12
|
+
- Support browser device authorization with a matching-code confirmation and verified Test/Production switching, plus RSA file or hidden pasted-key login. Browser login requires compatible hosted services.
|
|
13
|
+
- Provide command discovery, input schemas, JSON output, read-only GraphQL, private response exports and offline write previews.
|
|
14
|
+
- Add temporary webhook listening and localhost forwarding, with signature preservation, delivery reporting, retries and session cleanup. Event triggering is not included.
|
|
15
|
+
- Require explicit write confirmation and retain operation records without automatically retrying uncertain writes.
|
|
16
|
+
- Build with TypeScript and validate packaged npm/npx installation on macOS, Linux and Windows. Test Homebrew installation on macOS/Linux, including startup without an external Node.js runtime.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Install dependencies before release validation in a clean CI runner.
|
|
21
|
+
- Stop browser-session writes when preflight environment evidence is missing or mismatched; retain uncertain outcomes if the write response has mismatched evidence.
|
|
22
|
+
- Prevent environment selection from restoring a login that was concurrently cleared or replaced.
|
|
23
|
+
- Rotate completed query records at capacity without discarding retained write intents or unresolved operations.
|
|
24
|
+
- Save known action targets and service context before sending writes, so lost responses remain traceable.
|
|
25
|
+
|
|
26
|
+
- Reject monetary amounts with unsupported currency precision instead of allowing silent rounding.
|
|
27
|
+
- Warn that product price updates replace the full price table and remove omitted currencies.
|
|
28
|
+
- Explain commands that require RSA credentials instead of incorrectly reporting an expired browser login.
|
|
29
|
+
- Distinguish explicit business conflicts from unknown write outcomes and preserve safe server error details and request identifiers when supplied.
|
|
30
|
+
- Remove CLI-managed pasted-key copies after successful credential replacement or logout, preserving user-supplied key files and credentials after failed login.
|
|
31
|
+
- Harden local credential permissions, process execution and secret scanning.
|
|
32
|
+
|
|
33
|
+
### Release requirements
|
|
34
|
+
|
|
35
|
+
- Browser authorization, verified environment headers and webhook listening require separately deployed compatible services.
|
|
36
|
+
- Production integration acceptance and actual Windows console Ctrl+C acceptance remain release gates.
|
|
37
|
+
- npm publication and registry-to-Homebrew delivery have not yet been verified by a public release.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Source contributions require access to the GitHub repository. Using the published CLI and reading its bundled guides do not.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
Use Node.js 22.14 or newer and the pnpm version pinned in `package.json`.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm install --frozen-lockfile
|
|
11
|
+
pnpm run check
|
|
12
|
+
pnpm cli commands --json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For automatic compilation, run `pnpm dev` in one terminal and `pnpm cli <command>` in another after compilation succeeds.
|
|
16
|
+
|
|
17
|
+
## Structure
|
|
18
|
+
|
|
19
|
+
- `src/cli`: argument parsing, prompts and output.
|
|
20
|
+
- `src/commands`: command definitions and schemas.
|
|
21
|
+
- `src/application`: workflows using internal contracts.
|
|
22
|
+
- `src/adapters`: API, browser and local-file implementations.
|
|
23
|
+
- `src/contracts`: shared types and errors.
|
|
24
|
+
- `scripts`: tests, packaging and release utilities.
|
|
25
|
+
|
|
26
|
+
Keep API and filesystem access in adapters. Add tests for changed behavior and update user documentation when commands or output change.
|
|
27
|
+
|
|
28
|
+
## Before opening a pull request
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pnpm run check
|
|
32
|
+
pnpm run pack:release
|
|
33
|
+
pnpm run test:package
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Describe the problem, the resulting behavior and validation. Keep changes focused. Use synthetic fixtures; never commit credentials, real customer data or internal research. The automated tests use isolated state and mocks; they do not establish live merchant acceptance. CI runs on Linux, macOS and Windows.
|
|
37
|
+
|
|
38
|
+
For manual integration, use a dedicated `WAFFO_CONFIG_DIR` and test credentials. Browser login requires compatible Dashboard and API endpoints. Never use production writes to validate a contribution.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Waffo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,219 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Waffo Pancake CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Developer CLI for Waffo Pancake, built with TypeScript, Node.js and Commander. The official TypeScript compiler builds the CLI.
|
|
4
|
+
|
|
5
|
+
**Status: 0.0.1-rc.1 release candidate.** Implemented: 62 commands covering merchant authentication, resource queries, 33 supported merchant API-Key REST action routes within the scope below, read-only GraphQL, offline previews, operation records and redacted diagnostics. Manage stores, products, subscription groups, checkout sessions, subscription cancellation, refund tickets, customer session tokens, notification recipients, content-safety checks, coupons, promotion codes and test webhooks. Temporary local webhook listening is available for browser sessions; event triggering is not implemented. This is separate from the Pancake migration CLI.
|
|
6
|
+
|
|
7
|
+
## Try locally without publishing
|
|
8
|
+
|
|
9
|
+
Install the project's pinned package manager once: `npm install -g pnpm@11.25.0`. Use pnpm for repository development; the published CLI can still be installed with npm, npx or Homebrew.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm install --frozen-lockfile
|
|
13
|
+
pnpm run check
|
|
14
|
+
pnpm cli
|
|
15
|
+
pnpm cli commands --json
|
|
16
|
+
pnpm cli schema webhook.add --json
|
|
17
|
+
cat > product.json <<'JSON'
|
|
18
|
+
{"storeId":"STO_example","name":"Demo product","prices":{"USD":{"amount":"19.99","taxCategory":"saas"}}}
|
|
19
|
+
JSON
|
|
20
|
+
pnpm cli products create --type onetime --file product.json --dry-run --json
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
See the [usage guide](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/docs/usage.md) for input examples and safe operations, and the [API coverage matrix](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/docs/api-coverage.md) for every command, endpoint and authentication boundary. `commands`, `schema` and supported `--dry-run` options work offline without credentials. Pipe output or use `--json` for one JSON envelope (`listen` streams NDJSON envelopes); debugging goes to stderr. Monetary amounts are decimal strings.
|
|
24
|
+
|
|
25
|
+
Documentation links serve the published npm package through jsDelivr and become available after this version is published; no GitHub access is needed. The same Markdown guides ship in the package for offline reading. For a global npm installation, run `npm root -g` and open `@waffo/pancake-cli/docs/usage.md` under that directory. In a source checkout, open `docs/usage.md` directly.
|
|
26
|
+
|
|
27
|
+
CLI prompts and help use concise English. In a terminal, `pnpm cli` shows the first-use steps, `commands` prints a compact command list, and `whoami` explains how to log in when no credentials are present. Use `--json` (or pipe stdout) for the complete machine envelope. Local pnpm/npm script help uses the corresponding local command; installed CLI help uses `pancake`.
|
|
28
|
+
|
|
29
|
+
Run `pnpm cli login` in an interactive terminal. The CLI displays a short code and opens Dashboard sign-in. Check that the browser shows the same code and the intended account, then click **Authorize CLI**. Only approve a login you started yourself. Authorization expires after 15 minutes; run login again if it expires. The CLI polls for a separate session, verifies your merchant and environment, and saves it in owner-only local configuration. The page confirms completion after saving. If final confirmation fails, the CLI reports an unconfirmed login and asks you to log in again. Credentials awaiting server confirmation cannot renew themselves and may expire within five minutes. Configuration is stored in `~/.waffo-pancake/config.json` (Windows: `%USERPROFILE%\.waffo-pancake\config.json`). Set `WAFFO_CONFIG_DIR` to override the directory. If upgrading from the previous OS-specific directory, log in again; old files are not migrated. The browser's session token never enters the CLI. A failed or cancelled login before saving preserves the existing login.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm cli login
|
|
33
|
+
pnpm cli whoami
|
|
34
|
+
pnpm cli env test
|
|
35
|
+
pnpm cli stores list
|
|
36
|
+
pnpm cli env prod
|
|
37
|
+
pnpm cli logout
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Browser login starts in Test. Signing in again to the same merchant on the same API server preserves the CLI selection; a different merchant or API server starts in Test. Dashboard mode never changes the CLI selection.
|
|
41
|
+
|
|
42
|
+
Browser login grants business operations in Test and Production, subject to your existing merchant and store permissions. It does not grant API Key management, account deletion, payout or bank changes, other-device management, further CLI authorization, or access to API credentials, Webhook `secret` fields and identity documents. The server checks every route and GraphQL field; unlisted operations are denied. No scope selection is required. Existing browser CLI sessions must log in again after this permission change. RSA permissions are unchanged.
|
|
43
|
+
|
|
44
|
+
`env test|prod` verifies access in the requested environment before saving the selection. Your current merchant permissions still apply. `logout` revokes the saved browser session on the server before clearing local credentials. If revocation cannot be confirmed, it retains the credential and directs you to Dashboard Security. Session expiry follows the existing merchant session lifetime and active-session renewal.
|
|
45
|
+
|
|
46
|
+
For RSA login, get a key from Dashboard → API & Development → API Keys. Use `pnpm cli login --key-login` for hidden entry, or provide both flags:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pnpm cli login --merchant-id MER_example --private-key-file /absolute/path/key.pem
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
RSA login verifies the merchant before saving the absolute key path. Pasted keys use an owner-only file that the CLI removes after successful login replacement or logout; supplied key files are preserved. RSA keys retain their server-assigned environment; use browser login for `env`. Noninteractive login requires explicit RSA credentials and never opens a browser. Ctrl+C cancels login without replacing credentials.
|
|
53
|
+
|
|
54
|
+
Automation can inject `WAFFO_MERCHANT_ID` plus exactly one of `WAFFO_PRIVATE_KEY` or `WAFFO_PRIVATE_KEY_FILE`. This complete environment pair overrides the saved login, without inheriting its default store; partial pairs fail. Login and logout explicitly report environment overrides. Unset all three credential variables to activate the saved login or finish logging out. Merchant/key flags are accepted only by `login`.
|
|
55
|
+
|
|
56
|
+
The backend determines test or production from the matching RSA key. The CLI reads `X-Waffo-Environment: test|prod` from the authenticated gateway response, records it per request, and shows `Environment: Test` or `Environment: Production`. Login and whoami expose the same evidence; doctor passes the environment check only when verified. RSA environments cannot be selected locally. Browser sessions send the chosen `X-Environment`; only the authenticated response header verifies it.
|
|
57
|
+
|
|
58
|
+
**Deployment dependency:** Browser login requires the Dashboard authorization page, user-service device authorization endpoints and gateway routes/header changes. They must be deployed separately from the CLI; production availability has not been verified. Until the gateway returns the header, results remain `Environment: Unknown (unverified)` and doctor reports the missing evidence. Missing or invalid headers never reuse an older request's environment. JSON keeps `meta.actualEnvironment` and `meta.environmentVerified`; a verified merchant identity alone does not verify its environment.
|
|
59
|
+
|
|
60
|
+
Writes require `--yes` and a verified environment. Production writes and Test→Production publication also require `--confirm-production`. Store and notification-recipient changes affect shared Test/Production resources and require `--confirm-shared`; when executed in Production, both flags are required. These confirmations do not change server permissions or require another browser login. Unknown outcomes are never automatically retried. Webhook writes remain Test-only.
|
|
61
|
+
|
|
62
|
+
Discovery and offline previews show `impactPolicy` and confirmation requirements. Offline previews cannot verify the current environment: environment-dependent `impact` is `null`, and `requiresProductionConfirmation` is `when-prod`. Execution, errors and operation records report the resolved `impact`: `test`, `prod`, `shared` or `test-to-prod`.
|
|
63
|
+
|
|
64
|
+
After reviewing the preview and confirming the intended merchant key and store, create a product:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
pnpm cli products create --type onetime --file product.json --yes --idempotency-key MER_example_product_001 --json
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This performs a real write and may affect production. Subscription input also needs `billingPeriod`. Every write requires a durable local intent and is attempted once; keep its operation ID and idempotency key. If the result is unknown or verification is pending, inspect the operation and query the product (or find it in the merchant dashboard if no ID was returned). Never repeat creation to recover a missing response. Product creation results omit metadata, descriptions and URLs; warnings go to stderr while stdout retains one JSON envelope.
|
|
71
|
+
|
|
72
|
+
The expanded action commands use `--file input.json`, require `--yes`, and support `--idempotency-key`. Use `schema <command.id>` and `--dry-run` before execution. `products publish` and `groups publish` explicitly copy test data to production. New actions report `response_only` verification, or `acknowledgement_only` for group deletion/publication; they do not claim a resource read-back. Product creation and test-webhook configuration retain read-back verification. Browser login can read Webhook addresses but cannot read `secret`. Secret changes use server acknowledgement (`verification: response_only`), without a secret read-back or an extra Dashboard step.
|
|
73
|
+
|
|
74
|
+
Checkout and customer-session creation require `--output` to a new private file. Customer-session issuance requires RSA login; browser login is unsupported for this command. It is not CLI login. Arbitrary `graphql query` and `analytics query` also require private output for execution; their parser rejects mutations, subscriptions and multiple operations before credentials or network access. There is no raw REST passthrough. Customer-token-only order cancellation/reactivation is outside merchant coverage. Product create/update rejects `taxIncluded`; webhook writes remain test-only. No real merchant acceptance or release is implied by route coverage.
|
|
75
|
+
|
|
76
|
+
Configuration uses version 2. Legacy version 1 is not migrated: run `logout`, then `login` with your existing key. Unknown future versions are never overwritten, including by logout.
|
|
77
|
+
|
|
78
|
+
## Install the release candidate
|
|
79
|
+
|
|
80
|
+
The candidate uses npm's `next` channel. These commands require the package to have been published; preparing this repository does not publish it.
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
npm install -g @waffo/pancake-cli@next
|
|
84
|
+
pancake --version
|
|
85
|
+
# Or run the exact candidate without a global installation:
|
|
86
|
+
npx @waffo/pancake-cli@0.0.1-rc.1 --help
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
For UAT acceptance, get the UAT Dashboard and API origins from your team and pass both explicitly. The selected API origin is saved for later commands.
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
pancake login --dashboard-url <uat-dashboard-origin> --api-url <uat-api-origin>
|
|
93
|
+
pancake whoami
|
|
94
|
+
pancake env test
|
|
95
|
+
pancake stores list
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Check the merchant and environment before business operations. Default URLs target production; npm installation does not deploy the hosted services. Production browser login and listening require separate deployment and acceptance. Automated Windows package checks pass; a real Windows console Ctrl+C listener walkthrough remains pending.
|
|
99
|
+
|
|
100
|
+
To update within the candidate channel, run `npm install -g @waffo/pancake-cli@next`. Stable Homebrew does not install prereleases.
|
|
101
|
+
|
|
102
|
+
## Stable installation (after stable release)
|
|
103
|
+
|
|
104
|
+
### Homebrew — macOS/Linux
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
brew tap waffo-com/pancake
|
|
108
|
+
brew install waffo-com/pancake/pancake
|
|
109
|
+
pancake --help
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Homebrew installs Node.js. The qualified formula name avoids tap conflicts; `brew install pancake` works when unambiguous.
|
|
113
|
+
|
|
114
|
+
### npm — macOS/Linux/Windows
|
|
115
|
+
|
|
116
|
+
Requires Node.js >=22.14.
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
npm install -g @waffo/pancake-cli
|
|
120
|
+
pancake --help
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### npx — without a global installation
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
npx @waffo/pancake-cli --help
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Pin a published version for repeatable automation. Prereleases use npm's `next` tag and never update stable Homebrew.
|
|
130
|
+
|
|
131
|
+
## Development
|
|
132
|
+
|
|
133
|
+
Use Node.js 24 LTS for development. Development and the installed CLI require Node.js >=22.14; the pinned pnpm 11.25.0 supports this minimum.
|
|
134
|
+
|
|
135
|
+
The official TypeScript compiler emits ESM JavaScript modules into `dist/`. Commander continues to handle commands, arguments and help. `pnpm cli` runs `node dist/index.js`; the package includes the complete compiled module tree, not a single bundle.
|
|
136
|
+
|
|
137
|
+
For everyday development, keep automatic builds running in one terminal:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
pnpm dev
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
After the first successful build, run commands from the project directory in a second terminal:
|
|
144
|
+
|
|
145
|
+
```sh
|
|
146
|
+
pnpm cli commands --json
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Saved changes automatically recompile with TypeScript; rerun the CLI command after compilation succeeds. No global installation or `npm link` is needed. `dev` watches files; it does not start an API service or register the global `pancake` command. Use `pnpm --silent cli commands --json` when piping JSON so pnpm omits its script banner.
|
|
150
|
+
|
|
151
|
+
TypeScript watch can leave old output after source files are renamed or deleted. Restart `pnpm dev` or run `pnpm run build` to clean and recompile. `pnpm run pack:release` always starts with a clean build.
|
|
152
|
+
|
|
153
|
+
For validation and package testing:
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
pnpm install --frozen-lockfile
|
|
157
|
+
pnpm run check
|
|
158
|
+
pnpm run pack:release
|
|
159
|
+
pnpm run test:package
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Package smoke tests install the actual tarball in isolated directories and exercise npm exec (the npx mechanism) and the global executable. No merchant credentials are needed.
|
|
163
|
+
|
|
164
|
+
## CI/CD
|
|
165
|
+
|
|
166
|
+
- PR/main: type checking, tests, build, audit, archive allowlist and npx/global installation on macOS/Linux/Windows with Node 22 and 24, plus installation checks on the minimum runtime, Node 22.14.0.
|
|
167
|
+
- Version tags: validate tag/version/changelog and main ancestry, rerun checks, publish the tested archive via npm OIDC, verify registry integrity, create a GitHub release with the same archive/checksum.
|
|
168
|
+
- Homebrew: CLI CI installs the tested package artifact on macOS/Linux using pinned public tap tooling, without publishing it. The [tap](https://github.com/waffo-com/homebrew-pancake) detects stable npm versions, verifies integrity and tests installation before updating.
|
|
169
|
+
- Weekly Dependabot updates cover dependencies and pinned Actions.
|
|
170
|
+
|
|
171
|
+
See the [agent reference](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/SKILL.md) and [changelog](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/CHANGELOG.md). Maintainer release instructions are in `docs/release/README.md` in the source repository and require repository access.
|
|
172
|
+
|
|
173
|
+
Internal planning documents are maintained outside the source repository. Candidate publication is enabled; publishing still requires npm permissions and passing release checks. Local tests use simulated API responses. Browser-login, product, discount and paid-event listener flows also have shared UAT Test-environment evidence. This does not establish production acceptance. Windows console Ctrl+C, production deployment and first registry installation remain separate acceptance items.
|
|
174
|
+
|
|
175
|
+
Using or contributing to this open-source client does not require private service source code. Remote commands require credentials and access to a compatible hosted API; browser login also requires a compatible Dashboard. Offline discovery and previews need neither service source nor a running API.
|
|
176
|
+
|
|
177
|
+
## Upgrade and uninstall (after release)
|
|
178
|
+
|
|
179
|
+
```sh
|
|
180
|
+
npm install -g @waffo/pancake-cli@latest
|
|
181
|
+
npm uninstall -g @waffo/pancake-cli
|
|
182
|
+
# Or Homebrew:
|
|
183
|
+
brew update
|
|
184
|
+
brew upgrade waffo-com/pancake/pancake
|
|
185
|
+
brew uninstall waffo-com/pancake/pancake
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
MIT license.
|
|
189
|
+
|
|
190
|
+
## Local browser-login integration
|
|
191
|
+
|
|
192
|
+
Use explicit origins with the local Dashboard and mock or development gateway:
|
|
193
|
+
|
|
194
|
+
```sh
|
|
195
|
+
pnpm cli login --dashboard-url http://127.0.0.1:3000 --api-url http://127.0.0.1:3002
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Overrides accept HTTPS, or HTTP on `127.0.0.1` only. No URL credentials, paths, query parameters or fragments are accepted. The selected API origin is saved with the browser session so identity checks and later commands use the same service. Local mocked tests do not establish UAT or production support.
|
|
199
|
+
|
|
200
|
+
## Contributing and security
|
|
201
|
+
|
|
202
|
+
See [CONTRIBUTING.md](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/CONTRIBUTING.md) for development and validation, and [SECURITY.md](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/SECURITY.md) for handling credentials and reporting vulnerabilities. Licensed under [MIT](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/LICENSE).
|
|
203
|
+
|
|
204
|
+
Discount commands support listing, coupon details, creation, coupon renaming, permanent deactivation and promotion-code batches (1–500). See the Discounts section in the [usage guide](https://cdn.jsdelivr.net/npm/@waffo/pancake-cli@0.0.1-rc.1/docs/usage.md). Gateway source permits browser sessions and RSA keys; merchant/store permissions still apply. Discount writes have response-only verification; the nine discount commands passed isolated Test-environment merchant acceptance, including final deactivation read-back. This does not establish production or full CLI release acceptance.
|
|
205
|
+
|
|
206
|
+
## Listen to merchant events locally
|
|
207
|
+
|
|
208
|
+
```sh
|
|
209
|
+
pnpm cli listen --store-id STO_example --forward-to http://localhost:3000/webhook
|
|
210
|
+
pnpm cli listen --store-id STO_example --forward-to http://localhost:3000/webhook --events order.completed --json
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Requires browser login and access to the store. Listening always starts in Test, even if your saved selection is Production. Use `--live` to explicitly listen in Production; this does not change your saved environment. Each API response must verify the requested environment. RSA credentials are unsupported. The receiver must use HTTP(S) on localhost, 127.0.0.1 or [::1]; redirects are not followed.
|
|
214
|
+
|
|
215
|
+
The CLI preserves the exact event body and existing webhook signature, forwards only Content-Type, X-Waffo-Signature and X-Waffo-Event, and reports the actual HTTP response. Only 2xx succeeds; network failures are reported as null. Failed delivery can retry up to three times with the same event ID. Verify signatures with the existing webhook public key for the selected environment and handle duplicate event IDs. Payloads and signatures are never printed.
|
|
216
|
+
|
|
217
|
+
With `--json` or piped stdout, `listen` emits one standard JSON envelope per line: `data.type` is `ready`, `delivery` or `stopped`, followed by an error envelope if listening fails. Delivery metadata includes deliveryId, eventId, eventType, attempt and httpStatus. Ctrl+C and SIGTERM stop and clean up the session before exiting (130); cleanup failure exits nonzero and reports the 90-second expiry fallback. Abrupt process termination leaves only a temporary session that expires within 90 seconds of its last successful poll. No permanent webhook is changed. Listening requires separately deployed relay/gateway support.
|
|
218
|
+
|
|
219
|
+
Isolated Test acceptance verified a sandbox payment event reaching localhost, valid signatures on both attempts, retry after HTTP 500 followed by HTTP 200, and Ctrl+C cleanup. Production listening has not been acceptance-tested.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Security
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Do not include tokens, private keys or customer data in public issues or pull requests. Use GitHub's private vulnerability reporting option if available; otherwise arrange a private reporting channel with a repository maintainer before sharing details.
|
|
6
|
+
|
|
7
|
+
## Credential storage
|
|
8
|
+
|
|
9
|
+
The CLI stores the current login in `~/.waffo-pancake/config.json` (Windows: `%USERPROFILE%\.waffo-pancake\config.json`). `WAFFO_CONFIG_DIR` overrides this directory.
|
|
10
|
+
|
|
11
|
+
Session tokens are stored as plaintext in files restricted to the current OS user. This is not an encrypted credential vault. Other software running as that user may access them. Pasted RSA keys are saved in private files; file-based login stores the key's absolute path.
|
|
12
|
+
|
|
13
|
+
Failed login verification preserves the previous credentials. Browser logout revokes the saved server session before clearing local credentials; a network failure retains the credential for recovery. RSA logout clears local references without revoking the API key or deleting external key files. New pasted-key copies carry explicit CLI ownership metadata and are removed after successful credential replacement or logout. Cleanup refuses symlinks, hard links and paths outside the private state directory. A cleanup error reports that the new login was saved or the old login was cleared; it does not roll back the configuration. Older unmarked copies are not automatically deleted because ownership cannot be established; inspect the configuration directory and remove unused historical copies manually. If credentials are exposed, revoke or rotate them through the service administrator.
|
|
14
|
+
|
|
15
|
+
## Safe testing
|
|
16
|
+
|
|
17
|
+
CI scans Git history with Gitleaks and checks dependencies for known high-severity vulnerabilities. The history scan runs after a push or pull request; it is not a pre-push blocker. GitHub-native code scanning and push protection depend on the repository's plan and security entitlements.
|
|
18
|
+
|
|
19
|
+
Use test credentials and inspect the verified environment before making API calls. An unknown environment is not proof of Test mode. Keep real credentials and integration output outside Git, and review diagnostic files before sharing them.
|
|
20
|
+
|
|
21
|
+
## Browser CLI permissions
|
|
22
|
+
|
|
23
|
+
Browser credentials carry a fixed business grant for Test and Production, constrained by existing merchant and store access. The gateway checks the saved session, signed grant, route and GraphQL fields before returning data or executing actions. Unlisted operations and API credentials and Webhook `secret` fields are denied. CLI credentials cannot manage API Keys, delete accounts, change payout or bank details, manage other devices, approve more CLI logins, or read identity documents. They can revoke their own session. Changing environments does not require a second browser approval. RSA credentials retain their server-assigned permissions.
|
package/SKILL.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: waffo-pancake-cli
|
|
3
|
+
description: Discover and use the Waffo Pancake CLI for merchant API operations, read-only GraphQL, test webhook configuration, offline previews and local diagnostics.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Waffo Pancake CLI
|
|
7
|
+
|
|
8
|
+
Release candidate: `0.0.1-rc.1`, on the `next` channel once published. Install with `npm install -g @waffo/pancake-cli@next`, or use `npx @waffo/pancake-cli@0.0.1-rc.1`. In a source checkout, use `pnpm cli` after `pnpm install --frozen-lockfile && pnpm run build`. Runtime and development require Node.js >=22.14; Node.js 24 LTS is recommended for development. Use the pinned pnpm 11.25.0.
|
|
9
|
+
|
|
10
|
+
For UAT, pass team-provided `--dashboard-url <origin>` and `--api-url <origin>` to login; default URLs target production. Check `whoami` and select `env test` before UAT business operations. Package installation does not deploy compatible hosted services or prove production readiness.
|
|
11
|
+
|
|
12
|
+
## Discover before acting
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pnpm cli commands --json
|
|
16
|
+
pnpm cli schema webhook.add --json
|
|
17
|
+
pnpm cli webhook add --help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Local examples use `pnpm cli`; the executable is named `pancake` after publication. The official TypeScript compiler emits a complete ESM module tree in `dist/`; `pnpm cli` runs `node dist/index.js`. Commander handles commands, arguments and help. `pnpm dev` watches and recompiles; run commands in a second terminal after compilation succeeds. After renaming or deleting source files, restart `pnpm dev` or run `pnpm run build` to remove old output. `pnpm run pack:release` starts with a clean build. Do not invent commands from the roadmap. Temporary local webhook listening is implemented for browser sessions; simulated event sending and MCP are not implemented. `products create` supports offline preview and real onetime/subscription creation with `--yes`.
|
|
21
|
+
|
|
22
|
+
## Authentication
|
|
23
|
+
|
|
24
|
+
Use an existing Merchant ID and RSA private-key file; never put private-key contents in arguments or diagnostic output.
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm cli login --merchant-id MER_abc --private-key-file /absolute/path/key.pem --no-interactive --json
|
|
28
|
+
pnpm cli whoami --json
|
|
29
|
+
pnpm cli stores list --limit 20 --json
|
|
30
|
+
pnpm cli logout --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`login` validates the local RSA key and verifies the remote merchant identity before saving one current credential. RSA login stores only the absolute key path. Default interactive login opens the browser and shows a matching code. Confirm the account and code, then click Authorize CLI only for a login you started yourself. The request expires after 15 minutes. The CLI verifies identity and environment before saving a separate merchant session in private configuration. Browser completion appears only after saving; `LOGIN_CONFIRMATION_FAILED` means final confirmation failed after saving: that credential may expire within five minutes, so run login again. `env test|prod` verifies the chosen environment before saving; RSA keys do not support environment switching. Noninteractive browser login is rejected; use the explicit RSA flags above. Never expose session tokens in output or diagnostics. Verified credentials automatically replace the saved login; verification and pre-commit failures preserve the old credential. A cleanup failure explicitly reports that the configuration update already completed. Interactive `login --key-login` accepts a key or file path in a hidden input and detects the format. Pasted keys are saved in an owner-only file; never put raw keys in shell arguments. Merchant/key flags are login-only. `--store-id` sets the saved default on login or overrides the target for an operation.
|
|
34
|
+
|
|
35
|
+
Alternatively inject `WAFFO_MERCHANT_ID` with exactly one of `WAFFO_PRIVATE_KEY_FILE` or `WAFFO_PRIVATE_KEY` through the agent's secret environment. Never echo these values. A complete environment pair overrides the saved credential without inheriting its store; incomplete or malformed pairs fail. Login reports `savedLoginActive:false` and a warning when environment credentials are present. Browser logout revokes its saved server session before clearing local credentials; unconfirmed revocation retains the credential. RSA logout clears saved credentials and removes marked CLI-managed pasted-key copies, preserves supplied key files and operation records, and warns that environment credentials remain. Unset all three variables to use the saved login or finish logging out.
|
|
36
|
+
|
|
37
|
+
`whoami` verifies the effective merchant and reports `authenticated:true` plus the source (`stored` or `environment`). Without any credentials, it succeeds locally with `authenticated:false`. Login results identify the verified login input using `source:login`; an environment warning means this saved credential is not effective for subsequent commands.
|
|
38
|
+
|
|
39
|
+
The CLI verifies environment from the authenticated gateway response header `X-Waffo-Environment: test|prod`. RSA keys have a server-assigned environment; browser sessions send the selected `X-Environment`, which still requires response-header verification. Report `credentialVerified` separately from `actualEnvironment` and `environmentVerified`. Missing or invalid headers mean `actualEnvironment:null`, `environmentVerified:false`, and `doctor` reports `ENVIRONMENT_UNVERIFIED`; never infer environment from merchant identity, an empty result or a local selection. Product creation requires `--yes` and may affect production. Webhook writes remain test-resource-only.
|
|
40
|
+
|
|
41
|
+
Configuration is version 2. Legacy version 1 must be cleared with explicit `logout` and replaced using `login`; there is no migration or account-switching mechanism. Logout can reset safely readable corrupt configuration, but refuses symlinks, nonregular state files and unknown future versions.
|
|
42
|
+
|
|
43
|
+
## Read and preview
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
pnpm cli products get PROD_abc --type onetime --json
|
|
47
|
+
pnpm cli webhook list --store-id STO_abc --json
|
|
48
|
+
pnpm cli products create --type onetime --file product.json --dry-run --json
|
|
49
|
+
pnpm cli webhook add --file webhook.json --dry-run --json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Read the command schema to construct JSON files. `--file -` reads one JSON object from stdin, limited to 1 MiB and five seconds. Decimal amounts must be strings. Do not specify the same field in both the file and arguments. Dry-run performs local validation only: no credentials, network or operation records; it does not prove remote acceptance.
|
|
53
|
+
|
|
54
|
+
## Expanded merchant coverage
|
|
55
|
+
|
|
56
|
+
There are 62 registered commands and 33 supported merchant API-Key REST action routes. Run discovery for exact flags and schemas; do not invent `orders get`, `subscriptions get`, or group read commands. Resource lists cover products, versions, orders, subscriptions, payments, refunds, refund tickets, notification recipients and merchants. Product/order variants require `--type onetime|subscription` where documented. Read one page at a time; a full page means `hasMore:"unknown"`.
|
|
57
|
+
|
|
58
|
+
New actions manage stores, product updates/publication/status, subscription groups, checkout, merchant subscription cancellation, refund tickets, customer session tokens, notification recipients and content scans. Use `--file input.json`, `--dry-run`, explicit `--yes`, and preferably an explicit `--idempotency-key`. Without a key the CLI generates one and returns it. These actions use ID fields inside the input file, not invented positional arguments. Read each schema before constructing input.
|
|
59
|
+
|
|
60
|
+
Production writes require `--yes --confirm-production`. `products publish` and `groups publish` also require both flags even when logged into Test, because they target PRODUCTION. Store create/update/delete and recipient add/update/remove affect shared Test/Production resources: require `--yes --confirm-shared`, plus `--confirm-production` when authenticated in Production. Do not silently add these flags; obtain the user's explicit approval for the stated impact. Offline previews declare policy, not verified environment; `impact:null` with `requiresProductionConfirmation:"when-prod"` requires identity verification before execution. Execution and operation records report the resolved `impact`. These local confirmations do not grant server permissions or trigger browser reauthorization.
|
|
61
|
+
|
|
62
|
+
`products publish` and `groups publish` target PRODUCTION from test data. New actions report `response_only`; group delete/publish reports `acknowledgement_only`. Do not describe these as read-back verification. A completed refund-ticket request is not completed repayment. Content scan is stateless but requires confirmation, durable intent and one POST attempt.
|
|
63
|
+
|
|
64
|
+
`checkout create` and `sessions create` require a new private `--output` file for real execution. The file contains sensitive links/tokens; stdout only acknowledges export. Session issuance requires RSA credentials; browser sessions are rejected before the action request. It is not CLI login. Files cannot overwrite existing files; POSIX mode is 0600 and Windows uses owner-only ACLs. A post-acceptance export or journal failure is `committed_unverified`; do not replay to recover the response.
|
|
65
|
+
|
|
66
|
+
`graphql query` and `analytics query` accept a JSON file containing `query` and optional `variables`. A real parser rejects mutations, subscriptions and multiple operations before credentials/network, including dry-run. Real execution requires private `--output` because arbitrary aliases/fragments can contain secrets. There is no raw REST passthrough. Group query fields must be confirmed using official documentation/introspection before use; do not invent a group root field. Customer-token-only onetime cancellation, customer subscription cancellation and reactivation are excluded from merchant scope.
|
|
67
|
+
|
|
68
|
+
## Remote changes
|
|
69
|
+
|
|
70
|
+
`products create --type onetime|subscription --file product.json --yes --idempotency-key KEY` creates a real product using the effective credential environment. Review the merchant, store, name and prices before confirming. The CLI requires verified environment evidence before writing and requires explicit production confirmation for Production. Subscription input requires `billingPeriod`; trial prices require positive `metadata.trialDays`. For product creation or updates, do not supply `taxIncluded`: the backend fixes tax-exclusive pricing and this CLI rejects that option. Results contain safe product fields; descriptions, metadata and URLs are omitted.
|
|
71
|
+
|
|
72
|
+
`webhook add/update/remove` also perform remote changes. Add requires `testMode:true`. Update/remove require an accessible existing test webhook in the selected store. Channel and test mode cannot be updated. Listing shows Webhook addresses and omits secrets. Configuring a webhook does not verify event delivery.
|
|
73
|
+
|
|
74
|
+
Use a reviewed input and `--yes`; this confirms intent without bypassing checks. Preserve the operation ID and idempotency key. A write is attempted once, with a persisted local intent before sending. Reusing a locally recorded key is blocked; this is not a distributed or permanent deduplication guarantee.
|
|
75
|
+
|
|
76
|
+
## Results and recovery
|
|
77
|
+
|
|
78
|
+
`--json` and non-TTY output produce one JSON object on stdout (except `listen`, which streams NDJSON): `schemaVersion`, `ok`, `data`, `error`, `meta`. Logs go to stderr. Non-interactive calls never prompt. Exit codes: 0 success; 1 execution/verification failure; 2 invalid input/configuration; 130 interruption. Always check `ok` and `meta.outcome`. Authenticated success and error metadata includes `merchantId`, `source`, `actualEnvironment` (`test`, `prod` or `null`) and `environmentVerified`; human output also shows this context and available operation/request IDs. A selected environment alone is not verified evidence.
|
|
79
|
+
|
|
80
|
+
- `completed`: the command finished; a dry-run still has `data.executed:false`.
|
|
81
|
+
- `rejected`: the requested operation was not completed; inspect the error.
|
|
82
|
+
- `unknown`: the write may have succeeded. Query and inspect records before taking action; do not retry with a new key.
|
|
83
|
+
- `committed_unverified`: the API accepted the change but readback, private export or local-record completion failed. For products run `products get RESOURCE_ID --type onetime|subscription --json` with the same credentials, then inspect the operation; do not repeat the write. If no resource ID is known, inspect the merchant dashboard for the recorded store.
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
pnpm cli operations list --json
|
|
87
|
+
pnpm cli operations show OPERATION_ID --json
|
|
88
|
+
pnpm cli diagnostics export --operation OPERATION_ID --output ./diagnostics.json --json
|
|
89
|
+
pnpm cli doctor --debug --json
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Diagnostics are local, redacted and never automatically uploaded. Ask before sharing them with another party. No request ID from the server means `requestId:null`; local operation IDs are not server audit IDs. Records are capped at 1000; resolved records older than 30 days are pruned on the next operation. Unresolved records are retained.
|
|
93
|
+
|
|
94
|
+
After publication use a fixed actual version, such as `npx @waffo/pancake-cli@VERSION ...`. Update via the original package manager outside active tasks; do not mutate the running CLI or overwrite unknown config/record versions.
|
|
95
|
+
|
|
96
|
+
## Discounts
|
|
97
|
+
|
|
98
|
+
Use `coupons list|get|create|update|deactivate` and `promotion-codes list|create|generate|deactivate`. Coupon lists require storeId; promotion-code lists require couponId in a JSON file. Coupon update changes only name; deactivation is permanent. Generate accepts 1–500 codes. Schema and dry-run validate offline; execute writes with --yes and an explicit idempotency key. Browser sessions and RSA keys are accepted by gateway source with server-enforced store permissions. Results expose codes and IDs, omit customer restrictions from write summaries, and omit customerEmails from named reads. Use private --output on writes or an explicit arbitrary GraphQL query to export sensitive details. All nine discount commands have isolated Test-environment acceptance evidence, including deactivation read-back; production and full CLI acceptance remain unverified.
|
|
99
|
+
|
|
100
|
+
## Temporary local listener
|
|
101
|
+
|
|
102
|
+
Use `pancake listen --store-id STO_example --forward-to http://localhost:3000/webhook [--events event.name] [--live] [--json]` for actual merchant events. Browser session only; Test default even when saved mode is Production; only explicit `--live` enables Production. `listen` is a streaming exception to one-result output: standard NDJSON envelopes with data.type ready/delivery/stopped, plus terminal failure when needed. Never expect event bodies or signatures in output. Forwarding is loopback-only, redirects fail, only 2xx is success. Stable eventId identifies duplicates/retries. SIGINT/SIGTERM stop the session; abrupt termination uses the 90-second TTL. No permanent endpoint mutation or synthetic trigger.
|
|
103
|
+
|
|
104
|
+
## Service and verification boundaries
|
|
105
|
+
|
|
106
|
+
Private service source is not required to use or develop the open-source client. Remote commands require credentials and a reachable compatible hosted API; browser authorization also needs a compatible Dashboard. Browser login, environment headers and listener relay support must be deployed separately from the CLI. Selected flows have isolated Test-environment evidence; local simulated tests and those flows do not establish full CLI or production acceptance. Production dependencies, hosted cross-platform checks and first publication remain separate gates.
|
|
107
|
+
|
|
108
|
+
Browser login grants supported business operations in Test and Production within existing merchant/store permissions. Server policy denies account, API Key, payout/bank, other-device, further authorization and API credential, Webhook `secret` and identity-document access. No `--scope` option is needed. Use `logout` only for the current CLI session. RSA permissions are unchanged. Webhook addresses remain readable. Browser secret writes use server acknowledgement (`verification: response_only`); do not claim the secret was read back.
|