diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dcaf79..50617eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,22 @@ From 0.1.1, each release is published to npm and is also a tarball on `pkg.gatew mirror. The mirror isn't a registry, so nothing updates an address there for you: change the address to move to a new version. See [Install](README.md#install). +## [0.2.0] - 2026-12-05 + +### Added + +- Deploy, check and update a self-hosted Gateweave ID instance with `deploy id`, `doctor id` and + `update id`. +- Connect a self-hosted ID and Track instance with `connect id track`. The command shows its plan + before configuring sign-in. In a dedicated Cloudflare account, a second run reused the client + registration without redeploying a Worker. + +### Fixed + +- Stop waiting when a child process such as Wrangler, git or pnpm times out. +- Validate deployment inputs, mask sensitive diagnostic output and check resource creation records + against Wrangler output captured from real deployments. + ## [0.1.1] - 2026-11-29 The package is published to npm, there is a command to update a Track deployment, `deploy track` diff --git a/README.md b/README.md index 5a26d2e..7567553 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ One command line for [Gateweave](https://gateweave.com): deploy Track or ID into your own Cloudflare account and check the deployment. -**Status: early.** `gateweave deploy`, `gateweave doctor` and `gateweave update` for Track and ID -are tested against a fake Wrangler, git and pnpm. `deploy track` and `doctor track` were also -rehearsed in a real, empty Cloudflare account. `gateweave connect id track` is tested against the -same fakes and its live rehearsal is pending. Run the CLI with `npx gateweave` +**Status: early.** The automated tests fake Wrangler, git and pnpm. In a separate Cloudflare +rehearsal account, we deployed Track and ID and ran `gateweave connect id track` twice on Windows. +The second run reused the existing registration and left the Worker version unchanged. The +rehearsal verified Track's sign-in button and ID's issuer. Run the CLI with `npx gateweave` (see [Install](#install)). ## Commands diff --git a/packages/cli/package.json b/packages/cli/package.json index 3c51fcb..2530511 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "gateweave", - "version": "0.1.1", + "version": "0.2.0", "description": "Deploy Gateweave products into your own Cloudflare account.", "license": "AGPL-3.0-only", "repository": { diff --git a/packages/cli/scripts/release.mjs b/packages/cli/scripts/release.mjs index b164c65..183232e 100644 --- a/packages/cli/scripts/release.mjs +++ b/packages/cli/scripts/release.mjs @@ -388,12 +388,37 @@ async function main() { env, }); if (said !== version) stop(`The packed command says it is ${said}, not ${version}.`); - run(process.execPath, [npx, "--yes", spec, "deploy", "track", "--help"], { - cwd: empty, - quiet: true, - env, - }); - console.log(`Ran from an empty folder: --version says ${said}, and deploy track --help works.`); + for (const command of ["deploy track", "deploy id", "update track", "connect id track"]) { + const help = spawnSync( + process.execPath, + [npx, "--yes", spec, ...command.split(" "), "--help"], + { + cwd: empty, + env, + encoding: "utf8", + }, + ); + if (help.status !== 0 || !help.stderr?.startsWith(`Usage: gateweave ${command} [options]`)) { + stop(`The packed command did not show help for ${command}.`); + } + } + const invalid = spawnSync( + process.execPath, + [npx, "--yes", spec, "connect", "id", "track", "--json", "--not-a-gateweave-option"], + { cwd: empty, env, encoding: "utf8" }, + ); + let failure; + try { + failure = JSON.parse(invalid.stdout ?? ""); + } catch { + stop("The packed command did not return JSON for an invalid option."); + } + if (invalid.status !== 2 || failure?.ok !== false || failure.code !== "usage") { + stop("The packed command did not report an invalid option as a usage error."); + } + console.log( + `Ran from an empty folder: version ${said}, command-specific help and JSON usage errors work.`, + ); const sum = sha256(bytes); const integrity = `sha512-${createHash("sha512").update(bytes).digest("base64")}`;