cloud-cost-cli 0.1.1 → 0.3.0-beta.1
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 +116 -122
- package/dist/bin/cloud-cost-cli.js +28 -3
- package/dist/src/analyzers/cost-estimator.d.ts +14 -0
- package/dist/src/analyzers/cost-estimator.js +74 -16
- package/dist/src/analyzers/pricing-service.d.ts +38 -0
- package/dist/src/analyzers/pricing-service.js +263 -0
- package/dist/src/commands/ask.d.ts +11 -0
- package/dist/src/commands/ask.js +164 -0
- package/dist/src/commands/config.d.ts +1 -0
- package/dist/src/commands/config.js +120 -0
- package/dist/src/commands/costs.d.ts +6 -0
- package/dist/src/commands/costs.js +54 -0
- package/dist/src/commands/scan.d.ts +6 -0
- package/dist/src/commands/scan.js +255 -85
- package/dist/src/commands/script.d.ts +8 -0
- package/dist/src/commands/script.js +27 -0
- package/dist/src/providers/azure/client.d.ts +20 -0
- package/dist/src/providers/azure/client.js +41 -0
- package/dist/src/providers/azure/disks.d.ts +4 -0
- package/dist/src/providers/azure/disks.js +87 -0
- package/dist/src/providers/azure/index.d.ts +6 -0
- package/dist/src/providers/azure/index.js +15 -0
- package/dist/src/providers/azure/public-ips.d.ts +3 -0
- package/dist/src/providers/azure/public-ips.js +47 -0
- package/dist/src/providers/azure/sql.d.ts +4 -0
- package/dist/src/providers/azure/sql.js +134 -0
- package/dist/src/providers/azure/storage.d.ts +8 -0
- package/dist/src/providers/azure/storage.js +100 -0
- package/dist/src/providers/azure/vms.d.ts +4 -0
- package/dist/src/providers/azure/vms.js +164 -0
- package/dist/src/reporters/table.d.ts +2 -1
- package/dist/src/reporters/table.js +69 -3
- package/dist/src/services/ai.d.ts +44 -0
- package/dist/src/services/ai.js +345 -0
- package/dist/src/services/script-generator.d.ts +21 -0
- package/dist/src/services/script-generator.js +245 -0
- package/dist/src/utils/cache.d.ts +25 -0
- package/dist/src/utils/cache.js +197 -0
- package/dist/src/utils/config.d.ts +37 -0
- package/dist/src/utils/config.js +175 -0
- package/dist/src/utils/cost-tracker.d.ts +33 -0
- package/dist/src/utils/cost-tracker.js +135 -0
- package/dist/src/utils/formatter.d.ts +2 -0
- package/dist/src/utils/formatter.js +29 -1
- package/docs/RELEASE.md +14 -25
- package/package.json +15 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloud-cost-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.1",
|
|
4
4
|
"description": "Optimize your cloud spend in seconds",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"dev": "tsx bin/cloud-cost-cli.ts",
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"test": "vitest",
|
|
13
|
+
"test:ui": "vitest --ui",
|
|
14
|
+
"test:coverage": "vitest --coverage",
|
|
13
15
|
"lint": "eslint src/**/*.ts",
|
|
14
16
|
"format": "prettier --write src/**/*.ts"
|
|
15
17
|
},
|
|
@@ -46,24 +48,34 @@
|
|
|
46
48
|
"@aws-sdk/client-cost-explorer": "^3.712.0",
|
|
47
49
|
"@aws-sdk/client-ec2": "^3.712.0",
|
|
48
50
|
"@aws-sdk/client-elastic-load-balancing-v2": "^3.712.0",
|
|
51
|
+
"@aws-sdk/client-pricing": "^3.980.0",
|
|
49
52
|
"@aws-sdk/client-rds": "^3.712.0",
|
|
50
53
|
"@aws-sdk/client-s3": "^3.712.0",
|
|
51
54
|
"@aws-sdk/credential-providers": "^3.712.0",
|
|
55
|
+
"@azure/arm-compute": "^23.3.0",
|
|
56
|
+
"@azure/arm-monitor": "^7.0.0",
|
|
57
|
+
"@azure/arm-network": "^35.0.0",
|
|
58
|
+
"@azure/arm-sql": "^10.0.0",
|
|
59
|
+
"@azure/arm-storage": "^19.1.0",
|
|
60
|
+
"@azure/identity": "^4.13.0",
|
|
52
61
|
"chalk": "^5.3.0",
|
|
53
62
|
"cli-table3": "^0.6.5",
|
|
54
63
|
"commander": "^12.1.0",
|
|
55
64
|
"dayjs": "^1.11.13",
|
|
56
|
-
"ini": "^6.0.0"
|
|
65
|
+
"ini": "^6.0.0",
|
|
66
|
+
"ollama": "^0.6.3",
|
|
67
|
+
"openai": "^6.17.0"
|
|
57
68
|
},
|
|
58
69
|
"devDependencies": {
|
|
59
70
|
"@types/ini": "^4.1.1",
|
|
60
71
|
"@types/node": "^22.10.5",
|
|
61
72
|
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
62
73
|
"@typescript-eslint/parser": "^8.19.1",
|
|
74
|
+
"@vitest/ui": "^1.6.1",
|
|
63
75
|
"eslint": "^8.57.1",
|
|
64
76
|
"prettier": "^3.4.2",
|
|
65
77
|
"tsx": "^4.19.2",
|
|
66
78
|
"typescript": "^5.7.3",
|
|
67
|
-
"vitest": "^1.6.
|
|
79
|
+
"vitest": "^1.6.1"
|
|
68
80
|
}
|
|
69
81
|
}
|