@axiom-lattice/gateway 4.8.2 → 4.8.3
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/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4499,17 +4499,7 @@ async function importApply(request, reply) {
|
|
|
4499
4499
|
import { serializePluginMeta } from "@axiom-lattice/core";
|
|
4500
4500
|
|
|
4501
4501
|
// src/services/plugins/tenantPluginResolver.ts
|
|
4502
|
-
import {
|
|
4503
|
-
async function listTenantPlugins(tenantId) {
|
|
4504
|
-
let tenantPlugins = [];
|
|
4505
|
-
try {
|
|
4506
|
-
tenantPlugins = (await getSandboxPluginCatalog2().ensureLoaded(tenantId)).plugins;
|
|
4507
|
-
} catch {
|
|
4508
|
-
tenantPlugins = [];
|
|
4509
|
-
}
|
|
4510
|
-
const globalPlugins = PluginRegistry2.list().map((type) => PluginRegistry2.get(type)).filter((p) => Boolean(p));
|
|
4511
|
-
return mergePluginSources(globalPlugins, tenantPlugins);
|
|
4512
|
-
}
|
|
4502
|
+
import { listTenantPlugins } from "@axiom-lattice/core";
|
|
4513
4503
|
async function resolveTenantPluginByType(tenantId, type) {
|
|
4514
4504
|
return (await listTenantPlugins(tenantId)).find((p) => p.meta.type === type);
|
|
4515
4505
|
}
|
|
@@ -8302,7 +8292,7 @@ import {
|
|
|
8302
8292
|
parseMcpUiRef
|
|
8303
8293
|
} from "@axiom-lattice/protocols";
|
|
8304
8294
|
import {
|
|
8305
|
-
getSandboxPluginCatalog as
|
|
8295
|
+
getSandboxPluginCatalog as getSandboxPluginCatalog2,
|
|
8306
8296
|
mcpManager as mcpManager2
|
|
8307
8297
|
} from "@axiom-lattice/core";
|
|
8308
8298
|
|
|
@@ -8668,9 +8658,9 @@ function createDefaultPluginBackend() {
|
|
|
8668
8658
|
return {
|
|
8669
8659
|
resolvePlugin: (tenantId, type) => resolveTenantPluginByType(tenantId, type),
|
|
8670
8660
|
catalog: {
|
|
8671
|
-
readPluginFile: (tenantId, pluginType, relPath) =>
|
|
8672
|
-
getValidatedManifest: (tenantId, pluginType) =>
|
|
8673
|
-
getExecutor: () =>
|
|
8661
|
+
readPluginFile: (tenantId, pluginType, relPath) => getSandboxPluginCatalog2().readPluginFile(tenantId, pluginType, relPath),
|
|
8662
|
+
getValidatedManifest: (tenantId, pluginType) => getSandboxPluginCatalog2().getValidatedManifest(tenantId, pluginType),
|
|
8663
|
+
getExecutor: () => getSandboxPluginCatalog2().getExecutor()
|
|
8674
8664
|
}
|
|
8675
8665
|
};
|
|
8676
8666
|
}
|
|
@@ -25122,7 +25112,7 @@ import {
|
|
|
25122
25112
|
agentLatticeManager as agentLatticeManager5,
|
|
25123
25113
|
configurePluginCatalogSync,
|
|
25124
25114
|
PLUGIN_CATALOG_CHANGED_TOPIC,
|
|
25125
|
-
getSandboxPluginCatalog as
|
|
25115
|
+
getSandboxPluginCatalog as getSandboxPluginCatalog3
|
|
25126
25116
|
} from "@axiom-lattice/core";
|
|
25127
25117
|
|
|
25128
25118
|
// src/channels/ChannelInfrastructure.ts
|
|
@@ -26345,7 +26335,7 @@ var start = async (config) => {
|
|
|
26345
26335
|
}),
|
|
26346
26336
|
[PLUGIN_CATALOG_CHANGED_TOPIC]: async (payload) => {
|
|
26347
26337
|
const tenantId = payload?.tenantId;
|
|
26348
|
-
if (typeof tenantId === "string" && tenantId.length > 0)
|
|
26338
|
+
if (typeof tenantId === "string" && tenantId.length > 0) getSandboxPluginCatalog3().invalidate(tenantId);
|
|
26349
26339
|
}
|
|
26350
26340
|
},
|
|
26351
26341
|
log: logger6
|