latticesql 1.16.4 → 2.0.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
@@ -191,6 +191,7 @@ new Lattice(config: LatticeConfigInput, options?: LatticeOptions)
191
191
  interface LatticeOptions {
192
192
  wal?: boolean; // WAL journal mode (default: true — recommended for concurrent reads)
193
193
  busyTimeout?: number; // SQLite busy_timeout in ms (default: 5000)
194
+ renderSkipsEmpty?: boolean; // Skip the read + write for spec-less tables on render() (default: false)
194
195
  security?: {
195
196
  sanitize?: boolean; // Strip control characters from string inputs (default: true)
196
197
  auditTables?: string[]; // Tables that emit 'audit' events on write
@@ -2276,6 +2277,37 @@ The browser's `EventSource` invalidates the entity cache on every `change` event
2276
2277
 
2277
2278
  ---
2278
2279
 
2280
+ ## AI assistant & Context Constructor (v2.0+)
2281
+
2282
+ `lattice gui` includes an optional **assistant rail**: a Claude-powered chat plus
2283
+ a **Context Constructor** that turns dropped files and pasted text into linked
2284
+ Lattice objects. It is **GUI-only and inert until you configure a credential** —
2285
+ the library API is unchanged and fully backwards-compatible.
2286
+
2287
+ - **Connect Claude.** Paste an Anthropic API key in **Settings → User → Assistant**
2288
+ (or set `ANTHROPIC_API_KEY`); it's stored encrypted in the native `secrets`
2289
+ entity. A subscription **Connect** link (PKCE) appears when the `ANTHROPIC_OAUTH_*`
2290
+ values are set (see [`.env.example`](.env.example)).
2291
+ - **Drop files / paste text / images / URLs.** Sources become native `files` rows
2292
+ (referenced, not copied) and are extracted — text via the optional `markitdown`
2293
+ CLI, **images via Claude vision**, a pasted **URL crawled** for readable text —
2294
+ then summarized with **Claude Haiku** and classified against your records, and
2295
+ **added, enriched, and linked** automatically, **auto-creating the junction table
2296
+ when none exists** (and a new object when a source fits nothing). All audited and
2297
+ revertible via the version history.
2298
+ - **Inference Aggressiveness** slider tunes how much the assistant extrapolates
2299
+ (temperature + link liberality + auto-junction/auto-create gating).
2300
+ - Runs on local SQLite and a direct `postgres://` connection; not yet in hosted
2301
+ multiplayer team-cloud mode.
2302
+
2303
+ The same intelligence is exposed as a **first-class library API** (inert without an
2304
+ LLM client): `organizeSource`, `describeImage`, `crawlUrl`, `enrichKnowledge`, and
2305
+ the `summarizeText` / `classifyLinks` primitives — all importable from `latticesql`.
2306
+
2307
+ See [docs/assistant.md](docs/assistant.md) for the full guide.
2308
+
2309
+ ---
2310
+
2279
2311
  ## CLI — `lattice teams` (v1.12+)
2280
2312
 
2281
2313
  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).