@kwonye/mcpx 0.1.98 → 0.1.100

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 (35) hide show
  1. package/dist/{cli-remv48t3.js → cli-1ewrsfj4.js} +1 -1
  2. package/dist/{cli-zjepj3sj.js → cli-28g7x9rn.js} +10 -1
  3. package/dist/{cli-vy81xjm0.js → cli-b0xrqsjc.js} +1612 -488
  4. package/dist/cli-ct7asw78.js +598 -0
  5. package/dist/{cli-g4w6k655.js → cli-dy7x0zrg.js} +70 -5
  6. package/dist/{cli-gf70a85c.js → cli-etmrz2c4.js} +120 -28
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +137 -25
  9. package/dist/{config-2s2aqkqp.js → config-yx5m60fv.js} +2 -2
  10. package/dist/core/config.d.ts.map +1 -1
  11. package/dist/core/daemon.d.ts +1 -0
  12. package/dist/core/daemon.d.ts.map +1 -1
  13. package/dist/core/index.d.ts +3 -1
  14. package/dist/core/index.d.ts.map +1 -1
  15. package/dist/core/index.js +45 -21
  16. package/dist/core/marketplace-defaults.d.ts +4 -0
  17. package/dist/core/marketplace-defaults.d.ts.map +1 -0
  18. package/dist/core/marketplace-updater.d.ts +10 -0
  19. package/dist/core/marketplace-updater.d.ts.map +1 -0
  20. package/dist/core/marketplace.d.ts +67 -0
  21. package/dist/core/marketplace.d.ts.map +1 -0
  22. package/dist/core/paths.d.ts +3 -0
  23. package/dist/core/paths.d.ts.map +1 -1
  24. package/dist/core/plugin-cache.d.ts.map +1 -1
  25. package/dist/core/plugin-manager.d.ts +20 -7
  26. package/dist/core/plugin-manager.d.ts.map +1 -1
  27. package/dist/core/plugin-parse.d.ts.map +1 -1
  28. package/dist/marketplace-pwabb3ea.js +33 -0
  29. package/dist/{plugin-host-wr17xed6.js → plugin-host-9xcpnehq.js} +4 -5
  30. package/dist/{plugin-manager-7c9nk34n.js → plugin-manager-19q55n69.js} +4 -5
  31. package/dist/{registry-bnjb2345.js → registry-yvbxcaq6.js} +2 -2
  32. package/dist/types.d.ts +69 -0
  33. package/dist/types.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/cli-er8me5qr.js +0 -1052
@@ -5,7 +5,7 @@ import {
5
5
  getSecretsStorePath,
6
6
  readJsonFile,
7
7
  writeJsonAtomic
8
- } from "./cli-zjepj3sj.js";
8
+ } from "./cli-28g7x9rn.js";
9
9
  import {
10
10
  isServerEnabled,
11
11
  normalizeServerSpecEnabled
@@ -65,6 +65,15 @@ function getPluginCacheRoot() {
65
65
  function getPluginDataRoot() {
66
66
  return path.join(getDataRoot(), "mcpx", "plugins", "data");
67
67
  }
68
+ function getMarketplaceCacheRoot() {
69
+ return path.join(getDataRoot(), "mcpx", "marketplaces", "cache");
70
+ }
71
+ function getMarketplaceUpdateStatePath() {
72
+ return path.join(getStateRoot(), "mcpx", "marketplaces", "update-state.json");
73
+ }
74
+ function getMarketplaceUpdateLockPath() {
75
+ return path.join(getStateRoot(), "mcpx", "marketplaces", ".update.lock");
76
+ }
68
77
  function ensureDir(dirPath) {
69
78
  fs.mkdirSync(dirPath, { recursive: true });
70
79
  }
@@ -114,4 +123,4 @@ function sha256(value) {
114
123
  return crypto.createHash("sha256").update(value).digest("hex");
115
124
  }
116
125
 
117
- export { homeDir, getConfigPath, getSkillsDir, getManagedIndexPath, getSecretsStorePath, getSecretsKeyPath, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, getPluginCacheRoot, getPluginDataRoot, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };
126
+ export { homeDir, getConfigPath, getSkillsDir, getManagedIndexPath, getSecretsStorePath, getSecretsKeyPath, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, getPluginCacheRoot, getPluginDataRoot, getMarketplaceCacheRoot, getMarketplaceUpdateStatePath, getMarketplaceUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256 };