@trajectonomics/cli 0.9.0-alpha.6 → 0.9.0-alpha.61

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.
Files changed (2) hide show
  1. package/README.md +37 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # trajectonomics
2
2
 
3
- `traj` is a free and open source command line for personal money. An AI agent operates it.
4
- The command line never calls a model, so every result is repeatable.
3
+ `traj` is free, open-source financial simulation software for the AI era, and an AI agent
4
+ operates it. The command line never calls a model, so every result is repeatable.
5
5
 
6
6
  The landing page is [trajectonomics.com](https://trajectonomics.com/) and the docs are at
7
7
  [trajectonomics.com/docs/](https://trajectonomics.com/docs/).
@@ -34,7 +34,7 @@ Then give your agent the setup skill. `-g` installs it for your user rather than
34
34
  every project and every new session finds it:
35
35
 
36
36
  ```bash
37
- npx skills add trajectonomics/trajectonomics/skills/customer --skill traj-onboarding -g -y
37
+ npx -y skills@1.9.0 add trajectonomics/trajectonomics/skills/customer --skill traj-onboarding -g -y
38
38
  ```
39
39
 
40
40
  The setup skill asks about your situation and goal, then its second step installs the `traj`
@@ -42,7 +42,7 @@ operating skill from `skills/customer` in this repository, the folder both skill
42
42
  installs that one globally too, for the same reason.
43
43
 
44
44
  ```bash
45
- npx skills add trajectonomics/trajectonomics/skills/customer --skill traj -g -y
45
+ npx -y skills@1.9.0 add trajectonomics/trajectonomics/skills/customer --skill traj -g -y
46
46
  ```
47
47
 
48
48
  That is the operating skill on its own, for an agent that is already set up. Both commands
@@ -101,8 +101,10 @@ exits 0 and states every account, and states that figure as `null` with an error
101
101
  (`netWorthError`, `totalsError`); the text form prints a sentence in its place. A figure inside the
102
102
  range carries no error key. Run `traj schema balance` or `traj schema report pnl` for the exact shape.
103
103
 
104
- `traj help` lists every command, `traj help <command>` lists one command's flags, and
105
- `traj schema --json` prints the whole contract: every command's input, output and error codes.
104
+ `traj help` lists the core commands and `traj help --all` lists every command; `traj help <group>` lists
105
+ that group's core subcommands and `traj help <group> --all` lists all of them; `traj help <command>`
106
+ lists one command's flags, and `traj schema --json` prints the whole contract: every command's input,
107
+ output and error codes.
106
108
 
107
109
  ## Importing a statement
108
110
 
@@ -474,6 +476,34 @@ its own. In every year, money in plus `unmet` (the cash a Shortfall left unpaid)
474
476
  saving and left over: the engine routes every unit of cash. `not funded` is the part of the
475
477
  Contributions the cash could not fund; it is not in saving.
476
478
 
479
+ ### By Reporting year, and the months of one
480
+
481
+ `--breakdown-years` adds the cash flow per Reporting year: twelve months from the 1st of the month
482
+ `--year-start` names (default 1, January), named by the calendar year it begins in. The first starts on
483
+ the As-of, and the last ends on the horizon or the date the money runs out; a cut one is partial.
484
+ `--breakdown-months first|all|YYYY` adds the Reporting months of the first Reporting year, of every
485
+ Reporting year, or of the one named year. The two breakdown flags are independent of `--breakdown` and of
486
+ each other; `--year-start` alone is refused (exit 2) and needs one of them.
487
+
488
+ In JSON `--breakdown-years` adds the `cashflowYears` table, one row per Reporting year and line, the
489
+ `cashflowYearTotals` table beside it with nine section totals per year, and `cashflowYearTransfers` when
490
+ the engine states a transfer, with what it moved and what it did not. `--breakdown-months` adds `cashflowMonths`, `cashflowMonthTotals` and
491
+ `cashflowMonthTransfers` in the same shapes, each row carrying its `month` as `YYYY-MM`. A month with
492
+ no line still states its nine zero totals. The answer gains a top-level `yearStart`, so a reader can
493
+ name the year rule without reading the command. In the human format a Reporting year is one block like
494
+ the one above, and each of its months is a row of one table:
495
+
496
+ ```
497
+ cash flow by month, 2026
498
+ month money in tax spending saving left over unmet
499
+ 2026-11* 1000.00 0.00 0.00 0.00 1000.00 0.00
500
+ 2026-12 1600.00 0.00 600.00 0.00 1000.00 0.00
501
+ * partial: the month is cut by the As-of, the horizon or the date the money runs out.
502
+ ```
503
+
504
+ An `*` marks a partial month, and the note under the table says so. A month with no line prints as a
505
+ row of zeros, because the Reporting year states every month it covers.
506
+
477
507
  ## Where the money goes, and moving it between Accounts
478
508
 
479
509
  `cashflow` takes three more forms, every figure in them the caller's own (`traj` ships none): a surplus step's `share`, which takes that
@@ -540,7 +570,7 @@ Without a fee or a payout the output is unchanged.
540
570
 
541
571
  ## Seeing it in a browser
542
572
 
543
- `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.
573
+ `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 can change your plans (fork, apply or delete a Scenario, each through `traj` after a dry run), it listens on this machine only and accepts a write only from its own page with a per-run token, 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.
544
574
 
545
575
  ## Keeping a backup, and removing the data
546
576
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trajectonomics/cli",
3
- "version": "0.9.0-alpha.6",
3
+ "version": "0.9.0-alpha.61",
4
4
  "description": "A free, open-source money command line that AI agents operate. Deterministic, local-first, Thai tax first.",
5
5
  "keywords": [
6
6
  "personal-finance",