@dxos/cli 0.1.55-main.5edf62b → 0.1.55-main.b01c908
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 +84 -24
- package/dist/src/base-command.d.ts +0 -1
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +23 -8
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/restart.d.ts.map +1 -1
- package/dist/src/commands/agent/restart.js +8 -3
- package/dist/src/commands/agent/restart.js.map +1 -1
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/start.js +8 -3
- package/dist/src/commands/agent/start.js.map +1 -1
- package/dist/src/commands/agent/stop.d.ts.map +1 -1
- package/dist/src/commands/agent/stop.js +10 -5
- package/dist/src/commands/agent/stop.js.map +1 -1
- package/dist/src/commands/app/create.js +3 -3
- package/dist/src/commands/app/create.js.map +1 -1
- package/dist/src/commands/debug/generate.d.ts +22 -0
- package/dist/src/commands/debug/generate.d.ts.map +1 -0
- package/dist/src/commands/debug/generate.js +68 -0
- package/dist/src/commands/debug/generate.js.map +1 -0
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/join.js +1 -3
- package/dist/src/commands/halo/join.js.map +1 -1
- package/dist/src/commands/kube/deploy.js +1 -1
- package/dist/src/commands/kube/deploy.js.map +1 -1
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +12 -7
- package/dist/src/commands/reset/index.js.map +1 -1
- package/dist/src/commands/shell/index.d.ts +0 -1
- package/dist/src/commands/shell/index.d.ts.map +1 -1
- package/dist/src/commands/shell/index.js +0 -4
- package/dist/src/commands/shell/index.js.map +1 -1
- package/dist/src/commands/space/create.d.ts.map +1 -1
- package/dist/src/commands/space/create.js +2 -3
- 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 +2 -10
- package/dist/src/commands/space/epoch.js.map +1 -1
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/list.js +2 -3
- 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 +2 -10
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/commands/space/query.d.ts +10 -0
- package/dist/src/commands/space/query.d.ts.map +1 -0
- package/dist/src/commands/space/query.js +48 -0
- package/dist/src/commands/space/query.js.map +1 -0
- package/dist/src/commands/space/{invite.d.ts → share.d.ts} +3 -3
- package/dist/src/commands/space/share.d.ts.map +1 -0
- package/dist/src/commands/space/{invite.js → share.js} +7 -10
- package/dist/src/commands/space/share.js.map +1 -0
- package/dist/src/errors.d.ts +4 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +13 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/timeouts.d.ts +0 -1
- package/dist/src/timeouts.d.ts.map +1 -1
- package/dist/src/timeouts.js +1 -3
- package/dist/src/timeouts.js.map +1 -1
- package/dist/src/util/index.d.ts +1 -0
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +1 -0
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/provider/digital-ocean.js +11 -7
- package/dist/src/util/provider/digital-ocean.js.map +1 -1
- package/dist/src/util/random.d.ts +13 -0
- package/dist/src/util/random.d.ts.map +1 -0
- package/dist/src/util/random.js +27 -0
- package/dist/src/util/random.js.map +1 -0
- package/dist/src/util/telemetryrc.json +1 -1
- package/dist/src/util/util.d.ts +1 -0
- package/dist/src/util/util.d.ts.map +1 -1
- package/dist/src/util/util.js +24 -6
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +241 -74
- package/package.json +21 -21
- package/dist/src/commands/space/invite.d.ts.map +0 -1
- package/dist/src/commands/space/invite.js.map +0 -1
package/dist/src/util/util.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
// Copyright 2022 DXOS.org
|
|
4
4
|
//
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.selectSpace = exports.safeParseInt = exports.maybeTruncateKey = void 0;
|
|
6
|
+
exports.waitForSpace = exports.selectSpace = exports.safeParseInt = exports.maybeTruncateKey = void 0;
|
|
7
7
|
const async_1 = require("@dxos/async");
|
|
8
8
|
const debug_1 = require("@dxos/debug");
|
|
9
|
+
const errors_1 = require("../errors");
|
|
9
10
|
const timeouts_1 = require("../timeouts");
|
|
10
11
|
const maybeTruncateKey = (key, truncate = false) => (truncate ? (0, debug_1.truncateKey)(key) : key.toHex());
|
|
11
12
|
exports.maybeTruncateKey = maybeTruncateKey;
|
|
@@ -23,7 +24,7 @@ exports.safeParseInt = safeParseInt;
|
|
|
23
24
|
// Spaces
|
|
24
25
|
//
|
|
25
26
|
const selectSpace = async (spaces) => {
|
|
26
|
-
await Promise.all(spaces.map((space) => (0,
|
|
27
|
+
await Promise.all(spaces.map((space) => (0, exports.waitForSpace)(space)));
|
|
27
28
|
// eslint-disable-next-line no-eval
|
|
28
29
|
const inquirer = (await eval('import("inquirer")')).default;
|
|
29
30
|
const { key } = await inquirer.prompt([
|
|
@@ -31,13 +32,30 @@ const selectSpace = async (spaces) => {
|
|
|
31
32
|
name: 'key',
|
|
32
33
|
type: 'list',
|
|
33
34
|
message: 'Select a space:',
|
|
34
|
-
choices: spaces.map((space) =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
choices: spaces.map((space) => {
|
|
36
|
+
var _a;
|
|
37
|
+
return ({
|
|
38
|
+
name: `[${(0, debug_1.truncateKey)(space.key)}] ${(_a = space.properties.name) !== null && _a !== void 0 ? _a : ''}`,
|
|
39
|
+
value: space.key,
|
|
40
|
+
});
|
|
41
|
+
}),
|
|
38
42
|
},
|
|
39
43
|
]);
|
|
40
44
|
return key;
|
|
41
45
|
};
|
|
42
46
|
exports.selectSpace = selectSpace;
|
|
47
|
+
const waitForSpace = async (space, exceptionHandler) => {
|
|
48
|
+
try {
|
|
49
|
+
await (0, async_1.asyncTimeout)(space.waitUntilReady(), timeouts_1.SPACE_WAIT_TIMEOUT, new errors_1.SpaceWaitTimeoutError());
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
if (exceptionHandler) {
|
|
53
|
+
exceptionHandler(err);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
throw err;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.waitForSpace = waitForSpace;
|
|
43
61
|
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAA2C;AAE3C,uCAA0C;AAG1C,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAA2C;AAE3C,uCAA0C;AAG1C,sCAAkD;AAClD,0CAAiD;AAE1C,MAAM,gBAAgB,GAAG,CAAC,GAAc,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAW,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;AAArG,QAAA,gBAAgB,oBAAqF;AAE3G,MAAM,YAAY,GAAG,CAAC,KAAyB,EAAE,YAAqB,EAAsB,EAAE;IACnG,IAAI;QACF,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KACpC;IAAC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AC;SACvB;aAAM;YACL,MAAM,GAAG,CAAC;SACX;KACF;AACH,CAAC,CAAC;AAVW,QAAA,YAAY,gBAUvB"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.55-main.
|
|
2
|
+
"version": "0.1.55-main.b01c908",
|
|
3
3
|
"commands": {
|
|
4
4
|
"agent:list": {
|
|
5
5
|
"id": "agent:list",
|
|
@@ -819,6 +819,99 @@
|
|
|
819
819
|
},
|
|
820
820
|
"args": {}
|
|
821
821
|
},
|
|
822
|
+
"debug:generate": {
|
|
823
|
+
"id": "debug:generate",
|
|
824
|
+
"description": "Generate test data.",
|
|
825
|
+
"strict": true,
|
|
826
|
+
"pluginName": "@dxos/cli",
|
|
827
|
+
"pluginAlias": "@dxos/cli",
|
|
828
|
+
"pluginType": "core",
|
|
829
|
+
"aliases": [],
|
|
830
|
+
"flags": {
|
|
831
|
+
"json": {
|
|
832
|
+
"name": "json",
|
|
833
|
+
"type": "boolean",
|
|
834
|
+
"description": "Output as JSON.",
|
|
835
|
+
"allowNo": false
|
|
836
|
+
},
|
|
837
|
+
"dry-run": {
|
|
838
|
+
"name": "dry-run",
|
|
839
|
+
"type": "boolean",
|
|
840
|
+
"description": "Dry run.",
|
|
841
|
+
"allowNo": false
|
|
842
|
+
},
|
|
843
|
+
"verbose": {
|
|
844
|
+
"name": "verbose",
|
|
845
|
+
"type": "boolean",
|
|
846
|
+
"char": "v",
|
|
847
|
+
"description": "Verbose output",
|
|
848
|
+
"allowNo": false
|
|
849
|
+
},
|
|
850
|
+
"profile": {
|
|
851
|
+
"name": "profile",
|
|
852
|
+
"type": "option",
|
|
853
|
+
"description": "User profile.",
|
|
854
|
+
"multiple": false,
|
|
855
|
+
"default": "default"
|
|
856
|
+
},
|
|
857
|
+
"config": {
|
|
858
|
+
"name": "config",
|
|
859
|
+
"type": "option",
|
|
860
|
+
"description": "Config file.",
|
|
861
|
+
"helpValue": "path",
|
|
862
|
+
"multiple": false,
|
|
863
|
+
"dependsOn": [
|
|
864
|
+
"profile"
|
|
865
|
+
],
|
|
866
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
867
|
+
"aliases": [
|
|
868
|
+
"c"
|
|
869
|
+
]
|
|
870
|
+
},
|
|
871
|
+
"no-agent": {
|
|
872
|
+
"name": "no-agent",
|
|
873
|
+
"type": "boolean",
|
|
874
|
+
"description": "Run command without agent.",
|
|
875
|
+
"allowNo": false
|
|
876
|
+
},
|
|
877
|
+
"timeout": {
|
|
878
|
+
"name": "timeout",
|
|
879
|
+
"type": "option",
|
|
880
|
+
"description": "Timeout in seconds.",
|
|
881
|
+
"multiple": false,
|
|
882
|
+
"default": 30,
|
|
883
|
+
"aliases": [
|
|
884
|
+
"t"
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
"objects": {
|
|
888
|
+
"name": "objects",
|
|
889
|
+
"type": "option",
|
|
890
|
+
"description": "Number of objects.",
|
|
891
|
+
"multiple": false,
|
|
892
|
+
"default": 0
|
|
893
|
+
},
|
|
894
|
+
"mutations": {
|
|
895
|
+
"name": "mutations",
|
|
896
|
+
"type": "option",
|
|
897
|
+
"description": "Number of mutations.",
|
|
898
|
+
"multiple": false,
|
|
899
|
+
"default": 0
|
|
900
|
+
},
|
|
901
|
+
"mutationsPerEpoch": {
|
|
902
|
+
"name": "mutationsPerEpoch",
|
|
903
|
+
"type": "option",
|
|
904
|
+
"description": "Number of mutations per epoch.",
|
|
905
|
+
"multiple": false
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"args": {
|
|
909
|
+
"key": {
|
|
910
|
+
"name": "key",
|
|
911
|
+
"description": "Space key head in hex."
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
822
915
|
"device": {
|
|
823
916
|
"id": "device",
|
|
824
917
|
"description": "Show device info.",
|
|
@@ -2089,79 +2182,6 @@
|
|
|
2089
2182
|
}
|
|
2090
2183
|
}
|
|
2091
2184
|
},
|
|
2092
|
-
"space:invite": {
|
|
2093
|
-
"id": "space:invite",
|
|
2094
|
-
"description": "Create space invitation.",
|
|
2095
|
-
"strict": true,
|
|
2096
|
-
"pluginName": "@dxos/cli",
|
|
2097
|
-
"pluginAlias": "@dxos/cli",
|
|
2098
|
-
"pluginType": "core",
|
|
2099
|
-
"aliases": [],
|
|
2100
|
-
"flags": {
|
|
2101
|
-
"json": {
|
|
2102
|
-
"name": "json",
|
|
2103
|
-
"type": "boolean",
|
|
2104
|
-
"description": "Output as JSON.",
|
|
2105
|
-
"allowNo": false
|
|
2106
|
-
},
|
|
2107
|
-
"dry-run": {
|
|
2108
|
-
"name": "dry-run",
|
|
2109
|
-
"type": "boolean",
|
|
2110
|
-
"description": "Dry run.",
|
|
2111
|
-
"allowNo": false
|
|
2112
|
-
},
|
|
2113
|
-
"verbose": {
|
|
2114
|
-
"name": "verbose",
|
|
2115
|
-
"type": "boolean",
|
|
2116
|
-
"char": "v",
|
|
2117
|
-
"description": "Verbose output",
|
|
2118
|
-
"allowNo": false
|
|
2119
|
-
},
|
|
2120
|
-
"profile": {
|
|
2121
|
-
"name": "profile",
|
|
2122
|
-
"type": "option",
|
|
2123
|
-
"description": "User profile.",
|
|
2124
|
-
"multiple": false,
|
|
2125
|
-
"default": "default"
|
|
2126
|
-
},
|
|
2127
|
-
"config": {
|
|
2128
|
-
"name": "config",
|
|
2129
|
-
"type": "option",
|
|
2130
|
-
"description": "Config file.",
|
|
2131
|
-
"helpValue": "path",
|
|
2132
|
-
"multiple": false,
|
|
2133
|
-
"dependsOn": [
|
|
2134
|
-
"profile"
|
|
2135
|
-
],
|
|
2136
|
-
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
2137
|
-
"aliases": [
|
|
2138
|
-
"c"
|
|
2139
|
-
]
|
|
2140
|
-
},
|
|
2141
|
-
"no-agent": {
|
|
2142
|
-
"name": "no-agent",
|
|
2143
|
-
"type": "boolean",
|
|
2144
|
-
"description": "Run command without agent.",
|
|
2145
|
-
"allowNo": false
|
|
2146
|
-
},
|
|
2147
|
-
"timeout": {
|
|
2148
|
-
"name": "timeout",
|
|
2149
|
-
"type": "option",
|
|
2150
|
-
"description": "Timeout in seconds.",
|
|
2151
|
-
"multiple": false,
|
|
2152
|
-
"default": 30,
|
|
2153
|
-
"aliases": [
|
|
2154
|
-
"t"
|
|
2155
|
-
]
|
|
2156
|
-
}
|
|
2157
|
-
},
|
|
2158
|
-
"args": {
|
|
2159
|
-
"key": {
|
|
2160
|
-
"name": "key",
|
|
2161
|
-
"required": true
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
},
|
|
2165
2185
|
"space:join": {
|
|
2166
2186
|
"id": "space:join",
|
|
2167
2187
|
"description": "Join space invitation",
|
|
@@ -2529,6 +2549,153 @@
|
|
|
2529
2549
|
}
|
|
2530
2550
|
}
|
|
2531
2551
|
},
|
|
2552
|
+
"space:query": {
|
|
2553
|
+
"id": "space:query",
|
|
2554
|
+
"description": "Query database.",
|
|
2555
|
+
"strict": true,
|
|
2556
|
+
"pluginName": "@dxos/cli",
|
|
2557
|
+
"pluginAlias": "@dxos/cli",
|
|
2558
|
+
"pluginType": "core",
|
|
2559
|
+
"aliases": [],
|
|
2560
|
+
"flags": {
|
|
2561
|
+
"json": {
|
|
2562
|
+
"name": "json",
|
|
2563
|
+
"type": "boolean",
|
|
2564
|
+
"description": "Format output as json.",
|
|
2565
|
+
"helpGroup": "GLOBAL",
|
|
2566
|
+
"allowNo": false
|
|
2567
|
+
},
|
|
2568
|
+
"dry-run": {
|
|
2569
|
+
"name": "dry-run",
|
|
2570
|
+
"type": "boolean",
|
|
2571
|
+
"description": "Dry run.",
|
|
2572
|
+
"allowNo": false
|
|
2573
|
+
},
|
|
2574
|
+
"verbose": {
|
|
2575
|
+
"name": "verbose",
|
|
2576
|
+
"type": "boolean",
|
|
2577
|
+
"char": "v",
|
|
2578
|
+
"description": "Verbose output",
|
|
2579
|
+
"allowNo": false
|
|
2580
|
+
},
|
|
2581
|
+
"profile": {
|
|
2582
|
+
"name": "profile",
|
|
2583
|
+
"type": "option",
|
|
2584
|
+
"description": "User profile.",
|
|
2585
|
+
"multiple": false,
|
|
2586
|
+
"default": "default"
|
|
2587
|
+
},
|
|
2588
|
+
"config": {
|
|
2589
|
+
"name": "config",
|
|
2590
|
+
"type": "option",
|
|
2591
|
+
"description": "Config file.",
|
|
2592
|
+
"helpValue": "path",
|
|
2593
|
+
"multiple": false,
|
|
2594
|
+
"dependsOn": [
|
|
2595
|
+
"profile"
|
|
2596
|
+
],
|
|
2597
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
2598
|
+
"aliases": [
|
|
2599
|
+
"c"
|
|
2600
|
+
]
|
|
2601
|
+
},
|
|
2602
|
+
"no-agent": {
|
|
2603
|
+
"name": "no-agent",
|
|
2604
|
+
"type": "boolean",
|
|
2605
|
+
"description": "Run command without agent.",
|
|
2606
|
+
"allowNo": false
|
|
2607
|
+
},
|
|
2608
|
+
"timeout": {
|
|
2609
|
+
"name": "timeout",
|
|
2610
|
+
"type": "option",
|
|
2611
|
+
"description": "Timeout in seconds.",
|
|
2612
|
+
"multiple": false,
|
|
2613
|
+
"default": 30,
|
|
2614
|
+
"aliases": [
|
|
2615
|
+
"t"
|
|
2616
|
+
]
|
|
2617
|
+
}
|
|
2618
|
+
},
|
|
2619
|
+
"args": {
|
|
2620
|
+
"key": {
|
|
2621
|
+
"name": "key",
|
|
2622
|
+
"description": "Space key head in hex."
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
},
|
|
2626
|
+
"space:share": {
|
|
2627
|
+
"id": "space:share",
|
|
2628
|
+
"description": "Create space invitation.",
|
|
2629
|
+
"strict": true,
|
|
2630
|
+
"pluginName": "@dxos/cli",
|
|
2631
|
+
"pluginAlias": "@dxos/cli",
|
|
2632
|
+
"pluginType": "core",
|
|
2633
|
+
"aliases": [],
|
|
2634
|
+
"flags": {
|
|
2635
|
+
"json": {
|
|
2636
|
+
"name": "json",
|
|
2637
|
+
"type": "boolean",
|
|
2638
|
+
"description": "Output as JSON.",
|
|
2639
|
+
"allowNo": false
|
|
2640
|
+
},
|
|
2641
|
+
"dry-run": {
|
|
2642
|
+
"name": "dry-run",
|
|
2643
|
+
"type": "boolean",
|
|
2644
|
+
"description": "Dry run.",
|
|
2645
|
+
"allowNo": false
|
|
2646
|
+
},
|
|
2647
|
+
"verbose": {
|
|
2648
|
+
"name": "verbose",
|
|
2649
|
+
"type": "boolean",
|
|
2650
|
+
"char": "v",
|
|
2651
|
+
"description": "Verbose output",
|
|
2652
|
+
"allowNo": false
|
|
2653
|
+
},
|
|
2654
|
+
"profile": {
|
|
2655
|
+
"name": "profile",
|
|
2656
|
+
"type": "option",
|
|
2657
|
+
"description": "User profile.",
|
|
2658
|
+
"multiple": false,
|
|
2659
|
+
"default": "default"
|
|
2660
|
+
},
|
|
2661
|
+
"config": {
|
|
2662
|
+
"name": "config",
|
|
2663
|
+
"type": "option",
|
|
2664
|
+
"description": "Config file.",
|
|
2665
|
+
"helpValue": "path",
|
|
2666
|
+
"multiple": false,
|
|
2667
|
+
"dependsOn": [
|
|
2668
|
+
"profile"
|
|
2669
|
+
],
|
|
2670
|
+
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
2671
|
+
"aliases": [
|
|
2672
|
+
"c"
|
|
2673
|
+
]
|
|
2674
|
+
},
|
|
2675
|
+
"no-agent": {
|
|
2676
|
+
"name": "no-agent",
|
|
2677
|
+
"type": "boolean",
|
|
2678
|
+
"description": "Run command without agent.",
|
|
2679
|
+
"allowNo": false
|
|
2680
|
+
},
|
|
2681
|
+
"timeout": {
|
|
2682
|
+
"name": "timeout",
|
|
2683
|
+
"type": "option",
|
|
2684
|
+
"description": "Timeout in seconds.",
|
|
2685
|
+
"multiple": false,
|
|
2686
|
+
"default": 30,
|
|
2687
|
+
"aliases": [
|
|
2688
|
+
"t"
|
|
2689
|
+
]
|
|
2690
|
+
}
|
|
2691
|
+
},
|
|
2692
|
+
"args": {
|
|
2693
|
+
"key": {
|
|
2694
|
+
"name": "key",
|
|
2695
|
+
"description": "Space key head in hex."
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
},
|
|
2532
2699
|
"tunnel:list": {
|
|
2533
2700
|
"id": "tunnel:list",
|
|
2534
2701
|
"description": "List tunnels.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.55-main.
|
|
3
|
+
"version": "0.1.55-main.b01c908",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -47,26 +47,26 @@
|
|
|
47
47
|
"tiny-invariant": "^1.3.1",
|
|
48
48
|
"uuid": "^8.3.2",
|
|
49
49
|
"ws": "^7.4.4",
|
|
50
|
-
"@dxos/agent": "0.1.55-main.
|
|
51
|
-
"@dxos/async": "0.1.55-main.
|
|
52
|
-
"@dxos/bare-template": "0.1.55-main.
|
|
53
|
-
"@dxos/client": "0.1.55-main.
|
|
54
|
-
"@dxos/client-protocol": "0.1.55-main.
|
|
55
|
-
"@dxos/codec-protobuf": "0.1.55-main.
|
|
56
|
-
"@dxos/config": "0.1.55-main.
|
|
57
|
-
"@dxos/context": "0.1.55-main.
|
|
58
|
-
"@dxos/debug": "0.1.55-main.
|
|
59
|
-
"@dxos/functions": "0.1.55-main.
|
|
60
|
-
"@dxos/hello-template": "0.1.55-main.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/protocols": "0.1.55-main.
|
|
64
|
-
"@dxos/rpc": "0.1.55-main.
|
|
65
|
-
"@dxos/sentry": "0.1.55-main.
|
|
66
|
-
"@dxos/tasks-template": "0.1.55-main.
|
|
67
|
-
"@dxos/telemetry": "0.1.55-main.
|
|
68
|
-
"@dxos/util": "0.1.55-main.
|
|
69
|
-
"@dxos/websocket-rpc": "0.1.55-main.
|
|
50
|
+
"@dxos/agent": "0.1.55-main.b01c908",
|
|
51
|
+
"@dxos/async": "0.1.55-main.b01c908",
|
|
52
|
+
"@dxos/bare-template": "0.1.55-main.b01c908",
|
|
53
|
+
"@dxos/client": "0.1.55-main.b01c908",
|
|
54
|
+
"@dxos/client-protocol": "0.1.55-main.b01c908",
|
|
55
|
+
"@dxos/codec-protobuf": "0.1.55-main.b01c908",
|
|
56
|
+
"@dxos/config": "0.1.55-main.b01c908",
|
|
57
|
+
"@dxos/context": "0.1.55-main.b01c908",
|
|
58
|
+
"@dxos/debug": "0.1.55-main.b01c908",
|
|
59
|
+
"@dxos/functions": "0.1.55-main.b01c908",
|
|
60
|
+
"@dxos/hello-template": "0.1.55-main.b01c908",
|
|
61
|
+
"@dxos/plate": "0.1.55-main.b01c908",
|
|
62
|
+
"@dxos/log": "0.1.55-main.b01c908",
|
|
63
|
+
"@dxos/protocols": "0.1.55-main.b01c908",
|
|
64
|
+
"@dxos/rpc": "0.1.55-main.b01c908",
|
|
65
|
+
"@dxos/sentry": "0.1.55-main.b01c908",
|
|
66
|
+
"@dxos/tasks-template": "0.1.55-main.b01c908",
|
|
67
|
+
"@dxos/telemetry": "0.1.55-main.b01c908",
|
|
68
|
+
"@dxos/util": "0.1.55-main.b01c908",
|
|
69
|
+
"@dxos/websocket-rpc": "0.1.55-main.b01c908"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@oclif/test": "^2.3.31",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/invite.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,WAAW,SAA8B;IACzD,OAAgB,IAAI;;MAA4C;IAE1D,GAAG,IAAI,OAAO,CA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