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. The same encrypted ledger is open to external AI agents through a local MCP / API server (coming next). No telemetry. No analytics.
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
 
@@ -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(db);
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
- import type Database from "libsql";
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(db) {
37
+ export function useFooterText() {
39
38
  const [tick, setTick] = useState(0);
40
39
  const [hintIdx] = useState(() => Math.floor(Math.random() * HINTS.length));
41
- const providerModel = `${getProvider().name}/${getActiveModel()}`;
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
- }, [db, tick, hintIdx, providerModel]);
54
+ }, [tick, hintIdx, providerName]);
60
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plasalid",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Plasalid — The Harness Layer for Personal Finance",
5
5
  "keywords": [
6
6
  "finance",