@sfdxy/anypoint-connect 0.9.1 → 0.11.0

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.
@@ -0,0 +1,23 @@
1
+ import { isProductionEnv } from './guards.js';
2
+ export function buildApplicationDeletionPreview(deployment, environment) {
3
+ return {
4
+ action: 'delete deployment',
5
+ app: deployment.name,
6
+ environment: environment.name,
7
+ environmentId: environment.id,
8
+ deploymentId: deployment.id,
9
+ status: deployment.status,
10
+ artifactRef: deployment.application.ref,
11
+ runtime: deployment.target.deploymentSettings.runtime?.version,
12
+ targetId: deployment.target.targetId,
13
+ replicas: deployment.target.replicas,
14
+ production: isProductionEnv(environment.name, environment.isProduction),
15
+ irreversible: true,
16
+ preserved: 'Exchange artifact and other Anypoint resources',
17
+ alternative: 'Use stop_app to take the application offline without deleting its deployment configuration.',
18
+ };
19
+ }
20
+ export function deploymentIdMatches(expectedDeploymentId, currentDeploymentId) {
21
+ return Boolean(expectedDeploymentId) && expectedDeploymentId === currentDeploymentId;
22
+ }
23
+ //# sourceMappingURL=deletion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deletion.js","sourceRoot":"","sources":["../../src/safety/deletion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmB9C,MAAM,UAAU,+BAA+B,CAC3C,UAAyB,EACzB,WAAwB;IAExB,OAAO;QACH,MAAM,EAAE,mBAAmB;QAC3B,GAAG,EAAE,UAAU,CAAC,IAAI;QACpB,WAAW,EAAE,WAAW,CAAC,IAAI;QAC7B,aAAa,EAAE,WAAW,CAAC,EAAE;QAC7B,YAAY,EAAE,UAAU,CAAC,EAAE;QAC3B,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG;QACvC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO;QAC9D,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ;QACpC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ;QACpC,UAAU,EAAE,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC;QACvE,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,gDAAgD;QAC3D,WAAW,EAAE,6FAA6F;KAC7G,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,oBAAwC,EAAE,mBAA2B;IACrG,OAAO,OAAO,CAAC,oBAAoB,CAAC,IAAI,oBAAoB,KAAK,mBAAmB,CAAC;AACzF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfdxy/anypoint-connect",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "description": "CLI + MCP toolkit for Anypoint Platform — deploy, tail logs, pull metrics, manage API specs, with production safety nets",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "format:check": "prettier --check ."
21
21
  },
22
22
  "engines": {
23
- "node": ">=18.0.0"
23
+ "node": ">=20.0.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "@modelcontextprotocol/sdk": "^1.12.1",
@@ -45,7 +45,7 @@
45
45
  "type": "git",
46
46
  "url": "git+https://github.com/Avinava/anypoint-connect.git"
47
47
  },
48
- "homepage": "https://github.com/Avinava/anypoint-connect#readme",
48
+ "homepage": "https://avinava.github.io/anypoint-connect/",
49
49
  "bugs": {
50
50
  "url": "https://github.com/Avinava/anypoint-connect/issues"
51
51
  },