@jurislm/coolify-plugin 4.0.13 → 4.0.14
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/.codex-plugin/plugin.json +1 -1
- package/dist/config.js +9 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
package/dist/config.js
CHANGED
|
@@ -4,9 +4,16 @@ export class ConfigError extends Error {
|
|
|
4
4
|
this.name = "ConfigError";
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
+
function cursorValue(env, name, cursorName) {
|
|
8
|
+
const cursor = env[cursorName]?.trim();
|
|
9
|
+
return cursor === `\${${name}}` ? undefined : cursor;
|
|
10
|
+
}
|
|
7
11
|
export function loadConfig(env = process.env) {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
12
|
+
const cloudUrl = env.COOLIFY_BASE_URL?.trim();
|
|
13
|
+
const cloudToken = env.COOLIFY_ACCESS_TOKEN?.trim();
|
|
14
|
+
const useCloud = Boolean(cloudUrl || cloudToken);
|
|
15
|
+
const rawUrl = useCloud ? cloudUrl : cursorValue(env, "COOLIFY_BASE_URL", "CURSOR_COOLIFY_BASE_URL");
|
|
16
|
+
const token = useCloud ? cloudToken : cursorValue(env, "COOLIFY_ACCESS_TOKEN", "CURSOR_COOLIFY_ACCESS_TOKEN");
|
|
10
17
|
if (!rawUrl)
|
|
11
18
|
return { ...(token ? { token } : {}), timeoutMs: 30_000 };
|
|
12
19
|
let url;
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "coolify-plugin",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.14",
|
|
5
5
|
"description": "Portable Coolify MCP plugin with local stdio tools generated from the official OpenAPI contract.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "JurisLM",
|