@meterian/cli 0.1.0 → 0.1.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/CHANGELOG.md +23 -0
- package/dist/cli.js +43 -3
- package/package.json +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@meterian/cli` are documented here.
|
|
4
|
+
|
|
5
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
7
|
+
## [0.1.1] — 2026-05-15
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Set the correct `meterian/cli <version>` User-Agent header on all outbound HTTP calls to the Kiwi API (previously the header was unset or used the wrong client identifier).
|
|
12
|
+
|
|
13
|
+
## [0.1.0] — 2026-04-28
|
|
14
|
+
|
|
15
|
+
Initial public release.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- `check` command — batch dependency audit; reads `[{language, name, version}]` from stdin, returns a compact vulnerability summary with safe-version suggestions.
|
|
20
|
+
- `advisories get` command — returns the full advisory list for a single package.
|
|
21
|
+
- `nextsafe` command — returns the next safe version at each semver level (patch / minor / major).
|
|
22
|
+
- Human-readable `--help` output for all commands.
|
|
23
|
+
- Aliases for common language names (`npm` → `nodejs`, `cargo` → `rust`, `pypi` → `python`, etc.).
|
package/dist/cli.js
CHANGED
|
@@ -20705,7 +20705,7 @@ var require_log4js = __commonJS({
|
|
|
20705
20705
|
var require_api_timeouts = __commonJS({
|
|
20706
20706
|
"../../src/meterian/api-timeouts.js"(exports2, module2) {
|
|
20707
20707
|
var API_TIMEOUTS = {
|
|
20708
|
-
KIWI_API:
|
|
20708
|
+
KIWI_API: 15e3,
|
|
20709
20709
|
// KiwiAPI advisories, safe versions
|
|
20710
20710
|
ACCOUNT_OPERATION: 1e4,
|
|
20711
20711
|
// AccountsAPI
|
|
@@ -20887,8 +20887,15 @@ var require_FileSystemFacadeNetwork = __commonJS({
|
|
|
20887
20887
|
dir: {
|
|
20888
20888
|
read: async (path3) => {
|
|
20889
20889
|
if (typeof path3 == "string") path3 = vscode.Uri.file(path3);
|
|
20890
|
-
|
|
20891
|
-
|
|
20890
|
+
try {
|
|
20891
|
+
const files = await vscode.workspace.fs.readDirectory(path3);
|
|
20892
|
+
return files.map((f) => f[0]);
|
|
20893
|
+
} catch (err) {
|
|
20894
|
+
if (err instanceof vscode.FileSystemError && err.code === "Canceled") {
|
|
20895
|
+
return [];
|
|
20896
|
+
}
|
|
20897
|
+
throw err;
|
|
20898
|
+
}
|
|
20892
20899
|
},
|
|
20893
20900
|
create: async (path3) => {
|
|
20894
20901
|
if (typeof path3 == "string") path3 = vscode.Uri.file(path3);
|
|
@@ -21351,6 +21358,37 @@ var require_check = __commonJS({
|
|
|
21351
21358
|
}
|
|
21352
21359
|
});
|
|
21353
21360
|
|
|
21361
|
+
// package.json
|
|
21362
|
+
var require_package = __commonJS({
|
|
21363
|
+
"package.json"(exports2, module2) {
|
|
21364
|
+
module2.exports = {
|
|
21365
|
+
name: "@meterian/cli",
|
|
21366
|
+
version: "0.1.1",
|
|
21367
|
+
description: "Meterian security audit CLI \u2014 check open-source dependencies for vulnerabilities",
|
|
21368
|
+
bin: {
|
|
21369
|
+
meterian: "bin/meterian"
|
|
21370
|
+
},
|
|
21371
|
+
files: [
|
|
21372
|
+
"dist/",
|
|
21373
|
+
"bin/",
|
|
21374
|
+
"CHANGELOG.md"
|
|
21375
|
+
],
|
|
21376
|
+
scripts: {
|
|
21377
|
+
prepack: "esbuild src/cli.js --bundle --platform=node --external:vscode --outfile=dist/cli.js",
|
|
21378
|
+
build: "esbuild src/cli.js --bundle --platform=node --external:vscode --outfile=dist/cli.js",
|
|
21379
|
+
test: "echo 'Run tests from project root: npx jest tests/cli'"
|
|
21380
|
+
},
|
|
21381
|
+
devDependencies: {
|
|
21382
|
+
esbuild: "^0.25.0"
|
|
21383
|
+
},
|
|
21384
|
+
engines: {
|
|
21385
|
+
node: ">=18"
|
|
21386
|
+
},
|
|
21387
|
+
license: "MIT"
|
|
21388
|
+
};
|
|
21389
|
+
}
|
|
21390
|
+
});
|
|
21391
|
+
|
|
21354
21392
|
// src/cli.js
|
|
21355
21393
|
var path = require("path");
|
|
21356
21394
|
var os = require("os");
|
|
@@ -21407,6 +21445,8 @@ async function dispatch(kiwi, kiwiLanguages, args, stdinContent) {
|
|
|
21407
21445
|
${HELP}`);
|
|
21408
21446
|
}
|
|
21409
21447
|
async function main() {
|
|
21448
|
+
const { version } = require_package();
|
|
21449
|
+
require_axios().defaults.headers.common["User-Agent"] = `meterian/cli ${version}`;
|
|
21410
21450
|
const log4js = require_log4js();
|
|
21411
21451
|
const logFilePath = path.join(os.homedir(), ".meterian", "heidi", "logs", "cli.log");
|
|
21412
21452
|
log4js.configure({
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meterian/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Meterian security audit CLI — check open-source dependencies for vulnerabilities",
|
|
5
5
|
"bin": {
|
|
6
6
|
"meterian": "bin/meterian"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/",
|
|
10
|
-
"bin/"
|
|
10
|
+
"bin/",
|
|
11
|
+
"CHANGELOG.md"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"prepack": "esbuild src/cli.js --bundle --platform=node --external:vscode --outfile=dist/cli.js",
|