diff --git a/.changeset/cli-session-user-agent.md b/.changeset/cli-session-user-agent.md deleted file mode 100644 index cd0c22b..0000000 --- a/.changeset/cli-session-user-agent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@buildinternet/uploads": patch ---- - -Device login (`uploads login`) now sends a recognizable CLI User-Agent so the web account page can tell when you've already signed in from the terminal. diff --git a/.changeset/embed-url-dual-host.md b/.changeset/embed-url-dual-host.md deleted file mode 100644 index 93e9b11..0000000 --- a/.changeset/embed-url-dual-host.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@buildinternet/uploads": minor ---- - -Return `embedUrl` alongside durable `url` for shared dual-host CDN (GitHub Camo–friendly). CLI/MCP markdown and managed attachment comments prefer the embed host; override with `UPLOADS_EMBED_PUBLIC_BASE_URL`. diff --git a/.changeset/file-metadata.md b/.changeset/file-metadata.md deleted file mode 100644 index 6149708..0000000 --- a/.changeset/file-metadata.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@buildinternet/uploads": minor ---- - -Add queryable custom metadata to the CLI: `put --meta k=v` (repeatable), `attach` -now writes `gh.repo`/`gh.kind`/`gh.number`/`gh.ref` automatically (plus its own -`--meta` extras), new `meta get`/`meta set` commands, `list --meta k=v` and the -`find k=v...` alias for filtering objects by metadata. - -MCP parity: the local stdio MCP's `put`/`attach` tools gain a `metadata` param -(same gh.\* auto-injection as `attach`), and two new tools — `set_metadata` -(merge-set/delete) and `find_files` (metadata filter) — mirror the CLI's -`meta set`/`find`. The hosted MCP's `put` tool also gains a `metadata` param. - -`meta get`/`meta set` now hit `GET /v1/:workspace/files/:key?metadata=1` and -`PATCH /v1/:workspace/files/:key` instead of a `/:key/metadata` sibling route -— the original suffix route 404'd on real (slash-containing) keys once -deployed. diff --git a/.changeset/uploads-agent-dx.md b/.changeset/uploads-agent-dx.md deleted file mode 100644 index fd253d3..0000000 --- a/.changeset/uploads-agent-dx.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@buildinternet/uploads": minor ---- - -CLI onboarding and agent-friendly put: - -- **`uploads install`** — short progress, no child stdout unless `--verbose`/failure; - non-interactive skills (`-g -y -a '*'`); success next-steps; MCP without a token is - skipped with a login nudge (skill still installs). -- **Missing token** — onboarding copy (no `error:` prefix); exit non-zero; `--json` - keeps `MISSING_TOKEN`. Rejected tokens stay `UNAUTHORIZED` with a re-login hint. -- **`put --name `** — clean key leaf on the stable `--pr`/default path. -- **`put --dry-run`** — resolve key + public URL without writing (API `?dryRun=1`). -- **Scripted failures** — `--format json|url|markdown` also print on stdout. -- **`FILE_NOT_FOUND`** — distinct code (exit 2) for a missing local file. diff --git a/.changeset/workspace-admin-invite.md b/.changeset/workspace-admin-invite.md deleted file mode 100644 index 4242709..0000000 --- a/.changeset/workspace-admin-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@buildinternet/uploads": minor ---- - -Add `uploads invite create` so workspace admins/owners can invite teammates by email via device login (no `ADMIN_TOKEN`). Invitees accept in the browser and run `uploads login`. diff --git a/packages/uploads/CHANGELOG.md b/packages/uploads/CHANGELOG.md index dc04973..6ac1ef1 100644 --- a/packages/uploads/CHANGELOG.md +++ b/packages/uploads/CHANGELOG.md @@ -1,5 +1,43 @@ # @buildinternet/uploads +## 0.8.0 + +### Minor Changes + +- c5b36a3: Return `embedUrl` alongside durable `url` for shared dual-host CDN (GitHub Camo–friendly). CLI/MCP markdown and managed attachment comments prefer the embed host; override with `UPLOADS_EMBED_PUBLIC_BASE_URL`. +- 46b6860: Add queryable custom metadata to the CLI: `put --meta k=v` (repeatable), `attach` + now writes `gh.repo`/`gh.kind`/`gh.number`/`gh.ref` automatically (plus its own + `--meta` extras), new `meta get`/`meta set` commands, `list --meta k=v` and the + `find k=v...` alias for filtering objects by metadata. + + MCP parity: the local stdio MCP's `put`/`attach` tools gain a `metadata` param + (same gh.\* auto-injection as `attach`), and two new tools — `set_metadata` + (merge-set/delete) and `find_files` (metadata filter) — mirror the CLI's + `meta set`/`find`. The hosted MCP's `put` tool also gains a `metadata` param. + + `meta get`/`meta set` now hit `GET /v1/:workspace/files/:key?metadata=1` and + `PATCH /v1/:workspace/files/:key` instead of a `/:key/metadata` sibling route + — the original suffix route 404'd on real (slash-containing) keys once + deployed. + +- b1c87d8: CLI onboarding and agent-friendly put: + + - **`uploads install`** — short progress, no child stdout unless `--verbose`/failure; + non-interactive skills (`-g -y -a '*'`); success next-steps; MCP without a token is + skipped with a login nudge (skill still installs). + - **Missing token** — onboarding copy (no `error:` prefix); exit non-zero; `--json` + keeps `MISSING_TOKEN`. Rejected tokens stay `UNAUTHORIZED` with a re-login hint. + - **`put --name `** — clean key leaf on the stable `--pr`/default path. + - **`put --dry-run`** — resolve key + public URL without writing (API `?dryRun=1`). + - **Scripted failures** — `--format json|url|markdown` also print on stdout. + - **`FILE_NOT_FOUND`** — distinct code (exit 2) for a missing local file. + +- 1c5a38b: Add `uploads invite create` so workspace admins/owners can invite teammates by email via device login (no `ADMIN_TOKEN`). Invitees accept in the browser and run `uploads login`. + +### Patch Changes + +- 3f5c7e1: Device login (`uploads login`) now sends a recognizable CLI User-Agent so the web account page can tell when you've already signed in from the terminal. + ## 0.7.0 ### Minor Changes diff --git a/packages/uploads/package.json b/packages/uploads/package.json index 8ce69f2..47a9560 100644 --- a/packages/uploads/package.json +++ b/packages/uploads/package.json @@ -1,6 +1,6 @@ { "name": "@buildinternet/uploads", - "version": "0.7.0", + "version": "0.8.0", "description": "CLI and client for uploads.sh — workspace-scoped image hosting for GitHub embeds", "type": "module", "sideEffects": false,