Skip to content

Releases

v1.3.5 - device-code poll sends client_id; describe via schemas route

Choose a tag to compare

@payez-jon payez-jon released this 08 Oct 05:43
a98d15a

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_id in the request body as well as the X-Client-Id header (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/device and ignored the verification URL the IdP returned. 1.3.x shows the IdP's verification_url as given; there is no rewrite left. Upgrade if vsql login prints a :3600 address.

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 from GET /v1/schemas (HMAC-only, the same route tables uses) instead of information_schema.columns. Output columns are now column_name, type, format, pk, auto_increment, nullable. Differences from the SQL version: nullable is derived as "not in the table's required list", columns come in schema order (there is no ordinal), and it does not print a column's default or enum values (a schema can set default and enum on a column; describe shows neither, so use schema show <collection> to read them). Works with a KeelBase secret.
  • A table name that exists in more than one collection now fails with AMBIGUOUS_TABLE and names the collections; pass the collection as the second argument. An unknown table or collection fails with TABLE_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

Choose a tag to compare

@payez-jon payez-jon released this 29 Sep 19:18

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

Choose a tag to compare

@payez-jon payez-jon released this 29 Sep 16:30

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 on GET /v1/schemas (not /v1/enterprise/schemas, which requires a client secret vsql's key mode never sends and would 401). tables no longer hits information_schema, which 403'd for every tenant key on prod — that was the actual bug.
  • .env loading from the current working directory, before any command runs. A real environment variable already set is never overridden.
  • vsql health names 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 .env key winning over — or losing to — a shell-exported one). A SIGNATURE_MISMATCH now hints at running vsql health to see where each credential came from.
  • Key-mode query refuses locally with a sign-in hint, instead of reaching the server for a confusing RAW_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

Choose a tag to compare

@payez-jon payez-jon released this 29 Sep 14:46

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; --yes skips it; a non-TTY call without --yes refuses outright rather than deleting silently or hanging on a prompt nothing can answer.
  • data update|replace|delete kept as aliases, matching the 1.1.1 spelling.
  • All three work with a KeelBase secret (key-signing), the same as insert.
  • --data is 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

Choose a tag to compare

@payez-jon payez-jon released this 23 Sep 15:53
476f824

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 (400 NOT_OBJECT) → POST /v1/schemas/{collection} with jsonSchema as an object.
    • insert: the document was wrapped as { clientId, data: "<string>" } (400 REQUIRED_FIELDS_MISSING) → the document itself is the body.
    • schema show / rollback --list: read is_active / json_schema, but the API answers camelCase, so every schema looked inactive (NO_ACTIVE_SCHEMA right after a successful create). Both spellings are read now.
    • health uses the API's public /health.
  • A self-hosted VibeSQL Server, Edge or vibesql-micro speaking POST /v1/query is no longer a target of this CLI. For local work, use vibesql-micro's own vsql-micro.
  • --client-id is ignored: the tenant comes from the credential.

Added

  • Key-signing (optional, for app runtime calls): set VIBE_CLIENT_ID (KeelBase client id) and VIBE_HMAC_KEY (KeelBase secret) and calls go through the identity service's proxy, POST {IdP}/api/vibe/proxy, HMAC-signed. Covers query, health, schema show, rollback --list and insert. Schema changes are refused with a secret; they use vsql 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 through GET /v1/collections/{c}/tables/{t}, and vsql collections lists 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=1 prints each request's target to stderr, never a credential.
  • config show names 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/config subcommand) printed help and exited 0, so a typo looked like it ran. It now exits non-zero with UNKNOWN_COMMAND.
  • An unknown option was taken silently, with the next word as its value, so rows --limit 3 looked like it worked. It now fails with UNKNOWN_FLAG.
  • config show in key-signing mode said "No config found. Run vsql 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 SyntaxError stack trace; it now reports the HTTP status and the start of the body.

Docs

  • README: install is one line: npm install -g of 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.