openvibers/openvibe.finance Commits
Ask an Expert on the home page (v0.9) (#9)
Changes
@@@ -10,7 +10,7 @@ to connect.- **No money moves.** It reads and plans; it never pays, transfers or cancels anything.- **Yours to take.** Download everything as one JSON file, or delete everything, at `/data`.--## What it does today (v0.8)++## What it does today (v0.9)- Accounts (checking, savings, credit card, cash, loan, investments) with an opening balance and a running balance.- Transactions typed in, or imported from a bank's download:@@@ -41,6 +41,9 @@ for local-only import, and Finance Experts (Budget Coach, Subscription Auditor)## For agents: /mcp++OpenVibe's money Experts on Actor (Budget coach, Can I afford it?, Debt planner, Subscription auditor) use it once the++person allows Actor in OpenVibe Finance on their Apps page; the home page links them.++`POST https://openvibe.finance/mcp` is an MCP server (both eras: the 2026-07-28 stateless protocol and the handshakeone) with seven tools, every one read only: `accounts`, `month`, `transactions`, `recurring`, `goals`, `net_worth`,`what_if`. Amounts are integer cents; months are `YYYY-MM`.@@@ -1,12 +1,12 @@{"name": "openvibe-finance",-- "version": "0.8.0",++ "version": "0.9.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "openvibe-finance",-- "version": "0.8.0",++ "version": "0.9.0","license": "AGPL-3.0-only","dependencies": {"@electric-sql/pglite": "^0.5.8",@@@ -1,6 +1,6 @@{"name": "openvibe-finance",-- "version": "0.8.0",++ "version": "0.9.0","private": true,"description": "Your money, your rules, your data: accounts, CSV imports and a monthly picture, private to you","main": "server/index.js",@@@ -169,3 +169,10 @@ html[data-ov-motion="off"] .fin-result { animation: none; }.fin-when-label { font-weight: 600; }.fin-chips--scroll .fin-chip { flex: 0 0 auto; }.fin-chips--scroll .fin-chip span { padding: 0 14px; white-space: nowrap; }++/* Ask an Expert (v0.9): Actor's money Experts, which read here as the person once allowed. */++.fin-expert-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }++.fin-expert { display: grid; gap: 2px; align-content: center; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border, #1f2937); color: inherit; text-decoration: none; transition: border-color .12s ease, transform .12s ease; }++.fin-expert span { color: var(--text-secondary, #9aa4b2); font-size: 14px; line-height: 1.4; }++.fin-expert:hover { border-color: var(--accent, #5b8cff); }++.fin-expert:active { transform: scale(.98); }++html[data-ov-motion="off"] .fin-expert { transition: none; }@@@ -46,6 +46,18 @@ function welcome() {</ul>` });}++// OpenVibe's money Experts on Actor (Actor #623): they read your numbers here through /mcp, as you, once you allow++// Actor in OpenVibe Finance on your Apps page; none moves money.++const EXPERTS = [++ { id: 'bp_budget_coach', name: 'Budget coach', what: 'A budget you can live with, from your real month.' },++ { id: 'bp_can_i_afford_it', name: 'Can I afford it?', what: 'Yes, not yet or no, for a purchase or a new monthly cost.' },++ { id: 'bp_debt_planner', name: 'Debt planner', what: 'The fastest and the cheapest way out of your loans and cards.' },++ { id: 'bp_subscription_auditor', name: 'Subscription auditor', what: 'Every recurring charge, and what dropping each saves.' },++];++const expertsSection = () => `<section class="fin-sec fin-experts" aria-labelledby="fin-experts-h"><h2 id="fin-experts-h">Ask an Expert</h2>++<ul class="fin-expert-list">${EXPERTS.map((e) => `<li><a class="fin-expert" href="https://openvibe.actor/experts/${e.id}"><b>${esc(e.name)}</b><span>${esc(e.what)}</span></a></li>`).join('')}</ul>++<p class="fin-note">They read your numbers here as you once you allow Actor in OpenVibe Finance on your <a href="https://openvibe.network/apps">Apps page</a>, and only to read: nothing here moves money.</p></section>`;++function home({ accounts, month, o = {} }) {const total = {};for (const a of accounts) total[a.currency] = (total[a.currency] || 0) + a.balance_cents;@@@ -70,6 +82,7 @@ ${accounts.length ? `<section class="fin-month-card" aria-label="${esc(monthName<label class="fin-field"><span>Balance before the first transaction</span><input name="opening" inputmode="decimal" placeholder="0.00" autocomplete="off"></label></div><p><button class="fin-btn fin-btn--primary" type="submit">Add the account</button></p></form></details>++${accounts.length ? expertsSection() : ''}<p class="fin-foot"><a href="/ahead">Net worth and what if</a> · <a href="/goals">Goals and debt</a> · <a href="/bills">Recurring bills</a> · <a href="/rules">Your category rules</a> · <a href="/data">Your data: download or delete everything</a></p>` });}@@@ -61,6 +61,11 @@ const SAME = { 'sec-fetch-site': 'same-origin' };assert.strictEqual(page.status, 200);assert.match(page.text, /Everyday checking/);assert.match(page.text, /\$1,000\.00/);++ // With an account, the home page offers the money Experts (Actor #623), which read here only once allowed.++ const home = await go('/', { as: ADA });++ assert.match(home.text, /Ask an Expert/);++ assert.match(home.text, /href="https:\/\/openvibe\.actor\/experts\/bp_can_i_afford_it"/);++ assert.match(home.text, /allow Actor in OpenVibe Finance on your <a href="https:\/\/openvibe\.network\/apps">Apps page<\/a>/);});await check('a typed transaction: money out by default, its payee sealed in the database', async () => {
@@ -10,7 +10,7 @@ to connect.
@@ -10,7 +10,7 @@ to connect.
- **No money moves.** It reads and plans; it never pays, transfers or cancels anything.
- **No money moves.** It reads and plans; it never pays, transfers or cancels anything.
- **Yours to take.** Download everything as one JSON file, or delete everything, at `/data`.
- **Yours to take.** Download everything as one JSON file, or delete everything, at `/data`.
-## What it does today (v0.8)
+## What it does today (v0.9)
- Accounts (checking, savings, credit card, cash, loan, investments) with an opening balance and a running balance.
- Accounts (checking, savings, credit card, cash, loan, investments) with an opening balance and a running balance.
- Transactions typed in, or imported from a bank's download:
- Transactions typed in, or imported from a bank's download:
@@ -41,6 +41,9 @@ for local-only import, and Finance Experts (Budget Coach, Subscription Auditor)
@@ -41,6 +41,9 @@ for local-only import, and Finance Experts (Budget Coach, Subscription Auditor)
## For agents: /mcp
## For agents: /mcp
+OpenVibe's money Experts on Actor (Budget coach, Can I afford it?, Debt planner, Subscription auditor) use it once the
+person allows Actor in OpenVibe Finance on their Apps page; the home page links them.
+
`POST https://openvibe.finance/mcp` is an MCP server (both eras: the 2026-07-28 stateless protocol and the handshake
`POST https://openvibe.finance/mcp` is an MCP server (both eras: the 2026-07-28 stateless protocol and the handshake
one) with seven tools, every one read only: `accounts`, `month`, `transactions`, `recurring`, `goals`, `net_worth`,
one) with seven tools, every one read only: `accounts`, `month`, `transactions`, `recurring`, `goals`, `net_worth`,
`what_if`. Amounts are integer cents; months are `YYYY-MM`.
`what_if`. Amounts are integer cents; months are `YYYY-MM`.
@@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
{
{
"name": "openvibe-finance",
"name": "openvibe-finance",
- "version": "0.8.0",
+ "version": "0.9.0",
"lockfileVersion": 3,
"lockfileVersion": 3,
"requires": true,
"requires": true,
"packages": {
"packages": {
"": {
"": {
"name": "openvibe-finance",
"name": "openvibe-finance",
- "version": "0.8.0",
+ "version": "0.9.0",
"license": "AGPL-3.0-only",
"license": "AGPL-3.0-only",
"dependencies": {
"dependencies": {
"@electric-sql/pglite": "^0.5.8",
"@electric-sql/pglite": "^0.5.8",
@@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
{
{
"name": "openvibe-finance",
"name": "openvibe-finance",
- "version": "0.8.0",
+ "version": "0.9.0",
"private": true,
"private": true,
"description": "Your money, your rules, your data: accounts, CSV imports and a monthly picture, private to you",
"description": "Your money, your rules, your data: accounts, CSV imports and a monthly picture, private to you",
"main": "server/index.js",
"main": "server/index.js",
@@ -169,3 +169,10 @@ html[data-ov-motion="off"] .fin-result { animation: none; }
@@ -169,3 +169,10 @@ html[data-ov-motion="off"] .fin-result { animation: none; }
.fin-when-label { font-weight: 600; }
.fin-when-label { font-weight: 600; }
.fin-chips--scroll .fin-chip { flex: 0 0 auto; }
.fin-chips--scroll .fin-chip { flex: 0 0 auto; }
.fin-chips--scroll .fin-chip span { padding: 0 14px; white-space: nowrap; }
.fin-chips--scroll .fin-chip span { padding: 0 14px; white-space: nowrap; }
+/* Ask an Expert (v0.9): Actor's money Experts, which read here as the person once allowed. */
+.fin-expert-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
+.fin-expert { display: grid; gap: 2px; align-content: center; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border, #1f2937); color: inherit; text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
+.fin-expert span { color: var(--text-secondary, #9aa4b2); font-size: 14px; line-height: 1.4; }
+.fin-expert:hover { border-color: var(--accent, #5b8cff); }
+.fin-expert:active { transform: scale(.98); }
+html[data-ov-motion="off"] .fin-expert { transition: none; }
@@ -46,6 +46,18 @@ function welcome() {
@@ -46,6 +46,18 @@ function welcome() {
</ul>` });
</ul>` });
}
}
+// OpenVibe's money Experts on Actor (Actor #623): they read your numbers here through /mcp, as you, once you allow
+// Actor in OpenVibe Finance on your Apps page; none moves money.
+const EXPERTS = [
+ { id: 'bp_budget_coach', name: 'Budget coach', what: 'A budget you can live with, from your real month.' },
+ { id: 'bp_can_i_afford_it', name: 'Can I afford it?', what: 'Yes, not yet or no, for a purchase or a new monthly cost.' },
+ { id: 'bp_debt_planner', name: 'Debt planner', what: 'The fastest and the cheapest way out of your loans and cards.' },
+ { id: 'bp_subscription_auditor', name: 'Subscription auditor', what: 'Every recurring charge, and what dropping each saves.' },
+];
+const expertsSection = () => `<section class="fin-sec fin-experts" aria-labelledby="fin-experts-h"><h2 id="fin-experts-h">Ask an Expert</h2>
+<ul class="fin-expert-list">${EXPERTS.map((e) => `<li><a class="fin-expert" href="https://openvibe.actor/experts/${e.id}"><b>${esc(e.name)}</b><span>${esc(e.what)}</span></a></li>`).join('')}</ul>
+<p class="fin-note">They read your numbers here as you once you allow Actor in OpenVibe Finance on your <a href="https://openvibe.network/apps">Apps page</a>, and only to read: nothing here moves money.</p></section>`;
+
function home({ accounts, month, o = {} }) {
function home({ accounts, month, o = {} }) {
const total = {};
const total = {};
for (const a of accounts) total[a.currency] = (total[a.currency] || 0) + a.balance_cents;
for (const a of accounts) total[a.currency] = (total[a.currency] || 0) + a.balance_cents;
@@ -70,6 +82,7 @@ ${accounts.length ? `<section class="fin-month-card" aria-label="${esc(monthName
@@ -70,6 +82,7 @@ ${accounts.length ? `<section class="fin-month-card" aria-label="${esc(monthName
<label class="fin-field"><span>Balance before the first transaction</span><input name="opening" inputmode="decimal" placeholder="0.00" autocomplete="off"></label></div>
<label class="fin-field"><span>Balance before the first transaction</span><input name="opening" inputmode="decimal" placeholder="0.00" autocomplete="off"></label></div>
<p><button class="fin-btn fin-btn--primary" type="submit">Add the account</button></p>
<p><button class="fin-btn fin-btn--primary" type="submit">Add the account</button></p>
</form></details>
</form></details>
+${accounts.length ? expertsSection() : ''}
<p class="fin-foot"><a href="/ahead">Net worth and what if</a> · <a href="/goals">Goals and debt</a> · <a href="/bills">Recurring bills</a> · <a href="/rules">Your category rules</a> · <a href="/data">Your data: download or delete everything</a></p>` });
<p class="fin-foot"><a href="/ahead">Net worth and what if</a> · <a href="/goals">Goals and debt</a> · <a href="/bills">Recurring bills</a> · <a href="/rules">Your category rules</a> · <a href="/data">Your data: download or delete everything</a></p>` });
}
}
@@ -61,6 +61,11 @@ const SAME = { 'sec-fetch-site': 'same-origin' };
@@ -61,6 +61,11 @@ const SAME = { 'sec-fetch-site': 'same-origin' };
assert.strictEqual(page.status, 200);
assert.strictEqual(page.status, 200);
assert.match(page.text, /Everyday checking/);
assert.match(page.text, /Everyday checking/);
assert.match(page.text, /\$1,000\.00/);
assert.match(page.text, /\$1,000\.00/);
+ // With an account, the home page offers the money Experts (Actor #623), which read here only once allowed.
+ const home = await go('/', { as: ADA });
+ assert.match(home.text, /Ask an Expert/);
+ assert.match(home.text, /href="https:\/\/openvibe\.actor\/experts\/bp_can_i_afford_it"/);
+ assert.match(home.text, /allow Actor in OpenVibe Finance on your <a href="https:\/\/openvibe\.network\/apps">Apps page<\/a>/);
});
});
await check('a typed transaction: money out by default, its payee sealed in the database', async () => {
await check('a typed transaction: money out by default, its payee sealed in the database', async () => {