@dxos/cli 0.1.53-main.db41187 → 0.1.53-next.63b0547
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 +64 -129
- package/dist/src/base-command.d.ts +3 -1
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +24 -14
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/agent.test.d.ts +2 -0
- package/dist/src/commands/agent/agent.test.d.ts.map +1 -0
- package/dist/src/commands/agent/agent.test.js +186 -0
- package/dist/src/commands/agent/agent.test.js.map +1 -0
- package/dist/src/commands/agent/list.d.ts.map +1 -1
- package/dist/src/commands/agent/list.js +19 -1
- package/dist/src/commands/agent/list.js.map +1 -1
- package/dist/src/commands/agent/restart.d.ts.map +1 -1
- package/dist/src/commands/agent/restart.js +4 -2
- package/dist/src/commands/agent/restart.js.map +1 -1
- package/dist/src/commands/agent/start.d.ts +1 -0
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/start.js +10 -7
- package/dist/src/commands/agent/start.js.map +1 -1
- package/dist/src/commands/agent/stop.d.ts +2 -0
- package/dist/src/commands/agent/stop.d.ts.map +1 -1
- package/dist/src/commands/agent/stop.js +17 -7
- package/dist/src/commands/agent/stop.js.map +1 -1
- package/dist/src/commands/app/create.d.ts +1 -0
- package/dist/src/commands/app/create.d.ts.map +1 -1
- package/dist/src/commands/app/open.d.ts +1 -0
- package/dist/src/commands/app/open.d.ts.map +1 -1
- package/dist/src/commands/app/open.js +4 -4
- package/dist/src/commands/app/open.js.map +1 -1
- package/dist/src/commands/app/publish.d.ts +1 -0
- package/dist/src/commands/app/publish.d.ts.map +1 -1
- package/dist/src/commands/config/index.d.ts.map +1 -1
- package/dist/src/commands/config/index.js +3 -1
- package/dist/src/commands/config/index.js.map +1 -1
- package/dist/src/commands/debug/stats.d.ts +1 -0
- package/dist/src/commands/debug/stats.d.ts.map +1 -1
- package/dist/src/commands/debug/stats.js +21 -16
- package/dist/src/commands/debug/stats.js.map +1 -1
- package/dist/src/commands/function/dev-server.d.ts +2 -1
- package/dist/src/commands/function/dev-server.d.ts.map +1 -1
- package/dist/src/commands/function/dev-server.js +1 -1
- package/dist/src/commands/function/dev-server.js.map +1 -1
- package/dist/src/commands/halo/credential/list.d.ts +1 -0
- package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
- package/dist/src/commands/halo/join.d.ts +1 -0
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/join.js +2 -2
- package/dist/src/commands/halo/join.js.map +1 -1
- package/dist/src/commands/halo/share.d.ts +1 -0
- package/dist/src/commands/halo/share.d.ts.map +1 -1
- package/dist/src/commands/halo/share.js +4 -4
- package/dist/src/commands/halo/share.js.map +1 -1
- package/dist/src/commands/kube/deploy.d.ts +1 -0
- package/dist/src/commands/kube/deploy.d.ts.map +1 -1
- package/dist/src/commands/reset/index.d.ts +1 -0
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +1 -1
- 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 -29
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/epoch.d.ts +1 -0
- package/dist/src/commands/space/epoch.d.ts.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 +1 -0
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/join.js +2 -2
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.d.ts +1 -0
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/members.d.ts +1 -0
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/tunnel/set.d.ts +1 -0
- package/dist/src/commands/tunnel/set.d.ts.map +1 -1
- package/dist/src/help.d.ts +6 -0
- package/dist/src/help.d.ts.map +1 -0
- package/dist/src/help.js +31 -0
- package/dist/src/help.js.map +1 -0
- package/dist/src/hooks/command-not-found.d.ts +4 -0
- package/dist/src/hooks/command-not-found.d.ts.map +1 -0
- package/dist/src/hooks/command-not-found.js +14 -0
- package/dist/src/hooks/command-not-found.js.map +1 -0
- package/dist/src/util/invitation.d.ts +1 -1
- package/dist/src/util/invitation.d.ts.map +1 -1
- package/dist/src/util/invitation.js +7 -7
- package/dist/src/util/invitation.js.map +1 -1
- package/dist/src/util/print.d.ts +3 -4
- package/dist/src/util/print.d.ts.map +1 -1
- package/dist/src/util/print.js +2 -2
- package/dist/src/util/print.js.map +1 -1
- package/dist/src/util/publish/publisher-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/publish/publisher-rpc-peer.js +4 -5
- package/dist/src/util/publish/publisher-rpc-peer.js.map +1 -1
- package/dist/src/util/supervisor/supervisor-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/supervisor/supervisor-rpc-peer.js +4 -5
- package/dist/src/util/supervisor/supervisor-rpc-peer.js.map +1 -1
- package/dist/src/util/telemetry.d.ts.map +1 -1
- package/dist/src/util/telemetry.js.map +1 -1
- package/dist/src/util/telemetryrc.json +1 -1
- package/dist/src/util/test-util.d.ts +1 -0
- package/dist/src/util/test-util.d.ts.map +1 -1
- package/dist/src/util/test-util.js +14 -5
- package/dist/src/util/test-util.js.map +1 -1
- package/dist/src/util/tunnel/tunnel-rpc-peer.d.ts.map +1 -1
- package/dist/src/util/tunnel/tunnel-rpc-peer.js +4 -5
- package/dist/src/util/tunnel/tunnel-rpc-peer.js.map +1 -1
- package/dist/src/util/util.d.ts +1 -1
- package/dist/src/util/util.d.ts.map +1 -1
- package/oclif.manifest.json +29 -197
- package/package.json +31 -32
- package/dist/src/commands/debug/echo-test-data.d.ts +0 -19
- package/dist/src/commands/debug/echo-test-data.d.ts.map +0 -1
- package/dist/src/commands/debug/echo-test-data.js +0 -63
- package/dist/src/commands/debug/echo-test-data.js.map +0 -1
- package/dist/src/commands/device/invite.d.ts +0 -6
- package/dist/src/commands/device/invite.d.ts.map +0 -1
- package/dist/src/commands/device/invite.js +0 -36
- package/dist/src/commands/device/invite.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.53-
|
|
2
|
+
"version": "0.1.53-next.63b0547",
|
|
3
3
|
"commands": {
|
|
4
4
|
"agent:list": {
|
|
5
5
|
"id": "agent:list",
|
|
@@ -151,8 +151,7 @@
|
|
|
151
151
|
"json": {
|
|
152
152
|
"name": "json",
|
|
153
153
|
"type": "boolean",
|
|
154
|
-
"description": "
|
|
155
|
-
"helpGroup": "GLOBAL",
|
|
154
|
+
"description": "Output as JSON.",
|
|
156
155
|
"allowNo": false
|
|
157
156
|
},
|
|
158
157
|
"dry-run": {
|
|
@@ -250,8 +249,7 @@
|
|
|
250
249
|
"json": {
|
|
251
250
|
"name": "json",
|
|
252
251
|
"type": "boolean",
|
|
253
|
-
"description": "
|
|
254
|
-
"helpGroup": "GLOBAL",
|
|
252
|
+
"description": "Output as JSON.",
|
|
255
253
|
"allowNo": false
|
|
256
254
|
},
|
|
257
255
|
"dry-run": {
|
|
@@ -307,9 +305,14 @@
|
|
|
307
305
|
"all": {
|
|
308
306
|
"name": "all",
|
|
309
307
|
"type": "boolean",
|
|
310
|
-
"char": "a",
|
|
311
308
|
"description": "Stop all agents.",
|
|
312
309
|
"allowNo": false
|
|
310
|
+
},
|
|
311
|
+
"force": {
|
|
312
|
+
"name": "force",
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"description": "Force stop.",
|
|
315
|
+
"allowNo": false
|
|
313
316
|
}
|
|
314
317
|
},
|
|
315
318
|
"args": {}
|
|
@@ -326,8 +329,7 @@
|
|
|
326
329
|
"json": {
|
|
327
330
|
"name": "json",
|
|
328
331
|
"type": "boolean",
|
|
329
|
-
"description": "
|
|
330
|
-
"helpGroup": "GLOBAL",
|
|
332
|
+
"description": "Output as JSON.",
|
|
331
333
|
"allowNo": false
|
|
332
334
|
},
|
|
333
335
|
"dry-run": {
|
|
@@ -584,8 +586,7 @@
|
|
|
584
586
|
"json": {
|
|
585
587
|
"name": "json",
|
|
586
588
|
"type": "boolean",
|
|
587
|
-
"description": "
|
|
588
|
-
"helpGroup": "GLOBAL",
|
|
589
|
+
"description": "Output as JSON.",
|
|
589
590
|
"allowNo": false
|
|
590
591
|
},
|
|
591
592
|
"dry-run": {
|
|
@@ -734,94 +735,6 @@
|
|
|
734
735
|
},
|
|
735
736
|
"args": {}
|
|
736
737
|
},
|
|
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
|
-
},
|
|
825
738
|
"debug:stats": {
|
|
826
739
|
"id": "debug:stats",
|
|
827
740
|
"description": "Output debug stats.",
|
|
@@ -834,8 +747,7 @@
|
|
|
834
747
|
"json": {
|
|
835
748
|
"name": "json",
|
|
836
749
|
"type": "boolean",
|
|
837
|
-
"description": "
|
|
838
|
-
"helpGroup": "GLOBAL",
|
|
750
|
+
"description": "Output as JSON.",
|
|
839
751
|
"allowNo": false
|
|
840
752
|
},
|
|
841
753
|
"dry-run": {
|
|
@@ -971,75 +883,6 @@
|
|
|
971
883
|
},
|
|
972
884
|
"args": {}
|
|
973
885
|
},
|
|
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
|
-
},
|
|
1043
886
|
"device:list": {
|
|
1044
887
|
"id": "device:list",
|
|
1045
888
|
"description": "Show device info.",
|
|
@@ -1129,8 +972,7 @@
|
|
|
1129
972
|
"json": {
|
|
1130
973
|
"name": "json",
|
|
1131
974
|
"type": "boolean",
|
|
1132
|
-
"description": "
|
|
1133
|
-
"helpGroup": "GLOBAL",
|
|
975
|
+
"description": "Output as JSON.",
|
|
1134
976
|
"allowNo": false
|
|
1135
977
|
},
|
|
1136
978
|
"dry-run": {
|
|
@@ -1187,6 +1029,9 @@
|
|
|
1187
1029
|
"name": "require",
|
|
1188
1030
|
"type": "option",
|
|
1189
1031
|
"multiple": true,
|
|
1032
|
+
"default": [
|
|
1033
|
+
"ts-node/register"
|
|
1034
|
+
],
|
|
1190
1035
|
"aliases": [
|
|
1191
1036
|
"r"
|
|
1192
1037
|
]
|
|
@@ -1578,8 +1423,7 @@
|
|
|
1578
1423
|
"json": {
|
|
1579
1424
|
"name": "json",
|
|
1580
1425
|
"type": "boolean",
|
|
1581
|
-
"description": "
|
|
1582
|
-
"helpGroup": "GLOBAL",
|
|
1426
|
+
"description": "Output as JSON.",
|
|
1583
1427
|
"allowNo": false
|
|
1584
1428
|
},
|
|
1585
1429
|
"dry-run": {
|
|
@@ -1797,8 +1641,7 @@
|
|
|
1797
1641
|
"json": {
|
|
1798
1642
|
"name": "json",
|
|
1799
1643
|
"type": "boolean",
|
|
1800
|
-
"description": "
|
|
1801
|
-
"helpGroup": "GLOBAL",
|
|
1644
|
+
"description": "Output as JSON.",
|
|
1802
1645
|
"allowNo": false
|
|
1803
1646
|
},
|
|
1804
1647
|
"dry-run": {
|
|
@@ -1892,8 +1735,7 @@
|
|
|
1892
1735
|
"json": {
|
|
1893
1736
|
"name": "json",
|
|
1894
1737
|
"type": "boolean",
|
|
1895
|
-
"description": "
|
|
1896
|
-
"helpGroup": "GLOBAL",
|
|
1738
|
+
"description": "Output as JSON.",
|
|
1897
1739
|
"allowNo": false
|
|
1898
1740
|
},
|
|
1899
1741
|
"dry-run": {
|
|
@@ -1967,8 +1809,7 @@
|
|
|
1967
1809
|
"json": {
|
|
1968
1810
|
"name": "json",
|
|
1969
1811
|
"type": "boolean",
|
|
1970
|
-
"description": "
|
|
1971
|
-
"helpGroup": "GLOBAL",
|
|
1812
|
+
"description": "Output as JSON.",
|
|
1972
1813
|
"allowNo": false
|
|
1973
1814
|
},
|
|
1974
1815
|
"dry-run": {
|
|
@@ -2109,8 +1950,7 @@
|
|
|
2109
1950
|
"json": {
|
|
2110
1951
|
"name": "json",
|
|
2111
1952
|
"type": "boolean",
|
|
2112
|
-
"description": "
|
|
2113
|
-
"helpGroup": "GLOBAL",
|
|
1953
|
+
"description": "Output as JSON.",
|
|
2114
1954
|
"allowNo": false
|
|
2115
1955
|
},
|
|
2116
1956
|
"dry-run": {
|
|
@@ -2256,8 +2096,7 @@
|
|
|
2256
2096
|
"json": {
|
|
2257
2097
|
"name": "json",
|
|
2258
2098
|
"type": "boolean",
|
|
2259
|
-
"description": "
|
|
2260
|
-
"helpGroup": "GLOBAL",
|
|
2099
|
+
"description": "Output as JSON.",
|
|
2261
2100
|
"allowNo": false
|
|
2262
2101
|
},
|
|
2263
2102
|
"dry-run": {
|
|
@@ -2325,8 +2164,7 @@
|
|
|
2325
2164
|
"json": {
|
|
2326
2165
|
"name": "json",
|
|
2327
2166
|
"type": "boolean",
|
|
2328
|
-
"description": "
|
|
2329
|
-
"helpGroup": "GLOBAL",
|
|
2167
|
+
"description": "Output as JSON.",
|
|
2330
2168
|
"allowNo": false
|
|
2331
2169
|
},
|
|
2332
2170
|
"dry-run": {
|
|
@@ -2399,8 +2237,7 @@
|
|
|
2399
2237
|
"json": {
|
|
2400
2238
|
"name": "json",
|
|
2401
2239
|
"type": "boolean",
|
|
2402
|
-
"description": "
|
|
2403
|
-
"helpGroup": "GLOBAL",
|
|
2240
|
+
"description": "Output as JSON.",
|
|
2404
2241
|
"allowNo": false
|
|
2405
2242
|
},
|
|
2406
2243
|
"dry-run": {
|
|
@@ -2480,8 +2317,7 @@
|
|
|
2480
2317
|
"json": {
|
|
2481
2318
|
"name": "json",
|
|
2482
2319
|
"type": "boolean",
|
|
2483
|
-
"description": "
|
|
2484
|
-
"helpGroup": "GLOBAL",
|
|
2320
|
+
"description": "Output as JSON.",
|
|
2485
2321
|
"allowNo": false
|
|
2486
2322
|
},
|
|
2487
2323
|
"dry-run": {
|
|
@@ -2622,8 +2458,7 @@
|
|
|
2622
2458
|
"json": {
|
|
2623
2459
|
"name": "json",
|
|
2624
2460
|
"type": "boolean",
|
|
2625
|
-
"description": "
|
|
2626
|
-
"helpGroup": "GLOBAL",
|
|
2461
|
+
"description": "Output as JSON.",
|
|
2627
2462
|
"allowNo": false
|
|
2628
2463
|
},
|
|
2629
2464
|
"dry-run": {
|
|
@@ -2838,8 +2673,7 @@
|
|
|
2838
2673
|
"json": {
|
|
2839
2674
|
"name": "json",
|
|
2840
2675
|
"type": "boolean",
|
|
2841
|
-
"description": "
|
|
2842
|
-
"helpGroup": "GLOBAL",
|
|
2676
|
+
"description": "Output as JSON.",
|
|
2843
2677
|
"allowNo": false
|
|
2844
2678
|
},
|
|
2845
2679
|
"dry-run": {
|
|
@@ -2926,8 +2760,7 @@
|
|
|
2926
2760
|
"json": {
|
|
2927
2761
|
"name": "json",
|
|
2928
2762
|
"type": "boolean",
|
|
2929
|
-
"description": "
|
|
2930
|
-
"helpGroup": "GLOBAL",
|
|
2763
|
+
"description": "Output as JSON.",
|
|
2931
2764
|
"allowNo": false
|
|
2932
2765
|
},
|
|
2933
2766
|
"dry-run": {
|
|
@@ -3001,8 +2834,7 @@
|
|
|
3001
2834
|
"json": {
|
|
3002
2835
|
"name": "json",
|
|
3003
2836
|
"type": "boolean",
|
|
3004
|
-
"description": "
|
|
3005
|
-
"helpGroup": "GLOBAL",
|
|
2837
|
+
"description": "Output as JSON.",
|
|
3006
2838
|
"allowNo": false
|
|
3007
2839
|
},
|
|
3008
2840
|
"dry-run": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.53-
|
|
3
|
+
"version": "0.1.53-next.63b0547",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -23,18 +23,17 @@
|
|
|
23
23
|
"/oclif.manifest.json"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@oclif/
|
|
28
|
-
"@oclif/plugin-
|
|
29
|
-
"@oclif/plugin-plugins": "^2.4.3",
|
|
26
|
+
"@oclif/core": "^2.9.4",
|
|
27
|
+
"@oclif/plugin-help": "^5.2.14",
|
|
28
|
+
"@oclif/plugin-plugins": "^3.1.8",
|
|
30
29
|
"@octokit/core": "^4.0.4",
|
|
31
30
|
"chalk": "^4.1.0",
|
|
32
31
|
"cli-progress": "^3.11.2",
|
|
33
32
|
"date-fns": "^2.29.3",
|
|
34
|
-
"debug": "^4.3.3",
|
|
35
33
|
"do-wrapper": "^4.5.1",
|
|
36
34
|
"fs-extra": "^8.1.0",
|
|
37
35
|
"get-folder-size": "^2.0.1",
|
|
36
|
+
"git-rev-sync": "^3.0.2",
|
|
38
37
|
"inquirer": "^8.2.0",
|
|
39
38
|
"ipfs-http-client": "~56.0.1",
|
|
40
39
|
"isomorphic-ws": "^4.0.1",
|
|
@@ -45,37 +44,33 @@
|
|
|
45
44
|
"pkg-up": "^3.1.0",
|
|
46
45
|
"react": "^18.2.0",
|
|
47
46
|
"tempy": "^1.0.1",
|
|
47
|
+
"tiny-invariant": "^1.3.1",
|
|
48
48
|
"uuid": "^8.3.2",
|
|
49
49
|
"ws": "^7.4.4",
|
|
50
|
-
"@dxos/agent": "0.1.53-
|
|
51
|
-
"@dxos/async": "0.1.53-
|
|
52
|
-
"@dxos/bare-template": "0.1.53-
|
|
53
|
-
"@dxos/client": "0.1.53-
|
|
54
|
-
"@dxos/client-protocol": "0.1.53-
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/telemetry": "0.1.53-main.db41187",
|
|
71
|
-
"@dxos/util": "0.1.53-main.db41187",
|
|
72
|
-
"@dxos/websocket-rpc": "0.1.53-main.db41187"
|
|
50
|
+
"@dxos/agent": "0.1.53-next.63b0547",
|
|
51
|
+
"@dxos/async": "0.1.53-next.63b0547",
|
|
52
|
+
"@dxos/bare-template": "0.1.53-next.63b0547",
|
|
53
|
+
"@dxos/client": "0.1.53-next.63b0547",
|
|
54
|
+
"@dxos/client-protocol": "0.1.53-next.63b0547",
|
|
55
|
+
"@dxos/codec-protobuf": "0.1.53-next.63b0547",
|
|
56
|
+
"@dxos/config": "0.1.53-next.63b0547",
|
|
57
|
+
"@dxos/context": "0.1.53-next.63b0547",
|
|
58
|
+
"@dxos/debug": "0.1.53-next.63b0547",
|
|
59
|
+
"@dxos/functions": "0.1.53-next.63b0547",
|
|
60
|
+
"@dxos/hello-template": "0.1.53-next.63b0547",
|
|
61
|
+
"@dxos/log": "0.1.53-next.63b0547",
|
|
62
|
+
"@dxos/plate": "0.1.53-next.63b0547",
|
|
63
|
+
"@dxos/protocols": "0.1.53-next.63b0547",
|
|
64
|
+
"@dxos/rpc": "0.1.53-next.63b0547",
|
|
65
|
+
"@dxos/sentry": "0.1.53-next.63b0547",
|
|
66
|
+
"@dxos/tasks-template": "0.1.53-next.63b0547",
|
|
67
|
+
"@dxos/telemetry": "0.1.53-next.63b0547",
|
|
68
|
+
"@dxos/util": "0.1.53-next.63b0547",
|
|
69
|
+
"@dxos/websocket-rpc": "0.1.53-next.63b0547"
|
|
73
70
|
},
|
|
74
71
|
"devDependencies": {
|
|
75
|
-
"@oclif/test": "^2.3.
|
|
72
|
+
"@oclif/test": "^2.3.31",
|
|
76
73
|
"@types/cli-progress": "^3.11.0",
|
|
77
|
-
"@types/debug": "^4.1.7",
|
|
78
|
-
"@types/faker": "^5.5.9",
|
|
79
74
|
"@types/fs-extra": "^9.0.4",
|
|
80
75
|
"@types/js-yaml": "^4.0.5",
|
|
81
76
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
@@ -96,10 +91,14 @@
|
|
|
96
91
|
"bin": "dx",
|
|
97
92
|
"dirname": "dx",
|
|
98
93
|
"commands": "./dist/src/commands",
|
|
94
|
+
"hooks": {
|
|
95
|
+
"command_not_found": "./dist/src/hooks/command-not-found"
|
|
96
|
+
},
|
|
99
97
|
"plugins": [
|
|
100
98
|
"@oclif/plugin-help",
|
|
101
99
|
"@oclif/plugin-plugins"
|
|
102
100
|
],
|
|
101
|
+
"helpClass": "./dist/src/help",
|
|
103
102
|
"topicSeparator": " ",
|
|
104
103
|
"topics": {
|
|
105
104
|
"config": {
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from '../../base-command';
|
|
2
|
-
export default class EchoTestData extends BaseCommand<typeof EchoTestData> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
mutations: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
6
|
-
epochEach: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
-
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
-
'no-agent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
-
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
};
|
|
14
|
-
static args: {
|
|
15
|
-
key: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
|
|
16
|
-
};
|
|
17
|
-
run(): Promise<any>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=echo-test-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"echo-test-data.d.ts","sourceRoot":"","sources":["../../../../src/commands/debug/echo-test-data.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW,CAAC,OAAO,YAAY,CAAC;IACxE,OAAgB,WAAW,SAA6C;IACxE,OAAgB,KAAK;;;;;;;;;MAUnB;IAEF,OAAgB,IAAI;;MAKlB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAgC1B"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2023 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const core_1 = require("@oclif/core");
|
|
10
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
12
|
-
const client_1 = require("@dxos/client");
|
|
13
|
-
const base_command_1 = require("../../base-command");
|
|
14
|
-
const util_1 = require("../../util");
|
|
15
|
-
class EchoTestData extends base_command_1.BaseCommand {
|
|
16
|
-
async run() {
|
|
17
|
-
return await this.execWithClient(async (client) => {
|
|
18
|
-
var _a;
|
|
19
|
-
let { key } = this.args;
|
|
20
|
-
const spaces = client.spaces.get();
|
|
21
|
-
if (!key) {
|
|
22
|
-
key = await (0, util_1.selectSpace)(spaces);
|
|
23
|
-
}
|
|
24
|
-
(0, node_assert_1.default)(key);
|
|
25
|
-
const space = spaces.find((space) => space.key.toHex().startsWith(key));
|
|
26
|
-
if (!space) {
|
|
27
|
-
this.log((0, chalk_1.default) `{red Invalid space key}`);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
await space.waitUntilReady();
|
|
31
|
-
for (let index = 0; index < this.flags.mutations; index++) {
|
|
32
|
-
const expando = new client_1.Expando();
|
|
33
|
-
expando[client_1.PublicKey.random().toHex()] = { value: client_1.PublicKey.random().toHex() };
|
|
34
|
-
space.db.add(expando);
|
|
35
|
-
await space.db.flush();
|
|
36
|
-
if (index !== 0 && index % this.flags.epochEach === 0) {
|
|
37
|
-
await ((_a = client.services.services.SpacesService) === null || _a === void 0 ? void 0 : _a.createEpoch({ spaceKey: space.key }));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
this.log((0, chalk_1.default) `{green Done}`);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
EchoTestData.description = 'Pollutes selected space with test data.';
|
|
45
|
-
EchoTestData.flags = {
|
|
46
|
-
...base_command_1.BaseCommand.flags,
|
|
47
|
-
mutations: core_1.Flags.integer({
|
|
48
|
-
description: 'Number of mutations.',
|
|
49
|
-
default: 10000,
|
|
50
|
-
}),
|
|
51
|
-
epochEach: core_1.Flags.integer({
|
|
52
|
-
description: 'Epoch each N mutations.',
|
|
53
|
-
default: 100,
|
|
54
|
-
}),
|
|
55
|
-
};
|
|
56
|
-
EchoTestData.args = {
|
|
57
|
-
...base_command_1.BaseCommand.args,
|
|
58
|
-
key: core_1.Args.string({
|
|
59
|
-
description: 'Space key head in hex.',
|
|
60
|
-
}),
|
|
61
|
-
};
|
|
62
|
-
exports.default = EchoTestData;
|
|
63
|
-
//# sourceMappingURL=echo-test-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"echo-test-data.js","sourceRoot":"","sources":["../../../../src/commands/debug/echo-test-data.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAA0C;AAC1C,kDAA0B;AAC1B,8DAAiC;AAEjC,yCAA0D;AAE1D,qDAAiD;AACjD,qCAAyC;AAEzC,MAAqB,YAAa,SAAQ,0BAAgC;IAqBxE,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;;YACxD,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;YAExB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACnC,IAAI,CAAC,GAAG,EAAE;gBACR,GAAG,GAAG,MAAM,IAAA,kBAAW,EAAC,MAAM,CAAC,CAAC;aACjC;YAED,IAAA,qBAAM,EAAC,GAAG,CAAC,CAAC;YAEZ,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAI,CAAC,CAAC,CAAC;YACzE,IAAI,CAAC,KAAK,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,yBAAyB,CAAC,CAAC;gBACzC,OAAO;aACR;YACD,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC;YAE7B,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE;gBACzD,MAAM,OAAO,GAAG,IAAI,gBAAO,EAAE,CAAC;gBAC9B,OAAO,CAAC,kBAAS,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,kBAAS,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;gBAC5E,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACtB,MAAM,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;gBAEvB,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,CAAC,EAAE;oBACrD,MAAM,CAAA,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,0CAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAA,CAAC;iBACpF;aACF;YAED,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,cAAc,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;;AAnDe,wBAAW,GAAG,yCAAyC,CAAC;AACxD,kBAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,SAAS,EAAE,YAAK,CAAC,OAAO,CAAC;QACvB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,KAAK;KACf,CAAC;IACF,SAAS,EAAE,YAAK,CAAC,OAAO,CAAC;QACvB,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,GAAG;KACb,CAAC;CACH,CAAC;AAEc,iBAAI,GAAG;IACrB,GAAG,0BAAW,CAAC,IAAI;IACnB,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,wBAAwB;KACtC,CAAC;CACH,CAAC;kBAnBiB,YAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/commands/device/invite.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAA+B;IAEpD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAoB1B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2022 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const core_1 = require("@oclif/core");
|
|
10
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
-
const client_1 = require("@dxos/client");
|
|
12
|
-
const base_command_1 = require("../../base-command");
|
|
13
|
-
const util_1 = require("../../util");
|
|
14
|
-
class Invite extends base_command_1.BaseCommand {
|
|
15
|
-
async run() {
|
|
16
|
-
return await this.execWithClient(async (client) => {
|
|
17
|
-
const observable = client.halo.createInvitation();
|
|
18
|
-
const invitationSuccess = (0, util_1.hostInvitation)({
|
|
19
|
-
observable,
|
|
20
|
-
callbacks: {
|
|
21
|
-
onConnecting: async () => {
|
|
22
|
-
const invitationCode = client_1.InvitationEncoder.encode(observable.get());
|
|
23
|
-
this.log((0, chalk_1.default) `\n{blue Invitation}: ${invitationCode}`);
|
|
24
|
-
this.log((0, chalk_1.default) `\n{red Secret}: ${observable.get().authCode}\n`);
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
core_1.ux.action.start('Waiting for peer to connect...');
|
|
29
|
-
await invitationSuccess;
|
|
30
|
-
core_1.ux.action.stop();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
Invite.description = 'Create device invitation.';
|
|
35
|
-
exports.default = Invite;
|
|
36
|
-
//# sourceMappingURL=invite.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/commands/device/invite.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAiC;AACjC,kDAA0B;AAE1B,yCAAyD;AAEzD,qDAAiD;AACjD,qCAA4C;AAE5C,MAAqB,MAAO,SAAQ,0BAA0B;IAG5D,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAClD,MAAM,iBAAiB,GAAG,IAAA,qBAAc,EAAC;gBACvC,UAAU;gBACV,SAAS,EAAE;oBACT,YAAY,EAAE,KAAK,IAAI,EAAE;wBACvB,MAAM,cAAc,GAAG,0BAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;wBAElE,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,wBAAwB,cAAc,EAAE,CAAC,CAAC;wBACxD,IAAI,CAAC,GAAG,CAAC,IAAA,eAAK,EAAA,mBAAmB,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,IAAI,CAAC,CAAC;oBAClE,CAAC;iBACF;aACF,CAAC,CAAC;YAEH,SAAE,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAClD,MAAM,iBAAiB,CAAC;YACxB,SAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;;AArBe,kBAAW,GAAG,2BAA2B,CAAC;kBADvC,MAAM"}
|