@deepdockai/cli 2.0.0 → 2.0.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,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
- **Breaking for code that uses the bundled clients:** The device field `claimedAt` is now
|
|
6
|
+
`pairedAt`. Update code that reads the field after copying the skill again.
|
|
7
|
+
- The API references and pinned OpenAPI document use `pairedAt` for the device timestamp.
|
|
8
|
+
CLI behaviour stays the same.
|
|
9
|
+
|
|
3
10
|
## 2.0.0
|
|
4
11
|
|
|
5
12
|
- **Breaking:** CLI device records in `--json` output now use `pairedAt` in place of
|
package/README.md
CHANGED
|
@@ -157,10 +157,8 @@ On a terminal you get tables and plain sentences. When stdout is not a terminal,
|
|
|
157
157
|
`systems openapi` is the one exception off a terminal: it prints the OpenAPI document itself, so
|
|
158
158
|
`deepdock systems openapi <system> > openapi.json` saves a document a generator can read (`--json`
|
|
159
159
|
gives the envelope). For list and show commands, `data` generally passes through the API response.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Until the API serves `pairedAt`, device JSON from direct API calls still uses `claimedAt`,
|
|
163
|
-
as shown in the API reference and bundled clients.
|
|
160
|
+
The API and the CLI's `devices list`, `devices pair` and `devices rename` commands use
|
|
161
|
+
`pairedAt` in device JSON. The CLI still accepts the old field name from an older API.
|
|
164
162
|
`auth`, `orgs select`, `keys create`, `webhooks secret` and `webhooks rotate-secret` build `data`
|
|
165
163
|
from named fields. A failure is one document on stderr, `{ "error": { "code", "message" }, "meta": { "hint" } }`,
|
|
166
164
|
with the API's error object unchanged. Switch on `code` or on the exit code, never on `message`.
|
package/dist/deepdock.js
CHANGED
|
@@ -11490,7 +11490,7 @@ import { spawn } from "node:child_process";
|
|
|
11490
11490
|
import { homedir, hostname } from "node:os";
|
|
11491
11491
|
|
|
11492
11492
|
// src/version.ts
|
|
11493
|
-
var VERSION = "2.0.
|
|
11493
|
+
var VERSION = "2.0.1";
|
|
11494
11494
|
|
|
11495
11495
|
// src/runtime.ts
|
|
11496
11496
|
var DEFAULT_BASE_URL = "https://api.deepdock.ai";
|
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@ curl -X POST "$BASE/v1/devices" \
|
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
`label` is optional, 1 to 100 characters. The device must be online. Answer: `201` with the device
|
|
88
|
-
(`id`, `label`, `hostname`, `os`, `clientVersion`, `status`, `lastSeenAt`, `lastKnownAt`, `
|
|
88
|
+
(`id`, `label`, `hostname`, `os`, `clientVersion`, `status`, `lastSeenAt`, `lastKnownAt`, `pairedAt`, `outdated`, `systems`,
|
|
89
89
|
and `updateAvailable` when it runs an older build); `clientVersion` is `null`
|
|
90
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.
|
package/skill/references/cli.md
CHANGED
|
@@ -74,11 +74,9 @@ stdout:
|
|
|
74
74
|
{ "data": <the command's result>, "meta": { "org": { "slug": "…", "name": "…" }, "requestId": "…" } }
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
`data` generally passes through the API response.
|
|
78
|
-
`devices pair` and `devices rename` use `pairedAt` in JSON.
|
|
79
|
-
|
|
80
|
-
Until the API serves `pairedAt`, device JSON from direct API calls still uses `claimedAt`,
|
|
81
|
-
as shown in the API reference and bundled clients. `meta` holds the
|
|
77
|
+
`data` generally passes through the API response. The API and the CLI's `devices list`,
|
|
78
|
+
`devices pair` and `devices rename` commands use `pairedAt` in device JSON. The CLI still
|
|
79
|
+
accepts the old field name from an older API. `meta` holds the
|
|
82
80
|
organisation the command acted in, the request id, and, where it applies, `written` (`{ file,
|
|
83
81
|
name }` from `keys create`) and `pending` (from `--no-wait`). `keys create` builds its `data` from
|
|
84
82
|
id, name, prefix, createdAt and expiresAt; the key value is in neither stream. `webhooks secret` and
|
|
@@ -108,7 +108,7 @@ export type Device = {
|
|
|
108
108
|
lastSeenAt: string | null
|
|
109
109
|
/** While the device is not connected: when it last reported. `null` while connected. */
|
|
110
110
|
lastKnownAt: string | null
|
|
111
|
-
|
|
111
|
+
pairedAt: string | null
|
|
112
112
|
/** True when an action assigned to you needs a newer client: that action answers device_outdated. */
|
|
113
113
|
outdated: boolean
|
|
114
114
|
updateAvailable?: string
|
|
@@ -24,9 +24,8 @@ Details: [auth-and-keys.md](auth-and-keys.md).
|
|
|
24
24
|
The Deepdock client installed on the customer's Windows PC next to their system. It connects
|
|
25
25
|
outwards to Deepdock; nothing in the customer's network is opened to the internet. A device is
|
|
26
26
|
identified by a UUID (`id`), carries a `label`, `hostname`, `os`, `clientVersion`, `status`
|
|
27
|
-
(`connected`, `offline` or `inactive`), `lastSeenAt`, `lastKnownAt`, `
|
|
28
|
-
`
|
|
29
|
-
assigned action needs a newer client: it answers `device_outdated`) and the `systems` it reported (each with a `versionIssue` when `version` is missing, `blockedActions` when this device's client cannot run some actions yet: those answer `device_outdated` until the client updates, the others keep running, `execution` while the system is stopped, and `actions`: whether each of your actions on that system would be admitted now). An action whose system runs a program version Deepdock has not yet approved for it answers `version_not_covered`; nothing is sent to the system, and it works once Deepdock has approved that version.
|
|
27
|
+
(`connected`, `offline` or `inactive`), `lastSeenAt`, `lastKnownAt`, `pairedAt` (may be `null`),
|
|
28
|
+
`outdated` (an assigned action needs a newer client: it answers `device_outdated`) and the `systems` it reported (each with a `versionIssue` when `version` is missing, `blockedActions` when this device's client cannot run some actions yet: those answer `device_outdated` until the client updates, the others keep running, `execution` while the system is stopped, and `actions`: whether each of your actions on that system would be admitted now). An action whose system runs a program version Deepdock has not yet approved for it answers `version_not_covered`; nothing is sent to the system, and it works once Deepdock has approved that version.
|
|
30
29
|
|
|
31
30
|
- **Pair**: take a device into your organisation with the 6-character code it shows while unpaired.
|
|
32
31
|
- **Release**: `DELETE /v1/devices/{deviceId}` gives the device back; it shows a new code.
|