@ghostystudio/cli 0.32.1 → 0.32.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 +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8367,7 +8367,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
|
|
|
8367
8367
|
const req = httpsRequest(`${base}${path}`, {
|
|
8368
8368
|
method: "POST",
|
|
8369
8369
|
timeout: timeoutMs,
|
|
8370
|
-
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.32.
|
|
8370
|
+
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.32.2"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
|
|
8371
8371
|
}, (res) => {
|
|
8372
8372
|
let buf = "";
|
|
8373
8373
|
res.on("data", (c) => buf += c);
|
|
@@ -8409,7 +8409,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
8409
8409
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
8410
8410
|
headers: {
|
|
8411
8411
|
authorization: `Bearer ${token}`,
|
|
8412
|
-
"user-agent": `ghosty-cli/${"0.32.
|
|
8412
|
+
"user-agent": `ghosty-cli/${"0.32.2"}`,
|
|
8413
8413
|
"accept-language": lang(),
|
|
8414
8414
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
8415
8415
|
...opts.headers
|
|
@@ -9569,7 +9569,7 @@ async function call(path, v, init = {}) {
|
|
|
9569
9569
|
"x-ghosty-ts": ts,
|
|
9570
9570
|
"x-ghosty-sig": sig,
|
|
9571
9571
|
"content-type": "application/json",
|
|
9572
|
-
"user-agent": `ghosty-cli/${"0.32.
|
|
9572
|
+
"user-agent": `ghosty-cli/${"0.32.2"}`
|
|
9573
9573
|
},
|
|
9574
9574
|
body: method === "GET" ? void 0 : raw
|
|
9575
9575
|
});
|
|
@@ -12864,6 +12864,7 @@ async function main() {
|
|
|
12864
12864
|
every: { type: "string" },
|
|
12865
12865
|
until: { type: "string" },
|
|
12866
12866
|
title: { type: "string" },
|
|
12867
|
+
body: { type: "string" },
|
|
12867
12868
|
profile: { type: "string" },
|
|
12868
12869
|
workspace: { type: "string" },
|
|
12869
12870
|
label: { type: "string" },
|
|
@@ -13002,7 +13003,7 @@ async function main() {
|
|
|
13002
13003
|
const tokens = splitTokens(pos, v);
|
|
13003
13004
|
globals.token = tokens.session;
|
|
13004
13005
|
globals.profile = v.profile;
|
|
13005
|
-
if (v.version) return out({ version: "0.32.
|
|
13006
|
+
if (v.version) return out({ version: "0.32.2" }, () => "0.32.2");
|
|
13006
13007
|
for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
|
|
13007
13008
|
const context = (await readConfig()).workspace;
|
|
13008
13009
|
if (!explicitToken()?.startsWith("gat_")) {
|
|
@@ -13148,7 +13149,7 @@ async function main() {
|
|
|
13148
13149
|
throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
|
|
13149
13150
|
}
|
|
13150
13151
|
}
|
|
13151
|
-
var notice = updateNotice("0.32.
|
|
13152
|
+
var notice = updateNotice("0.32.2").catch(() => null);
|
|
13152
13153
|
main().then(
|
|
13153
13154
|
async () => {
|
|
13154
13155
|
const n = await notice;
|
package/package.json
CHANGED