@farthershore/cli 0.14.2 → 0.14.4
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 +44 -1
- package/dist/index.js +85 -85
- package/dist/mcp.js +32 -32
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,9 @@ Bootstrap and operate [FartherShore](https://farthershore.com) software
|
|
|
4
4
|
businesses from the terminal. Product behavior is authored in the GitHub repo;
|
|
5
5
|
the CLI is the agent-friendly tool layer for setup, release, observability, and
|
|
6
6
|
runtime operations. Every command supports `--format json` for non-TTY
|
|
7
|
-
scripting.
|
|
7
|
+
scripting. GitHub account linking and Stripe Connect/KYC stay browser-hosted;
|
|
8
|
+
the CLI reports their status so agents can continue after the builder completes
|
|
9
|
+
those flows.
|
|
8
10
|
|
|
9
11
|
## Install
|
|
10
12
|
|
|
@@ -87,6 +89,21 @@ farthershore skills recommend --format json \
|
|
|
87
89
|
|
|
88
90
|
## Commands
|
|
89
91
|
|
|
92
|
+
### `farthershore operations`
|
|
93
|
+
|
|
94
|
+
Print the machine-readable action boundary before an agent attempts a change:
|
|
95
|
+
repo-authored product behavior, API-controlled runtime operations, dual
|
|
96
|
+
repo/API operations, and browser-only prerequisites.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
farthershore operations list --format json
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`contract` rows are changed in `business/business.config.ts` and pushed through
|
|
103
|
+
GitHub. `operate` rows are CLI/Core API actions. `dual` rows reconcile through
|
|
104
|
+
either path. `browserOnlyPrerequisites` currently includes GitHub account
|
|
105
|
+
linking and Stripe Connect onboarding, both status-only from the CLI.
|
|
106
|
+
|
|
90
107
|
### `farthershore init`
|
|
91
108
|
|
|
92
109
|
Scaffold a starter software-business repo from a named plan preset. Each preset
|
|
@@ -326,6 +343,28 @@ export async function POST(request: Request) {
|
|
|
326
343
|
}
|
|
327
344
|
```
|
|
328
345
|
|
|
346
|
+
### `farthershore webhook`
|
|
347
|
+
|
|
348
|
+
Provision outbound webhook endpoints and inspect delivery health. The dashboard
|
|
349
|
+
exposes the same API-managed surface. If the business declares webhooks in
|
|
350
|
+
`business/business.config.ts`, Core returns `409 MANAGED_BY_CODE` for writes so
|
|
351
|
+
the repo remains canonical.
|
|
352
|
+
|
|
353
|
+
```bash
|
|
354
|
+
farthershore webhook list weather-api --format json
|
|
355
|
+
farthershore webhook create weather-api \
|
|
356
|
+
--url https://hooks.example.com/farthershore \
|
|
357
|
+
--events subscription.created,payment.failed \
|
|
358
|
+
--format json
|
|
359
|
+
farthershore webhook update weather-api <webhookId> --disable --format json
|
|
360
|
+
farthershore webhook test weather-api <webhookId> --format json
|
|
361
|
+
farthershore webhook deliveries weather-api <webhookId> --limit 20 --format json
|
|
362
|
+
farthershore webhook delete weather-api <webhookId> --yes --format json
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
`webhook create` returns the signing secret once. Store it in the receiving app;
|
|
366
|
+
subsequent list/delivery commands never return the secret.
|
|
367
|
+
|
|
329
368
|
### `farthershore connect`
|
|
330
369
|
|
|
331
370
|
GitHub OAuth and Stripe Connect flows are browser-only. These commands
|
|
@@ -343,7 +382,9 @@ Manage maker tokens for the current org.
|
|
|
343
382
|
```bash
|
|
344
383
|
farthershore token list --format json
|
|
345
384
|
farthershore token create --name "ci-bot" --scope products:update products:publish --format json
|
|
385
|
+
farthershore token rotate <tokenId> --sync-to-github --format json
|
|
346
386
|
farthershore token revoke <tokenId> --yes --format json
|
|
387
|
+
farthershore token delete <tokenId> --yes --format json
|
|
347
388
|
```
|
|
348
389
|
|
|
349
390
|
#### Plan knobs
|
|
@@ -542,6 +583,8 @@ operation registry that generates the CLI command groups. Tool names use the
|
|
|
542
583
|
- Backends: `fs_backend_list`, `fs_backend_create`, `fs_backend_delete`
|
|
543
584
|
- Runtime tokens: `fs_runtime_token_list`, `fs_runtime_token_mint`,
|
|
544
585
|
`fs_runtime_token_rotate`, `fs_runtime_token_revoke`
|
|
586
|
+
- Webhooks: `fs_webhook_list`, `fs_webhook_create`, `fs_webhook_update`,
|
|
587
|
+
`fs_webhook_delete`, `fs_webhook_test`, `fs_webhook_deliveries`
|
|
545
588
|
- Personas: `fs_persona_bootstrap`, `fs_persona_list`, `fs_persona_revoke`
|
|
546
589
|
- Usage and maker tokens: `fs_usage_read`, `fs_maker_token_list`
|
|
547
590
|
|