@axiom-lattice/gateway 4.8.1 → 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/embed/{embed-page-AgentDetailSideApp-R2RYOFBU.js → embed-page-AgentDetailSideApp-MVSXAG5S.js} +1 -1
- package/dist/embed/{embed-page-AgentGovernanceWorkbench-DYEK37IB.js → embed-page-AgentGovernanceWorkbench-ZEVAVRIQ.js} +1 -1
- package/dist/embed/{embed-page-MessageGraph-GQKF6ERQ.js → embed-page-MessageGraph-CPZJIKOD.js} +1 -1
- package/dist/embed/{embed-page-ReactChart-2J36M2FN.js → embed-page-ReactChart-7NQMTFJE.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-IEKDM5AK.js → embed-page-TasksSideApp-CY6NI4DD.js} +1 -1
- package/dist/embed/{embed-page-TeamWorkspace-7IBW4J2Z.js → embed-page-TeamWorkspace-7GQCMJWF.js} +1 -1
- package/dist/embed/{embed-page-TopologyRuntimeView-TVYZRWMY.js → embed-page-TopologyRuntimeView-5DJPLCLQ.js} +1 -1
- package/dist/embed/{embed-page-WorkflowAutomationView-SS6TZVER.js → embed-page-WorkflowAutomationView-PDVXZXEF.js} +1 -1
- package/dist/embed/{embed-page-chunk-CFUFMRE6.js → embed-page-chunk-3SV3E6X5.js} +180 -179
- package/dist/embed/{embed-page-chunk-FRXM6EXJ.js → embed-page-chunk-BKCIU75D.js} +1 -1
- package/dist/embed/{embed-page-chunk-TJGWHX6G.js → embed-page-chunk-PZCET7LJ.js} +1 -1
- package/dist/embed/{embed-page-chunk-SG4KQEFI.js → embed-page-chunk-SFHRRNYQ.js} +1 -1
- package/dist/embed/{embed-page-chunk-626XAYL6.js → embed-page-chunk-ULBEL4OA.js} +1 -1
- package/dist/embed/{embed-page-chunk-NCP3KPCF.js → embed-page-chunk-UWL37DAK.js} +1 -1
- package/dist/embed/embed-page.js +1 -1
- package/dist/index.js +426 -439
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
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
|
}
|
|
@@ -7656,6 +7646,15 @@ function registerMetricsServerConfigRoutes(app2) {
|
|
|
7656
7646
|
// src/controllers/connections.ts
|
|
7657
7647
|
import { ConnectionRegistry } from "@axiom-lattice/core";
|
|
7658
7648
|
import { z as z2 } from "zod";
|
|
7649
|
+
|
|
7650
|
+
// src/services/plugins/connectionSecretFields.ts
|
|
7651
|
+
import { connectionSecretFields } from "@axiom-lattice/core";
|
|
7652
|
+
function secretFieldsForConnection(plugin) {
|
|
7653
|
+
const keys2 = connectionSecretFields(plugin);
|
|
7654
|
+
return keys2.length > 0 ? keys2 : void 0;
|
|
7655
|
+
}
|
|
7656
|
+
|
|
7657
|
+
// src/controllers/connections.ts
|
|
7659
7658
|
var createBody = z2.object({
|
|
7660
7659
|
type: z2.string().min(1),
|
|
7661
7660
|
key: z2.string().min(1),
|
|
@@ -7677,25 +7676,6 @@ function getTenant(request) {
|
|
|
7677
7676
|
async function getTenantPlugin(request, type) {
|
|
7678
7677
|
return resolveTenantPluginByType(getTenant(request), type);
|
|
7679
7678
|
}
|
|
7680
|
-
function maskSecrets(config) {
|
|
7681
|
-
const sensitive = /* @__PURE__ */ new Set([
|
|
7682
|
-
"password",
|
|
7683
|
-
"secret",
|
|
7684
|
-
"token",
|
|
7685
|
-
"apikey",
|
|
7686
|
-
"api_key",
|
|
7687
|
-
"session",
|
|
7688
|
-
"privatekey",
|
|
7689
|
-
"private_key",
|
|
7690
|
-
"accesskey",
|
|
7691
|
-
"access_key"
|
|
7692
|
-
]);
|
|
7693
|
-
const out = {};
|
|
7694
|
-
for (const [k, v] of Object.entries(config)) {
|
|
7695
|
-
out[k] = sensitive.has(k.toLowerCase()) ? "********" : v;
|
|
7696
|
-
}
|
|
7697
|
-
return out;
|
|
7698
|
-
}
|
|
7699
7679
|
async function resolveConfig(type, body, tenantId) {
|
|
7700
7680
|
if (body.key) {
|
|
7701
7681
|
const entry = await ConnectionRegistry.get(type, body.key, tenantId);
|
|
@@ -7712,22 +7692,24 @@ function connectionRoutes(fastify2) {
|
|
|
7712
7692
|
const entries = await ConnectionRegistry.list(type, getTenant(request));
|
|
7713
7693
|
return reply.send({
|
|
7714
7694
|
success: true,
|
|
7715
|
-
data: { records: entries
|
|
7695
|
+
data: { records: entries, total: entries.length }
|
|
7716
7696
|
});
|
|
7717
7697
|
});
|
|
7718
7698
|
fastify2.post("/api/connections", async (request, reply) => {
|
|
7719
7699
|
const parsed = createBody.parse(request.body);
|
|
7700
|
+
const plugin = await getTenantPlugin(request, parsed.type);
|
|
7720
7701
|
const entry = await ConnectionRegistry.create({
|
|
7721
7702
|
tenantId: getTenant(request),
|
|
7722
7703
|
type: parsed.type,
|
|
7723
7704
|
key: parsed.key,
|
|
7724
7705
|
name: parsed.name,
|
|
7725
7706
|
description: parsed.description,
|
|
7726
|
-
config: parsed.config
|
|
7707
|
+
config: parsed.config,
|
|
7708
|
+
secretFields: secretFieldsForConnection(plugin)
|
|
7727
7709
|
});
|
|
7728
7710
|
return reply.status(201).send({
|
|
7729
7711
|
success: true,
|
|
7730
|
-
data:
|
|
7712
|
+
data: entry
|
|
7731
7713
|
});
|
|
7732
7714
|
});
|
|
7733
7715
|
fastify2.put("/api/connections/:key", async (request, reply) => {
|
|
@@ -7738,16 +7720,18 @@ function connectionRoutes(fastify2) {
|
|
|
7738
7720
|
const tenantId = getTenant(request);
|
|
7739
7721
|
const existing = await ConnectionRegistry.get(type, key, tenantId);
|
|
7740
7722
|
if (!existing) return reply.status(404).send({ error: "not found" });
|
|
7723
|
+
const plugin = await getTenantPlugin(request, type);
|
|
7741
7724
|
const updates = {};
|
|
7742
7725
|
if (body.name !== void 0) updates.name = body.name;
|
|
7743
7726
|
if (body.description !== void 0) updates.description = body.description;
|
|
7744
7727
|
if (body.config) {
|
|
7745
7728
|
updates.config = { ...existing.config, ...body.config };
|
|
7729
|
+
updates.secretFields = secretFieldsForConnection(plugin);
|
|
7746
7730
|
}
|
|
7747
7731
|
const entry = await ConnectionRegistry.update(tenantId, type, key, updates);
|
|
7748
7732
|
return reply.send({
|
|
7749
7733
|
success: true,
|
|
7750
|
-
data:
|
|
7734
|
+
data: entry
|
|
7751
7735
|
});
|
|
7752
7736
|
});
|
|
7753
7737
|
fastify2.delete("/api/connections/:key", async (request, reply) => {
|
|
@@ -8308,7 +8292,7 @@ import {
|
|
|
8308
8292
|
parseMcpUiRef
|
|
8309
8293
|
} from "@axiom-lattice/protocols";
|
|
8310
8294
|
import {
|
|
8311
|
-
getSandboxPluginCatalog as
|
|
8295
|
+
getSandboxPluginCatalog as getSandboxPluginCatalog2,
|
|
8312
8296
|
mcpManager as mcpManager2
|
|
8313
8297
|
} from "@axiom-lattice/core";
|
|
8314
8298
|
|
|
@@ -8674,9 +8658,9 @@ function createDefaultPluginBackend() {
|
|
|
8674
8658
|
return {
|
|
8675
8659
|
resolvePlugin: (tenantId, type) => resolveTenantPluginByType(tenantId, type),
|
|
8676
8660
|
catalog: {
|
|
8677
|
-
readPluginFile: (tenantId, pluginType, relPath) =>
|
|
8678
|
-
getValidatedManifest: (tenantId, pluginType) =>
|
|
8679
|
-
getExecutor: () =>
|
|
8661
|
+
readPluginFile: (tenantId, pluginType, relPath) => getSandboxPluginCatalog2().readPluginFile(tenantId, pluginType, relPath),
|
|
8662
|
+
getValidatedManifest: (tenantId, pluginType) => getSandboxPluginCatalog2().getValidatedManifest(tenantId, pluginType),
|
|
8663
|
+
getExecutor: () => getSandboxPluginCatalog2().getExecutor()
|
|
8680
8664
|
}
|
|
8681
8665
|
};
|
|
8682
8666
|
}
|
|
@@ -23900,7 +23884,8 @@ var connectionRegistration = {
|
|
|
23900
23884
|
key: c2.key,
|
|
23901
23885
|
name: c2.name,
|
|
23902
23886
|
description: c2.description,
|
|
23903
|
-
config: c2.config
|
|
23887
|
+
config: c2.config,
|
|
23888
|
+
secretFields: c2.secretFields
|
|
23904
23889
|
}
|
|
23905
23890
|
}));
|
|
23906
23891
|
},
|
|
@@ -23944,13 +23929,15 @@ var connectionRegistration = {
|
|
|
23944
23929
|
} catch {
|
|
23945
23930
|
}
|
|
23946
23931
|
}
|
|
23932
|
+
const secretFields = Array.isArray(d.secretFields) ? d.secretFields : secretFieldsForConnection(await resolveTenantPluginByType(tenantId, type));
|
|
23947
23933
|
await store.create({
|
|
23948
23934
|
tenantId,
|
|
23949
23935
|
type,
|
|
23950
23936
|
key,
|
|
23951
23937
|
name: d.name,
|
|
23952
23938
|
description: d.description,
|
|
23953
|
-
config: d.config
|
|
23939
|
+
config: d.config,
|
|
23940
|
+
secretFields
|
|
23954
23941
|
});
|
|
23955
23942
|
return { newId: void 0 };
|
|
23956
23943
|
}
|
|
@@ -25125,7 +25112,7 @@ import {
|
|
|
25125
25112
|
agentLatticeManager as agentLatticeManager5,
|
|
25126
25113
|
configurePluginCatalogSync,
|
|
25127
25114
|
PLUGIN_CATALOG_CHANGED_TOPIC,
|
|
25128
|
-
getSandboxPluginCatalog as
|
|
25115
|
+
getSandboxPluginCatalog as getSandboxPluginCatalog3
|
|
25129
25116
|
} from "@axiom-lattice/core";
|
|
25130
25117
|
|
|
25131
25118
|
// src/channels/ChannelInfrastructure.ts
|
|
@@ -26348,7 +26335,7 @@ var start = async (config) => {
|
|
|
26348
26335
|
}),
|
|
26349
26336
|
[PLUGIN_CATALOG_CHANGED_TOPIC]: async (payload) => {
|
|
26350
26337
|
const tenantId = payload?.tenantId;
|
|
26351
|
-
if (typeof tenantId === "string" && tenantId.length > 0)
|
|
26338
|
+
if (typeof tenantId === "string" && tenantId.length > 0) getSandboxPluginCatalog3().invalidate(tenantId);
|
|
26352
26339
|
}
|
|
26353
26340
|
},
|
|
26354
26341
|
log: logger6
|