@greenarmor/ges 0.6.2 → 1.0.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.
- package/dist/commands/mcp-setup.js +29 -1
- package/package.json +13 -13
|
@@ -81,8 +81,36 @@ function resolveServerPath() {
|
|
|
81
81
|
}
|
|
82
82
|
return { command: "npx", args: ["-y", "@greenarmor/ges-mcp-server"] };
|
|
83
83
|
}
|
|
84
|
+
function resolveAbsoluteCommand(command) {
|
|
85
|
+
if (command === "node") {
|
|
86
|
+
return process.execPath;
|
|
87
|
+
}
|
|
88
|
+
if (command === "npx") {
|
|
89
|
+
const nodeDir = path.dirname(process.execPath);
|
|
90
|
+
const ext = process.platform === "win32" ? ".cmd" : "";
|
|
91
|
+
const npxPath = path.join(nodeDir, `npx${ext}`);
|
|
92
|
+
if (fs.existsSync(npxPath))
|
|
93
|
+
return npxPath;
|
|
94
|
+
}
|
|
95
|
+
return command;
|
|
96
|
+
}
|
|
97
|
+
function resolveServerPathAbsolute() {
|
|
98
|
+
const resolved = resolveServerPath();
|
|
99
|
+
if (resolved.command === "node") {
|
|
100
|
+
return { command: process.execPath, args: resolved.args };
|
|
101
|
+
}
|
|
102
|
+
if (resolved.command === "npx") {
|
|
103
|
+
const nodeDir = path.dirname(process.execPath);
|
|
104
|
+
const ext = process.platform === "win32" ? ".cmd" : "";
|
|
105
|
+
const npxPath = path.join(nodeDir, `npx${ext}`);
|
|
106
|
+
if (fs.existsSync(npxPath)) {
|
|
107
|
+
return { command: npxPath, args: resolved.args };
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return resolved;
|
|
111
|
+
}
|
|
84
112
|
function buildServerEntry(client) {
|
|
85
|
-
const { command, args } =
|
|
113
|
+
const { command, args } = resolveServerPathAbsolute();
|
|
86
114
|
if (client.format === "opencode") {
|
|
87
115
|
return {
|
|
88
116
|
type: "local",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenarmor/ges",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Green Engineering Standard Framework - Compliance-as-Code CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"commander": "^13.0.0",
|
|
16
|
-
"@greenarmor/ges-audit-engine": "0.
|
|
17
|
-
"@greenarmor/ges-
|
|
18
|
-
"@greenarmor/ges-
|
|
19
|
-
"@greenarmor/ges-
|
|
20
|
-
"@greenarmor/ges-
|
|
21
|
-
"@greenarmor/ges-
|
|
22
|
-
"@greenarmor/ges-
|
|
23
|
-
"@greenarmor/ges-
|
|
24
|
-
"@greenarmor/ges-
|
|
25
|
-
"@greenarmor/ges-
|
|
26
|
-
"@greenarmor/ges-
|
|
16
|
+
"@greenarmor/ges-audit-engine": "1.0.0",
|
|
17
|
+
"@greenarmor/ges-compliance-engine": "1.0.0",
|
|
18
|
+
"@greenarmor/ges-cicd-generator": "1.0.0",
|
|
19
|
+
"@greenarmor/ges-core": "1.0.0",
|
|
20
|
+
"@greenarmor/ges-doc-generator": "1.0.0",
|
|
21
|
+
"@greenarmor/ges-policy-engine": "1.0.0",
|
|
22
|
+
"@greenarmor/ges-rules-engine": "1.0.0",
|
|
23
|
+
"@greenarmor/ges-scanner-integration": "1.0.0",
|
|
24
|
+
"@greenarmor/ges-mcp-server": "1.0.0",
|
|
25
|
+
"@greenarmor/ges-scoring-engine": "1.0.0",
|
|
26
|
+
"@greenarmor/ges-report-generator": "1.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.0.0",
|
|
30
30
|
"typescript": "^6.0.0"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=20.0.0"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"compliance",
|