From 1aa60ed7f0b0af6c55df4a32bf2620934df63e6d Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 15 Mar 2026 22:53:10 +0100 Subject: Add ai commands --- cli/src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/src/index.ts') diff --git a/cli/src/index.ts b/cli/src/index.ts index daedaae..fc7f080 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -4,6 +4,7 @@ import { accounts } from "./commands/accounts" import { runImport } from "./commands/import" import { init } from "./commands/init" import { backup, restore } from "./commands/backup" +import { aiCommand } from "./commands/ai" const [command, ...args] = process.argv.slice(2) @@ -14,6 +15,7 @@ const commands: Record Promise> = { import: (args) => runImport(args), backup: () => backup(), restore: (args) => restore(args), + ai: (args) => aiCommand(args), } const handler = commands[command] @@ -30,6 +32,11 @@ if (!handler) { console.log(" import --since=YYYY-MM-DD Only fetch transactions from this date") console.log(" backup Export budget to ~/.config/sb1-actual/backups/") console.log(" restore Restore budget from a backup") + console.log(" ai query [question] Ask a free-form question about your transactions") + console.log(" ai consolidate-payees Identify and merge duplicate/similar payees") + console.log(" ai summarize Summarize spending by category and payee") + console.log(" ai insights Get AI insights into spending patterns") + console.log(" ai add-notes Add descriptive notes to transactions") process.exit(1) } -- cgit v1.3