@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-NRTKH367.js";
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.0";
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-OEZ7BT2L.js");
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
@@ -8,7 +8,7 @@ import {
8
8
  skillsArraySchema,
9
9
  systemMessageEventSchema,
10
10
  userMessageEventSchema
11
- } from "./chunk-NRTKH367.js";
11
+ } from "./chunk-YN7PUNIB.js";
12
12
 
13
13
  // ../../packages/spec/src/compatibility.ts
14
14
  var capabilityInputsSchema = capabilitiesSchema;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  external_exports,
3
3
  messagePartSchema
4
- } from "./chunk-NRTKH367.js";
4
+ } from "./chunk-YN7PUNIB.js";
5
5
 
6
6
  // ../../packages/chat/src/stream.ts
7
7
  async function* parseSseStream(body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentsky/sky",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "sky — the AgentSky developer CLI: launch and talk to long-lived agents from your terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
File without changes