@agentsky/sky 2.9.0 → 2.9.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
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
skillRefSchema,
|
|
17
17
|
splitMcpServers,
|
|
18
18
|
supersededBy
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YN7PUNIB.js";
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
import { existsSync as existsSync7, readFileSync as readFileSync10, writeFileSync as writeFileSync6 } from "fs";
|
|
@@ -64,7 +64,7 @@ function currentUniverse() {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// src/version.ts
|
|
67
|
-
var CLI_VERSION = "2.9.
|
|
67
|
+
var CLI_VERSION = "2.9.1";
|
|
68
68
|
var USER_AGENT = `sky-cli/${CLI_VERSION} (${process.platform}; node/${process.versions.node})`;
|
|
69
69
|
|
|
70
70
|
// src/api.ts
|
|
@@ -185,7 +185,7 @@ async function resolveSessionRef(ref) {
|
|
|
185
185
|
return agent2.defaultSessionId;
|
|
186
186
|
}
|
|
187
187
|
async function* streamEvents(sessionId, signal) {
|
|
188
|
-
const { parseSseStream } = await import("./src-
|
|
188
|
+
const { parseSseStream } = await import("./src-QFDLKCFY.js");
|
|
189
189
|
const res = await fetch(
|
|
190
190
|
`${apiBase()}/sessions/${encodeURIComponent(sessionId)}/stream`,
|
|
191
191
|
{
|
|
@@ -457,6 +457,13 @@ async function publishListing(agentId, options) {
|
|
|
457
457
|
async function removeListing(handle) {
|
|
458
458
|
await api("DELETE", `/catalog/listings/${encodeURIComponent(bare(handle))}`);
|
|
459
459
|
}
|
|
460
|
+
async function setEngineStatus(engine, status, reason) {
|
|
461
|
+
await api("PATCH", `/catalog/engines/${encodeURIComponent(engine)}`, { status, reason });
|
|
462
|
+
const state = await api("GET", "/catalog/engines", void 0, { auth: false });
|
|
463
|
+
if (state.delisted.includes(engine) !== (status === "delisted")) {
|
|
464
|
+
throw new Error("The catalog does not show the requested state; check whether another operator changed it.");
|
|
465
|
+
}
|
|
466
|
+
}
|
|
460
467
|
var uses = (agent2) => `${agent2.stats.uses} ${agent2.stats.uses === 1 ? "use" : "uses"}`;
|
|
461
468
|
var mine = (agent2) => agent2.visibility === "workspace" ? " (yours)" : "";
|
|
462
469
|
function renderCatalogAgent(agent2) {
|
|
@@ -3339,6 +3346,12 @@ catalog.command("unpublish <handle>").description("take down one of your workspa
|
|
|
3339
3346
|
console.log(`Removed @${handle.replace(/^@/, "")} from the catalog`);
|
|
3340
3347
|
})
|
|
3341
3348
|
);
|
|
3349
|
+
for (const [verb, status] of [["delist", "delisted"], ["relist", "listed"]]) {
|
|
3350
|
+
catalog.command(`${verb} <engine>`).description(`${verb} a platform harness immediately (platform operators only)`).requiredOption("--reason <text>", "the reason recorded with the operator change").action(run(async (engine, options) => {
|
|
3351
|
+
await setEngineStatus(engine, status, options.reason);
|
|
3352
|
+
console.log(`${engine}: ${status} (verified)`);
|
|
3353
|
+
}));
|
|
3354
|
+
}
|
|
3342
3355
|
program.command("config").description("show the CLI config location and current values").action(() => {
|
|
3343
3356
|
const config = loadConfig();
|
|
3344
3357
|
console.log(`config: ${configPath()}`);
|
package/dist/products.js
CHANGED
package/package.json
CHANGED
|
File without changes
|