claude-code-marketplace 0.5.6 → 0.5.7
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/package.json +1 -1
- package/public/app.js +2 -2
- package/server.js +3 -3
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -589,7 +589,7 @@ function renderDetailComponents(pluginId, comps, hasDirAccess) {
|
|
|
589
589
|
|
|
590
590
|
let readmeHtml = '';
|
|
591
591
|
if (comps._readmePath && hasDirAccess) {
|
|
592
|
-
readmeHtml = `<div class="readme-comp-item" onclick="openContentModal('${
|
|
592
|
+
readmeHtml = `<div class="readme-comp-item" onclick="openContentModal('${escJs(pluginId)}', '${escJs(comps._readmePath)}', 'readme')">
|
|
593
593
|
<span class="icon">${ICONS.readme}</span> ${esc(comps._readmePath)}
|
|
594
594
|
</div>`;
|
|
595
595
|
}
|
|
@@ -615,7 +615,7 @@ function renderDetailComponents(pluginId, comps, hasDirAccess) {
|
|
|
615
615
|
const clickPath = configFile || (dir ? `${dir}/${name}` : name);
|
|
616
616
|
const cls = hasDirAccess ? '' : ' disabled';
|
|
617
617
|
const click = hasDirAccess
|
|
618
|
-
? ` onclick="openContentModal('${
|
|
618
|
+
? ` onclick="openContentModal('${escJs(pluginId)}', '${escJs(clickPath)}', '${escJs(type)}')"`
|
|
619
619
|
: '';
|
|
620
620
|
html += `<div class="detail-comp-item${cls}"${click}>
|
|
621
621
|
<span class="icon">${type === 'skills' ? ICONS.folder : ICONS.file}</span>
|
package/server.js
CHANGED
|
@@ -374,7 +374,7 @@ function countComponents(pluginDir, meta = {}) {
|
|
|
374
374
|
const data = readJsonSafe(mcpFile);
|
|
375
375
|
if (data) {
|
|
376
376
|
result.mcpServers = Object.keys(data.mcpServers || data);
|
|
377
|
-
if (result.mcpServers.length) configFiles.mcpServers = mcpPath;
|
|
377
|
+
if (result.mcpServers.length) configFiles.mcpServers = toUnixPath(mcpPath);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
|
@@ -386,7 +386,7 @@ function countComponents(pluginDir, meta = {}) {
|
|
|
386
386
|
if (data) {
|
|
387
387
|
const hooksObj = data.hooks || data;
|
|
388
388
|
result.hooks = Object.keys(hooksObj).filter(k => k !== 'description');
|
|
389
|
-
if (result.hooks.length) configFiles.hooks = hooksPath;
|
|
389
|
+
if (result.hooks.length) configFiles.hooks = toUnixPath(hooksPath);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
@@ -397,7 +397,7 @@ function countComponents(pluginDir, meta = {}) {
|
|
|
397
397
|
const data = readJsonSafe(lspFile);
|
|
398
398
|
if (data) {
|
|
399
399
|
result.lspServers = Object.keys(data.lspServers || data);
|
|
400
|
-
if (result.lspServers.length) configFiles.lspServers = lspPath;
|
|
400
|
+
if (result.lspServers.length) configFiles.lspServers = toUnixPath(lspPath);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|