@youtyan/code-viewer 0.7.0 → 0.8.1

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
@@ -37,6 +37,8 @@ Requires Node.js 20 or newer when installed from npm. Development uses
37
37
  viewer.
38
38
  Local Supabase CLI (`supabase start`) Postgres projects are auto-discovered
39
39
  too, without needing a `docker-compose.yml`.
40
+ Table descriptions appear inside expanded table entries and in the Schema
41
+ tab header when the database provides them.
40
42
  - Read the built-in Help page for getting started, the `.code-viewer/`
41
43
  project files, AI annotations, datastores, the agent skill, and
42
44
  keybindings.
@@ -199,6 +201,7 @@ root:
199
201
  - `annotations.json` — AI Code Annotations.
200
202
  - `query-history.json` — datastore query history.
201
203
  - `db-snapshots.sqlite` — datastore snapshots and diff blobs.
204
+ - `datastore-connections.json` — saved non-secret datastore connection settings.
202
205
 
203
206
  The `.code-viewer` directory is tool-internal: it never shows up in the file
204
207
  tree, searches, or diffs. Add it to `.gitignore` if you do not want to share
@@ -273,6 +276,22 @@ constraint violation.
273
276
 
274
277
  Open Datastores in the global navigation to access:
275
278
 
279
+ - **Saved connections** — use the `+` action beside the datastore selector to
280
+ add PostgreSQL, MySQL, Redis, Elasticsearch, S3-compatible, or DynamoDB
281
+ endpoints that are not present in the repository's local discovery files.
282
+ Required fields are marked in the connection dialog, and **Test connection**
283
+ verifies the current values before saving. Saved connections can be edited
284
+ or deleted from the adjacent actions.
285
+ PostgreSQL, MySQL, and Redis use Node.js drivers installed automatically with
286
+ this package, while Elasticsearch, S3, and DynamoDB use built-in HTTP
287
+ clients. No database CLI or `curl` installation is required for saved
288
+ connections.
289
+ Non-secret settings are stored in `.code-viewer/datastore-connections.json`.
290
+ User names, access key IDs, passwords, secret keys, and session tokens remain
291
+ in server memory only and are never written to that file or returned by
292
+ list/edit responses, so they must be entered again after restarting
293
+ code-viewer.
294
+
276
295
  - **Multi-DB tabs** — open multiple databases side by side, with their own
277
296
  sidebar, panes, and history. `+` adds an empty tab; `×` or middle-click
278
297
  closes one (the last tab resets to empty instead of vanishing). Tabs can be