mulesoft-anypoint-cli-agent-fabric-plugin 1.3.0 → 1.3.1-beta
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/README.md +77 -42
- package/bin/run +6 -0
- package/dist/commands/agent-network/project/agent-console.d.ts +16 -0
- package/dist/commands/agent-network/project/agent-console.js +175 -0
- package/dist/commands/agent-network/project/agent-console.js.map +1 -0
- package/dist/commands/agent-network/project/broker/create.d.ts +10 -0
- package/dist/commands/agent-network/project/broker/create.js +192 -0
- package/dist/commands/agent-network/project/broker/create.js.map +1 -0
- package/dist/commands/agent-network/project/create.d.ts +12 -0
- package/dist/commands/agent-network/project/create.js +48 -11
- package/dist/commands/agent-network/project/create.js.map +1 -1
- package/dist/commands/agent-network/project/deploy.d.ts +24 -14
- package/dist/commands/agent-network/project/deploy.js +230 -178
- package/dist/commands/agent-network/project/deploy.js.map +1 -1
- package/dist/commands/agent-network/project/export-logs.d.ts +11 -0
- package/dist/commands/agent-network/project/export-logs.js +38 -0
- package/dist/commands/agent-network/project/export-logs.js.map +1 -0
- package/dist/commands/agent-network/project/mcp/introspect.js +4 -1
- package/dist/commands/agent-network/project/mcp/introspect.js.map +1 -1
- package/dist/commands/agent-network/project/publish.js +1 -1
- package/dist/commands/agent-network/project/publish.js.map +1 -1
- package/dist/commands/agent-network/project/run-local.d.ts +85 -0
- package/dist/commands/agent-network/project/run-local.js +825 -0
- package/dist/commands/agent-network/project/run-local.js.map +1 -0
- package/dist/commands/agent-network/project/secrets.d.ts +21 -0
- package/dist/commands/agent-network/project/secrets.js +163 -0
- package/dist/commands/agent-network/project/secrets.js.map +1 -0
- package/dist/commands/agent-network/project/stop-local.d.ts +11 -0
- package/dist/commands/agent-network/project/stop-local.js +38 -0
- package/dist/commands/agent-network/project/stop-local.js.map +1 -0
- package/dist/commands/agent-network/project/undeploy.js +15 -10
- package/dist/commands/agent-network/project/undeploy.js.map +1 -1
- package/dist/commands/agent-network/project/unpublish.js +14 -6
- package/dist/commands/agent-network/project/unpublish.js.map +1 -1
- package/dist/commands/agent-network/setup/gateways.d.ts +3 -0
- package/dist/commands/agent-network/setup/gateways.js +66 -3
- package/dist/commands/agent-network/setup/gateways.js.map +1 -1
- package/dist/errors/error-factory.d.ts +51 -6
- package/dist/errors/error-factory.js +246 -15
- package/dist/errors/error-factory.js.map +1 -1
- package/dist/helpers/proxy-agent.d.ts +2 -0
- package/dist/helpers/proxy-agent.js +26 -0
- package/dist/helpers/proxy-agent.js.map +1 -0
- package/dist/helpers/request-utils.d.ts +2 -1
- package/dist/helpers/request-utils.js +2 -2
- package/dist/helpers/request-utils.js.map +1 -1
- package/dist/helpers/utils.d.ts +1 -0
- package/dist/helpers/utils.js +5 -0
- package/dist/helpers/utils.js.map +1 -1
- package/dist/resources/agent-console.html +478 -0
- package/dist/resources/schemas/broker-deployment-settings.schema.json +46 -0
- package/dist/types/agent-network-v2.d.ts +4 -0
- package/dist/types/agent-network-v2.js.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/utils/builders/network-lock.d.ts +1 -0
- package/dist/utils/builders/network-lock.js +41 -6
- package/dist/utils/builders/network-lock.js.map +1 -1
- package/dist/utils/builders/policies-factory.d.ts +5 -1
- package/dist/utils/builders/policies-factory.js +10 -2
- package/dist/utils/builders/policies-factory.js.map +1 -1
- package/dist/utils/builders/project-builder-impl.d.ts +16 -2
- package/dist/utils/builders/project-builder-impl.js +29 -1
- package/dist/utils/builders/project-builder-impl.js.map +1 -1
- package/dist/utils/builders/project-builder.d.ts +29 -2
- package/dist/utils/builders/project-builder.js +10 -2
- package/dist/utils/builders/project-builder.js.map +1 -1
- package/dist/utils/builders/remote-space-resolver.d.ts +2 -2
- package/dist/utils/builders/remote-space-resolver.js +27 -11
- package/dist/utils/builders/remote-space-resolver.js.map +1 -1
- package/dist/utils/builders/space-serializer.js +3 -1
- package/dist/utils/builders/space-serializer.js.map +1 -1
- package/dist/utils/builders/stage-diagnostics.d.ts +2 -0
- package/dist/utils/builders/stage-diagnostics.js +27 -0
- package/dist/utils/builders/stage-diagnostics.js.map +1 -0
- package/dist/utils/builders/tooling-metadata.d.ts +4 -4
- package/dist/utils/builders/tooling-metadata.js +27 -15
- package/dist/utils/builders/tooling-metadata.js.map +1 -1
- package/dist/utils/builders/v1/network-builder.js +2 -1
- package/dist/utils/builders/v1/network-builder.js.map +1 -1
- package/dist/utils/builders/v2/broker-builder.d.ts +1 -0
- package/dist/utils/builders/v2/broker-builder.js +69 -4
- package/dist/utils/builders/v2/broker-builder.js.map +1 -1
- package/dist/utils/builders/v2/network-builder.js +1 -1
- package/dist/utils/builders/v2/network-builder.js.map +1 -1
- package/dist/utils/constants.d.ts +3 -0
- package/dist/utils/constants.js +8 -3
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/deployment-settings.d.ts +13 -0
- package/dist/utils/deployment-settings.js +97 -0
- package/dist/utils/deployment-settings.js.map +1 -0
- package/dist/utils/facets/abstract-facet.d.ts +1 -0
- package/dist/utils/facets/abstract-facet.js +3 -0
- package/dist/utils/facets/abstract-facet.js.map +1 -1
- package/dist/utils/facets/agent-graph-facet.d.ts +14 -1
- package/dist/utils/facets/agent-graph-facet.js +126 -49
- package/dist/utils/facets/agent-graph-facet.js.map +1 -1
- package/dist/utils/facets/api-instance-facet.d.ts +36 -1
- package/dist/utils/facets/api-instance-facet.js +196 -5
- package/dist/utils/facets/api-instance-facet.js.map +1 -1
- package/dist/utils/facets/connection-facet.d.ts +8 -0
- package/dist/utils/facets/connection-facet.js +65 -1
- package/dist/utils/facets/connection-facet.js.map +1 -1
- package/dist/utils/facets/deployment-helpers.d.ts +18 -1
- package/dist/utils/facets/deployment-helpers.js +53 -0
- package/dist/utils/facets/deployment-helpers.js.map +1 -1
- package/dist/utils/facets/deployment-logs.js +1 -0
- package/dist/utils/facets/deployment-logs.js.map +1 -1
- package/dist/utils/facets/deployment-runner.js +5 -0
- package/dist/utils/facets/deployment-runner.js.map +1 -1
- package/dist/utils/facets/facets.d.ts +2 -0
- package/dist/utils/facets/facets.js +20 -3
- package/dist/utils/facets/facets.js.map +1 -1
- package/dist/utils/facets/mule-application-facet.d.ts +1 -1
- package/dist/utils/facets/mule-application-facet.js +25 -21
- package/dist/utils/facets/mule-application-facet.js.map +1 -1
- package/dist/utils/files.d.ts +25 -0
- package/dist/utils/files.js +62 -0
- package/dist/utils/files.js.map +1 -1
- package/dist/utils/gateway.d.ts +6 -2
- package/dist/utils/gateway.js +37 -33
- package/dist/utils/gateway.js.map +1 -1
- package/dist/utils/keychain.d.ts +56 -0
- package/dist/utils/keychain.js +488 -0
- package/dist/utils/keychain.js.map +1 -0
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/logger.js +3 -0
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/mcp/mcp-metadata-mapper.d.ts +8 -0
- package/dist/utils/mcp/mcp-metadata-mapper.js +7 -1
- package/dist/utils/mcp/mcp-metadata-mapper.js.map +1 -1
- package/dist/utils/mcp/project-registrar.js +2 -26
- package/dist/utils/mcp/project-registrar.js.map +1 -1
- package/dist/utils/naming.d.ts +13 -0
- package/dist/utils/naming.js +36 -4
- package/dist/utils/naming.js.map +1 -1
- package/dist/utils/request-executor.d.ts +5 -5
- package/dist/utils/run-local/agent-console-proxy.d.ts +56 -0
- package/dist/utils/run-local/agent-console-proxy.js +182 -0
- package/dist/utils/run-local/agent-console-proxy.js.map +1 -0
- package/dist/utils/run-local/broker-recreate-selector.d.ts +31 -0
- package/dist/utils/run-local/broker-recreate-selector.js +82 -0
- package/dist/utils/run-local/broker-recreate-selector.js.map +1 -0
- package/dist/utils/run-local/build-status.d.ts +73 -0
- package/dist/utils/run-local/build-status.js +210 -0
- package/dist/utils/run-local/build-status.js.map +1 -0
- package/dist/utils/run-local/constants.d.ts +28 -0
- package/dist/utils/run-local/constants.js +36 -0
- package/dist/utils/run-local/constants.js.map +1 -0
- package/dist/utils/run-local/crd-files.d.ts +2 -0
- package/dist/utils/run-local/crd-files.js +24 -0
- package/dist/utils/run-local/crd-files.js.map +1 -0
- package/dist/utils/run-local/index.d.ts +9 -0
- package/dist/utils/run-local/index.js +42 -0
- package/dist/utils/run-local/index.js.map +1 -0
- package/dist/utils/run-local/local-a2a-upstream.d.ts +9 -0
- package/dist/utils/run-local/local-a2a-upstream.js +55 -0
- package/dist/utils/run-local/local-a2a-upstream.js.map +1 -0
- package/dist/utils/run-local/local-deploy-descriptor.d.ts +36 -0
- package/dist/utils/run-local/local-deploy-descriptor.js +70 -0
- package/dist/utils/run-local/local-deploy-descriptor.js.map +1 -0
- package/dist/utils/run-local/local-run-manager.d.ts +51 -0
- package/dist/utils/run-local/local-run-manager.js +220 -0
- package/dist/utils/run-local/local-run-manager.js.map +1 -0
- package/dist/utils/run-local/policy-resolver.d.ts +69 -0
- package/dist/utils/run-local/policy-resolver.js +461 -0
- package/dist/utils/run-local/policy-resolver.js.map +1 -0
- package/dist/utils/run-local/runtime-environment-manager.d.ts +89 -0
- package/dist/utils/run-local/runtime-environment-manager.js +313 -0
- package/dist/utils/run-local/runtime-environment-manager.js.map +1 -0
- package/dist/utils/run-local/secrets-manager.d.ts +66 -0
- package/dist/utils/run-local/secrets-manager.js +181 -0
- package/dist/utils/run-local/secrets-manager.js.map +1 -0
- package/dist/utils/uris.js +4 -0
- package/dist/utils/uris.js.map +1 -1
- package/dist/utils/variables.d.ts +17 -4
- package/dist/utils/variables.js +52 -7
- package/dist/utils/variables.js.map +1 -1
- package/package.json +3 -1
- package/scripts/check-gus-ticket-format.sh +29 -0
- package/scripts/resolve-version.sh +161 -52
- package/scripts/resolve-version.test.sh +207 -20
- package/templates/agent-network/exchange.json.template +1 -0
- package/templates/agentic-network/brokers/broker1.agent.template +2 -2
- package/templates/agentic-network/exchange.json.template +1 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* For full license text, see the LICENSE.txt file
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
8
9
|
const core_1 = require("@oclif/core");
|
|
9
10
|
const anypoint_cli_command_lib_1 = require("anypoint-cli-command-lib");
|
|
10
11
|
const constants_1 = require("../../../utils/constants");
|
|
@@ -17,6 +18,7 @@ const logger_1 = require("../../../utils/logger");
|
|
|
17
18
|
const gateway_mode_1 = require("../../../utils/gateway-mode");
|
|
18
19
|
const request_logging_1 = require("../../../helpers/request-logging");
|
|
19
20
|
const request_executor_1 = require("../../../utils/request-executor");
|
|
21
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
20
22
|
class Gateways extends anypoint_cli_command_lib_1.AuthenticationBaseCommand {
|
|
21
23
|
constructor() {
|
|
22
24
|
super(...arguments);
|
|
@@ -27,6 +29,7 @@ class Gateways extends anypoint_cli_command_lib_1.AuthenticationBaseCommand {
|
|
|
27
29
|
const targetSpace = flags['target-space'];
|
|
28
30
|
const noFlags = !flags.gateway && !flags['ingress-gw'] && !flags['egress-gw'];
|
|
29
31
|
const dontWaitForGatewaysRunning = flags['dont-wait-for-gateways-running'];
|
|
32
|
+
const update = flags.update;
|
|
30
33
|
const organizationId = this.session.selectedOrganization.id;
|
|
31
34
|
const environmentId = this.session.selectedEnvironment.id;
|
|
32
35
|
// Validate flag-shape up front (no I/O) so flag errors surface before any network call.
|
|
@@ -46,7 +49,7 @@ class Gateways extends anypoint_cli_command_lib_1.AuthenticationBaseCommand {
|
|
|
46
49
|
const egressGWName = gatewayConfig.mode === gateway_mode_1.GatewayMode.Separate ? gatewayConfig.egressName : undefined;
|
|
47
50
|
const domainsResponse = await this.fetchDomainsIfNeeded(isSharedSpace, organizationId, environmentId, runtimeTargetSpace.id, targetSpace);
|
|
48
51
|
const existingGateways = await gateway_1.GatewayUtils.getGateways(this.req, organizationId, environmentId);
|
|
49
|
-
const context = { existingGateways, targetSpaces, runtimeTargetSpace, targetSpace, organizationId, environmentId };
|
|
52
|
+
const context = { existingGateways, targetSpaces, runtimeTargetSpace, targetSpace, organizationId, environmentId, update, dontWaitForGatewaysRunning };
|
|
50
53
|
const gatewayIdsToWait = [];
|
|
51
54
|
// Single-gateway mode (shared-space, or private/RTF default / --gateway) carries both ingress + egress
|
|
52
55
|
// traffic on one instance, so it needs the larger size. Separate-mode keeps the legacy split:
|
|
@@ -117,10 +120,16 @@ class Gateways extends anypoint_cli_command_lib_1.AuthenticationBaseCommand {
|
|
|
117
120
|
async provisionGateway(spec, context) {
|
|
118
121
|
var _a, _b;
|
|
119
122
|
const { kind, name, resolvePublicUrl, buildRequestBody, wrapPostError, buildNonCreatedError } = spec;
|
|
120
|
-
const { existingGateways, targetSpaces, runtimeTargetSpace, targetSpace, organizationId, environmentId } = context;
|
|
123
|
+
const { existingGateways, targetSpaces, runtimeTargetSpace, targetSpace, organizationId, environmentId, update, dontWaitForGatewaysRunning } = context;
|
|
121
124
|
const existing = this.findExistingGateway(existingGateways, runtimeTargetSpace, name);
|
|
122
125
|
if (existing) {
|
|
123
|
-
|
|
126
|
+
if (update) {
|
|
127
|
+
logger_1.Log.print(`${kind} gateway '${name}' already exists in target space '${targetSpace}'. Checking runtime version...`);
|
|
128
|
+
await this.reconcileGatewayVersion(organizationId, environmentId, existing.id, dontWaitForGatewaysRunning);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
logger_1.Log.print(`${kind} gateway '${name}' already exists in target space '${targetSpace}'. Skipping... ✅`);
|
|
132
|
+
}
|
|
124
133
|
return {};
|
|
125
134
|
}
|
|
126
135
|
const conflicting = this.findConflictingGateway(existingGateways, name);
|
|
@@ -154,6 +163,59 @@ class Gateways extends anypoint_cli_command_lib_1.AuthenticationBaseCommand {
|
|
|
154
163
|
isGatewayUpAndRunning(gateway) {
|
|
155
164
|
return gateway.running === true && gateway.ready === true;
|
|
156
165
|
}
|
|
166
|
+
async reconcileGatewayVersion(organizationId, environmentId, gatewayId, dontWaitForGatewaysRunning) {
|
|
167
|
+
var _a;
|
|
168
|
+
const current = await gateway_1.GatewayUtils.getGatewayDetailsById(this.req, organizationId, environmentId, gatewayId);
|
|
169
|
+
const latestVersion = await gateway_1.GatewayUtils.getLatestGatewayVersion(this.req, current.releaseChannel);
|
|
170
|
+
// Non-semver runtimeVersions fall back to strict equality instead of always attempting a PUT.
|
|
171
|
+
const alreadyLatest = semver_1.default.valid(current.runtimeVersion) && semver_1.default.valid(latestVersion) ?
|
|
172
|
+
!semver_1.default.gt(latestVersion, current.runtimeVersion) :
|
|
173
|
+
current.runtimeVersion === latestVersion;
|
|
174
|
+
if (alreadyLatest) {
|
|
175
|
+
logger_1.Log.info(`Gateway '${current.name}' is already on the latest runtime version (${current.runtimeVersion}). Skipping update... ✅`);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
logger_1.Log.info(`Updating gateway '${current.name}' from runtime version '${current.runtimeVersion}' to '${latestVersion}'...`);
|
|
179
|
+
try {
|
|
180
|
+
await gateway_1.GatewayUtils.updateGatewayVersion(this.req, organizationId, environmentId, gatewayId, {
|
|
181
|
+
name: current.name,
|
|
182
|
+
targetId: current.targetId,
|
|
183
|
+
releaseChannel: current.releaseChannel,
|
|
184
|
+
runtimeVersion: latestVersion,
|
|
185
|
+
size: current.size,
|
|
186
|
+
configuration: current.configuration,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
throw error_factory_1.ErrorFactory.gatewayUpdateFailedError(current.name, latestVersion, (0, request_utils_1.isAnAxiosError)(error) ? (_a = error.response) === null || _a === void 0 ? void 0 : _a.statusText : undefined, error);
|
|
191
|
+
}
|
|
192
|
+
if (dontWaitForGatewaysRunning) {
|
|
193
|
+
logger_1.Log.print(`Check the gateway '${current.name}' update status manually by logging in to the Anypoint Platform.`);
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
await this.waitForGatewayUpdate(organizationId, environmentId, gatewayId, current.name, latestVersion);
|
|
197
|
+
logger_1.Log.print(`Gateway '${current.name}' updated to runtime version '${latestVersion}'. ✅`);
|
|
198
|
+
}
|
|
199
|
+
async waitForGatewayUpdate(organizationId, environmentId, gatewayId, gatewayName, targetVersion) {
|
|
200
|
+
var _a, _b;
|
|
201
|
+
// gatewaymanager reports settled gateways as either APPLIED or RUNNING; match case-insensitively and
|
|
202
|
+
// require the observed runtimeVersion to have flipped so an in-flight update isn't mistaken for done.
|
|
203
|
+
const settledStatuses = new Set(['APPLIED', 'RUNNING']);
|
|
204
|
+
const deadline = Date.now() + request_utils_1.DEFAULT_PROCESS_TIMEOUT;
|
|
205
|
+
let gateway = await gateway_1.GatewayUtils.getGatewayDetailsById(this.req, organizationId, environmentId, gatewayId);
|
|
206
|
+
while (!(settledStatuses.has((_a = gateway.status) === null || _a === void 0 ? void 0 : _a.toUpperCase()) && gateway.runtimeVersion === targetVersion)) {
|
|
207
|
+
if (((_b = gateway.status) === null || _b === void 0 ? void 0 : _b.toUpperCase()) === 'FAILED') {
|
|
208
|
+
throw error_factory_1.ErrorFactory.gatewayUpdateFailedError(gatewayName, targetVersion, gateway.status);
|
|
209
|
+
}
|
|
210
|
+
if (Date.now() >= deadline) {
|
|
211
|
+
throw error_factory_1.ErrorFactory.gatewayUpdateTimedOutError(gatewayName, targetVersion, request_utils_1.DEFAULT_PROCESS_TIMEOUT);
|
|
212
|
+
}
|
|
213
|
+
// eslint-disable-next-line no-await-in-loop
|
|
214
|
+
await (0, utils_1.sleep)(2 * 1000);
|
|
215
|
+
// eslint-disable-next-line no-await-in-loop
|
|
216
|
+
gateway = await gateway_1.GatewayUtils.getGatewayDetailsById(this.req, organizationId, environmentId, gatewayId);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
157
219
|
buildGatewaysError(error, resourceId) {
|
|
158
220
|
if (this.isInsufficientResourcesError(error)) {
|
|
159
221
|
return error_factory_1.ErrorFactory.setupGatewayInsufficientResourcesError(resourceId, error);
|
|
@@ -237,6 +299,7 @@ Gateways.flags = {
|
|
|
237
299
|
'ingress-gw': core_1.Flags.string({ char: 'i', required: false, description: 'Name of the ingress gw (separate-gateway mode)' }),
|
|
238
300
|
'egress-gw': core_1.Flags.string({ char: 'e', description: 'Name of the egress gw (separate-gateway mode; requires --ingress-gw)', required: false }),
|
|
239
301
|
'dont-wait-for-gateways-running': core_1.Flags.boolean({ description: 'Do not wait for the Gateways to be running', default: false }),
|
|
302
|
+
update: core_1.Flags.boolean({ description: 'If a gateway already exists, check for the latest runtime version available on its release channel and update it.', default: false }),
|
|
240
303
|
};
|
|
241
304
|
exports.default = Gateways;
|
|
242
305
|
//# sourceMappingURL=gateways.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateways.js","sourceRoot":"","sources":["../../../../src/commands/agent-network/setup/gateways.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAEH,sCAAiC;AACjC,uEAAkE;AAClE,wDAOiC;AACjC,oDAAmD;AAGnD,iEAA0D;AAC1D,kDAA4C;AAE5C,8CAAuE;AACvE,kEAA6D;AAC7D,kDAAyC;AACzC,8DAAmG;AACnG,sEAAmE;AACnE,sEAA+D;AAE/D,MAAqB,QAAS,SAAQ,oDAAyB;IAA/D;;QAEqB,2BAAsB,GAAG,8CAA8C,CAAA;IA2P5F,CAAC;IAhPG,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC1C,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,CAAA;QACzC,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;QAC7E,MAAM,0BAA0B,GAAG,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC1E,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;QAC3D,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAA;QA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C,CAAC;IAC3M,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,kHAAkH,EAAC,CAAC;IACpL,YAAY,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,gDAAgD,EAAC,CAAC;IACvH,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,sEAAsE,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;IAC5I,gCAAgC,EAAE,YAAK,CAAC,OAAO,CAAC,EAAC,WAAW,EAAE,4CAA4C,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;IAC5H,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC,EAAC,WAAW,EAAE,mHAAmH,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;CAC1K,AARW,CAQX;kBAZgB,QAAQ"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseError, DeployStep } from './base-error';
|
|
2
2
|
import { ExchangeAssetMetadata, Gateway, GatewayDetails, GAV, RuntimeTargetSpace } from '../types/types';
|
|
3
3
|
import { StrategyVersion } from '../helpers/types';
|
|
4
|
+
export declare const DEPLOYED_RESOURCES_EXIST_ON_UNPUBLISH_CODE = 2007;
|
|
5
|
+
export declare const UNDEPLOY_FAIL_CLOSED_CODE = 3030;
|
|
4
6
|
export declare const ErrorFactory: {
|
|
5
7
|
projectDescriptorNotFound(definitionRef: string, exchangeJsonFile: string): BaseError;
|
|
6
8
|
invalidAgentNetworkProject(): BaseError;
|
|
@@ -42,8 +44,8 @@ export declare const ErrorFactory: {
|
|
|
42
44
|
bulkApplyPolicyError(apiLabel: string, error: any): BaseError;
|
|
43
45
|
throwDeployError(apiLabel: string, gatewayName: string, error: any): BaseError;
|
|
44
46
|
deployError(apiLabel: string, gatewayName: string, error: any): BaseError;
|
|
45
|
-
throwConnectionNotFoundError(groupId: string, assetId: string, version: string): BaseError;
|
|
46
|
-
connectionNotFoundError(groupId: string, assetId: string, version: string): BaseError;
|
|
47
|
+
throwConnectionNotFoundError(groupId: string, assetId: string, version: string, connectionId?: string): BaseError;
|
|
48
|
+
connectionNotFoundError(groupId: string, assetId: string, version: string, connectionId?: string): BaseError;
|
|
47
49
|
throwGettingEgressConnectionError(targetId: string | undefined, runtimeVersion: string, organizationId: string, environmentId: string, error: any): BaseError;
|
|
48
50
|
gettingEgressConnectionError(targetId: string | undefined, runtimeVersion: string, organizationId: string, environmentId: string, error: any): BaseError;
|
|
49
51
|
throwDeployAPIError(error: any): BaseError;
|
|
@@ -91,6 +93,8 @@ export declare const ErrorFactory: {
|
|
|
91
93
|
gatewayAlreadyExists(gatewayName: string, environmentName: string, conflictingTargetSpaceName?: string): BaseError;
|
|
92
94
|
setupGatewayInsufficientResourcesError(resourceId: string, error: any): BaseError;
|
|
93
95
|
missingDomainsResponse(direction: "ingress" | "egress"): BaseError;
|
|
96
|
+
gatewayUpdateFailedError(gatewayName: string, targetVersion: string, status: string | undefined, error?: any): BaseError;
|
|
97
|
+
gatewayUpdateTimedOutError(gatewayName: string, targetVersion: string, timeoutMs: number): BaseError;
|
|
94
98
|
noEntitlementForOrganization(organizationId: string, status?: string): BaseError;
|
|
95
99
|
downloadFileError(url: string, error: any): BaseError;
|
|
96
100
|
couldNotFindVersion(): BaseError;
|
|
@@ -104,24 +108,64 @@ export declare const ErrorFactory: {
|
|
|
104
108
|
invalidProjectName(name: string): BaseError;
|
|
105
109
|
invalidAssetId(assetId: string): BaseError;
|
|
106
110
|
missingAssetIdWithInvalidProjectName(): BaseError;
|
|
111
|
+
brokerAlreadyExists(name: string, location: "yaml" | "file"): BaseError;
|
|
112
|
+
invalidBrokerTemplate(templatePath: string, error: string): BaseError;
|
|
113
|
+
unsupportedAgentNetworkVersion(version: string): BaseError;
|
|
114
|
+
invalidAgentNetworkYaml(yamlFile: string, parseErrors: string): BaseError;
|
|
115
|
+
invalidEmptyBrokerName(name: string): BaseError;
|
|
116
|
+
invalidBrokerName(id: string): BaseError;
|
|
117
|
+
invalidBrokersSection(yamlFile: string): BaseError;
|
|
118
|
+
brokerNameTooLong(id: string, maxLength: number): BaseError;
|
|
107
119
|
policyVersionError(groupId: string, policyId: string, error: any): BaseError;
|
|
108
120
|
policyValidationFailed(validationErrors: any[]): BaseError;
|
|
109
121
|
schemaNotFoundForAsset(assetId: string, schemaFileName: string): BaseError;
|
|
110
122
|
dependencyVersionNotFound(groupId: string, assetId: string): BaseError;
|
|
111
|
-
undeployError(message: string): BaseError;
|
|
112
|
-
unpublishError(message: string): BaseError;
|
|
113
|
-
|
|
123
|
+
undeployError(message: string, cause?: any): BaseError;
|
|
124
|
+
unpublishError(message: string, cause?: any): BaseError;
|
|
125
|
+
incompatibleTargetVersionPublish(expected: number, got: string): BaseError;
|
|
114
126
|
projectNotBuiltPublish(): BaseError;
|
|
115
127
|
invalidPolicy(groupId: string, policyId: string, minorVersion: string): BaseError;
|
|
116
128
|
invalidGAVFormat(input: string): BaseError;
|
|
117
129
|
parentAssetNotFound(gav: GAV): BaseError;
|
|
118
130
|
invalidAgentProtocol(groupId: string, assetId: string, connectionName: string): BaseError;
|
|
119
131
|
unsupportedAgentProtocol(groupId: string, assetId: string, connectionName: string): BaseError;
|
|
132
|
+
v1NotSupportedForLocalRun(): BaseError;
|
|
133
|
+
dockerNotInstalled(cause?: unknown): BaseError;
|
|
134
|
+
dockerDaemonNotRunning(cause?: unknown): BaseError;
|
|
135
|
+
dockerSignInRequired(): BaseError;
|
|
136
|
+
dockerImagePullFailed(image: string): BaseError;
|
|
137
|
+
dockerAgentGraphImageMissing(image: string, cause?: unknown): BaseError;
|
|
138
|
+
flexCrdNameCollision(resourceId: string, filePath: string): BaseError;
|
|
139
|
+
exchangeJsonMissingMain(): BaseError;
|
|
140
|
+
flexRegistrationFailed(side: string, detail: string): BaseError;
|
|
141
|
+
policyImplementationNotFound(groupId: string, assetId: string, version: string): BaseError;
|
|
142
|
+
policyImplementationResolveFailed(groupId: string, assetId: string, version: string, detail: string, cause?: unknown): BaseError;
|
|
143
|
+
policyFetchFailed(groupId: string, assetId: string, version: string, detail: string, cause?: unknown): BaseError;
|
|
144
|
+
policyAssetCorrupt(assetPath: string): BaseError;
|
|
145
|
+
policyMainFileMissing(mainFile: string, groupId: string, assetId: string, version: string, assetPath: string): BaseError;
|
|
146
|
+
policyDependencyMissing(depGAV: string, requiredBy: string, cachePath: string): BaseError;
|
|
147
|
+
noAvailablePort(start: number, end: number): BaseError;
|
|
148
|
+
invalidPort(port: number): BaseError;
|
|
149
|
+
agentGraphServiceNameCollision(trimmedId: string, firstAssetId: string, secondAssetId: string): BaseError;
|
|
150
|
+
localSecretRetrievalFailed(variableName: string): BaseError;
|
|
151
|
+
unknownLlmPlatformForApiKey(platform: string, supportedPlatforms: string[]): BaseError;
|
|
152
|
+
localEnvironmentNotRendered(): BaseError;
|
|
153
|
+
secretRouteSegment(instanceId: string, variableName: string): BaseError;
|
|
154
|
+
secretUpstreamAddress(ownerId: string, variableName: string): BaseError;
|
|
155
|
+
secretEnvVarNameCollision(firstVariable: string, secondVariable: string, envVarName: string): BaseError;
|
|
156
|
+
undeclaredVariables(variableNames: string[]): BaseError;
|
|
120
157
|
networkLockMissing(reason: string): BaseError;
|
|
121
158
|
networkLockMalformed(reason: string): BaseError;
|
|
122
|
-
|
|
159
|
+
incompatibleTargetVersionDeploy(expected: number, got: string): BaseError;
|
|
123
160
|
projectNotBuiltDeploy(): BaseError;
|
|
124
161
|
assetMissingFromNetworkLock(assetId: string): BaseError;
|
|
162
|
+
brokerAuthorizationPolicyConflict(brokerName: string, key: string, existingValue: unknown, authorizationValue: unknown, inferred?: boolean): BaseError;
|
|
163
|
+
runtimeVersionNotFound(requested: string, runtimeType: string, available: string[]): BaseError;
|
|
164
|
+
mixedRuntimeTypesInDeploy(): BaseError;
|
|
165
|
+
deploymentSettingsFlagsMutuallyExclusive(): BaseError;
|
|
166
|
+
deploymentFileReadError(filePath: string, reason: string, error?: any): BaseError;
|
|
167
|
+
deploymentSettingsMalformedEntry(entry: string): BaseError;
|
|
168
|
+
deploymentSettingsInvalid(reason: string): BaseError;
|
|
125
169
|
credentialsValidationsError(description: string): BaseError;
|
|
126
170
|
gatewayFlagsMutuallyExclusive(): BaseError;
|
|
127
171
|
egressGwRequiresIngress(): BaseError;
|
|
@@ -142,5 +186,6 @@ export declare const ErrorFactory: {
|
|
|
142
186
|
mcpCannotDeriveRegistryKey(reason: string): BaseError;
|
|
143
187
|
assetIdTooLongForDeployment(assetId: string, maxLength: number): BaseError;
|
|
144
188
|
invalidExchangeJson(exchangeJsonPath: string, cause: unknown): BaseError;
|
|
189
|
+
invalidExchangeJsonField(exchangeJsonPath: string, field: string): BaseError;
|
|
145
190
|
genericError(message: string): BaseError;
|
|
146
191
|
};
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
* For full license text, see the LICENSE.txt file
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ErrorFactory = void 0;
|
|
8
|
+
exports.ErrorFactory = exports.UNDEPLOY_FAIL_CLOSED_CODE = exports.DEPLOYED_RESOURCES_EXIST_ON_UNPUBLISH_CODE = void 0;
|
|
9
9
|
const base_error_1 = require("./base-error");
|
|
10
|
+
const constants_1 = require("../utils/constants");
|
|
10
11
|
const setupErrorMsg = (resourceId) => `Error while trying to setup ${resourceId}.`;
|
|
12
|
+
exports.DEPLOYED_RESOURCES_EXIST_ON_UNPUBLISH_CODE = 2007;
|
|
13
|
+
exports.UNDEPLOY_FAIL_CLOSED_CODE = 3030;
|
|
11
14
|
exports.ErrorFactory = {
|
|
12
15
|
// Build errors
|
|
13
16
|
projectDescriptorNotFound(definitionRef, exchangeJsonFile) {
|
|
@@ -180,7 +183,7 @@ exports.ErrorFactory = {
|
|
|
180
183
|
return new base_error_1.BaseError(code, message);
|
|
181
184
|
},
|
|
182
185
|
deployedResourcesExistOnUnpublish(projectName, resourceLines) {
|
|
183
|
-
const code =
|
|
186
|
+
const code = exports.DEPLOYED_RESOURCES_EXIST_ON_UNPUBLISH_CODE;
|
|
184
187
|
const list = resourceLines.map(line => ` - ${line}`).join('\n');
|
|
185
188
|
const message = `Cannot unpublish '${projectName}': ${resourceLines.length} deployed resource(s) still reference these assets:\n` +
|
|
186
189
|
`${list}\n` +
|
|
@@ -209,12 +212,13 @@ exports.ErrorFactory = {
|
|
|
209
212
|
const message = `Error while trying to deploy '${apiLabel}' into '${gatewayName}'.`;
|
|
210
213
|
return new base_error_1.BaseError(code, message, error);
|
|
211
214
|
},
|
|
212
|
-
throwConnectionNotFoundError(groupId, assetId, version) {
|
|
213
|
-
throw this.connectionNotFoundError(groupId, assetId, version);
|
|
215
|
+
throwConnectionNotFoundError(groupId, assetId, version, connectionId) {
|
|
216
|
+
throw this.connectionNotFoundError(groupId, assetId, version, connectionId);
|
|
214
217
|
},
|
|
215
|
-
connectionNotFoundError(groupId, assetId, version) {
|
|
218
|
+
connectionNotFoundError(groupId, assetId, version, connectionId) {
|
|
216
219
|
const code = 3005;
|
|
217
|
-
const message = `Unable to find a connection for '${groupId}:${assetId}:${version}'
|
|
220
|
+
const message = `Unable to find a connection for '${groupId}:${assetId}:${version}'.` +
|
|
221
|
+
(connectionId ? ` No egress API matched connection '${connectionId}'.` : '');
|
|
218
222
|
return new base_error_1.BaseError(code, message);
|
|
219
223
|
},
|
|
220
224
|
throwGettingEgressConnectionError(targetId, runtimeVersion, organizationId, environmentId, error) {
|
|
@@ -458,6 +462,16 @@ exports.ErrorFactory = {
|
|
|
458
462
|
'Domains are required for non-shared targets, but none was found.';
|
|
459
463
|
throw new base_error_1.BaseError(code, message);
|
|
460
464
|
},
|
|
465
|
+
gatewayUpdateFailedError(gatewayName, targetVersion, status, error) {
|
|
466
|
+
const code = 4016;
|
|
467
|
+
const message = `Failed to update gateway '${gatewayName}' to runtime version '${targetVersion}'.${status ? ` Status: ${status}.` : ''}`;
|
|
468
|
+
throw new base_error_1.BaseError(code, message, error);
|
|
469
|
+
},
|
|
470
|
+
gatewayUpdateTimedOutError(gatewayName, targetVersion, timeoutMs) {
|
|
471
|
+
const code = 4017;
|
|
472
|
+
const message = `Timed out after ${timeoutMs}ms waiting for gateway '${gatewayName}' to finish updating to runtime version '${targetVersion}'.`;
|
|
473
|
+
throw new base_error_1.BaseError(code, message);
|
|
474
|
+
},
|
|
461
475
|
// access-management errors
|
|
462
476
|
noEntitlementForOrganization(organizationId, status) {
|
|
463
477
|
const code = 5001;
|
|
@@ -529,6 +543,47 @@ exports.ErrorFactory = {
|
|
|
529
543
|
const message = 'Asset ID is required if project name does not contain at least one alphanumeric character.';
|
|
530
544
|
throw new base_error_1.BaseError(code, message);
|
|
531
545
|
},
|
|
546
|
+
brokerAlreadyExists(name, location) {
|
|
547
|
+
const code = 7007;
|
|
548
|
+
const where = location === 'yaml' ? 'in agent-network.yaml' : 'in brokers/ directory';
|
|
549
|
+
const message = `Broker '${name}' already exists ${where}.`;
|
|
550
|
+
throw new base_error_1.BaseError(code, message);
|
|
551
|
+
},
|
|
552
|
+
invalidBrokerTemplate(templatePath, error) {
|
|
553
|
+
const code = 7008;
|
|
554
|
+
const message = `Broker template not found at '${templatePath}'. Installation may be corrupted. (${error})`;
|
|
555
|
+
throw new base_error_1.BaseError(code, message);
|
|
556
|
+
},
|
|
557
|
+
unsupportedAgentNetworkVersion(version) {
|
|
558
|
+
const code = 7009;
|
|
559
|
+
const message = `This command only works with Agent Network v2 projects. Found version: ${version || 'v1'}.`;
|
|
560
|
+
throw new base_error_1.BaseError(code, message);
|
|
561
|
+
},
|
|
562
|
+
invalidAgentNetworkYaml(yamlFile, parseErrors) {
|
|
563
|
+
const code = 7010;
|
|
564
|
+
const message = `Error parsing ${yamlFile}: ${parseErrors}`;
|
|
565
|
+
throw new base_error_1.BaseError(code, message);
|
|
566
|
+
},
|
|
567
|
+
invalidEmptyBrokerName(name) {
|
|
568
|
+
const code = 7011;
|
|
569
|
+
const message = `Broker name '${name}' is invalid. At least one alphanumeric character is required.`;
|
|
570
|
+
throw new base_error_1.BaseError(code, message);
|
|
571
|
+
},
|
|
572
|
+
invalidBrokerName(id) {
|
|
573
|
+
const code = 7012;
|
|
574
|
+
const message = `Broker ID '${id}' is invalid. Must start and end with a letter or digit, and may contain letters, digits, underscore, dot and hyphen in the middle.`;
|
|
575
|
+
throw new base_error_1.BaseError(code, message);
|
|
576
|
+
},
|
|
577
|
+
invalidBrokersSection(yamlFile) {
|
|
578
|
+
const code = 7013;
|
|
579
|
+
const message = `The 'brokers' section in ${yamlFile} is malformed. Expected a mapping of broker names to broker definitions.`;
|
|
580
|
+
throw new base_error_1.BaseError(code, message);
|
|
581
|
+
},
|
|
582
|
+
brokerNameTooLong(id, maxLength) {
|
|
583
|
+
const code = 7014;
|
|
584
|
+
const message = `Broker '${id}' (${id.length} characters) exceeds the ${maxLength}-character limit on deployment names. Shorten the broker name and try again.`;
|
|
585
|
+
throw new base_error_1.BaseError(code, message);
|
|
586
|
+
},
|
|
532
587
|
// policy-helper errors
|
|
533
588
|
policyVersionError(groupId, policyId, error) {
|
|
534
589
|
const code = 8001;
|
|
@@ -551,17 +606,17 @@ exports.ErrorFactory = {
|
|
|
551
606
|
throw new base_error_1.BaseError(code, message);
|
|
552
607
|
},
|
|
553
608
|
// undeploy/unpublish errors
|
|
554
|
-
undeployError(message) {
|
|
555
|
-
const code =
|
|
556
|
-
return new base_error_1.BaseError(code, message);
|
|
609
|
+
undeployError(message, cause) {
|
|
610
|
+
const code = exports.UNDEPLOY_FAIL_CLOSED_CODE;
|
|
611
|
+
return new base_error_1.BaseError(code, message, cause);
|
|
557
612
|
},
|
|
558
|
-
unpublishError(message) {
|
|
613
|
+
unpublishError(message, cause) {
|
|
559
614
|
const code = 2010;
|
|
560
|
-
return new base_error_1.BaseError(code, message);
|
|
615
|
+
return new base_error_1.BaseError(code, message, cause);
|
|
561
616
|
},
|
|
562
|
-
|
|
617
|
+
incompatibleTargetVersionPublish(expected, got) {
|
|
563
618
|
const code = 2011;
|
|
564
|
-
const message = `The project was built with an incompatible CLI version. Please rebuild your project with the latest CLI version. (expected
|
|
619
|
+
const message = `The project was built with an incompatible CLI version. Please rebuild your project with the latest CLI version. (expected targetVersion ${expected}, got ${got})`;
|
|
565
620
|
return new base_error_1.BaseError(code, message);
|
|
566
621
|
},
|
|
567
622
|
projectNotBuiltPublish() {
|
|
@@ -594,15 +649,140 @@ exports.ErrorFactory = {
|
|
|
594
649
|
const message = `Agent '${groupId}:${assetId}' for connection '${connectionName}' does not expose an A2A protocol (a2a or a2a_v1). Only A2A agents can be connected.`;
|
|
595
650
|
return new base_error_1.BaseError(code, message);
|
|
596
651
|
},
|
|
652
|
+
// local-run errors (8500-8599)
|
|
653
|
+
v1NotSupportedForLocalRun() {
|
|
654
|
+
const code = 8500;
|
|
655
|
+
return new base_error_1.BaseError(code, 'Local run is not yet supported for V1 schema projects. Only V2 schema projects can be run locally.');
|
|
656
|
+
},
|
|
657
|
+
dockerNotInstalled(cause) {
|
|
658
|
+
const code = 8501;
|
|
659
|
+
return new base_error_1.BaseError(code, 'Docker is not installed. Install Docker Desktop from https://www.docker.com/products/docker-desktop/', cause);
|
|
660
|
+
},
|
|
661
|
+
dockerDaemonNotRunning(cause) {
|
|
662
|
+
const code = 8502;
|
|
663
|
+
return new base_error_1.BaseError(code, 'Docker daemon is not running. Start Docker Desktop and try again.', cause);
|
|
664
|
+
},
|
|
665
|
+
dockerSignInRequired() {
|
|
666
|
+
const code = 8503;
|
|
667
|
+
return new base_error_1.BaseError(code, 'Docker requires sign-in. Please run "docker login" or sign in via Docker Desktop and try again.');
|
|
668
|
+
},
|
|
669
|
+
dockerImagePullFailed(image) {
|
|
670
|
+
const code = 8504;
|
|
671
|
+
return new base_error_1.BaseError(code, `Failed to pull required image "${image}". Ensure you are signed in to Docker and have network access.`);
|
|
672
|
+
},
|
|
673
|
+
dockerAgentGraphImageMissing(image, cause) {
|
|
674
|
+
const code = 8519;
|
|
675
|
+
return new base_error_1.BaseError(code, `Local deploy is not yet available. The required Docker image "${image}" has not been published. ` +
|
|
676
|
+
'--build-only does not require this image.', cause);
|
|
677
|
+
},
|
|
678
|
+
flexCrdNameCollision(resourceId, filePath) {
|
|
679
|
+
const code = 8524;
|
|
680
|
+
return new base_error_1.BaseError(code, `Flex CRD resource name collision: '${resourceId}' maps to existing file '${filePath}'. ` +
|
|
681
|
+
'Rename one of the colliding ids (underscores and hyphens collapse to the same Flex name).');
|
|
682
|
+
},
|
|
683
|
+
exchangeJsonMissingMain() {
|
|
684
|
+
const code = 8505;
|
|
685
|
+
return new base_error_1.BaseError(code, 'No "main" field found in exchange.json. Cannot determine agent network YAML file.');
|
|
686
|
+
},
|
|
687
|
+
flexRegistrationFailed(side, detail) {
|
|
688
|
+
const code = 8506;
|
|
689
|
+
return new base_error_1.BaseError(code, `Failed to generate Flex Gateway registration for ${side}: ${detail}`);
|
|
690
|
+
},
|
|
691
|
+
policyImplementationNotFound(groupId, assetId, version) {
|
|
692
|
+
const code = 8507;
|
|
693
|
+
return new base_error_1.BaseError(code, `No Flex Gateway implementation found for policy ${groupId}:${assetId}:${version}.`);
|
|
694
|
+
},
|
|
695
|
+
policyImplementationResolveFailed(groupId, assetId, version, detail, cause) {
|
|
696
|
+
const code = 8508;
|
|
697
|
+
return new base_error_1.BaseError(code, `Failed to resolve Flex implementation for policy ${groupId}:${assetId}:${version}: ${detail}`, cause);
|
|
698
|
+
},
|
|
699
|
+
policyFetchFailed(groupId, assetId, version, detail, cause) {
|
|
700
|
+
const code = 8509;
|
|
701
|
+
return new base_error_1.BaseError(code, `Failed to fetch policy ${groupId}:${assetId}:${version}: ${detail}`, cause);
|
|
702
|
+
},
|
|
703
|
+
policyAssetCorrupt(assetPath) {
|
|
704
|
+
const code = 8510;
|
|
705
|
+
return new base_error_1.BaseError(code, `No exchange.json found at ${assetPath}. The policy asset is corrupt or was not fetched correctly.`);
|
|
706
|
+
},
|
|
707
|
+
policyMainFileMissing(mainFile, groupId, assetId, version, assetPath) {
|
|
708
|
+
const code = 8511;
|
|
709
|
+
return new base_error_1.BaseError(code, `Main file "${mainFile}" not found in policy asset ${groupId}:${assetId}:${version} at ${assetPath}`);
|
|
710
|
+
},
|
|
711
|
+
policyDependencyMissing(depGAV, requiredBy, cachePath) {
|
|
712
|
+
const code = 8512;
|
|
713
|
+
return new base_error_1.BaseError(code, `Dependency ${depGAV} not found in cache at ${cachePath}. Required by policy ${requiredBy}.`);
|
|
714
|
+
},
|
|
715
|
+
noAvailablePort(start, end) {
|
|
716
|
+
const code = 8513;
|
|
717
|
+
return new base_error_1.BaseError(code, `No available port found in range ${start}-${end}. Free a port or pass --port explicitly.`);
|
|
718
|
+
},
|
|
719
|
+
invalidPort(port) {
|
|
720
|
+
const code = 8514;
|
|
721
|
+
return new base_error_1.BaseError(code, `Invalid port '${port}'. Port must be an integer between 1 and 65535.`);
|
|
722
|
+
},
|
|
723
|
+
agentGraphServiceNameCollision(trimmedId, firstAssetId, secondAssetId) {
|
|
724
|
+
const code = 8515;
|
|
725
|
+
return new base_error_1.BaseError(code, `Asset ids '${firstAssetId}' and '${secondAssetId}' both trim to the same Docker service name ` +
|
|
726
|
+
`'${trimmedId}' under the ${constants_1.DNS_LABEL_MAX_LENGTH}-character DNS label limit. ` +
|
|
727
|
+
'Rename one of the assets to avoid a naming collision.');
|
|
728
|
+
},
|
|
729
|
+
localSecretRetrievalFailed(variableName) {
|
|
730
|
+
const code = 8516;
|
|
731
|
+
return new base_error_1.BaseError(code, `Secret '${variableName}' is marked as stored but could not be retrieved. ` +
|
|
732
|
+
'The keychain entry may have been deleted or the encrypted secrets file may be corrupt. ' +
|
|
733
|
+
'Re-run without a cached value to re-enter the secret.');
|
|
734
|
+
},
|
|
735
|
+
unknownLlmPlatformForApiKey(platform, supportedPlatforms) {
|
|
736
|
+
const code = 8517;
|
|
737
|
+
const supported = supportedPlatforms.map(value => `'${value}'`).join(', ');
|
|
738
|
+
return new base_error_1.BaseError(code, `Unknown LLM platform '${platform}'; cannot select an API key environment variable ` +
|
|
739
|
+
`for the agent-graph container. Supported platforms: ${supported}.`);
|
|
740
|
+
},
|
|
741
|
+
localEnvironmentNotRendered() {
|
|
742
|
+
const code = 8520;
|
|
743
|
+
return new base_error_1.BaseError(code, 'No local environment found. Run "agent-network project run-local" first to render and start the Docker Compose environment.');
|
|
744
|
+
},
|
|
745
|
+
secretRouteSegment(instanceId, variableName) {
|
|
746
|
+
const code = 8522;
|
|
747
|
+
return new base_error_1.BaseError(code, `Ingress path of '${instanceId}' references the secret variable '${variableName}'. ` +
|
|
748
|
+
'A route segment is published in the gateway configuration and in the local deploy descriptor, ' +
|
|
749
|
+
'so it cannot carry a secret. Use a non-secret variable (secret: false) for the path.');
|
|
750
|
+
},
|
|
751
|
+
secretUpstreamAddress(ownerId, variableName) {
|
|
752
|
+
const code = 8523;
|
|
753
|
+
return new base_error_1.BaseError(code, `Upstream address of '${ownerId}' references the secret variable '${variableName}'. ` +
|
|
754
|
+
'The upstream address is published in the gateway configuration in plaintext and cannot be redacted, ' +
|
|
755
|
+
'because the gateway needs the real address to route to it. Use a non-secret variable (secret: false) ' +
|
|
756
|
+
'in the URL, or supply the credential through a policy (which is rendered from the redaction map) ' +
|
|
757
|
+
'instead of embedding it in the address.');
|
|
758
|
+
},
|
|
759
|
+
secretEnvVarNameCollision(firstVariable, secondVariable, envVarName) {
|
|
760
|
+
const code = 8521;
|
|
761
|
+
return new base_error_1.BaseError(code, `Secret variables '${firstVariable}' and '${secondVariable}' both normalize to the same ` +
|
|
762
|
+
`environment variable name '${envVarName}', so one would silently overwrite the other when ` +
|
|
763
|
+
'passed into the local runtime. Rename one of them to avoid the collision.');
|
|
764
|
+
},
|
|
765
|
+
undeclaredVariables(variableNames) {
|
|
766
|
+
const code = 8518;
|
|
767
|
+
const plural = variableNames.length > 1;
|
|
768
|
+
const noun = plural ? 'Variables' : 'Variable';
|
|
769
|
+
const verb = plural ? 'are' : 'is';
|
|
770
|
+
const joined = variableNames.map(name => `'${name}'`).join(', ');
|
|
771
|
+
const message = `${noun} ${joined} ${verb} referenced as \${...} placeholder${plural ? 's' : ''} in the Agent Network configuration ` +
|
|
772
|
+
`but ${verb} not declared in the 'metadata.variables' section of exchange.json. ` +
|
|
773
|
+
'Add a declaration for each (with a description, and secret: true for secrets) so its value can be supplied at run time. ' +
|
|
774
|
+
'This is not a keychain problem: the variable name was never declared, so it can never be prompted for or stored.';
|
|
775
|
+
return new base_error_1.BaseError(code, message);
|
|
776
|
+
},
|
|
597
777
|
networkLockMissing(reason) {
|
|
598
778
|
return new base_error_1.BaseError(3041, reason);
|
|
599
779
|
},
|
|
600
780
|
networkLockMalformed(reason) {
|
|
601
781
|
return new base_error_1.BaseError(3042, reason);
|
|
602
782
|
},
|
|
603
|
-
|
|
783
|
+
incompatibleTargetVersionDeploy(expected, got) {
|
|
604
784
|
const code = 3045;
|
|
605
|
-
const message = `The project was built with an incompatible CLI version. Please rebuild your project with the latest CLI version and then republish. (expected
|
|
785
|
+
const message = `The project was built with an incompatible CLI version. Please rebuild your project with the latest CLI version and then republish. (expected targetVersion ${expected}, got ${got})`;
|
|
606
786
|
return new base_error_1.BaseError(code, message);
|
|
607
787
|
},
|
|
608
788
|
projectNotBuiltDeploy() {
|
|
@@ -613,6 +793,52 @@ exports.ErrorFactory = {
|
|
|
613
793
|
assetMissingFromNetworkLock(assetId) {
|
|
614
794
|
return new base_error_1.BaseError(3044, `Asset '${assetId}' is missing from the network lock file.`);
|
|
615
795
|
},
|
|
796
|
+
brokerAuthorizationPolicyConflict(brokerName, key, existingValue, authorizationValue, inferred = false) {
|
|
797
|
+
const code = 3048;
|
|
798
|
+
const message = inferred ?
|
|
799
|
+
`Broker '${brokerName}' declares an explicit 'user-context-propagation' policy whose '${key}' ` +
|
|
800
|
+
`(${JSON.stringify(existingValue)}) conflicts with the value ${JSON.stringify(authorizationValue)} inferred from setting 'principal' ` +
|
|
801
|
+
`in its 'authorization' section (declaring a principal implies '${key}: ${JSON.stringify(authorizationValue)}'). ` +
|
|
802
|
+
`Set '${key}' to ${JSON.stringify(authorizationValue)} in the explicit policy, remove it, or drop 'principal'.` :
|
|
803
|
+
`Broker '${brokerName}' declares an explicit 'user-context-propagation' policy whose '${key}' ` +
|
|
804
|
+
`(${JSON.stringify(existingValue)}) conflicts with the value derived from its 'authorization' section ` +
|
|
805
|
+
`(${JSON.stringify(authorizationValue)}). Remove the conflicting '${key}' from the explicit policy configuration ` +
|
|
806
|
+
'or align it with the \'authorization\' section.';
|
|
807
|
+
return new base_error_1.BaseError(code, message);
|
|
808
|
+
},
|
|
809
|
+
runtimeVersionNotFound(requested, runtimeType, available) {
|
|
810
|
+
const code = 3053;
|
|
811
|
+
const availableList = available.length > 0 ? available.join(', ') : 'none';
|
|
812
|
+
const message = `No ${runtimeType} runtime version matching '${requested}' is available. Available versions: ${availableList}.`;
|
|
813
|
+
return new base_error_1.BaseError(code, message);
|
|
814
|
+
},
|
|
815
|
+
mixedRuntimeTypesInDeploy() {
|
|
816
|
+
const code = 3054;
|
|
817
|
+
const message = 'A single Agent Network deploy cannot contain both Mule Applications and Agent Graphs.';
|
|
818
|
+
return new base_error_1.BaseError(code, message);
|
|
819
|
+
},
|
|
820
|
+
deploymentSettingsFlagsMutuallyExclusive() {
|
|
821
|
+
const code = 3049;
|
|
822
|
+
const message = '--deployment-properties-file and --deployment-property are mutually exclusive. ' +
|
|
823
|
+
'Use --deployment-properties-file <path> to load deployment settings from a YAML file, or --deployment-property <scope>:<name>:<value> for inline settings.';
|
|
824
|
+
return new base_error_1.BaseError(code, message);
|
|
825
|
+
},
|
|
826
|
+
deploymentFileReadError(filePath, reason, error) {
|
|
827
|
+
const code = 3050;
|
|
828
|
+
const message = `Unable to read deployment settings file '${filePath}': ${reason}`;
|
|
829
|
+
return new base_error_1.BaseError(code, message, error);
|
|
830
|
+
},
|
|
831
|
+
deploymentSettingsMalformedEntry(entry) {
|
|
832
|
+
const code = 3051;
|
|
833
|
+
const message = `Malformed deployment setting '${entry}'. ` +
|
|
834
|
+
'Each inline entry must be in <scope>:<name>:<value> form (e.g. brokers:vCores:0.1) with a non-empty scope, name, and value.';
|
|
835
|
+
return new base_error_1.BaseError(code, message);
|
|
836
|
+
},
|
|
837
|
+
deploymentSettingsInvalid(reason) {
|
|
838
|
+
const code = 3052;
|
|
839
|
+
const message = `Invalid deployment settings: ${reason}.`;
|
|
840
|
+
return new base_error_1.BaseError(code, message);
|
|
841
|
+
},
|
|
616
842
|
// Access management errors
|
|
617
843
|
credentialsValidationsError(description) {
|
|
618
844
|
const code = 10001;
|
|
@@ -722,6 +948,11 @@ exports.ErrorFactory = {
|
|
|
722
948
|
const message = `exchange.json at '${exchangeJsonPath}' is not valid JSON: ${reason}`;
|
|
723
949
|
return new base_error_1.BaseError(code, message);
|
|
724
950
|
},
|
|
951
|
+
invalidExchangeJsonField(exchangeJsonPath, field) {
|
|
952
|
+
const code = 1034;
|
|
953
|
+
const message = `exchange.json at '${exchangeJsonPath}' has an invalid '${field}' field. Expected a string.`;
|
|
954
|
+
return new base_error_1.BaseError(code, message);
|
|
955
|
+
},
|
|
725
956
|
// generic
|
|
726
957
|
genericError(message) {
|
|
727
958
|
const code = 9001;
|