replicas-engine 0.1.575 → 0.1.576

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.
Files changed (2) hide show
  1. package/dist/src/index.js +10 -10
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -5545,6 +5545,14 @@ var MAX_ENGINE_LOG_BYTES = 50 * 1024 * 1024;
5545
5545
 
5546
5546
  // ../shared/src/skill-registry.ts
5547
5547
  var SKILL_REGISTRY_MANIFEST_VERSION = 1;
5548
+ function isSkillRegistryManifest(value) {
5549
+ if (typeof value !== "object" || value === null) return false;
5550
+ if (!("version" in value) || value.version !== SKILL_REGISTRY_MANIFEST_VERSION) return false;
5551
+ if (!("registries" in value) || !Array.isArray(value.registries)) return false;
5552
+ return value.registries.every(
5553
+ (entry) => typeof entry === "object" && entry !== null && "index" in entry && typeof entry.index === "number" && "name" in entry && typeof entry.name === "string" && "url" in entry && typeof entry.url === "string" && "checkoutPath" in entry && typeof entry.checkoutPath === "string"
5554
+ );
5555
+ }
5548
5556
 
5549
5557
  // src/index.ts
5550
5558
  import { randomUUID as randomUUID8 } from "crypto";
@@ -9279,7 +9287,7 @@ async function readManifest(homeDir) {
9279
9287
  try {
9280
9288
  const raw = await readFile8(getManifestPath(homeDir), "utf8");
9281
9289
  const parsed = JSON.parse(raw);
9282
- if (!isManifest(parsed)) {
9290
+ if (!isSkillRegistryManifest(parsed)) {
9283
9291
  console.warn("[SkillRegistry] Ignoring invalid skill registry manifest.");
9284
9292
  return null;
9285
9293
  }
@@ -9289,14 +9297,6 @@ async function readManifest(homeDir) {
9289
9297
  throw error;
9290
9298
  }
9291
9299
  }
9292
- function isManifest(value) {
9293
- if (typeof value !== "object" || value === null) return false;
9294
- return "version" in value && value.version === SKILL_REGISTRY_MANIFEST_VERSION && "registries" in value && Array.isArray(value.registries) && value.registries.every(isSkillRegistryEntry);
9295
- }
9296
- function isSkillRegistryEntry(value) {
9297
- if (typeof value !== "object" || value === null) return false;
9298
- return "index" in value && typeof value.index === "number" && "name" in value && typeof value.name === "string" && "url" in value && typeof value.url === "string" && "checkoutPath" in value && typeof value.checkoutPath === "string";
9299
- }
9300
9300
  function getRegistryRoot(homeDir) {
9301
9301
  return join15(homeDir, REGISTRY_ROOT_DIR);
9302
9302
  }
@@ -10854,7 +10854,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
10854
10854
  var MIN_CODEX_CLI_VERSION = "0.144.6";
10855
10855
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
10856
10856
  var codexCliVersionEnsured = null;
10857
- var ENGINE_PACKAGE_VERSION = "0.1.575";
10857
+ var ENGINE_PACKAGE_VERSION = "0.1.576";
10858
10858
  var INITIALIZE_METHOD = "initialize";
10859
10859
  var INITIALIZED_NOTIFICATION = "initialized";
10860
10860
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.575",
3
+ "version": "0.1.576",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",