@learnrudi/cli 1.9.4 → 1.9.6
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/dist/index.cjs +39 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4184,12 +4184,46 @@ async function cmdCheck(args, flags) {
|
|
|
4184
4184
|
if (packageId.includes(":")) {
|
|
4185
4185
|
[kind, name] = packageId.split(":");
|
|
4186
4186
|
} else {
|
|
4187
|
-
|
|
4187
|
+
const KNOWN_AGENTS = ["claude", "codex", "gemini", "copilot", "ollama"];
|
|
4188
|
+
const KNOWN_RUNTIMES = ["node", "python", "deno", "bun"];
|
|
4189
|
+
const KNOWN_BINARIES = [
|
|
4190
|
+
"ffmpeg",
|
|
4191
|
+
"ripgrep",
|
|
4192
|
+
"rg",
|
|
4193
|
+
"git",
|
|
4194
|
+
"pandoc",
|
|
4195
|
+
"jq",
|
|
4196
|
+
"yq",
|
|
4197
|
+
"sqlite",
|
|
4198
|
+
"sqlite3",
|
|
4199
|
+
"imagemagick",
|
|
4200
|
+
"convert",
|
|
4201
|
+
"whisper",
|
|
4202
|
+
"docker",
|
|
4203
|
+
"kubectl",
|
|
4204
|
+
"terraform",
|
|
4205
|
+
"vercel",
|
|
4206
|
+
"netlify",
|
|
4207
|
+
"supabase",
|
|
4208
|
+
"wrangler",
|
|
4209
|
+
"railway",
|
|
4210
|
+
"flyctl",
|
|
4211
|
+
"gh",
|
|
4212
|
+
"ytdlp",
|
|
4213
|
+
"yt-dlp",
|
|
4214
|
+
"rclone",
|
|
4215
|
+
"chromium",
|
|
4216
|
+
"playwright"
|
|
4217
|
+
];
|
|
4218
|
+
if (KNOWN_AGENTS.includes(packageId)) {
|
|
4188
4219
|
kind = "agent";
|
|
4189
4220
|
name = packageId;
|
|
4190
|
-
} else if (
|
|
4221
|
+
} else if (KNOWN_RUNTIMES.includes(packageId)) {
|
|
4191
4222
|
kind = "runtime";
|
|
4192
4223
|
name = packageId;
|
|
4224
|
+
} else if (KNOWN_BINARIES.includes(packageId)) {
|
|
4225
|
+
kind = "binary";
|
|
4226
|
+
name = packageId;
|
|
4193
4227
|
} else {
|
|
4194
4228
|
kind = "stack";
|
|
4195
4229
|
name = packageId;
|
|
@@ -4295,8 +4329,10 @@ async function cmdCheck(args, flags) {
|
|
|
4295
4329
|
console.log(JSON.stringify(result, null, 2));
|
|
4296
4330
|
} else {
|
|
4297
4331
|
const installIcon = result.installed ? "\x1B[32m\u2713\x1B[0m" : "\x1B[31m\u2717\x1B[0m";
|
|
4298
|
-
|
|
4332
|
+
const source = result.source ? `(${result.source})` : "";
|
|
4333
|
+
console.log(`${installIcon} ${result.id} ${source}`);
|
|
4299
4334
|
console.log(` Installed: ${result.installed}`);
|
|
4335
|
+
if (result.source) console.log(` Source: ${result.source}`);
|
|
4300
4336
|
if (result.path) console.log(` Path: ${result.path}`);
|
|
4301
4337
|
if (result.version) console.log(` Version: ${result.version}`);
|
|
4302
4338
|
if (result.authenticated !== null) {
|