@kwonye/mcpx 0.1.102 → 0.1.104

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.
Files changed (96) hide show
  1. package/dist/{marketplace-zem0m4mw.js → chunk-02r7k4ax.js} +20 -17
  2. package/dist/{plugin-host-5jmyt0td.js → chunk-0xhdyt4z.js} +8 -5
  3. package/dist/chunk-12vgqm89.js +31 -0
  4. package/dist/{config-fbgyqmv1.js → chunk-31brdz5s.js} +14 -11
  5. package/dist/chunk-91vcwk5m.js +21 -0
  6. package/dist/chunk-941dqsx2.js +10432 -0
  7. package/dist/{plugin-manager-rw05c2x3.js → chunk-b58zsdp4.js} +23 -20
  8. package/dist/{cli-s4gspqdf.js → chunk-bjw71y54.js} +3 -4
  9. package/dist/chunk-bnbz55g6.js +38 -0
  10. package/dist/chunk-c7zg7ey3.js +17 -0
  11. package/dist/{cli-6wh8qx2y.js → chunk-cqenqnxk.js} +6 -1
  12. package/dist/{cli-hh7rthhx.js → chunk-cz8cdmw1.js} +7 -4
  13. package/dist/chunk-enzmq965.js +40 -0
  14. package/dist/{cli-aawpvhhe.js → chunk-s9v1epnk.js} +7 -5
  15. package/dist/chunk-tnhekcpv.js +1487 -0
  16. package/dist/chunk-wj4tjacg.js +52 -0
  17. package/dist/{cli-6zq2fd6h.js → chunk-wq4zd3t7.js} +4 -2
  18. package/dist/chunk-xydajvzg.js +38 -0
  19. package/dist/{cli-9k3wmag6.js → chunk-z1k63fa3.js} +18 -21
  20. package/dist/{registry-04kfpjh0.js → chunk-z34m83m4.js} +16 -13
  21. package/dist/cli.js +34124 -994
  22. package/dist/compat/claude.d.ts +1 -1
  23. package/dist/compat/qwen.d.ts +2 -2
  24. package/dist/core/error-reporting.d.ts +6 -0
  25. package/dist/core/index.d.ts +4 -2
  26. package/dist/core/index.js +172 -125
  27. package/dist/core/mcp-v2.d.ts +11 -0
  28. package/dist/core/paths.d.ts +1 -0
  29. package/dist/core/sync.d.ts +1 -0
  30. package/dist/core/telemetry.d.ts +203 -0
  31. package/dist/gateway/server.d.ts +9 -3
  32. package/dist/types.js +6 -3
  33. package/package.json +9 -3
  34. package/dist/adapters/claude-desktop.d.ts.map +0 -1
  35. package/dist/adapters/claude.d.ts.map +0 -1
  36. package/dist/adapters/cline.d.ts.map +0 -1
  37. package/dist/adapters/codex.d.ts.map +0 -1
  38. package/dist/adapters/cursor.d.ts.map +0 -1
  39. package/dist/adapters/hermes.d.ts.map +0 -1
  40. package/dist/adapters/index.d.ts.map +0 -1
  41. package/dist/adapters/kiro.d.ts.map +0 -1
  42. package/dist/adapters/openclaw.d.ts.map +0 -1
  43. package/dist/adapters/opencode.d.ts.map +0 -1
  44. package/dist/adapters/qwen.d.ts.map +0 -1
  45. package/dist/adapters/utils/index.d.ts.map +0 -1
  46. package/dist/adapters/vscode.d.ts.map +0 -1
  47. package/dist/cli-qzzjkt0q.js +0 -2860
  48. package/dist/cli.d.ts.map +0 -1
  49. package/dist/compat/claude.d.ts.map +0 -1
  50. package/dist/compat/codex.d.ts.map +0 -1
  51. package/dist/compat/hermes.d.ts.map +0 -1
  52. package/dist/compat/index.d.ts.map +0 -1
  53. package/dist/compat/openclaw.d.ts.map +0 -1
  54. package/dist/compat/qwen.d.ts.map +0 -1
  55. package/dist/compat/unsupported.d.ts.map +0 -1
  56. package/dist/compat/vscode.d.ts.map +0 -1
  57. package/dist/core/add-command.d.ts.map +0 -1
  58. package/dist/core/auth-probe.d.ts.map +0 -1
  59. package/dist/core/config-repair.d.ts.map +0 -1
  60. package/dist/core/config-store.d.ts.map +0 -1
  61. package/dist/core/config.d.ts.map +0 -1
  62. package/dist/core/daemon.d.ts.map +0 -1
  63. package/dist/core/errors.d.ts.map +0 -1
  64. package/dist/core/identifiers.d.ts.map +0 -1
  65. package/dist/core/index.d.ts.map +0 -1
  66. package/dist/core/managed-index-lock.d.ts.map +0 -1
  67. package/dist/core/managed-index.d.ts.map +0 -1
  68. package/dist/core/marketplace-defaults.d.ts.map +0 -1
  69. package/dist/core/marketplace-updater.d.ts.map +0 -1
  70. package/dist/core/marketplace.d.ts.map +0 -1
  71. package/dist/core/oauth.d.ts.map +0 -1
  72. package/dist/core/paths.d.ts.map +0 -1
  73. package/dist/core/plugin-cache.d.ts.map +0 -1
  74. package/dist/core/plugin-data.d.ts.map +0 -1
  75. package/dist/core/plugin-host.d.ts.map +0 -1
  76. package/dist/core/plugin-lifecycle.d.ts.map +0 -1
  77. package/dist/core/plugin-manager.d.ts.map +0 -1
  78. package/dist/core/plugin-parse.d.ts.map +0 -1
  79. package/dist/core/plugin-projections.d.ts.map +0 -1
  80. package/dist/core/plugin-source.d.ts.map +0 -1
  81. package/dist/core/proxy.d.ts.map +0 -1
  82. package/dist/core/registry-client.d.ts.map +0 -1
  83. package/dist/core/registry.d.ts.map +0 -1
  84. package/dist/core/secrets.d.ts.map +0 -1
  85. package/dist/core/server-auth.d.ts.map +0 -1
  86. package/dist/core/skill-projections.d.ts.map +0 -1
  87. package/dist/core/skills.d.ts.map +0 -1
  88. package/dist/core/spawn-env.d.ts.map +0 -1
  89. package/dist/core/status.d.ts.map +0 -1
  90. package/dist/core/sync.d.ts.map +0 -1
  91. package/dist/core/update-manager.d.ts.map +0 -1
  92. package/dist/core/update.d.ts.map +0 -1
  93. package/dist/gateway/server.d.ts.map +0 -1
  94. package/dist/types.d.ts.map +0 -1
  95. package/dist/util/fs.d.ts.map +0 -1
  96. package/dist/version.d.ts.map +0 -1
@@ -15,26 +15,29 @@ import {
15
15
  setPluginProjectOverride,
16
16
  uninstallPlugin,
17
17
  updatePlugin
18
- } from "./cli-9k3wmag6.js";
19
- import"./cli-6zq2fd6h.js";
20
- import"./cli-hh7rthhx.js";
21
- import"./cli-6wh8qx2y.js";
22
- import"./cli-s4gspqdf.js";
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
- updatePlugin,
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
- PluginManager
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 { __require, isServerEnabled, normalizeServerSpecEnabled };
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 "./cli-6wh8qx2y.js";
8
+ } from "./chunk-cqenqnxk.js";
9
9
  import {
10
10
  isServerEnabled,
11
11
  normalizeServerSpecEnabled
12
- } from "./cli-s4gspqdf.js";
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
- if (maybeHttpError?.code && (maybeHttpError.code === 401 || maybeHttpError.code === 403)) {
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: maybeHttpError.code,
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 "./cli-9k3wmag6.js";
9
+ } from "./chunk-z1k63fa3.js";
10
10
  import {
11
11
  loadConfig
12
- } from "./cli-6zq2fd6h.js";
12
+ } from "./chunk-wq4zd3t7.js";
13
13
  import {
14
14
  ensureDir,
15
15
  getMarketplaceCacheRoot
16
- } from "./cli-6wh8qx2y.js";
16
+ } from "./chunk-cqenqnxk.js";
17
17
  import {
18
18
  __require
19
- } from "./cli-s4gspqdf.js";
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("./plugin-manager-rw05c2x3.js");
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