@dxos/cli 0.5.9-main.ea1d25b → 0.5.9-next.728078d
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/dist/src/commands/profile/import.d.ts +20 -0
- package/dist/src/commands/profile/import.d.ts.map +1 -0
- package/dist/src/commands/profile/import.js +82 -0
- package/dist/src/commands/profile/import.js.map +1 -0
- package/dist/src/commands/profile/inspect.d.ts +20 -0
- package/dist/src/commands/profile/inspect.d.ts.map +1 -0
- package/dist/src/commands/profile/inspect.js +63 -0
- package/dist/src/commands/profile/inspect.js.map +1 -0
- package/oclif.manifest.json +241 -2
- package/package.json +27 -27
- package/config/config-default.yml +0 -30
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base';
|
|
2
|
+
export default class Import extends BaseCommand<typeof Import> {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
file: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
|
+
'data-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
target: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
agent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
'json-log': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
'json-logfile': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<any>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../../src/commands/profile/import.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAAqB;IAChD,OAAgB,KAAK;;;;;;;;;;;;;MASnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAyC1B"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const core_1 = require("@oclif/core");
|
|
30
|
+
const fs_1 = require("fs");
|
|
31
|
+
const promises_1 = require("fs/promises");
|
|
32
|
+
const path_1 = require("path");
|
|
33
|
+
const log_1 = require("@dxos/log");
|
|
34
|
+
const base_1 = require("../../base");
|
|
35
|
+
class Import extends base_1.BaseCommand {
|
|
36
|
+
async run() {
|
|
37
|
+
const { profile, file, 'dry-run': dryRun, 'data-dir': storageDir } = this.flags;
|
|
38
|
+
const { createLevel, createStorageObjects, importProfileData, decodeProfileArchive } = await Promise.resolve().then(() => __importStar(require('@dxos/client-services')));
|
|
39
|
+
let storageConfig;
|
|
40
|
+
if (!storageDir) {
|
|
41
|
+
log_1.log.info('will overwrite profile', { profile }, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 37, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
42
|
+
storageConfig = this.clientConfig.get('runtime.client.storage');
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const fullPath = (0, path_1.resolve)(storageDir);
|
|
46
|
+
log_1.log.info('importing into', { path: fullPath }, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 41, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
47
|
+
storageConfig = {
|
|
48
|
+
persistent: true,
|
|
49
|
+
dataRoot: fullPath,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if ((0, fs_1.existsSync)(storageConfig.dataRoot)) {
|
|
53
|
+
log_1.log.error('data directory already exists', { path: storageConfig.dataRoot }, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 49, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
54
|
+
throw new Error('Data directory already exists');
|
|
55
|
+
}
|
|
56
|
+
const data = await (0, promises_1.readFile)(file);
|
|
57
|
+
const archive = decodeProfileArchive(data);
|
|
58
|
+
log_1.log.info('importing archive', { entries: archive.storage.length }, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 55, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
59
|
+
if (dryRun) {
|
|
60
|
+
log_1.log.info('dry run, skipping import', {}, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 58, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const { storage } = createStorageObjects(storageConfig);
|
|
64
|
+
const level = await createLevel(storageConfig);
|
|
65
|
+
log_1.log.info('begin profile import', { storageConfig }, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 65, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
66
|
+
await importProfileData({ storage, level }, archive);
|
|
67
|
+
log_1.log.info('done profile import', {}, { file: "packages/devtools/cli/src/commands/profile/import.ts", line: 67, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
Import.description = 'Import profile.';
|
|
71
|
+
Import.flags = {
|
|
72
|
+
...base_1.BaseCommand.flags,
|
|
73
|
+
file: core_1.Flags.string({
|
|
74
|
+
description: 'Archive filename.',
|
|
75
|
+
required: true,
|
|
76
|
+
}),
|
|
77
|
+
'data-dir': core_1.Flags.string({
|
|
78
|
+
description: 'Storage directory.',
|
|
79
|
+
}),
|
|
80
|
+
};
|
|
81
|
+
exports.default = Import;
|
|
82
|
+
//# sourceMappingURL=import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../src/commands/profile/import.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,sCAAoC;AACpC,2BAAgC;AAChC,0CAAuC;AACvC,+BAA+B;AAE/B,mCAAgC;AAGhC,qCAAyC;AAEzC,MAAqB,MAAO,SAAQ,kBAA0B;IAa5D,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhF,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,wDACrF,uBAAuB,GACxB,CAAC;QAEF,IAAI,aAAqC,CAAC;QAC1C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,SAAG,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,OAAO,EAAE,uTAAC,CAAC;YAChD,aAAa,GAAG,IAAI,CAAC,YAAa,CAAC,GAAG,CAAC,wBAAwB,CAAE,CAAC;QACpE,CAAC;aAAM,CAAC;YACN,MAAM,QAAQ,GAAG,IAAA,cAAO,EAAC,U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C,MAAM,CAAC;QACjB,WAAW,EAAE,mBAAmB;QAChC,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,UAAU,EAAE,YAAK,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE,oBAAoB;KAClC,CAAC;CACH,CAAC;kBAXiB,MAAM"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base';
|
|
2
|
+
export default class Inspect extends BaseCommand<typeof Inspect> {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
file: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
|
+
storage: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
target: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
agent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
'json-log': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
'json-logfile': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<any>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../../src/commands/profile/inspect.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW,CAAC,OAAO,OAAO,CAAC;IAC9D,OAAgB,WAAW,SAAqB;IAChD,OAAgB,KAAK;;;;;;;;;;;;;MAUnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAoB1B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const core_1 = require("@oclif/core");
|
|
30
|
+
const promises_1 = require("fs/promises");
|
|
31
|
+
const protocols_1 = require("@dxos/protocols");
|
|
32
|
+
const util_1 = require("@dxos/util");
|
|
33
|
+
const base_1 = require("../../base");
|
|
34
|
+
class Inspect extends base_1.BaseCommand {
|
|
35
|
+
async run() {
|
|
36
|
+
const { file, storage } = this.flags;
|
|
37
|
+
const { decodeProfileArchive } = await Promise.resolve().then(() => __importStar(require('@dxos/client-services')));
|
|
38
|
+
const data = await (0, promises_1.readFile)(file);
|
|
39
|
+
const archive = decodeProfileArchive(data);
|
|
40
|
+
console.log(archive.meta);
|
|
41
|
+
if (storage) {
|
|
42
|
+
console.log('\nStorage entires:\n');
|
|
43
|
+
for (const entry of archive.storage) {
|
|
44
|
+
const key = typeof entry.key === 'string' ? entry.key : JSON.stringify((0, util_1.arrayToBuffer)(entry.key).toString()).slice(1, -1);
|
|
45
|
+
console.log(` ${protocols_1.ProfileArchiveEntryType[entry.type]} ${key}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
Inspect.description = 'Import profile.';
|
|
51
|
+
Inspect.flags = {
|
|
52
|
+
...base_1.BaseCommand.flags,
|
|
53
|
+
file: core_1.Flags.string({
|
|
54
|
+
description: 'Archive filename.',
|
|
55
|
+
required: true,
|
|
56
|
+
}),
|
|
57
|
+
storage: core_1.Flags.boolean({
|
|
58
|
+
description: 'List storage entries.',
|
|
59
|
+
default: false,
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
exports.default = Inspect;
|
|
63
|
+
//# sourceMappingURL=inspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../../../../src/commands/profile/inspect.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;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AO,EAAE,YAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC;kBAZiB,OAAO"}
|
package/oclif.manifest.json
CHANGED
|
@@ -3490,6 +3490,245 @@
|
|
|
3490
3490
|
"update.js"
|
|
3491
3491
|
]
|
|
3492
3492
|
},
|
|
3493
|
+
"profile:import": {
|
|
3494
|
+
"aliases": [],
|
|
3495
|
+
"args": {},
|
|
3496
|
+
"description": "Import profile.",
|
|
3497
|
+
"flags": {
|
|
3498
|
+
"json": {
|
|
3499
|
+
"description": "Output as JSON.",
|
|
3500
|
+
"name": "json",
|
|
3501
|
+
"allowNo": false,
|
|
3502
|
+
"type": "boolean"
|
|
3503
|
+
},
|
|
3504
|
+
"verbose": {
|
|
3505
|
+
"char": "v",
|
|
3506
|
+
"description": "Verbose output",
|
|
3507
|
+
"name": "verbose",
|
|
3508
|
+
"allowNo": false,
|
|
3509
|
+
"type": "boolean"
|
|
3510
|
+
},
|
|
3511
|
+
"dry-run": {
|
|
3512
|
+
"description": "Dry run.",
|
|
3513
|
+
"name": "dry-run",
|
|
3514
|
+
"allowNo": false,
|
|
3515
|
+
"type": "boolean"
|
|
3516
|
+
},
|
|
3517
|
+
"profile": {
|
|
3518
|
+
"description": "User profile.",
|
|
3519
|
+
"env": "DX_PROFILE",
|
|
3520
|
+
"name": "profile",
|
|
3521
|
+
"default": "default",
|
|
3522
|
+
"hasDynamicHelp": false,
|
|
3523
|
+
"multiple": false,
|
|
3524
|
+
"type": "option"
|
|
3525
|
+
},
|
|
3526
|
+
"config": {
|
|
3527
|
+
"aliases": [
|
|
3528
|
+
"c"
|
|
3529
|
+
],
|
|
3530
|
+
"dependsOn": [
|
|
3531
|
+
"profile"
|
|
3532
|
+
],
|
|
3533
|
+
"description": "Config file.",
|
|
3534
|
+
"env": "DX_CONFIG",
|
|
3535
|
+
"name": "config",
|
|
3536
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
3537
|
+
"hasDynamicHelp": false,
|
|
3538
|
+
"helpValue": "path",
|
|
3539
|
+
"multiple": false,
|
|
3540
|
+
"type": "option"
|
|
3541
|
+
},
|
|
3542
|
+
"timeout": {
|
|
3543
|
+
"aliases": [
|
|
3544
|
+
"t"
|
|
3545
|
+
],
|
|
3546
|
+
"description": "Timeout (ms).",
|
|
3547
|
+
"name": "timeout",
|
|
3548
|
+
"default": 60000,
|
|
3549
|
+
"hasDynamicHelp": false,
|
|
3550
|
+
"multiple": false,
|
|
3551
|
+
"type": "option"
|
|
3552
|
+
},
|
|
3553
|
+
"target": {
|
|
3554
|
+
"description": "Target websocket server.",
|
|
3555
|
+
"name": "target",
|
|
3556
|
+
"hasDynamicHelp": false,
|
|
3557
|
+
"multiple": false,
|
|
3558
|
+
"type": "option"
|
|
3559
|
+
},
|
|
3560
|
+
"agent": {
|
|
3561
|
+
"description": "Run command with agent.",
|
|
3562
|
+
"env": "DX_NO_AGENT",
|
|
3563
|
+
"name": "agent",
|
|
3564
|
+
"allowNo": true,
|
|
3565
|
+
"type": "boolean"
|
|
3566
|
+
},
|
|
3567
|
+
"json-log": {
|
|
3568
|
+
"description": "When running in foreground, log JSON format",
|
|
3569
|
+
"name": "json-log",
|
|
3570
|
+
"allowNo": false,
|
|
3571
|
+
"type": "boolean"
|
|
3572
|
+
},
|
|
3573
|
+
"json-logfile": {
|
|
3574
|
+
"description": "JSON log file destination, or 'stdout' or 'stderr'",
|
|
3575
|
+
"name": "json-logfile",
|
|
3576
|
+
"default": "stderr",
|
|
3577
|
+
"hasDynamicHelp": false,
|
|
3578
|
+
"multiple": false,
|
|
3579
|
+
"type": "option"
|
|
3580
|
+
},
|
|
3581
|
+
"file": {
|
|
3582
|
+
"description": "Archive filename.",
|
|
3583
|
+
"name": "file",
|
|
3584
|
+
"required": true,
|
|
3585
|
+
"hasDynamicHelp": false,
|
|
3586
|
+
"multiple": false,
|
|
3587
|
+
"type": "option"
|
|
3588
|
+
},
|
|
3589
|
+
"data-dir": {
|
|
3590
|
+
"description": "Storage directory.",
|
|
3591
|
+
"name": "data-dir",
|
|
3592
|
+
"hasDynamicHelp": false,
|
|
3593
|
+
"multiple": false,
|
|
3594
|
+
"type": "option"
|
|
3595
|
+
}
|
|
3596
|
+
},
|
|
3597
|
+
"hasDynamicHelp": false,
|
|
3598
|
+
"hiddenAliases": [],
|
|
3599
|
+
"id": "profile:import",
|
|
3600
|
+
"pluginAlias": "@dxos/cli",
|
|
3601
|
+
"pluginName": "@dxos/cli",
|
|
3602
|
+
"pluginType": "core",
|
|
3603
|
+
"strict": true,
|
|
3604
|
+
"isESM": false,
|
|
3605
|
+
"relativePath": [
|
|
3606
|
+
"dist",
|
|
3607
|
+
"src",
|
|
3608
|
+
"commands",
|
|
3609
|
+
"profile",
|
|
3610
|
+
"import.js"
|
|
3611
|
+
]
|
|
3612
|
+
},
|
|
3613
|
+
"profile:inspect": {
|
|
3614
|
+
"aliases": [],
|
|
3615
|
+
"args": {},
|
|
3616
|
+
"description": "Import profile.",
|
|
3617
|
+
"flags": {
|
|
3618
|
+
"json": {
|
|
3619
|
+
"description": "Output as JSON.",
|
|
3620
|
+
"name": "json",
|
|
3621
|
+
"allowNo": false,
|
|
3622
|
+
"type": "boolean"
|
|
3623
|
+
},
|
|
3624
|
+
"verbose": {
|
|
3625
|
+
"char": "v",
|
|
3626
|
+
"description": "Verbose output",
|
|
3627
|
+
"name": "verbose",
|
|
3628
|
+
"allowNo": false,
|
|
3629
|
+
"type": "boolean"
|
|
3630
|
+
},
|
|
3631
|
+
"dry-run": {
|
|
3632
|
+
"description": "Dry run.",
|
|
3633
|
+
"name": "dry-run",
|
|
3634
|
+
"allowNo": false,
|
|
3635
|
+
"type": "boolean"
|
|
3636
|
+
},
|
|
3637
|
+
"profile": {
|
|
3638
|
+
"description": "User profile.",
|
|
3639
|
+
"env": "DX_PROFILE",
|
|
3640
|
+
"name": "profile",
|
|
3641
|
+
"default": "default",
|
|
3642
|
+
"hasDynamicHelp": false,
|
|
3643
|
+
"multiple": false,
|
|
3644
|
+
"type": "option"
|
|
3645
|
+
},
|
|
3646
|
+
"config": {
|
|
3647
|
+
"aliases": [
|
|
3648
|
+
"c"
|
|
3649
|
+
],
|
|
3650
|
+
"dependsOn": [
|
|
3651
|
+
"profile"
|
|
3652
|
+
],
|
|
3653
|
+
"description": "Config file.",
|
|
3654
|
+
"env": "DX_CONFIG",
|
|
3655
|
+
"name": "config",
|
|
3656
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
3657
|
+
"hasDynamicHelp": false,
|
|
3658
|
+
"helpValue": "path",
|
|
3659
|
+
"multiple": false,
|
|
3660
|
+
"type": "option"
|
|
3661
|
+
},
|
|
3662
|
+
"timeout": {
|
|
3663
|
+
"aliases": [
|
|
3664
|
+
"t"
|
|
3665
|
+
],
|
|
3666
|
+
"description": "Timeout (ms).",
|
|
3667
|
+
"name": "timeout",
|
|
3668
|
+
"default": 60000,
|
|
3669
|
+
"hasDynamicHelp": false,
|
|
3670
|
+
"multiple": false,
|
|
3671
|
+
"type": "option"
|
|
3672
|
+
},
|
|
3673
|
+
"target": {
|
|
3674
|
+
"description": "Target websocket server.",
|
|
3675
|
+
"name": "target",
|
|
3676
|
+
"hasDynamicHelp": false,
|
|
3677
|
+
"multiple": false,
|
|
3678
|
+
"type": "option"
|
|
3679
|
+
},
|
|
3680
|
+
"agent": {
|
|
3681
|
+
"description": "Run command with agent.",
|
|
3682
|
+
"env": "DX_NO_AGENT",
|
|
3683
|
+
"name": "agent",
|
|
3684
|
+
"allowNo": true,
|
|
3685
|
+
"type": "boolean"
|
|
3686
|
+
},
|
|
3687
|
+
"json-log": {
|
|
3688
|
+
"description": "When running in foreground, log JSON format",
|
|
3689
|
+
"name": "json-log",
|
|
3690
|
+
"allowNo": false,
|
|
3691
|
+
"type": "boolean"
|
|
3692
|
+
},
|
|
3693
|
+
"json-logfile": {
|
|
3694
|
+
"description": "JSON log file destination, or 'stdout' or 'stderr'",
|
|
3695
|
+
"name": "json-logfile",
|
|
3696
|
+
"default": "stderr",
|
|
3697
|
+
"hasDynamicHelp": false,
|
|
3698
|
+
"multiple": false,
|
|
3699
|
+
"type": "option"
|
|
3700
|
+
},
|
|
3701
|
+
"file": {
|
|
3702
|
+
"description": "Archive filename.",
|
|
3703
|
+
"name": "file",
|
|
3704
|
+
"required": true,
|
|
3705
|
+
"hasDynamicHelp": false,
|
|
3706
|
+
"multiple": false,
|
|
3707
|
+
"type": "option"
|
|
3708
|
+
},
|
|
3709
|
+
"storage": {
|
|
3710
|
+
"description": "List storage entries.",
|
|
3711
|
+
"name": "storage",
|
|
3712
|
+
"allowNo": false,
|
|
3713
|
+
"type": "boolean"
|
|
3714
|
+
}
|
|
3715
|
+
},
|
|
3716
|
+
"hasDynamicHelp": false,
|
|
3717
|
+
"hiddenAliases": [],
|
|
3718
|
+
"id": "profile:inspect",
|
|
3719
|
+
"pluginAlias": "@dxos/cli",
|
|
3720
|
+
"pluginName": "@dxos/cli",
|
|
3721
|
+
"pluginType": "core",
|
|
3722
|
+
"strict": true,
|
|
3723
|
+
"isESM": false,
|
|
3724
|
+
"relativePath": [
|
|
3725
|
+
"dist",
|
|
3726
|
+
"src",
|
|
3727
|
+
"commands",
|
|
3728
|
+
"profile",
|
|
3729
|
+
"inspect.js"
|
|
3730
|
+
]
|
|
3731
|
+
},
|
|
3493
3732
|
"reset": {
|
|
3494
3733
|
"aliases": [],
|
|
3495
3734
|
"args": {},
|
|
@@ -4996,7 +5235,7 @@
|
|
|
4996
5235
|
"name": {
|
|
4997
5236
|
"description": "Tunnel name",
|
|
4998
5237
|
"name": "name",
|
|
4999
|
-
"default": "
|
|
5238
|
+
"default": "pasta-hamper-neptune-item",
|
|
5000
5239
|
"hasDynamicHelp": false,
|
|
5001
5240
|
"multiple": false,
|
|
5002
5241
|
"type": "option"
|
|
@@ -5629,5 +5868,5 @@
|
|
|
5629
5868
|
]
|
|
5630
5869
|
}
|
|
5631
5870
|
},
|
|
5632
|
-
"version": "0.5.9-
|
|
5871
|
+
"version": "0.5.9-next.728078d"
|
|
5633
5872
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.5.9-
|
|
3
|
+
"version": "0.5.9-next.728078d",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -52,32 +52,32 @@
|
|
|
52
52
|
"uuid": "^8.3.2",
|
|
53
53
|
"ws": "^8.14.2",
|
|
54
54
|
"wtfnode": "^0.9.1",
|
|
55
|
-
"@dxos/agent": "0.5.9-
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/cli-
|
|
59
|
-
"@dxos/cli-
|
|
60
|
-
"@dxos/client": "0.5.9-
|
|
61
|
-
"@dxos/client-
|
|
62
|
-
"@dxos/client-
|
|
63
|
-
"@dxos/config": "0.5.9-
|
|
64
|
-
"@dxos/context": "0.5.9-
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/observability": "0.5.9-
|
|
74
|
-
"@dxos/plate": "0.5.9-
|
|
75
|
-
"@dxos/process": "0.5.9-
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/rpc": "0.5.9-
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
55
|
+
"@dxos/agent": "0.5.9-next.728078d",
|
|
56
|
+
"@dxos/bare-template": "0.5.9-next.728078d",
|
|
57
|
+
"@dxos/async": "0.5.9-next.728078d",
|
|
58
|
+
"@dxos/cli-base": "0.5.9-next.728078d",
|
|
59
|
+
"@dxos/cli-composer": "0.5.9-next.728078d",
|
|
60
|
+
"@dxos/client": "0.5.9-next.728078d",
|
|
61
|
+
"@dxos/client-protocol": "0.5.9-next.728078d",
|
|
62
|
+
"@dxos/client-services": "0.5.9-next.728078d",
|
|
63
|
+
"@dxos/config": "0.5.9-next.728078d",
|
|
64
|
+
"@dxos/context": "0.5.9-next.728078d",
|
|
65
|
+
"@dxos/echo-schema": "0.5.9-next.728078d",
|
|
66
|
+
"@dxos/debug": "0.5.9-next.728078d",
|
|
67
|
+
"@dxos/invariant": "0.5.9-next.728078d",
|
|
68
|
+
"@dxos/functions": "0.5.9-next.728078d",
|
|
69
|
+
"@dxos/hello-template": "0.5.9-next.728078d",
|
|
70
|
+
"@dxos/network-manager": "0.5.9-next.728078d",
|
|
71
|
+
"@dxos/node-std": "0.5.9-next.728078d",
|
|
72
|
+
"@dxos/log": "0.5.9-next.728078d",
|
|
73
|
+
"@dxos/observability": "0.5.9-next.728078d",
|
|
74
|
+
"@dxos/plate": "0.5.9-next.728078d",
|
|
75
|
+
"@dxos/process": "0.5.9-next.728078d",
|
|
76
|
+
"@dxos/protocols": "0.5.9-next.728078d",
|
|
77
|
+
"@dxos/random": "0.5.9-next.728078d",
|
|
78
|
+
"@dxos/rpc": "0.5.9-next.728078d",
|
|
79
|
+
"@dxos/util": "0.5.9-next.728078d",
|
|
80
|
+
"@dxos/tasks-template": "0.5.9-next.728078d"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@effect/schema": "^0.67.16",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
version: 1
|
|
2
|
-
|
|
3
|
-
runtime:
|
|
4
|
-
client:
|
|
5
|
-
storage:
|
|
6
|
-
persistent: true
|
|
7
|
-
|
|
8
|
-
services:
|
|
9
|
-
ipfs:
|
|
10
|
-
server: https://kube.dxos.org/ipfs/api
|
|
11
|
-
gateway: https://kube.dxos.org/ipfs/gateway
|
|
12
|
-
signaling:
|
|
13
|
-
- server: wss://dev.kube.dxos.org/.well-known/dx/signal
|
|
14
|
-
- server: wss://kube.dxos.org/.well-known/dx/signal
|
|
15
|
-
ice:
|
|
16
|
-
- urls: stun:kube.dxos.org:3478
|
|
17
|
-
- urls: turn:kube.dxos.org:3478
|
|
18
|
-
username: dxos
|
|
19
|
-
credential: dxos
|
|
20
|
-
publisher:
|
|
21
|
-
server: ws://127.0.0.1/.well-known/dx/deploy
|
|
22
|
-
supervisor:
|
|
23
|
-
server: ws://127.0.0.1/.well-known/dx/supervisor
|
|
24
|
-
tunneling:
|
|
25
|
-
server: ws://127.0.0.1/.well-known/dx/tunnel
|
|
26
|
-
|
|
27
|
-
agent:
|
|
28
|
-
plugins:
|
|
29
|
-
- id: dxos.org/agent/plugin/dashboard
|
|
30
|
-
enabled: true
|