@deepdockai/cli 1.8.0 → 1.8.1
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.8.1
|
|
4
|
+
|
|
5
|
+
- The current device API: a device's `hostname` and `os` are always strings now (never `null`), in the pinned device API, the bundled TypeScript client's `Device` type and the keys reference. A device registered before both were required reads `unknown`.
|
|
6
|
+
|
|
3
7
|
## 1.8.0
|
|
4
8
|
|
|
5
9
|
- The current device API: the error code list gains `upload_incomplete` (400, exit 3: an upload broke off before the device had the whole file; this call wrote nothing, so send it again with the same file and the same `Idempotency-Key`).
|
package/dist/deepdock.js
CHANGED
|
@@ -11445,7 +11445,7 @@ import { spawn } from "node:child_process";
|
|
|
11445
11445
|
import { homedir, hostname } from "node:os";
|
|
11446
11446
|
|
|
11447
11447
|
// src/version.ts
|
|
11448
|
-
var VERSION = "1.8.
|
|
11448
|
+
var VERSION = "1.8.1";
|
|
11449
11449
|
|
|
11450
11450
|
// src/runtime.ts
|
|
11451
11451
|
var DEFAULT_BASE_URL = "https://api.deepdock.ai";
|
package/package.json
CHANGED
|
@@ -86,8 +86,8 @@ curl -X POST "$BASE/v1/devices" \
|
|
|
86
86
|
|
|
87
87
|
`label` is optional, 1 to 100 characters. The device must be online. Answer: `201` with the device
|
|
88
88
|
(`id`, `label`, `hostname`, `os`, `clientVersion`, `status`, `lastSeenAt`, `lastKnownAt`, `claimedAt`, `outdated`, `systems`,
|
|
89
|
-
and `updateAvailable` when it runs an older build); `
|
|
90
|
-
until the device has reported
|
|
89
|
+
and `updateAvailable` when it runs an older build); `clientVersion` is `null`
|
|
90
|
+
until the device has reported it. Keep `id`: it is the `deviceId` of every later call.
|
|
91
91
|
`GET /v1/devices` lists your devices a page at a time (`{ data: [...], 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.
|
|
92
92
|
|
|
93
93
|
4. Release with `DELETE /v1/devices/{deviceId}`; the device then shows a new code.
|
|
@@ -72,8 +72,8 @@ export type VersionIssue = 'not_installed' | 'not_found' | 'unreadable'
|
|
|
72
72
|
export type Device = {
|
|
73
73
|
id: string
|
|
74
74
|
label: string | null
|
|
75
|
-
hostname: string
|
|
76
|
-
os: string
|
|
75
|
+
hostname: string
|
|
76
|
+
os: string
|
|
77
77
|
clientVersion: string | null
|
|
78
78
|
status: 'connected' | 'offline' | 'inactive'
|
|
79
79
|
lastSeenAt: string | null
|