@ghostystudio/cli 0.7.0 → 0.7.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/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -290,7 +290,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
290
290
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
291
291
|
headers: {
|
|
292
292
|
authorization: `Bearer ${token}`,
|
|
293
|
-
"user-agent": `ghosty-cli/${"0.7.
|
|
293
|
+
"user-agent": `ghosty-cli/${"0.7.1"}`,
|
|
294
294
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
295
295
|
...opts.headers
|
|
296
296
|
},
|
|
@@ -517,7 +517,8 @@ async function agentsDemo(id, v) {
|
|
|
517
517
|
dim(`limits: ${d.maxTurns} messages per visitor \xB7 ${d.perIpDay} per IP per day`),
|
|
518
518
|
d.welcome ? `welcome: ${d.welcome}` : dim("welcome: (default greeting)"),
|
|
519
519
|
d.chips.length ? `chips: ${d.chips.join(" | ")}` : dim("chips: (default)"),
|
|
520
|
-
`tried ${d.stats.pruebas} \xB7 messages ${d.stats.mensajes} \xB7 kept ${d.stats.clones} (${d.stats.patrocinados} on your key)
|
|
520
|
+
`tried ${d.stats.pruebas} \xB7 messages ${d.stats.mensajes} \xB7 kept ${d.stats.clones} (${d.stats.patrocinados} on your key)`,
|
|
521
|
+
...d.lastError ? [red(`last failure ${d.lastError.at}: ${d.lastError.message ?? d.lastError.error}`)] : []
|
|
521
522
|
].join("\n")
|
|
522
523
|
);
|
|
523
524
|
}
|
|
@@ -843,7 +844,7 @@ async function call(path, v, init = {}) {
|
|
|
843
844
|
"x-ghosty-ts": ts,
|
|
844
845
|
"x-ghosty-sig": sig,
|
|
845
846
|
"content-type": "application/json",
|
|
846
|
-
"user-agent": `ghosty-cli/${"0.7.
|
|
847
|
+
"user-agent": `ghosty-cli/${"0.7.1"}`
|
|
847
848
|
},
|
|
848
849
|
body: method === "GET" ? void 0 : raw
|
|
849
850
|
});
|
|
@@ -1117,7 +1118,7 @@ async function main() {
|
|
|
1117
1118
|
const tokens = splitTokens(pos, v);
|
|
1118
1119
|
globals.token = tokens.session;
|
|
1119
1120
|
globals.profile = v.profile;
|
|
1120
|
-
if (v.version) return out({ version: "0.7.
|
|
1121
|
+
if (v.version) return out({ version: "0.7.1" }, () => "0.7.1");
|
|
1121
1122
|
const [cmd, sub, a1, a2] = pos;
|
|
1122
1123
|
if (cmd === "partner" && (v.help || !sub || sub === "help")) return out({ help: PARTNER_HELP }, () => PARTNER_HELP);
|
|
1123
1124
|
if (!cmd || v.help || cmd === "help") return showHelp();
|
package/package.json
CHANGED