@dxos/cli 0.1.52 → 0.1.53-main.123f460
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 +104 -6
- package/dist/src/base-command.d.ts +9 -8
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +6 -3
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/start.js +10 -1
- package/dist/src/commands/agent/start.js.map +1 -1
- package/dist/src/commands/agent/stop.js +1 -1
- package/dist/src/commands/agent/stop.js.map +1 -1
- package/dist/src/commands/debug/echo-test-data.d.ts +19 -0
- package/dist/src/commands/debug/echo-test-data.d.ts.map +1 -0
- package/dist/src/commands/debug/echo-test-data.js +63 -0
- package/dist/src/commands/debug/echo-test-data.js.map +1 -0
- package/dist/src/commands/debug/stats.d.ts +1 -1
- package/dist/src/commands/debug/stats.d.ts.map +1 -1
- package/dist/src/commands/debug/stats.js +23 -1
- package/dist/src/commands/debug/stats.js.map +1 -1
- package/dist/src/commands/device/index.d.ts.map +1 -1
- package/dist/src/commands/device/index.js +4 -0
- package/dist/src/commands/device/index.js.map +1 -1
- package/dist/src/commands/device/invite.d.ts +6 -0
- package/dist/src/commands/device/invite.d.ts.map +1 -0
- package/dist/src/commands/device/invite.js +36 -0
- package/dist/src/commands/device/invite.js.map +1 -0
- package/dist/src/commands/function/{dev.d.ts → dev-server.d.ts} +7 -1
- package/dist/src/commands/function/dev-server.d.ts.map +1 -0
- package/dist/src/commands/function/dev-server.js +69 -0
- package/dist/src/commands/function/dev-server.js.map +1 -0
- package/dist/src/commands/function/exec.d.ts +4 -0
- package/dist/src/commands/function/exec.d.ts.map +1 -1
- package/dist/src/commands/function/exec.js +4 -0
- package/dist/src/commands/function/exec.js.map +1 -1
- package/dist/src/commands/function/list.d.ts +4 -0
- package/dist/src/commands/function/list.d.ts.map +1 -1
- package/dist/src/commands/function/list.js +4 -0
- package/dist/src/commands/function/list.js.map +1 -1
- package/dist/src/commands/function/logs.d.ts +4 -0
- package/dist/src/commands/function/logs.d.ts.map +1 -1
- package/dist/src/commands/function/logs.js +4 -0
- package/dist/src/commands/function/logs.js.map +1 -1
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +7 -4
- package/dist/src/commands/reset/index.js.map +1 -1
- package/dist/src/commands/space/create.d.ts.map +1 -1
- package/dist/src/commands/space/create.js +1 -0
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/epoch.d.ts.map +1 -1
- package/dist/src/commands/space/epoch.js +1 -0
- package/dist/src/commands/space/epoch.js.map +1 -1
- package/dist/src/commands/space/invite.d.ts.map +1 -1
- package/dist/src/commands/space/invite.js +2 -2
- package/dist/src/commands/space/invite.js.map +1 -1
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/join.js +1 -0
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/list.js +1 -0
- package/dist/src/commands/space/list.js.map +1 -1
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/space/members.js +1 -0
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/util/telemetryrc.json +2 -2
- package/dist/src/util/util.d.ts.map +1 -1
- package/dist/src/util/util.js +1 -0
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +180 -7
- package/package.json +24 -24
- package/dist/src/commands/function/dev.d.ts.map +0 -1
- package/dist/src/commands/function/dev.js +0 -33
- package/dist/src/commands/function/dev.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.53-main.123f460",
|
|
3
3
|
"commands": {
|
|
4
4
|
"agent:list": {
|
|
5
5
|
"id": "agent:list",
|
|
@@ -734,6 +734,94 @@
|
|
|
734
734
|
},
|
|
735
735
|
"args": {}
|
|
736
736
|
},
|
|
737
|
+
"debug:echo-test-data": {
|
|
738
|
+
"id": "debug:echo-test-data",
|
|
739
|
+
"description": "Pollutes selected space with test data.",
|
|
740
|
+
"strict": true,
|
|
741
|
+
"pluginName": "@dxos/cli",
|
|
742
|
+
"pluginAlias": "@dxos/cli",
|
|
743
|
+
"pluginType": "core",
|
|
744
|
+
"aliases": [],
|
|
745
|
+
"flags": {
|
|
746
|
+
"json": {
|
|
747
|
+
"name": "json",
|
|
748
|
+
"type": "boolean",
|
|
749
|
+
"description": "Format output as json.",
|
|
750
|
+
"helpGroup": "GLOBAL",
|
|
751
|
+
"allowNo": false
|
|
752
|
+
},
|
|
753
|
+
"dry-run": {
|
|
754
|
+
"name": "dry-run",
|
|
755
|
+
"type": "boolean",
|
|
756
|
+
"description": "Dry run.",
|
|
757
|
+
"allowNo": false
|
|
758
|
+
},
|
|
759
|
+
"verbose": {
|
|
760
|
+
"name": "verbose",
|
|
761
|
+
"type": "boolean",
|
|
762
|
+
"char": "v",
|
|
763
|
+
"description": "Verbose output",
|
|
764
|
+
"allowNo": false
|
|
765
|
+
},
|
|
766
|
+
"profile": {
|
|
767
|
+
"name": "profile",
|
|
768
|
+
"type": "option",
|
|
769
|
+
"description": "User profile.",
|
|
770
|
+
"multiple": false,
|
|
771
|
+
"default": "default"
|
|
772
|
+
},
|
|
773
|
+
"config": {
|
|
774
|
+
"name": "config",
|
|
775
|
+
"type": "option",
|
|
776
|
+
"description": "Config file.",
|
|
777
|
+
"helpValue": "path",
|
|
778
|
+
"multiple": false,
|
|
779
|
+
"dependsOn": [
|
|
780
|
+
"profile"
|
|
781
|
+
],
|
|
782
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
783
|
+
"aliases": [
|
|
784
|
+
"c"
|
|
785
|
+
]
|
|
786
|
+
},
|
|
787
|
+
"no-agent": {
|
|
788
|
+
"name": "no-agent",
|
|
789
|
+
"type": "boolean",
|
|
790
|
+
"description": "Auto-start agent.",
|
|
791
|
+
"allowNo": false
|
|
792
|
+
},
|
|
793
|
+
"timeout": {
|
|
794
|
+
"name": "timeout",
|
|
795
|
+
"type": "option",
|
|
796
|
+
"description": "Timeout in seconds.",
|
|
797
|
+
"multiple": false,
|
|
798
|
+
"default": 30,
|
|
799
|
+
"aliases": [
|
|
800
|
+
"t"
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
"mutations": {
|
|
804
|
+
"name": "mutations",
|
|
805
|
+
"type": "option",
|
|
806
|
+
"description": "Number of mutations.",
|
|
807
|
+
"multiple": false,
|
|
808
|
+
"default": 10000
|
|
809
|
+
},
|
|
810
|
+
"epochEach": {
|
|
811
|
+
"name": "epochEach",
|
|
812
|
+
"type": "option",
|
|
813
|
+
"description": "Epoch each N mutations.",
|
|
814
|
+
"multiple": false,
|
|
815
|
+
"default": 100
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"args": {
|
|
819
|
+
"key": {
|
|
820
|
+
"name": "key",
|
|
821
|
+
"description": "Space key head in hex."
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
},
|
|
737
825
|
"debug:stats": {
|
|
738
826
|
"id": "debug:stats",
|
|
739
827
|
"description": "Output debug stats.",
|
|
@@ -759,8 +847,7 @@
|
|
|
759
847
|
"verbose": {
|
|
760
848
|
"name": "verbose",
|
|
761
849
|
"type": "boolean",
|
|
762
|
-
"
|
|
763
|
-
"description": "Verbose output",
|
|
850
|
+
"description": "Verbose output.",
|
|
764
851
|
"allowNo": false
|
|
765
852
|
},
|
|
766
853
|
"profile": {
|
|
@@ -884,6 +971,75 @@
|
|
|
884
971
|
},
|
|
885
972
|
"args": {}
|
|
886
973
|
},
|
|
974
|
+
"device:invite": {
|
|
975
|
+
"id": "device:invite",
|
|
976
|
+
"description": "Create device invitation.",
|
|
977
|
+
"strict": true,
|
|
978
|
+
"pluginName": "@dxos/cli",
|
|
979
|
+
"pluginAlias": "@dxos/cli",
|
|
980
|
+
"pluginType": "core",
|
|
981
|
+
"aliases": [],
|
|
982
|
+
"flags": {
|
|
983
|
+
"json": {
|
|
984
|
+
"name": "json",
|
|
985
|
+
"type": "boolean",
|
|
986
|
+
"description": "Format output as json.",
|
|
987
|
+
"helpGroup": "GLOBAL",
|
|
988
|
+
"allowNo": false
|
|
989
|
+
},
|
|
990
|
+
"dry-run": {
|
|
991
|
+
"name": "dry-run",
|
|
992
|
+
"type": "boolean",
|
|
993
|
+
"description": "Dry run.",
|
|
994
|
+
"allowNo": false
|
|
995
|
+
},
|
|
996
|
+
"verbose": {
|
|
997
|
+
"name": "verbose",
|
|
998
|
+
"type": "boolean",
|
|
999
|
+
"char": "v",
|
|
1000
|
+
"description": "Verbose output",
|
|
1001
|
+
"allowNo": false
|
|
1002
|
+
},
|
|
1003
|
+
"profile": {
|
|
1004
|
+
"name": "profile",
|
|
1005
|
+
"type": "option",
|
|
1006
|
+
"description": "User profile.",
|
|
1007
|
+
"multiple": false,
|
|
1008
|
+
"default": "default"
|
|
1009
|
+
},
|
|
1010
|
+
"config": {
|
|
1011
|
+
"name": "config",
|
|
1012
|
+
"type": "option",
|
|
1013
|
+
"description": "Config file.",
|
|
1014
|
+
"helpValue": "path",
|
|
1015
|
+
"multiple": false,
|
|
1016
|
+
"dependsOn": [
|
|
1017
|
+
"profile"
|
|
1018
|
+
],
|
|
1019
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
1020
|
+
"aliases": [
|
|
1021
|
+
"c"
|
|
1022
|
+
]
|
|
1023
|
+
},
|
|
1024
|
+
"no-agent": {
|
|
1025
|
+
"name": "no-agent",
|
|
1026
|
+
"type": "boolean",
|
|
1027
|
+
"description": "Auto-start agent.",
|
|
1028
|
+
"allowNo": false
|
|
1029
|
+
},
|
|
1030
|
+
"timeout": {
|
|
1031
|
+
"name": "timeout",
|
|
1032
|
+
"type": "option",
|
|
1033
|
+
"description": "Timeout in seconds.",
|
|
1034
|
+
"multiple": false,
|
|
1035
|
+
"default": 30,
|
|
1036
|
+
"aliases": [
|
|
1037
|
+
"t"
|
|
1038
|
+
]
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"args": {}
|
|
1042
|
+
},
|
|
887
1043
|
"device:list": {
|
|
888
1044
|
"id": "device:list",
|
|
889
1045
|
"description": "Show device info.",
|
|
@@ -953,14 +1109,22 @@
|
|
|
953
1109
|
},
|
|
954
1110
|
"args": {}
|
|
955
1111
|
},
|
|
956
|
-
"function:dev": {
|
|
957
|
-
"id": "function:dev",
|
|
958
|
-
"description": "
|
|
1112
|
+
"function:dev-server": {
|
|
1113
|
+
"id": "function:dev-server",
|
|
1114
|
+
"description": "Development server.",
|
|
959
1115
|
"strict": true,
|
|
960
1116
|
"pluginName": "@dxos/cli",
|
|
961
1117
|
"pluginAlias": "@dxos/cli",
|
|
962
1118
|
"pluginType": "core",
|
|
963
|
-
"aliases": [
|
|
1119
|
+
"aliases": [
|
|
1120
|
+
"function:dev"
|
|
1121
|
+
],
|
|
1122
|
+
"examples": [
|
|
1123
|
+
{
|
|
1124
|
+
"description": "Run with TypeScript support.",
|
|
1125
|
+
"command": "dx function dev-server -r ts-node/register --verbose"
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
964
1128
|
"flags": {
|
|
965
1129
|
"json": {
|
|
966
1130
|
"name": "json",
|
|
@@ -1026,6 +1190,12 @@
|
|
|
1026
1190
|
"aliases": [
|
|
1027
1191
|
"r"
|
|
1028
1192
|
]
|
|
1193
|
+
},
|
|
1194
|
+
"manifest": {
|
|
1195
|
+
"name": "manifest",
|
|
1196
|
+
"type": "option",
|
|
1197
|
+
"multiple": false,
|
|
1198
|
+
"default": "functions.yml"
|
|
1029
1199
|
}
|
|
1030
1200
|
},
|
|
1031
1201
|
"args": {}
|
|
@@ -1037,6 +1207,7 @@
|
|
|
1037
1207
|
"pluginName": "@dxos/cli",
|
|
1038
1208
|
"pluginAlias": "@dxos/cli",
|
|
1039
1209
|
"pluginType": "core",
|
|
1210
|
+
"state": "deprecated",
|
|
1040
1211
|
"aliases": [],
|
|
1041
1212
|
"flags": {
|
|
1042
1213
|
"json": {
|
|
@@ -1112,6 +1283,7 @@
|
|
|
1112
1283
|
"pluginName": "@dxos/cli",
|
|
1113
1284
|
"pluginAlias": "@dxos/cli",
|
|
1114
1285
|
"pluginType": "core",
|
|
1286
|
+
"state": "deprecated",
|
|
1115
1287
|
"aliases": [],
|
|
1116
1288
|
"flags": {
|
|
1117
1289
|
"json": {
|
|
@@ -1181,6 +1353,7 @@
|
|
|
1181
1353
|
"pluginName": "@dxos/cli",
|
|
1182
1354
|
"pluginAlias": "@dxos/cli",
|
|
1183
1355
|
"pluginType": "core",
|
|
1356
|
+
"state": "deprecated",
|
|
1184
1357
|
"aliases": [],
|
|
1185
1358
|
"flags": {
|
|
1186
1359
|
"json": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53-main.123f460",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -47,29 +47,29 @@
|
|
|
47
47
|
"tempy": "^1.0.1",
|
|
48
48
|
"uuid": "^8.3.2",
|
|
49
49
|
"ws": "^7.4.4",
|
|
50
|
-
"@dxos/agent": "0.1.
|
|
51
|
-
"@dxos/async": "0.1.
|
|
52
|
-
"@dxos/bare-template": "0.1.
|
|
53
|
-
"@dxos/client": "0.1.
|
|
54
|
-
"@dxos/client-protocol": "0.1.
|
|
55
|
-
"@dxos/client-services": "0.1.
|
|
56
|
-
"@dxos/codec-protobuf": "0.1.
|
|
57
|
-
"@dxos/config": "0.1.
|
|
58
|
-
"@dxos/context": "0.1.
|
|
59
|
-
"@dxos/debug": "0.1.
|
|
60
|
-
"@dxos/functions": "0.1.
|
|
61
|
-
"@dxos/hello-template": "0.1.
|
|
62
|
-
"@dxos/keys": "0.1.
|
|
63
|
-
"@dxos/log": "0.1.
|
|
64
|
-
"@dxos/observable-object": "0.1.
|
|
65
|
-
"@dxos/plate": "0.1.
|
|
66
|
-
"@dxos/protocols": "0.1.
|
|
67
|
-
"@dxos/rpc": "0.1.
|
|
68
|
-
"@dxos/sentry": "0.1.
|
|
69
|
-
"@dxos/tasks-template": "0.1.
|
|
70
|
-
"@dxos/telemetry": "0.1.
|
|
71
|
-
"@dxos/util": "0.1.
|
|
72
|
-
"@dxos/websocket-rpc": "0.1.
|
|
50
|
+
"@dxos/agent": "0.1.53-main.123f460",
|
|
51
|
+
"@dxos/async": "0.1.53-main.123f460",
|
|
52
|
+
"@dxos/bare-template": "0.1.53-main.123f460",
|
|
53
|
+
"@dxos/client": "0.1.53-main.123f460",
|
|
54
|
+
"@dxos/client-protocol": "0.1.53-main.123f460",
|
|
55
|
+
"@dxos/client-services": "0.1.53-main.123f460",
|
|
56
|
+
"@dxos/codec-protobuf": "0.1.53-main.123f460",
|
|
57
|
+
"@dxos/config": "0.1.53-main.123f460",
|
|
58
|
+
"@dxos/context": "0.1.53-main.123f460",
|
|
59
|
+
"@dxos/debug": "0.1.53-main.123f460",
|
|
60
|
+
"@dxos/functions": "0.1.53-main.123f460",
|
|
61
|
+
"@dxos/hello-template": "0.1.53-main.123f460",
|
|
62
|
+
"@dxos/keys": "0.1.53-main.123f460",
|
|
63
|
+
"@dxos/log": "0.1.53-main.123f460",
|
|
64
|
+
"@dxos/observable-object": "0.1.53-main.123f460",
|
|
65
|
+
"@dxos/plate": "0.1.53-main.123f460",
|
|
66
|
+
"@dxos/protocols": "0.1.53-main.123f460",
|
|
67
|
+
"@dxos/rpc": "0.1.53-main.123f460",
|
|
68
|
+
"@dxos/sentry": "0.1.53-main.123f460",
|
|
69
|
+
"@dxos/tasks-template": "0.1.53-main.123f460",
|
|
70
|
+
"@dxos/telemetry": "0.1.53-main.123f460",
|
|
71
|
+
"@dxos/util": "0.1.53-main.123f460",
|
|
72
|
+
"@dxos/websocket-rpc": "0.1.53-main.123f460"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@oclif/test": "^2.3.11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":"AASA,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,SAA2B;IAEtD,OAAgB,KAAK;;;;;;;;MAGnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAe1B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 node_path_1 = require("node:path");
|
|
8
|
-
const functions_1 = require("@dxos/functions");
|
|
9
|
-
const base_command_1 = require("../../base-command");
|
|
10
|
-
class Dev extends base_command_1.BaseCommand {
|
|
11
|
-
async run() {
|
|
12
|
-
var _a;
|
|
13
|
-
for (const requirePath of (_a = this.flags.require) !== null && _a !== void 0 ? _a : []) {
|
|
14
|
-
require(requirePath);
|
|
15
|
-
}
|
|
16
|
-
await this.execWithClient(async (client) => {
|
|
17
|
-
await (0, functions_1.runFunctions)({
|
|
18
|
-
client,
|
|
19
|
-
functionsDirectory: (0, node_path_1.join)(process.cwd(), 'src/functions'),
|
|
20
|
-
});
|
|
21
|
-
// Hang forever.
|
|
22
|
-
await new Promise(() => { });
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
Dev.enableJsonFlag = true;
|
|
27
|
-
Dev.description = 'Functions dev server.';
|
|
28
|
-
Dev.flags = {
|
|
29
|
-
...base_command_1.BaseCommand.flags,
|
|
30
|
-
require: core_1.Flags.string({ multiple: true, aliases: ['r'] }),
|
|
31
|
-
};
|
|
32
|
-
exports.default = Dev;
|
|
33
|
-
//# sourceMappingURL=dev.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../src/commands/function/dev.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,sCAAoC;AACpC,yCAAiC;AAEjC,+CAA+C;AAE/C,qDAAiD;AAEjD,MAAqB,GAAI,SAAQ,0BAAuB;IAStD,KAAK,CAAC,GAAG;;QACP,KAAK,MAAM,WAAW,IAAI,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,mCAAI,EAAE,EAAE;YAClD,OAAO,CAAC,WAAW,CAAC,CAAC;SACtB;QAED,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACzC,MAAM,IAAA,wBAAY,EAAC;gBACjB,MAAM;gBACN,kBAAkB,EAAE,IAAA,gBAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,eAAe,CAAC;aACzD,CAAC,CAAC;YAEH,gBAAgB;YAChB,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;;AAtBe,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,uBAAuB,CAAC;AAEtC,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,CAAC;CAC1D,CAAC;kBAPiB,GAAG"}
|