@dxos/cli 0.5.3-main.ac5e73c → 0.5.3-main.bc67fdb
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/function/dev.d.ts.map +1 -1
- package/dist/src/commands/function/dev.js +8 -12
- package/dist/src/commands/function/dev.js.map +1 -1
- package/dist/src/commands/function/exec.d.ts +13 -0
- package/dist/src/commands/function/exec.d.ts.map +1 -0
- package/dist/src/commands/function/exec.js +48 -0
- package/dist/src/commands/function/exec.js.map +1 -0
- package/dist/src/commands/function/list.d.ts.map +1 -1
- package/dist/src/commands/function/list.js +5 -8
- package/dist/src/commands/function/list.js.map +1 -1
- package/oclif.manifest.json +225 -102
- package/package.json +23 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW,CAAC,OAAO,GAAG,CAAC;IACtD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAmC;IAC9D,OAAgB,OAAO,WAA2B;IAClD,OAAgB,QAAQ;;;QAKtB;IAEF,OAAgB,KAAK;;;;;;;;;;;;;;;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAyD1B"}
|
|
@@ -28,44 +28,40 @@ class Dev extends base_command_1.BaseCommand {
|
|
|
28
28
|
// TODO(dmaretskyi): Move into system service?
|
|
29
29
|
const config = new config_1.Config(JSON.parse((await client.services.services.DevtoolsHost.getConfig()).config));
|
|
30
30
|
const functionsConfig = (_c = (_b = (_a = config.values.runtime) === null || _a === void 0 ? void 0 : _a.agent) === null || _b === void 0 ? void 0 : _b.plugins) === null || _c === void 0 ? void 0 : _c.find((plugin) => plugin.id === 'dxos.org/agent/plugin/functions');
|
|
31
|
-
// Local files.
|
|
32
31
|
const file = (_f = (_d = this.flags.manifest) !== null && _d !== void 0 ? _d : (_e = functionsConfig === null || functionsConfig === void 0 ? void 0 : functionsConfig.config) === null || _e === void 0 ? void 0 : _e.manifest) !== null && _f !== void 0 ? _f : (0, node_path_1.join)(process.cwd(), 'functions.yml');
|
|
33
32
|
const manifest = (0, js_yaml_1.load)(await (0, promises_1.readFile)(file, 'utf8'));
|
|
34
33
|
const directory = (_g = this.flags.baseDir) !== null && _g !== void 0 ? _g : (0, node_path_1.join)((0, node_path_1.dirname)(file), 'src/functions');
|
|
35
34
|
// Local dev server.
|
|
36
|
-
const
|
|
37
|
-
|
|
35
|
+
const server = new functions_1.DevServer(client, {
|
|
36
|
+
manifest,
|
|
38
37
|
baseDir: directory,
|
|
39
38
|
reload: this.flags.reload,
|
|
40
39
|
dataDir: (0, client_protocol_1.getProfilePath)(client_protocol_1.DX_DATA, this.flags.profile),
|
|
41
40
|
});
|
|
41
|
+
await server.initialize();
|
|
42
42
|
await server.start();
|
|
43
43
|
// TODO(burdon): Move to agent's FunctionsPlugin.
|
|
44
|
-
const
|
|
45
|
-
const scheduler = new functions_1.Scheduler(registry, triggerRegistry, { endpoint: server.proxy });
|
|
44
|
+
const scheduler = new functions_1.Scheduler(client, manifest, { endpoint: server.proxy });
|
|
46
45
|
await scheduler.start();
|
|
47
|
-
// TODO(burdon): Register for all spaces; add import command.
|
|
48
|
-
client.addSchema(functions_1.FunctionTrigger);
|
|
49
|
-
const space = client.spaces.default;
|
|
50
|
-
await registry.register(space, manifest);
|
|
51
|
-
await scheduler.register(space, manifest);
|
|
52
46
|
this.log(`DevServer running: ${chalk_1.default.blue(server.endpoint)} (ctrl-c to exit)`);
|
|
53
47
|
const run = new async_1.Trigger();
|
|
54
48
|
process.on('SIGINT', async () => {
|
|
55
49
|
await scheduler.stop();
|
|
56
50
|
await server.stop();
|
|
51
|
+
// process.exit();
|
|
57
52
|
run.wake();
|
|
58
53
|
});
|
|
54
|
+
// TODO(burdon): Get from server API.
|
|
59
55
|
if (this.flags.verbose) {
|
|
60
|
-
// TODO(burdon): Get list of functions from plugin API endpoint.
|
|
61
56
|
this.log(`Plugin proxy: ${chalk_1.default.blue(server.proxy)}`);
|
|
62
57
|
this.log('Functions:\n' +
|
|
63
58
|
server.functions
|
|
64
|
-
.map(({ def: {
|
|
59
|
+
.map(({ def: { id, path } }) => (0, chalk_1.default) `- ${id.padEnd(40)} {blue ${(0, node_path_1.join)(server.proxy, path)}}`)
|
|
65
60
|
.join('\n'));
|
|
66
61
|
}
|
|
67
62
|
// Wait until exit (via SIGINT).
|
|
68
63
|
await run.wait();
|
|
64
|
+
// await new Promise(() => {});
|
|
69
65
|
});
|
|
70
66
|
}
|
|
71
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAoC;AACpC,kDAA0B;AAC1B,qCAA+B;AAC/B,+CAA4C;AAC5C,yCAA0C;AAE1C,uCAAsC;AACtC,2DAAgE;AAChE,yCAAsC;AACtC,+
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAoC;AACpC,kDAA0B;AAC1B,qCAA+B;AAC/B,+CAA4C;AAC5C,yCAA0C;AAE1C,uCAAsC;AACtC,2DAAgE;AAChE,yCAAsC;AACtC,+CAA8E;AAE9E,qDAAiD;AAEjD,MAAqB,GAAI,SAAQ,0BAAuB;IAmBtD,KAAK,CAAC,GAAG;;QACP,kCAAkC;QAClC,KAAK,MAAM,WAAW,IAAI,MAAA,IAAI,CAAC,KAAK,CA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C;YACjB,+BAA+B;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;;AA1Ee,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,+BAA+B,CAAC;AAC9C,WAAO,GAAG,CAAC,qBAAqB,CAAC,CAAC;AAClC,YAAQ,GAAG;IACzB;QACE,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,+CAA+C;KACzD;CACF,CAAC;AAEc,SAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACxF,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACnE,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,uCAAuC,EAAE,CAAC;IAC/E,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;CACtE,CAAC;kBAjBiB,GAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export default class Exec extends BaseCommand<typeof Exec> {
|
|
6
|
+
static enableJsonFlag: boolean;
|
|
7
|
+
static description: string;
|
|
8
|
+
static args: {
|
|
9
|
+
name: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<any>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/exec.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAsB;IAEjD,OAAgB,IAAI;;MAElB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CA8B1B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2023 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const js_yaml_1 = require("js-yaml");
|
|
8
|
+
const promises_1 = require("node:fs/promises");
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
const config_1 = require("@dxos/config");
|
|
11
|
+
const base_command_1 = require("../../base-command");
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
class Exec extends base_command_1.BaseCommand {
|
|
16
|
+
async run() {
|
|
17
|
+
return await this.execWithClient(async (client) => {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f;
|
|
19
|
+
// TODO(dmaretskyi): Move into system service?
|
|
20
|
+
const config = new config_1.Config(JSON.parse((await client.services.services.DevtoolsHost.getConfig()).config));
|
|
21
|
+
const functionsConfig = (_c = (_b = (_a = config.values.runtime) === null || _a === void 0 ? void 0 : _a.agent) === null || _b === void 0 ? void 0 : _b.plugins) === null || _c === void 0 ? void 0 : _c.find((plugin) => plugin.id === 'dxos.org/agent/plugin/functions');
|
|
22
|
+
const file = (_f = (_d = this.flags.manifest) !== null && _d !== void 0 ? _d : (_e = functionsConfig === null || functionsConfig === void 0 ? void 0 : functionsConfig.config) === null || _e === void 0 ? void 0 : _e.manifest) !== null && _f !== void 0 ? _f : (0, node_path_1.join)(process.cwd(), 'functions.yml');
|
|
23
|
+
const { functions } = (0, js_yaml_1.load)(await (0, promises_1.readFile)(file, 'utf8'));
|
|
24
|
+
const fn = functions.find((fn) => fn.id === this.args.name);
|
|
25
|
+
if (!fn) {
|
|
26
|
+
this.warn(`Function not found: ${this.args.name}`);
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const { handler } = fn;
|
|
30
|
+
// TODO(burdon): Get endpoint.
|
|
31
|
+
const url = `http:/localhost:7100/dev/${handler}`;
|
|
32
|
+
this.log(`Calling: ${url}`);
|
|
33
|
+
const { status, statusText } = await fetch(url, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
});
|
|
36
|
+
if (status !== 200) {
|
|
37
|
+
this.warn(`Error(${status}): ${statusText}`);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
Exec.enableJsonFlag = true;
|
|
43
|
+
Exec.description = 'Invoke function.';
|
|
44
|
+
Exec.args = {
|
|
45
|
+
name: core_1.Args.string({ required: true, description: 'Function name.' }),
|
|
46
|
+
};
|
|
47
|
+
exports.default = Exec;
|
|
48
|
+
//# sourceMappingURL=exec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../../src/commands/function/exec.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAmC;AACnC,qCAA+B;AAC/B,+CAA4C;AAC5C,yCAAiC;AAEjC,yCAAsC;AAGtC,qDAAiD;AAEjD;;GAEG;AACH,MAAqB,IAAK,SAAQ,0BAAwB;IAQxD,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;;YAChD,8CAA8C;YAC9C,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAa,CAAC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,SAAS,MAAM,MAAM,UAAU,EAAE,CAAC,CAAC;aAC9C;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AApCe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,kBAAkB,CAAC;AAEjC,SAAI,GAAG;IACrB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACrE,CAAC;kBANiB,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/list.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,cAAc,cAAe,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/list.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,cAAc,cAAe,WAAW,EAAE,qBAqBtD,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW,CAAC,OAAO,IAAI,CAAC;IACxD,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAqB;IAE1C,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAe1B"}
|
|
@@ -12,11 +12,9 @@ const config_1 = require("@dxos/config");
|
|
|
12
12
|
const base_command_1 = require("../../base-command");
|
|
13
13
|
// TODO(burdon): List stats.
|
|
14
14
|
const printFunctions = (functions, flags = {}) => {
|
|
15
|
-
core_1.ux.table(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
uri: {
|
|
19
|
-
header: 'uri',
|
|
15
|
+
core_1.ux.table(functions, {
|
|
16
|
+
id: {
|
|
17
|
+
header: 'id',
|
|
20
18
|
},
|
|
21
19
|
path: {
|
|
22
20
|
header: 'path',
|
|
@@ -39,11 +37,10 @@ class List extends base_command_1.BaseCommand {
|
|
|
39
37
|
// TODO(dmaretskyi): Move into system service?
|
|
40
38
|
const config = new config_1.Config(JSON.parse((await client.services.services.DevtoolsHost.getConfig()).config));
|
|
41
39
|
const functionsConfig = (_c = (_b = (_a = config.values.runtime) === null || _a === void 0 ? void 0 : _a.agent) === null || _b === void 0 ? void 0 : _b.plugins) === null || _c === void 0 ? void 0 : _c.find((plugin) => plugin.id === 'dxos.org/agent/plugin/functions');
|
|
42
|
-
// TODO(burdon): ???
|
|
43
40
|
const file = (_f = (_d = this.flags.manifest) !== null && _d !== void 0 ? _d : (_e = functionsConfig === null || functionsConfig === void 0 ? void 0 : functionsConfig.config) === null || _e === void 0 ? void 0 : _e.manifest) !== null && _f !== void 0 ? _f : (0, node_path_1.join)(process.cwd(), 'functions.yml');
|
|
44
41
|
const manifest = (0, js_yaml_1.load)(await (0, promises_1.readFile)(file, 'utf8'));
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
const { functions } = manifest;
|
|
43
|
+
(0, exports.printFunctions)(functions);
|
|
47
44
|
return manifest;
|
|
48
45
|
});
|
|
49
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/function/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAiC;AACjC,qCAA+B;AAC/B,+CAA4C;AAC5C,yCAAiC;AAEjC,yCAAsC;AAGtC,qDAAiD;AAEjD,4BAA4B;AACrB,MAAM,cAAc,GAAG,CAAC,SAAwB,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE;IACrE,SAAE,CAAC,KAAK
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/function/list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,OAAO,CAAC,GAAG,EAAE,EAAE,eAAe,CAAC,CAAC;YAC9G,MAAM,QAAQ,GAAG,IAAA,cAAI,EAAC,MAAM,IAAA,mBAAQ,EAAC,IAAI,EAAE,MAAM,CAAC,CAAqB,CAAC;YACxE,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC;YAC/B,IAAA,sBAAc,EAAC,SAAS,CAAC,CAAC;YAC1B,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC;;AAjBe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,iBAAiB,CAAC;kBAF7B,IAAI"}
|
package/oclif.manifest.json
CHANGED
|
@@ -871,10 +871,16 @@
|
|
|
871
871
|
"stop.js"
|
|
872
872
|
]
|
|
873
873
|
},
|
|
874
|
-
"
|
|
874
|
+
"app:create": {
|
|
875
875
|
"aliases": [],
|
|
876
|
-
"args": {
|
|
877
|
-
|
|
876
|
+
"args": {
|
|
877
|
+
"name": {
|
|
878
|
+
"description": "App name.",
|
|
879
|
+
"name": "name",
|
|
880
|
+
"required": true
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"description": "Manage applications.",
|
|
878
884
|
"flags": {
|
|
879
885
|
"json": {
|
|
880
886
|
"description": "Output as JSON.",
|
|
@@ -969,11 +975,39 @@
|
|
|
969
975
|
"hasDynamicHelp": false,
|
|
970
976
|
"multiple": false,
|
|
971
977
|
"type": "option"
|
|
978
|
+
},
|
|
979
|
+
"tag": {
|
|
980
|
+
"description": "Git tag or branch of the DXOS repo to checkout.",
|
|
981
|
+
"name": "tag",
|
|
982
|
+
"hasDynamicHelp": false,
|
|
983
|
+
"multiple": false,
|
|
984
|
+
"type": "option"
|
|
985
|
+
},
|
|
986
|
+
"template": {
|
|
987
|
+
"char": "t",
|
|
988
|
+
"description": "Template to use when creating the project.",
|
|
989
|
+
"name": "template",
|
|
990
|
+
"default": "hello",
|
|
991
|
+
"hasDynamicHelp": false,
|
|
992
|
+
"multiple": false,
|
|
993
|
+
"options": [
|
|
994
|
+
"hello",
|
|
995
|
+
"bare",
|
|
996
|
+
"tasks"
|
|
997
|
+
],
|
|
998
|
+
"type": "option"
|
|
999
|
+
},
|
|
1000
|
+
"interactive": {
|
|
1001
|
+
"char": "i",
|
|
1002
|
+
"description": "Customize app template options via interactive prompt.",
|
|
1003
|
+
"name": "interactive",
|
|
1004
|
+
"allowNo": false,
|
|
1005
|
+
"type": "boolean"
|
|
972
1006
|
}
|
|
973
1007
|
},
|
|
974
1008
|
"hasDynamicHelp": false,
|
|
975
1009
|
"hiddenAliases": [],
|
|
976
|
-
"id": "
|
|
1010
|
+
"id": "app:create",
|
|
977
1011
|
"pluginAlias": "@dxos/cli",
|
|
978
1012
|
"pluginName": "@dxos/cli",
|
|
979
1013
|
"pluginType": "core",
|
|
@@ -984,20 +1018,14 @@
|
|
|
984
1018
|
"dist",
|
|
985
1019
|
"src",
|
|
986
1020
|
"commands",
|
|
987
|
-
"
|
|
988
|
-
"
|
|
1021
|
+
"app",
|
|
1022
|
+
"create.js"
|
|
989
1023
|
]
|
|
990
1024
|
},
|
|
991
|
-
"app:
|
|
1025
|
+
"app:list": {
|
|
992
1026
|
"aliases": [],
|
|
993
|
-
"args": {
|
|
994
|
-
|
|
995
|
-
"description": "App name.",
|
|
996
|
-
"name": "name",
|
|
997
|
-
"required": true
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
"description": "Manage applications.",
|
|
1027
|
+
"args": {},
|
|
1028
|
+
"description": "List apps.",
|
|
1001
1029
|
"flags": {
|
|
1002
1030
|
"json": {
|
|
1003
1031
|
"description": "Output as JSON.",
|
|
@@ -1092,39 +1120,11 @@
|
|
|
1092
1120
|
"hasDynamicHelp": false,
|
|
1093
1121
|
"multiple": false,
|
|
1094
1122
|
"type": "option"
|
|
1095
|
-
},
|
|
1096
|
-
"tag": {
|
|
1097
|
-
"description": "Git tag or branch of the DXOS repo to checkout.",
|
|
1098
|
-
"name": "tag",
|
|
1099
|
-
"hasDynamicHelp": false,
|
|
1100
|
-
"multiple": false,
|
|
1101
|
-
"type": "option"
|
|
1102
|
-
},
|
|
1103
|
-
"template": {
|
|
1104
|
-
"char": "t",
|
|
1105
|
-
"description": "Template to use when creating the project.",
|
|
1106
|
-
"name": "template",
|
|
1107
|
-
"default": "hello",
|
|
1108
|
-
"hasDynamicHelp": false,
|
|
1109
|
-
"multiple": false,
|
|
1110
|
-
"options": [
|
|
1111
|
-
"hello",
|
|
1112
|
-
"bare",
|
|
1113
|
-
"tasks"
|
|
1114
|
-
],
|
|
1115
|
-
"type": "option"
|
|
1116
|
-
},
|
|
1117
|
-
"interactive": {
|
|
1118
|
-
"char": "i",
|
|
1119
|
-
"description": "Customize app template options via interactive prompt.",
|
|
1120
|
-
"name": "interactive",
|
|
1121
|
-
"allowNo": false,
|
|
1122
|
-
"type": "boolean"
|
|
1123
1123
|
}
|
|
1124
1124
|
},
|
|
1125
1125
|
"hasDynamicHelp": false,
|
|
1126
1126
|
"hiddenAliases": [],
|
|
1127
|
-
"id": "app:
|
|
1127
|
+
"id": "app:list",
|
|
1128
1128
|
"pluginAlias": "@dxos/cli",
|
|
1129
1129
|
"pluginName": "@dxos/cli",
|
|
1130
1130
|
"pluginType": "core",
|
|
@@ -1136,13 +1136,19 @@
|
|
|
1136
1136
|
"src",
|
|
1137
1137
|
"commands",
|
|
1138
1138
|
"app",
|
|
1139
|
-
"
|
|
1139
|
+
"list.js"
|
|
1140
1140
|
]
|
|
1141
1141
|
},
|
|
1142
|
-
"app:
|
|
1142
|
+
"app:open": {
|
|
1143
1143
|
"aliases": [],
|
|
1144
|
-
"args": {
|
|
1145
|
-
|
|
1144
|
+
"args": {
|
|
1145
|
+
"url": {
|
|
1146
|
+
"description": "App URL.",
|
|
1147
|
+
"name": "url",
|
|
1148
|
+
"required": true
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
"description": "Opens app with provided url and process device invitation.",
|
|
1146
1152
|
"flags": {
|
|
1147
1153
|
"json": {
|
|
1148
1154
|
"description": "Output as JSON.",
|
|
@@ -1237,11 +1243,25 @@
|
|
|
1237
1243
|
"hasDynamicHelp": false,
|
|
1238
1244
|
"multiple": false,
|
|
1239
1245
|
"type": "option"
|
|
1246
|
+
},
|
|
1247
|
+
"instances": {
|
|
1248
|
+
"description": "Amount of test instances.",
|
|
1249
|
+
"name": "instances",
|
|
1250
|
+
"default": 1,
|
|
1251
|
+
"hasDynamicHelp": false,
|
|
1252
|
+
"multiple": false,
|
|
1253
|
+
"type": "option"
|
|
1254
|
+
},
|
|
1255
|
+
"invite": {
|
|
1256
|
+
"description": "If `true` proceed device invitation for all instances.",
|
|
1257
|
+
"name": "invite",
|
|
1258
|
+
"allowNo": false,
|
|
1259
|
+
"type": "boolean"
|
|
1240
1260
|
}
|
|
1241
1261
|
},
|
|
1242
1262
|
"hasDynamicHelp": false,
|
|
1243
1263
|
"hiddenAliases": [],
|
|
1244
|
-
"id": "app:
|
|
1264
|
+
"id": "app:open",
|
|
1245
1265
|
"pluginAlias": "@dxos/cli",
|
|
1246
1266
|
"pluginName": "@dxos/cli",
|
|
1247
1267
|
"pluginType": "core",
|
|
@@ -1253,19 +1273,13 @@
|
|
|
1253
1273
|
"src",
|
|
1254
1274
|
"commands",
|
|
1255
1275
|
"app",
|
|
1256
|
-
"
|
|
1276
|
+
"open.js"
|
|
1257
1277
|
]
|
|
1258
1278
|
},
|
|
1259
|
-
"app:
|
|
1279
|
+
"app:publish": {
|
|
1260
1280
|
"aliases": [],
|
|
1261
|
-
"args": {
|
|
1262
|
-
|
|
1263
|
-
"description": "App URL.",
|
|
1264
|
-
"name": "url",
|
|
1265
|
-
"required": true
|
|
1266
|
-
}
|
|
1267
|
-
},
|
|
1268
|
-
"description": "Opens app with provided url and process device invitation.",
|
|
1281
|
+
"args": {},
|
|
1282
|
+
"description": "Publish apps.",
|
|
1269
1283
|
"flags": {
|
|
1270
1284
|
"json": {
|
|
1271
1285
|
"description": "Output as JSON.",
|
|
@@ -1361,24 +1375,37 @@
|
|
|
1361
1375
|
"multiple": false,
|
|
1362
1376
|
"type": "option"
|
|
1363
1377
|
},
|
|
1364
|
-
"
|
|
1365
|
-
"description": "
|
|
1366
|
-
"name": "
|
|
1367
|
-
"default": 1,
|
|
1378
|
+
"configPath": {
|
|
1379
|
+
"description": "Path to dx.yml",
|
|
1380
|
+
"name": "configPath",
|
|
1368
1381
|
"hasDynamicHelp": false,
|
|
1369
1382
|
"multiple": false,
|
|
1370
1383
|
"type": "option"
|
|
1371
1384
|
},
|
|
1372
|
-
"
|
|
1373
|
-
"description": "
|
|
1374
|
-
"name": "
|
|
1385
|
+
"accessToken": {
|
|
1386
|
+
"description": "Access token for publishing.",
|
|
1387
|
+
"name": "accessToken",
|
|
1388
|
+
"hasDynamicHelp": false,
|
|
1389
|
+
"multiple": false,
|
|
1390
|
+
"type": "option"
|
|
1391
|
+
},
|
|
1392
|
+
"skipExisting": {
|
|
1393
|
+
"description": "Do not update content on KUBE if version already exists.",
|
|
1394
|
+
"name": "skipExisting",
|
|
1375
1395
|
"allowNo": false,
|
|
1376
1396
|
"type": "boolean"
|
|
1397
|
+
},
|
|
1398
|
+
"version": {
|
|
1399
|
+
"description": "Version of modules to publish.",
|
|
1400
|
+
"name": "version",
|
|
1401
|
+
"hasDynamicHelp": false,
|
|
1402
|
+
"multiple": false,
|
|
1403
|
+
"type": "option"
|
|
1377
1404
|
}
|
|
1378
1405
|
},
|
|
1379
1406
|
"hasDynamicHelp": false,
|
|
1380
1407
|
"hiddenAliases": [],
|
|
1381
|
-
"id": "app:
|
|
1408
|
+
"id": "app:publish",
|
|
1382
1409
|
"pluginAlias": "@dxos/cli",
|
|
1383
1410
|
"pluginName": "@dxos/cli",
|
|
1384
1411
|
"pluginType": "core",
|
|
@@ -1390,13 +1417,13 @@
|
|
|
1390
1417
|
"src",
|
|
1391
1418
|
"commands",
|
|
1392
1419
|
"app",
|
|
1393
|
-
"
|
|
1420
|
+
"publish.js"
|
|
1394
1421
|
]
|
|
1395
1422
|
},
|
|
1396
|
-
"
|
|
1423
|
+
"config": {
|
|
1397
1424
|
"aliases": [],
|
|
1398
1425
|
"args": {},
|
|
1399
|
-
"description": "
|
|
1426
|
+
"description": "Show config file.",
|
|
1400
1427
|
"flags": {
|
|
1401
1428
|
"json": {
|
|
1402
1429
|
"description": "Output as JSON.",
|
|
@@ -1491,38 +1518,11 @@
|
|
|
1491
1518
|
"hasDynamicHelp": false,
|
|
1492
1519
|
"multiple": false,
|
|
1493
1520
|
"type": "option"
|
|
1494
|
-
},
|
|
1495
|
-
"configPath": {
|
|
1496
|
-
"description": "Path to dx.yml",
|
|
1497
|
-
"name": "configPath",
|
|
1498
|
-
"hasDynamicHelp": false,
|
|
1499
|
-
"multiple": false,
|
|
1500
|
-
"type": "option"
|
|
1501
|
-
},
|
|
1502
|
-
"accessToken": {
|
|
1503
|
-
"description": "Access token for publishing.",
|
|
1504
|
-
"name": "accessToken",
|
|
1505
|
-
"hasDynamicHelp": false,
|
|
1506
|
-
"multiple": false,
|
|
1507
|
-
"type": "option"
|
|
1508
|
-
},
|
|
1509
|
-
"skipExisting": {
|
|
1510
|
-
"description": "Do not update content on KUBE if version already exists.",
|
|
1511
|
-
"name": "skipExisting",
|
|
1512
|
-
"allowNo": false,
|
|
1513
|
-
"type": "boolean"
|
|
1514
|
-
},
|
|
1515
|
-
"version": {
|
|
1516
|
-
"description": "Version of modules to publish.",
|
|
1517
|
-
"name": "version",
|
|
1518
|
-
"hasDynamicHelp": false,
|
|
1519
|
-
"multiple": false,
|
|
1520
|
-
"type": "option"
|
|
1521
1521
|
}
|
|
1522
1522
|
},
|
|
1523
1523
|
"hasDynamicHelp": false,
|
|
1524
1524
|
"hiddenAliases": [],
|
|
1525
|
-
"id": "
|
|
1525
|
+
"id": "config",
|
|
1526
1526
|
"pluginAlias": "@dxos/cli",
|
|
1527
1527
|
"pluginName": "@dxos/cli",
|
|
1528
1528
|
"pluginType": "core",
|
|
@@ -1533,8 +1533,8 @@
|
|
|
1533
1533
|
"dist",
|
|
1534
1534
|
"src",
|
|
1535
1535
|
"commands",
|
|
1536
|
-
"
|
|
1537
|
-
"
|
|
1536
|
+
"config",
|
|
1537
|
+
"index.js"
|
|
1538
1538
|
]
|
|
1539
1539
|
},
|
|
1540
1540
|
"debug:diagnostics": {
|
|
@@ -2794,6 +2794,129 @@
|
|
|
2794
2794
|
"dev.js"
|
|
2795
2795
|
]
|
|
2796
2796
|
},
|
|
2797
|
+
"function:exec": {
|
|
2798
|
+
"aliases": [],
|
|
2799
|
+
"args": {
|
|
2800
|
+
"name": {
|
|
2801
|
+
"description": "Function name.",
|
|
2802
|
+
"name": "name",
|
|
2803
|
+
"required": true
|
|
2804
|
+
}
|
|
2805
|
+
},
|
|
2806
|
+
"description": "Invoke function.",
|
|
2807
|
+
"flags": {
|
|
2808
|
+
"json": {
|
|
2809
|
+
"description": "Output as JSON.",
|
|
2810
|
+
"name": "json",
|
|
2811
|
+
"allowNo": false,
|
|
2812
|
+
"type": "boolean"
|
|
2813
|
+
},
|
|
2814
|
+
"dry-run": {
|
|
2815
|
+
"description": "Dry run.",
|
|
2816
|
+
"name": "dry-run",
|
|
2817
|
+
"allowNo": false,
|
|
2818
|
+
"type": "boolean"
|
|
2819
|
+
},
|
|
2820
|
+
"verbose": {
|
|
2821
|
+
"char": "v",
|
|
2822
|
+
"description": "Verbose output",
|
|
2823
|
+
"name": "verbose",
|
|
2824
|
+
"allowNo": false,
|
|
2825
|
+
"type": "boolean"
|
|
2826
|
+
},
|
|
2827
|
+
"profile": {
|
|
2828
|
+
"description": "User profile.",
|
|
2829
|
+
"env": "DX_PROFILE",
|
|
2830
|
+
"name": "profile",
|
|
2831
|
+
"default": "default",
|
|
2832
|
+
"hasDynamicHelp": false,
|
|
2833
|
+
"multiple": false,
|
|
2834
|
+
"type": "option"
|
|
2835
|
+
},
|
|
2836
|
+
"config": {
|
|
2837
|
+
"aliases": [
|
|
2838
|
+
"c"
|
|
2839
|
+
],
|
|
2840
|
+
"dependsOn": [
|
|
2841
|
+
"profile"
|
|
2842
|
+
],
|
|
2843
|
+
"description": "Config file.",
|
|
2844
|
+
"env": "DX_CONFIG",
|
|
2845
|
+
"name": "config",
|
|
2846
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
2847
|
+
"hasDynamicHelp": false,
|
|
2848
|
+
"helpValue": "path",
|
|
2849
|
+
"multiple": false,
|
|
2850
|
+
"type": "option"
|
|
2851
|
+
},
|
|
2852
|
+
"target": {
|
|
2853
|
+
"description": "Target websocket server.",
|
|
2854
|
+
"name": "target",
|
|
2855
|
+
"hasDynamicHelp": false,
|
|
2856
|
+
"multiple": false,
|
|
2857
|
+
"type": "option"
|
|
2858
|
+
},
|
|
2859
|
+
"no-agent": {
|
|
2860
|
+
"description": "Run command without using an agent.",
|
|
2861
|
+
"name": "no-agent",
|
|
2862
|
+
"allowNo": false,
|
|
2863
|
+
"type": "boolean"
|
|
2864
|
+
},
|
|
2865
|
+
"no-start-agent": {
|
|
2866
|
+
"description": "Do not automatically start an agent if one is not running.",
|
|
2867
|
+
"name": "no-start-agent",
|
|
2868
|
+
"allowNo": false,
|
|
2869
|
+
"type": "boolean"
|
|
2870
|
+
},
|
|
2871
|
+
"timeout": {
|
|
2872
|
+
"aliases": [
|
|
2873
|
+
"t"
|
|
2874
|
+
],
|
|
2875
|
+
"description": "Timeout (ms).",
|
|
2876
|
+
"name": "timeout",
|
|
2877
|
+
"default": 60000,
|
|
2878
|
+
"hasDynamicHelp": false,
|
|
2879
|
+
"multiple": false,
|
|
2880
|
+
"type": "option"
|
|
2881
|
+
},
|
|
2882
|
+
"no-wait": {
|
|
2883
|
+
"description": "Do not wait for space to be ready.",
|
|
2884
|
+
"name": "no-wait",
|
|
2885
|
+
"allowNo": false,
|
|
2886
|
+
"type": "boolean"
|
|
2887
|
+
},
|
|
2888
|
+
"json-log": {
|
|
2889
|
+
"description": "When running in foreground, log JSON format",
|
|
2890
|
+
"name": "json-log",
|
|
2891
|
+
"allowNo": false,
|
|
2892
|
+
"type": "boolean"
|
|
2893
|
+
},
|
|
2894
|
+
"json-logfile": {
|
|
2895
|
+
"description": "JSON log file destination, or 'stdout' or 'stderr'",
|
|
2896
|
+
"name": "json-logfile",
|
|
2897
|
+
"default": "stderr",
|
|
2898
|
+
"hasDynamicHelp": false,
|
|
2899
|
+
"multiple": false,
|
|
2900
|
+
"type": "option"
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
"hasDynamicHelp": false,
|
|
2904
|
+
"hiddenAliases": [],
|
|
2905
|
+
"id": "function:exec",
|
|
2906
|
+
"pluginAlias": "@dxos/cli",
|
|
2907
|
+
"pluginName": "@dxos/cli",
|
|
2908
|
+
"pluginType": "core",
|
|
2909
|
+
"strict": true,
|
|
2910
|
+
"enableJsonFlag": true,
|
|
2911
|
+
"isESM": false,
|
|
2912
|
+
"relativePath": [
|
|
2913
|
+
"dist",
|
|
2914
|
+
"src",
|
|
2915
|
+
"commands",
|
|
2916
|
+
"function",
|
|
2917
|
+
"exec.js"
|
|
2918
|
+
]
|
|
2919
|
+
},
|
|
2797
2920
|
"function:list": {
|
|
2798
2921
|
"aliases": [],
|
|
2799
2922
|
"args": {},
|
|
@@ -5595,7 +5718,7 @@
|
|
|
5595
5718
|
"name": {
|
|
5596
5719
|
"description": "Tunnel name",
|
|
5597
5720
|
"name": "name",
|
|
5598
|
-
"default": "
|
|
5721
|
+
"default": "nebraska-four-minnesota-triple",
|
|
5599
5722
|
"hasDynamicHelp": false,
|
|
5600
5723
|
"multiple": false,
|
|
5601
5724
|
"type": "option"
|
|
@@ -6067,5 +6190,5 @@
|
|
|
6067
6190
|
]
|
|
6068
6191
|
}
|
|
6069
6192
|
},
|
|
6070
|
-
"version": "0.5.3-main.
|
|
6193
|
+
"version": "0.5.3-main.bc67fdb"
|
|
6071
6194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.5.3-main.
|
|
3
|
+
"version": "0.5.3-main.bc67fdb",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -49,28 +49,28 @@
|
|
|
49
49
|
"uuid": "^8.3.2",
|
|
50
50
|
"ws": "^8.14.2",
|
|
51
51
|
"wtfnode": "^0.9.1",
|
|
52
|
-
"@dxos/async": "0.5.3-main.
|
|
53
|
-
"@dxos/agent": "0.5.3-main.
|
|
54
|
-
"@dxos/client": "0.5.3-main.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/client-services": "0.5.3-main.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/invariant": "0.5.3-main.
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/plate": "0.5.3-main.
|
|
67
|
-
"@dxos/observability": "0.5.3-main.
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/rpc": "0.5.3-main.
|
|
72
|
-
"@dxos/util": "0.5.3-main.
|
|
73
|
-
"@dxos/tasks-template": "0.5.3-main.
|
|
52
|
+
"@dxos/async": "0.5.3-main.bc67fdb",
|
|
53
|
+
"@dxos/agent": "0.5.3-main.bc67fdb",
|
|
54
|
+
"@dxos/client-protocol": "0.5.3-main.bc67fdb",
|
|
55
|
+
"@dxos/client": "0.5.3-main.bc67fdb",
|
|
56
|
+
"@dxos/bare-template": "0.5.3-main.bc67fdb",
|
|
57
|
+
"@dxos/client-services": "0.5.3-main.bc67fdb",
|
|
58
|
+
"@dxos/context": "0.5.3-main.bc67fdb",
|
|
59
|
+
"@dxos/functions": "0.5.3-main.bc67fdb",
|
|
60
|
+
"@dxos/config": "0.5.3-main.bc67fdb",
|
|
61
|
+
"@dxos/hello-template": "0.5.3-main.bc67fdb",
|
|
62
|
+
"@dxos/debug": "0.5.3-main.bc67fdb",
|
|
63
|
+
"@dxos/invariant": "0.5.3-main.bc67fdb",
|
|
64
|
+
"@dxos/log": "0.5.3-main.bc67fdb",
|
|
65
|
+
"@dxos/network-manager": "0.5.3-main.bc67fdb",
|
|
66
|
+
"@dxos/plate": "0.5.3-main.bc67fdb",
|
|
67
|
+
"@dxos/observability": "0.5.3-main.bc67fdb",
|
|
68
|
+
"@dxos/process": "0.5.3-main.bc67fdb",
|
|
69
|
+
"@dxos/random": "0.5.3-main.bc67fdb",
|
|
70
|
+
"@dxos/protocols": "0.5.3-main.bc67fdb",
|
|
71
|
+
"@dxos/rpc": "0.5.3-main.bc67fdb",
|
|
72
|
+
"@dxos/util": "0.5.3-main.bc67fdb",
|
|
73
|
+
"@dxos/tasks-template": "0.5.3-main.bc67fdb"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@oclif/test": "^3.2.15",
|
|
@@ -109,9 +109,6 @@
|
|
|
109
109
|
"plugins": [
|
|
110
110
|
"@oclif/plugin-help"
|
|
111
111
|
],
|
|
112
|
-
"devPlugins": [
|
|
113
|
-
"@oclif/plugin-help"
|
|
114
|
-
],
|
|
115
112
|
"helpClass": "./dist/src/help",
|
|
116
113
|
"topicSeparator": " ",
|
|
117
114
|
"topics": {
|