@kwonye/mcpx 0.1.99 → 0.1.101
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/{cli-28g7x9rn.js → cli-6wh8qx2y.js} +9 -3
- package/dist/{cli-dy7x0zrg.js → cli-6zq2fd6h.js} +1 -1
- package/dist/{cli-b0xrqsjc.js → cli-9k3wmag6.js} +286 -363
- package/dist/{cli-ct7asw78.js → cli-aawpvhhe.js} +13 -10
- package/dist/{cli-1ewrsfj4.js → cli-hh7rthhx.js} +4 -1
- package/dist/{cli-7x2n23em.js → cli-qzzjkt0q.js} +1132 -723
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +352 -88
- package/dist/{config-yx5m60fv.js → config-fbgyqmv1.js} +2 -2
- package/dist/core/auth-probe.d.ts +6 -1
- package/dist/core/auth-probe.d.ts.map +1 -1
- package/dist/core/daemon.d.ts +1 -0
- package/dist/core/daemon.d.ts.map +1 -1
- package/dist/core/identifiers.d.ts +3 -0
- package/dist/core/identifiers.d.ts.map +1 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +22 -6
- package/dist/core/marketplace.d.ts.map +1 -1
- package/dist/core/oauth.d.ts +77 -2
- package/dist/core/oauth.d.ts.map +1 -1
- package/dist/core/paths.d.ts +1 -0
- package/dist/core/paths.d.ts.map +1 -1
- package/dist/core/plugin-cache.d.ts.map +1 -1
- package/dist/core/plugin-host.d.ts.map +1 -1
- package/dist/core/plugin-lifecycle.d.ts.map +1 -1
- package/dist/core/plugin-manager.d.ts.map +1 -1
- package/dist/core/plugin-parse.d.ts.map +1 -1
- package/dist/core/plugin-projections.d.ts.map +1 -1
- package/dist/core/plugin-source.d.ts.map +1 -1
- package/dist/core/secrets.d.ts.map +1 -1
- package/dist/core/skill-projections.d.ts.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/update-manager.d.ts.map +1 -1
- package/dist/gateway/server.d.ts.map +1 -1
- package/dist/{marketplace-pwabb3ea.js → marketplace-zem0m4mw.js} +5 -5
- package/dist/{plugin-host-9xcpnehq.js → plugin-host-5jmyt0td.js} +13 -39
- package/dist/{plugin-manager-19q55n69.js → plugin-manager-rw05c2x3.js} +4 -4
- package/dist/{registry-yvbxcaq6.js → registry-04kfpjh0.js} +2 -2
- package/package.json +1 -1
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
mutateConfig,
|
|
7
7
|
readManifest,
|
|
8
8
|
uninstallPlugin
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-9k3wmag6.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-6zq2fd6h.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureDir,
|
|
15
15
|
getMarketplaceCacheRoot
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-6wh8qx2y.js";
|
|
17
17
|
import {
|
|
18
18
|
__require
|
|
19
19
|
} from "./cli-s4gspqdf.js";
|
|
@@ -23,8 +23,10 @@ import crypto from "node:crypto";
|
|
|
23
23
|
import fs from "node:fs";
|
|
24
24
|
import os from "node:os";
|
|
25
25
|
import path from "node:path";
|
|
26
|
-
import {
|
|
26
|
+
import { execFile } from "node:child_process";
|
|
27
|
+
import { promisify } from "node:util";
|
|
27
28
|
import { z } from "zod";
|
|
29
|
+
var execFileAsync = promisify(execFile);
|
|
28
30
|
var CLAUDE_MANIFEST = ".claude-plugin/marketplace.json";
|
|
29
31
|
var CODEX_MANIFEST = ".agents/plugins/marketplace.json";
|
|
30
32
|
var SUPPORTED = new Set(["skills", "commands", "agents", "hooks", "mcpServers"]);
|
|
@@ -130,7 +132,8 @@ async function acquireSource(source) {
|
|
|
130
132
|
ensureDir(getMarketplaceCacheRoot());
|
|
131
133
|
const git = parseGitSource(source);
|
|
132
134
|
if (git) {
|
|
133
|
-
const
|
|
135
|
+
const { stdout } = await execFileAsync("git", ["ls-remote", git.remote, git.ref], { timeout: 30000 });
|
|
136
|
+
const revision2 = stdout.split("\t")[0]?.trim();
|
|
134
137
|
if (!revision2)
|
|
135
138
|
throw new Error(`Could not resolve ${git.ref} for ${source}`);
|
|
136
139
|
const destination2 = snapshotRoot(source, revision2);
|
|
@@ -139,10 +142,10 @@ async function acquireSource(source) {
|
|
|
139
142
|
ensureDir(path.dirname(destination2));
|
|
140
143
|
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "mcpx-marketplace-"));
|
|
141
144
|
try {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
await execFileAsync("git", ["init"], { cwd: temp, timeout: 1e4 });
|
|
146
|
+
await execFileAsync("git", ["remote", "add", "origin", git.remote], { cwd: temp, timeout: 1e4 });
|
|
147
|
+
await execFileAsync("git", ["fetch", "--depth", "1", "origin", revision2], { cwd: temp, timeout: 60000 });
|
|
148
|
+
await execFileAsync("git", ["checkout", "--detach", "FETCH_HEAD"], { cwd: temp, timeout: 1e4 });
|
|
146
149
|
fs.rmSync(path.join(temp, ".git"), { recursive: true, force: true });
|
|
147
150
|
fs.renameSync(temp, destination2);
|
|
148
151
|
} catch (error) {
|
|
@@ -575,7 +578,7 @@ async function refreshMarketplaceWithPlugins(name) {
|
|
|
575
578
|
}
|
|
576
579
|
}
|
|
577
580
|
if (updated.length > 0) {
|
|
578
|
-
const { pluginSync } = await import("./plugin-manager-
|
|
581
|
+
const { pluginSync } = await import("./plugin-manager-rw05c2x3.js");
|
|
579
582
|
await pluginSync();
|
|
580
583
|
}
|
|
581
584
|
return { marketplace, updated, errors };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getSecretsStorePath,
|
|
6
6
|
readJsonFile,
|
|
7
7
|
writeJsonAtomic
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-6wh8qx2y.js";
|
|
9
9
|
import {
|
|
10
10
|
isServerEnabled,
|
|
11
11
|
normalizeServerSpecEnabled
|
|
@@ -290,6 +290,9 @@ class SecretsManager {
|
|
|
290
290
|
setSecret(name, value) {
|
|
291
291
|
let map = this.readStore();
|
|
292
292
|
if (map === null) {
|
|
293
|
+
if (fs2.existsSync(this.storePath)) {
|
|
294
|
+
console.error(`[mcpx] Warning: the secrets store at ${this.storePath} could not be read (corrupt, or its encryption key changed) and is being reset. All previously stored secrets will need to be re-entered.`);
|
|
295
|
+
}
|
|
293
296
|
this.recoverCorruptStore();
|
|
294
297
|
map = {};
|
|
295
298
|
}
|