@deepdockai/cli 1.6.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ## 1.6.2
8
+
9
+ - The skill's access-setup reference describes the setup without naming specific systems. No command, field or error code changed.
10
+
3
11
  ## 1.6.1
4
12
 
5
13
  - The bundled skill covers pairing a test device and setting up its database access, by the client's window or from an administrator shell on the partner's own test PC (`--admin pairing-code`, `--admin consent`, `--admin setup`, with their exit codes). The recipe gains a step that sets up the access and polls until the system's `access` is `ok`, and the skill names each client button in German and English ("Zugang einrichten" Set up access, "Erneut einrichten" Set up again, "Zugang erneut einrichten" Set up access again, "Anmeldung erneuern" Renew sign-in). 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.6.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepdockai/cli",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
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",
@@ -132,15 +132,14 @@ a person there reads the access notice with the customer.
132
132
  has not received its targets yet, so wait a minute; if it persists, check the system name
133
133
  against `deepdock systems list`. Exit 7 with `The stored targets cannot be read`: stop and
134
134
  tell the human.
135
- 2. Show the human the `notice` (or `noticeEn`) and say that the database may restart (always for
136
- MEDICAL OFFICE; for SQL Server when your account is no SQL administrator). **Ask the human to
137
- close the program on every workstation first** and wait for their yes.
135
+ 2. Show the human the `notice` (or `noticeEn`) and say that the database may restart. **Ask the
136
+ human to close the program on every workstation first** and wait for their yes.
138
137
  3. `--admin setup <system> <hash>`. Exit 6: the access changed since step 1, run consent again.
139
138
  Exit 3: refused, the message names why. Then poll as in the recipe: every 10 seconds for at most
140
139
  1 minute from the exit 0, until the system's `access` is `ok` (`deepdock devices list --json`),
141
140
  and ask the human what the client window shows on timeout. Then
142
141
  `deepdock actions list <device> <system> --json`.
143
142
 
144
- A system that needs a login (an HTTP system such as T2med) still needs the client's window for that
143
+ A system that signs in over HTTP still needs the client's window for that
145
144
  login: the credential is never accepted on a command line.
146
145
 
@@ -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',