@kwonye/mcpx 0.1.97 → 0.1.99
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-remv48t3.js → cli-1ewrsfj4.js} +1 -1
- package/dist/{cli-zjepj3sj.js → cli-28g7x9rn.js} +10 -1
- package/dist/{cli-gf70a85c.js → cli-7x2n23em.js} +112 -24
- package/dist/{cli-vy81xjm0.js → cli-b0xrqsjc.js} +1612 -488
- package/dist/cli-ct7asw78.js +598 -0
- package/dist/{cli-g4w6k655.js → cli-dy7x0zrg.js} +70 -5
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +137 -25
- package/dist/{config-2s2aqkqp.js → config-yx5m60fv.js} +2 -2
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/daemon.d.ts.map +1 -1
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +46 -20
- package/dist/core/marketplace-defaults.d.ts +4 -0
- package/dist/core/marketplace-defaults.d.ts.map +1 -0
- package/dist/core/marketplace-updater.d.ts +10 -0
- package/dist/core/marketplace-updater.d.ts.map +1 -0
- package/dist/core/marketplace.d.ts +67 -0
- package/dist/core/marketplace.d.ts.map +1 -0
- package/dist/core/paths.d.ts +3 -0
- package/dist/core/paths.d.ts.map +1 -1
- package/dist/core/plugin-cache.d.ts.map +1 -1
- package/dist/core/plugin-manager.d.ts +21 -7
- package/dist/core/plugin-manager.d.ts.map +1 -1
- package/dist/core/plugin-parse.d.ts.map +1 -1
- package/dist/marketplace-pwabb3ea.js +33 -0
- package/dist/{plugin-host-d9wkemnr.js → plugin-host-9xcpnehq.js} +4 -5
- package/dist/{plugin-manager-0ygz96m9.js → plugin-manager-19q55n69.js} +6 -5
- package/dist/{registry-bnjb2345.js → registry-yvbxcaq6.js} +2 -2
- package/dist/types.d.ts +69 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cli-tdsve98z.js +0 -1029
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getConfigPath,
|
|
4
4
|
readJsonFile,
|
|
5
5
|
writeJsonAtomic
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-28g7x9rn.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeServerSpecEnabled
|
|
9
9
|
} from "./cli-s4gspqdf.js";
|
|
@@ -379,6 +379,43 @@ function repairConfig(config) {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
// src/core/marketplace-defaults.ts
|
|
383
|
+
var BUILTIN_ADDED_AT = "1970-01-01T00:00:00.000Z";
|
|
384
|
+
var DEFAULT_MARKETPLACES = {
|
|
385
|
+
"claude-plugins-official": {
|
|
386
|
+
name: "claude-plugins-official",
|
|
387
|
+
displayName: "Claude official",
|
|
388
|
+
source: "anthropics/claude-plugins-official",
|
|
389
|
+
sourceType: "github",
|
|
390
|
+
manifestPath: ".claude-plugin/marketplace.json",
|
|
391
|
+
format: "claude",
|
|
392
|
+
builtIn: true,
|
|
393
|
+
autoUpdate: true,
|
|
394
|
+
addedAt: BUILTIN_ADDED_AT,
|
|
395
|
+
status: "unavailable"
|
|
396
|
+
},
|
|
397
|
+
"openai-curated": {
|
|
398
|
+
name: "openai-curated",
|
|
399
|
+
displayName: "Codex official",
|
|
400
|
+
source: "openai/plugins",
|
|
401
|
+
sourceType: "github",
|
|
402
|
+
manifestPath: ".agents/plugins/marketplace.json",
|
|
403
|
+
format: "codex",
|
|
404
|
+
builtIn: true,
|
|
405
|
+
autoUpdate: true,
|
|
406
|
+
addedAt: BUILTIN_ADDED_AT,
|
|
407
|
+
status: "unavailable"
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
function ensureDefaultMarketplaces(marketplaces) {
|
|
411
|
+
const result = { ...marketplaces ?? {} };
|
|
412
|
+
for (const [name, defaults] of Object.entries(DEFAULT_MARKETPLACES)) {
|
|
413
|
+
const existing = result[name];
|
|
414
|
+
result[name] = existing ? { ...defaults, ...existing, name, source: defaults.source, sourceType: defaults.sourceType, manifestPath: defaults.manifestPath, format: defaults.format, builtIn: true } : { ...defaults };
|
|
415
|
+
}
|
|
416
|
+
return result;
|
|
417
|
+
}
|
|
418
|
+
|
|
382
419
|
// src/core/config.ts
|
|
383
420
|
class ConfigLoadError extends Error {
|
|
384
421
|
configPath;
|
|
@@ -426,10 +463,13 @@ var discoveredComponentSchema = z.object({
|
|
|
426
463
|
});
|
|
427
464
|
var discoveredMcpServerSchema = z.object({
|
|
428
465
|
id: z.string(),
|
|
466
|
+
transport: z.enum(["stdio", "http"]).optional(),
|
|
429
467
|
command: z.string(),
|
|
430
468
|
args: z.array(z.string()).optional(),
|
|
431
469
|
env: z.record(z.string(), z.string()).optional(),
|
|
432
|
-
cwd: z.string().optional()
|
|
470
|
+
cwd: z.string().optional(),
|
|
471
|
+
url: z.string().optional(),
|
|
472
|
+
oauthResource: z.string().optional()
|
|
433
473
|
});
|
|
434
474
|
var discoveredComponentsSchema = z.object({
|
|
435
475
|
skills: z.array(discoveredComponentSchema).default([]),
|
|
@@ -462,12 +502,34 @@ var managedPluginSchema = z.object({
|
|
|
462
502
|
agents: z.boolean().optional(),
|
|
463
503
|
commands: z.boolean().optional()
|
|
464
504
|
}).optional(),
|
|
505
|
+
marketplace: z.object({
|
|
506
|
+
name: z.string(),
|
|
507
|
+
pluginName: z.string(),
|
|
508
|
+
sourceFingerprint: z.string()
|
|
509
|
+
}).optional(),
|
|
510
|
+
updateError: z.string().optional(),
|
|
465
511
|
projectOverrides: z.record(z.string(), z.object({
|
|
466
512
|
enabled: z.boolean().optional(),
|
|
467
513
|
components: z.record(pluginComponentSchema, z.boolean()).optional(),
|
|
468
514
|
config: z.record(z.string(), z.unknown()).optional()
|
|
469
515
|
})).optional()
|
|
470
516
|
});
|
|
517
|
+
var managedMarketplaceSchema = z.object({
|
|
518
|
+
name: z.string(),
|
|
519
|
+
displayName: z.string(),
|
|
520
|
+
source: z.string(),
|
|
521
|
+
sourceType: z.enum(["github", "git", "local", "hosted-json"]).default("github"),
|
|
522
|
+
manifestPath: z.string().optional(),
|
|
523
|
+
format: z.enum(["claude", "codex"]).optional(),
|
|
524
|
+
builtIn: z.boolean().default(false),
|
|
525
|
+
autoUpdate: z.boolean().default(false),
|
|
526
|
+
addedAt: z.string(),
|
|
527
|
+
lastCheckedAt: z.string().optional(),
|
|
528
|
+
lastUpdatedAt: z.string().optional(),
|
|
529
|
+
resolvedRevision: z.string().optional(),
|
|
530
|
+
status: z.enum(["ready", "stale", "error", "unavailable"]).default("unavailable"),
|
|
531
|
+
error: z.string().optional()
|
|
532
|
+
});
|
|
471
533
|
var configSchema = z.object({
|
|
472
534
|
schemaVersion: z.literal(1).default(1),
|
|
473
535
|
gateway: z.object({
|
|
@@ -482,7 +544,8 @@ var configSchema = z.object({
|
|
|
482
544
|
servers: z.record(z.string(), serverSchema).default({}),
|
|
483
545
|
clients: z.record(z.string(), clientStateSchema).default({}),
|
|
484
546
|
projects: z.record(z.string(), projectEntrySchema).default({}),
|
|
485
|
-
plugins: z.record(z.string(), managedPluginSchema).default({})
|
|
547
|
+
plugins: z.record(z.string(), managedPluginSchema).default({}),
|
|
548
|
+
marketplaces: z.record(z.string(), managedMarketplaceSchema).default({})
|
|
486
549
|
});
|
|
487
550
|
var projectConfigSchema = z.object({
|
|
488
551
|
name: z.string().min(1).optional(),
|
|
@@ -499,7 +562,8 @@ function defaultConfig() {
|
|
|
499
562
|
servers: {},
|
|
500
563
|
clients: {},
|
|
501
564
|
projects: {},
|
|
502
|
-
plugins: {}
|
|
565
|
+
plugins: {},
|
|
566
|
+
marketplaces: ensureDefaultMarketplaces(undefined)
|
|
503
567
|
};
|
|
504
568
|
}
|
|
505
569
|
function loadConfig(configPath = getConfigPath()) {
|
|
@@ -541,7 +605,8 @@ function loadConfig(configPath = getConfigPath()) {
|
|
|
541
605
|
servers,
|
|
542
606
|
clients: clientEntries,
|
|
543
607
|
projects: parsed.data.projects,
|
|
544
|
-
plugins: parsed.data.plugins
|
|
608
|
+
plugins: parsed.data.plugins,
|
|
609
|
+
marketplaces: ensureDefaultMarketplaces(parsed.data.marketplaces)
|
|
545
610
|
});
|
|
546
611
|
}
|
|
547
612
|
function saveConfig(config, configPath = getConfigPath()) {
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AA+oEA,wBAAsB,MAAM,CAAC,IAAI,WAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA6E/D"}
|
package/dist/cli.js
CHANGED
|
@@ -29,7 +29,8 @@ import {
|
|
|
29
29
|
startDaemon,
|
|
30
30
|
stopDaemon,
|
|
31
31
|
toSecretRef
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-7x2n23em.js";
|
|
33
|
+
import"./cli-ct7asw78.js";
|
|
33
34
|
import {
|
|
34
35
|
APP_VERSION,
|
|
35
36
|
deleteSkill,
|
|
@@ -44,14 +45,14 @@ import {
|
|
|
44
45
|
persistSyncState,
|
|
45
46
|
saveSkill,
|
|
46
47
|
syncAllClients
|
|
47
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-b0xrqsjc.js";
|
|
48
49
|
import {
|
|
49
50
|
ConfigLoadError,
|
|
50
51
|
loadConfig,
|
|
51
52
|
loadMergedConfig,
|
|
52
53
|
loadProjectConfig,
|
|
53
54
|
resolveActiveConfig
|
|
54
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-dy7x0zrg.js";
|
|
55
56
|
import {
|
|
56
57
|
SecretsManager,
|
|
57
58
|
addServer,
|
|
@@ -61,12 +62,12 @@ import {
|
|
|
61
62
|
removeServer,
|
|
62
63
|
rotateGatewayToken,
|
|
63
64
|
setServerEnabled
|
|
64
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-1ewrsfj4.js";
|
|
65
66
|
import {
|
|
66
67
|
getConfigPath,
|
|
67
68
|
getManagedIndexPath,
|
|
68
69
|
getSecretsStorePath
|
|
69
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-28g7x9rn.js";
|
|
70
71
|
import {
|
|
71
72
|
__require,
|
|
72
73
|
isServerEnabled
|
|
@@ -2590,11 +2591,11 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2590
2591
|
name: projectName,
|
|
2591
2592
|
servers: {}
|
|
2592
2593
|
};
|
|
2593
|
-
const { saveProjectConfig } = await import("./config-
|
|
2594
|
+
const { saveProjectConfig } = await import("./config-yx5m60fv.js");
|
|
2594
2595
|
saveProjectConfig(localConfig, targetPath);
|
|
2595
2596
|
process.stdout.write(`Initialized project configuration at: ${targetPath}
|
|
2596
2597
|
`);
|
|
2597
|
-
const { registerProject: registerProject2 } = await import("./registry-
|
|
2598
|
+
const { registerProject: registerProject2 } = await import("./registry-yvbxcaq6.js");
|
|
2598
2599
|
await mutateConfig((globalConfig) => {
|
|
2599
2600
|
registerProject2(globalConfig, process.cwd(), projectName);
|
|
2600
2601
|
});
|
|
@@ -2625,7 +2626,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2625
2626
|
process.exit(1);
|
|
2626
2627
|
}
|
|
2627
2628
|
const entry = globalConfig.projects[resolvedPath];
|
|
2628
|
-
const { unregisterProject: unregisterProject2 } = await import("./registry-
|
|
2629
|
+
const { unregisterProject: unregisterProject2 } = await import("./registry-yvbxcaq6.js");
|
|
2629
2630
|
await mutateConfig((freshConfig) => {
|
|
2630
2631
|
unregisterProject2(freshConfig, resolvedPath);
|
|
2631
2632
|
});
|
|
@@ -2639,7 +2640,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2639
2640
|
function registerPluginCommands(program, _cliPath) {
|
|
2640
2641
|
const plugin = program.command("plugin").description("Manage plugins");
|
|
2641
2642
|
plugin.command("inspect <source>").description("Inspect plugin manifest and components").action(async (source) => {
|
|
2642
|
-
const { inspectPlugin } = await import("./plugin-manager-
|
|
2643
|
+
const { inspectPlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2643
2644
|
try {
|
|
2644
2645
|
const info = await inspectPlugin(source);
|
|
2645
2646
|
process.stdout.write(JSON.stringify(info, null, 2) + `
|
|
@@ -2650,13 +2651,43 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2650
2651
|
process.exit(1);
|
|
2651
2652
|
}
|
|
2652
2653
|
});
|
|
2653
|
-
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) => {
|
|
2654
|
-
const { installPlugin } = await import("./plugin-manager-0ygz96m9.js");
|
|
2654
|
+
plugin.command("install <source>").option("--name <name>", "Plugin name").option("--no-enable", "Don't enable plugin after install").option("-y, --yes", "Confirm marketplace plugin installation").description("Install plugin").action(async (source, options) => {
|
|
2655
2655
|
try {
|
|
2656
|
-
const
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2656
|
+
const config = loadConfig();
|
|
2657
|
+
const marketplaceName = source.includes("@") ? source.slice(source.lastIndexOf("@") + 1) : "";
|
|
2658
|
+
let p;
|
|
2659
|
+
if (config.marketplaces?.[marketplaceName]) {
|
|
2660
|
+
const { inspectMarketplacePlugin, installMarketplacePlugin } = await import("./marketplace-pwabb3ea.js");
|
|
2661
|
+
const detail = await inspectMarketplacePlugin(source);
|
|
2662
|
+
process.stdout.write(`${detail.displayName} (${source})
|
|
2663
|
+
`);
|
|
2664
|
+
process.stdout.write(`Will install: ${detail.supportedCapabilities.join(", ") || "nothing compatible"}
|
|
2665
|
+
`);
|
|
2666
|
+
if (detail.unsupportedCapabilities.length)
|
|
2667
|
+
process.stdout.write(`Unsupported: ${detail.unsupportedCapabilities.join(", ")}
|
|
2668
|
+
`);
|
|
2669
|
+
if (!detail.compatible)
|
|
2670
|
+
throw new Error(`Plugin ${source} has no mcpx-compatible capabilities`);
|
|
2671
|
+
if (!options.yes) {
|
|
2672
|
+
if (!process.stdin.isTTY || !process.stdout.isTTY)
|
|
2673
|
+
throw new Error("Marketplace installation requires --yes in non-interactive mode");
|
|
2674
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
2675
|
+
try {
|
|
2676
|
+
const answer = await promptLine(rl, "Install this plugin? (y/N): ");
|
|
2677
|
+
if (answer.trim().toLowerCase() !== "y" && answer.trim().toLowerCase() !== "yes") {
|
|
2678
|
+
process.stdout.write(`Installation cancelled.
|
|
2679
|
+
`);
|
|
2680
|
+
return;
|
|
2681
|
+
}
|
|
2682
|
+
} finally {
|
|
2683
|
+
rl.close();
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
p = await installMarketplacePlugin(source);
|
|
2687
|
+
} else {
|
|
2688
|
+
const { installPlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2689
|
+
p = await installPlugin(source, { name: options.name, enabled: options.enable !== false });
|
|
2690
|
+
}
|
|
2660
2691
|
process.stdout.write(`Plugin installed: ${p.id}
|
|
2661
2692
|
`);
|
|
2662
2693
|
} catch (e) {
|
|
@@ -2665,8 +2696,89 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2665
2696
|
process.exit(1);
|
|
2666
2697
|
}
|
|
2667
2698
|
});
|
|
2699
|
+
const marketplace = plugin.command("marketplace").description("Manage plugin marketplaces");
|
|
2700
|
+
marketplace.command("list").description("List configured plugin marketplaces").action(async () => {
|
|
2701
|
+
const { listMarketplaces } = await import("./marketplace-pwabb3ea.js");
|
|
2702
|
+
process.stdout.write(JSON.stringify(await listMarketplaces(), null, 2) + `
|
|
2703
|
+
`);
|
|
2704
|
+
});
|
|
2705
|
+
marketplace.command("add <source>").option("--manifest <path>", "Marketplace manifest path inside the source").description("Add a Claude or Codex plugin marketplace").action(async (source, options) => {
|
|
2706
|
+
try {
|
|
2707
|
+
const { addMarketplace } = await import("./marketplace-pwabb3ea.js");
|
|
2708
|
+
const added = await addMarketplace(source, options.manifest);
|
|
2709
|
+
process.stdout.write(`Marketplace added: ${added.name}
|
|
2710
|
+
`);
|
|
2711
|
+
} catch (error) {
|
|
2712
|
+
process.stderr.write(`Error: ${error instanceof Error ? error.message : String(error)}
|
|
2713
|
+
`);
|
|
2714
|
+
process.exitCode = 1;
|
|
2715
|
+
}
|
|
2716
|
+
});
|
|
2717
|
+
marketplace.command("update [name]").description("Refresh one marketplace, or every configured marketplace").action(async (name) => {
|
|
2718
|
+
try {
|
|
2719
|
+
const { listMarketplaces, refreshMarketplaceWithPlugins } = await import("./marketplace-pwabb3ea.js");
|
|
2720
|
+
const names = name ? [name] : (await listMarketplaces()).map((entry) => entry.name);
|
|
2721
|
+
for (const marketplaceName of names) {
|
|
2722
|
+
const result = await refreshMarketplaceWithPlugins(marketplaceName);
|
|
2723
|
+
process.stdout.write(`Marketplace updated: ${marketplaceName} (${result.updated.length} plugin update(s))
|
|
2724
|
+
`);
|
|
2725
|
+
for (const error of result.errors)
|
|
2726
|
+
process.stderr.write(`Warning: ${error}
|
|
2727
|
+
`);
|
|
2728
|
+
}
|
|
2729
|
+
} catch (error) {
|
|
2730
|
+
process.stderr.write(`Error: ${error instanceof Error ? error.message : String(error)}
|
|
2731
|
+
`);
|
|
2732
|
+
process.exitCode = 1;
|
|
2733
|
+
}
|
|
2734
|
+
});
|
|
2735
|
+
marketplace.command("remove <name>").option("-y, --yes", "Confirm removal and uninstall marketplace plugins").description("Remove a custom marketplace and its installed plugins").action(async (name, options) => {
|
|
2736
|
+
try {
|
|
2737
|
+
if (!options.yes) {
|
|
2738
|
+
if (!process.stdin.isTTY || !process.stdout.isTTY)
|
|
2739
|
+
throw new Error("Marketplace removal requires --yes in non-interactive mode");
|
|
2740
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
2741
|
+
try {
|
|
2742
|
+
const answer = await promptLine(rl, `Remove ${name} and uninstall its plugins? (y/N): `);
|
|
2743
|
+
if (!["y", "yes"].includes(answer.trim().toLowerCase()))
|
|
2744
|
+
return;
|
|
2745
|
+
} finally {
|
|
2746
|
+
rl.close();
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
const { removeMarketplace } = await import("./marketplace-pwabb3ea.js");
|
|
2750
|
+
await removeMarketplace(name);
|
|
2751
|
+
process.stdout.write(`Marketplace removed: ${name}
|
|
2752
|
+
`);
|
|
2753
|
+
} catch (error) {
|
|
2754
|
+
process.stderr.write(`Error: ${error instanceof Error ? error.message : String(error)}
|
|
2755
|
+
`);
|
|
2756
|
+
process.exitCode = 1;
|
|
2757
|
+
}
|
|
2758
|
+
});
|
|
2759
|
+
plugin.command("discover [query]").option("--marketplace <name>", "Filter by marketplace").option("--category <category>", "Filter by category").description("Browse available marketplace plugins").action(async (query, options) => {
|
|
2760
|
+
const { listMarketplacePlugins } = await import("./marketplace-pwabb3ea.js");
|
|
2761
|
+
let listings = await listMarketplacePlugins(query);
|
|
2762
|
+
if (options.marketplace)
|
|
2763
|
+
listings = listings.filter((entry) => entry.marketplace === options.marketplace);
|
|
2764
|
+
if (options.category)
|
|
2765
|
+
listings = listings.filter((entry) => entry.category?.toLowerCase() === options.category.toLowerCase());
|
|
2766
|
+
process.stdout.write(JSON.stringify(listings, null, 2) + `
|
|
2767
|
+
`);
|
|
2768
|
+
});
|
|
2769
|
+
plugin.command("details <plugin>").description("Inspect a plugin@marketplace listing").action(async (qualified) => {
|
|
2770
|
+
try {
|
|
2771
|
+
const { inspectMarketplacePlugin } = await import("./marketplace-pwabb3ea.js");
|
|
2772
|
+
process.stdout.write(JSON.stringify(await inspectMarketplacePlugin(qualified), null, 2) + `
|
|
2773
|
+
`);
|
|
2774
|
+
} catch (error) {
|
|
2775
|
+
process.stderr.write(`Error: ${error instanceof Error ? error.message : String(error)}
|
|
2776
|
+
`);
|
|
2777
|
+
process.exitCode = 1;
|
|
2778
|
+
}
|
|
2779
|
+
});
|
|
2668
2780
|
plugin.command("approve <name> <component>").description("Approve a plugin component (hooks, mcpServers)").action(async (name, component) => {
|
|
2669
|
-
const { approvePluginComponent } = await import("./plugin-manager-
|
|
2781
|
+
const { approvePluginComponent } = await import("./plugin-manager-19q55n69.js");
|
|
2670
2782
|
try {
|
|
2671
2783
|
await approvePluginComponent(name, component);
|
|
2672
2784
|
process.stdout.write(`Approved ${component} for plugin ${name}
|
|
@@ -2678,7 +2790,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2678
2790
|
}
|
|
2679
2791
|
});
|
|
2680
2792
|
plugin.command("prepare <name>").description("Install plugin dependencies").action(async (name) => {
|
|
2681
|
-
const { preparePlugin } = await import("./plugin-manager-
|
|
2793
|
+
const { preparePlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2682
2794
|
try {
|
|
2683
2795
|
await preparePlugin(name);
|
|
2684
2796
|
process.stdout.write(`Plugin ${name} prepared
|
|
@@ -2690,7 +2802,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2690
2802
|
}
|
|
2691
2803
|
});
|
|
2692
2804
|
plugin.command("update <name>").description("Update plugin to latest version").action(async (name) => {
|
|
2693
|
-
const { updatePlugin } = await import("./plugin-manager-
|
|
2805
|
+
const { updatePlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2694
2806
|
try {
|
|
2695
2807
|
const p = await updatePlugin(name);
|
|
2696
2808
|
process.stdout.write(`Plugin ${name} updated to ${p.version}
|
|
@@ -2702,7 +2814,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2702
2814
|
}
|
|
2703
2815
|
});
|
|
2704
2816
|
plugin.command("uninstall <name>").option("--keep-data", "Keep plugin data after uninstall").description("Uninstall plugin").action(async (name, options) => {
|
|
2705
|
-
const { uninstallPlugin } = await import("./plugin-manager-
|
|
2817
|
+
const { uninstallPlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2706
2818
|
try {
|
|
2707
2819
|
await uninstallPlugin(name, options.keepData || false);
|
|
2708
2820
|
process.stdout.write(`Plugin ${name} uninstalled
|
|
@@ -2716,13 +2828,13 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2716
2828
|
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) => {
|
|
2717
2829
|
try {
|
|
2718
2830
|
if (options.project) {
|
|
2719
|
-
const { setPluginProjectOverride } = await import("./plugin-manager-
|
|
2831
|
+
const { setPluginProjectOverride } = await import("./plugin-manager-19q55n69.js");
|
|
2720
2832
|
const resolvedPath = path.resolve(options.project);
|
|
2721
2833
|
await setPluginProjectOverride(name, resolvedPath, { enabled: true });
|
|
2722
2834
|
process.stdout.write(`Plugin ${name} enabled for project: ${resolvedPath}
|
|
2723
2835
|
`);
|
|
2724
2836
|
} else {
|
|
2725
|
-
const { enablePlugin } = await import("./plugin-manager-
|
|
2837
|
+
const { enablePlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2726
2838
|
await enablePlugin(name);
|
|
2727
2839
|
process.stdout.write(`Plugin ${name} enabled
|
|
2728
2840
|
`);
|
|
@@ -2736,13 +2848,13 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2736
2848
|
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) => {
|
|
2737
2849
|
try {
|
|
2738
2850
|
if (options.project) {
|
|
2739
|
-
const { setPluginProjectOverride } = await import("./plugin-manager-
|
|
2851
|
+
const { setPluginProjectOverride } = await import("./plugin-manager-19q55n69.js");
|
|
2740
2852
|
const resolvedPath = path.resolve(options.project);
|
|
2741
2853
|
await setPluginProjectOverride(name, resolvedPath, { enabled: false });
|
|
2742
2854
|
process.stdout.write(`Plugin ${name} disabled for project: ${resolvedPath}
|
|
2743
2855
|
`);
|
|
2744
2856
|
} else {
|
|
2745
|
-
const { disablePlugin } = await import("./plugin-manager-
|
|
2857
|
+
const { disablePlugin } = await import("./plugin-manager-19q55n69.js");
|
|
2746
2858
|
await disablePlugin(name);
|
|
2747
2859
|
process.stdout.write(`Plugin ${name} disabled
|
|
2748
2860
|
`);
|
|
@@ -2754,7 +2866,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2754
2866
|
}
|
|
2755
2867
|
});
|
|
2756
2868
|
plugin.command("status [name]").description("Show plugin status").action(async (name) => {
|
|
2757
|
-
const { getPluginStatus, listPlugins } = await import("./plugin-manager-
|
|
2869
|
+
const { getPluginStatus, listPlugins } = await import("./plugin-manager-19q55n69.js");
|
|
2758
2870
|
try {
|
|
2759
2871
|
if (name) {
|
|
2760
2872
|
const p = await getPluginStatus(name);
|
|
@@ -2779,7 +2891,7 @@ function registerPluginCommands(program, _cliPath) {
|
|
|
2779
2891
|
}
|
|
2780
2892
|
function registerPluginHostCommand(program) {
|
|
2781
2893
|
program.command("plugin-host <plugin> <server>").description("Run a plugin MCP server under mcpx policy enforcement").action(async (plugin, server) => {
|
|
2782
|
-
const { runPluginHost } = await import("./plugin-host-
|
|
2894
|
+
const { runPluginHost } = await import("./plugin-host-9xcpnehq.js");
|
|
2783
2895
|
runPluginHost(plugin, server);
|
|
2784
2896
|
});
|
|
2785
2897
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAA6C,KAAK,UAAU,EAAwB,KAAK,kBAAkB,EAAuE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAA6C,KAAK,UAAU,EAAwB,KAAK,kBAAkB,EAAuE,MAAM,aAAa,CAAC;AAM7M,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;gBAEf,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,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":"","sources":["../../src/core/daemon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../src/core/daemon.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAkDD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAgCvI;AA6BD,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,YAAY,CAsBhE;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA6D1H;AAED,wBAAgB,UAAU,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA+ClE;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAG5H;AAED,wBAAgB,cAAc,CAAC,QAAQ,SAAM,GAAG,MAAM,CAQrD;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5G"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -26,12 +26,14 @@ export { syncPluginsToClient, prunePluginProjections, pruneAllPluginProjections
|
|
|
26
26
|
export { PluginLifecycle } from "./plugin-lifecycle.js";
|
|
27
27
|
export { parseSource } from "./plugin-source.js";
|
|
28
28
|
export { readManifest, discoverComponents, hasManifest } from "./plugin-parse.js";
|
|
29
|
-
export {
|
|
29
|
+
export { addMarketplace, removeMarketplace, refreshMarketplace, refreshMarketplaceWithPlugins, setMarketplaceAutoUpdate, listMarketplaces, listMarketplacePlugins, inspectMarketplacePlugin, installMarketplacePlugin, updateMarketplaceInstalledPlugin, } from "./marketplace.js";
|
|
30
|
+
export { startMarketplaceAutoUpdater, runMarketplaceAutoUpdate } from "./marketplace-updater.js";
|
|
31
|
+
export { inspectPlugin, installPlugin, preparePlugin, updatePlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, pluginConfigSet, pluginSync, resolvePluginId } from "./plugin-manager.js";
|
|
30
32
|
export { getConfigPath, getManagedIndexPath } from "./paths.js";
|
|
31
33
|
export { checkForUpdates, getStagedUpdate, getStagedCliPath, clearStagedUpdate, compareVersions, shouldUseStagedCli } from "./update.js";
|
|
32
34
|
export type { UpdateStatus, StagedUpdateInfo } from "./update.js";
|
|
33
35
|
export { startBackgroundUpdateCheck, performUpdate, performRollback } from "./update-manager.js";
|
|
34
36
|
export { fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec } from "./registry-client.js";
|
|
35
37
|
export type { RequiredInput } from "./registry-client.js";
|
|
36
|
-
export type { McpxConfig, ClientId, ClientStatus, UpstreamServerSpec, HttpServerSpec, StdioServerSpec, GatewayConfig, ClientSyncState, ManagedIndex, ManagedEntry, ManagedClientState, ClientImportCandidate, ClientImportScanResult, ClientImportSkippedEntry, SyncImportReport, SyncImportedEntry, SyncDuplicateImportEntry, SyncImportConflictEntry, SyncImportErrorEntry, SyncResult, ManagedGatewayEntry, ProjectConfig, ProjectScope, ManagedPlugin, PluginManifest, PluginComponent, PluginSource, DiscoveredComponents, DiscoveredComponent, PluginSyncInput, PluginSyncResult, Skill } from "../types.js";
|
|
38
|
+
export type { McpxConfig, ClientId, ClientStatus, UpstreamServerSpec, HttpServerSpec, StdioServerSpec, GatewayConfig, ClientSyncState, ManagedIndex, ManagedEntry, ManagedClientState, ClientImportCandidate, ClientImportScanResult, ClientImportSkippedEntry, SyncImportReport, SyncImportedEntry, SyncDuplicateImportEntry, SyncImportConflictEntry, SyncImportErrorEntry, SyncResult, ManagedGatewayEntry, ProjectConfig, ProjectScope, ManagedPlugin, ManagedMarketplace, MarketplaceListing, MarketplacePluginDetail, MarketplaceFormat, PluginManifest, PluginComponent, PluginSource, DiscoveredComponents, DiscoveredComponent, PluginSyncInput, PluginSyncResult, Skill } from "../types.js";
|
|
37
39
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpK,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,EAAE,aAAa,E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CAAC;AAG1D,YAAY,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,KAAK,EACN,MAAM,aAAa,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -26,55 +26,68 @@ import {
|
|
|
26
26
|
resolveAuthTarget,
|
|
27
27
|
restartDaemon,
|
|
28
28
|
runDaemonForeground,
|
|
29
|
+
runMarketplaceAutoUpdate,
|
|
29
30
|
runOAuthLogin,
|
|
30
31
|
secretRefName,
|
|
31
32
|
selectBestPackage,
|
|
32
33
|
shouldUseStagedCli,
|
|
33
34
|
startBackgroundUpdateCheck,
|
|
34
35
|
startDaemon,
|
|
36
|
+
startMarketplaceAutoUpdater,
|
|
35
37
|
stopDaemon,
|
|
36
38
|
toSecretRef
|
|
37
|
-
} from "../cli-
|
|
39
|
+
} from "../cli-7x2n23em.js";
|
|
40
|
+
import {
|
|
41
|
+
addMarketplace,
|
|
42
|
+
inspectMarketplacePlugin,
|
|
43
|
+
installMarketplacePlugin,
|
|
44
|
+
listMarketplacePlugins,
|
|
45
|
+
listMarketplaces,
|
|
46
|
+
refreshMarketplace,
|
|
47
|
+
refreshMarketplaceWithPlugins,
|
|
48
|
+
removeMarketplace,
|
|
49
|
+
setMarketplaceAutoUpdate,
|
|
50
|
+
updateMarketplaceInstalledPlugin
|
|
51
|
+
} from "../cli-ct7asw78.js";
|
|
38
52
|
import {
|
|
39
53
|
PluginCache,
|
|
40
54
|
PluginDataManager,
|
|
41
55
|
PluginLifecycle,
|
|
42
56
|
PluginManager,
|
|
43
57
|
approvePluginComponent,
|
|
58
|
+
deleteSkill,
|
|
44
59
|
disablePlugin,
|
|
45
60
|
discoverComponents,
|
|
46
61
|
enablePlugin,
|
|
62
|
+
getGatewayUrl,
|
|
47
63
|
getPluginStatus,
|
|
64
|
+
getSkill,
|
|
48
65
|
hasManifest,
|
|
49
66
|
inspectPlugin,
|
|
50
67
|
installPlugin,
|
|
51
68
|
listPlugins,
|
|
52
|
-
parseSource,
|
|
53
|
-
pluginConfigSet,
|
|
54
|
-
pluginSync,
|
|
55
|
-
preparePlugin,
|
|
56
|
-
readManifest,
|
|
57
|
-
resolvePluginId,
|
|
58
|
-
setPluginProjectOverride,
|
|
59
|
-
uninstallPlugin,
|
|
60
|
-
updatePlugin
|
|
61
|
-
} from "../cli-tdsve98z.js";
|
|
62
|
-
import {
|
|
63
|
-
deleteSkill,
|
|
64
|
-
getGatewayUrl,
|
|
65
|
-
getSkill,
|
|
66
69
|
listSkills,
|
|
67
70
|
loadManagedIndex,
|
|
68
71
|
mutateActiveConfig,
|
|
69
72
|
mutateConfig,
|
|
70
73
|
mutateProjectConfig,
|
|
74
|
+
parseSource,
|
|
71
75
|
persistSyncState,
|
|
76
|
+
pluginConfigSet,
|
|
77
|
+
pluginSync,
|
|
78
|
+
preparePlugin,
|
|
72
79
|
pruneAllPluginProjections,
|
|
73
80
|
prunePluginProjections,
|
|
81
|
+
readManifest,
|
|
82
|
+
resetPluginProjectOverride,
|
|
83
|
+
resolvePluginId,
|
|
74
84
|
saveSkill,
|
|
85
|
+
setPluginProjectOverride,
|
|
75
86
|
syncAllClients,
|
|
76
|
-
syncPluginsToClient
|
|
77
|
-
|
|
87
|
+
syncPluginsToClient,
|
|
88
|
+
uninstallPlugin,
|
|
89
|
+
updatePlugin
|
|
90
|
+
} from "../cli-b0xrqsjc.js";
|
|
78
91
|
import {
|
|
79
92
|
ConfigLoadError,
|
|
80
93
|
defaultConfig,
|
|
@@ -86,7 +99,7 @@ import {
|
|
|
86
99
|
saveConfig,
|
|
87
100
|
saveProjectConfig,
|
|
88
101
|
tokenizeCommandLine
|
|
89
|
-
} from "../cli-
|
|
102
|
+
} from "../cli-dy7x0zrg.js";
|
|
90
103
|
import {
|
|
91
104
|
SecretNotFoundError,
|
|
92
105
|
SecretsManager,
|
|
@@ -101,15 +114,16 @@ import {
|
|
|
101
114
|
setServerEnabled,
|
|
102
115
|
unregisterProject,
|
|
103
116
|
updateServer
|
|
104
|
-
} from "../cli-
|
|
117
|
+
} from "../cli-1ewrsfj4.js";
|
|
105
118
|
import {
|
|
106
119
|
getConfigPath,
|
|
107
120
|
getManagedIndexPath
|
|
108
|
-
} from "../cli-
|
|
121
|
+
} from "../cli-28g7x9rn.js";
|
|
109
122
|
import"../cli-s4gspqdf.js";
|
|
110
123
|
export {
|
|
111
124
|
updateServer,
|
|
112
125
|
updatePlugin,
|
|
126
|
+
updateMarketplaceInstalledPlugin,
|
|
113
127
|
unregisterProject,
|
|
114
128
|
uninstallPlugin,
|
|
115
129
|
tokenizeCommandLine,
|
|
@@ -117,26 +131,33 @@ export {
|
|
|
117
131
|
syncPluginsToClient,
|
|
118
132
|
syncAllClients,
|
|
119
133
|
stopDaemon,
|
|
134
|
+
startMarketplaceAutoUpdater,
|
|
120
135
|
startDaemon,
|
|
121
136
|
startBackgroundUpdateCheck,
|
|
122
137
|
shouldUseStagedCli,
|
|
123
138
|
setServerEnabled,
|
|
124
139
|
setProjectServerEnabled,
|
|
125
140
|
setPluginProjectOverride,
|
|
141
|
+
setMarketplaceAutoUpdate,
|
|
126
142
|
selectBestPackage,
|
|
127
143
|
secretRefName,
|
|
128
144
|
saveSkill,
|
|
129
145
|
saveProjectConfig,
|
|
130
146
|
saveConfig,
|
|
131
147
|
runOAuthLogin,
|
|
148
|
+
runMarketplaceAutoUpdate,
|
|
132
149
|
runDaemonForeground,
|
|
133
150
|
rotateGatewayToken,
|
|
134
151
|
restartDaemon,
|
|
135
152
|
resolvePluginId,
|
|
136
153
|
resolveAuthTarget,
|
|
154
|
+
resetPluginProjectOverride,
|
|
137
155
|
removeServer,
|
|
156
|
+
removeMarketplace,
|
|
138
157
|
removeAuthReference,
|
|
139
158
|
registerProject,
|
|
159
|
+
refreshMarketplaceWithPlugins,
|
|
160
|
+
refreshMarketplace,
|
|
140
161
|
readManifest,
|
|
141
162
|
readDaemonLogs,
|
|
142
163
|
prunePluginProjections,
|
|
@@ -163,10 +184,14 @@ export {
|
|
|
163
184
|
loadConfig,
|
|
164
185
|
listSkills,
|
|
165
186
|
listPlugins,
|
|
187
|
+
listMarketplaces,
|
|
188
|
+
listMarketplacePlugins,
|
|
166
189
|
listAuthBindings,
|
|
167
190
|
isOAuthReference,
|
|
168
191
|
installPlugin,
|
|
192
|
+
installMarketplacePlugin,
|
|
169
193
|
inspectPlugin,
|
|
194
|
+
inspectMarketplacePlugin,
|
|
170
195
|
hasManifest,
|
|
171
196
|
getStagedUpdate,
|
|
172
197
|
getStagedCliPath,
|
|
@@ -195,6 +220,7 @@ export {
|
|
|
195
220
|
approvePluginComponent,
|
|
196
221
|
applyAuthReference,
|
|
197
222
|
addServer,
|
|
223
|
+
addMarketplace,
|
|
198
224
|
UpstreamError,
|
|
199
225
|
SecretsManager,
|
|
200
226
|
SecretNotFoundError,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ManagedMarketplace } from "../types.js";
|
|
2
|
+
export declare const DEFAULT_MARKETPLACES: Record<string, ManagedMarketplace>;
|
|
3
|
+
export declare function ensureDefaultMarketplaces(marketplaces: Record<string, ManagedMarketplace> | undefined): Record<string, ManagedMarketplace>;
|
|
4
|
+
//# sourceMappingURL=marketplace-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-defaults.d.ts","sourceRoot":"","sources":["../../src/core/marketplace-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAyBnE,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,GAC3D,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CASpC"}
|