@deepdockai/cli 1.0.18 → 1.0.19

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.19
4
+
5
+ - A device answer Deepdock cannot read answers `502 device_answer_unreadable` instead of `500 internal_error`, on action calls and the systems list; the body carries `requestId` for support. Retrying does not help until the Deepdock client on that PC is updated; after a write, read the record back before writing again, since the device may have applied it. The skill's error reference lists it, and the CLI exits with 2 for it.
6
+
3
7
  ## 1.0.18
4
8
 
5
9
  - 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.
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_answer_unreadable: 2,
10864
10865
  device_connected_twice: 2,
10865
10866
  rate_limited: 2,
10866
10867
  target_rejected: 2,
@@ -11431,7 +11432,7 @@ import { spawn } from "node:child_process";
11431
11432
  import { homedir, hostname } from "node:os";
11432
11433
 
11433
11434
  // src/version.ts
11434
- var VERSION = "1.0.18";
11435
+ var VERSION = "1.0.19";
11435
11436
 
11436
11437
  // src/runtime.ts
11437
11438
  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.18",
3
+ "version": "1.0.19",
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",
@@ -38,6 +38,7 @@ dashboard-only.
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
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" |
41
+ | `device_answer_unreadable` | 502 | the device sent an answer Deepdock cannot read (for example from a client build with a fault); on a write the device may have applied it. The body carries `requestId` for support | no, and not with the same `Idempotency-Key` either; it changes only when the Deepdock client on that PC is updated. After a write, read the record back before writing again | "the connected PC sent an answer that could not be read; contact Deepdock with the request id" |
41
42
 
42
43
  ## Input
43
44
 
@@ -93,6 +94,7 @@ const REACTION: Record<string, Reaction> = {
93
94
  other_partner_build: 'stop',
94
95
  device_learning_only: 'stop',
95
96
  device_connected_twice: 'stop',
97
+ device_answer_unreadable: 'stop',
96
98
  invalid_input: 'fix-input',
97
99
  target_rejected: 'fix-input',
98
100
  unknown_author: 'fix-input',