@deepdockai/cli 1.6.2 → 1.7.0
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 +4 -0
- package/dist/deepdock.js +2 -1
- package/package.json +1 -1
- package/skill/references/errors.md +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
- The current device API: the error code list gains `document_unreadable` (422, exit 2: a download's stored document is in an archive the device cannot read; a retry will not help). The action index's entry for an action that takes a file now carries `upload` (`field`, `maxBytes`, optional `mediaTypes` and `optional`). The 413 description names the action's file limit next to the 1 MiB body limit.
|
|
6
|
+
|
|
3
7
|
## 1.6.2
|
|
4
8
|
|
|
5
9
|
- The skill's access-setup reference describes the setup without naming specific systems. No command, field or error code changed.
|
package/dist/deepdock.js
CHANGED
|
@@ -10875,6 +10875,7 @@ var EXIT_CODES = {
|
|
|
10875
10875
|
record_not_editable: 2,
|
|
10876
10876
|
record_restricted: 2,
|
|
10877
10877
|
too_many_rows: 2,
|
|
10878
|
+
document_unreadable: 2,
|
|
10878
10879
|
payload_too_large: 2,
|
|
10879
10880
|
version_not_covered: 2,
|
|
10880
10881
|
device_offline: 3,
|
|
@@ -11443,7 +11444,7 @@ import { spawn } from "node:child_process";
|
|
|
11443
11444
|
import { homedir, hostname } from "node:os";
|
|
11444
11445
|
|
|
11445
11446
|
// src/version.ts
|
|
11446
|
-
var VERSION = "1.
|
|
11447
|
+
var VERSION = "1.7.0";
|
|
11447
11448
|
|
|
11448
11449
|
// src/runtime.ts
|
|
11449
11450
|
var DEFAULT_BASE_URL = "https://api.deepdock.ai";
|
package/package.json
CHANGED
|
@@ -55,6 +55,7 @@ with the **same** `Idempotency-Key`); **Show** says what the end user should see
|
|
|
55
55
|
| `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" |
|
|
56
56
|
| `record_restricted` | 422 | the customer's system restricts access to the record (for example a locked record): a read returned no data, so an empty answer would be wrong, and a write wrote nothing | no; the customer lifts the restriction in its system | "access to this record is restricted in the customer's system" |
|
|
57
57
|
| `too_many_rows` | 409 | the inputs match more records than this write may change; it was rolled back and nothing changed | no; narrow the inputs to the record you mean | "that matches more than one record; please be more specific" |
|
|
58
|
+
| `document_unreadable` | 422 | a download whose stored document is packed in an archive the device cannot read (damaged, cut or not of the declared kind). Nothing was served, never a partial file | no; the same document reads the same way again | "this document cannot be opened from the customer's system" and offer support |
|
|
58
59
|
| Action-specific refusals | 422 | an action can refuse with a code of its own (for example `unknown_author` when the write names a user the system does not list, or `no_matching_period`); its 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 |
|
|
59
60
|
|
|
60
61
|
## Device and system availability
|
|
@@ -108,6 +109,7 @@ const REACTION: Record<string, Reaction> = {
|
|
|
108
109
|
record_not_editable: 'stop',
|
|
109
110
|
record_restricted: 'stop',
|
|
110
111
|
too_many_rows: 'fix-input',
|
|
112
|
+
document_unreadable: 'stop',
|
|
111
113
|
payload_too_large: 'fix-code',
|
|
112
114
|
access_outdated: 'wait-setup',
|
|
113
115
|
access_missing: 'wait-setup',
|