@deepdockai/cli 1.0.9 → 1.0.11
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,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.11
|
|
4
|
+
|
|
5
|
+
- Every system of a device carries `accessLastCheckedAt`, in the device list and in `GET /v1/devices/{deviceId}/systems`. It is set when `access` is the last known value because the device could not read it (its database stopped or unreachable), and then says when the device last read it. It is `null` whenever the latest report read the access. The agent skill's TypeScript client types it, and its concepts reference explains it.
|
|
6
|
+
|
|
7
|
+
## 1.0.10
|
|
8
|
+
|
|
9
|
+
- `GET /v1/devices` and `GET /v1/incidents` page with a cursor: the answer is `{ items, nextCursor }`, with `limit` (1 to 500, default 100) and `cursor` query parameters. The agent skill's key and pairing reference says how to loop over the pages, and the pinned device API carries the new shape. The CLI lists devices through `/partner`, which is unchanged.
|
|
10
|
+
- The pinned device API documents the per-key `429 rate_limited` (600 calls and 120 writes per minute per API key, `Retry-After`).
|
|
11
|
+
|
|
3
12
|
## 1.0.9
|
|
4
13
|
|
|
5
14
|
- The CLI knows `device_learning_only` (exit code 2, refused): the PC runs the Deepdock client for learning only, which runs no actions, so action calls and the systems list on it are refused before anything is sent. It changes only when the Deepdock service is installed on that PC; retrying does not help. The skill's error reference lists 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.
|
|
11431
|
+
var VERSION = "1.0.11";
|
|
11432
11432
|
|
|
11433
11433
|
// src/runtime.ts
|
|
11434
11434
|
var DEFAULT_BASE_URL = "https://api.deepdock.ai";
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ curl -X POST "$BASE/v1/devices" \
|
|
|
87
87
|
(`id`, `label`, `hostname`, `os`, `clientVersion`, `status`, `lastSeenAt`, `claimedAt`, `outdated`, `systems`,
|
|
88
88
|
and `updateAvailable` when it runs an older build); `hostname`, `os` and `clientVersion` are `null`
|
|
89
89
|
until the device has reported them. Keep `id`: it is the `deviceId` of every later call.
|
|
90
|
-
`GET /v1/devices` lists your devices and `GET /v1/devices/{deviceId}` reads one
|
|
90
|
+
`GET /v1/devices` lists your devices a page at a time (`{ items, nextCursor }`; pass `nextCursor` back as `cursor` until it is `null`, `limit` 1 to 500, default 100), and `GET /v1/devices/{deviceId}` reads one; each device has the same shape. `GET /v1/incidents` pages the same way.
|
|
91
91
|
|
|
92
92
|
4. Release with `DELETE /v1/devices/{deviceId}`; the device then shows a new code.
|
|
93
93
|
|
|
@@ -79,6 +79,8 @@ export type Device = {
|
|
|
79
79
|
version: string | null
|
|
80
80
|
status: SystemStatus
|
|
81
81
|
access: SystemAccess
|
|
82
|
+
/** Set when `access` is the last known value (the device could not read it): when it last did. */
|
|
83
|
+
accessLastCheckedAt: string | null
|
|
82
84
|
reportedAt: string
|
|
83
85
|
writes: SystemWrites
|
|
84
86
|
}[]
|
|
@@ -96,6 +98,8 @@ export type DeviceSystem = {
|
|
|
96
98
|
version?: string
|
|
97
99
|
status: SystemStatus
|
|
98
100
|
access: SystemAccess
|
|
101
|
+
/** Set when `access` is the last known value (the device could not read it): when it last did. */
|
|
102
|
+
accessLastCheckedAt: string | null
|
|
99
103
|
actions: ActionState[]
|
|
100
104
|
}
|
|
101
105
|
|
|
@@ -53,6 +53,7 @@ has a display `label` (may be `null`), a `version` the device reported (may be a
|
|
|
53
53
|
| system `status` | `missing` | the program was not found where the device expects it | calls answer `system_unavailable`; contact the site and Deepdock |
|
|
54
54
|
| system `status` | `unknown` | the device could not tell whether the program runs (its probe failed or is unavailable on that PC) | do not read it as stopped; the device decides when a call arrives |
|
|
55
55
|
| system `access` | `ok`, `outdated`, `missing`, `not_set_up`, or `null` | the database access the device last reported (`null`: none known yet) | `outdated` refuses the actions that need the missing right with `access_outdated`, `missing` refuses every action with `access_missing`; the customer repeats "Erneut einrichten" in the Deepdock client, the incident closes by itself once `access` is `ok`, nothing to resume |
|
|
56
|
+
| system `accessLastCheckedAt` | ISO time or `null` | set when `access` is the last known value because the device could not read it (its database stopped or unreachable): when it last read it. `null` when the latest report read it | show the access as last known, with this time; nothing to do until the device reads it again |
|
|
56
57
|
| action state | `active` | the action can be called | normal |
|
|
57
58
|
| action state | `paused` | the action is paused with a `reason` and `pausedAt` | calls answer `action_paused`; show the feature as paused, poll `GET .../systems` at a low rate |
|
|
58
59
|
| pause `reason` | `structure_changed` | the system changed in a way the action depends on (for example a vendor update); Deepdock reviews and resumes | wait; nothing to do on your side |
|