image-sprout 1.0.0 → 1.0.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/README.md +1 -1
- package/dist/cli/index.js +6 -15
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
2
|
import { mkdirSync, writeFileSync, readFileSync, existsSync, unlinkSync, copyFileSync, rmSync, readdirSync, statSync } from "node:fs";
|
|
4
3
|
import { homedir } from "node:os";
|
|
5
4
|
import path from "node:path";
|
|
6
5
|
import { createServer } from "node:http";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
7
|
const OPENROUTER_URL = "https://openrouter.ai/api/v1/chat/completions";
|
|
8
8
|
const ANALYSIS_MODEL = "google/gemini-3.1-flash-image-preview";
|
|
9
9
|
const REFERER = "https://image-sprout.app";
|
|
@@ -2121,8 +2121,8 @@ async function startWebServer(options = {}) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
const GLOBAL_OPTIONS = /* @__PURE__ */ new Set(["json", "text", "help", "version", "value", "ids", "limit"]);
|
|
2123
2123
|
function resolveVersion() {
|
|
2124
|
-
if ("1.0.
|
|
2125
|
-
return "1.0.
|
|
2124
|
+
if ("1.0.1".length > 0) {
|
|
2125
|
+
return "1.0.1";
|
|
2126
2126
|
}
|
|
2127
2127
|
return process.env.npm_package_version ?? "0.0.0";
|
|
2128
2128
|
}
|
|
@@ -3109,18 +3109,9 @@ function handleCliError(error, argv) {
|
|
|
3109
3109
|
emitError(context, cliError);
|
|
3110
3110
|
return cliError.exitCode;
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
return false;
|
|
3116
|
-
}
|
|
3117
|
-
return import.meta.url === pathToFileURL(entry).href;
|
|
3118
|
-
}
|
|
3119
|
-
if (isDirectExecution()) {
|
|
3120
|
-
main().catch((error) => {
|
|
3121
|
-
process.exitCode = handleCliError(error, process.argv.slice(2));
|
|
3122
|
-
});
|
|
3123
|
-
}
|
|
3112
|
+
main().catch((error) => {
|
|
3113
|
+
process.exitCode = handleCliError(error, process.argv.slice(2));
|
|
3114
|
+
});
|
|
3124
3115
|
export {
|
|
3125
3116
|
handleCliError,
|
|
3126
3117
|
runCli
|