ray-finance 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/cli/chat.js +14 -1
  2. package/package.json +1 -1
package/dist/cli/chat.js CHANGED
@@ -144,10 +144,17 @@ export async function startChat() {
144
144
  if (ageMs < 6 * 60 * 60 * 1000) { // linked within last 6 hours
145
145
  const { runDailySync } = await import("../daily-sync.js");
146
146
  bgSyncTimer = setInterval(async () => {
147
+ // Silence all output during background sync
148
+ const origWrite = process.stdout.write;
149
+ const origErr = process.stderr.write;
150
+ process.stdout.write = () => true;
151
+ process.stderr.write = () => true;
147
152
  try {
148
153
  await runDailySync(db);
149
154
  }
150
155
  catch { }
156
+ process.stdout.write = origWrite;
157
+ process.stderr.write = origErr;
151
158
  }, 15 * 60 * 1000); // every 15 minutes
152
159
  bgSyncTimer.unref(); // don't prevent process exit
153
160
  }
@@ -205,8 +212,14 @@ export async function startChat() {
205
212
  console.log(rule);
206
213
  const input = await rawReadLine(chalk.dim("❯ "), [rule, footerText]);
207
214
  const trimmed = input.trim();
208
- if (!trimmed)
215
+ if (!trimmed) {
216
+ // Clear the prompt frame (top rule + prompt + bottom rule + footer)
217
+ process.stdout.write("\x1b[3A\r");
218
+ for (let i = 0; i < 4; i++)
219
+ process.stdout.write("\x1b[2K\x1b[1B");
220
+ process.stdout.write("\x1b[4A\r");
209
221
  continue;
222
+ }
210
223
  // Replace prompt frame with gray-background user message
211
224
  // Move up 4 lines (footer, bottom rule, prompt, top rule) and clear them
212
225
  process.stdout.write("\x1b[4A\r");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ray-finance",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Local-first CLI that turns your bank data into a personal AI financial advisor",
5
5
  "type": "module",
6
6
  "license": "MIT",