@herodevs/cli 2.0.0-beta.14 → 2.0.0-beta.16
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 +148 -16
- package/dist/api/apollo.client.d.ts +3 -0
- package/dist/api/apollo.client.js +53 -0
- package/dist/api/ci-token.client.d.ts +27 -0
- package/dist/api/ci-token.client.js +95 -0
- package/dist/api/errors.d.ts +8 -0
- package/dist/api/errors.js +13 -0
- package/dist/api/gql-operations.d.ts +3 -0
- package/dist/api/gql-operations.js +34 -0
- package/dist/api/graphql-errors.d.ts +6 -0
- package/dist/api/graphql-errors.js +22 -0
- package/dist/api/nes.client.d.ts +1 -2
- package/dist/api/nes.client.js +25 -17
- package/dist/api/user-setup.client.d.ts +18 -0
- package/dist/api/user-setup.client.js +92 -0
- package/dist/commands/auth/login.d.ts +14 -0
- package/dist/commands/auth/login.js +225 -0
- package/dist/commands/auth/logout.d.ts +5 -0
- package/dist/commands/auth/logout.js +27 -0
- package/dist/commands/auth/provision-ci-token.d.ts +5 -0
- package/dist/commands/auth/provision-ci-token.js +72 -0
- package/dist/commands/scan/eol.d.ts +2 -0
- package/dist/commands/scan/eol.js +34 -4
- package/dist/commands/tracker/run.d.ts +15 -0
- package/dist/commands/tracker/run.js +183 -0
- package/dist/config/constants.d.ts +10 -0
- package/dist/config/constants.js +10 -0
- package/dist/config/tracker.config.js +1 -3
- package/dist/hooks/finally/finally.js +10 -4
- package/dist/hooks/init/01_initialize_amplitude.js +20 -9
- package/dist/service/analytics.svc.d.ts +10 -3
- package/dist/service/analytics.svc.js +180 -18
- package/dist/service/auth-config.svc.d.ts +5 -0
- package/dist/service/auth-config.svc.js +20 -0
- package/dist/service/auth-refresh.svc.d.ts +8 -0
- package/dist/service/auth-refresh.svc.js +45 -0
- package/dist/service/auth-token.svc.d.ts +11 -0
- package/dist/service/auth-token.svc.js +48 -0
- package/dist/service/auth.svc.d.ts +27 -0
- package/dist/service/auth.svc.js +91 -0
- package/dist/service/ci-auth.svc.d.ts +6 -0
- package/dist/service/ci-auth.svc.js +32 -0
- package/dist/service/ci-token.svc.d.ts +6 -0
- package/dist/service/ci-token.svc.js +75 -0
- package/dist/service/jwt.svc.d.ts +1 -0
- package/dist/service/jwt.svc.js +19 -0
- package/dist/service/tracker.svc.d.ts +56 -1
- package/dist/service/tracker.svc.js +78 -3
- package/dist/types/auth.d.ts +9 -0
- package/dist/types/auth.js +1 -0
- package/dist/utils/open-in-browser.d.ts +1 -0
- package/dist/utils/open-in-browser.js +21 -0
- package/dist/utils/retry.d.ts +11 -0
- package/dist/utils/retry.js +29 -0
- package/dist/utils/strip-typename.js +2 -1
- package/package.json +31 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herodevs/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"author": "HeroDevs, Inc",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hd": "./bin/run.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://github.com/herodevs/cli"
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/herodevs/cli",
|
|
14
|
-
"bugs": "https://github.com
|
|
14
|
+
"bugs": "https://github.com/herodevs/cli/issues",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "shx rm -rf dist && tsc -b",
|
|
17
17
|
"ci": "biome ci",
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
"clean:files": "shx rm -f herodevs.**.csv herodevs.**.json herodevs.**.txt",
|
|
21
21
|
"dev": "npm run build && ./bin/dev.js",
|
|
22
22
|
"dev:debug": "npm run build && DEBUG=oclif:* ./bin/dev.js",
|
|
23
|
+
"dev:auth:local": "OAUTH_CONNECT_URL='http://localhost:6040/realms/herodevs_local/protocol/openid-connect' npm run dev auth login",
|
|
24
|
+
"dev:auth:logout": "npm run dev auth logout",
|
|
23
25
|
"format": "biome format --write",
|
|
24
26
|
"lint": "biome lint --write",
|
|
25
27
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
26
28
|
"prepare": "shx test -d dist || npm run build",
|
|
27
29
|
"prepack": "oclif manifest",
|
|
28
30
|
"pretest": "npm run lint && npm run typecheck",
|
|
29
|
-
"readme": "npm run ci:fix && npm run build && oclif readme",
|
|
30
|
-
"test": "
|
|
31
|
-
"test:
|
|
31
|
+
"readme": "npm run ci:fix && npm run build && oclif readme && sed -i '' 's|/plugin-help/blob/v|/plugin-help/blob/|; s|/plugin-update/blob/v|/plugin-update/blob/|' README.md",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:watch": "vitest watch",
|
|
34
|
+
"test:e2e": "globstar -- node --import tsx --import ./e2e/setup/register-mock-auth.mjs --test \"e2e/**/*.test.ts\"",
|
|
32
35
|
"typecheck": "tsc --noEmit",
|
|
33
36
|
"version": "oclif manifest",
|
|
34
37
|
"postversion": "node scripts/update-install-script-version.js && git add README.md"
|
|
@@ -39,29 +42,40 @@
|
|
|
39
42
|
"herodevs cli"
|
|
40
43
|
],
|
|
41
44
|
"dependencies": {
|
|
42
|
-
"@amplitude/analytics-node": "^1.5.
|
|
45
|
+
"@amplitude/analytics-node": "^1.5.26",
|
|
43
46
|
"@apollo/client": "^4.0.9",
|
|
44
|
-
"@cyclonedx/cdxgen": "^
|
|
45
|
-
"@herodevs/eol-shared": "github:herodevs/eol-shared#v0.1.
|
|
46
|
-
"@inquirer/prompts": "^8.0.
|
|
47
|
+
"@cyclonedx/cdxgen": "^12.1.1",
|
|
48
|
+
"@herodevs/eol-shared": "github:herodevs/eol-shared#v0.1.17",
|
|
49
|
+
"@inquirer/prompts": "^8.0.2",
|
|
50
|
+
"@napi-rs/keyring": "^1.2.0",
|
|
47
51
|
"@oclif/core": "^4.8.0",
|
|
48
52
|
"@oclif/plugin-help": "^6.2.32",
|
|
49
|
-
"@oclif/plugin-update": "^4.7.
|
|
53
|
+
"@oclif/plugin-update": "^4.7.16",
|
|
50
54
|
"@oclif/table": "^0.5.1",
|
|
55
|
+
"cli-progress": "^3.12.0",
|
|
56
|
+
"conf": "^15.1.0",
|
|
51
57
|
"date-fns": "^4.1.0",
|
|
58
|
+
"glob": "^13.0.0",
|
|
59
|
+
"graphql": "^16.11.0",
|
|
52
60
|
"node-machine-id": "^1.1.12",
|
|
53
61
|
"ora": "^9.0.0",
|
|
54
62
|
"packageurl-js": "^2.0.1",
|
|
63
|
+
"sloc": "^0.3.2",
|
|
55
64
|
"terminal-link": "^5.0.0",
|
|
56
65
|
"update-notifier": "^7.3.1"
|
|
57
66
|
},
|
|
58
67
|
"devDependencies": {
|
|
59
|
-
"@biomejs/biome": "^2.3.
|
|
60
|
-
"@oclif/test": "^4.1.
|
|
68
|
+
"@biomejs/biome": "^2.3.8",
|
|
69
|
+
"@oclif/test": "^4.1.15",
|
|
70
|
+
"@types/cli-progress": "^3.11.6",
|
|
71
|
+
"@types/debug": "^4.1.12",
|
|
61
72
|
"@types/inquirer": "^9.0.9",
|
|
62
73
|
"@types/mock-fs": "^4.13.4",
|
|
63
|
-
"@types/node": "^24.10.
|
|
64
|
-
"@types/
|
|
74
|
+
"@types/node": "^24.10.1",
|
|
75
|
+
"@types/ora": "^3.1.0",
|
|
76
|
+
"@types/sinon": "^21.0.0",
|
|
77
|
+
"@types/sloc": "^0.2.3",
|
|
78
|
+
"@types/terminal-link": "^1.1.0",
|
|
65
79
|
"@types/update-notifier": "^6.0.8",
|
|
66
80
|
"globstar": "^1.0.0",
|
|
67
81
|
"mock-fs": "^5.5.0",
|
|
@@ -69,8 +83,9 @@
|
|
|
69
83
|
"shx": "^0.4.0",
|
|
70
84
|
"sinon": "^21.0.0",
|
|
71
85
|
"ts-node": "^10.9.2",
|
|
72
|
-
"tsx": "^4.
|
|
73
|
-
"typescript": "^5.9.3"
|
|
86
|
+
"tsx": "^4.21.0",
|
|
87
|
+
"typescript": "^5.9.3",
|
|
88
|
+
"vitest": "^4.0.16"
|
|
74
89
|
},
|
|
75
90
|
"engines": {
|
|
76
91
|
"node": ">=20.0.0"
|
|
@@ -88,7 +103,6 @@
|
|
|
88
103
|
"commands": "./dist/commands",
|
|
89
104
|
"plugins": [
|
|
90
105
|
"@oclif/plugin-help",
|
|
91
|
-
"@oclif/plugin-plugins",
|
|
92
106
|
"@oclif/plugin-update"
|
|
93
107
|
],
|
|
94
108
|
"hooks": {
|