anygate 0.5.1 → 0.5.2
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/{chunk-FTUYHLCJ.js → chunk-6GVUN4JO.js} +2 -2
- package/dist/{chunk-FTUYHLCJ.js.map → chunk-6GVUN4JO.js.map} +1 -1
- package/dist/cli.js +9 -7
- package/dist/cli.js.map +1 -1
- package/dist/{command-QFKSLTQW.js → command-OQI56XYG.js} +2 -2
- package/package.json +1 -1
- /package/dist/{command-QFKSLTQW.js.map → command-OQI56XYG.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
validateCustomEndpointUrl,
|
|
166
166
|
writeSecureLogLine,
|
|
167
167
|
zenRegistryStub
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-6GVUN4JO.js";
|
|
169
169
|
import {
|
|
170
170
|
filterTemplates,
|
|
171
171
|
getTemplateById,
|
|
@@ -12415,12 +12415,14 @@ async function main(args = process.argv.slice(2)) {
|
|
|
12415
12415
|
const parsed = parseArgs(args);
|
|
12416
12416
|
if (process.stdout.isTTY) {
|
|
12417
12417
|
printAsciiBanner();
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12418
|
+
}
|
|
12419
|
+
const update = await checkForUpdates();
|
|
12420
|
+
if (update.updateAvailable && update.latestVersion) {
|
|
12421
|
+
const notice = `
|
|
12421
12422
|
${formatUpdateNotification(update.currentVersion, update.latestVersion)}
|
|
12422
|
-
|
|
12423
|
-
|
|
12423
|
+
`;
|
|
12424
|
+
if (process.stdout.isTTY) console.log(notice);
|
|
12425
|
+
else console.error(notice);
|
|
12424
12426
|
}
|
|
12425
12427
|
if (parsed.error) {
|
|
12426
12428
|
console.error(pc12.red(`
|
|
@@ -12476,7 +12478,7 @@ Error: ${parsed.error}
|
|
|
12476
12478
|
console.log("Usage: anygate ui [--trace]\n\nOpen the settings UI in your browser.");
|
|
12477
12479
|
return 0;
|
|
12478
12480
|
}
|
|
12479
|
-
const { runUiCommand } = await import("./command-
|
|
12481
|
+
const { runUiCommand } = await import("./command-OQI56XYG.js");
|
|
12480
12482
|
return runUiCommand({ trace: parsed.trace });
|
|
12481
12483
|
}
|
|
12482
12484
|
if (parsed.command === "models") {
|