@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolify-plugin",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "description": "Fallback Codex metadata for local stdio Coolify tools.",
5
5
  "author": {
6
6
  "name": "JurisLM",
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 rawUrl = env.COOLIFY_BASE_URL?.trim();
9
- const token = env.COOLIFY_ACCESS_TOKEN?.trim();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jurislm/coolify-plugin",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "description": "Portable local stdio MCP plugin for Coolify",
5
5
  "publishConfig": {
6
6
  "access": "public"
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.13",
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",