@dxos/cli 0.1.6 → 0.1.8

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 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.6 linux-x64 node-v18.12.0
30
+ @dxos/cli/0.1.8 linux-x64 node-v18.12.0
31
31
  $ dx --help [COMMAND]
32
32
  USAGE
33
33
  $ dx COMMAND
@@ -79,7 +79,7 @@ FLAGS
79
79
  -t, --template=<option> [default: hello] Template to use when creating the project.
80
80
  <options: hello|bare>
81
81
  --config=<value> Specify config file
82
- --tag=<value> [default: main] Git tag or branch of the DXOS repo to checkout.
82
+ --tag=<value> Git tag or branch of the DXOS repo to checkout.
83
83
  --timeout=<value> [default: 30] Timeout in seconds
84
84
 
85
85
  DESCRIPTION
@@ -0,0 +1,20 @@
1
+ version: 1
2
+
3
+ runtime:
4
+ client:
5
+ storage:
6
+ persistent: true
7
+ path: '/tmp/dx/cli'
8
+
9
+ services:
10
+ ipfs:
11
+ server: "http://dx.dev.kube.dxos.org:5001/"
12
+ gateway: "http://dx.dev.kube.dxos.org:8888/ipfs"
13
+ signal:
14
+ server: 'wss://dx.dev.kube.dxos.org/.well-known/dx/signal'
15
+ ice:
16
+ - urls: 'turn:dx.dev.kube.dxos.org:3478'
17
+ username: 'dxos'
18
+ credential: 'dxos'
19
+ publisher:
20
+ server: 'wss://dx.dev.kube.dxos.org/.well-known/dx/deploy'
@@ -0,0 +1,20 @@
1
+ version: 1
2
+
3
+ runtime:
4
+ client:
5
+ storage:
6
+ persistent: true
7
+ path: /tmp/dx/cli
8
+
9
+ services:
10
+ ipfs:
11
+ server: http://127.0.0.1:5001/
12
+ gateway: http://127.0.0.1:8888/ipfs
13
+ signal:
14
+ server: ws://127.0.0.1:9002/.well-known/dx/signal
15
+ ice:
16
+ - urls: turn:127.0.0.1:3478
17
+ username: dxos
18
+ credential: dxos
19
+ publisher:
20
+ server: ws://127.0.0.1:9002/.well-known/dx/deploy
@@ -0,0 +1,20 @@
1
+ version: 1
2
+
3
+ runtime:
4
+ client:
5
+ storage:
6
+ persistent: true
7
+ path: '/tmp/dx/cli'
8
+
9
+ services:
10
+ ipfs:
11
+ server: "http://kube.dxos.org:5001/"
12
+ gateway: "http://kube.dxos.org:8888/ipfs"
13
+ signal:
14
+ server: 'wss://kube.dxos.org/.well-known/dx/signal'
15
+ ice:
16
+ - urls: 'turn:kube.dxos.org:3478'
17
+ username: 'dxos'
18
+ credential: 'dxos'
19
+ publisher:
20
+ server: 'wss://kube.dxos.org/.well-known/dx/deploy'
@@ -1,6 +1,5 @@
1
- import { Command, Config } from '@oclif/core';
2
- import { Client } from '@dxos/client';
3
- import { ConfigProto } from '@dxos/config';
1
+ import { Command, Config as OclifConfig } from '@oclif/core';
2
+ import { Client, Config } from '@dxos/client';
4
3
  import { PublisherRpcPeer, TelemetryContext } from './util';
5
4
  export declare abstract class BaseCommand extends Command {
6
5
  private _clientConfig?;
@@ -12,9 +11,9 @@ export declare abstract class BaseCommand extends Command {
12
11
  config: import("@oclif/core/lib/interfaces").OptionFlag<string>;
13
12
  timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
14
13
  };
15
- constructor(argv: string[], config: Config);
14
+ constructor(argv: string[], config: OclifConfig);
16
15
  flags: any;
17
- get clientConfig(): ConfigProto | undefined;
16
+ get clientConfig(): Config | undefined;
18
17
  ok(): void;
19
18
  /**
20
19
  * Load the client config.
@@ -1 +1 @@
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,gBAA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Q,OAAO;IAC/C,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,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;;;MAWnB;gBAEU,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW;IAM/C,KAAK,EAAE,GAAG,CAAC;IAEX,IAAI,YAAY,uBAEf;IAED,EAAE;IAIF;;OAEG;IACY,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAsErB,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"}
@@ -34,19 +34,33 @@ exports.BaseCommand = void 0;
34
34
  const core_1 = require("@oclif/core");
35
35
  const assert_1 = __importDefault(require("assert"));
36
36
  const chalk_1 = __importDefault(require("chalk"));
37
- const debug_1 = __importDefault(require("debug"));
38
- const fs = __importStar(require("fs-extra"));
39
37
  const js_yaml_1 = __importDefault(require("js-yaml"));
40
38
  const node_fetch_1 = __importDefault(require("node-fetch"));
41
- const path = __importStar(require("node:path"));
39
+ const promises_1 = require("node:fs/promises");
40
+ const node_path_1 = require("node:path");
42
41
  const async_1 = require("@dxos/async");
43
42
  const client_1 = require("@dxos/client");
43
+ const log_1 = require("@dxos/log");
44
44
  const Sentry = __importStar(require("@dxos/sentry"));
45
45
  const sentry_1 = require("@dxos/sentry");
46
46
  const Telemetry = __importStar(require("@dxos/telemetry"));
47
47
  const util_1 = require("./util");
48
- const log = (0, debug_1.default)('dxos:cli:main');
49
48
  const ENV_DX_CONFIG = 'DX_CONFIG';
49
+ // TODO(wittjosiah): Factor out.
50
+ const exists = async (...args) => {
51
+ try {
52
+ const result = await (0, promises_1.stat)((0, node_path_1.join)(...args));
53
+ return !!result;
54
+ }
55
+ catch (err) {
56
+ if (/ENOENT/.test(err.message)) {
57
+ return false;
58
+ }
59
+ else {
60
+ throw err;
61
+ }
62
+ }
63
+ };
50
64
  class BaseCommand extends core_1.Command {
51
65
  constructor(argv, config) {
52
66
  super(argv, config);
@@ -106,22 +120,17 @@ class BaseCommand extends core_1.Command {
106
120
  // Load user config file.
107
121
  const { flags } = await this.parse(this.constructor);
108
122
  const { config: configFile } = flags;
109
- if (fs.existsSync(configFile)) {
110
- try {
111
- this._clientConfig = js_yaml_1.default.load(String(fs.readFileSync(configFile)));
112
- }
113
- catch (err) {
114
- Sentry.captureException(err);
115
- console.error(`Invalid config file: ${configFile}`);
116
- }
123
+ const configExists = await exists(configFile);
124
+ const configContent = await (0, promises_1.readFile)(configExists ? configFile : (0, node_path_1.join)(__dirname, '../../config/config.yml'), 'utf-8');
125
+ if (!configExists) {
126
+ void (0, promises_1.writeFile)(configFile, configContent, 'utf-8');
117
127
  }
118
- else {
119
- if (configFile) {
120
- console.error(`Config file not found: ${configFile}`);
121
- }
122
- else {
123
- console.error(`Set config via ${ENV_DX_CONFIG} env variable or config flag.`);
124
- }
128
+ try {
129
+ this._clientConfig = new client_1.Config(js_yaml_1.default.load(configContent));
130
+ }
131
+ catch (err) {
132
+ Sentry.captureException(err);
133
+ console.error(`Invalid config file: ${configFile}`);
125
134
  process.exit(1);
126
135
  }
127
136
  }
@@ -150,10 +159,10 @@ class BaseCommand extends core_1.Command {
150
159
  async getClient() {
151
160
  (0, assert_1.default)(this._clientConfig);
152
161
  if (!this._client) {
153
- log('Creating client...');
162
+ (0, log_1.log)('Creating client...', {}, { file: "packages/devtools/cli/src/base-command.ts", line: 182 });
154
163
  this._client = new client_1.Client({ config: this._clientConfig });
155
164
  await this._client.initialize();
156
- log('Initialized');
165
+ (0, log_1.log)('Initialized', {}, { file: "packages/devtools/cli/src/base-command.ts", line: 185 });
157
166
  }
158
167
  return this._client;
159
168
  }
@@ -164,12 +173,12 @@ class BaseCommand extends core_1.Command {
164
173
  try {
165
174
  const client = await this.getClient();
166
175
  const value = await callback(client);
167
- log('Destroying...');
176
+ (0, log_1.log)('Destroying...', {}, { file: "packages/devtools/cli/src/base-command.ts", line: 198 });
168
177
  await client.destroy();
169
- log('Destroyed');
178
+ (0, log_1.log)('Destroyed', {}, { file: "packages/devtools/cli/src/base-command.ts", line: 200 });
170
179
  // TODO(burdon): Ends with abort signal without sleep (threads still open?)
171
180
  await (0, async_1.sleep)(3000);
172
- log('Done');
181
+ (0, log_1.log)('Done', {}, { file: "packages/devtools/cli/src/base-command.ts", line: 204 });
173
182
  return value;
174
183
  }
175
184
  catch (err) {
@@ -181,11 +190,10 @@ class BaseCommand extends core_1.Command {
181
190
  * Convenience function to wrap command passing in kube publisher.
182
191
  */
183
192
  async execWithPublisher(callback) {
184
- var _b, _c, _d, _e;
185
193
  let rpc;
186
194
  try {
187
195
  (0, assert_1.default)(this._clientConfig);
188
- const wsEndpoint = (_e = (_d = (_c = (_b = this._clientConfig) === null || _b === void 0 ? void 0 : _b.runtime) === null || _c === void 0 ? void 0 : _c.services) === null || _d === void 0 ? void 0 : _d.publisher) === null || _e === void 0 ? void 0 : _e.server;
196
+ const wsEndpoint = this._clientConfig.get('runtime.services.publisher.server');
189
197
  (0, assert_1.default)(wsEndpoint);
190
198
  rpc = new util_1.PublisherRpcPeer(wsEndpoint);
191
199
  await Promise.race([rpc.connected.waitForCount(1), rpc.error.waitForCount(1).then((err) => Promise.reject(err))]);
@@ -218,9 +226,7 @@ BaseCommand.flags = {
218
226
  config: core_1.Flags.string({
219
227
  env: ENV_DX_CONFIG,
220
228
  description: 'Specify config file',
221
- default: async (context) => {
222
- return path.join(context.config.configDir, 'config.yml');
223
- }
229
+ default: async (context) => (0, node_path_1.join)(context.config.configDir, 'config.yml')
224
230
  }),
225
231
  timeout: core_1.Flags.integer({
226
232
  description: 'Timeout in seconds',
@@ -1 +1 @@
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,MAAsB,WAAY,SAAQ,cAAO;IAsB/C,YAAY,IAAc,EAAE,MAAc;QACxC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAnBd,aAAQ,GAAG,KAAK,CAAC;QAqBvB,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;IAC/B,CAAC;IAID,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,EAAE;QACA,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,IAAI;QACjB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAA,0BAAmB,EAAC,IAAI,CAAC,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KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,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;;AA3MH,kCA4MC;;AArMiB,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,CAAC,IAAA,gBAAI,EAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC;KAC9E,CAAC;IAEF,OAAO,EAAE,YAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,EAAE;KACZ,CAAC;CACH,CAAC"}
@@ -7,7 +7,7 @@ export default class Create extends BaseCommand {
7
7
  description: string;
8
8
  }[];
9
9
  static flags: {
10
- tag: import("@oclif/core/lib/interfaces").OptionFlag<string>;
10
+ tag: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
11
11
  template: import("@oclif/core/lib/interfaces").OptionFlag<string>;
12
12
  config: import("@oclif/core/lib/interfaces").OptionFlag<string>;
13
13
  timeout: import("@oclif/core/lib/interfaces").OptionFlag<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/commands/app/create.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,OAAgB,WAAW,SAA4B;IAEvD,OAAgB,IAAI;;;;QAMlB;IAEF,OAAgB,KAAK;;;;;MAanB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA4C1B"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/commands/app/create.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,OAAgB,WAAW,SAA4B;IAEvD,OAAgB,IAAI;;;;QAMlB;IAEF,OAAgB,KAAK;;;;;MAWnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA4C1B"}
@@ -14,7 +14,7 @@ class Create extends base_command_1.BaseCommand {
14
14
  async run() {
15
15
  const { args, flags } = await this.parse(Create);
16
16
  const { name } = args;
17
- const { tag, template } = flags;
17
+ const { tag = `v${this.config.version}`, template } = flags;
18
18
  // TODO(wittjosiah): Cross-platform.
19
19
  const tmpDirectory = `/tmp/dxos-app-create-${Date.now()}`;
20
20
  const templateDirectory = `${tmpDirectory}/packages/apps/templates/${template}-template`;
@@ -65,9 +65,7 @@ Create.args = [
65
65
  Create.flags = {
66
66
  ...base_command_1.BaseCommand.flags,
67
67
  tag: core_1.Flags.string({
68
- description: 'Git tag or branch of the DXOS repo to checkout.',
69
- // TODO(wittjosiah): Use release branch.
70
- default: 'main'
68
+ description: 'Git tag or branch of the DXOS repo to checkout.'
71
69
  }),
72
70
  template: core_1.Flags.string({
73
71
  char: 't',
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/app/create.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AACpC,2DAA0C;AAC1C,+CAAuD;AACvD,yCAAsC;AACtC,qCAA8B;AAE9B,uCAAuD;AAEvD,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IA0B7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QAEhC,oCAAoC;QACpC,MAAM,YAAY,GAAG,wBAAwB,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QAC1D,MAAM,iBAAiB,GAAG,GAAG,YAAY,4BAA4B,QAAQ,WAAW,CAAC;QACzF,MAAM,eAAe,GAAG,GAAG,IAAA,aAAG,GAAE,IAAI,IAAI,EAAE,CAAC;QAE3C,IAAI;YACF,sBAAsB;YACtB,MAAM,IAAA,qBAAS,EAAC,yBAAI,CAAC,CAAC;kFACsD,YAAY;eAC/E,YAAY;yFAC8D,QAAQ;yBACxE,GAAG;OACrB,CAAC,CAAC;YAEH,mBAAmB;YACnB,MAAM,IAAA,gBAAK,EAAC,GAAG,iBAAiB,UAAU,CAAC,CAAC;YAC5C,MAAM,IAAA,mBAAQ,EAAC,GAAG,YAAY,2BAA2B,EAAE,GAAG,iBAAiB,2BAA2B,CAAC,CAAC;YAE5G,6BAA6B;YAC7B,MAAM,IAAA,aAAE,EAAC,GAAG,iBAAiB,eAAe,CAAC,CAAC;YAC9C,MAAM,IAAA,aAAE,EAAC,GAAG,iBAAiB,sBAAsB,CAAC,CAAC;YAErD,iBAA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Ae;gBACf,KAAK,EAAE;oBACL,QAAQ,EAAE,KAAK;oBACf,IAAI;iBACL;aACF,CAAC,CAAC;YACH,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACtD;QAAC,OAAO,GAAQ,EAAE;YACjB,IAAI,CAAC,GAAG,CAAC,qBAAqB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YAC7C,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;SAC9B;gBAAS;YACR,MAAM,IAAA,aAAE,EAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;SAC1D;IACH,CAAC;;AAnEH,yBAoEC;AAnEiB,kBAAW,GAAG,wBAAwB,CAAC;AAEvC,WAAI,GAAG;IACrB;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qBAAqB;KACnC;CACF,CAAC;AAEc,YAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,GAAG,EAAE,YAAK,CAAC,MAAM,CAAC;QAChB,WAAW,EAAE,iDAAiD;KAC/D,CAAC;IACF,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,CAAC"}
@@ -6,10 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const base_command_1 = require("../../base-command");
7
7
  class Config extends base_command_1.BaseCommand {
8
8
  async run() {
9
+ var _a, _b;
9
10
  const { flags } = await this.parse(Config);
10
11
  const { config: configFile } = flags;
11
- this.log(`Config file: ${configFile}\n${JSON.stringify(this.clientConfig, undefined, 2)}`);
12
- return this.clientConfig;
12
+ this.log(`Config file: ${configFile}\n${JSON.stringify((_a = this.clientConfig) === null || _a === void 0 ? void 0 : _a.values, undefined, 2)}`);
13
+ return (_b = this.clientConfig) === null || _b === void 0 ? void 0 : _b.values;
13
14
  }
14
15
  }
15
16
  exports.default = Config;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/config/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IAI7C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,gBAAgB,UAAU,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3F,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;;AATH,yBAUC;AATiB,qBAAc,GAAG,IAAI,CAAC;AACtB,kBAAW,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/config/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,0BAAW;IAI7C,KAAK,CAAC,GAAG;;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,gBAAgB,UAAU,KAAK,IAAI,CAAC,SAAS,CAAC,MAAA,IAAI,CAAC,YAAY,0CAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACnG,OAAO,MAAA,IAAI,CAAC,YAAY,0CAAE,MAAM,CAAC;IACnC,CAAC;;AATH,yBAUC;AATiB,qBAAc,GAAG,IAAI,CAAC;AACtB,kBAAW,GAAG,mBAAmB,CAAC"}
@@ -10,9 +10,9 @@ const fs_1 = __importDefault(require("fs"));
10
10
  const base_command_1 = require("../../base-command");
11
11
  class Reset extends base_command_1.BaseCommand {
12
12
  async run() {
13
- var _a, _b, _c, _d;
13
+ var _a;
14
14
  // TODO(burdon): Warning prompt.
15
- const path = (_d = (_c = (_b = (_a = this.clientConfig) === null || _a === void 0 ? void 0 : _a.runtime) === null || _b === void 0 ? void 0 : _b.client) === null || _c === void 0 ? void 0 : _c.storage) === null || _d === void 0 ? void 0 : _d.path;
15
+ const path = (_a = this.clientConfig) === null || _a === void 0 ? void 0 : _a.get('runtime.client.storage.path');
16
16
  if (path) {
17
17
  fs_1.default.rmSync(path, { recursive: true });
18
18
  this.ok();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/reset/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,4CAAoB;AAEpB,qDAAiD;AAEjD,MAAqB,KAAM,SAAQ,0BAAW;IAG5C,KAAK,CAAC,GAAG;;QACP,gCAAgC;QAChC,MAAM,IAAI,GAAG,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,OAAO,0CAAE,MAAM,0CAAE,OAAO,0CAAE,IAAI,CAAC;QAC/D,IAAI,IAAI,EAAE;YACR,YAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACrC,IAAI,CAAC,EAAE,EAAE,CAAC;SACX;IACH,CAAC;;AAVH,wBAWC;AAViB,iBAAW,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/reset/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,4CAAoB;AAEpB,qDAAiD;AAEjD,MAAqB,KAAM,SAAQ,0BAAW;IAG5C,KAAK,CAAC,GAAG;;QACP,gCAAgC;QAChC,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,6BAA6B,CAAC,CAAC;QACnE,IAAI,IAAI,EAAE;YACR,YAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACrC,IAAI,CAAC,EAAE,EAAE,CAAC;SACX;IACH,CAAC;;AAVH,wBAWC;AAViB,iBAAW,GAAG,iBAAiB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { CID } from 'ipfs-http-client';
2
- import { ConfigProto } from '@dxos/config';
2
+ import { Config } from '@dxos/client';
3
3
  interface UploadOptions {
4
4
  timeout: string | number;
5
5
  progress?: (bytes: number, path?: string) => void;
6
6
  pin?: boolean;
7
7
  }
8
- export declare const uploadToIPFS: (path: string, config?: ConfigProto, options?: UploadOptions) => Promise<CID>;
8
+ export declare const uploadToIPFS: (path: string, config?: Config, options?: UploadOptions) => Promise<CID>;
9
9
  export {};
10
10
  //# sourceMappingURL=ipfs-upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipfs-upload.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/ipfs-upload.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAsB,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,YAAY,SAAgB,MAAM,WAAW,WAAW,YAAY,aAAa,KAAG,QAAQ,GAAG,CA6B3G,CAAC"}
1
+ {"version":3,"file":"ipfs-upload.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/ipfs-upload.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAsB,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,YAAY,SAAgB,MAAM,WAAW,MAAM,YAAY,aAAa,KAAG,QAAQ,GAAG,CA6BtG,CAAC"}
@@ -11,9 +11,8 @@ const assert_1 = __importDefault(require("assert"));
11
11
  const fs_1 = __importDefault(require("fs"));
12
12
  const ipfs_http_client_1 = require("ipfs-http-client");
13
13
  const uploadToIPFS = async (path, config, options) => {
14
- var _a, _b, _c;
15
14
  const { timeout, pin = true, progress } = options || {};
16
- const ipfsServer = (_c = (_b = (_a = config === null || config === void 0 ? void 0 : config.runtime) === null || _a === void 0 ? void 0 : _a.services) === null || _b === void 0 ? void 0 : _b.ipfs) === null || _c === void 0 ? void 0 : _c.server;
15
+ const ipfsServer = config === null || config === void 0 ? void 0 : config.get('runtime.services.ipfs.server');
17
16
  (0, assert_1.default)(ipfsServer, 'Invalid IPFS Server.');
18
17
  const ipfsClient = (0, ipfs_http_client_1.create)({
19
18
  url: ipfsServer,
@@ -1 +1 @@
1
- {"version":3,"file":"ipfs-upload.js","sourceRoot":"","sources":["../../../../src/util/publish/ipfs-upload.ts"],"names":[],"mappings":";AAA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AClB;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;KACpC;SAAM;QACL,MAAM,OAAO,GAAG,YAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,GAAG,CAAC;KACtB;AACH,CAAC,CAAC;AA7BW,QAAA,YAAY,gBA6BvB"}
@@ -1,7 +1,7 @@
1
- import type { ConfigProto } from '@dxos/config';
1
+ import type { Config } from '@dxos/client';
2
2
  import { PackageModule } from './common';
3
3
  export interface PublishParams {
4
- config?: ConfigProto;
4
+ config?: Config;
5
5
  module: PackageModule;
6
6
  }
7
7
  interface PublishArgs {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/publish.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAczC,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,oCAA2C,WAAW,sBAAsB,aAAa,4CAwB5G,CAAC"}
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/util/publish/publish.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAczC,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,oCAA2C,WAAW,sBAAsB,aAAa,4CAwB5G,CAAC"}
@@ -13,7 +13,6 @@ const fs_1 = __importDefault(require("fs"));
13
13
  const get_folder_size_1 = __importDefault(require("get-folder-size"));
14
14
  const path_1 = require("path");
15
15
  const util_1 = require("util");
16
- const debug_1 = require("@dxos/debug");
17
16
  const ipfs_upload_1 = require("./ipfs-upload");
18
17
  const DEFAULT_OUTDIR = 'out';
19
18
  const getFolderSize = (0, util_1.promisify)(get_folder_size_1.default);
@@ -26,7 +25,7 @@ const encodeName = (name) => name.replaceAll(':', '/');
26
25
  const publish = async ({ verbose, timeout, path, pin }, { config, module }) => {
27
26
  var _a, _b;
28
27
  (0, assert_1.default)(module.name, 'Module name is required to publish.');
29
- verbose && (0, debug_1.log)(`Publishing ${module.name}...`);
28
+ verbose && console.log(`Publishing ${module.name}...`);
30
29
  const moduleOut = `out/${encodeName(module.name)}`;
31
30
  const outdir = (_b = path !== null && path !== void 0 ? path : (_a = module.build) === null || _a === void 0 ? void 0 : _a.outdir) !== null && _b !== void 0 ? _b : (fs_1.default.existsSync(moduleOut) ? moduleOut : DEFAULT_OUTDIR);
32
31
  const publishFolder = (0, path_1.join)(process.cwd(), outdir);
@@ -40,7 +39,7 @@ const publish = async ({ verbose, timeout, path, pin }, { config, module }) => {
40
39
  });
41
40
  verbose && bar.update(total);
42
41
  verbose && bar.stop();
43
- verbose && (0, debug_1.log)(`Published ${module.name} to IPFS with cid ${cid.toString()}`);
42
+ verbose && console.log(`Published ${module.name} to IPFS with cid ${cid.toString()}`);
44
43
  return cid;
45
44
  };
46
45
  exports.publish = publish;
@@ -1 +1 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/util/publish/publish.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAC5B,gEAAuC;AACvC,4CAAoB;AACpB,sEAAyC;AACzC,+BAA4B;AAC5B,+BAAiC;AAGjC,uCAAkC;AAGlC,+CAA6C;AAE7C,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,aAAa,GAAG,IAAA,gBAAS,EAAC,yBAAU,CAAC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAexD,MAAM,OAAO,GAAG,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAiB,EAAE,EAAE;;IAC/G,IAAA,gBAAM,EAAC,MAAM,CAAC,IAAI,EAAE,qCAAqC,CAAC,CAAC;IAC3D,OAAO,IAAI,IAAA,WAAG,EAAC,cAAc,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAA,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,mCAAI,CAAC,YAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IACvG,MAAM,aAAa,GAA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MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;KAClE,CAAC,CAAC;IAEH,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;IAEtB,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,MAAM,CAAC,IAAI,qBAAqB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEtF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "DX_ENVIRONMENT": "production",
3
- "DX_RELEASE": "@dxos/cli@0.1.6",
3
+ "DX_RELEASE": "@dxos/cli@0.1.8",
4
4
  "SENTRY_DESTINATION": "https://2647916221e643869965e78469479aa4@o4504012000067584.ingest.sentry.io/4504012027265029",
5
5
  "TELEMETRY_API_KEY": "B00QG6PtJJrJ0VVFe0H5a6bcUUShKyZM",
6
- "IPDATA_API_KEY": ""
6
+ "IPDATA_API_KEY": "ccc5f0cd66dd34a7c31c2ddc61c2bbca2db73892a993982bb3a5f0e2"
7
7
  }
@@ -1 +1 @@
1
- {"version":"0.1.6","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":"main"},"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"}}}}}
1
+ {"version":"0.1.8","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},"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.6",
3
+ "version": "0.1.8",
4
4
  "description": "DXOS CLI",
5
5
  "keywords": [
6
6
  "dxos",
@@ -18,21 +18,22 @@
18
18
  },
19
19
  "files": [
20
20
  "/bin",
21
+ "/config",
21
22
  "/dist",
22
- "/npm-shrinkwrap.json",
23
23
  "/oclif.manifest.json"
24
24
  ],
25
25
  "dependencies": {
26
- "@dxos/async": "0.1.6",
27
- "@dxos/client": "0.1.6",
28
- "@dxos/config": "0.1.6",
29
- "@dxos/debug": "0.1.6",
30
- "@dxos/keys": "0.1.6",
31
- "@dxos/plate": "0.1.6",
32
- "@dxos/protocols": "0.1.6",
33
- "@dxos/rpc": "0.1.6",
34
- "@dxos/sentry": "0.1.6",
35
- "@dxos/telemetry": "0.1.6",
26
+ "@dxos/async": "0.1.8",
27
+ "@dxos/client": "0.1.8",
28
+ "@dxos/config": "0.1.8",
29
+ "@dxos/debug": "0.1.8",
30
+ "@dxos/keys": "0.1.8",
31
+ "@dxos/log": "0.1.8",
32
+ "@dxos/plate": "0.1.8",
33
+ "@dxos/protocols": "0.1.8",
34
+ "@dxos/rpc": "0.1.8",
35
+ "@dxos/sentry": "0.1.8",
36
+ "@dxos/telemetry": "0.1.8",
36
37
  "@oclif/core": "^1.14.1",
37
38
  "@oclif/plugin-help": "^5.1.12",
38
39
  "@oclif/plugin-plugins": "^2.1.0",