Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
37 changes: 31 additions & 6 deletions packages/cli/scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`;
Expand Down
Loading