@kwonye/mcpx 0.1.102 → 0.1.103
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/{marketplace-zem0m4mw.js → chunk-02r7k4ax.js} +20 -17
- package/dist/{plugin-host-5jmyt0td.js → chunk-0xhdyt4z.js} +8 -5
- package/dist/chunk-12vgqm89.js +31 -0
- package/dist/{config-fbgyqmv1.js → chunk-31brdz5s.js} +14 -11
- package/dist/chunk-91vcwk5m.js +21 -0
- package/dist/chunk-941dqsx2.js +10432 -0
- package/dist/{plugin-manager-rw05c2x3.js → chunk-b58zsdp4.js} +23 -20
- package/dist/{cli-s4gspqdf.js → chunk-bjw71y54.js} +3 -4
- package/dist/chunk-bnbz55g6.js +38 -0
- package/dist/chunk-c7zg7ey3.js +17 -0
- package/dist/{cli-6wh8qx2y.js → chunk-cqenqnxk.js} +6 -1
- package/dist/{cli-hh7rthhx.js → chunk-cz8cdmw1.js} +7 -4
- package/dist/chunk-enzmq965.js +40 -0
- package/dist/{cli-aawpvhhe.js → chunk-s9v1epnk.js} +7 -5
- package/dist/chunk-tnhekcpv.js +1487 -0
- package/dist/chunk-wj4tjacg.js +52 -0
- package/dist/{cli-6zq2fd6h.js → chunk-wq4zd3t7.js} +4 -2
- package/dist/chunk-xydajvzg.js +38 -0
- package/dist/{cli-9k3wmag6.js → chunk-z1k63fa3.js} +18 -21
- package/dist/{registry-04kfpjh0.js → chunk-z34m83m4.js} +16 -13
- package/dist/cli.js +34124 -994
- package/dist/compat/claude.d.ts +1 -1
- package/dist/compat/qwen.d.ts +2 -2
- package/dist/core/error-reporting.d.ts +6 -0
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +172 -125
- package/dist/core/mcp-v2.d.ts +11 -0
- package/dist/core/paths.d.ts +1 -0
- package/dist/core/sync.d.ts +1 -0
- package/dist/core/telemetry.d.ts +203 -0
- package/dist/gateway/server.d.ts +9 -3
- package/dist/types.js +6 -3
- package/package.json +8 -3
- package/dist/adapters/claude-desktop.d.ts.map +0 -1
- package/dist/adapters/claude.d.ts.map +0 -1
- package/dist/adapters/cline.d.ts.map +0 -1
- package/dist/adapters/codex.d.ts.map +0 -1
- package/dist/adapters/cursor.d.ts.map +0 -1
- package/dist/adapters/hermes.d.ts.map +0 -1
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/kiro.d.ts.map +0 -1
- package/dist/adapters/openclaw.d.ts.map +0 -1
- package/dist/adapters/opencode.d.ts.map +0 -1
- package/dist/adapters/qwen.d.ts.map +0 -1
- package/dist/adapters/utils/index.d.ts.map +0 -1
- package/dist/adapters/vscode.d.ts.map +0 -1
- package/dist/cli-qzzjkt0q.js +0 -2860
- package/dist/cli.d.ts.map +0 -1
- package/dist/compat/claude.d.ts.map +0 -1
- package/dist/compat/codex.d.ts.map +0 -1
- package/dist/compat/hermes.d.ts.map +0 -1
- package/dist/compat/index.d.ts.map +0 -1
- package/dist/compat/openclaw.d.ts.map +0 -1
- package/dist/compat/qwen.d.ts.map +0 -1
- package/dist/compat/unsupported.d.ts.map +0 -1
- package/dist/compat/vscode.d.ts.map +0 -1
- package/dist/core/add-command.d.ts.map +0 -1
- package/dist/core/auth-probe.d.ts.map +0 -1
- package/dist/core/config-repair.d.ts.map +0 -1
- package/dist/core/config-store.d.ts.map +0 -1
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/daemon.d.ts.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/identifiers.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/managed-index-lock.d.ts.map +0 -1
- package/dist/core/managed-index.d.ts.map +0 -1
- package/dist/core/marketplace-defaults.d.ts.map +0 -1
- package/dist/core/marketplace-updater.d.ts.map +0 -1
- package/dist/core/marketplace.d.ts.map +0 -1
- package/dist/core/oauth.d.ts.map +0 -1
- package/dist/core/paths.d.ts.map +0 -1
- package/dist/core/plugin-cache.d.ts.map +0 -1
- package/dist/core/plugin-data.d.ts.map +0 -1
- package/dist/core/plugin-host.d.ts.map +0 -1
- package/dist/core/plugin-lifecycle.d.ts.map +0 -1
- package/dist/core/plugin-manager.d.ts.map +0 -1
- package/dist/core/plugin-parse.d.ts.map +0 -1
- package/dist/core/plugin-projections.d.ts.map +0 -1
- package/dist/core/plugin-source.d.ts.map +0 -1
- package/dist/core/proxy.d.ts.map +0 -1
- package/dist/core/registry-client.d.ts.map +0 -1
- package/dist/core/registry.d.ts.map +0 -1
- package/dist/core/secrets.d.ts.map +0 -1
- package/dist/core/server-auth.d.ts.map +0 -1
- package/dist/core/skill-projections.d.ts.map +0 -1
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/core/spawn-env.d.ts.map +0 -1
- package/dist/core/status.d.ts.map +0 -1
- package/dist/core/sync.d.ts.map +0 -1
- package/dist/core/update-manager.d.ts.map +0 -1
- package/dist/core/update.d.ts.map +0 -1
- package/dist/gateway/server.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/util/fs.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
|
@@ -15,26 +15,29 @@ import {
|
|
|
15
15
|
setPluginProjectOverride,
|
|
16
16
|
uninstallPlugin,
|
|
17
17
|
updatePlugin
|
|
18
|
-
} from "./
|
|
19
|
-
import"./
|
|
20
|
-
import"./
|
|
21
|
-
import"./
|
|
22
|
-
import"./
|
|
18
|
+
} from "./chunk-z1k63fa3.js";
|
|
19
|
+
import"./chunk-wq4zd3t7.js";
|
|
20
|
+
import"./chunk-cz8cdmw1.js";
|
|
21
|
+
import"./chunk-cqenqnxk.js";
|
|
22
|
+
import"./chunk-bjw71y54.js";
|
|
23
|
+
import"./chunk-wj4tjacg.js";
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
uninstallPlugin,
|
|
26
|
-
setPluginProjectOverride,
|
|
27
|
-
resolvePluginId,
|
|
28
|
-
resetPluginProjectOverride,
|
|
29
|
-
preparePlugin,
|
|
30
|
-
pluginSync,
|
|
31
|
-
pluginConfigSet,
|
|
32
|
-
listPlugins,
|
|
33
|
-
installPlugin,
|
|
34
|
-
inspectPlugin,
|
|
35
|
-
getPluginStatus,
|
|
36
|
-
enablePlugin,
|
|
37
|
-
disablePlugin,
|
|
25
|
+
PluginManager,
|
|
38
26
|
approvePluginComponent,
|
|
39
|
-
|
|
27
|
+
disablePlugin,
|
|
28
|
+
enablePlugin,
|
|
29
|
+
getPluginStatus,
|
|
30
|
+
inspectPlugin,
|
|
31
|
+
installPlugin,
|
|
32
|
+
listPlugins,
|
|
33
|
+
pluginConfigSet,
|
|
34
|
+
pluginSync,
|
|
35
|
+
preparePlugin,
|
|
36
|
+
resetPluginProjectOverride,
|
|
37
|
+
resolvePluginId,
|
|
38
|
+
setPluginProjectOverride,
|
|
39
|
+
uninstallPlugin,
|
|
40
|
+
updatePlugin
|
|
40
41
|
};
|
|
42
|
+
|
|
43
|
+
//# debugId=11040DF9544111AB64756E2164756E21
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
|
-
|
|
4
1
|
// src/types.ts
|
|
5
2
|
function isServerEnabled(spec) {
|
|
6
3
|
return spec.enabled !== false;
|
|
@@ -12,4 +9,6 @@ function normalizeServerSpecEnabled(spec) {
|
|
|
12
9
|
};
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
export {
|
|
12
|
+
export { isServerEnabled, normalizeServerSpecEnabled };
|
|
13
|
+
|
|
14
|
+
//# debugId=8EDE27B3063D040164756E2164756E21
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_execAsync
|
|
3
|
+
} from "./chunk-c7zg7ey3.js";
|
|
4
|
+
import {
|
|
5
|
+
require_src
|
|
6
|
+
} from "./chunk-tnhekcpv.js";
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__require
|
|
10
|
+
} from "./chunk-wj4tjacg.js";
|
|
11
|
+
|
|
12
|
+
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
13
|
+
var require_getMachineId_bsd = __commonJS(function(exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getMachineId = undefined;
|
|
16
|
+
var fs_1 = __require("fs");
|
|
17
|
+
var execAsync_1 = require_execAsync();
|
|
18
|
+
var api_1 = require_src();
|
|
19
|
+
async function getMachineId() {
|
|
20
|
+
try {
|
|
21
|
+
const result = await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" });
|
|
22
|
+
return result.trim();
|
|
23
|
+
} catch (e) {
|
|
24
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
const result = await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid");
|
|
28
|
+
return result.stdout.trim();
|
|
29
|
+
} catch (e) {
|
|
30
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
31
|
+
}
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
exports.getMachineId = getMachineId;
|
|
35
|
+
});
|
|
36
|
+
export default require_getMachineId_bsd();
|
|
37
|
+
|
|
38
|
+
//# debugId=8C345C4494C676E764756E2164756E21
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__require
|
|
4
|
+
} from "./chunk-wj4tjacg.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
7
|
+
var require_execAsync = __commonJS(function(exports) {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.execAsync = undefined;
|
|
10
|
+
var child_process = __require("child_process");
|
|
11
|
+
var util = __require("util");
|
|
12
|
+
exports.execAsync = util.promisify(child_process.exec);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { require_execAsync };
|
|
16
|
+
|
|
17
|
+
//# debugId=CC493FB6BF358A5D64756E2164756E21
|
|
@@ -24,6 +24,9 @@ function getStateRoot() {
|
|
|
24
24
|
function getConfigPath() {
|
|
25
25
|
return path.join(getConfigRoot(), "mcpx", "config.json");
|
|
26
26
|
}
|
|
27
|
+
function getTelemetryPath() {
|
|
28
|
+
return path.join(getConfigRoot(), "mcpx", "telemetry.json");
|
|
29
|
+
}
|
|
27
30
|
function getSkillsDir() {
|
|
28
31
|
return path.join(getConfigRoot(), "mcpx", "skills");
|
|
29
32
|
}
|
|
@@ -129,4 +132,6 @@ function sha256(value) {
|
|
|
129
132
|
return crypto2.createHash("sha256").update(value).digest("hex");
|
|
130
133
|
}
|
|
131
134
|
|
|
132
|
-
export { homeDir, getConfigPath, getSkillsDir, getManagedIndexPath, getSecretsStorePath, getSecretsKeyPath, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, getOAuthLockPath, getPluginCacheRoot, getPluginDataRoot, getMarketplaceCacheRoot, getMarketplaceUpdateStatePath, getMarketplaceUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };
|
|
135
|
+
export { homeDir, getConfigPath, getTelemetryPath, getSkillsDir, getManagedIndexPath, getSecretsStorePath, getSecretsKeyPath, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, getOAuthLockPath, getPluginCacheRoot, getPluginDataRoot, getMarketplaceCacheRoot, getMarketplaceUpdateStatePath, getMarketplaceUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };
|
|
136
|
+
|
|
137
|
+
//# debugId=96DE5993BD5A6D3864756E2164756E21
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
getSecretsStorePath,
|
|
6
6
|
readJsonFile,
|
|
7
7
|
writeJsonAtomic
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./chunk-cqenqnxk.js";
|
|
9
9
|
import {
|
|
10
10
|
isServerEnabled,
|
|
11
11
|
normalizeServerSpecEnabled
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./chunk-bjw71y54.js";
|
|
13
13
|
|
|
14
14
|
// src/core/registry.ts
|
|
15
15
|
import crypto from "node:crypto";
|
|
@@ -187,9 +187,10 @@ function classifyUpstreamError(upstream, error, wwwAuthenticate) {
|
|
|
187
187
|
}
|
|
188
188
|
const message = error instanceof Error ? error.message : String(error);
|
|
189
189
|
const maybeHttpError = error;
|
|
190
|
-
|
|
190
|
+
const httpStatus = maybeHttpError?.status ?? (typeof maybeHttpError?.code === "number" ? maybeHttpError.code : undefined);
|
|
191
|
+
if (httpStatus === 401 || httpStatus === 403) {
|
|
191
192
|
return new UpstreamError(upstream, "auth_required", message, {
|
|
192
|
-
status:
|
|
193
|
+
status: httpStatus,
|
|
193
194
|
wwwAuthenticate
|
|
194
195
|
});
|
|
195
196
|
}
|
|
@@ -339,3 +340,5 @@ function readSecretValueFromStdin() {
|
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
export { UpstreamError, SecretNotFoundError, classifyUpstreamError, SecretsManager, readSecretValueFromStdin, validateServerName, addServer, removeServer, updateServer, setServerEnabled, getGatewayTokenSecretName, ensureGatewayToken, rotateGatewayToken, registerProject, unregisterProject, setProjectServerEnabled };
|
|
343
|
+
|
|
344
|
+
//# debugId=C03A0B51CA07FB8164756E2164756E21
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_execAsync
|
|
3
|
+
} from "./chunk-c7zg7ey3.js";
|
|
4
|
+
import {
|
|
5
|
+
require_src
|
|
6
|
+
} from "./chunk-tnhekcpv.js";
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__require
|
|
10
|
+
} from "./chunk-wj4tjacg.js";
|
|
11
|
+
|
|
12
|
+
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
13
|
+
var require_getMachineId_win = __commonJS(function(exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getMachineId = undefined;
|
|
16
|
+
var process = __require("process");
|
|
17
|
+
var execAsync_1 = require_execAsync();
|
|
18
|
+
var api_1 = require_src();
|
|
19
|
+
async function getMachineId() {
|
|
20
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
21
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
22
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) {
|
|
23
|
+
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
|
|
27
|
+
const parts = result.stdout.split("REG_SZ");
|
|
28
|
+
if (parts.length === 2) {
|
|
29
|
+
return parts[1].trim();
|
|
30
|
+
}
|
|
31
|
+
} catch (e) {
|
|
32
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
exports.getMachineId = getMachineId;
|
|
37
|
+
});
|
|
38
|
+
export default require_getMachineId_win();
|
|
39
|
+
|
|
40
|
+
//# debugId=C0D85F8B401F9ED164756E2164756E21
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
mutateConfig,
|
|
7
7
|
readManifest,
|
|
8
8
|
uninstallPlugin
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./chunk-z1k63fa3.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./chunk-wq4zd3t7.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureDir,
|
|
15
15
|
getMarketplaceCacheRoot
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./chunk-cqenqnxk.js";
|
|
17
17
|
import {
|
|
18
18
|
__require
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./chunk-wj4tjacg.js";
|
|
20
20
|
|
|
21
21
|
// src/core/marketplace.ts
|
|
22
22
|
import crypto from "node:crypto";
|
|
@@ -578,7 +578,7 @@ async function refreshMarketplaceWithPlugins(name) {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
if (updated.length > 0) {
|
|
581
|
-
const { pluginSync } = await import("./
|
|
581
|
+
const { pluginSync } = await import("./chunk-b58zsdp4.js");
|
|
582
582
|
await pluginSync();
|
|
583
583
|
}
|
|
584
584
|
return { marketplace, updated, errors };
|
|
@@ -599,3 +599,5 @@ async function refreshAutoUpdateMarketplaces() {
|
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
export { resolveMarketplacePluginSource, listMarketplaces, addMarketplace, refreshMarketplace, setMarketplaceAutoUpdate, removeMarketplace, listMarketplacePlugins, inspectMarketplacePlugin, installMarketplacePlugin, updateMarketplaceInstalledPlugin, refreshMarketplaceWithPlugins, refreshAutoUpdateMarketplaces };
|
|
602
|
+
|
|
603
|
+
//# debugId=95199795C0DBE5F464756E2164756E21
|