dsh-plugin-capabilities 0.2.1 → 0.3.0
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 +1 -1
- package/lib/client.js +103 -15
- package/lib/client.js.map +3 -3
- package/lib/index.js +4 -2
- package/lib/index.js.map +2 -2
- package/market/mcp.json +24 -12
- package/market/skills.json +6 -3
- package/package.json +1 -1
- package/src/client/MarketTab.tsx +107 -9
- package/src/client/css.ts +6 -1
- package/src/client/index.ts +2 -0
- package/src/client/locales.ts +8 -0
- package/src/market.test.ts +12 -3
- package/src/market.ts +6 -0
package/lib/index.js
CHANGED
|
@@ -833,7 +833,8 @@ function parseSkillsIndex(parsed) {
|
|
|
833
833
|
...isString(record.descriptionZh) ? { descriptionZh: record.descriptionZh } : {},
|
|
834
834
|
url: record.url,
|
|
835
835
|
...isString(record.homepage) ? { homepage: record.homepage } : {},
|
|
836
|
-
...typeof record.skillCount === "number" ? { skillCount: record.skillCount } : {}
|
|
836
|
+
...typeof record.skillCount === "number" ? { skillCount: record.skillCount } : {},
|
|
837
|
+
...isStringArray(record.skills) ? { skills: record.skills } : {}
|
|
837
838
|
});
|
|
838
839
|
}
|
|
839
840
|
return out.length > 0 ? out : null;
|
|
@@ -863,7 +864,8 @@ function parseMcpIndex(parsed) {
|
|
|
863
864
|
...isString(record.url) ? { url: record.url } : {},
|
|
864
865
|
homepage: record.homepage,
|
|
865
866
|
...isString(record.category) ? { category: record.category } : {},
|
|
866
|
-
...isString(record.runtime) ? { runtime: record.runtime } : {}
|
|
867
|
+
...isString(record.runtime) ? { runtime: record.runtime } : {},
|
|
868
|
+
...isStringArray(record.tools) ? { tools: record.tools } : {}
|
|
867
869
|
});
|
|
868
870
|
}
|
|
869
871
|
return out.length > 0 ? out : null;
|