@capawesome/cli 1.6.3 → 1.7.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.7.0](https://github.com/capawesome-team/cli/compare/v1.6.3...v1.7.0) (2025-03-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * **doctor:** add doctor command ([#37](https://github.com/capawesome-team/cli/issues/37)) ([1d9d0ac](https://github.com/capawesome-team/cli/commit/1d9d0acf74b1b3ce63c87031a8499227bf3e3f8b))
11
+
5
12
  ## [1.6.3](https://github.com/capawesome-team/cli/compare/v1.6.2...v1.6.3) (2025-03-20)
6
13
 
7
14
 
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const citty_1 = require("citty");
16
+ const consola_1 = __importDefault(require("consola"));
17
+ const package_json_1 = __importDefault(require("../../package.json"));
18
+ const systeminformation_1 = __importDefault(require("systeminformation"));
19
+ exports.default = (0, citty_1.defineCommand)({
20
+ meta: {
21
+ name: 'doctor',
22
+ description: 'Prints out neccessary information for debugging',
23
+ },
24
+ run: () => __awaiter(void 0, void 0, void 0, function* () {
25
+ const osInfo = yield systeminformation_1.default.osInfo();
26
+ const versions = yield systeminformation_1.default.versions('npm, node');
27
+ consola_1.default.box([
28
+ `NodeJS version: ${versions.node}`,
29
+ `NPM version: ${versions.npm}`,
30
+ `CLI version: ${package_json_1.default.version}`,
31
+ `OS: ${osInfo.distro} ${osInfo.release} ${osInfo.codename ? `(${osInfo.codename})` : ''}`,
32
+ ].join('\n'));
33
+ }),
34
+ });
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ const main = (0, citty_1.defineCommand)({
57
57
  whoami: Promise.resolve().then(() => __importStar(require('./commands/whoami'))).then((mod) => mod.default),
58
58
  login: Promise.resolve().then(() => __importStar(require('./commands/login'))).then((mod) => mod.default),
59
59
  logout: Promise.resolve().then(() => __importStar(require('./commands/logout'))).then((mod) => mod.default),
60
+ doctor: Promise.resolve().then(() => __importStar(require('./commands/doctor'))).then((mod) => mod.default),
60
61
  'apps:create': Promise.resolve().then(() => __importStar(require('./commands/apps/create'))).then((mod) => mod.default),
61
62
  'apps:delete': Promise.resolve().then(() => __importStar(require('./commands/apps/delete'))).then((mod) => mod.default),
62
63
  'apps:bundles:create': Promise.resolve().then(() => __importStar(require('./commands/apps/bundles/create'))).then((mod) => mod.default),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "scripts": {
6
6
  "build": "patch-package && rimraf ./dist && tsc",
@@ -41,15 +41,16 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@clack/prompts": "0.7.0",
44
- "@sentry/node": "8.47.0",
44
+ "@sentry/node": "8.55.0",
45
45
  "archiver": "7.0.1",
46
- "axios": "1.7.7",
46
+ "axios": "1.8.4",
47
47
  "c12": "2.0.1",
48
48
  "citty": "0.1.6",
49
49
  "consola": "3.3.0",
50
50
  "form-data": "4.0.1",
51
51
  "rc9": "2.1.2",
52
- "semver": "7.6.3"
52
+ "semver": "7.6.3",
53
+ "systeminformation": "5.25.11"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@ionic/prettier-config": "4.0.0",