@deepdockai/cli 1.0.14 → 1.0.15

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.15
4
+
5
+ - `device_offline` also covers a call cut off by a Deepdock restart or deploy (retry a write with the same key). `temporarily_unavailable` is also sent, with `Retry-After: 5`, when Deepdock cannot reach its database. The skill's error reference, idempotency and concepts pages say so.
6
+
3
7
  ## 1.0.14
4
8
 
5
9
  - A system's `access` can be `password_missing`: the database account exists, but its stored password is not on the PC. Like `missing`, every action of the system is refused with `access_missing` (its message names the password) and the customer repeats "Erneut einrichten" in the Deepdock client. The agent skill's TypeScript client types it, and its concepts reference explains it.
package/dist/deepdock.js CHANGED
@@ -11428,7 +11428,7 @@ import { spawn } from "node:child_process";
11428
11428
  import { homedir, hostname } from "node:os";
11429
11429
 
11430
11430
  // src/version.ts
11431
- var VERSION = "1.0.14";
11431
+ var VERSION = "1.0.15";
11432
11432
 
11433
11433
  // src/runtime.ts
11434
11434
  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.14",
3
+ "version": "1.0.15",
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",
@@ -46,7 +46,7 @@ has a display `label` (may be `null`), a `version` the device reported (may be a
46
46
  | Field | Value | Meaning | What to do |
47
47
  |---|---|---|---|
48
48
  | device `status` | `connected` | the device is online and can run actions | normal |
49
- | device `status` | `offline` | the device is not connected right now (PC off, no network) | calls answer `device_offline`; retry later, show "offline" |
49
+ | device `status` | `offline` | the device is not connected right now (PC off, no network) | calls answer `device_offline` (also while `connected`, if a Deepdock restart cuts a call off); retry later, show "offline" |
50
50
  | device `status` | `inactive` | not connected for 7 days; still paired | as offline; check with the site whether the PC still exists |
51
51
  | device `lastKnownAt` | ISO time or `null` | the time of the device's last report while it is not connected. `null` while it is connected | show the last known state with this time; it may be out of date |
52
52
  | system `status` | `running` | the customer's program is running on the device | normal |
@@ -54,14 +54,14 @@ dashboard-only.
54
54
 
55
55
  | Code | Status | Meaning | Retry | Show |
56
56
  |---|---|---|---|---|
57
- | `device_offline` | 503 | the device is not connected, is shutting down, or did not answer within 20 s. **A write may still have landed** | yes, with backoff (seconds to minutes); a write only with the same key | "the customer PC is offline; we will retry" |
57
+ | `device_offline` | 503 | the device is not connected, is shutting down, did not answer within 20 s, or the call was cut off inside Deepdock by a restart or deploy. **A write may still have landed** | yes, with backoff (seconds to minutes); a write only with the same key | "the customer PC is offline; we will retry" |
58
58
  | `device_syncing` | 503 | the device has not reported its Deepdock client yet (just paired, or its report did not come through); Deepdock asks it again. Nothing was written | yes, after `Retry-After` (5 s); a write with the same key | "the customer PC is connecting; retrying" |
59
59
  | `device_outdated` | 409 | the device's Deepdock client is too old for this call. It updates itself when a newer version is released for your organisation, once nobody is signed in on the PC. Nothing was written | after the update (`outdated` on `GET /v1/devices/{deviceId}` turns `false`); retrying before it gets the same answer. A write keeps its key | "the Deepdock client on the customer PC needs an update" |
60
60
  | `system_version_unverified` | 409 | a write on a system whose vendor version Deepdock has not verified yet. Nothing was sent to the device; reads still work. `error.version` is the version the system last reported and `error.reason` is `unverified_version`, or `unparseable` when that version is not dotted digits | `unverified_version`: after Deepdock has verified that version (`writes` on the system in `GET /v1/devices/{deviceId}` turns `verified`); retrying before it gets the same answer. `unparseable`: retrying does not help, contact Deepdock; only a different reported version changes it. A write keeps its key | "the customer's system was updated to a version Deepdock has not yet verified; changes will work once it has" |
61
61
  | `action_paused` | 503 | the action is paused on the device (`GET .../systems` shows `reason`); only Deepdock resumes it | later, when `GET .../systems` shows it active; do not loop | "this feature is paused while Deepdock checks the customer system" |
62
62
  | `system_unavailable` | 503 | the customer's program is stopped or missing on the device | later; often resolves when the customer restarts the program | "the customer's software is not running" |
63
63
  | `target_busy` | 503 | the customer's system is busy or unreachable | yes, with backoff | "the customer's system is busy; retrying" |
64
- | `temporarily_unavailable` | 503 | Deepdock could not check the key | yes, with backoff | "temporary problem; retrying" |
64
+ | `temporarily_unavailable` | 503 | Deepdock could not check the key or reach its own database (sent with `Retry-After: 5`) | yes, with backoff | "temporary problem; retrying" |
65
65
 
66
66
  ## Write outcomes
67
67
 
@@ -38,7 +38,7 @@ example to avoid double-logging.
38
38
 
39
39
  ### `503 device_offline` on a write
40
40
 
41
- The device did not answer within 20 seconds, or was not connected. **The write may still have
41
+ The device did not answer within 20 seconds, was not connected, or the call was cut off inside Deepdock by a restart or deploy. **The write may still have
42
42
  landed.** Retry with the **same key**: you get either the stored result (replayed) or a fresh run,
43
43
  never two writes. Back off between retries (seconds, then minutes); a device can be off for hours,
44
44
  so the retry runs from the persisted pending write in a job or queue, not inside the request that