paisa-mcp 0.4.9 → 0.4.10
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/dist/index.js +14 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61857,7 +61857,18 @@ async function runCasImport(deps, args) {
|
|
|
61857
61857
|
});
|
|
61858
61858
|
added++;
|
|
61859
61859
|
}
|
|
61860
|
-
|
|
61860
|
+
let netWorth;
|
|
61861
|
+
try {
|
|
61862
|
+
const nw = await deps.client.post("/api/net-worth/auto", {});
|
|
61863
|
+
netWorth = { updated: true, total: Number(nw.data?.totalNetWorth ?? 0) };
|
|
61864
|
+
} catch (err) {
|
|
61865
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
61866
|
+
netWorth = {
|
|
61867
|
+
updated: false,
|
|
61868
|
+
reason: /manual|hand/i.test(msg) ? "This month's net worth was entered by hand; left as is (update_net_worth mode=auto overwrite=true replaces it)." : msg
|
|
61869
|
+
};
|
|
61870
|
+
}
|
|
61871
|
+
return { ...plan, dryRun: false, added, netWorth };
|
|
61861
61872
|
}
|
|
61862
61873
|
|
|
61863
61874
|
// src/lib/statement-import.ts
|
|
@@ -62307,7 +62318,7 @@ function registerResources2(server2, tools) {
|
|
|
62307
62318
|
// package.json
|
|
62308
62319
|
var package_default = {
|
|
62309
62320
|
name: "paisa-mcp",
|
|
62310
|
-
version: "0.4.
|
|
62321
|
+
version: "0.4.10",
|
|
62311
62322
|
repository: {
|
|
62312
62323
|
type: "git",
|
|
62313
62324
|
url: "git+https://github.com/nimit9/paisa.git",
|
|
@@ -62406,5 +62417,5 @@ main().catch((err) => {
|
|
|
62406
62417
|
process.exit(1);
|
|
62407
62418
|
});
|
|
62408
62419
|
|
|
62409
|
-
//# debugId=
|
|
62420
|
+
//# debugId=70DF5E5697F5257E64756E2164756E21
|
|
62410
62421
|
//# sourceMappingURL=index.js.map
|