@ghostystudio/cli 0.74.1 → 0.74.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/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1175,7 +1175,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
|
|
|
1175
1175
|
const req = httpsRequest(`${base}${path}`, {
|
|
1176
1176
|
method: "POST",
|
|
1177
1177
|
timeout: timeoutMs,
|
|
1178
|
-
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.74.
|
|
1178
|
+
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.74.2"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
|
|
1179
1179
|
}, (res) => {
|
|
1180
1180
|
let buf = "";
|
|
1181
1181
|
res.on("data", (c) => buf += c);
|
|
@@ -1217,7 +1217,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
1217
1217
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
1218
1218
|
headers: {
|
|
1219
1219
|
authorization: `Bearer ${token}`,
|
|
1220
|
-
"user-agent": `ghosty-cli/${"0.74.
|
|
1220
|
+
"user-agent": `ghosty-cli/${"0.74.2"}`,
|
|
1221
1221
|
"accept-language": lang(),
|
|
1222
1222
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
1223
1223
|
...opts.headers
|
|
@@ -11193,7 +11193,7 @@ async function call(path, v, init = {}) {
|
|
|
11193
11193
|
"x-ghosty-ts": ts,
|
|
11194
11194
|
"x-ghosty-sig": sig,
|
|
11195
11195
|
"content-type": "application/json",
|
|
11196
|
-
"user-agent": `ghosty-cli/${"0.74.
|
|
11196
|
+
"user-agent": `ghosty-cli/${"0.74.2"}`
|
|
11197
11197
|
},
|
|
11198
11198
|
body: method === "GET" ? void 0 : raw
|
|
11199
11199
|
});
|
|
@@ -15732,7 +15732,8 @@ ${dim(`${t("Detail", "Detalle")}: ghosty factory runs show <run> --workspace ${r
|
|
|
15732
15732
|
const id = Number(ref.replace(/^#/, ""));
|
|
15733
15733
|
const { advice: a, workspace } = await api(`${path}/advise`, { body: {} });
|
|
15734
15734
|
const note = a.buildNote.map((p, i) => `${i + 1}. ${p.point}`).join(" ");
|
|
15735
|
-
const
|
|
15735
|
+
const sh = (x) => `'${x.replace(/'/g, `'\\''`)}'`;
|
|
15736
|
+
const apply = a.decision === "fix" ? `ghosty factory runs approve ${id} --note ${sh(note)}${a.checkScope ? ` --check-scope ${sh(a.checkScope)}` : ""} --workspace ${workspace}` : `ghosty factory runs changes ${id} --note ${sh(note)} --workspace ${workspace}`;
|
|
15736
15737
|
return out({ workspace, advice: a, apply }, () => {
|
|
15737
15738
|
const conf = { high: t("high", "alta"), medium: t("medium", "media"), low: t("low", "baja") }[a.confidence] ?? a.confidence;
|
|
15738
15739
|
return [
|
|
@@ -16846,7 +16847,7 @@ async function main() {
|
|
|
16846
16847
|
const tokens = splitTokens(pos, v);
|
|
16847
16848
|
globals.token = tokens.session;
|
|
16848
16849
|
globals.profile = v.profile;
|
|
16849
|
-
if (v.version) return out({ version: "0.74.
|
|
16850
|
+
if (v.version) return out({ version: "0.74.2" }, () => "0.74.2");
|
|
16850
16851
|
for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
|
|
16851
16852
|
const context = (await readConfig()).workspace;
|
|
16852
16853
|
if (!explicitToken()?.startsWith("gat_")) {
|
|
@@ -17039,7 +17040,7 @@ async function main() {
|
|
|
17039
17040
|
throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
|
|
17040
17041
|
}
|
|
17041
17042
|
}
|
|
17042
|
-
var notice = updateNotice("0.74.
|
|
17043
|
+
var notice = updateNotice("0.74.2").catch(() => null);
|
|
17043
17044
|
main().then(
|
|
17044
17045
|
async () => {
|
|
17045
17046
|
const n = await notice;
|
package/package.json
CHANGED