@dxos/cli 0.1.53-main.75474bf → 0.1.53-main.8f662cd
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/README.md +37 -36
- package/bin/dev +3 -0
- package/dist/src/base-command.d.ts +2 -1
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +19 -14
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/agent.test.d.ts +2 -0
- package/dist/src/commands/agent/agent.test.d.ts.map +1 -0
- package/dist/src/commands/agent/agent.test.js +173 -0
- package/dist/src/commands/agent/agent.test.js.map +1 -0
- package/dist/src/commands/agent/list.d.ts.map +1 -1
- package/dist/src/commands/agent/list.js +4 -2
- package/dist/src/commands/agent/list.js.map +1 -1
- package/dist/src/commands/agent/restart.js +1 -1
- package/dist/src/commands/agent/restart.js.map +1 -1
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/start.js +10 -9
- package/dist/src/commands/agent/start.js.map +1 -1
- package/dist/src/commands/agent/stop.js +1 -1
- package/dist/src/commands/agent/stop.js.map +1 -1
- package/dist/src/commands/app/open.d.ts.map +1 -1
- package/dist/src/commands/app/open.js +4 -4
- package/dist/src/commands/app/open.js.map +1 -1
- package/dist/src/commands/debug/stats.d.ts +1 -1
- package/dist/src/commands/debug/stats.d.ts.map +1 -1
- package/dist/src/commands/debug/stats.js +28 -1
- package/dist/src/commands/debug/stats.js.map +1 -1
- package/dist/src/commands/function/dev-server.d.ts +1 -1
- package/dist/src/commands/function/dev-server.js +1 -1
- package/dist/src/commands/function/dev-server.js.map +1 -1
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/join.js +2 -2
- package/dist/src/commands/halo/join.js.map +1 -1
- package/dist/src/commands/halo/share.d.ts.map +1 -1
- package/dist/src/commands/halo/share.js +4 -4
- package/dist/src/commands/halo/share.js.map +1 -1
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +3 -2
- package/dist/src/commands/reset/index.js.map +1 -1
- package/dist/src/commands/space/create.d.ts.map +1 -1
- package/dist/src/commands/space/create.js +2 -29
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/epoch.d.ts.map +1 -1
- package/dist/src/commands/space/epoch.js +1 -0
- package/dist/src/commands/space/epoch.js.map +1 -1
- package/dist/src/commands/space/invite.d.ts.map +1 -1
- package/dist/src/commands/space/invite.js +3 -2
- package/dist/src/commands/space/invite.js.map +1 -1
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/join.js +3 -2
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/list.js +1 -0
- package/dist/src/commands/space/list.js.map +1 -1
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/space/members.js +1 -0
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/help.d.ts +6 -0
- package/dist/src/help.d.ts.map +1 -0
- package/dist/src/help.js +23 -0
- package/dist/src/help.js.map +1 -0
- package/dist/src/hooks/command-not-found.d.ts +4 -0
- package/dist/src/hooks/command-not-found.d.ts.map +1 -0
- package/dist/src/hooks/command-not-found.js +14 -0
- package/dist/src/hooks/command-not-found.js.map +1 -0
- package/dist/src/util/invitation.d.ts +1 -1
- package/dist/src/util/invitation.d.ts.map +1 -1
- package/dist/src/util/invitation.js +7 -7
- package/dist/src/util/invitation.js.map +1 -1
- package/dist/src/util/print.d.ts +3 -4
- package/dist/src/util/print.d.ts.map +1 -1
- package/dist/src/util/print.js +2 -2
- package/dist/src/util/print.js.map +1 -1
- package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/publish/publisher-rpc-peer.js +4 -5
- package/dist/src/util/publish/publisher-rpc-peer.js.map +1 -1
- package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/supervisor/supervisor-rpc-peer.js +4 -5
- package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +1 -1
- package/dist/src/util/telemetry.d.ts.map +1 -1
- package/dist/src/util/telemetry.js.map +1 -1
- package/dist/src/util/telemetryrc.json +1 -1
- package/dist/src/util/test-util.d.ts +1 -0
- package/dist/src/util/test-util.d.ts.map +1 -1
- package/dist/src/util/test-util.js +14 -5
- package/dist/src/util/test-util.js.map +1 -1
- package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/tunnel/tunnel-rpc-peer.js +4 -5
- package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +1 -1
- package/dist/src/util/util.d.ts +1 -1
- package/dist/src/util/util.d.ts.map +1 -1
- package/dist/src/util/util.js +1 -0
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +5 -72
- package/package.json +27 -28
- package/dist/src/commands/device/invite.d.ts +0 -6
- package/dist/src/commands/device/invite.d.ts.map +0 -1
- package/dist/src/commands/device/invite.js +0 -36
- package/dist/src/commands/device/invite.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.53-main.
|
|
3
|
+
"version": "0.1.53-main.8f662cd",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"/oclif.manifest.json"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@faker-js/faker": "^7.3.0",
|
|
27
26
|
"@oclif/core": "^2.6.5",
|
|
28
27
|
"@oclif/plugin-help": "^5.2.8",
|
|
29
28
|
"@oclif/plugin-plugins": "^2.4.3",
|
|
@@ -31,10 +30,10 @@
|
|
|
31
30
|
"chalk": "^4.1.0",
|
|
32
31
|
"cli-progress": "^3.11.2",
|
|
33
32
|
"date-fns": "^2.29.3",
|
|
34
|
-
"debug": "^4.3.3",
|
|
35
33
|
"do-wrapper": "^4.5.1",
|
|
36
34
|
"fs-extra": "^8.1.0",
|
|
37
35
|
"get-folder-size": "^2.0.1",
|
|
36
|
+
"git-rev-sync": "^3.0.2",
|
|
38
37
|
"inquirer": "^8.2.0",
|
|
39
38
|
"ipfs-http-client": "~56.0.1",
|
|
40
39
|
"isomorphic-ws": "^4.0.1",
|
|
@@ -45,37 +44,33 @@
|
|
|
45
44
|
"pkg-up": "^3.1.0",
|
|
46
45
|
"react": "^18.2.0",
|
|
47
46
|
"tempy": "^1.0.1",
|
|
47
|
+
"tiny-invariant": "^1.3.1",
|
|
48
48
|
"uuid": "^8.3.2",
|
|
49
49
|
"ws": "^7.4.4",
|
|
50
|
-
"@dxos/agent": "0.1.53-main.
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/client": "0.1.53-main.
|
|
54
|
-
"@dxos/client-protocol": "0.1.53-main.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/codec-protobuf": "0.1.53-main.
|
|
57
|
-
"@dxos/context": "0.1.53-main.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/telemetry": "0.1.53-main.75474bf",
|
|
71
|
-
"@dxos/util": "0.1.53-main.75474bf",
|
|
72
|
-
"@dxos/websocket-rpc": "0.1.53-main.75474bf"
|
|
50
|
+
"@dxos/agent": "0.1.53-main.8f662cd",
|
|
51
|
+
"@dxos/bare-template": "0.1.53-main.8f662cd",
|
|
52
|
+
"@dxos/async": "0.1.53-main.8f662cd",
|
|
53
|
+
"@dxos/client": "0.1.53-main.8f662cd",
|
|
54
|
+
"@dxos/client-protocol": "0.1.53-main.8f662cd",
|
|
55
|
+
"@dxos/config": "0.1.53-main.8f662cd",
|
|
56
|
+
"@dxos/codec-protobuf": "0.1.53-main.8f662cd",
|
|
57
|
+
"@dxos/context": "0.1.53-main.8f662cd",
|
|
58
|
+
"@dxos/debug": "0.1.53-main.8f662cd",
|
|
59
|
+
"@dxos/functions": "0.1.53-main.8f662cd",
|
|
60
|
+
"@dxos/hello-template": "0.1.53-main.8f662cd",
|
|
61
|
+
"@dxos/log": "0.1.53-main.8f662cd",
|
|
62
|
+
"@dxos/plate": "0.1.53-main.8f662cd",
|
|
63
|
+
"@dxos/protocols": "0.1.53-main.8f662cd",
|
|
64
|
+
"@dxos/rpc": "0.1.53-main.8f662cd",
|
|
65
|
+
"@dxos/sentry": "0.1.53-main.8f662cd",
|
|
66
|
+
"@dxos/tasks-template": "0.1.53-main.8f662cd",
|
|
67
|
+
"@dxos/telemetry": "0.1.53-main.8f662cd",
|
|
68
|
+
"@dxos/util": "0.1.53-main.8f662cd",
|
|
69
|
+
"@dxos/websocket-rpc": "0.1.53-main.8f662cd"
|
|
73
70
|
},
|
|
74
71
|
"devDependencies": {
|
|
75
72
|
"@oclif/test": "^2.3.11",
|
|
76
73
|
"@types/cli-progress": "^3.11.0",
|
|
77
|
-
"@types/debug": "^4.1.7",
|
|
78
|
-
"@types/faker": "^5.5.9",
|
|
79
74
|
"@types/fs-extra": "^9.0.4",
|
|
80
75
|
"@types/js-yaml": "^4.0.5",
|
|
81
76
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
@@ -96,10 +91,14 @@
|
|
|
96
91
|
"bin": "dx",
|
|
97
92
|
"dirname": "dx",
|
|
98
93
|
"commands": "./dist/src/commands",
|
|
94
|
+
"hooks": {
|
|
95
|
+
"command_not_found": "./dist/src/hooks/command-not-found"
|
|
96
|
+
},
|
|
99
97
|
"plugins": [
|
|
100
98
|
"@oclif/plugin-help",
|
|
101
99
|
"@oclif/plugin-plugins"
|
|
102
100
|
],
|
|
101
|
+
"helpClass": "./dist/src/help",
|
|
103
102
|
"topicSeparator": " ",
|
|
104
103
|
"topics": {
|
|
105
104
|
"config": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/commands/device/invite.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAA+B;IAEpD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAoB1B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 client_1 = require("@dxos/client");
|
|
12
|
-
const base_command_1 = require("../../base-command");
|
|
13
|
-
const util_1 = require("../../util");
|
|
14
|
-
class Invite extends base_command_1.BaseCommand {
|
|
15
|
-
async run() {
|
|
16
|
-
return await this.execWithClient(async (client) => {
|
|
17
|
-
const observable = client.halo.createInvitation();
|
|
18
|
-
const invitationSuccess = (0, util_1.hostInvitation)({
|
|
19
|
-
observable,
|
|
20
|
-
callbacks: {
|
|
21
|
-
onConnecting: async () => {
|
|
22
|
-
const invitationCode = client_1.InvitationEncoder.encode(observable.get());
|
|
23
|
-
this.log((0, chalk_1.default) `\n{blue Invitation}: ${invitationCode}`);
|
|
24
|
-
this.log((0, chalk_1.default) `\n{red Secret}: ${observable.get().authCode}\n`);
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
core_1.ux.action.start('Waiting for peer to connect...');
|
|
29
|
-
await invitationSuccess;
|
|
30
|
-
core_1.ux.action.stop();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
Invite.description = 'Create device invitation.';
|
|
35
|
-
exports.default = Invite;
|
|
36
|
-
//# sourceMappingURL=invite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/commands/device/invite.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAiC;AACjC,kDAA0B;AAE1B,yCAAyD;AAEzD,qDAAiD;AACjD,qCAA4C;AAE5C,MAAqB,MAAO,SAAQ,0BAA0B;IAG5D,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAClD,MAAM,iBAAiB,GAAG,IAAA,qBAAc,EAAC;gBACvC,UAAU;gBACV,SAAS,EAAE;oBACT,YAAY,EAAE,KAAK,IAAI,EAAE;wBACvB,MAAM,cAAc,GAAG,0BAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;wBAElE,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,wBAAwB,cAAc,EAAE,CAAC,CAAC;wBACxD,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,mBAAmB,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,IAAI,CAAC,CAAC;oBAClE,CAAC;iBACF;aACF,CAAC,CAAC;YAEH,SAAE,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAClD,MAAM,iBAAiB,CAAC;YACxB,SAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;;AArBe,kBAAW,GAAG,2BAA2B,CAAC;kBADvC,MAAM"}
|