@trajectonomics/cli 0.8.0 → 0.8.1-alpha.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 +0 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -283,8 +283,6 @@ the other Return's. A missing class is listed by name, and a bare label is refus
|
|
|
283
283
|
|
|
284
284
|
## Chance of success
|
|
285
285
|
|
|
286
|
-
> **Ships in 0.8.0.**
|
|
287
|
-
|
|
288
286
|
`traj projection chance` runs one Scenario over seeded Market paths and reports
|
|
289
287
|
the share that never run out before the Horizon, with the net-worth Bands at each
|
|
290
288
|
year. The paths draw from a Return model you state in a JSON file, with
|
|
@@ -320,8 +318,6 @@ Dashboard, as a page of its own: it uses `plan` unless you name a
|
|
|
320
318
|
|
|
321
319
|
## Tax allowances
|
|
322
320
|
|
|
323
|
-
> **Ships in 0.8.0.**
|
|
324
|
-
|
|
325
321
|
`traj projection allowances` reads a Scenario that has a tax Levy and says, for each
|
|
326
322
|
whole tax year the Projection holds, how much more of each contribution label (RMF, ThaiESG
|
|
327
323
|
and the others the Levy reads) would still lower the tax, and by how much. You name the
|
|
@@ -338,8 +334,6 @@ describes the result.
|
|
|
338
334
|
|
|
339
335
|
## Money as decimals in a Scenario
|
|
340
336
|
|
|
341
|
-
> **Ships in 0.8.0.**
|
|
342
|
-
|
|
343
337
|
`traj scenario show base --decimal` prints a Scenario with each amount as a decimal string of the
|
|
344
338
|
Currency's major unit, such as `"1000.00"` for 100000 satang, and
|
|
345
339
|
`traj scenario apply base --file base.json --decimal` reads that form back. The stored plan is the
|
|
@@ -348,8 +342,6 @@ than the Currency has is refused, never rounded.
|
|
|
348
342
|
|
|
349
343
|
## A what-if, applied to the plan it came from
|
|
350
344
|
|
|
351
|
-
> **Ships in 0.8.0.**
|
|
352
|
-
|
|
353
345
|
`traj projection run --set` projects a change without saving it. `traj scenario apply` saves the same
|
|
354
346
|
change to the stored plan, so the plan you keep is the one you projected. It takes the `--set`,
|
|
355
347
|
`--without` and `--decimal` that `projection run` takes, and refuses what they would be refused for:
|
|
@@ -366,8 +358,6 @@ exits 0. `--if-hash <contentHash>` writes only when the stored plan still has th
|
|
|
366
358
|
|
|
367
359
|
### Adding an item to a what-if
|
|
368
360
|
|
|
369
|
-
> **Ships in 0.8.0.**
|
|
370
|
-
|
|
371
361
|
`--add <list>=<json>` puts one new item on the end of `accounts`, `flows` or `milestones`, so a new
|
|
372
362
|
loan, an extra payment or a new Flow can be tried before it is saved. The item carries its own `id`,
|
|
373
363
|
and an `id` the list already holds is refused (`--set` is the flag that changes an item that exists).
|
|
@@ -392,8 +382,6 @@ item's money is a decimal string of the Currency's major unit. Nothing is writte
|
|
|
392
382
|
|
|
393
383
|
## Naming plans, keeping notes on them, and marking the main one
|
|
394
384
|
|
|
395
|
-
> **Ships in 0.8.0.**
|
|
396
|
-
|
|
397
385
|
A person who compares "retire at 55" with "retire at 60 and buy a condo" ends up with several plans.
|
|
398
386
|
`traj scenario rename early retire-at-55` gives a plan a better name and keeps its id, document and
|
|
399
387
|
`contentHash`. `traj scenario notes retire-at-55 --text "Sell the condo in 2031."` keeps plain text
|
|
@@ -408,8 +396,6 @@ still need `--scenario`. `scenario rm` of the main plan is refused until another
|
|
|
408
396
|
|
|
409
397
|
## Milestones: points in the plan that a Flow waits for
|
|
410
398
|
|
|
411
|
-
> **Ships in 0.8.0.**
|
|
412
|
-
|
|
413
399
|
A Scenario may name points in the plan a Flow can wait for: a date, a number of months after another
|
|
414
400
|
point, a net-worth or spending figure, or a multiple of spending. They are the `milestones` of the
|
|
415
401
|
Scenario document, and `traj schema scenario apply` lists every key. A Flow's `startAt` lands it on
|
|
@@ -432,8 +418,6 @@ each side.
|
|
|
432
418
|
|
|
433
419
|
## Naming a Flow, a Milestone or a person
|
|
434
420
|
|
|
435
|
-
> **Ships in 0.8.0.**
|
|
436
|
-
|
|
437
421
|
Every Flow, every Milestone and every person of a household may carry a `displayLabel`: the words a
|
|
438
422
|
page reads in place of the id, such as Thai text. It is free text of 1 to 80 code points, with no
|
|
439
423
|
control, invisible or bidirectional characters and no leading or trailing whitespace. It is no key
|
|
@@ -457,8 +441,6 @@ cannot remove a key, so `null` and `""` are refused.
|
|
|
457
441
|
|
|
458
442
|
## Where each year's money went
|
|
459
443
|
|
|
460
|
-
> **Ships in 0.8.0.**
|
|
461
|
-
|
|
462
444
|
`traj projection run --breakdown` adds each Annual roll-up's cash flow as the engine routed it: each
|
|
463
445
|
Flow's income, the tax taken at source and each Levy's settlement (a refund is negative), each expense
|
|
464
446
|
and its category, each Contribution applied and the part the cash could not fund, each planned
|
|
@@ -494,8 +476,6 @@ Contributions the cash could not fund; it is not in saving.
|
|
|
494
476
|
|
|
495
477
|
## Where the money goes, and moving it between Accounts
|
|
496
478
|
|
|
497
|
-
> **Ships in 0.8.0.**
|
|
498
|
-
|
|
499
479
|
`cashflow` takes three more forms, every figure in them the caller's own (`traj` ships none): a surplus step's `share`, which takes that
|
|
500
480
|
many basis points of what is still unrouted instead of everything (a percent string such as `"30.00"` under `--decimal`); a `withdraw` entry that is `{ account, downTo }`, which keeps a Reserve floor
|
|
501
481
|
in the Account while the others are drawn; and an `upTo` or `downTo` that is `{ amount, growth }`, which keeps its value in today's money. A
|
|
@@ -511,8 +491,6 @@ and is not stated yet. A plan without these forms prints exactly as before.
|
|
|
511
491
|
|
|
512
492
|
## Loans
|
|
513
493
|
|
|
514
|
-
> **Ships in 0.8.0.**
|
|
515
|
-
|
|
516
494
|
A loan is three parts of a Scenario document: a liability Account with a nominal `rate` and a `compounding`
|
|
517
495
|
period, a `withdrawal` Flow from that liability when the money arrives, and a Contribution into the
|
|
518
496
|
liability whose amount is a `level` payment. `traj schema scenario apply` publishes one as its worked example.
|
|
@@ -536,8 +514,6 @@ equals `closing` exactly. Without `--liabilities` the output is unchanged.
|
|
|
536
514
|
|
|
537
515
|
### What a fee and a payout came to over the plan
|
|
538
516
|
|
|
539
|
-
> **Ships in 0.8.0.**
|
|
540
|
-
|
|
541
517
|
An asset Account can pay out a share of its value as income (`payout`) and be charged a yearly `fee`.
|
|
542
518
|
`traj projection run` states each one's total over the whole horizon, so nothing needs adding up: the
|
|
543
519
|
engine sums them in the same run as the roll-ups (it is the sum of the `payouts` and `fees` of every
|
|
@@ -593,8 +569,6 @@ traj data remove --confirm ~/.traj --backup ~/traj-backup-2026-11-30
|
|
|
593
569
|
|
|
594
570
|
### Going back after an upgrade
|
|
595
571
|
|
|
596
|
-
> **Ships in 0.8.0.**
|
|
597
|
-
|
|
598
572
|
When a newer `traj` has to migrate your database to a newer schema, it first copies it beside the
|
|
599
573
|
original as `traj.db.pre-v<N>.bak`, where `N` is the schema version the copy holds, and says so once
|
|
600
574
|
on stderr. Each copy is about the size of the database, so the upgrade needs that much free space;
|
package/package.json
CHANGED