@ghostystudio/cli 0.41.0 → 0.41.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/README.md +4 -0
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,10 @@ Every command has its own help with examples: `ghosty <command> --help` or `ghos
|
|
|
101
101
|
|
|
102
102
|
Exit codes: `0` ok · `1` API error · `2` usage error · `3` not signed in.
|
|
103
103
|
|
|
104
|
+
### Changes in 0.41.1
|
|
105
|
+
|
|
106
|
+
- `agents teams`: the agent can be given by name (0.41.0 read `ls`/`on`/`off` as the agent).
|
|
107
|
+
|
|
104
108
|
### Changes in 0.41.0
|
|
105
109
|
|
|
106
110
|
- `agents teams ls <id>`: the Teams workspaces you administer, with the `@handle` it answers with in each (or the suggested one). `agents teams on <id> <workspace> [--handle x]` turns it on there, or changes its handle if it was already on; `agents teams off <id> <workspace>` turns it off (the agent stays). Same rules as the agent page (Channels → Ghosty Teams): `@ghosty` is reserved, a taken handle is rejected.
|
package/dist/index.js
CHANGED
|
@@ -8422,7 +8422,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
|
|
|
8422
8422
|
const req = httpsRequest(`${base}${path}`, {
|
|
8423
8423
|
method: "POST",
|
|
8424
8424
|
timeout: timeoutMs,
|
|
8425
|
-
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.41.
|
|
8425
|
+
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.41.1"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
|
|
8426
8426
|
}, (res) => {
|
|
8427
8427
|
let buf = "";
|
|
8428
8428
|
res.on("data", (c) => buf += c);
|
|
@@ -8464,7 +8464,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
8464
8464
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
8465
8465
|
headers: {
|
|
8466
8466
|
authorization: `Bearer ${token}`,
|
|
8467
|
-
"user-agent": `ghosty-cli/${"0.41.
|
|
8467
|
+
"user-agent": `ghosty-cli/${"0.41.1"}`,
|
|
8468
8468
|
"accept-language": lang(),
|
|
8469
8469
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
8470
8470
|
...opts.headers
|
|
@@ -9671,7 +9671,7 @@ async function call(path, v, init = {}) {
|
|
|
9671
9671
|
"x-ghosty-ts": ts,
|
|
9672
9672
|
"x-ghosty-sig": sig,
|
|
9673
9673
|
"content-type": "application/json",
|
|
9674
|
-
"user-agent": `ghosty-cli/${"0.41.
|
|
9674
|
+
"user-agent": `ghosty-cli/${"0.41.1"}`
|
|
9675
9675
|
},
|
|
9676
9676
|
body: method === "GET" ? void 0 : raw
|
|
9677
9677
|
});
|
|
@@ -12050,7 +12050,7 @@ function agentArgIndex(pos) {
|
|
|
12050
12050
|
const [cmd, sub] = pos;
|
|
12051
12051
|
switch (cmd) {
|
|
12052
12052
|
case "agents":
|
|
12053
|
-
if (sub === "docs" || sub === "documents") return 3;
|
|
12053
|
+
if (sub === "docs" || sub === "documents" || sub === "teams") return 3;
|
|
12054
12054
|
return sub && !["ls", "list", "create", "new"].includes(sub) ? 2 : null;
|
|
12055
12055
|
case "files":
|
|
12056
12056
|
case "skills":
|
|
@@ -13478,7 +13478,7 @@ async function main() {
|
|
|
13478
13478
|
const tokens = splitTokens(pos, v);
|
|
13479
13479
|
globals.token = tokens.session;
|
|
13480
13480
|
globals.profile = v.profile;
|
|
13481
|
-
if (v.version) return out({ version: "0.41.
|
|
13481
|
+
if (v.version) return out({ version: "0.41.1" }, () => "0.41.1");
|
|
13482
13482
|
for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
|
|
13483
13483
|
const context = (await readConfig()).workspace;
|
|
13484
13484
|
if (!explicitToken()?.startsWith("gat_")) {
|
|
@@ -13631,7 +13631,7 @@ async function main() {
|
|
|
13631
13631
|
throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
|
|
13632
13632
|
}
|
|
13633
13633
|
}
|
|
13634
|
-
var notice = updateNotice("0.41.
|
|
13634
|
+
var notice = updateNotice("0.41.1").catch(() => null);
|
|
13635
13635
|
main().then(
|
|
13636
13636
|
async () => {
|
|
13637
13637
|
const n = await notice;
|
package/package.json
CHANGED