@dxos/cli 0.1.1 → 0.1.3
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 +4 -4
- package/dist/src/base-command.d.ts +7 -2
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +55 -18
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/app/publish.d.ts.map +1 -1
- package/dist/src/commands/app/publish.js +6 -1
- package/dist/src/commands/app/publish.js.map +1 -1
- package/dist/src/commands/halo/create.js +4 -4
- package/dist/src/commands/halo/create.js.map +1 -1
- package/dist/src/commands/halo/index.js +4 -4
- package/dist/src/commands/halo/index.js.map +1 -1
- package/dist/src/commands/halo/recover.js +2 -2
- package/dist/src/commands/halo/recover.js.map +1 -1
- package/dist/src/commands/space/create.js +4 -4
- package/dist/src/commands/space/invite.d.ts.map +1 -1
- package/dist/src/commands/space/invite.js +25 -27
- 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 +6 -7
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.js +3 -3
- package/dist/src/commands/space/list.js.map +1 -1
- package/dist/src/commands/space/members.js +5 -5
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/util/telemetry.d.ts +14 -5
- package/dist/src/util/telemetry.d.ts.map +1 -1
- package/dist/src/util/telemetry.js +32 -7
- package/dist/src/util/telemetry.js.map +1 -1
- package/dist/src/util/telemetryrc.json +3 -2
- package/dist/src/util/util.d.ts +9 -6
- package/dist/src/util/util.d.ts.map +1 -1
- package/dist/src/util/util.js +19 -16
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ $ npm install -g @dxos/cli
|
|
|
27
27
|
$ dx COMMAND
|
|
28
28
|
running command...
|
|
29
29
|
$ dx (--version)
|
|
30
|
-
@dxos/cli/0.1.
|
|
30
|
+
@dxos/cli/0.1.3 linux-x64 node-v18.12.1
|
|
31
31
|
$ dx --help [COMMAND]
|
|
32
32
|
USAGE
|
|
33
33
|
$ dx COMMAND
|
|
@@ -43,7 +43,7 @@ USAGE
|
|
|
43
43
|
* [`dx app publish`](#dx-app-publish)
|
|
44
44
|
* [`dx config`](#dx-config)
|
|
45
45
|
* [`dx halo`](#dx-halo)
|
|
46
|
-
* [`dx halo create [
|
|
46
|
+
* [`dx halo create [DISPLAYNAME]`](#dx-halo-create-displayname)
|
|
47
47
|
* [`dx halo recover [SEEDPHRASE]`](#dx-halo-recover-seedphrase)
|
|
48
48
|
* [`dx help [COMMAND]`](#dx-help-command)
|
|
49
49
|
* [`dx plugins`](#dx-plugins)
|
|
@@ -164,13 +164,13 @@ DESCRIPTION
|
|
|
164
164
|
Show HALO profile.
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
## `dx halo create [
|
|
167
|
+
## `dx halo create [DISPLAYNAME]`
|
|
168
168
|
|
|
169
169
|
Create HALO.
|
|
170
170
|
|
|
171
171
|
```
|
|
172
172
|
USAGE
|
|
173
|
-
$ dx halo create [
|
|
173
|
+
$ dx halo create [DISPLAYNAME] [--config <value>] [--timeout <value>] [--json]
|
|
174
174
|
|
|
175
175
|
FLAGS
|
|
176
176
|
--config=<value> Specify config file
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { Command } from '@oclif/core';
|
|
1
|
+
import { Command, Config } from '@oclif/core';
|
|
2
2
|
import { Client } from '@dxos/client';
|
|
3
3
|
import { ConfigProto } from '@dxos/config';
|
|
4
|
-
import { PublisherRpcPeer } from './util';
|
|
4
|
+
import { PublisherRpcPeer, TelemetryContext } from './util';
|
|
5
5
|
export declare abstract class BaseCommand extends Command {
|
|
6
6
|
private _clientConfig?;
|
|
7
7
|
private _client?;
|
|
8
|
+
private _startTime;
|
|
9
|
+
private _failing;
|
|
10
|
+
protected _telemetryContext?: TelemetryContext;
|
|
8
11
|
static flags: {
|
|
9
12
|
config: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
10
13
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
|
|
11
14
|
};
|
|
15
|
+
constructor(argv: string[], config: Config);
|
|
12
16
|
flags: any;
|
|
13
17
|
get clientConfig(): ConfigProto | undefined;
|
|
14
18
|
ok(): void;
|
|
@@ -30,5 +34,6 @@ export declare abstract class BaseCommand extends Command {
|
|
|
30
34
|
* Convenience function to wrap command passing in kube publisher.
|
|
31
35
|
*/
|
|
32
36
|
execWithPublisher<T>(callback: (rpc: PublisherRpcPeer) => Promise<T | undefined>): Promise<T | undefined>;
|
|
37
|
+
addToTelemetryContext(values: object): void;
|
|
33
38
|
}
|
|
34
39
|
//# sourceMappingURL=base-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../src/base-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../src/base-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAS,MAAM,aAAa,CAAC;AAUrD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,OAAO,EAIL,gBAAgB,EAEhB,gBAAgB,EAEjB,MAAM,QAAQ,CAAC;AAMhB,8BAAsB,WAAY,SAAQ,OAAO;IAC/C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,UAAU,CAAO;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,SAAS,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAE/C,OAAgB,KAAK;;;MAanB;gBAEU,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM;IAM1C,KAAK,EAAE,GAAG,CAAC;IAEX,IAAI,YAAY,4BAEf;IAED,EAAE;IAIF;;OAEG;IACY,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqErB,KAAK,CAAC,GAAG,EAAE,KAAK;IAOhB,OAAO;IActB;;OAEG;IACG,SAAS;IAYf;;OAEG;IACG,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAkBrG;;OAEG;IACG,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAyB/G,qBAAqB,CAAC,MAAM,EAAE,MAAM;CAUrC"}
|
package/dist/src/base-command.js
CHANGED
|
@@ -33,18 +33,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
33
|
exports.BaseCommand = void 0;
|
|
34
34
|
const core_1 = require("@oclif/core");
|
|
35
35
|
const assert_1 = __importDefault(require("assert"));
|
|
36
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
36
37
|
const debug_1 = __importDefault(require("debug"));
|
|
37
38
|
const fs = __importStar(require("fs-extra"));
|
|
38
39
|
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
39
|
-
const
|
|
40
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
41
|
+
const path = __importStar(require("node:path"));
|
|
40
42
|
const async_1 = require("@dxos/async");
|
|
41
43
|
const client_1 = require("@dxos/client");
|
|
42
44
|
const Sentry = __importStar(require("@dxos/sentry"));
|
|
45
|
+
const sentry_1 = require("@dxos/sentry");
|
|
43
46
|
const Telemetry = __importStar(require("@dxos/telemetry"));
|
|
44
47
|
const util_1 = require("./util");
|
|
45
48
|
const log = (0, debug_1.default)('dxos:cli:main');
|
|
46
49
|
const ENV_DX_CONFIG = 'DX_CONFIG';
|
|
47
50
|
class BaseCommand extends core_1.Command {
|
|
51
|
+
constructor(argv, config) {
|
|
52
|
+
super(argv, config);
|
|
53
|
+
this._failing = false;
|
|
54
|
+
this._startTime = new Date();
|
|
55
|
+
}
|
|
48
56
|
get clientConfig() {
|
|
49
57
|
return this._clientConfig;
|
|
50
58
|
}
|
|
@@ -55,37 +63,44 @@ class BaseCommand extends core_1.Command {
|
|
|
55
63
|
* Load the client config.
|
|
56
64
|
*/
|
|
57
65
|
async init() {
|
|
58
|
-
var _b;
|
|
59
66
|
await super.init();
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
this._telemetryContext = await (0, util_1.getTelemetryContext)(this.config.configDir);
|
|
68
|
+
const { mode, installationId, group, environment, release } = this._telemetryContext;
|
|
69
|
+
if (group === 'dxos') {
|
|
70
|
+
this.log((0, chalk_1.default) `✨ {bgMagenta You're using the CLI as an internal user} ✨\n`);
|
|
71
|
+
}
|
|
72
|
+
if (util_1.SENTRY_DESTINATION && mode !== 'disabled') {
|
|
62
73
|
Sentry.init({
|
|
63
74
|
installationId,
|
|
64
75
|
destination: util_1.SENTRY_DESTINATION,
|
|
65
|
-
environment
|
|
66
|
-
release
|
|
76
|
+
environment,
|
|
77
|
+
release,
|
|
67
78
|
// TODO(wittjosiah): Configure this.
|
|
68
79
|
sampleRate: 1.0,
|
|
69
|
-
scrubFilenames:
|
|
80
|
+
scrubFilenames: mode !== 'full',
|
|
70
81
|
properties: {
|
|
71
|
-
|
|
82
|
+
group
|
|
72
83
|
}
|
|
73
84
|
});
|
|
74
85
|
}
|
|
75
86
|
if (util_1.TELEMETRY_API_KEY) {
|
|
87
|
+
mode === 'disabled' && (await (0, util_1.disableTelemetry)(this.config.configDir));
|
|
76
88
|
Telemetry.init({
|
|
77
89
|
apiKey: util_1.TELEMETRY_API_KEY,
|
|
78
90
|
batchSize: 20,
|
|
79
|
-
enable: Boolean(util_1.TELEMETRY_API_KEY) &&
|
|
91
|
+
enable: Boolean(util_1.TELEMETRY_API_KEY) && mode !== 'disabled'
|
|
80
92
|
});
|
|
81
93
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
this.addToTelemetryContext({ command: this.id });
|
|
95
|
+
setTimeout(async () => {
|
|
96
|
+
try {
|
|
97
|
+
const res = await (0, node_fetch_1.default)(`https://api.ipdata.co/?api-key=${util_1.IPDATA_API_KEY}`);
|
|
98
|
+
const data = await res.json();
|
|
99
|
+
const { city, region, country, latitude, longitude } = data;
|
|
100
|
+
this.addToTelemetryContext({ city, region, country, latitude, longitude });
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
(0, sentry_1.captureException)(err);
|
|
89
104
|
}
|
|
90
105
|
});
|
|
91
106
|
// Load user config file.
|
|
@@ -111,11 +126,24 @@ class BaseCommand extends core_1.Command {
|
|
|
111
126
|
}
|
|
112
127
|
}
|
|
113
128
|
async catch(err) {
|
|
129
|
+
this._failing = true;
|
|
114
130
|
Sentry.captureException(err);
|
|
115
131
|
this.error(err);
|
|
116
132
|
}
|
|
117
133
|
// Called after each run.
|
|
118
|
-
async finally() {
|
|
134
|
+
async finally() {
|
|
135
|
+
var _b;
|
|
136
|
+
const endTime = new Date();
|
|
137
|
+
Telemetry.event({
|
|
138
|
+
installationId: (_b = this._telemetryContext) === null || _b === void 0 ? void 0 : _b.installationId,
|
|
139
|
+
name: 'cli.command.run',
|
|
140
|
+
properties: {
|
|
141
|
+
...this._telemetryContext,
|
|
142
|
+
status: this._failing ? 'failure' : 'success',
|
|
143
|
+
duration: endTime.getTime() - this._startTime.getTime()
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
119
147
|
/**
|
|
120
148
|
* Lazily create the client.
|
|
121
149
|
*/
|
|
@@ -123,7 +151,7 @@ class BaseCommand extends core_1.Command {
|
|
|
123
151
|
(0, assert_1.default)(this._clientConfig);
|
|
124
152
|
if (!this._client) {
|
|
125
153
|
log('Creating client...');
|
|
126
|
-
this._client = new client_1.Client(this._clientConfig);
|
|
154
|
+
this._client = new client_1.Client({ config: this._clientConfig });
|
|
127
155
|
await this._client.initialize();
|
|
128
156
|
log('Initialized');
|
|
129
157
|
}
|
|
@@ -174,6 +202,15 @@ class BaseCommand extends core_1.Command {
|
|
|
174
202
|
}
|
|
175
203
|
}
|
|
176
204
|
}
|
|
205
|
+
addToTelemetryContext(values) {
|
|
206
|
+
if (!this._telemetryContext) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
this._telemetryContext = {
|
|
210
|
+
...this._telemetryContext,
|
|
211
|
+
...values
|
|
212
|
+
};
|
|
213
|
+
}
|
|
177
214
|
}
|
|
178
215
|
exports.BaseCommand = BaseCommand;
|
|
179
216
|
_a = BaseCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-command.js","sourceRoot":"","sources":["../../src/base-command.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,
|
|
1
|
+
{"version":3,"file":"base-command.js","sourceRoot":"","sources":["../../src/base-command.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,sCAAqD;AACrD,oDAA4B;AAC5B,kDAA0B;AAC1B,kDAA0B;AAC1B,6CAA+B;AAC/B,sDAA2B;AAC3B,4DAA+B;AAC/B,gDAAkC;AAElC,uCAAoC;AACpC,yCAAsC;AAEtC,qDAAuC;AACvC,yCAAgD;AAChD,2DAA6C;AAE7C,iCAQgB;AAEhB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,eAAe,CAAC,CAAC;AAEnC,MAAM,aAAa,GAAG,WAAW,CAAC;AAElC,MA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CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAElH,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,CAAC;YAElC,OAAO,KAAK,CAAC;SACd;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACjB;gBAAS;YACR,IAAI,GAAG,EAAE;gBACP,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;aACnB;SACF;IACH,CAAC;IAED,qBAAqB,CAAC,MAAc;QAClC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC3B,OAAO;SACR;QAED,IAAI,CAAC,iBAAiB,GAAG;YACvB,GAAG,IAAI,CAAC,iBAAiB;YACzB,GAAG,MAAM;SACV,CAAC;IACJ,CAAC;;AA5MH,kCA6MC;;AAtMiB,iBAAK,GAAG;IACtB,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACnB,GAAG,EAAE,aAAa;QAClB,WAAW,EAAE,qBAAqB;QAClC,OAAO,EAAE,KAAK,EAAE,OAAY,EAAE,EAAE;YAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QAC3D,CAAC;KACF,CAAC;IAEF,OAAO,EAAE,YAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,EAAE;KACZ,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/commands/app/publish.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/commands/app/publish.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW;IAC9C,OAAgB,WAAW,SAAmB;IAC9C,OAAgB,KAAK;;;;;;;MAgBnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAyC1B"}
|
|
@@ -8,11 +8,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const core_1 = require("@oclif/core");
|
|
10
10
|
const assert_1 = __importDefault(require("assert"));
|
|
11
|
+
const sentry_1 = require("@dxos/sentry");
|
|
11
12
|
const base_command_1 = require("../../base-command");
|
|
12
13
|
const util_1 = require("../../util");
|
|
13
14
|
class Publish extends base_command_1.BaseCommand {
|
|
14
15
|
async run() {
|
|
15
|
-
var _a;
|
|
16
|
+
var _a, _b;
|
|
16
17
|
const { flags } = await this.parse(Publish);
|
|
17
18
|
const { configPath, skipExisting, verbose, version } = flags;
|
|
18
19
|
try {
|
|
@@ -27,6 +28,9 @@ class Publish extends base_command_1.BaseCommand {
|
|
|
27
28
|
module.build = { ...module.build, version };
|
|
28
29
|
}
|
|
29
30
|
}
|
|
31
|
+
this.addToTelemetryContext({
|
|
32
|
+
totalBundleSize: (_b = moduleConfig.values.package.modules) === null || _b === void 0 ? void 0 : _b.reduce((sum, { bundle }) => { var _a; return sum + ((_a = bundle === null || bundle === void 0 ? void 0 : bundle.length) !== null && _a !== void 0 ? _a : 0); }, 0)
|
|
33
|
+
});
|
|
30
34
|
return await this.execWithPublisher(async (publisher) => {
|
|
31
35
|
await publisher.rpc.publish({
|
|
32
36
|
package: moduleConfig.values.package,
|
|
@@ -36,6 +40,7 @@ class Publish extends base_command_1.BaseCommand {
|
|
|
36
40
|
});
|
|
37
41
|
}
|
|
38
42
|
catch (err) {
|
|
43
|
+
(0, sentry_1.captureException)(err);
|
|
39
44
|
this.log(`Unable to publish: ${err.message}`);
|
|
40
45
|
this.error(err, { exit: 1 });
|
|
41
46
|
}
|
|
@@ -1 +1 @@
|
|
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E;YACjB,IAAA,yBAAgB,EAAC,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,GAAG,CAAC,sBAAsB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAC9C,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;SAC9B;IACH,CAAC;;AA5DH,0BA6DC;AA5DiB,mBAAW,GAAG,eAAe,CAAC;AAC9B,aAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,UAAU,EAAE,YAAK,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE,gBAAgB;KAC9B,CAAC;IACF,YAAY,EAAE,YAAK,CAAC,OAAO,CAAC;QAC1B,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,KAAK;KACf,CAAC;IACF,OAAO,EAAE,YAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,KAAK;KACf,CAAC;IACF,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,+BAA+B;KAC7C,CAAC;CACH,CAAC"}
|
|
@@ -8,7 +8,7 @@ const base_command_1 = require("../../base-command");
|
|
|
8
8
|
class Create extends base_command_1.BaseCommand {
|
|
9
9
|
async run() {
|
|
10
10
|
const { args } = await this.parse(Create);
|
|
11
|
-
const {
|
|
11
|
+
const { displayName } = args; // TODO(burdon): Prompt.
|
|
12
12
|
return await this.execWithClient(async (client) => {
|
|
13
13
|
let profile = client.halo.profile;
|
|
14
14
|
if (profile) {
|
|
@@ -16,9 +16,9 @@ class Create extends base_command_1.BaseCommand {
|
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
18
|
const seedphrase = (0, client_1.generateSeedPhrase)();
|
|
19
|
-
profile = await client.halo.createProfile({ seedphrase,
|
|
19
|
+
profile = await client.halo.createProfile({ seedphrase, displayName });
|
|
20
20
|
this.log(`IMPORTANT: Record your recover seed phrase:\n[${seedphrase}]`);
|
|
21
|
-
return { seedphrase,
|
|
21
|
+
return { seedphrase, displayName };
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ Create.enableJsonFlag = true;
|
|
|
28
28
|
Create.description = 'Create HALO.';
|
|
29
29
|
Create.args = [
|
|
30
30
|
{
|
|
31
|
-
name: '
|
|
31
|
+
name: 'displayName'
|
|
32
32
|
}
|
|
33
33
|
];
|
|
34
34
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/halo/create.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,yCAA0D;AAE1D,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IAS7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/halo/create.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,yCAA0D;AAE1D,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IAS7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,CAAC,wBAAwB;QAEtD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,IAAI,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YAClC,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC,iCAAiC;aAC5E;iBAAM;gBACL,MAAM,UAAU,GAAG,IAAA,2BAAkB,GAAE,CAAC;gBACxC,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;gBACvE,IAAI,CAAC,GAAG,CAAC,iDAAiD,UAAU,GAAG,CAAC,CAAC;gBACzE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;aACpC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAxBH,yBAyBC;AAxBiB,qBAAc,GAAG,IAAI,CAAC;AACtB,kBAAW,GAAG,cAAc,CAAC;AAC7B,WAAI,GAAG;IACrB;QACE,IAAI,EAAE,aAAa;KACpB;CACF,CAAC"}
|
|
@@ -19,11 +19,11 @@ class Halo extends base_command_1.BaseCommand {
|
|
|
19
19
|
return {};
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
const {
|
|
23
|
-
this.log(`
|
|
22
|
+
const { identityKey, displayName } = profile;
|
|
23
|
+
this.log(`Display name: ${displayName}`);
|
|
24
24
|
return {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
identityKey: identityKey.toHex(),
|
|
26
|
+
displayName
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/halo/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,kDAA0B;AAI1B,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACpC,IAAI,CAAC,OAAO,EAAE;gBACZ,oDAAoD;gBACpD,gHAAgH;gBAChH,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,gCAAgC,CAAC,CAAC;gBAChD,OAAO,EAAE,CAAC;aACX;iBAAM;gBACL,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/halo/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,kDAA0B;AAI1B,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACpC,IAAI,CAAC,OAAO,EAAE;gBACZ,oDAAoD;gBACpD,gHAAgH;gBAChH,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,gCAAgC,CAAC,CAAC;gBAChD,OAAO,EAAE,CAAC;aACX;iBAAM;gBACL,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;gBAC7C,IAAI,CAAC,GAAG,CAAC,iBAAiB,WAAW,EAAE,CAAC,CAAC;gBACzC,OAAO;oBACL,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE;oBAChC,WAAW;iBACZ,CAAC;aACH;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AArBH,uBAsBC;AArBiB,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,oBAAoB,CAAC"}
|
|
@@ -17,9 +17,9 @@ class Recover extends base_command_1.BaseCommand {
|
|
|
17
17
|
// TODO(burdon): Needs to be connected to peer?
|
|
18
18
|
this.log('Recovering...', seedphrase);
|
|
19
19
|
profile = await client.halo.recoverProfile(seedphrase);
|
|
20
|
-
const {
|
|
20
|
+
const { displayName } = profile;
|
|
21
21
|
this.log('Profile', profile);
|
|
22
|
-
return { seedphrase,
|
|
22
|
+
return { seedphrase, displayName };
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recover.js","sourceRoot":"","sources":["../../../../src/commands/halo/recover.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAIF,qDAAiD;AAEjD,MAAqB,OAAQ,SAAQ,0BAAW;IAS9C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC,wBAAwB;QAErD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,IAAI,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YAClC,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;aAC1C;iBAAM;gBACL,+CAA+C;gBAC/C,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACtC,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;gBACvD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"recover.js","sourceRoot":"","sources":["../../../../src/commands/halo/recover.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAIF,qDAAiD;AAEjD,MAAqB,OAAQ,SAAQ,0BAAW;IAS9C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC,wBAAwB;QAErD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,IAAI,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YAClC,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;aAC1C;iBAAM;gBACL,+CAA+C;gBAC/C,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;gBACtC,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;gBACvD,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;gBAChC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;gBAC7B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;aACpC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AA1BH,0BA2BC;AA1BiB,sBAAc,GAAG,IAAI,CAAC;AACtB,mBAAW,GAAG,eAAe,CAAC;AAC9B,YAAI,GAAG;IACrB;QACE,IAAI,EAAE,YAAY;KACnB;CACF,CAAC"}
|
|
@@ -17,11 +17,11 @@ class Create extends base_command_1.BaseCommand {
|
|
|
17
17
|
name = `${faker_1.default.commerce.productName().toLowerCase().replace(/\s/g, '-')}`;
|
|
18
18
|
}
|
|
19
19
|
return await this.execWithClient(async (client) => {
|
|
20
|
-
const
|
|
21
|
-
await
|
|
20
|
+
const space = await client.echo.createSpace();
|
|
21
|
+
await space.setProperty('name', name);
|
|
22
22
|
const data = {
|
|
23
|
-
key:
|
|
24
|
-
name:
|
|
23
|
+
key: space.key.toHex(),
|
|
24
|
+
name: space.getProperty('name')
|
|
25
25
|
};
|
|
26
26
|
this.log(`Created: ${data.key}`);
|
|
27
27
|
return data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/invite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/invite.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,OAAgB,WAAW,SAA8B;IACzD,OAAgB,IAAI;;QAIlB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAyC1B"}
|
|
@@ -2,50 +2,48 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Copyright 2022 DXOS.org
|
|
4
4
|
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
5
|
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
6
|
const debug_1 = require("@dxos/debug");
|
|
13
7
|
const base_command_1 = require("../../base-command");
|
|
14
8
|
const util_1 = require("../../util");
|
|
15
9
|
// TODO(burdon): Reconcile invite/share.
|
|
16
10
|
class Invite extends base_command_1.BaseCommand {
|
|
17
11
|
async run() {
|
|
18
|
-
const { args
|
|
12
|
+
const { args } = await this.parse(Invite);
|
|
19
13
|
let { key } = args;
|
|
20
|
-
const { timeout } = flags;
|
|
21
14
|
return await this.execWithClient(async (client) => {
|
|
22
|
-
const { value:
|
|
15
|
+
const { value: spaces = [] } = await client.echo.querySpaces();
|
|
23
16
|
if (!key) {
|
|
24
|
-
key = await (0, util_1.selectSpace)(
|
|
17
|
+
key = await (0, util_1.selectSpace)(spaces);
|
|
25
18
|
}
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
19
|
+
const space = spaces.find((space) => space.key.toHex().startsWith(key));
|
|
20
|
+
if (!space) {
|
|
28
21
|
this.log(`Invalid key: ${(0, debug_1.truncateKey)(key)}`);
|
|
29
|
-
return;
|
|
30
22
|
}
|
|
31
|
-
|
|
23
|
+
/*
|
|
24
|
+
const invitation = await space.createInvitation();
|
|
32
25
|
const descriptor = invitation.encode();
|
|
33
26
|
const secret = invitation.secret.toString();
|
|
34
|
-
|
|
35
|
-
this.log(
|
|
27
|
+
|
|
28
|
+
this.log(chalk`\n{blue Invitation}: ${descriptor}`);
|
|
29
|
+
this.log(chalk`\n{red Secret}: ${secret}\n`);
|
|
30
|
+
|
|
36
31
|
try {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
CliUx.ux.action.start('Waiting for peer to connect');
|
|
33
|
+
await invitation.wait(timeout * 1_000);
|
|
34
|
+
CliUx.ux.action.stop();
|
|
35
|
+
|
|
36
|
+
const { value: members } = space.queryMembers();
|
|
37
|
+
printMembers(members);
|
|
38
|
+
|
|
39
|
+
// TODO(burdon): Wait to replicate.
|
|
40
|
+
await sleep(5_000);
|
|
41
|
+
} catch (err: any) {
|
|
42
|
+
CliUx.ux.action.stop(String(err));
|
|
43
|
+
|
|
44
|
+
invitation.cancel();
|
|
48
45
|
}
|
|
46
|
+
*/
|
|
49
47
|
});
|
|
50
48
|
}
|
|
51
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/commands/space/invite.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/commands/space/invite.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAGF,uCAA0C;AAE1C,qDAAiD;AACjD,qCAAyC;AAEzC,wCAAwC;AACxC,MAAqB,MAAO,SAAQ,0BAAW;IAQ7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAEnB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC/D,IAAI,CAAC,GAAG,EAAE;gBACR,GAAG,GAAG,MAAM,IAAA,kBAAW,EAAC,MAAM,CAAC,CAAC;aACjC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;YACxE,IAAI,CAAC,KAAK,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,gBAAgB,IAAA,mBAAW,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aAC9C;YAED;;;;;;;;;;;;;;;;;;;;;;;cAuBE;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;;AAhDH,yBAiDC;AAhDiB,kBAAW,GAAG,0BAA0B,CAAC;AACzC,WAAI,GAAG;IACrB;QACE,IAAI,EAAE,KAAK;KACZ;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/join.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA4B;IACvD,OAAgB,KAAK;;;;;MAQnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/join.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA4B;IACvD,OAAgB,KAAK;;;;;MAQnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA6B1B"}
|
|
@@ -22,19 +22,18 @@ class Join extends base_command_1.BaseCommand {
|
|
|
22
22
|
secret = await core_1.CliUx.ux.prompt((0, chalk_1.default) `\n{red Secret}`);
|
|
23
23
|
}
|
|
24
24
|
return await this.execWithClient(async (client) => {
|
|
25
|
-
const invitation = client.echo.acceptInvitation(client_1.InvitationWrapper.decode(encoded));
|
|
26
|
-
await invitation.authenticate(Buffer.from(secret));
|
|
27
|
-
// TODO(burdon): Change blocking call in API.
|
|
28
25
|
core_1.CliUx.ux.action.start('Waiting for peer to connect');
|
|
29
|
-
const
|
|
26
|
+
const observable = await client.echo.acceptInvitation(client_1.InvitationEncoder.decode(encoded));
|
|
27
|
+
const invitation = await (0, client_1.invitationObservable)(observable);
|
|
28
|
+
const space = client.echo.getSpace(invitation.spaceKey);
|
|
30
29
|
core_1.CliUx.ux.action.stop();
|
|
31
|
-
const { value: members } =
|
|
30
|
+
const { value: members } = space.queryMembers();
|
|
32
31
|
if (!json) {
|
|
33
32
|
(0, util_1.printMembers)(members);
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
key:
|
|
37
|
-
name:
|
|
35
|
+
key: space.key.toHex(),
|
|
36
|
+
name: space.getProperty('name'),
|
|
38
37
|
members: (0, util_1.mapMembers)(members)
|
|
39
38
|
};
|
|
40
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"join.js","sourceRoot":"","sources":["../../../../src/commands/space/join.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAA2C;AAC3C,kDAA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EAAE,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;YAChD,IAAI,CAAC,IAAI,EAAE;gBACT,IAAA,mBAAY,EAAC,OAAO,CAAC,CAAC;aACvB;YAED,OAAO;gBACL,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE;gBACtB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;gBAC/B,OAAO,EAAE,IAAA,iBAAU,EAAC,OAAO,CAAC;aAC7B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;;AAzCH,uBA0CC;AAzCiB,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,wBAAwB,CAAC;AACvC,UAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,UAAU,EAAE,YAAK,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE,iBAAiB;KAC/B,CAAC;IACF,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,mBAAmB;KACjC,CAAC;CACH,CAAC"}
|
|
@@ -10,11 +10,11 @@ class List extends base_command_1.BaseCommand {
|
|
|
10
10
|
async run() {
|
|
11
11
|
const { flags } = await this.parse(List);
|
|
12
12
|
return await this.execWithClient(async (client) => {
|
|
13
|
-
const { value:
|
|
13
|
+
const { value: spaces = [] } = await client.echo.querySpaces();
|
|
14
14
|
if (!flags.json) {
|
|
15
|
-
(0, util_1.printSpaces)(
|
|
15
|
+
(0, util_1.printSpaces)(spaces, flags);
|
|
16
16
|
}
|
|
17
|
-
return (0, util_1.mapSpaces)(
|
|
17
|
+
return (0, util_1.mapSpaces)(spaces);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/space/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AAIpC,qDAAiD;AACjD,qCAAoD;AAEpD,MAAqB,IAAK,SAAQ,0BAAW;IAQ3C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/space/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AAIpC,qDAAiD;AACjD,qCAAoD;AAEpD,MAAqB,IAAK,SAAQ,0BAAW;IAQ3C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC/D,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;gBACf,IAAA,kBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;aAC5B;YAED,OAAO,IAAA,gBAAS,EAAC,MAAM,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;;AAnBH,uBAoBC;AAnBiB,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,cAAc,CAAC;AAC7B,UAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,GAAG,YAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE;CAC1B,CAAC"}
|
|
@@ -11,16 +11,16 @@ class Members extends base_command_1.BaseCommand {
|
|
|
11
11
|
const { args, flags } = await this.parse(Members);
|
|
12
12
|
let { key } = args;
|
|
13
13
|
return await this.execWithClient(async (client) => {
|
|
14
|
-
const { value:
|
|
14
|
+
const { value: spaces = [] } = await client.echo.querySpaces();
|
|
15
15
|
if (!key) {
|
|
16
|
-
key = await (0, util_1.selectSpace)(
|
|
16
|
+
key = await (0, util_1.selectSpace)(spaces);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
18
|
+
const space = spaces.find((space) => space.key.toHex().startsWith(key));
|
|
19
|
+
if (!space) {
|
|
20
20
|
this.log('Invalid key');
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
const { value: members = [] } =
|
|
23
|
+
const { value: members = [] } = space.queryMembers();
|
|
24
24
|
if (!flags.json) {
|
|
25
25
|
(0, util_1.printMembers)(members, flags);
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../../../src/commands/space/members.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AAIpC,qDAAiD;AACjD,qCAAmE;AAEnE,MAAqB,OAAQ,SAAQ,0BAAW;IAc9C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAEnB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"members.js","sourceRoot":"","sources":["../../../../src/commands/space/members.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AAIpC,qDAAiD;AACjD,qCAAmE;AAEnE,MAAqB,OAAQ,SAAQ,0BAAW;IAc9C,KAAK,CAAC,GAAG;QACP,MAAM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21 @@
|
|
|
1
|
-
export declare const DX_ENVIRONMENT:
|
|
1
|
+
export declare const DX_ENVIRONMENT: undefined;
|
|
2
2
|
export declare const DX_RELEASE: undefined;
|
|
3
3
|
export declare const SENTRY_DESTINATION: undefined;
|
|
4
4
|
export declare const TELEMETRY_API_KEY: undefined;
|
|
5
|
+
export declare const IPDATA_API_KEY: undefined;
|
|
5
6
|
export declare type TelemetryContext = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
mode: 'disabled' | 'basic' | 'full';
|
|
8
|
+
installationId?: string;
|
|
9
|
+
group?: string;
|
|
10
|
+
environment?: string;
|
|
11
|
+
release?: string;
|
|
12
|
+
timezone: string;
|
|
13
|
+
runtime: string;
|
|
14
|
+
os: string;
|
|
15
|
+
arch: string;
|
|
16
|
+
ci: boolean;
|
|
17
|
+
[key: string]: any;
|
|
10
18
|
};
|
|
19
|
+
export declare const disableTelemetry: (configDir: string) => Promise<void>;
|
|
11
20
|
export declare const getTelemetryContext: (configDir: string) => Promise<TelemetryContext>;
|
|
12
21
|
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/util/telemetry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/util/telemetry.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,cAAc,WAA0C,CAAC;AACtE,eAAO,MAAM,UAAU,WAAsC,CAAC;AAC9D,eAAO,MAAM,kBAAkB,WAA8C,CAAC;AAC9E,eAAO,MAAM,iBAAiB,WAA6C,CAAC;AAC5E,eAAO,MAAM,cAAc,WAA0C,CAAC;AAEtE,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,OAAO,CAAC;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAaF,eAAO,MAAM,gBAAgB,cAAqB,MAAM,kBAiBvD,CAAC;AAEF,eAAO,MAAM,mBAAmB,cAAqB,MAAM,KAAG,QAAQ,gBAAgB,CAarF,CAAC"}
|
|
@@ -5,24 +5,49 @@
|
|
|
5
5
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
6
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
7
|
};
|
|
8
|
-
var _a, _b, _c, _d;
|
|
8
|
+
var _a, _b, _c, _d, _e;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.getTelemetryContext = exports.TELEMETRY_API_KEY = exports.SENTRY_DESTINATION = exports.DX_RELEASE = exports.DX_ENVIRONMENT = void 0;
|
|
10
|
+
exports.getTelemetryContext = exports.disableTelemetry = exports.IPDATA_API_KEY = exports.TELEMETRY_API_KEY = exports.SENTRY_DESTINATION = exports.DX_RELEASE = exports.DX_ENVIRONMENT = void 0;
|
|
11
11
|
const js_yaml_1 = __importDefault(require("js-yaml"));
|
|
12
12
|
const promises_1 = require("node:fs/promises");
|
|
13
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
13
14
|
const node_path_1 = require("node:path");
|
|
14
15
|
const uuid_1 = require("uuid");
|
|
15
16
|
const sentry_1 = require("@dxos/sentry");
|
|
17
|
+
const telemetry_1 = require("@dxos/telemetry");
|
|
16
18
|
const telemetryrc_json_1 = __importDefault(require("./telemetryrc.json"));
|
|
17
19
|
exports.DX_ENVIRONMENT = (_a = telemetryrc_json_1.default.DX_ENVIRONMENT) !== null && _a !== void 0 ? _a : undefined;
|
|
18
20
|
exports.DX_RELEASE = (_b = telemetryrc_json_1.default.DX_RELEASE) !== null && _b !== void 0 ? _b : undefined;
|
|
19
21
|
exports.SENTRY_DESTINATION = (_c = telemetryrc_json_1.default.SENTRY_DESTINATION) !== null && _c !== void 0 ? _c : undefined;
|
|
20
22
|
exports.TELEMETRY_API_KEY = (_d = telemetryrc_json_1.default.TELEMETRY_API_KEY) !== null && _d !== void 0 ? _d : undefined;
|
|
23
|
+
exports.IPDATA_API_KEY = (_e = telemetryrc_json_1.default.IPDATA_API_KEY) !== null && _e !== void 0 ? _e : undefined;
|
|
21
24
|
const DEFAULTS = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
mode: 'basic',
|
|
26
|
+
environment: exports.DX_ENVIRONMENT,
|
|
27
|
+
release: exports.DX_RELEASE,
|
|
28
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
29
|
+
runtime: `node ${process.version}`,
|
|
30
|
+
os: node_os_1.default.platform(),
|
|
31
|
+
arch: node_os_1.default.arch(),
|
|
32
|
+
ci: process.env.CI === 'true'
|
|
25
33
|
};
|
|
34
|
+
const disableTelemetry = async (configDir) => {
|
|
35
|
+
if (!exports.TELEMETRY_API_KEY) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const { installationId } = await (0, exports.getTelemetryContext)(configDir);
|
|
39
|
+
const path = (0, node_path_1.join)(configDir, '.telemetry-disabled');
|
|
40
|
+
if (await exists(path)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
(0, telemetry_1.init)({ apiKey: exports.TELEMETRY_API_KEY, batchSize: 1, enable: true });
|
|
44
|
+
(0, telemetry_1.event)({
|
|
45
|
+
installationId,
|
|
46
|
+
name: 'cli.telemetry.disable'
|
|
47
|
+
});
|
|
48
|
+
await (0, promises_1.writeFile)(path, '', 'utf-8');
|
|
49
|
+
};
|
|
50
|
+
exports.disableTelemetry = disableTelemetry;
|
|
26
51
|
const getTelemetryContext = async (configDir) => {
|
|
27
52
|
var _a;
|
|
28
53
|
const configDirExists = await exists(configDir);
|
|
@@ -56,9 +81,9 @@ const validate = (contextString) => {
|
|
|
56
81
|
}
|
|
57
82
|
};
|
|
58
83
|
// TODO(wittjosiah): Factor out.
|
|
59
|
-
const exists = async (
|
|
84
|
+
const exists = async (...args) => {
|
|
60
85
|
try {
|
|
61
|
-
const result = await (0, promises_1.stat)(
|
|
86
|
+
const result = await (0, promises_1.stat)((0, node_path_1.join)(...args));
|
|
62
87
|
return !!result;
|
|
63
88
|
}
|
|
64
89
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/util/telemetry.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;AAEF,sDAA2B;AAC3B,+CAAoE;AACpE,yCAAiC;AACjC,+BAA4D;AAE5D,yCAAgD;
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/util/telemetry.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;AAEF,sDAA2B;AAC3B,+CAAoE;AACpE,sDAAyB;AACzB,yCAAiC;AACjC,+BAA4D;AAE5D,yCAAgD;AAChD,+CAA8C;AAE9C,0EAA6C;AAEhC,QAAA,cAAc,GAAG,MAAA,0BAAW,CAAC,cAAc,mCAAI,SAAS,CAAC;AACzD,QAAA,UAAU,GAAG,MAAA,0BAAW,CAAC,UAAU,mCAAI,SAAS,CAAC;AACjD,QAAA,kBAAkB,GAAG,MAAA,0BAAW,CAAC,kBAAkB,mCAAI,SAAS,CAAC;AACjE,QAAA,iBAAiB,GAAG,MAAA,0BAAW,CAAC,iBAAiB,mCAAI,SAAS,CAAC;AAC/D,QAAA,cAAc,GAAG,MAAA,0BAAW,CAAC,cAA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AC,CAAC;AAEF,gCAAgC;AAChC,MAAM,MAAM,GAAG,KAAK,EAAE,GAAG,IAAc,EAAoB,EAAE;IAC3D,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,IAAA,eAAI,EAAC,IAAA,gBAAI,EAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACzC,OAAO,CAAC,CAAC,MAAM,CAAC;KACjB;IAAC,OAAO,GAAQ,EAAE;QACjB,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,KAAK,CAAC;SACd;aAAM;YACL,MAAM,GAAG,CAAC;SACX;KACF;AACH,CAAC,CAAC"}
|
package/dist/src/util/util.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const selectSpace: (
|
|
3
|
-
export declare const mapSpaces: (
|
|
1
|
+
import { Space, SpaceMember } from '@dxos/client';
|
|
2
|
+
export declare const selectSpace: (spaces: Space[]) => Promise<any>;
|
|
3
|
+
export declare const mapSpaces: (spaces: Space[], truncateKeys?: boolean) => {
|
|
4
4
|
key: string;
|
|
5
5
|
name: any;
|
|
6
6
|
}[];
|
|
7
|
-
export declare const printSpaces: (
|
|
8
|
-
export declare const mapMembers: (members:
|
|
9
|
-
|
|
7
|
+
export declare const printSpaces: (spaces: Space[], flags?: {}) => void;
|
|
8
|
+
export declare const mapMembers: (members: SpaceMember[], truncateKeys?: boolean) => {
|
|
9
|
+
key: string;
|
|
10
|
+
name: string | undefined;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const printMembers: (members: SpaceMember[], flags?: {}) => void;
|
|
10
13
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAUlD,eAAO,MAAM,WAAW,WAAkB,KAAK,EAAE,iBAgBhD,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,KAAK,EAAE;;;GAKxC,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,KAAK,EAAE,qBAe1C,CAAC;AAOF,eAAO,MAAM,UAAU,YAAa,WAAW,EAAE;;;GAKhD,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,WAAW,EAAE,qBAelD,CAAC"}
|
package/dist/src/util/util.js
CHANGED
|
@@ -10,7 +10,7 @@ const maybeTruncateKey = (key, truncate = false) => (truncate ? (0, debug_1.trun
|
|
|
10
10
|
//
|
|
11
11
|
// Spaces
|
|
12
12
|
//
|
|
13
|
-
const selectSpace = async (
|
|
13
|
+
const selectSpace = async (spaces) => {
|
|
14
14
|
// eslint-disable-next-line no-eval
|
|
15
15
|
const inquirer = (await eval('import("inquirer")')).default;
|
|
16
16
|
const { key } = await inquirer.prompt([
|
|
@@ -18,24 +18,24 @@ const selectSpace = async (parties) => {
|
|
|
18
18
|
name: 'key',
|
|
19
19
|
type: 'list',
|
|
20
20
|
message: 'Select a space:',
|
|
21
|
-
choices:
|
|
22
|
-
name: `[${(0, debug_1.truncateKey)(
|
|
23
|
-
value:
|
|
21
|
+
choices: spaces.map((space) => ({
|
|
22
|
+
name: `[${(0, debug_1.truncateKey)(space.key, 8)}] ${space.getProperty('name')}`,
|
|
23
|
+
value: space.key
|
|
24
24
|
}))
|
|
25
25
|
}
|
|
26
26
|
]);
|
|
27
27
|
return key;
|
|
28
28
|
};
|
|
29
29
|
exports.selectSpace = selectSpace;
|
|
30
|
-
const mapSpaces = (
|
|
31
|
-
return
|
|
32
|
-
key: maybeTruncateKey(
|
|
33
|
-
name:
|
|
30
|
+
const mapSpaces = (spaces, truncateKeys = false) => {
|
|
31
|
+
return spaces.map((space) => ({
|
|
32
|
+
key: maybeTruncateKey(space.key, truncateKeys),
|
|
33
|
+
name: space.getProperty('name')
|
|
34
34
|
}));
|
|
35
35
|
};
|
|
36
36
|
exports.mapSpaces = mapSpaces;
|
|
37
|
-
const printSpaces = (
|
|
38
|
-
core_1.CliUx.ux.table((0, exports.mapSpaces)(
|
|
37
|
+
const printSpaces = (spaces, flags = {}) => {
|
|
38
|
+
core_1.CliUx.ux.table((0, exports.mapSpaces)(spaces, true), {
|
|
39
39
|
key: {
|
|
40
40
|
header: 'Space key'
|
|
41
41
|
},
|
|
@@ -52,19 +52,22 @@ exports.printSpaces = printSpaces;
|
|
|
52
52
|
//
|
|
53
53
|
// TODO(burdon): Export proto type.
|
|
54
54
|
const mapMembers = (members, truncateKeys = false) => {
|
|
55
|
-
return members.map((member) =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
return members.map((member) => {
|
|
56
|
+
var _a;
|
|
57
|
+
return ({
|
|
58
|
+
key: maybeTruncateKey(member.identityKey, truncateKeys),
|
|
59
|
+
name: (_a = member.profile) === null || _a === void 0 ? void 0 : _a.displayName
|
|
60
|
+
});
|
|
61
|
+
});
|
|
59
62
|
};
|
|
60
63
|
exports.mapMembers = mapMembers;
|
|
61
64
|
const printMembers = (members, flags = {}) => {
|
|
62
65
|
core_1.CliUx.ux.table((0, exports.mapMembers)(members, true), {
|
|
63
66
|
key: {
|
|
64
|
-
header: '
|
|
67
|
+
header: 'Identity key'
|
|
65
68
|
},
|
|
66
69
|
name: {
|
|
67
|
-
header: '
|
|
70
|
+
header: 'Display name'
|
|
68
71
|
}
|
|
69
72
|
}, {
|
|
70
73
|
...flags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAoC;AAGpC,uCAA0C;AAG1C,MAAM,gBAAgB,GA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AE,KAAK,GAAG,EAAE,EAAE,EAAE;IACjE,YAAK,CAAC,EAAE,CAAC,KAAK,CACZ,IAAA,kBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,EACzB;QACE,GAAG,EAAE;YACH,MAAM,EAAE,cAAc;SACvB;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,cAAc;SACvB;KACF,EACD;QACE,GAAG,KAAK;KACT,CACF,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,YAAY,gBAevB"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.1.1","commands":{"app:create":{"id":"app:create","description":"Create a DXOS project.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"tag":{"name":"tag","type":"option","description":"Git tag or branch of the DXOS repo to checkout.","multiple":false,"default":"production"},"template":{"name":"template","type":"option","char":"t","description":"Template to use when creating the project.","multiple":false,"options":["hello","bare"],"default":"hello"}},"args":[{"name":"name","description":"Name of the project","required":true}]},"app:list":{"id":"app:list","description":"List apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"app:publish":{"id":"app:publish","description":"Publish apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"configPath":{"name":"configPath","type":"option","description":"Path to dx.yml","multiple":false},"skipExisting":{"name":"skipExisting","type":"boolean","description":"Do not update content on KUBE if version already exists","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"option","description":"Version of modules to publish","multiple":false}},"args":[]},"config":{"id":"config","description":"Show config file.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:create":{"id":"halo:create","description":"Create HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"username"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo":{"id":"halo","description":"Show HALO profile.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:recover":{"id":"halo:recover","description":"Recover HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"seedphrase"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"reset":{"id":"reset","description":"Reset all data.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"shell":{"id":"shell","description":"Interactive shell.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:create":{"id":"space:create","description":"Create space.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"name"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space":{"id":"space","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:invite":{"id":"space:invite","description":"Create space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[{"name":"key"}]},"space:join":{"id":"space:join","description":"Join space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"invitation":{"name":"invitation","type":"option","description":"Invitation code","multiple":false},"secret":{"name":"secret","type":"option","description":"Invitation secret","multiple":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:list":{"id":"space:list","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:members":{"id":"space:members","description":"List space members.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[{"name":"key"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
|
|
1
|
+
{"version":"0.1.3","commands":{"app:create":{"id":"app:create","description":"Create a DXOS project.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"tag":{"name":"tag","type":"option","description":"Git tag or branch of the DXOS repo to checkout.","multiple":false,"default":"production"},"template":{"name":"template","type":"option","char":"t","description":"Template to use when creating the project.","multiple":false,"options":["hello","bare"],"default":"hello"}},"args":[{"name":"name","description":"Name of the project","required":true}]},"app:list":{"id":"app:list","description":"List apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"app:publish":{"id":"app:publish","description":"Publish apps.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"configPath":{"name":"configPath","type":"option","description":"Path to dx.yml","multiple":false},"skipExisting":{"name":"skipExisting","type":"boolean","description":"Do not update content on KUBE if version already exists","allowNo":false},"verbose":{"name":"verbose","type":"boolean","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"option","description":"Version of modules to publish","multiple":false}},"args":[]},"config":{"id":"config","description":"Show config file.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:create":{"id":"halo:create","description":"Create HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"displayName"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo":{"id":"halo","description":"Show HALO profile.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"halo:recover":{"id":"halo:recover","description":"Recover HALO.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"seedphrase"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"reset":{"id":"reset","description":"Reset all data.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"shell":{"id":"shell","description":"Interactive shell.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:create":{"id":"space:create","description":"Create space.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[{"name":"name"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space":{"id":"space","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[]},"space:invite":{"id":"space:invite","description":"Create space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30}},"args":[{"name":"key"}]},"space:join":{"id":"space:join","description":"Join space invitation.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"invitation":{"name":"invitation","type":"option","description":"Invitation code","multiple":false},"secret":{"name":"secret","type":"option","description":"Invitation secret","multiple":false}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:list":{"id":"space:list","description":"List spaces.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"space:members":{"id":"space:members","description":"List space members.","strict":true,"pluginName":"@dxos/cli","pluginAlias":"@dxos/cli","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"Specify config file","multiple":false},"timeout":{"name":"timeout","type":"option","description":"Timeout in seconds","multiple":false,"default":30},"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[{"name":"key"}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"/oclif.manifest.json"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dxos/async": "0.1.
|
|
27
|
-
"@dxos/client": "0.1.
|
|
28
|
-
"@dxos/config": "0.1.
|
|
29
|
-
"@dxos/debug": "0.1.
|
|
30
|
-
"@dxos/keys": "0.1.
|
|
31
|
-
"@dxos/plate": "0.1.
|
|
32
|
-
"@dxos/protocols": "0.1.
|
|
33
|
-
"@dxos/rpc": "0.1.
|
|
34
|
-
"@dxos/sentry": "0.1.
|
|
35
|
-
"@dxos/telemetry": "0.1.
|
|
26
|
+
"@dxos/async": "0.1.3",
|
|
27
|
+
"@dxos/client": "0.1.3",
|
|
28
|
+
"@dxos/config": "0.1.3",
|
|
29
|
+
"@dxos/debug": "0.1.3",
|
|
30
|
+
"@dxos/keys": "0.1.3",
|
|
31
|
+
"@dxos/plate": "0.1.3",
|
|
32
|
+
"@dxos/protocols": "0.1.3",
|
|
33
|
+
"@dxos/rpc": "0.1.3",
|
|
34
|
+
"@dxos/sentry": "0.1.3",
|
|
35
|
+
"@dxos/telemetry": "0.1.3",
|
|
36
36
|
"@oclif/core": "^1.14.1",
|
|
37
37
|
"@oclif/plugin-help": "^5.1.12",
|
|
38
38
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"@types/fs-extra": "^9.0.4",
|
|
63
63
|
"@types/js-yaml": "^4.0.5",
|
|
64
64
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
65
|
-
"@types/node": "^
|
|
65
|
+
"@types/node": "^18.11.9",
|
|
66
|
+
"@types/node-fetch": "^2.5.10",
|
|
66
67
|
"globby": "^11.1.0",
|
|
67
68
|
"shx": "^0.3.3"
|
|
68
69
|
},
|