paisa-mcp 0.4.6 → 0.4.7
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 +10 -4
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56470,13 +56470,19 @@ function netWorthTools(client) {
|
|
|
56470
56470
|
investments: exports_external.string().optional(),
|
|
56471
56471
|
emergencyFund: exports_external.string().optional(),
|
|
56472
56472
|
liabilities: exports_external.string().optional(),
|
|
56473
|
-
breakdown: exports_external.record(exports_external.string(), exports_external.string()).optional()
|
|
56473
|
+
breakdown: exports_external.record(exports_external.string(), exports_external.string()).optional(),
|
|
56474
|
+
overwrite: exports_external.boolean().optional().describe("mode=auto: replace this month's snapshot even if it was entered by hand")
|
|
56474
56475
|
}),
|
|
56475
56476
|
handler: async ({ mode, ...body }) => {
|
|
56476
56477
|
let data;
|
|
56477
56478
|
if (mode === "auto") {
|
|
56478
|
-
data = await client.post("/api/net-worth/auto", {
|
|
56479
|
+
data = await client.post("/api/net-worth/auto", {
|
|
56480
|
+
month: body.month,
|
|
56481
|
+
year: body.year,
|
|
56482
|
+
overwrite: body.overwrite
|
|
56483
|
+
});
|
|
56479
56484
|
} else {
|
|
56485
|
+
delete body.overwrite;
|
|
56480
56486
|
const liquidCash = parseFloat(body.liquidCash ?? "0");
|
|
56481
56487
|
const investments = parseFloat(body.investments ?? "0");
|
|
56482
56488
|
const emergencyFund = parseFloat(body.emergencyFund ?? "0");
|
|
@@ -62111,7 +62117,7 @@ function registerResources2(server2, tools) {
|
|
|
62111
62117
|
// package.json
|
|
62112
62118
|
var package_default = {
|
|
62113
62119
|
name: "paisa-mcp",
|
|
62114
|
-
version: "0.4.
|
|
62120
|
+
version: "0.4.7",
|
|
62115
62121
|
repository: {
|
|
62116
62122
|
type: "git",
|
|
62117
62123
|
url: "git+https://github.com/nimit9/paisa.git",
|
|
@@ -62210,5 +62216,5 @@ main().catch((err) => {
|
|
|
62210
62216
|
process.exit(1);
|
|
62211
62217
|
});
|
|
62212
62218
|
|
|
62213
|
-
//# debugId=
|
|
62219
|
+
//# debugId=55A6DF6E25797A6764756E2164756E21
|
|
62214
62220
|
//# sourceMappingURL=index.js.map
|