@trajectonomics/cli 0.8.0-alpha.5 → 0.8.0-alpha.6
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 +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -197,6 +197,30 @@ Currency's major unit, such as `"1000.00"` for 100000 satang, and
|
|
|
197
197
|
same either way: saving what `show --decimal` printed leaves it unchanged. A value with more places
|
|
198
198
|
than the Currency has is refused, never rounded.
|
|
199
199
|
|
|
200
|
+
## Milestones: points in the plan that a Flow waits for
|
|
201
|
+
|
|
202
|
+
> **Ships in 0.8.0.**
|
|
203
|
+
|
|
204
|
+
A Scenario may name points in the plan a Flow can wait for: a date, a number of months after another
|
|
205
|
+
point, a net-worth or spending figure, or a multiple of spending. They are the `milestones` of the
|
|
206
|
+
Scenario document, and `traj schema scenario apply` lists every key. A Flow's `startAt` lands it on
|
|
207
|
+
or after a point's date, and its `endAt` before it. `traj projection run` reports each point's date,
|
|
208
|
+
or that it was not reached, in a `milestones` table, and `traj projection compare` reports them under
|
|
209
|
+
each side.
|
|
210
|
+
|
|
211
|
+
```json
|
|
212
|
+
"milestones": [
|
|
213
|
+
{
|
|
214
|
+
"id": "retire",
|
|
215
|
+
"combine": "all",
|
|
216
|
+
"criteria": [
|
|
217
|
+
{ "id": "wealth", "kind": "metric", "metric": "accessibleNetWorth", "op": "atLeast", "amount": 50000000, "terms": "real" },
|
|
218
|
+
{ "id": "age", "kind": "date", "on": "2045-01-01" }
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
```
|
|
223
|
+
|
|
200
224
|
## Seeing it in a browser
|
|
201
225
|
|
|
202
226
|
`traj dashboard --as-of 2026-11-30 --horizon 2056-11-30` reads your ledger once and serves the Dashboard (net worth, the ledger, projections, the FI date, a Scenario compare, tax and health) on `http://127.0.0.1:4321/` until you press Ctrl-C. It only reads, it listens on this machine only, and it takes the same Scenario flags as the projection reads (`--scenario`, `--compare` twice, `--monthly`, `--carry-in`); `--port 0` picks a free port. Run it again to see new figures.
|