latticesql 1.16.5 → 2.1.0

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
@@ -24,6 +24,8 @@ Every AI agent session starts cold — no memory of what happened yesterday, wha
24
24
 
25
25
  Lattice has no opinions about your schema, your agents, or your file format. You define the tables. You control the rendering. Lattice runs the sync loop.
26
26
 
27
+ **New in 2.1:** the GUI search box now asks the **assistant** (it answers using a full-text `search` tool) instead of running a plain text match; the assistant gains a **guarded, reversible `delete_entity`** (empty tables go immediately, non-empty tables ask what to do with the data first); new chat threads are named from a short AI summary; ingest failures are surfaced loudly instead of swallowed; and the activity feed, voice-note composer, upload timer, and live counts get a round of fixes. See [docs/assistant.md](docs/assistant.md).
28
+
27
29
  **New in 1.16:** the `.lattice` workspace model + auto-render, full-text search, sources/references, a workspace dashboard, a **multiplayer cloud-editing** experience (live share/de-share, "last edited by", change-flash + counts, and an offline edit queue that replays on reconnect), and a much richer **Data Model editor** in the GUI — a force-directed schema graph, bidirectional many-to-many links, and a soft-delete model where every schema change (create/rename/delete a table, column, or link) is tracked in version history and **reversible** (deletes never destroy data; revert restores it), with session-scoped undo/redo. All with no AI dependency. See [docs/workspaces.md](docs/workspaces.md) and [docs/collaboration.md](docs/collaboration.md). The AI assistant, chat, and ingest summarization are exclusive to the 2.0 line (2.0 = the 1.16 feature set plus that AI layer).
28
30
 
29
31
  ---
@@ -2277,6 +2279,37 @@ The browser's `EventSource` invalidates the entity cache on every `change` event
2277
2279
 
2278
2280
  ---
2279
2281
 
2282
+ ## AI assistant & Context Constructor (v2.0+)
2283
+
2284
+ `lattice gui` includes an optional **assistant rail**: a Claude-powered chat plus
2285
+ a **Context Constructor** that turns dropped files and pasted text into linked
2286
+ Lattice objects. It is **GUI-only and inert until you configure a credential** —
2287
+ the library API is unchanged and fully backwards-compatible.
2288
+
2289
+ - **Connect Claude.** Paste an Anthropic API key in **Settings → User → Assistant**
2290
+ (or set `ANTHROPIC_API_KEY`); it's stored encrypted in the native `secrets`
2291
+ entity. A subscription **Connect** link (PKCE) appears when the `ANTHROPIC_OAUTH_*`
2292
+ values are set (see [`.env.example`](.env.example)).
2293
+ - **Drop files / paste text / images / URLs.** Sources become native `files` rows
2294
+ (referenced, not copied) and are extracted — text via the optional `markitdown`
2295
+ CLI, **images via Claude vision**, a pasted **URL crawled** for readable text —
2296
+ then summarized with **Claude Haiku** and classified against your records, and
2297
+ **added, enriched, and linked** automatically, **auto-creating the junction table
2298
+ when none exists** (and a new object when a source fits nothing). All audited and
2299
+ revertible via the version history.
2300
+ - **Inference Aggressiveness** slider tunes how much the assistant extrapolates
2301
+ (temperature + link liberality + auto-junction/auto-create gating).
2302
+ - Runs on local SQLite and a direct `postgres://` connection; not yet in hosted
2303
+ multiplayer team-cloud mode.
2304
+
2305
+ The same intelligence is exposed as a **first-class library API** (inert without an
2306
+ LLM client): `organizeSource`, `describeImage`, `crawlUrl`, `enrichKnowledge`, and
2307
+ the `summarizeText` / `classifyLinks` primitives — all importable from `latticesql`.
2308
+
2309
+ See [docs/assistant.md](docs/assistant.md) for the full guide.
2310
+
2311
+ ---
2312
+
2280
2313
  ## CLI — `lattice teams` (v1.12+)
2281
2314
 
2282
2315
  Multi-user cloud-shared Lattice databases on your own Postgres. Bring your own Postgres connection; lattice handles identity (bearer tokens, email-bound invitations), the team membership table, and the sync engine (shared objects + row links + change feed + outbox + replay-guard puller).