@farthershore/cli 0.21.1 → 0.23.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 +6 -6
- package/dist/index.js +139 -75
- package/dist/mcp.js +19 -19
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ farthershore business create --name weather-api --display-name "Weather API"
|
|
|
77
77
|
# 2. Edit business behavior in the repo
|
|
78
78
|
gh repo clone acme/weather-api
|
|
79
79
|
cd weather-api
|
|
80
|
-
# ...edit business/business.
|
|
80
|
+
# ...edit business/business.ts with @farthershore/business...
|
|
81
81
|
|
|
82
82
|
# 3. Validate the same way the PR check will, before pushing
|
|
83
83
|
farthershore preflight --business weather-api
|
|
@@ -92,7 +92,7 @@ farthershore business publish weather-api
|
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
Plans, prices, limits, routes, meters, and origins are **repo-controlled**:
|
|
95
|
-
change them by editing `business/business.
|
|
95
|
+
change them by editing `business/business.ts` and pushing. The CLI's
|
|
96
96
|
write commands cover **operational** state that lives outside the manifest
|
|
97
97
|
(consumers, secrets, backends, webhooks, promo codes, brand presentation).
|
|
98
98
|
|
|
@@ -123,7 +123,7 @@ Run `farthershore <group> --help` for the full flag set of any command.
|
|
|
123
123
|
### `farthershore init`
|
|
124
124
|
|
|
125
125
|
Scaffold a starter business repo locally from a named plan preset. Each preset
|
|
126
|
-
fills in a single decorated `business/business.
|
|
126
|
+
fills in a single decorated `business/business.ts` (one `@Business` class
|
|
127
127
|
with `@Meter`/`@Feature`/`@Plan` members) and creates the matching customer
|
|
128
128
|
`frontend/` project, repo-local `business/package.json`, `business/tsconfig.json`,
|
|
129
129
|
and `.gitignore`.
|
|
@@ -157,14 +157,14 @@ confirm it compiles.
|
|
|
157
157
|
|
|
158
158
|
### `farthershore build`
|
|
159
159
|
|
|
160
|
-
Compile `business/business.
|
|
160
|
+
Compile `business/business.ts` to a Manifest IR envelope locally (default
|
|
161
161
|
output `business-build.json`). The CLI uses the Business SDK installed under
|
|
162
162
|
`business/`, falling back to a root install. This is local compilation only;
|
|
163
163
|
server-side validation and apply happen when you push `business/**` changes.
|
|
164
164
|
|
|
165
165
|
```bash
|
|
166
166
|
farthershore build
|
|
167
|
-
farthershore build --entry business/business.
|
|
167
|
+
farthershore build --entry business/business.ts --out business-build.json
|
|
168
168
|
farthershore build --format json
|
|
169
169
|
```
|
|
170
170
|
|
|
@@ -393,7 +393,7 @@ export async function POST(request: Request) {
|
|
|
393
393
|
### `farthershore webhook`
|
|
394
394
|
|
|
395
395
|
Provision outbound webhook endpoints and inspect delivery health. If the business
|
|
396
|
-
declares webhooks in `business/business.
|
|
396
|
+
declares webhooks in `business/business.ts`, writes return
|
|
397
397
|
`409 MANAGED_BY_CODE` so the repo stays canonical.
|
|
398
398
|
|
|
399
399
|
```bash
|