@skild/core 0.10.17 → 0.10.18

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/index.js +10 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -627,7 +627,7 @@ function sha256Hex(buffer) {
627
627
  }
628
628
  async function searchRegistrySkills(registryUrl, query, limit = 50) {
629
629
  const q = query.trim();
630
- const url = new URL(`${registryUrl}/skills`);
630
+ const url = new URL(`${registryUrl}/discover`);
631
631
  if (q) url.searchParams.set("q", q);
632
632
  url.searchParams.set("limit", String(Math.min(Math.max(limit, 1), 100)));
633
633
  const res = await fetchWithTimeout(url.toString(), { headers: { accept: "application/json" } }, 1e4);
@@ -636,10 +636,15 @@ async function searchRegistrySkills(registryUrl, query, limit = 50) {
636
636
  throw new SkildError("REGISTRY_RESOLVE_FAILED", `Failed to search skills (${res.status}). ${text}`.trim());
637
637
  }
638
638
  const json = await res.json();
639
- if (!json?.ok || !Array.isArray(json.skills)) {
640
- throw new SkildError("REGISTRY_RESOLVE_FAILED", "Invalid registry response for /skills.");
641
- }
642
- return json.skills;
639
+ if (!json?.ok || !Array.isArray(json.rows)) {
640
+ throw new SkildError("REGISTRY_RESOLVE_FAILED", "Invalid registry response for /discover.");
641
+ }
642
+ return json.rows.map((row) => ({
643
+ name: String(row.alias || row.title || "").trim(),
644
+ description: typeof row.description === "string" ? row.description : void 0,
645
+ created_at: row.createdAt,
646
+ updated_at: row.updatedAt
647
+ }));
643
648
  }
644
649
  async function resolveRegistryAlias(registryUrl, alias) {
645
650
  const a = alias.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skild/core",
3
- "version": "0.10.17",
3
+ "version": "0.10.18",
4
4
  "description": "Skild core library (headless) for installing, validating, and managing Agent Skills locally.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",