plasalid 0.9.0 → 0.9.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.
package/README.md
CHANGED
|
@@ -120,7 +120,7 @@ plasalid clarify # Walk every open question and apply your de
|
|
|
120
120
|
plasalid
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
Two outbound calls: the AI provider during scan, and the AI provider during chat. Both are PII-redacted. Your financial data is never stored off your machine.
|
|
123
|
+
Two main outbound calls: the AI provider during scan, and the AI provider during chat. Both are PII-redacted. Your financial data is never stored off your machine. No telemetry. No analytics.
|
|
124
124
|
|
|
125
125
|
## Security & Privacy
|
|
126
126
|
|
package/dist/cli/ink/ChatApp.js
CHANGED
|
@@ -17,7 +17,7 @@ const nextId = () => `t${++turnSeq}`;
|
|
|
17
17
|
export function ChatApp({ db, onboardingPrompt }) {
|
|
18
18
|
const { exit } = useApp();
|
|
19
19
|
const [turns, setTurns] = useState([]);
|
|
20
|
-
const footerText = useFooterText(
|
|
20
|
+
const footerText = useFooterText();
|
|
21
21
|
const ctrlC = useCtrlCExit();
|
|
22
22
|
const pushTurn = useCallback((t) => {
|
|
23
23
|
setTurns(prev => [...prev, t]);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useFooterText(db: Database.Database): string;
|
|
1
|
+
export declare function useFooterText(): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useMemo, useState } from "react";
|
|
2
2
|
import chalk from "chalk";
|
|
3
|
-
import { getActiveModel } from "../../../config.js";
|
|
4
3
|
import { getProvider } from "../../../ai/providers/index.js";
|
|
5
4
|
const HINTS = [
|
|
6
5
|
"try: what's my net worth?",
|
|
@@ -35,26 +34,22 @@ const HINTS = [
|
|
|
35
34
|
"try: avalanche or snowball — what's faster?",
|
|
36
35
|
"try: am I paying more than the minimum?",
|
|
37
36
|
];
|
|
38
|
-
export function useFooterText(
|
|
37
|
+
export function useFooterText() {
|
|
39
38
|
const [tick, setTick] = useState(0);
|
|
40
39
|
const [hintIdx] = useState(() => Math.floor(Math.random() * HINTS.length));
|
|
41
|
-
const
|
|
40
|
+
const providerName = getProvider().name;
|
|
42
41
|
useEffect(() => {
|
|
43
42
|
const id = setInterval(() => setTick((t) => t + 1), 60_000);
|
|
44
43
|
return () => clearInterval(id);
|
|
45
44
|
}, []);
|
|
46
45
|
return useMemo(() => {
|
|
47
|
-
const { n: fileCount } = db
|
|
48
|
-
.prepare(`SELECT COUNT(*) AS n FROM scanned_files WHERE status = 'scanned'`)
|
|
49
|
-
.get();
|
|
50
46
|
const idx = (hintIdx + tick) % HINTS.length;
|
|
51
47
|
const parts = [
|
|
52
48
|
chalk.cyan("<°(((><"),
|
|
53
|
-
chalk.dim(providerModel),
|
|
54
|
-
chalk.dim(`${fileCount} file${fileCount === 1 ? "" : "s"}`),
|
|
55
49
|
chalk.dim(HINTS[idx]),
|
|
50
|
+
chalk.dim(providerName),
|
|
56
51
|
chalk.dim("ctrl+c to exit"),
|
|
57
52
|
];
|
|
58
53
|
return parts.join(chalk.dim(" | "));
|
|
59
|
-
}, [
|
|
54
|
+
}, [tick, hintIdx, providerName]);
|
|
60
55
|
}
|