plasalid 0.5.4 → 0.5.6
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/README.md +1 -1
- package/dist/cli/format.js +4 -5
- package/dist/cli/index.js +6 -2
- package/dist/cli/ink/hooks/useFooterText.js +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/cli/format.js
CHANGED
|
@@ -54,9 +54,10 @@ export function formatError(error, context) {
|
|
|
54
54
|
return `${chalk.red("✗")} ${context ? context + ": " : ""}${safeMsg}`;
|
|
55
55
|
}
|
|
56
56
|
export function banner() {
|
|
57
|
-
return chalk.cyan("<°(((>< ") +
|
|
57
|
+
return (chalk.cyan("<°(((>< ") +
|
|
58
|
+
chalk.bold("Plasalid") +
|
|
59
|
+
chalk.dim(" · AI Harness for Personal Finance"));
|
|
58
60
|
}
|
|
59
|
-
const FISH_ART = "<°(((><";
|
|
60
61
|
function stripAnsi(str) {
|
|
61
62
|
return str.replace(ANSI_RE, "");
|
|
62
63
|
}
|
|
@@ -75,13 +76,11 @@ function box(label, lines) {
|
|
|
75
76
|
const DISCLAIMER = "Plasalid is an assistant, not a financial advisor. It only summarizes financial statements — verify amounts against your statements before relying on them.";
|
|
76
77
|
export function helpScreen(commands) {
|
|
77
78
|
const sections = [
|
|
78
|
-
chalk.cyan(FISH_ART),
|
|
79
|
-
"",
|
|
80
79
|
banner(),
|
|
81
80
|
"",
|
|
82
81
|
box("Usage", [
|
|
83
82
|
"plasalid <command> [OPTIONS]",
|
|
84
|
-
"plasalid Start the
|
|
83
|
+
"plasalid Start the chat session",
|
|
85
84
|
]),
|
|
86
85
|
"",
|
|
87
86
|
];
|
package/dist/cli/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function ensureConfigured() {
|
|
|
15
15
|
}
|
|
16
16
|
program
|
|
17
17
|
.name("plasalid")
|
|
18
|
-
.description("
|
|
18
|
+
.description("AI Harness for Personal Finance")
|
|
19
19
|
.version(version)
|
|
20
20
|
.addHelpCommand(false)
|
|
21
21
|
.showHelpAfterError(`Run ${chalk.cyan("plasalid --help")} for the list of commands.`)
|
|
@@ -106,7 +106,11 @@ program
|
|
|
106
106
|
process.exit(1);
|
|
107
107
|
}
|
|
108
108
|
const envParallel = parseInt(process.env.PLASALID_SCAN_CONCURRENCY ?? "", 10);
|
|
109
|
-
const parallel = Number.isFinite(opts.parallel)
|
|
109
|
+
const parallel = Number.isFinite(opts.parallel)
|
|
110
|
+
? opts.parallel
|
|
111
|
+
: Number.isFinite(envParallel)
|
|
112
|
+
? envParallel
|
|
113
|
+
: undefined;
|
|
110
114
|
const { runScanCommand } = await import("./commands/scan.js");
|
|
111
115
|
await runScanCommand({ regex: regexes[0], force: !!opts.force, parallel });
|
|
112
116
|
});
|
|
@@ -2,15 +2,15 @@ import { useEffect, useMemo, useState } from "react";
|
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
const HINTS = [
|
|
4
4
|
"try: what's my net worth?",
|
|
5
|
+
"try: am I spending more than I earn?",
|
|
6
|
+
"try: how much did I save last month?",
|
|
5
7
|
"try: where did my money go last month?",
|
|
6
8
|
"try: biggest expense this month?",
|
|
9
|
+
"try: top spending categories this month?",
|
|
7
10
|
"try: total credit card debt?",
|
|
8
|
-
"try: next
|
|
11
|
+
"try: next bill due?",
|
|
9
12
|
"try: list my subscriptions",
|
|
10
|
-
"try:
|
|
11
|
-
"try: transactions over 10,000 baht",
|
|
12
|
-
"try: top merchants this quarter?",
|
|
13
|
-
"try: dining — this month vs last?",
|
|
13
|
+
"try: how much liquid cash do I have?",
|
|
14
14
|
"try: net worth trend this year?",
|
|
15
15
|
"try: open concerns from last scan?",
|
|
16
16
|
];
|
package/package.json
CHANGED