@dxos/cli 0.4.8-main.c4e8b01 → 0.4.8-main.c67d72c

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.
@@ -1,14 +1,15 @@
1
- import { type Device } from '@dxos/client/halo';
1
+ import { Device } from '@dxos/client/halo';
2
2
  export declare const mapDevices: (devices: Device[], truncateKeys?: boolean) => {
3
3
  label: string | undefined;
4
4
  type: string;
5
5
  key: string;
6
- kind: import("@dxos/client/halo").DeviceKind;
6
+ kind: string;
7
7
  platform: string | undefined;
8
8
  platformVersion: string | undefined;
9
9
  architecture: string | undefined;
10
10
  os: string | undefined;
11
11
  osVersion: string | undefined;
12
+ presence: string;
12
13
  }[];
13
14
  export declare const printDevices: (devices: Device[], flags?: {}) => void;
14
15
  //# sourceMappingURL=devices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../src/util/devices.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhD,eAAO,MAAM,UAAU,YAAa,MAAM,EAAE;;;;;;;;;;GAY3C,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,MAAM,EAAE,qBAkB7C,CAAC"}
1
+ {"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../src/util/devices.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAA0B,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,UAAU,YAAa,MAAM,EAAE;;;;;;;;;;;GAa3C,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,MAAM,EAAE,qBAmB7C,CAAC"}
@@ -5,30 +5,32 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.printDevices = exports.mapDevices = void 0;
7
7
  const core_1 = require("@oclif/core");
8
- const credentials_1 = require("@dxos/protocols/proto/dxos/halo/credentials");
8
+ const halo_1 = require("@dxos/client/halo");
9
9
  const types_1 = require("./types");
10
10
  const mapDevices = (devices, truncateKeys = false) => {
11
11
  return devices.map((device) => {
12
12
  var _a, _b, _c, _d, _e, _f, _g, _h;
13
13
  return ({
14
14
  label: (_a = device.profile) === null || _a === void 0 ? void 0 : _a.label,
15
- type: ((_b = device.profile) === null || _b === void 0 ? void 0 : _b.type) ? credentials_1.DeviceType[(_c = device.profile) === null || _c === void 0 ? void 0 : _c.type] : 'UNKNOWN',
15
+ type: ((_b = device.profile) === null || _b === void 0 ? void 0 : _b.type) ? halo_1.DeviceType[(_c = device.profile) === null || _c === void 0 ? void 0 : _c.type] : 'UNKNOWN',
16
16
  key: (0, types_1.maybeTruncateKey)(device.deviceKey, truncateKeys),
17
- kind: device.kind,
17
+ kind: halo_1.DeviceKind[device.kind],
18
18
  platform: (_d = device.profile) === null || _d === void 0 ? void 0 : _d.platform,
19
19
  platformVersion: (_e = device.profile) === null || _e === void 0 ? void 0 : _e.platformVersion,
20
20
  architecture: (_f = device.profile) === null || _f === void 0 ? void 0 : _f.architecture,
21
21
  os: (_g = device.profile) === null || _g === void 0 ? void 0 : _g.os,
22
22
  osVersion: (_h = device.profile) === null || _h === void 0 ? void 0 : _h.osVersion,
23
+ presence: (device === null || device === void 0 ? void 0 : device.kind) === halo_1.DeviceKind.CURRENT ? 'THIS DEVICE' : halo_1.Device.PresenceState[device.presence],
23
24
  });
24
25
  });
25
26
  };
26
27
  exports.mapDevices = mapDevices;
27
28
  const printDevices = (devices, flags = {}) => {
28
29
  core_1.ux.table((0, exports.mapDevices)(devices, true), {
30
+ key: { header: 'key' },
29
31
  label: { header: 'label' },
32
+ presence: { header: 'presence' },
30
33
  type: { header: 'type' },
31
- key: { header: 'key' },
32
34
  kind: { header: 'kind' },
33
35
  platform: { header: 'platform' },
34
36
  platformVersion: { header: 'platformVersion' },
@@ -1 +1 @@
1
- {"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../src/util/devices.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0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,EAAE;YACtB,SAAS,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,SAAS;YACpC,QAAQ,EAAE,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,iBAAU,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAM,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC;SACtG,CAAC,CAAA;KAAA,CAAC,CAAC;AACN,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB;AAEK,MAAM,YAAY,GAAG,CAAC,OAAiB,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE;IAC5D,SAAE,CAAC,KAAK,CACN,IAAA,kBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,EACzB;QACE,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;QACtB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1B,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;QAChC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;QACxB,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;QACxB,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;QAChC,eAAe,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;QAC9C,YAAY,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;QACxC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QACpB,SAAS,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;KACnC,EACD;QACE,GAAG,KAAK;KACT,CACF,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,YAAY,gBAmBvB"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.8-main.c4e8b01",
2
+ "version": "0.4.8-main.c67d72c",
3
3
  "commands": {
4
4
  "agent:invitations": {
5
5
  "id": "agent:invitations",
@@ -3903,7 +3903,7 @@
3903
3903
  "type": "option",
3904
3904
  "description": "Tunnel name",
3905
3905
  "multiple": false,
3906
- "default": "item-louisiana-romeo-ceiling"
3906
+ "default": "ink-papa-iowa-alpha"
3907
3907
  }
3908
3908
  },
3909
3909
  "args": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.4.8-main.c4e8b01",
3
+ "version": "0.4.8-main.c67d72c",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -46,28 +46,28 @@
46
46
  "react": "^18.2.0",
47
47
  "uuid": "^8.3.2",
48
48
  "ws": "^8.14.2",
49
- "@dxos/agent": "0.4.8-main.c4e8b01",
50
- "@dxos/async": "0.4.8-main.c4e8b01",
51
- "@dxos/bare-template": "0.4.8-main.c4e8b01",
52
- "@dxos/client": "0.4.8-main.c4e8b01",
53
- "@dxos/client-services": "0.4.8-main.c4e8b01",
54
- "@dxos/client-protocol": "0.4.8-main.c4e8b01",
55
- "@dxos/config": "0.4.8-main.c4e8b01",
56
- "@dxos/debug": "0.4.8-main.c4e8b01",
57
- "@dxos/context": "0.4.8-main.c4e8b01",
58
- "@dxos/functions": "0.4.8-main.c4e8b01",
59
- "@dxos/hello-template": "0.4.8-main.c4e8b01",
60
- "@dxos/invariant": "0.4.8-main.c4e8b01",
61
- "@dxos/network-manager": "0.4.8-main.c4e8b01",
62
- "@dxos/observability": "0.4.8-main.c4e8b01",
63
- "@dxos/log": "0.4.8-main.c4e8b01",
64
- "@dxos/plate": "0.4.8-main.c4e8b01",
65
- "@dxos/process": "0.4.8-main.c4e8b01",
66
- "@dxos/protocols": "0.4.8-main.c4e8b01",
67
- "@dxos/random": "0.4.8-main.c4e8b01",
68
- "@dxos/tasks-template": "0.4.8-main.c4e8b01",
69
- "@dxos/rpc": "0.4.8-main.c4e8b01",
70
- "@dxos/util": "0.4.8-main.c4e8b01"
49
+ "@dxos/agent": "0.4.8-main.c67d72c",
50
+ "@dxos/bare-template": "0.4.8-main.c67d72c",
51
+ "@dxos/async": "0.4.8-main.c67d72c",
52
+ "@dxos/client": "0.4.8-main.c67d72c",
53
+ "@dxos/client-services": "0.4.8-main.c67d72c",
54
+ "@dxos/client-protocol": "0.4.8-main.c67d72c",
55
+ "@dxos/config": "0.4.8-main.c67d72c",
56
+ "@dxos/context": "0.4.8-main.c67d72c",
57
+ "@dxos/hello-template": "0.4.8-main.c67d72c",
58
+ "@dxos/invariant": "0.4.8-main.c67d72c",
59
+ "@dxos/debug": "0.4.8-main.c67d72c",
60
+ "@dxos/log": "0.4.8-main.c67d72c",
61
+ "@dxos/functions": "0.4.8-main.c67d72c",
62
+ "@dxos/observability": "0.4.8-main.c67d72c",
63
+ "@dxos/network-manager": "0.4.8-main.c67d72c",
64
+ "@dxos/plate": "0.4.8-main.c67d72c",
65
+ "@dxos/protocols": "0.4.8-main.c67d72c",
66
+ "@dxos/process": "0.4.8-main.c67d72c",
67
+ "@dxos/random": "0.4.8-main.c67d72c",
68
+ "@dxos/tasks-template": "0.4.8-main.c67d72c",
69
+ "@dxos/rpc": "0.4.8-main.c67d72c",
70
+ "@dxos/util": "0.4.8-main.c67d72c"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@oclif/test": "^2.3.31",