Repository navigation
Releases
v1.3.5 - device-code poll sends client_id; describe via schemas route
v1.3.5 — 2026-10-07
PAY-1977. vsql login (device code) could not complete against an IdP whose poll endpoint requires client_id in the body: the CLI polled with only {device_code}, got a 400 "ClientId is required", and reported Unknown error: unknown.
Fixed
- The device-code poll now sends
client_idin the request body as well as theX-Client-Idheader (RFC 8628 puts it in the form body; the header stays for older servers).
Note
- Versions before 1.3.0 (the 1.1.x line on npm) rewrote a dev IdP host to
http://<host>:3600/auth/deviceand ignored the verification URL the IdP returned. 1.3.x shows the IdP'sverification_urlas given; there is no rewrite left. Upgrade ifvsql loginprints a:3600address.
1.3.4 — 2026-10-06
PAY-2052. vsql describe was the one command still on raw SQL; the hosted API refuses information_schema to a tenant key (403, measured by Nextpert-Scout on dev-93, mail 69331), so describe failed for every key-mode user, as tables did before 1.3.3.
Changed
vsql describe <table> [collection]reads the active schema fromGET /v1/schemas(HMAC-only, the same routetablesuses) instead ofinformation_schema.columns. Output columns are nowcolumn_name,type,format,pk,auto_increment,nullable. Differences from the SQL version:nullableis derived as "not in the table'srequiredlist", columns come in schema order (there is no ordinal), and it does not print a column's default or enum values (a schema can setdefaultandenumon a column;describeshows neither, so useschema show <collection>to read them). Works with a KeelBase secret.- A table name that exists in more than one collection now fails with
AMBIGUOUS_TABLEand names the collections; pass the collection as the second argument. An unknown table or collection fails withTABLE_NOT_FOUND/COLLECTION_NOT_FOUND.
Install:
npm install -g https://github.com/PayEz-Net/vsql/releases/download/v1.3.5/vsql-1.3.5.tgz
v1.3.4 was never released separately; its changes (vsql describe on the schemas route) are included here.
v1.3.3 - KEELBASE_CLIENT_ID rename + schemas/tables, .env, health source naming
v1.3.3 - the v1.3.2 tester fixes plus the KEELBASE_CLIENT_ID rename, in one release.
Added (PAY-1978 - the first external tester's flaws 1-4)
- �sql schemas / �sql tables [collection] read GET /v1/schemas (the old information_schema read 403'd for every tenant key).
- .env loading from the current working directory (a real env var always wins).
- �sql health names each source (mode, host, and env-vs-.env for client id and key) separately.
- Key-mode �sql query refuses locally with the sign-in hint instead of a confusing server refusal.
Changed (PAY-1814)
- KEELBASE_CLIENT_ID replaces VSQL_CLIENT_ID as the client the CLI signs in on. Its value is your Tenant (the name your KeelBase page shows as "Tenant"), not the �ibe_... client id. VSQL_CLIENT_ID still works as a deprecated fallback with one warning; both set to different values is refused.
Fixed
- �sql version now reads package.json, so the binary can never report a stale version.
npm test 61/61. Install: download vsql-1.3.3.tgz below.
v1.3.2 — schemas/tables, .env, health source naming, key-mode query refusal
PAY-1978 (Jon-ruled, from the Vasanth first-tester intake). Fixes all four flaws hit on day one.
Added
vsql schemas— every collection and its active schema, including ones with no documents yet.vsql tables [collection]— a collection's tables, or every table grouped by collection with none. Both onGET /v1/schemas(not/v1/enterprise/schemas, which requires a client secret vsql's key mode never sends and would 401).tablesno longer hitsinformation_schema, which 403'd for every tenant key on prod — that was the actual bug..envloading from the current working directory, before any command runs. A real environment variable already set is never overridden.vsql healthnames its sources — mode, host, and the client-id/key credentials, separately, never the values. Catches the mixed-source shape that bit the first tester (a stale.envkey winning over — or losing to — a shell-exported one). ASIGNATURE_MISMATCHnow hints at runningvsql healthto see where each credential came from.- Key-mode
queryrefuses locally with a sign-in hint, instead of reaching the server for a confusingRAW_SQL_PLATFORM_ADMIN_ONLY.
Full details: CHANGELOG.md
Verification: 49/49 tests pass, tsc clean, QAPert G4 PASS (including a delta G4 on the mixed-source fix), and two full live-proof passes by rigpert on the dev-93 twin.
v1.3.1 — row update/replace/delete
PAY-1975 (Vasanth's hackathon, Jon, today): v1.3.0 shipped insert but no way to update or delete a row. The server always supported it (measured live on the dev-93 twin, client 45: PATCH/DELETE on /v1/collections/{c}/tables/{t}/{id} → 200/204 with correct read-back). The CLI just never carried the commands forward from the old ADO vsql-cli 1.1.1.
Added
vsql update <collection> <table> <id> --data '{...}'— merge-update a document (PATCH).vsql replace <collection> <table> <id> --data '{...}'— whole-document replace (PUT).vsql delete <collection> <table> <id>— delete a document (DELETE). Prompts for confirmation on a TTY;--yesskips it; a non-TTY call without--yesrefuses outright rather than deleting silently or hanging on a prompt nothing can answer.data update|replace|deletekept as aliases, matching the 1.1.1 spelling.- All three work with a KeelBase secret (key-signing), the same as
insert. --datais validated locally as a JSON object before any request is sent (INVALID_JSON, never sent half-parsed).
Full details: CHANGELOG.md
Verification: 35/35 tests pass (25 existing unchanged + 10 new), tsc clean, QAPert G4 PASS, and a live proof against the dev-93 twin by rigpert (insert → update → replace → delete → 404, plus the delete-confirmation guard and the bad-JSON refusal, all independently read back).
vsql v1.3.0
Install (Node.js 18+):
npm install -g https://github.com/PayEz-Net/vsql/releases/download/v1.3.0/vsql-1.3.0.tgz
vsql version
Re-synced with the hosted VibeSQL API, plus optional key-signing with a KeelBase secret. The routes were read from the API's source and measured on dev-93.
Changed / BREAKING
- The CLI targets the hosted VibeSQL API's routes. v1.2.0 had drifted from it on four:
query:POST /v1/query(404 on the API) →POST /v1/vsql/query. The hosted query is read-only for tenant data until row-level security lands; writes get the API's own refusal.schema update:PUT(405) with a string schema (400NOT_OBJECT) →POST /v1/schemas/{collection}withjsonSchemaas an object.insert: the document was wrapped as{ clientId, data: "<string>" }(400REQUIRED_FIELDS_MISSING) → the document itself is the body.schema show/rollback --list: readis_active/json_schema, but the API answers camelCase, so every schema looked inactive (NO_ACTIVE_SCHEMAright after a successful create). Both spellings are read now.healthuses the API's public/health.
- A self-hosted VibeSQL Server, Edge or vibesql-micro speaking
POST /v1/queryis no longer a target of this CLI. For local work, use vibesql-micro's ownvsql-micro. --client-idis ignored: the tenant comes from the credential.
Added
- Key-signing (optional, for app runtime calls): set
VIBE_CLIENT_ID(KeelBase client id) andVIBE_HMAC_KEY(KeelBase secret) and calls go through the identity service's proxy,POST {IdP}/api/vibe/proxy, HMAC-signed. Coversquery,health,schema show,rollback --listandinsert. Schema changes are refused with a secret; they usevsql login.- The secret is read from the environment only, and is never logged, written to config or passed in argv.
- Setting only one of the two variables fails loud.
vsql rows <collection> <table>(--page,--page-size) reads a table's rows back throughGET /v1/collections/{c}/tables/{t}, andvsql collectionslists your collections. Hosted SQL cannot see collection tables, so before this there was no way to read back what you wrote. Both are read-only and work with a KeelBase secret. Taken from rigpert's PR #2.VSQL_DEBUG=1prints each request's target to stderr, never a credential.config shownames the KeelBase client id when key-signing is configured, and whether the secret is set.- Tests (
npm test):- the signature is checked against vectors computed by the identity service's own verifier;
- one test per route pins the recorded contract;
- key-signing is checked for its proxy request shape, for keeping the secret off the wire and out of debug output, and for refusing DDL.
Fixed
- An unknown command (or
schema/configsubcommand) printed help and exited 0, so a typo looked like it ran. It now exits non-zero withUNKNOWN_COMMAND. - An unknown option was taken silently, with the next word as its value, so
rows --limit 3looked like it worked. It now fails withUNKNOWN_FLAG. config showin key-signing mode said "No config found. Runvsql login" under a working key-signing line. It now says a sign-in profile is not needed for key-signing.- An empty or non-JSON reply printed a raw
SyntaxErrorstack trace; it now reports the HTTP status and the start of the body.
Docs
- README: install is one line:
npm install -gof the release tarball (vsql-1.3.0.tgz, attached to the GitHub release). It is not on the npm registry. - README: it says plainly that the device approval screen does not exist yet, and how a code is approved today.