scribase init / init --temp now reads the sample todos table through the project's REST API with the public key as soon as the backend is ready, prints the rows and returns them as first_request in --json. Agent-created projects count as activated without a human click. A failed read never fails init; the curl stays as the first next step in that case. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
7.7 KiB
Changelog
0.3.10 (2026-11-30)
npx scribase init(andinit --temp) now makes the project's first request itself instead of printing a curl to paste. As soon as the backend is ready it reads the sampletodostable through the project's REST API with the public key (GET /rest/v1/todos?select=*), prints the rows, and returns them in the--jsonoutput asfirst_request(ok,method,url,status,row_count,rows, anderrorwhen it did not work). An agent that runs one command now ends with real rows from its own backend, with no browser and no second step. A failed read never fails init: the project is live,first_request.okisfalse, and the first next step is the curl that repeats it.
0.3.9 (2026-11-30)
- Package description leads with zero-human signup for coding agents.
0.3.8 (2026-11-30)
npx scribase migrate rollback [n](default 1): reverts thenmost recently applied migrations by running their stored-- downSQL. There is no server route that deletes a ledger row over the network, so it writes the down SQL to disk as a brand new migration file (<new version>_rollback_<name>.sql) and sends it through the exact samePOST .../migrationsroute — and the exact same destructive-push production-approval gate — any other migration already goes through, so every other environment that later runsmigratereplays the same rollback. Refused with a clear error when the target migration has no down SQL, or when asked to roll back more than are applied.--dry-runpreviews without writing or applying anything.--jsonfor scripts and agents.
0.3.7 (2026-11-27)
- Security: commands that use a stored
scribase logintoken or a shellSCRIBASE_ACCESS_TOKEN(sql,migrate,env,branch,add,ota, railyard capabilities) took the server address from the folder's.scribase/project.jsonand sent the token there without checking that the token was issued for that server. A shared template, zip or tarball with a craftedapi_urlcould receive the token. They now send it only to the server saved with the token atscribase login(defaulthttps://api.scribase.com) or to an explicitSCRIBASE_API_URL, and refuse any other address before making a request (api_url_mismatch). Tokens kept in the folder's own.env.local/.envstill go to that folder's project. Affected: 0.3.2 to 0.3.6. Reported by kta1kri (https://github.com/kta1kri), thank you.
0.3.5 (2026-11-27)
- Docs fix: README and
AGENTS.mdsaidadd email --to <address>works on an unclaimed temporary project. It does not, on purpose: an unclaimed project only mails its owner, so the control plane answersemail_recipient_refused(HTTP 403). Both files now say what needs an account (email) and what does not (database, auth, storage, REST). add emailon an unclaimed project: thenexthint now points at the claim link instead ofscribase login.
0.3.4 (2026-11-27)
npx scribase init: the next steps now include one copy-pastecurlthat reads the first table back through the project's REST API with the public (anon) key, right after the step that creates the table. A person or a coding agent can prove the backend answers from any terminal before writing app code. Also present innext_stepswith--json.package.json: description and keywords now say what the package does (database, auth, storage, realtime, transactional email, MCP, coding agents) so npm search finds it for those. No API change.
0.3.3 (2026-11-27)
- README/
package.jsonhomepage: added?ref=npmto the scribase.com link so npm-page and README clicks are attributable in analytics. No functional change.
0.3.2 (2026-11-26)
npx scribase add email --to <address>: a project made withinit --temphas no account yet, so there was no address for the proof email to go to andadd emailalways refused withno_caller_email.--togives it one explicitly (a disposable inbox, e.g. mail.tm, is fine) — this is the missing step in the fully agent-driven, no-human path:init --tempfor the database,add email --to <inbox>for transactional email, both without a signup page, a CAPTCHA, or a browser. Ignored once the project is claimed or signed in; a real account's proof still only goes to its own address. (Needs the matching control-plane fix; seeplans/scribase.md.)- New
AGENTS.md, shipped in the package, and a README section pointing a coding agent straight at the two commands above.
0.3.0 (2026-11-16, not yet published)
-
The claim line
initprints,init --help,doctorand the README now match the live sign-up: free for 14 days, no card, and one project stays free after that. The old "sign up + card check" wording is gone. -
initprints the UTC time a temporary project is deleted next to its claim link (deleted_at_utcandkeepin--json). -
Fixed: an exported
SCRIBASE_ACCESS_TOKENno longer overrides the token in this folder's env file.sql,migrate,add,ota,envandbranchact on this folder's project, so the tokeninitwrote here wins, then the exported one, thenscribase login. Before, a token exported for another project madenpx scribase sqlanswer403 access is denied. When the two differ, one line on stderr says which was used;SCRIBASE_TOKEN_SOURCE=shell|file|loginforces one;--verbose(any command) always prints the source, never the token. A401/403now names the source of the refused token. -
New in the npm package:
npx scribase env [list|get]lists this project's environments, andnpx scribase branch [list|create|url|reset|delete]manages database branches (they were only in the full CLI before). Both read the project from.scribase/project.json, so no ids are typed.branch create|urlwrite the branch's public URL and publishable key to.scribase/branches/<branch>.env.branch reset|deleteask first (or take--yes) and refuseproduction. -
Fixed:
init --tempno longer fails with401when the saved login has expired; it creates the temporary project without it. -
npx scribase connect [tool...]writes the Scribase MCP server into every AI coding tool this machine has (Claude Code viaclaude mcp add, Cursor, VS Code, Codex, Windsurf, Zed) in one idempotent command.--dry-runshows what would change;--tool <id>(repeatable) configures exactly those tools regardless of detection. Never writes a token or secret — every client's own MCP OAuth flow runs on first use instead.
0.2.0 (2026-11-11)
npx scribase initis temporary-first: with no sign-in it creates a 72-hour temporary project and prints a claim link;--account,--watchandscribase doctorare new.npx scribase initprints the project URL and, for a temporary project, the claim link as soon as the backend is live, before the Vercel push and the client-library install.scribase add <capability>(analytics, deploy, flags, uptime, ai, billing, consent, …) wires one capability into the project and prints proof JSON of the first real event.scribase ota deploy|rollback|statusfor over-the-air updates, andscribase migrateruns the real plan/lint/apply route.initdetects SvelteKit and scaffolds its$env/static/publicclient; the generated plain-Node client auto-loads.env.- The default region id is
eu-frankfurt(it names the city, not a hosting provider). Projects created with the earlieroci-eu-frankfurt-1label keep working unchanged. prepublishOnlyrunsscripts/check-npm-tarball.mjs --gitleaks: the publish stops if the tarball holds an env file, a key file, a file outside the allow list, or a secret-looking string.