wealthos 0.0.0-stage → 0.1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +121 -2
  3. package/dist/wealthos.cjs +51212 -0
  4. package/package.json +42 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Volodymyr Melnyk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,122 @@
1
- # Temporary Holding Version
1
+ # wealthos
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The command-line tool for **[Wealthos](https://wealthos.cc)**, a personal
4
+ wealth planning and forecasting app.
5
+
6
+ ## What is Wealthos?
7
+
8
+ Wealthos helps you simulate life's big decisions before you make them (a
9
+ house, a move, a career change, a sabbatical) and see where each one leaves
10
+ you years out. It's built on your real balances across every bank and
11
+ currency you hold: net worth, income and expenses, savings goals, dated plans
12
+ and long-range forecasts.
13
+
14
+ It comes in two editions:
15
+
16
+ - **[Wealthos Cloud](https://wealthos.cc)**: web app and iOS app, with bank
17
+ connections and sync across devices.
18
+ - **[Wealthos Local](https://wealthos.cc/local)**: a macOS app that keeps
19
+ everything as plain files in a folder you choose. No account, works
20
+ offline.
21
+
22
+ Both expose your finances to AI assistants (Claude, ChatGPT, Cursor, Codex)
23
+ through the [Wealthos MCP server](https://wealthos.cc/mcp).
24
+
25
+ ## What this package is for
26
+
27
+ `wealthos` brings the same tools to a terminal, for scripts and for AI agents
28
+ that work through a shell (Claude Code, Codex CLI, cron jobs). Output is JSON.
29
+
30
+ - **Let an agent manage your finances.** Ask Claude Code "how much can I put
31
+ aside each month for a house in 2028?" and it can read your accounts, goals
32
+ and plans and run the forecast itself, instead of guessing at the
33
+ arithmetic.
34
+ - **Check a purchase before you make it.** `affordability_check` returns a
35
+ verdict plus the trade-offs: a goal pushed back, investments to sell, a
36
+ safety buffer breached.
37
+ - **Keep your finances as plain files.** A vault is a folder of YAML and
38
+ JSONL in the documented
39
+ [Open Wealth Format](https://wealthos.cc/open-wealth-format/v1/README.md),
40
+ so it works with `git`, backups and any editor. Create one, validate it,
41
+ and print the JSON Schema for any file type. The Wealthos desktop app opens
42
+ the same folder.
43
+ - **Automate.** Log net worth from a cron job (`wealth_get`), add income
44
+ and expenses from a script, pipe any result into `jq`.
45
+ - **Look up country money rules, no account needed.** Sourced, dated rules
46
+ for the cost of buying a home in 16 European countries, the Dutch 30%
47
+ ruling and German freelancer net income.
48
+
49
+ Needs Node 20 or later.
50
+
51
+ ```sh
52
+ npx wealthos --help
53
+ ```
54
+
55
+ ## A local vault
56
+
57
+ ```sh
58
+ npx wealthos init ~/Documents/Wealthos --currency EUR
59
+ npx wealthos call ~/Documents/Wealthos accounts_add name=Current type=bank balance=8200
60
+ npx wealthos call ~/Documents/Wealthos wealth_get
61
+ npx wealthos call ~/Documents/Wealthos affordability_check amount=1200 what="flight to Lisbon" --text
62
+ npx wealthos doctor ~/Documents/Wealthos
63
+ ```
64
+
65
+ If the Wealthos desktop app has the vault open, commands go through the app
66
+ instead of opening the folder a second time.
67
+
68
+ ## Wealthos Cloud
69
+
70
+ Pass the MCP server URL instead of a folder, with an API token from
71
+ **Settings → Connect to AI tools via MCP** in the
72
+ [Wealthos web app](https://wealthos.cc):
73
+
74
+ ```sh
75
+ export WEALTHOS_TOKEN=wos_...
76
+ npx wealthos tools https://mcp.wealthos.cc --text
77
+ npx wealthos call https://mcp.wealthos.cc goals_list
78
+ ```
79
+
80
+ ## Country rules
81
+
82
+ ```sh
83
+ npx wealthos rules # every rule, with review status
84
+ npx wealthos rules se.property_purchase_costs price=4500000 --text
85
+ npx wealthos rules de.property_purchase_costs price=500000 region=berlin non_resident=true
86
+ npx wealthos rules nl.expat_tax_regime gross_annual_salary=70000
87
+ ```
88
+
89
+ Planning estimates, not tax or legal advice. Each rule lists its sources and
90
+ when it was last checked.
91
+
92
+ ## Commands
93
+
94
+ | Command | |
95
+ |---|---|
96
+ | `tools <target> [--text] [--schemas]` | List tools (JSON, or one line each) |
97
+ | `call <target> <tool> [--args JSON] [key=value …] [--text]` | Call a tool. `key=value` values are read as JSON when they parse; dotted keys nest (`date.year=2027`) |
98
+ | `schema [name]` | Open Wealth Format file types, or one JSON Schema |
99
+ | `rules [id] [key=value …] [--country X] [--topic T] [--due] [--text]` | List, show or calculate a country rule |
100
+ | `init <dir> [--email E] [--currency EUR]` | Create a vault |
101
+ | `doctor <dir> [--clear-stale-lock]` | Validate every file in a vault; changes nothing |
102
+ | `mcp-stdio <dir>` | Serve a vault to an MCP client over stdio |
103
+ | `serve <dir>` | The local core the desktop app runs |
104
+
105
+ `<target>` is a vault folder, or an `https://` MCP server URL with `--token` or
106
+ `$WEALTHOS_TOKEN`.
107
+
108
+ Exit codes: `0` success, `1` the tool reported a failure (its JSON is still
109
+ printed), `2` bad usage or an unknown tool.
110
+
111
+ ## Links
112
+
113
+ - [Wealthos](https://wealthos.cc): the app
114
+ - [Wealthos Local](https://wealthos.cc/local): the macOS app for plain-file vaults
115
+ - [Wealthos MCP server](https://wealthos.cc/mcp): connect Claude, ChatGPT and other assistants
116
+ - [Open Wealth Format](https://wealthos.cc/open-wealth-format/v1/README.md): the vault file format
117
+ - [Country rules](https://wealthos.cc/country-rules/v1/index.json): the rules library as JSON
118
+ - [Issues](https://github.com/vamelnyk/wealthos-app/issues): report a problem or ask a question
119
+
120
+ ## License
121
+
122
+ MIT