Commit

6bbce6b

I'm pre-releasing a look at HiDataLinker 1.2.0. It isn't tagged yet — this is what's landing in the next slice, on a free local MySQL/PostgreSQL desktop client (MIT). 1.1.0 already opened the running app to external agents via local MCP. 1.2.0 is about the built-in agent mode, plus making every SQL statement — human or agent — auditable once this ships. CSV / Excel in the chat, not in the model In 1.2.0 you'll be able to drop a CSV or Excel file into an agent conversation and import it into MySQL or PostgreSQL. The model only sees a 20-row sample to infer a schema. The import script is shown for review, then runs in the background so the UI stays responsive. The agent waits for your decision and for the job to finish before it continues. If the target table already exists, it is truncated and refilled — that's intentional, and called out in the confirm step. Authorization is becoming an explicit switch next to the input: read-only (default) or full access. Writes and import scripts will only run in full-access mode. Scripts will live under ~/.hidatalinker/temp/scripts. Insights from connection metadata A background insights agent will read metadata from connections you already have, sketch a business profile per data source (domain, summary, key tables), and recommend up to 10 analysis scenarios. Each one has a severity, a category (business, data quality, performance, governance, integration), and the tables involved. You'll be able to open one in chat, mark it done, or re-run analysis without blocking the rest of the app. Charts in the conversation will export as PNG (2×, white background). The agent sidebar will collapse to an icon rail and remember that state. SQL execution audit This is the piece I wanted most for 1.2.0. Every SQL from query execution, table browse/count, create/drop database, export, migration, import, and agent tool calls will be written to a daily JSONL file at ~/.hidatalinker/audit/YYYY-MM-DD.jsonl. Each line has time, OS user, connection, database, source, full SQL, outcome, rows, duration, and error. Password literals are redacted; statements over 256KB are truncated and flagged. Settings will get a SQL Audit tab: on/off, retention (default 90 days), and filters by date, connection, source, status, and keyword. Failures show in red. A few smaller cuts are coming with it: a collapsible, resizable execution log under the query results, a much higher configurable context window (up to 100M tokens) for long-context models, and more tolerant parsing when a model returns Markdown instead of strict JSON. Again, 1.2.0 is not released yet — this is a preview of the work in progress. Local-first stays the same when it ships: no accounts, no telemetry, secrets stay on the machine.

commit 6bbce6b