@farthershore/cli 0.13.1 → 0.14.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/README.md CHANGED
@@ -71,8 +71,8 @@ farthershore auth logout # Clear stored credentials
71
71
  ### `farthershore init`
72
72
 
73
73
  Scaffold a starter software-product repo from a named plan preset. Each preset
74
- fills in the 5-knob spec through `product/plans.ts`, with
75
- `product/product.config.ts` composing `meters.ts`, `features.ts`, and `plans.ts`.
74
+ fills in the 5-knob spec in a single decorated `product/product.config.ts` — one
75
+ `@Product` class with `@Meter`/`@Feature`/`@Plan` members.
76
76
  The command also creates a customer `frontend/` project, repo-local
77
77
  `product/package.json`, `product/tsconfig.json`, and `.gitignore`, matching the
78
78
  two-root shape generated by dashboard product creation.
@@ -98,10 +98,10 @@ Templates (sourced from shared-types `listPlanPresets()`):
98
98
  | `prepaid` | $50 one-time signup credit, then PAYG |
99
99
  | `metered` | Pure pay-as-you-go at $0.001/request |
100
100
 
101
- After `init`, edit the `fs.product(...)` product name and `origin` in
101
+ After `init`, edit the `@Product({ name, origin })` decorator in
102
102
  `product/product.config.ts`. `origin` is the business logic destination Farther
103
- Shore calls for customer-facing actions. Keep the generated module split or
104
- reorganize the product into any imported files you want. Pass repeatable
103
+ Shore calls for customer-facing actions. Add `@Meter`/`@Feature`/`@Plan`
104
+ members to the class to grow the product. Pass repeatable
105
105
  `--surface <frontend|api|docs|widget|dashboard|webhook|worker|agent>` to seed a
106
106
  frontend-only, agent, worker, API, or hybrid product. Omitting `--surface`
107
107
  keeps the default `frontend + api` starter and its sample gateway route. Run