@dxos/cli 0.5.1-main.ad6ccc9 → 0.5.1-main.c37e119
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/bin/handle_invitation +2 -3
- 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 +5 -13
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/invitations.d.ts +0 -1
- package/dist/src/commands/agent/invitations.d.ts.map +1 -1
- package/dist/src/commands/agent/list.d.ts +0 -1
- package/dist/src/commands/agent/list.d.ts.map +1 -1
- package/dist/src/commands/agent/restart.d.ts +0 -1
- package/dist/src/commands/agent/restart.d.ts.map +1 -1
- package/dist/src/commands/agent/start.d.ts +0 -1
- package/dist/src/commands/agent/start.d.ts.map +1 -1
- package/dist/src/commands/agent/stop.d.ts +0 -1
- package/dist/src/commands/agent/stop.d.ts.map +1 -1
- package/dist/src/commands/app/create.d.ts +0 -1
- package/dist/src/commands/app/create.d.ts.map +1 -1
- package/dist/src/commands/app/open.d.ts +0 -1
- package/dist/src/commands/app/open.d.ts.map +1 -1
- package/dist/src/commands/app/publish.d.ts +0 -1
- package/dist/src/commands/app/publish.d.ts.map +1 -1
- package/dist/src/commands/debug/diagnostics.d.ts +0 -1
- package/dist/src/commands/debug/diagnostics.d.ts.map +1 -1
- package/dist/src/commands/debug/generate.d.ts +0 -1
- package/dist/src/commands/debug/generate.d.ts.map +1 -1
- package/dist/src/commands/debug/status.d.ts +0 -1
- package/dist/src/commands/debug/status.d.ts.map +1 -1
- package/dist/src/commands/device/list.d.ts +0 -1
- package/dist/src/commands/device/list.d.ts.map +1 -1
- package/dist/src/commands/device/update.d.ts +0 -1
- package/dist/src/commands/device/update.d.ts.map +1 -1
- package/dist/src/commands/function/dev.d.ts +0 -1
- package/dist/src/commands/function/dev.d.ts.map +1 -1
- package/dist/src/commands/halo/create.d.ts +0 -1
- package/dist/src/commands/halo/create.d.ts.map +1 -1
- package/dist/src/commands/halo/credential/list.d.ts +0 -1
- package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
- package/dist/src/commands/halo/join.d.ts +0 -1
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/share.d.ts +0 -1
- package/dist/src/commands/halo/share.d.ts.map +1 -1
- package/dist/src/commands/halo/update.d.ts +0 -1
- package/dist/src/commands/halo/update.d.ts.map +1 -1
- package/dist/src/commands/kube/deploy.d.ts +0 -1
- package/dist/src/commands/kube/deploy.d.ts.map +1 -1
- package/dist/src/commands/reset/index.d.ts +0 -1
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/space/join.d.ts +0 -1
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/list.d.ts +0 -1
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/members.d.ts +0 -1
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/space/share.d.ts +0 -1
- package/dist/src/commands/space/share.d.ts.map +1 -1
- package/dist/src/commands/tunnel/index.d.ts +0 -1
- package/dist/src/commands/tunnel/index.d.ts.map +1 -1
- package/oclif.manifest.json +47 -417
- package/package.json +23 -23
- package/dist/src/commands/agent/status.d.ts +0 -21
- package/dist/src/commands/agent/status.d.ts.map +0 -1
- package/dist/src/commands/agent/status.js +0 -41
- package/dist/src/commands/agent/status.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.5.1-main.
|
|
3
|
+
"version": "0.5.1-main.c37e119",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -47,28 +47,28 @@
|
|
|
47
47
|
"uuid": "^8.3.2",
|
|
48
48
|
"ws": "^8.14.2",
|
|
49
49
|
"wtfnode": "^0.9.1",
|
|
50
|
-
"@dxos/agent": "0.5.1-main.
|
|
51
|
-
"@dxos/async": "0.5.1-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
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/plate": "0.5.1-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/tasks-template": "0.5.1-main.
|
|
71
|
-
"@dxos/util": "0.5.1-main.
|
|
50
|
+
"@dxos/agent": "0.5.1-main.c37e119",
|
|
51
|
+
"@dxos/async": "0.5.1-main.c37e119",
|
|
52
|
+
"@dxos/client": "0.5.1-main.c37e119",
|
|
53
|
+
"@dxos/bare-template": "0.5.1-main.c37e119",
|
|
54
|
+
"@dxos/client-protocol": "0.5.1-main.c37e119",
|
|
55
|
+
"@dxos/config": "0.5.1-main.c37e119",
|
|
56
|
+
"@dxos/client-services": "0.5.1-main.c37e119",
|
|
57
|
+
"@dxos/context": "0.5.1-main.c37e119",
|
|
58
|
+
"@dxos/debug": "0.5.1-main.c37e119",
|
|
59
|
+
"@dxos/functions": "0.5.1-main.c37e119",
|
|
60
|
+
"@dxos/hello-template": "0.5.1-main.c37e119",
|
|
61
|
+
"@dxos/invariant": "0.5.1-main.c37e119",
|
|
62
|
+
"@dxos/network-manager": "0.5.1-main.c37e119",
|
|
63
|
+
"@dxos/observability": "0.5.1-main.c37e119",
|
|
64
|
+
"@dxos/process": "0.5.1-main.c37e119",
|
|
65
|
+
"@dxos/plate": "0.5.1-main.c37e119",
|
|
66
|
+
"@dxos/protocols": "0.5.1-main.c37e119",
|
|
67
|
+
"@dxos/random": "0.5.1-main.c37e119",
|
|
68
|
+
"@dxos/log": "0.5.1-main.c37e119",
|
|
69
|
+
"@dxos/rpc": "0.5.1-main.c37e119",
|
|
70
|
+
"@dxos/tasks-template": "0.5.1-main.c37e119",
|
|
71
|
+
"@dxos/util": "0.5.1-main.c37e119"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@oclif/test": "^2.3.31",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from '../../base-command';
|
|
2
|
-
export default class Status extends BaseCommand<typeof Status> {
|
|
3
|
-
static enableJsonFlag: boolean;
|
|
4
|
-
static description: string;
|
|
5
|
-
static flags: {
|
|
6
|
-
'no-start-agent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
profile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
-
target: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
'no-agent': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
-
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
-
'no-wait': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
-
'json-log': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
'json-logfile': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
-
};
|
|
19
|
-
run(): Promise<any>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/status.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW,CAAC,OAAO,MAAM,CAAC;IAC5D,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAuB;IAElD,OAAgB,KAAK;;;;;;;;;;;;;MAOnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAiB1B"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2024 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var _a, _b;
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const core_1 = require("@oclif/core");
|
|
8
|
-
const services_1 = require("@dxos/protocols/proto/dxos/client/services");
|
|
9
|
-
const base_command_1 = require("../../base-command");
|
|
10
|
-
class Status extends (_b = base_command_1.BaseCommand) {
|
|
11
|
-
async run() {
|
|
12
|
-
return await this.execWithClient(async (client) => {
|
|
13
|
-
const status = client.status.get();
|
|
14
|
-
const statusString = status !== null ? services_1.SystemStatus[status] : 'UNKNOWN';
|
|
15
|
-
// TODO(nf): also show how we connected (or if we're in host mode?)
|
|
16
|
-
// Output JSON directly so we can control the exit code.
|
|
17
|
-
if (this.jsonEnabled()) {
|
|
18
|
-
console.log(JSON.stringify({ SystemStatus: statusString }));
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
this.log(`System status: ${statusString}`);
|
|
22
|
-
}
|
|
23
|
-
if (status !== services_1.SystemStatus.ACTIVE) {
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
_a = Status;
|
|
30
|
-
Status.enableJsonFlag = true;
|
|
31
|
-
Status.description = 'Show agent status';
|
|
32
|
-
Status.flags = {
|
|
33
|
-
...Reflect.get(_b, "flags", _a),
|
|
34
|
-
// TODO(nf): pass as flag to execWithClient instead of setting default flag.
|
|
35
|
-
'no-start-agent': core_1.Flags.boolean({
|
|
36
|
-
description: 'Do not automatically start an agent if one is not running.',
|
|
37
|
-
default: true,
|
|
38
|
-
}),
|
|
39
|
-
};
|
|
40
|
-
exports.default = Status;
|
|
41
|
-
//# sourceMappingURL=status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/commands/agent/status.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,sCAAoC;AAGpC,yEAA0E;AAE1E,qDAAiD;AAEjD,MAAqB,MAAO,SAAQ,MAAA,0BAAW,CAAe;IAa5D,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACnC,MAAM,YAAY,GAAG,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,mEAAmE;YAEnE,wDAAwD;YACxD,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE;gBACtB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC;aAC7D;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;aAC5C;YACD,IAAI,MAAM,KAAK,uBAAY,CAAC,MAAM,EAAE;gBAClC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;;AA5Be,qBAAc,GAAG,IAAI,AAAP,CAAQ;AACtB,kBAAW,GAAG,mBAAmB,AAAtB,CAAuB;AAElC,YAAK,GAAG;IACtB,GAAG,4BAAW;IACd,4EAA4E;IAC5E,gBAAgB,EAAE,YAAK,CAAC,OAAO,CAAC;QAC9B,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,IAAI;KACd,CAAC;CACH,AAPoB,CAOnB;kBAXiB,MAAM"}
|