@deepdockai/cli 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.28
4
+
5
+ - The device API's `Error.code` list no longer names `organization_required`, `forbidden`, `conflict` and `already_member`: only the dashboard tree (`/partner`) answers them, never `/v1`. The CLI still meets them on its own `/partner` calls and keeps their exit codes (`organization_required` 1, the other three 2), now from a list of its own. Nothing changes for a script that reads `--json` or the exit code.
6
+
3
7
  ## 1.0.27
4
8
 
5
9
  - An update is called with `PATCH` again; a read and a create stay `POST`. All three take a flat JSON body and nothing in the URL. The method must be the action's own: any other answers `405 invalid_request` with `Allow` naming the one method (`POST` or `PATCH`), so a `POST` to an update is refused and does nothing. A query string on an action path is still `400 invalid_request`. A write still needs an `Idempotency-Key`; a read ignores it.
package/dist/deepdock.js CHANGED
@@ -11440,7 +11440,7 @@ import { spawn } from "node:child_process";
11440
11440
  import { homedir, hostname } from "node:os";
11441
11441
 
11442
11442
  // src/version.ts
11443
- var VERSION = "1.0.27";
11443
+ var VERSION = "1.0.28";
11444
11444
 
11445
11445
  // src/runtime.ts
11446
11446
  var DEFAULT_BASE_URL = "https://api.deepdock.ai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepdockai/cli",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Deepdock partner CLI: pair devices, see systems and actions, create the API key your code runs them with.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,9 +24,9 @@ with the **same** `Idempotency-Key`); **Show** says what the end user should see
24
24
  | `not_found` | 404 | no such route; an update whose id matches no record; a write naming a record that does not exist or belongs to another one | no | "record not found" when it is a record; otherwise a bug |
25
25
  | `rate_limited` | 429 | more than 600 calls, or more than 120 writes (counted in both), with this key in a minute; or more than 5 failed pairing claims in 60 s | yes, after `Retry-After: 60` (`retryAfterSeconds: 60` in the body); a write keeps its key. The pairing claim answer has neither: wait up to a minute | "try again in a minute" |
26
26
 
27
- Codes your `/v1` code never receives, listed so the enum is complete: `organization_required`
28
- (403), `forbidden` (403), `conflict` (409), `already_member` (409) and `client_outdated` (400) are
29
- dashboard-only.
27
+ `client_outdated` (400) is in the enum but answered only to the Deepdock CLI (by its
28
+ `X-Deepdock-Cli` version), so your own `/v1` code never receives it. The dashboard tree's own codes
29
+ (`organization_required`, `forbidden`, `conflict`, `already_member`) are not in the `/v1` enum.
30
30
 
31
31
  ## Device, system and action resolution
32
32