@farthershore/cli 0.14.3 → 0.14.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 +65 -0
- package/dist/index.js +85 -85
- package/dist/mcp.js +43 -43
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -76,6 +76,7 @@ farthershore skills recommend --format json \
|
|
|
76
76
|
| `--api-url <url>` | Override platform Core API URL |
|
|
77
77
|
| `--env <environment>` | Environment scope (use `production`/`prod`/`main`) |
|
|
78
78
|
| `--format <format>` | `json` for machine-readable output (default for non-TTY) |
|
|
79
|
+
| `--no-input` | Never prompt; use non-interactive agent-safe paths |
|
|
79
80
|
| `--version` | Show version |
|
|
80
81
|
| `--help` | Show help |
|
|
81
82
|
|
|
@@ -343,6 +344,65 @@ export async function POST(request: Request) {
|
|
|
343
344
|
}
|
|
344
345
|
```
|
|
345
346
|
|
|
347
|
+
### `farthershore webhook`
|
|
348
|
+
|
|
349
|
+
Provision outbound webhook endpoints and inspect delivery health. The dashboard
|
|
350
|
+
exposes the same API-managed surface. If the business declares webhooks in
|
|
351
|
+
`business/business.config.ts`, Core returns `409 MANAGED_BY_CODE` for writes so
|
|
352
|
+
the repo remains canonical.
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
farthershore webhook list weather-api --format json
|
|
356
|
+
farthershore webhook create weather-api \
|
|
357
|
+
--url https://hooks.example.com/farthershore \
|
|
358
|
+
--events subscription.created,payment.failed \
|
|
359
|
+
--format json
|
|
360
|
+
farthershore webhook update weather-api <webhookId> --disable --format json
|
|
361
|
+
farthershore webhook test weather-api <webhookId> --format json
|
|
362
|
+
farthershore webhook deliveries weather-api <webhookId> --limit 20 --format json
|
|
363
|
+
farthershore webhook delete weather-api <webhookId> --yes --format json
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
`webhook create` returns the signing secret once. Store it in the receiving app;
|
|
367
|
+
subsequent list/delivery commands never return the secret.
|
|
368
|
+
|
|
369
|
+
### `farthershore promo-code`
|
|
370
|
+
|
|
371
|
+
Manage checkout promo codes. Promo codes are API-controlled operational state,
|
|
372
|
+
not part of `business/business.config.ts`, so agents can manage them through the
|
|
373
|
+
CLI just like the dashboard.
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
farthershore promo-code list weather-api --format json
|
|
377
|
+
farthershore promo-code create weather-api \
|
|
378
|
+
--code LAUNCH25 \
|
|
379
|
+
--kind percent_off \
|
|
380
|
+
--percent 25 \
|
|
381
|
+
--duration-months 3 \
|
|
382
|
+
--plan <planId> \
|
|
383
|
+
--format json
|
|
384
|
+
farthershore promo-code create weather-api \
|
|
385
|
+
--code SAVE500 \
|
|
386
|
+
--kind amount_off \
|
|
387
|
+
--amount-cents 500 \
|
|
388
|
+
--duration-months 1 \
|
|
389
|
+
--format json
|
|
390
|
+
farthershore promo-code update weather-api <promoCodeId> \
|
|
391
|
+
--code LAUNCH30 \
|
|
392
|
+
--kind percent_off \
|
|
393
|
+
--percent 30 \
|
|
394
|
+
--duration-months 3 \
|
|
395
|
+
--all-plans \
|
|
396
|
+
--format json
|
|
397
|
+
farthershore promo-code archive weather-api <promoCodeId> --format json
|
|
398
|
+
farthershore promo-code reactivate weather-api <promoCodeId> --format json
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Stripe coupon changes require a complete discount spec, so `promo-code update`
|
|
402
|
+
requires `--kind`, `--duration-months`, and the required amount flag for that
|
|
403
|
+
kind whenever you change code, amount, dates, plan scope, or redemption limits.
|
|
404
|
+
Use `--all-plans` to clear plan scoping.
|
|
405
|
+
|
|
346
406
|
### `farthershore connect`
|
|
347
407
|
|
|
348
408
|
GitHub OAuth and Stripe Connect flows are browser-only. These commands
|
|
@@ -561,6 +621,11 @@ operation registry that generates the CLI command groups. Tool names use the
|
|
|
561
621
|
- Backends: `fs_backend_list`, `fs_backend_create`, `fs_backend_delete`
|
|
562
622
|
- Runtime tokens: `fs_runtime_token_list`, `fs_runtime_token_mint`,
|
|
563
623
|
`fs_runtime_token_rotate`, `fs_runtime_token_revoke`
|
|
624
|
+
- Webhooks: `fs_webhook_list`, `fs_webhook_create`, `fs_webhook_update`,
|
|
625
|
+
`fs_webhook_delete`, `fs_webhook_test`, `fs_webhook_deliveries`
|
|
626
|
+
- Promo codes: `fs_promo_code_list`, `fs_promo_code_create`,
|
|
627
|
+
`fs_promo_code_update`, `fs_promo_code_archive`,
|
|
628
|
+
`fs_promo_code_reactivate`
|
|
564
629
|
- Personas: `fs_persona_bootstrap`, `fs_persona_list`, `fs_persona_revoke`
|
|
565
630
|
- Usage and maker tokens: `fs_usage_read`, `fs_maker_token_list`
|
|
566
631
|
|