@dxos/cli 0.4.5-main.dd6795b → 0.4.5-main.ec6b69d

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.
@@ -0,0 +1,17 @@
1
+ import { BaseCommand } from '../../base-command';
2
+ export default class Update extends BaseCommand<typeof Update> {
3
+ static description: string;
4
+ static flags: {
5
+ label: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ 'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
+ verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
+ config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
+ 'no-agent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
+ 'no-wait': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
+ };
15
+ run(): Promise<any>;
16
+ }
17
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/commands/device/update.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAAyB;IACpD,OAAgB,KAAK;;;;;;;;;;MAGnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA+B1B"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2022 DXOS.org
4
+ //
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const core_1 = require("@oclif/core");
10
+ const platform_1 = __importDefault(require("platform"));
11
+ const async_1 = require("@dxos/async");
12
+ const invariant_1 = require("@dxos/invariant");
13
+ const base_command_1 = require("../../base-command");
14
+ const errors_1 = require("../../errors");
15
+ const timeouts_1 = require("../../timeouts");
16
+ class Update extends base_command_1.BaseCommand {
17
+ async run() {
18
+ return await this.execWithClient(async (client) => {
19
+ var _a, _b, _c, _d;
20
+ // TODO(mykola): Hack to wait for identity with `client.halo.identity.wait()`.
21
+ await (0, async_1.asyncTimeout)(client.spaces.isReady.wait(), timeouts_1.IDENTITY_WAIT_TIMEOUT, new errors_1.IdentityWaitTimeoutError());
22
+ const device = client.halo.device;
23
+ if (!device) {
24
+ this.log('No device found.');
25
+ return;
26
+ }
27
+ let label = (_a = device.profile) === null || _a === void 0 ? void 0 : _a.label;
28
+ if (this.flags.label) {
29
+ label = this.flags.label;
30
+ }
31
+ (0, invariant_1.invariant)(client.services.services.DevicesService, 'DevicesService not found');
32
+ // TODO(nf): dedupe
33
+ const uDevice = await client.services.services.DevicesService.updateDevice({
34
+ label,
35
+ platform: platform_1.default.name,
36
+ platformVersion: platform_1.default.version,
37
+ architecture: typeof ((_b = platform_1.default.os) === null || _b === void 0 ? void 0 : _b.architecture) === 'number' ? String(platform_1.default.os.architecture) : undefined,
38
+ os: (_c = platform_1.default.os) === null || _c === void 0 ? void 0 : _c.family,
39
+ osVersion: (_d = platform_1.default.os) === null || _d === void 0 ? void 0 : _d.version,
40
+ });
41
+ this.log('Device updated:', uDevice);
42
+ return uDevice;
43
+ });
44
+ }
45
+ }
46
+ Update.description = 'Update device info.';
47
+ Update.flags = {
48
+ ...base_command_1.BaseCommand.flags,
49
+ label: core_1.Flags.string({ description: 'Set device label' }),
50
+ };
51
+ exports.default = Update;
52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0CAAE,YAAY,CAAA,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC1G,EAAE,EAAE,MAAA,kBAAQ,CAAC,EAAE,0CAAE,MAAM;gBACvB,SAAS,EAAE,MAAA,kBAAQ,CAAC,EAAE,0CAAE,OAAO;aAChC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;YAErC,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;;AApCe,kBAAW,GAAG,qBAAqB,CAAC;AACpC,YAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,KAAK,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACzD,CAAC;kBALiB,MAAM"}
@@ -4,6 +4,7 @@ export default class Share extends BaseCommand<typeof Share> {
4
4
  static description: string;
5
5
  static flags: {
6
6
  noCode: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ origin: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
8
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
9
  'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
10
  verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../../../src/commands/halo/share.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAsC;IAEjE,OAAgB,KAAK;;;;;;;;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA2B1B"}
1
+ {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../../../src/commands/halo/share.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW,CAAC,OAAO,KAAK,CAAC;IAC1D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAsC;IAEjE,OAAgB,KAAK;;;;;;;;;;;MASnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAiC1B"}
@@ -28,6 +28,12 @@ class Share extends (_b = base_command_1.BaseCommand) {
28
28
  onConnecting: async () => {
29
29
  const invitationCode = invitations_1.InvitationEncoder.encode(observable.get());
30
30
  this.log((0, chalk_1.default) `\n{blue Invitation}: ${invitationCode}`);
31
+ if (this.flags.origin) {
32
+ const invitationUrl = new URL(this.flags.origin);
33
+ // TODO: dedupe name of search param with Shell?
34
+ invitationUrl.searchParams.append('deviceInvitationCode', invitationCode);
35
+ this.log((0, chalk_1.default) `{blue URL}: ${invitationUrl}`);
36
+ }
31
37
  !this.flags.noCode && this.log((0, chalk_1.default) `\n{red Secret}: ${observable.get().authCode}\n`);
32
38
  },
33
39
  },
@@ -48,6 +54,9 @@ Share.flags = {
48
54
  description: 'Flag that specifies if secret auth code is not required',
49
55
  default: false,
50
56
  }),
57
+ origin: core_1.Flags.string({
58
+ description: 'Base URL of the application to join the invitation, e.g. https://composer.dxos.org',
59
+ }),
51
60
  };
52
61
  exports.default = Share;
53
62
  //# sourceMappingURL=share.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/commands/halo/share.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,sCAAwC;AACxC,kDAA0B;AAG1B,0DAAyE;AAEzE,qDAAiD;AACjD,qCAA4C;AAE5C,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G,CAAC,IAAA,eAAK,EAAA,wBAAwB,cAAc,EAAE,CAAC,CAAC;wBACxD,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;4BACrB,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;4BACjD,gDAAgD;4BAChD,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,sBAAsB,EAAE,cAAc,CAAC,CAAC;4BAC1E,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,eAAe,aAAa,EAAE,CAAC,CAAC;yBAC/C;wBACD,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,mBAAmB,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,IAAI,CAAC,CAAC;oBACxF,CAAC;iBACF;aACF,CAAC,CAAC;YAEH,SAAE,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;YAC/C,MAAM,iBAAiB,CAAC;YACxB,SAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,SAAE,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,8BAA8B,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC;;;AA9Ce,oBAAc,GAAG,IAAI,AAAP,CAAQ;AACtB,iBAAW,GAAG,kCAAkC,AAArC,CAAsC;AAEjD,WAAK,GAAG;IACtB,GAAG,4BAAW;IACd,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC;QACpB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,KAAK;KACf,CAAC;IACF,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,oFAAoF;KAClG,CAAC;CACH,AAToB,CASnB;kBAbiB,KAAK"}
@@ -0,0 +1,17 @@
1
+ import { BaseCommand } from '../../base-command';
2
+ export default class Update extends BaseCommand<typeof Update> {
3
+ static description: string;
4
+ static flags: {
5
+ displayName: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
6
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ 'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
+ verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
10
+ config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
11
+ 'no-agent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
+ timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
+ 'no-wait': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
+ };
15
+ run(): Promise<any>;
16
+ }
17
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/commands/halo/update.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAA8B;IACzD,OAAgB,KAAK;;;;;;;;;;MAGnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAsB1B"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2022 DXOS.org
4
+ //
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const core_1 = require("@oclif/core");
10
+ const chalk_1 = __importDefault(require("chalk"));
11
+ const async_1 = require("@dxos/async");
12
+ const base_command_1 = require("../../base-command");
13
+ const errors_1 = require("../../errors");
14
+ const timeouts_1 = require("../../timeouts");
15
+ class Update extends base_command_1.BaseCommand {
16
+ async run() {
17
+ return await this.execWithClient(async (client) => {
18
+ var _a;
19
+ // TODO(mykola): Hack to wait for identity with `client.halo.identity.wait()`.
20
+ await (0, async_1.asyncTimeout)(client.spaces.isReady.wait(), timeouts_1.IDENTITY_WAIT_TIMEOUT, new errors_1.IdentityWaitTimeoutError());
21
+ const identity = client.halo.identity.get();
22
+ if (!identity) {
23
+ // TODO(burdon): Error if called twice with no halo.
24
+ this.log((0, chalk_1.default) `{red Identity not initialized.}`);
25
+ return {};
26
+ }
27
+ this.log('updating:');
28
+ const newIdentity = await ((_a = client.services.services.IdentityService) === null || _a === void 0 ? void 0 : _a.updateProfile({
29
+ displayName: this.flags.displayName,
30
+ }));
31
+ this.log('Identity updated:', newIdentity);
32
+ return newIdentity;
33
+ });
34
+ }
35
+ }
36
+ Update.description = 'Update identity profile.';
37
+ Update.flags = {
38
+ ...base_command_1.BaseCommand.flags,
39
+ displayName: core_1.Flags.string({ description: 'Set display name' }),
40
+ };
41
+ exports.default = Update;
42
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/halo/update.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAoC;AACpC,kDAA0B;AAE1B,uCAA2C;AAG3C,qDAAiD;AACjD,yCAAwD;AACxD,6CAAuD;AAEvD,MAAqB,MAAO,SAAQ,0BAA0B;IAO5D,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;;YACxD,8EAA8E;YAC9E,MAAM,IAAA,oBAAY,EAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,gCAAqB,EAAE,IAAI,iCAAwB,EAAE,CAAC,CAAC;YACxG,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YAE5C,IAAI,CAAC,QAAQ,EAAE;gBACb,oDAAoD;gBACpD,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,iCAAiC,CAAC,CAAC;gBACjD,OAAO,EAAE,CAAC;aACX;YAED,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAEtB,MAAM,WAAW,GAAG,MAAM,CAAA,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,eAAe,0CAAE,aAAa,CAAC;gBAChF,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;aACpC,CAAC,CAAA,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;YAE3C,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC;;AA3Be,kBAAW,GAAG,0BAA0B,CAAC;AACzC,YAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;CAC/D,CAAC;kBALiB,MAAM"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.5-main.dd6795b",
2
+ "version": "0.4.5-main.ec6b69d",
3
3
  "commands": {
4
4
  "agent:list": {
5
5
  "id": "agent:list",
@@ -1487,6 +1487,86 @@
1487
1487
  },
1488
1488
  "args": {}
1489
1489
  },
1490
+ "device:update": {
1491
+ "id": "device:update",
1492
+ "description": "Update device info.",
1493
+ "strict": true,
1494
+ "pluginName": "@dxos/cli",
1495
+ "pluginAlias": "@dxos/cli",
1496
+ "pluginType": "core",
1497
+ "aliases": [],
1498
+ "flags": {
1499
+ "json": {
1500
+ "name": "json",
1501
+ "type": "boolean",
1502
+ "description": "Output as JSON.",
1503
+ "allowNo": false
1504
+ },
1505
+ "dry-run": {
1506
+ "name": "dry-run",
1507
+ "type": "boolean",
1508
+ "description": "Dry run.",
1509
+ "allowNo": false
1510
+ },
1511
+ "verbose": {
1512
+ "name": "verbose",
1513
+ "type": "boolean",
1514
+ "char": "v",
1515
+ "description": "Verbose output",
1516
+ "allowNo": false
1517
+ },
1518
+ "profile": {
1519
+ "name": "profile",
1520
+ "type": "option",
1521
+ "description": "User profile.",
1522
+ "multiple": false,
1523
+ "default": "default"
1524
+ },
1525
+ "config": {
1526
+ "name": "config",
1527
+ "type": "option",
1528
+ "description": "Config file.",
1529
+ "helpValue": "path",
1530
+ "multiple": false,
1531
+ "dependsOn": [
1532
+ "profile"
1533
+ ],
1534
+ "default": "/home/runner/.config/dx/profile/default.yml",
1535
+ "aliases": [
1536
+ "c"
1537
+ ]
1538
+ },
1539
+ "no-agent": {
1540
+ "name": "no-agent",
1541
+ "type": "boolean",
1542
+ "description": "Run command without using or starting agent.",
1543
+ "allowNo": false
1544
+ },
1545
+ "timeout": {
1546
+ "name": "timeout",
1547
+ "type": "option",
1548
+ "description": "Timeout (ms).",
1549
+ "multiple": false,
1550
+ "default": 60000,
1551
+ "aliases": [
1552
+ "t"
1553
+ ]
1554
+ },
1555
+ "no-wait": {
1556
+ "name": "no-wait",
1557
+ "type": "boolean",
1558
+ "description": "Do not wait for space to be ready.",
1559
+ "allowNo": false
1560
+ },
1561
+ "label": {
1562
+ "name": "label",
1563
+ "type": "option",
1564
+ "description": "Set device label",
1565
+ "multiple": false
1566
+ }
1567
+ },
1568
+ "args": {}
1569
+ },
1490
1570
  "function:dev": {
1491
1571
  "id": "function:dev",
1492
1572
  "description": "Functions development server.",
@@ -2153,6 +2233,92 @@
2153
2233
  "type": "boolean",
2154
2234
  "description": "Flag that specifies if secret auth code is not required",
2155
2235
  "allowNo": false
2236
+ },
2237
+ "origin": {
2238
+ "name": "origin",
2239
+ "type": "option",
2240
+ "description": "Base URL of the application to join the invitation, e.g. https://composer.dxos.org",
2241
+ "multiple": false
2242
+ }
2243
+ },
2244
+ "args": {}
2245
+ },
2246
+ "halo:update": {
2247
+ "id": "halo:update",
2248
+ "description": "Update identity profile.",
2249
+ "strict": true,
2250
+ "pluginName": "@dxos/cli",
2251
+ "pluginAlias": "@dxos/cli",
2252
+ "pluginType": "core",
2253
+ "aliases": [],
2254
+ "flags": {
2255
+ "json": {
2256
+ "name": "json",
2257
+ "type": "boolean",
2258
+ "description": "Output as JSON.",
2259
+ "allowNo": false
2260
+ },
2261
+ "dry-run": {
2262
+ "name": "dry-run",
2263
+ "type": "boolean",
2264
+ "description": "Dry run.",
2265
+ "allowNo": false
2266
+ },
2267
+ "verbose": {
2268
+ "name": "verbose",
2269
+ "type": "boolean",
2270
+ "char": "v",
2271
+ "description": "Verbose output",
2272
+ "allowNo": false
2273
+ },
2274
+ "profile": {
2275
+ "name": "profile",
2276
+ "type": "option",
2277
+ "description": "User profile.",
2278
+ "multiple": false,
2279
+ "default": "default"
2280
+ },
2281
+ "config": {
2282
+ "name": "config",
2283
+ "type": "option",
2284
+ "description": "Config file.",
2285
+ "helpValue": "path",
2286
+ "multiple": false,
2287
+ "dependsOn": [
2288
+ "profile"
2289
+ ],
2290
+ "default": "/home/runner/.config/dx/profile/default.yml",
2291
+ "aliases": [
2292
+ "c"
2293
+ ]
2294
+ },
2295
+ "no-agent": {
2296
+ "name": "no-agent",
2297
+ "type": "boolean",
2298
+ "description": "Run command without using or starting agent.",
2299
+ "allowNo": false
2300
+ },
2301
+ "timeout": {
2302
+ "name": "timeout",
2303
+ "type": "option",
2304
+ "description": "Timeout (ms).",
2305
+ "multiple": false,
2306
+ "default": 60000,
2307
+ "aliases": [
2308
+ "t"
2309
+ ]
2310
+ },
2311
+ "no-wait": {
2312
+ "name": "no-wait",
2313
+ "type": "boolean",
2314
+ "description": "Do not wait for space to be ready.",
2315
+ "allowNo": false
2316
+ },
2317
+ "displayName": {
2318
+ "name": "displayName",
2319
+ "type": "option",
2320
+ "description": "Set display name",
2321
+ "multiple": false
2156
2322
  }
2157
2323
  },
2158
2324
  "args": {}
@@ -3521,7 +3687,7 @@
3521
3687
  "type": "option",
3522
3688
  "description": "Tunnel name",
3523
3689
  "multiple": false,
3524
- "default": "oxygen-four-illinois-fish"
3690
+ "default": "river-dakota-angel-idaho"
3525
3691
  }
3526
3692
  },
3527
3693
  "args": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "0.4.5-main.dd6795b",
3
+ "version": "0.4.5-main.ec6b69d",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -42,31 +42,32 @@
42
42
  "lodash.defaultsdeep": "^4.6.1",
43
43
  "node-fetch": "^2.6.0",
44
44
  "pkg-up": "^3.1.0",
45
+ "platform": "^1.3.6",
45
46
  "react": "^18.2.0",
46
47
  "uuid": "^8.3.2",
47
48
  "ws": "^8.14.2",
48
- "@dxos/agent": "0.4.5-main.dd6795b",
49
- "@dxos/async": "0.4.5-main.dd6795b",
50
- "@dxos/bare-template": "0.4.5-main.dd6795b",
51
- "@dxos/client-protocol": "0.4.5-main.dd6795b",
52
- "@dxos/client": "0.4.5-main.dd6795b",
53
- "@dxos/client-services": "0.4.5-main.dd6795b",
54
- "@dxos/context": "0.4.5-main.dd6795b",
55
- "@dxos/functions": "0.4.5-main.dd6795b",
56
- "@dxos/debug": "0.4.5-main.dd6795b",
57
- "@dxos/config": "0.4.5-main.dd6795b",
58
- "@dxos/hello-template": "0.4.5-main.dd6795b",
59
- "@dxos/invariant": "0.4.5-main.dd6795b",
60
- "@dxos/log": "0.4.5-main.dd6795b",
61
- "@dxos/network-manager": "0.4.5-main.dd6795b",
62
- "@dxos/observability": "0.4.5-main.dd6795b",
63
- "@dxos/plate": "0.4.5-main.dd6795b",
64
- "@dxos/process": "0.4.5-main.dd6795b",
65
- "@dxos/protocols": "0.4.5-main.dd6795b",
66
- "@dxos/random": "0.4.5-main.dd6795b",
67
- "@dxos/tasks-template": "0.4.5-main.dd6795b",
68
- "@dxos/rpc": "0.4.5-main.dd6795b",
69
- "@dxos/util": "0.4.5-main.dd6795b"
49
+ "@dxos/agent": "0.4.5-main.ec6b69d",
50
+ "@dxos/async": "0.4.5-main.ec6b69d",
51
+ "@dxos/bare-template": "0.4.5-main.ec6b69d",
52
+ "@dxos/client-protocol": "0.4.5-main.ec6b69d",
53
+ "@dxos/client-services": "0.4.5-main.ec6b69d",
54
+ "@dxos/client": "0.4.5-main.ec6b69d",
55
+ "@dxos/config": "0.4.5-main.ec6b69d",
56
+ "@dxos/context": "0.4.5-main.ec6b69d",
57
+ "@dxos/debug": "0.4.5-main.ec6b69d",
58
+ "@dxos/functions": "0.4.5-main.ec6b69d",
59
+ "@dxos/hello-template": "0.4.5-main.ec6b69d",
60
+ "@dxos/invariant": "0.4.5-main.ec6b69d",
61
+ "@dxos/log": "0.4.5-main.ec6b69d",
62
+ "@dxos/network-manager": "0.4.5-main.ec6b69d",
63
+ "@dxos/observability": "0.4.5-main.ec6b69d",
64
+ "@dxos/plate": "0.4.5-main.ec6b69d",
65
+ "@dxos/protocols": "0.4.5-main.ec6b69d",
66
+ "@dxos/process": "0.4.5-main.ec6b69d",
67
+ "@dxos/random": "0.4.5-main.ec6b69d",
68
+ "@dxos/rpc": "0.4.5-main.ec6b69d",
69
+ "@dxos/tasks-template": "0.4.5-main.ec6b69d",
70
+ "@dxos/util": "0.4.5-main.ec6b69d"
70
71
  },
71
72
  "devDependencies": {
72
73
  "@oclif/test": "^2.3.31",
@@ -77,6 +78,7 @@
77
78
  "@types/lodash.defaultsdeep": "^4.6.6",
78
79
  "@types/node": "^18.11.9",
79
80
  "@types/node-fetch": "^2.5.10",
81
+ "@types/platform": "^1.3.4",
80
82
  "@types/react-dom": "^18.0.6",
81
83
  "fast-check": "^3.15.1",
82
84
  "oclif": "^3.7.0",