promptimizer-cli 0.1.52 → 0.1.54
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/bin/promptimizer.mjs +5 -1
- package/package.json +2 -2
package/bin/promptimizer.mjs
CHANGED
|
@@ -7,7 +7,11 @@ import { dirname, join } from "node:path";
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { stdin as input, stdout as output } from "node:process";
|
|
9
9
|
|
|
10
|
-
const DEFAULT_URL =
|
|
10
|
+
const DEFAULT_URL =
|
|
11
|
+
process.env.PROMPTIMIZER_URL ||
|
|
12
|
+
(process.env.NEXT_PUBLIC_SITE_URL
|
|
13
|
+
? `${String(process.env.NEXT_PUBLIC_SITE_URL).replace(/\/$/, "")}/api`
|
|
14
|
+
: "https://hackathon-omega-liart.vercel.app/api");
|
|
11
15
|
const CONFIG_PATH = join(homedir(), ".promptimizer", "config.json");
|
|
12
16
|
|
|
13
17
|
const ANSI = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptimizer-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Interactive Promptimizer CLI — Gemini-style REPL for quality-aware routing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"promptimizer": "
|
|
7
|
+
"promptimizer": "bin/promptimizer.mjs"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|