@dxos/cli 0.1.53-main.d535786 → 0.1.53-main.e9dc2bc
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 +98 -105
- 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 +22 -1
- package/dist/src/commands/agent/list.js.map +1 -1
- package/dist/src/commands/agent/restart.d.ts +10 -0
- package/dist/src/commands/agent/restart.d.ts.map +1 -1
- package/dist/src/commands/agent/restart.js +9 -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 +29 -27
- 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 +2 -1
- package/dist/src/commands/debug/stats.d.ts.map +1 -1
- package/dist/src/commands/debug/stats.js +28 -1
- 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 +3 -3
- 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 +3 -2
- 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 +2 -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/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 +3 -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 +3 -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/list.js +1 -0
- package/dist/src/commands/space/list.js.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/space/members.js +1 -0
- package/dist/src/commands/space/members.js.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/dist/src/util/util.js +1 -0
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +37 -113
- package/package.json +31 -32
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"DX_ENVIRONMENT": "staging",
|
|
3
|
-
"DX_RELEASE": "@dxos/cli@0.1.53-main.
|
|
3
|
+
"DX_RELEASE": "@dxos/cli@0.1.53-main.e9dc2bc",
|
|
4
4
|
"SENTRY_DESTINATION": "https://2647916221e643869965e78469479aa4@o4504012000067584.ingest.sentry.io/4504012027265029",
|
|
5
5
|
"TELEMETRY_API_KEY": "B00QG6PtJJrJ0VVFe0H5a6bcUUShKyZM",
|
|
6
6
|
"IPDATA_API_KEY": "ccc5f0cd66dd34a7c31c2ddc61c2bbca2db73892a993982bb3a5f0e2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-util.d.ts","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,QAAiF,CAAC;AAEvG,eAAO,MAAM,UAAU,YAAmB,MAAM,OAAO,MAAM,oBAO5D,CAAC"}
|
|
@@ -5,15 +5,24 @@
|
|
|
5
5
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
6
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
7
|
};
|
|
8
|
+
var _a;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.runCommand = void 0;
|
|
10
|
+
exports.runCommand = exports.BIN_PATH = void 0;
|
|
11
|
+
const node_child_process_1 = require("node:child_process");
|
|
10
12
|
const node_fs_1 = require("node:fs");
|
|
11
|
-
const node_path_1 =
|
|
12
|
-
const
|
|
13
|
+
const node_path_1 = require("node:path");
|
|
14
|
+
const node_util_1 = require("node:util");
|
|
15
|
+
const pkg_up_1 = __importDefault(require("pkg-up"));
|
|
16
|
+
const async_1 = require("@dxos/async");
|
|
17
|
+
const debug_1 = require("@dxos/debug");
|
|
18
|
+
exports.BIN_PATH = (0, node_path_1.join)((0, node_path_1.dirname)((_a = pkg_up_1.default.sync({ cwd: __dirname })) !== null && _a !== void 0 ? _a : (0, debug_1.failUndefined)()), 'bin', 'run');
|
|
13
19
|
const runCommand = async (command, cwd) => {
|
|
14
|
-
const bin = node_path_1.default.join(__dirname, '../../bin/run');
|
|
15
20
|
(0, node_fs_1.mkdirSync)(cwd, { recursive: true });
|
|
16
|
-
|
|
21
|
+
const { stdout, stderr } = await (0, async_1.asyncTimeout)((0, node_util_1.promisify)(node_child_process_1.exec)(`${exports.BIN_PATH} ${command}`, { cwd: __dirname }), 20000);
|
|
22
|
+
if (stderr) {
|
|
23
|
+
throw new Error(stderr);
|
|
24
|
+
}
|
|
25
|
+
return stdout;
|
|
17
26
|
};
|
|
18
27
|
exports.runCommand = runCommand;
|
|
19
28
|
//# sourceMappingURL=test-util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../../src/util/test-util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;AAEF,2DAA0C;AAC1C,qCAAoC;AACpC,yCAA0C;AAC1C,yCAAsC;AACtC,oDAA2B;AAE3B,uCAA2C;AAC3C,uCAA4C;AAE/B,QAAA,QAAQ,GAAG,IAAA,gBAAI,EAAC,IAAA,mBAAO,EAAC,MAAA,gBAAK,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,mCAAI,IAAA,qBAAa,GAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAEhG,MAAM,UAAU,GAAG,KAAK,EAAE,OAAe,EAAE,GAAW,EAAE,EAAE;IAC/D,IAAA,mBAAS,EAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,oBAAY,EAAC,IAAA,qBAAS,EAAC,yBAAI,CAAC,CAAC,GAAG,gBAAQ,IAAI,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,KAAM,CAAC,CAAC;IACrH,IAAI,MAAM,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-rpc-peer.d.ts","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tunnel-rpc-peer.d.ts","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAW,KAAK,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGnE,qBAAa,aAAa;IASZ,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IAEjD,QAAQ,CAAC,SAAS,cAAe;IACjC,QAAQ,CAAC,YAAY,cAAe;IACpC,QAAQ,CAAC,KAAK,eAAsB;gBAEP,IAAI,EAAE,MAAM;IAqDzC,IAAI,GAAG,IAAI,MAAM,CAEhB;IAEK,KAAK;CAOZ"}
|
|
@@ -8,12 +8,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.TunnelRpcPeer = void 0;
|
|
10
10
|
// TODO(egorgripasov): Factor out.
|
|
11
|
-
const debug_1 = __importDefault(require("debug"));
|
|
12
11
|
const isomorphic_ws_1 = __importDefault(require("isomorphic-ws"));
|
|
13
12
|
const async_1 = require("@dxos/async");
|
|
13
|
+
const log_1 = require("@dxos/log");
|
|
14
14
|
const protocols_1 = require("@dxos/protocols");
|
|
15
15
|
const rpc_1 = require("@dxos/rpc");
|
|
16
|
-
const log = (0, debug_1.default)('dxos:cli:tunnel-rpc-peer');
|
|
17
16
|
class TunnelRpcPeer {
|
|
18
17
|
constructor(_url) {
|
|
19
18
|
this._url = _url;
|
|
@@ -25,7 +24,7 @@ class TunnelRpcPeer {
|
|
|
25
24
|
this._socket.onopen = async () => {
|
|
26
25
|
try {
|
|
27
26
|
await this._rpc.open();
|
|
28
|
-
log(`RPC open ${this._url}
|
|
27
|
+
(0, log_1.log)(`RPC open ${this._url}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 28, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
29
28
|
this.connected.emit();
|
|
30
29
|
this._connectTrigger.wake();
|
|
31
30
|
}
|
|
@@ -34,7 +33,7 @@ class TunnelRpcPeer {
|
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
this._socket.onclose = async () => {
|
|
37
|
-
log(`Disconnected ${this._url}
|
|
36
|
+
(0, log_1.log)(`Disconnected ${this._url}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 37, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
38
37
|
this.disconnected.emit();
|
|
39
38
|
try {
|
|
40
39
|
await this._rpc.close();
|
|
@@ -45,7 +44,7 @@ class TunnelRpcPeer {
|
|
|
45
44
|
};
|
|
46
45
|
this._socket.onerror = (event) => {
|
|
47
46
|
var _a;
|
|
48
|
-
log(`Publisher socket error ${this._url} ${event.message}
|
|
47
|
+
(0, log_1.log)(`Publisher socket error ${this._url} ${event.message}`, {}, { file: "packages/devtools/cli/src/util/tunnel/tunnel-rpc-peer.ts", line: 47, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
|
|
49
48
|
this.error.emit((_a = event.error) !== null && _a !== void 0 ? _a : new Error(event.message));
|
|
50
49
|
};
|
|
51
50
|
this._rpc = (0, rpc_1.createProtoRpcPeer)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-rpc-peer.js","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"tunnel-rpc-peer.js","sourceRoot":"","sources":["../../../../src/util/tunnel/tunnel-rpc-peer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kCAAkC;AAClC,kEAAsC;AAEtC,uCAA6C;AAC7C,mCAAgC;AAChC,+CAAyC;AAEzC,mCAA6D;AAE7D,MAAa,aAAa;IASxB,YAA6B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QANxB,oBAAe,GAAG,IAAI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os/client';
|
|
1
|
+
import { Space } from '@dxos/client/echo';
|
|
2
2
|
import { PublicKey } from '@dxos/keys';
|
|
3
3
|
export declare const maybeTruncateKey: (key: PublicKey, truncate?: boolean) => string;
|
|
4
4
|
export declare const safeParseInt: (value: string | undefined, defaultValue?: number) => number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,eAAO,MAAM,gBAAgB,QAAS,SAAS,+BAAkE,CAAC;AAElH,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,iBAAiB,MAAM,KAAG,MAAM,GAAG,SAOxF,CAAC;AAMF,eAAO,MAAM,WAAW,WAAkB,KAAK,EAAE,iBAiBhD,CAAC"}
|
package/dist/src/util/util.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.safeParseInt = safeParseInt;
|
|
|
21
21
|
// Spaces
|
|
22
22
|
//
|
|
23
23
|
const selectSpace = async (spaces) => {
|
|
24
|
+
await Promise.all(spaces.map((space) => space.waitUntilReady()));
|
|
24
25
|
// eslint-disable-next-line no-eval
|
|
25
26
|
const inquirer = (await eval('import("inquirer")')).default;
|
|
26
27
|
const { key } = await inquirer.prompt([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAGF,uCAA0C;AAGnC,MAAM,gBAAgB,GAAG,CAAC,GAAc,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,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AAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE;gBAC5D,KAAK,EAAE,KAAK,CAAC,GAAG;aACjB,CAAC,CAAC;SACJ;KACF,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.53-main.
|
|
2
|
+
"version": "0.1.53-main.e9dc2bc",
|
|
3
3
|
"commands": {
|
|
4
4
|
"agent:list": {
|
|
5
5
|
"id": "agent:list",
|
|
@@ -82,8 +82,7 @@
|
|
|
82
82
|
"json": {
|
|
83
83
|
"name": "json",
|
|
84
84
|
"type": "boolean",
|
|
85
|
-
"description": "
|
|
86
|
-
"helpGroup": "GLOBAL",
|
|
85
|
+
"description": "Output as JSON.",
|
|
87
86
|
"allowNo": false
|
|
88
87
|
},
|
|
89
88
|
"dry-run": {
|
|
@@ -135,6 +134,12 @@
|
|
|
135
134
|
"aliases": [
|
|
136
135
|
"t"
|
|
137
136
|
]
|
|
137
|
+
},
|
|
138
|
+
"force": {
|
|
139
|
+
"name": "force",
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Force restart.",
|
|
142
|
+
"allowNo": false
|
|
138
143
|
}
|
|
139
144
|
},
|
|
140
145
|
"args": {}
|
|
@@ -151,8 +156,7 @@
|
|
|
151
156
|
"json": {
|
|
152
157
|
"name": "json",
|
|
153
158
|
"type": "boolean",
|
|
154
|
-
"description": "
|
|
155
|
-
"helpGroup": "GLOBAL",
|
|
159
|
+
"description": "Output as JSON.",
|
|
156
160
|
"allowNo": false
|
|
157
161
|
},
|
|
158
162
|
"dry-run": {
|
|
@@ -250,8 +254,7 @@
|
|
|
250
254
|
"json": {
|
|
251
255
|
"name": "json",
|
|
252
256
|
"type": "boolean",
|
|
253
|
-
"description": "
|
|
254
|
-
"helpGroup": "GLOBAL",
|
|
257
|
+
"description": "Output as JSON.",
|
|
255
258
|
"allowNo": false
|
|
256
259
|
},
|
|
257
260
|
"dry-run": {
|
|
@@ -307,9 +310,14 @@
|
|
|
307
310
|
"all": {
|
|
308
311
|
"name": "all",
|
|
309
312
|
"type": "boolean",
|
|
310
|
-
"char": "a",
|
|
311
313
|
"description": "Stop all agents.",
|
|
312
314
|
"allowNo": false
|
|
315
|
+
},
|
|
316
|
+
"force": {
|
|
317
|
+
"name": "force",
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"description": "Force stop.",
|
|
320
|
+
"allowNo": false
|
|
313
321
|
}
|
|
314
322
|
},
|
|
315
323
|
"args": {}
|
|
@@ -326,8 +334,7 @@
|
|
|
326
334
|
"json": {
|
|
327
335
|
"name": "json",
|
|
328
336
|
"type": "boolean",
|
|
329
|
-
"description": "
|
|
330
|
-
"helpGroup": "GLOBAL",
|
|
337
|
+
"description": "Output as JSON.",
|
|
331
338
|
"allowNo": false
|
|
332
339
|
},
|
|
333
340
|
"dry-run": {
|
|
@@ -584,8 +591,7 @@
|
|
|
584
591
|
"json": {
|
|
585
592
|
"name": "json",
|
|
586
593
|
"type": "boolean",
|
|
587
|
-
"description": "
|
|
588
|
-
"helpGroup": "GLOBAL",
|
|
594
|
+
"description": "Output as JSON.",
|
|
589
595
|
"allowNo": false
|
|
590
596
|
},
|
|
591
597
|
"dry-run": {
|
|
@@ -746,8 +752,7 @@
|
|
|
746
752
|
"json": {
|
|
747
753
|
"name": "json",
|
|
748
754
|
"type": "boolean",
|
|
749
|
-
"description": "
|
|
750
|
-
"helpGroup": "GLOBAL",
|
|
755
|
+
"description": "Output as JSON.",
|
|
751
756
|
"allowNo": false
|
|
752
757
|
},
|
|
753
758
|
"dry-run": {
|
|
@@ -759,8 +764,7 @@
|
|
|
759
764
|
"verbose": {
|
|
760
765
|
"name": "verbose",
|
|
761
766
|
"type": "boolean",
|
|
762
|
-
"
|
|
763
|
-
"description": "Verbose output",
|
|
767
|
+
"description": "Verbose output.",
|
|
764
768
|
"allowNo": false
|
|
765
769
|
},
|
|
766
770
|
"profile": {
|
|
@@ -884,75 +888,6 @@
|
|
|
884
888
|
},
|
|
885
889
|
"args": {}
|
|
886
890
|
},
|
|
887
|
-
"device:invite": {
|
|
888
|
-
"id": "device:invite",
|
|
889
|
-
"description": "Create device invitation.",
|
|
890
|
-
"strict": true,
|
|
891
|
-
"pluginName": "@dxos/cli",
|
|
892
|
-
"pluginAlias": "@dxos/cli",
|
|
893
|
-
"pluginType": "core",
|
|
894
|
-
"aliases": [],
|
|
895
|
-
"flags": {
|
|
896
|
-
"json": {
|
|
897
|
-
"name": "json",
|
|
898
|
-
"type": "boolean",
|
|
899
|
-
"description": "Format output as json.",
|
|
900
|
-
"helpGroup": "GLOBAL",
|
|
901
|
-
"allowNo": false
|
|
902
|
-
},
|
|
903
|
-
"dry-run": {
|
|
904
|
-
"name": "dry-run",
|
|
905
|
-
"type": "boolean",
|
|
906
|
-
"description": "Dry run.",
|
|
907
|
-
"allowNo": false
|
|
908
|
-
},
|
|
909
|
-
"verbose": {
|
|
910
|
-
"name": "verbose",
|
|
911
|
-
"type": "boolean",
|
|
912
|
-
"char": "v",
|
|
913
|
-
"description": "Verbose output",
|
|
914
|
-
"allowNo": false
|
|
915
|
-
},
|
|
916
|
-
"profile": {
|
|
917
|
-
"name": "profile",
|
|
918
|
-
"type": "option",
|
|
919
|
-
"description": "User profile.",
|
|
920
|
-
"multiple": false,
|
|
921
|
-
"default": "default"
|
|
922
|
-
},
|
|
923
|
-
"config": {
|
|
924
|
-
"name": "config",
|
|
925
|
-
"type": "option",
|
|
926
|
-
"description": "Config file.",
|
|
927
|
-
"helpValue": "path",
|
|
928
|
-
"multiple": false,
|
|
929
|
-
"dependsOn": [
|
|
930
|
-
"profile"
|
|
931
|
-
],
|
|
932
|
-
"default": "/home/runner/.config/dx/profile/default.yml",
|
|
933
|
-
"aliases": [
|
|
934
|
-
"c"
|
|
935
|
-
]
|
|
936
|
-
},
|
|
937
|
-
"no-agent": {
|
|
938
|
-
"name": "no-agent",
|
|
939
|
-
"type": "boolean",
|
|
940
|
-
"description": "Auto-start agent.",
|
|
941
|
-
"allowNo": false
|
|
942
|
-
},
|
|
943
|
-
"timeout": {
|
|
944
|
-
"name": "timeout",
|
|
945
|
-
"type": "option",
|
|
946
|
-
"description": "Timeout in seconds.",
|
|
947
|
-
"multiple": false,
|
|
948
|
-
"default": 30,
|
|
949
|
-
"aliases": [
|
|
950
|
-
"t"
|
|
951
|
-
]
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
|
-
"args": {}
|
|
955
|
-
},
|
|
956
891
|
"device:list": {
|
|
957
892
|
"id": "device:list",
|
|
958
893
|
"description": "Show device info.",
|
|
@@ -1042,8 +977,7 @@
|
|
|
1042
977
|
"json": {
|
|
1043
978
|
"name": "json",
|
|
1044
979
|
"type": "boolean",
|
|
1045
|
-
"description": "
|
|
1046
|
-
"helpGroup": "GLOBAL",
|
|
980
|
+
"description": "Output as JSON.",
|
|
1047
981
|
"allowNo": false
|
|
1048
982
|
},
|
|
1049
983
|
"dry-run": {
|
|
@@ -1100,6 +1034,9 @@
|
|
|
1100
1034
|
"name": "require",
|
|
1101
1035
|
"type": "option",
|
|
1102
1036
|
"multiple": true,
|
|
1037
|
+
"default": [
|
|
1038
|
+
"ts-node/register"
|
|
1039
|
+
],
|
|
1103
1040
|
"aliases": [
|
|
1104
1041
|
"r"
|
|
1105
1042
|
]
|
|
@@ -1491,8 +1428,7 @@
|
|
|
1491
1428
|
"json": {
|
|
1492
1429
|
"name": "json",
|
|
1493
1430
|
"type": "boolean",
|
|
1494
|
-
"description": "
|
|
1495
|
-
"helpGroup": "GLOBAL",
|
|
1431
|
+
"description": "Output as JSON.",
|
|
1496
1432
|
"allowNo": false
|
|
1497
1433
|
},
|
|
1498
1434
|
"dry-run": {
|
|
@@ -1710,8 +1646,7 @@
|
|
|
1710
1646
|
"json": {
|
|
1711
1647
|
"name": "json",
|
|
1712
1648
|
"type": "boolean",
|
|
1713
|
-
"description": "
|
|
1714
|
-
"helpGroup": "GLOBAL",
|
|
1649
|
+
"description": "Output as JSON.",
|
|
1715
1650
|
"allowNo": false
|
|
1716
1651
|
},
|
|
1717
1652
|
"dry-run": {
|
|
@@ -1805,8 +1740,7 @@
|
|
|
1805
1740
|
"json": {
|
|
1806
1741
|
"name": "json",
|
|
1807
1742
|
"type": "boolean",
|
|
1808
|
-
"description": "
|
|
1809
|
-
"helpGroup": "GLOBAL",
|
|
1743
|
+
"description": "Output as JSON.",
|
|
1810
1744
|
"allowNo": false
|
|
1811
1745
|
},
|
|
1812
1746
|
"dry-run": {
|
|
@@ -1880,8 +1814,7 @@
|
|
|
1880
1814
|
"json": {
|
|
1881
1815
|
"name": "json",
|
|
1882
1816
|
"type": "boolean",
|
|
1883
|
-
"description": "
|
|
1884
|
-
"helpGroup": "GLOBAL",
|
|
1817
|
+
"description": "Output as JSON.",
|
|
1885
1818
|
"allowNo": false
|
|
1886
1819
|
},
|
|
1887
1820
|
"dry-run": {
|
|
@@ -2022,8 +1955,7 @@
|
|
|
2022
1955
|
"json": {
|
|
2023
1956
|
"name": "json",
|
|
2024
1957
|
"type": "boolean",
|
|
2025
|
-
"description": "
|
|
2026
|
-
"helpGroup": "GLOBAL",
|
|
1958
|
+
"description": "Output as JSON.",
|
|
2027
1959
|
"allowNo": false
|
|
2028
1960
|
},
|
|
2029
1961
|
"dry-run": {
|
|
@@ -2169,8 +2101,7 @@
|
|
|
2169
2101
|
"json": {
|
|
2170
2102
|
"name": "json",
|
|
2171
2103
|
"type": "boolean",
|
|
2172
|
-
"description": "
|
|
2173
|
-
"helpGroup": "GLOBAL",
|
|
2104
|
+
"description": "Output as JSON.",
|
|
2174
2105
|
"allowNo": false
|
|
2175
2106
|
},
|
|
2176
2107
|
"dry-run": {
|
|
@@ -2238,8 +2169,7 @@
|
|
|
2238
2169
|
"json": {
|
|
2239
2170
|
"name": "json",
|
|
2240
2171
|
"type": "boolean",
|
|
2241
|
-
"description": "
|
|
2242
|
-
"helpGroup": "GLOBAL",
|
|
2172
|
+
"description": "Output as JSON.",
|
|
2243
2173
|
"allowNo": false
|
|
2244
2174
|
},
|
|
2245
2175
|
"dry-run": {
|
|
@@ -2312,8 +2242,7 @@
|
|
|
2312
2242
|
"json": {
|
|
2313
2243
|
"name": "json",
|
|
2314
2244
|
"type": "boolean",
|
|
2315
|
-
"description": "
|
|
2316
|
-
"helpGroup": "GLOBAL",
|
|
2245
|
+
"description": "Output as JSON.",
|
|
2317
2246
|
"allowNo": false
|
|
2318
2247
|
},
|
|
2319
2248
|
"dry-run": {
|
|
@@ -2393,8 +2322,7 @@
|
|
|
2393
2322
|
"json": {
|
|
2394
2323
|
"name": "json",
|
|
2395
2324
|
"type": "boolean",
|
|
2396
|
-
"description": "
|
|
2397
|
-
"helpGroup": "GLOBAL",
|
|
2325
|
+
"description": "Output as JSON.",
|
|
2398
2326
|
"allowNo": false
|
|
2399
2327
|
},
|
|
2400
2328
|
"dry-run": {
|
|
@@ -2535,8 +2463,7 @@
|
|
|
2535
2463
|
"json": {
|
|
2536
2464
|
"name": "json",
|
|
2537
2465
|
"type": "boolean",
|
|
2538
|
-
"description": "
|
|
2539
|
-
"helpGroup": "GLOBAL",
|
|
2466
|
+
"description": "Output as JSON.",
|
|
2540
2467
|
"allowNo": false
|
|
2541
2468
|
},
|
|
2542
2469
|
"dry-run": {
|
|
@@ -2751,8 +2678,7 @@
|
|
|
2751
2678
|
"json": {
|
|
2752
2679
|
"name": "json",
|
|
2753
2680
|
"type": "boolean",
|
|
2754
|
-
"description": "
|
|
2755
|
-
"helpGroup": "GLOBAL",
|
|
2681
|
+
"description": "Output as JSON.",
|
|
2756
2682
|
"allowNo": false
|
|
2757
2683
|
},
|
|
2758
2684
|
"dry-run": {
|
|
@@ -2839,8 +2765,7 @@
|
|
|
2839
2765
|
"json": {
|
|
2840
2766
|
"name": "json",
|
|
2841
2767
|
"type": "boolean",
|
|
2842
|
-
"description": "
|
|
2843
|
-
"helpGroup": "GLOBAL",
|
|
2768
|
+
"description": "Output as JSON.",
|
|
2844
2769
|
"allowNo": false
|
|
2845
2770
|
},
|
|
2846
2771
|
"dry-run": {
|
|
@@ -2914,8 +2839,7 @@
|
|
|
2914
2839
|
"json": {
|
|
2915
2840
|
"name": "json",
|
|
2916
2841
|
"type": "boolean",
|
|
2917
|
-
"description": "
|
|
2918
|
-
"helpGroup": "GLOBAL",
|
|
2842
|
+
"description": "Output as JSON.",
|
|
2919
2843
|
"allowNo": false
|
|
2920
2844
|
},
|
|
2921
2845
|
"dry-run": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.53-main.
|
|
3
|
+
"version": "0.1.53-main.e9dc2bc",
|
|
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/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/client": "0.1.53-main.
|
|
54
|
-
"@dxos/client-
|
|
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/rpc": "0.1.53-main.
|
|
70
|
-
"@dxos/telemetry": "0.1.53-main.d535786",
|
|
71
|
-
"@dxos/util": "0.1.53-main.d535786",
|
|
72
|
-
"@dxos/websocket-rpc": "0.1.53-main.d535786"
|
|
50
|
+
"@dxos/async": "0.1.53-main.e9dc2bc",
|
|
51
|
+
"@dxos/bare-template": "0.1.53-main.e9dc2bc",
|
|
52
|
+
"@dxos/agent": "0.1.53-main.e9dc2bc",
|
|
53
|
+
"@dxos/client": "0.1.53-main.e9dc2bc",
|
|
54
|
+
"@dxos/client-protocol": "0.1.53-main.e9dc2bc",
|
|
55
|
+
"@dxos/codec-protobuf": "0.1.53-main.e9dc2bc",
|
|
56
|
+
"@dxos/config": "0.1.53-main.e9dc2bc",
|
|
57
|
+
"@dxos/context": "0.1.53-main.e9dc2bc",
|
|
58
|
+
"@dxos/debug": "0.1.53-main.e9dc2bc",
|
|
59
|
+
"@dxos/functions": "0.1.53-main.e9dc2bc",
|
|
60
|
+
"@dxos/hello-template": "0.1.53-main.e9dc2bc",
|
|
61
|
+
"@dxos/log": "0.1.53-main.e9dc2bc",
|
|
62
|
+
"@dxos/plate": "0.1.53-main.e9dc2bc",
|
|
63
|
+
"@dxos/protocols": "0.1.53-main.e9dc2bc",
|
|
64
|
+
"@dxos/rpc": "0.1.53-main.e9dc2bc",
|
|
65
|
+
"@dxos/sentry": "0.1.53-main.e9dc2bc",
|
|
66
|
+
"@dxos/tasks-template": "0.1.53-main.e9dc2bc",
|
|
67
|
+
"@dxos/telemetry": "0.1.53-main.e9dc2bc",
|
|
68
|
+
"@dxos/util": "0.1.53-main.e9dc2bc",
|
|
69
|
+
"@dxos/websocket-rpc": "0.1.53-main.e9dc2bc"
|
|
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 +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"}
|