@deepdockai/cli 1.0.16 → 1.0.18

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.18
4
+
5
+ - A read or write on a record the customer's system restricts (for example a locked chart) answers `422 record_restricted`: a read returns no data instead of an empty answer, and a write writes nothing. The skill's error reference lists it, and the CLI exits with 2 for it.
6
+
7
+ ## 1.0.17
8
+
9
+ - A device whose identity is held by two PCs (a copied PC or VM snapshot) answers every call with `409 device_connected_twice`; nothing runs and the `Idempotency-Key` is free. The skill's error reference lists it, and the CLI exits with 2 for it.
10
+
3
11
  ## 1.0.16
4
12
 
5
13
  - A new organisation waits for Deepdock's approval before it can act as a partner: until then every call with its keys answers `403 partner_not_approved`. The skill's error reference lists it, and the CLI exits with 2 for it.
package/dist/deepdock.js CHANGED
@@ -10861,6 +10861,7 @@ var EXIT_CODES = {
10861
10861
  pairing_code_invalid: 2,
10862
10862
  other_partner_build: 2,
10863
10863
  device_learning_only: 2,
10864
+ device_connected_twice: 2,
10864
10865
  rate_limited: 2,
10865
10866
  target_rejected: 2,
10866
10867
  check_failed: 2,
@@ -10872,6 +10873,7 @@ var EXIT_CODES = {
10872
10873
  unknown_provider: 2,
10873
10874
  record_locked: 2,
10874
10875
  record_not_editable: 2,
10876
+ record_restricted: 2,
10875
10877
  payload_too_large: 2,
10876
10878
  device_offline: 3,
10877
10879
  device_syncing: 3,
@@ -11429,7 +11431,7 @@ import { spawn } from "node:child_process";
11429
11431
  import { homedir, hostname } from "node:os";
11430
11432
 
11431
11433
  // src/version.ts
11432
- var VERSION = "1.0.16";
11434
+ var VERSION = "1.0.18";
11433
11435
 
11434
11436
  // src/runtime.ts
11435
11437
  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.16",
3
+ "version": "1.0.18",
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",
@@ -37,6 +37,7 @@ dashboard-only.
37
37
  | `pairing_code_invalid` | 404 | pairing: the code is unknown, expired, replaced, used, or its device is offline | with a fresh code | "read the code off the device screen again" |
38
38
  | `other_partner_build` | 409 | pairing: the device runs another partner's client build | no | "this device is set up for another provider" |
39
39
  | `device_learning_only` | 409 | the PC runs the Deepdock client for learning only, which runs no actions; nothing was sent to it. Reads, writes and the systems list on it all answer this | no; it changes only when the Deepdock service is installed on that PC | "this PC needs the Deepdock service to run actions" |
40
+ | `device_connected_twice` | 409 | two PCs are connected with this device's identity (a copied PC or VM snapshot); nothing ran, so the `Idempotency-Key` is free | no; a person shuts the copy down, and calls work again about five minutes after only one PC is connected | "two PCs use this device; shut the copy down" |
40
41
 
41
42
  ## Input
42
43
 
@@ -49,6 +50,7 @@ dashboard-only.
49
50
  | `no_open_case` | 422 | the customer has no open case and the action never opens one. Nothing was written | no; open a case in the system, or name one with `caseId` | "open a case first" |
50
51
  | `record_locked` | 422 | the customer's system locks the record the write would change (for example one already billed on a case). Nothing was written | no | "this record is locked in the customer's system" |
51
52
  | `record_not_editable` | 422 | the record is not locked but is stored in a form this action cannot edit (for example a note it cannot add to without rewriting it). Nothing was written | no | "this record cannot be edited through Deepdock" |
53
+ | `record_restricted` | 422 | the customer's system restricts access to the record (for example a locked chart): a read returned no data, so an empty answer would be wrong, and a write wrote nothing | no; the practice lifts the restriction in its system | "access to this record is restricted in the customer's system" |
52
54
  | Other action-specific refusals | 422 | the action's OpenAPI description names each such code and when it fires. Nothing was written | no; fix the reference or input | the missing precondition in the user's words |
53
55
 
54
56
  ## Device and system availability
@@ -90,6 +92,7 @@ const REACTION: Record<string, Reaction> = {
90
92
  pairing_code_invalid: 'fix-input',
91
93
  other_partner_build: 'stop',
92
94
  device_learning_only: 'stop',
95
+ device_connected_twice: 'stop',
93
96
  invalid_input: 'fix-input',
94
97
  target_rejected: 'fix-input',
95
98
  unknown_author: 'fix-input',
@@ -97,6 +100,7 @@ const REACTION: Record<string, Reaction> = {
97
100
  unknown_provider: 'fix-input',
98
101
  record_locked: 'stop',
99
102
  record_not_editable: 'stop',
103
+ record_restricted: 'stop',
100
104
  payload_too_large: 'fix-code',
101
105
  access_outdated: 'wait-setup',
102
106
  access_missing: 'wait-setup',