latticesql 1.16.3 → 1.16.4
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 +16 -5
- package/dist/cli.js +668 -550
- package/dist/index.cjs +17 -4
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +20 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2095,13 +2095,24 @@ a parent link, while the reverse side (other entities that point here) plus
|
|
|
2095
2095
|
many-to-many junctions become the drill-in sub-folders. Declare `ref:` on your
|
|
2096
2096
|
foreign-key fields to get the nested file tree.
|
|
2097
2097
|
|
|
2098
|
-
The header carries the logo, undo/redo, the workspace
|
|
2099
|
-
**settings gear** (top-right). The gear opens a slide-over drawer with **
|
|
2098
|
+
The header carries the logo, undo/redo, the **workspace switcher**, and a
|
|
2099
|
+
**settings gear** (top-right). The gear opens a slide-over drawer with **Workspace**,
|
|
2100
2100
|
**Lattice**, and **User** settings plus an **Advanced mode** toggle. Turn Advanced
|
|
2101
2101
|
mode on to switch the object/row views back to the classic editable **table + row**
|
|
2102
2102
|
interface (below); turn it off for the file-system workspace. The left sidebar is
|
|
2103
2103
|
slim and collapsible. The assistant rail is unchanged in either mode.
|
|
2104
2104
|
|
|
2105
|
+
**One workspace model (v1.16.4+).** A workspace _is_ a Lattice DB. The header has a
|
|
2106
|
+
single workspace switcher listing every database — local or cloud, created or joined —
|
|
2107
|
+
and its "+ New workspace…" button opens the create/join wizard (New local / New cloud /
|
|
2108
|
+
Join existing cloud). The GUI always operates inside a `.lattice` root: opening a bare
|
|
2109
|
+
config adopts it (and its database, referenced in place — nothing is moved) as the
|
|
2110
|
+
active workspace. There is no separate "database mode". The word "database" is reserved
|
|
2111
|
+
for a specific workspace's connection details (the connection panel in Workspace
|
|
2112
|
+
Settings). This applies to the GUI/CLI app only — the `latticesql` library API and the
|
|
2113
|
+
headless `render`/`generate`/`watch` commands still run against a bare config or
|
|
2114
|
+
Postgres URL with no root.
|
|
2115
|
+
|
|
2105
2116
|
### Assistant sidebar (v2.0+)
|
|
2106
2117
|
|
|
2107
2118
|
The GUI has a fixed right sidebar with a live **activity feed** — every change
|
|
@@ -2142,9 +2153,9 @@ Chat threads, files, and secrets are all stored as native Lattice entities.
|
|
|
2142
2153
|
|
|
2143
2154
|
The convergence means you don't need to duplicate entity-context definitions in YAML for the GUI to find rendered files.
|
|
2144
2155
|
|
|
2145
|
-
**Database wizard form (v1.13.2+).** The Postgres connection form (used by Migrate to cloud +
|
|
2156
|
+
**Database wizard form (v1.13.2+).** The Postgres connection form (used by Migrate to cloud + the Join-a-team invite flow) disables browser autocapitalize, autocorrect, and spellcheck on every text input, and trims whitespace on every read. This avoids silent failure modes where macOS Safari / iOS turned a Supabase tenant user `postgres.<ref>` into `Postgres.<ref>` on submit, and where pasted credentials carrying a trailing newline produced opaque "zero-length delimiter identifier" or SCRAM-mismatch errors. `probeCloud` also folds SQLSTATE + `routine` into `result.error` so the GUI's "Unreachable: …" surface is actionable.
|
|
2146
2157
|
|
|
2147
|
-
**
|
|
2158
|
+
**Migrate vs. join (1.16.4).** The standalone "Connect to existing cloud" wizard (which switched a project's `db:` line to a raw cloud on its own) was removed — the two cloud operations are now **Migrate to cloud** (push your local workspace's data into a fresh cloud Postgres; you become the owner) and **Join a team (invite)** (redeem an invite token to join a workspace someone shared with you). The `connect-existing` endpoint still backs the invite‑redeem path for an active cloud that needs an invite.
|
|
2148
2159
|
|
|
2149
2160
|
**Cloud workspaces initialize automatically (v1.16.3+).** A cloud database _is_ a cloud workspace with members — there is no separate "upgrade to team" step. The moment a database is migrated or connected to Postgres, its member/share machinery is created automatically (the workspace name is used as the identity; an existing un-initialized cloud initializes on open, with the opener as owner). The underlying mechanism is the `registerDirectViaPostgres()` helper, which drives the identity/member INSERT sequence directly against the cloud Postgres (the older HTTP `/api/auth/register` path is still used when the cloud URL is `http(s)://`). The standalone "Upgrade to team cloud" action and its `/api/dbconfig/upgrade-to-team` route were removed in 1.16.3.
|
|
2150
2161
|
|
|
@@ -2381,7 +2392,7 @@ await client.ensureCloudWorkspaceIdentity({
|
|
|
2381
2392
|
});
|
|
2382
2393
|
```
|
|
2383
2394
|
|
|
2384
|
-
GUI consumers don't need to call these directly — the Database panel surfaces
|
|
2395
|
+
GUI consumers don't need to call these directly — the Database panel surfaces `Migrate to cloud →`, and joining a shared workspace goes through `Join a team (invite)`; workspace initialization is automatic. (The standalone "Connect to existing cloud" wizard was removed in 1.16.4.)
|
|
2385
2396
|
|
|
2386
2397
|
HTTP surface (all under `/api/dbconfig/*`, localhost-only, same auth model as the rest of `lattice gui`):
|
|
2387
2398
|
|