@kwonye/mcpx 0.1.95 → 0.1.96
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-wxw1t3rr.js → cli-2vg0te30.js} +1 -1
- package/dist/{cli-28fsxhe3.js → cli-ap2jhwnz.js} +2 -2
- package/dist/{cli-tk8bggg5.js → cli-remv48t3.js} +4 -2
- package/dist/{cli-njtbb11m.js → cli-z1fv3ra8.js} +2 -2
- package/dist/cli.js +17 -17
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/{plugin-host-954a7tf7.js → plugin-host-73dvcen6.js} +3 -3
- package/dist/{plugin-manager-m8ar2271.js → plugin-manager-y5txkse1.js} +3 -3
- package/dist/{registry-n12thgf2.js → registry-bnjb2345.js} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getGatewayUrl,
|
|
4
4
|
persistSyncState,
|
|
5
5
|
syncAllClients
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2vg0te30.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
loadMergedConfig,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
UpstreamError,
|
|
17
17
|
classifyUpstreamError,
|
|
18
18
|
ensureGatewayToken
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-remv48t3.js";
|
|
20
20
|
import {
|
|
21
21
|
ensureDir,
|
|
22
22
|
ensureParentDir,
|
|
@@ -175,8 +175,10 @@ var UNREACHABLE_PATTERNS = [
|
|
|
175
175
|
/EAI_AGAIN/,
|
|
176
176
|
/socket hang up/,
|
|
177
177
|
/ENOENT/,
|
|
178
|
-
/connect econnrefused/i
|
|
178
|
+
/connect econnrefused/i,
|
|
179
|
+
/unable to connect/i
|
|
179
180
|
];
|
|
181
|
+
var UNREACHABLE_ERROR_CODES = new Set(["ConnectionRefused"]);
|
|
180
182
|
function classifyUpstreamError(upstream, error, wwwAuthenticate) {
|
|
181
183
|
if (error instanceof UpstreamError)
|
|
182
184
|
return error;
|
|
@@ -194,7 +196,7 @@ function classifyUpstreamError(upstream, error, wwwAuthenticate) {
|
|
|
194
196
|
if (TIMEOUT_RE.test(message)) {
|
|
195
197
|
return new UpstreamError(upstream, "timeout", message);
|
|
196
198
|
}
|
|
197
|
-
if (UNREACHABLE_PATTERNS.some((p) => p.test(message))) {
|
|
199
|
+
if (typeof maybeHttpError?.code === "string" && UNREACHABLE_ERROR_CODES.has(maybeHttpError.code) || UNREACHABLE_PATTERNS.some((p) => p.test(message))) {
|
|
198
200
|
return new UpstreamError(upstream, "unreachable", message);
|
|
199
201
|
}
|
|
200
202
|
return new UpstreamError(upstream, "upstream_error", message);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistSyncState,
|
|
3
3
|
syncAllClients
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-2vg0te30.js";
|
|
5
5
|
import {
|
|
6
6
|
loadConfig,
|
|
7
7
|
saveConfig
|
|
8
8
|
} from "./cli-v27bt25d.js";
|
|
9
9
|
import {
|
|
10
10
|
SecretsManager
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-remv48t3.js";
|
|
12
12
|
import {
|
|
13
13
|
ensureDir,
|
|
14
14
|
getConfigPath,
|
package/dist/cli.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
startDaemon,
|
|
32
32
|
stopDaemon,
|
|
33
33
|
toSecretRef
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-ap2jhwnz.js";
|
|
35
35
|
import {
|
|
36
36
|
APP_VERSION,
|
|
37
37
|
deleteSkill,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
persistSyncState,
|
|
44
44
|
saveSkill,
|
|
45
45
|
syncAllClients
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-2vg0te30.js";
|
|
47
47
|
import {
|
|
48
48
|
ConfigLoadError,
|
|
49
49
|
loadConfig,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
removeServer,
|
|
63
63
|
rotateGatewayToken,
|
|
64
64
|
setServerEnabled
|
|
65
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-remv48t3.js";
|
|
66
66
|
import {
|
|
67
67
|
getConfigPath,
|
|
68
68
|
getManagedIndexPath,
|
|
@@ -2580,7 +2580,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2580
2580
|
saveProjectConfig2(localConfig, targetPath);
|
|
2581
2581
|
process.stdout.write(`Initialized project configuration at: ${targetPath}
|
|
2582
2582
|
`);
|
|
2583
|
-
const { registerProject: registerProject2 } = await import("./registry-
|
|
2583
|
+
const { registerProject: registerProject2 } = await import("./registry-bnjb2345.js");
|
|
2584
2584
|
const globalConfig = loadConfig();
|
|
2585
2585
|
registerProject2(globalConfig, process.cwd(), projectName);
|
|
2586
2586
|
saveConfig(globalConfig);
|
|
@@ -2611,7 +2611,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2611
2611
|
process.exit(1);
|
|
2612
2612
|
}
|
|
2613
2613
|
const entry = globalConfig.projects[resolvedPath];
|
|
2614
|
-
const { unregisterProject: unregisterProject2 } = await import("./registry-
|
|
2614
|
+
const { unregisterProject: unregisterProject2 } = await import("./registry-bnjb2345.js");
|
|
2615
2615
|
unregisterProject2(globalConfig, resolvedPath);
|
|
2616
2616
|
saveConfig(globalConfig);
|
|
2617
2617
|
process.stdout.write(`Unregistered project "${entry.name}" (${resolvedPath}) from the global configuration.
|
|
@@ -2624,7 +2624,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2624
2624
|
function registerPluginCommands(program, _cliPath) {
|
|
2625
2625
|
const plugin = program.command("plugin").description("Manage plugins");
|
|
2626
2626
|
plugin.command("inspect <source>").description("Inspect plugin manifest and components").action(async (source) => {
|
|
2627
|
-
const { inspectPlugin } = await import("./plugin-manager-
|
|
2627
|
+
const { inspectPlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2628
2628
|
try {
|
|
2629
2629
|
const info = await inspectPlugin(source);
|
|
2630
2630
|
process.stdout.write(JSON.stringify(info, null, 2) + `
|
|
@@ -2636,7 +2636,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2636
2636
|
}
|
|
2637
2637
|
});
|
|
2638
2638
|
plugin.command("install <source>").option("--name <name>", "Plugin name").option("--no-enable", "Don't enable plugin after install").description("Install plugin").action(async (source, options) => {
|
|
2639
|
-
const { installPlugin } = await import("./plugin-manager-
|
|
2639
|
+
const { installPlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2640
2640
|
try {
|
|
2641
2641
|
const p = await installPlugin(source, {
|
|
2642
2642
|
name: options.name,
|
|
@@ -2651,7 +2651,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
});
|
|
2653
2653
|
plugin.command("approve <name> <component>").description("Approve a plugin component (hooks, mcpServers)").action(async (name, component) => {
|
|
2654
|
-
const { approvePluginComponent } = await import("./plugin-manager-
|
|
2654
|
+
const { approvePluginComponent } = await import("./plugin-manager-y5txkse1.js");
|
|
2655
2655
|
try {
|
|
2656
2656
|
await approvePluginComponent(name, component);
|
|
2657
2657
|
process.stdout.write(`Approved ${component} for plugin ${name}
|
|
@@ -2663,7 +2663,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
2665
|
plugin.command("prepare <name>").description("Install plugin dependencies").action(async (name) => {
|
|
2666
|
-
const { preparePlugin } = await import("./plugin-manager-
|
|
2666
|
+
const { preparePlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2667
2667
|
try {
|
|
2668
2668
|
await preparePlugin(name);
|
|
2669
2669
|
process.stdout.write(`Plugin ${name} prepared
|
|
@@ -2675,7 +2675,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
});
|
|
2677
2677
|
plugin.command("update <name>").description("Update plugin to latest version").action(async (name) => {
|
|
2678
|
-
const { updatePlugin } = await import("./plugin-manager-
|
|
2678
|
+
const { updatePlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2679
2679
|
try {
|
|
2680
2680
|
const p = await updatePlugin(name);
|
|
2681
2681
|
process.stdout.write(`Plugin ${name} updated to ${p.version}
|
|
@@ -2687,7 +2687,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
});
|
|
2689
2689
|
plugin.command("uninstall <name>").option("--keep-data", "Keep plugin data after uninstall").description("Uninstall plugin").action(async (name, options) => {
|
|
2690
|
-
const { uninstallPlugin } = await import("./plugin-manager-
|
|
2690
|
+
const { uninstallPlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2691
2691
|
try {
|
|
2692
2692
|
await uninstallPlugin(name, options.keepData || false);
|
|
2693
2693
|
process.stdout.write(`Plugin ${name} uninstalled
|
|
@@ -2701,13 +2701,13 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2701
2701
|
plugin.command("enable <name>").option("--project <path>", "Scope this enable to a single registered project instead of globally").description("Enable plugin (globally, or for one project with --project)").action(async (name, options) => {
|
|
2702
2702
|
try {
|
|
2703
2703
|
if (options.project) {
|
|
2704
|
-
const { setPluginProjectOverride } = await import("./plugin-manager-
|
|
2704
|
+
const { setPluginProjectOverride } = await import("./plugin-manager-y5txkse1.js");
|
|
2705
2705
|
const resolvedPath = path.resolve(options.project);
|
|
2706
2706
|
await setPluginProjectOverride(name, resolvedPath, { enabled: true });
|
|
2707
2707
|
process.stdout.write(`Plugin ${name} enabled for project: ${resolvedPath}
|
|
2708
2708
|
`);
|
|
2709
2709
|
} else {
|
|
2710
|
-
const { enablePlugin } = await import("./plugin-manager-
|
|
2710
|
+
const { enablePlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2711
2711
|
await enablePlugin(name);
|
|
2712
2712
|
process.stdout.write(`Plugin ${name} enabled
|
|
2713
2713
|
`);
|
|
@@ -2721,13 +2721,13 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2721
2721
|
plugin.command("disable <name>").option("--project <path>", "Scope this disable to a single registered project instead of globally").description("Disable plugin (globally, or for one project with --project)").action(async (name, options) => {
|
|
2722
2722
|
try {
|
|
2723
2723
|
if (options.project) {
|
|
2724
|
-
const { setPluginProjectOverride } = await import("./plugin-manager-
|
|
2724
|
+
const { setPluginProjectOverride } = await import("./plugin-manager-y5txkse1.js");
|
|
2725
2725
|
const resolvedPath = path.resolve(options.project);
|
|
2726
2726
|
await setPluginProjectOverride(name, resolvedPath, { enabled: false });
|
|
2727
2727
|
process.stdout.write(`Plugin ${name} disabled for project: ${resolvedPath}
|
|
2728
2728
|
`);
|
|
2729
2729
|
} else {
|
|
2730
|
-
const { disablePlugin } = await import("./plugin-manager-
|
|
2730
|
+
const { disablePlugin } = await import("./plugin-manager-y5txkse1.js");
|
|
2731
2731
|
await disablePlugin(name);
|
|
2732
2732
|
process.stdout.write(`Plugin ${name} disabled
|
|
2733
2733
|
`);
|
|
@@ -2739,7 +2739,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2739
2739
|
}
|
|
2740
2740
|
});
|
|
2741
2741
|
plugin.command("status [name]").description("Show plugin status").action(async (name) => {
|
|
2742
|
-
const { getPluginStatus, listPlugins } = await import("./plugin-manager-
|
|
2742
|
+
const { getPluginStatus, listPlugins } = await import("./plugin-manager-y5txkse1.js");
|
|
2743
2743
|
try {
|
|
2744
2744
|
if (name) {
|
|
2745
2745
|
const p = await getPluginStatus(name);
|
|
@@ -2764,7 +2764,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
function registerPluginHostCommand(program) {
|
|
2766
2766
|
program.command("plugin-host <plugin> <server>").description("Run a plugin MCP server under mcpx policy enforcement").action(async (plugin, server) => {
|
|
2767
|
-
const { runPluginHost } = await import("./plugin-host-
|
|
2767
|
+
const { runPluginHost } = await import("./plugin-host-73dvcen6.js");
|
|
2768
2768
|
runPluginHost(plugin, server);
|
|
2769
2769
|
});
|
|
2770
2770
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,gBAAgB,CAAC;AAErB,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEtB,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE;CAQhI;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAoB;IACpD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAEhB,UAAU,EAAE,MAAM;CAK/B;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,gBAAgB,CAAC;AAErB,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEtB,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE;CAQhI;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAoB;IACpD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAEhB,UAAU,EAAE,MAAM;CAK/B;AAkBD,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,eAAe,CAAC,EAAE,MAAM,GACvB,aAAa,CA6Bf"}
|
package/dist/core/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
startDaemon,
|
|
38
38
|
stopDaemon,
|
|
39
39
|
toSecretRef
|
|
40
|
-
} from "../cli-
|
|
40
|
+
} from "../cli-ap2jhwnz.js";
|
|
41
41
|
import {
|
|
42
42
|
PluginCache,
|
|
43
43
|
PluginDataManager,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
resolvePluginId,
|
|
61
61
|
uninstallPlugin,
|
|
62
62
|
updatePlugin
|
|
63
|
-
} from "../cli-
|
|
63
|
+
} from "../cli-z1fv3ra8.js";
|
|
64
64
|
import {
|
|
65
65
|
deleteSkill,
|
|
66
66
|
getGatewayUrl,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
saveSkill,
|
|
74
74
|
syncAllClients,
|
|
75
75
|
syncPluginsToClient
|
|
76
|
-
} from "../cli-
|
|
76
|
+
} from "../cli-2vg0te30.js";
|
|
77
77
|
import {
|
|
78
78
|
ConfigLoadError,
|
|
79
79
|
defaultConfig,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
setServerEnabled,
|
|
101
101
|
unregisterProject,
|
|
102
102
|
updateServer
|
|
103
|
-
} from "../cli-
|
|
103
|
+
} from "../cli-remv48t3.js";
|
|
104
104
|
import {
|
|
105
105
|
getConfigPath,
|
|
106
106
|
getManagedIndexPath
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePluginId,
|
|
3
3
|
resolvePluginVars
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-z1fv3ra8.js";
|
|
5
|
+
import"./cli-2vg0te30.js";
|
|
6
6
|
import {
|
|
7
7
|
loadConfig
|
|
8
8
|
} from "./cli-v27bt25d.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-remv48t3.js";
|
|
10
10
|
import"./cli-zjepj3sj.js";
|
|
11
11
|
import"./cli-s4gspqdf.js";
|
|
12
12
|
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
setPluginProjectOverride,
|
|
15
15
|
uninstallPlugin,
|
|
16
16
|
updatePlugin
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
} from "./cli-z1fv3ra8.js";
|
|
18
|
+
import"./cli-2vg0te30.js";
|
|
19
19
|
import"./cli-v27bt25d.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-remv48t3.js";
|
|
21
21
|
import"./cli-zjepj3sj.js";
|
|
22
22
|
import"./cli-s4gspqdf.js";
|
|
23
23
|
export {
|