@jurislm/coolify-plugin 4.0.18 → 4.0.20
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/README.md +2 -0
- package/dist/config.js +7 -3
- package/package.json +1 -1
- package/plugin.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,8 @@ In Cursor, open **Customize → Plugins → Add Marketplace → Import from GitH
|
|
|
39
39
|
|
|
40
40
|
If Cursor Cloud passes literal `${COOLIFY_BASE_URL}` and `${COOLIFY_ACCESS_TOKEN}` to a stdio server, also set `COOLIFY_CLOUD_BASE_URL` and `COOLIFY_CLOUD_ACCESS_TOKEN` in the same Cloud environment. The plugin uses this pair first and never mixes it with the canonical or Configure pair.
|
|
41
41
|
|
|
42
|
+
For local agents, a complete saved Configure URL/token pair takes precedence over inherited `COOLIFY_BASE_URL` and `COOLIFY_ACCESS_TOKEN` values. It does not combine values from different sources.
|
|
43
|
+
|
|
42
44
|
## OpenAPI contract
|
|
43
45
|
|
|
44
46
|
`openapi/coolify-openapi.json` is built from the official Coolify v4.3.23 release. `api/manifest.json` records the upstream SHA-256, the current API contract corrections, and the persisted SHA-256. `bun run api:check` verifies the contract offline before checking generated parity. The runtime uses the generated schemas directly.
|
package/dist/config.js
CHANGED
|
@@ -12,11 +12,15 @@ export function loadConfig(env = process.env) {
|
|
|
12
12
|
const cloudUrl = environmentValue(env, "COOLIFY_CLOUD_BASE_URL");
|
|
13
13
|
const cloudToken = environmentValue(env, "COOLIFY_CLOUD_ACCESS_TOKEN");
|
|
14
14
|
const useCloud = Boolean(cloudUrl || cloudToken);
|
|
15
|
+
const configureUrl = environmentValue(env, "CURSOR_COOLIFY_BASE_URL", "COOLIFY_BASE_URL");
|
|
16
|
+
const configureToken = environmentValue(env, "CURSOR_COOLIFY_ACCESS_TOKEN", "COOLIFY_ACCESS_TOKEN");
|
|
15
17
|
const canonicalUrl = environmentValue(env, "COOLIFY_BASE_URL");
|
|
16
18
|
const canonicalToken = environmentValue(env, "COOLIFY_ACCESS_TOKEN");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
19
|
+
const configureComplete = Boolean(configureUrl && configureToken);
|
|
20
|
+
const canonicalComplete = Boolean(canonicalUrl && canonicalToken);
|
|
21
|
+
const useConfigure = configureComplete || (!canonicalComplete && Boolean(configureUrl || configureToken));
|
|
22
|
+
const rawUrl = useCloud ? cloudUrl : useConfigure ? configureUrl : canonicalUrl;
|
|
23
|
+
const token = useCloud ? cloudToken : useConfigure ? configureToken : canonicalToken;
|
|
20
24
|
if (!rawUrl)
|
|
21
25
|
return { ...(token ? { token } : {}), timeoutMs: 30_000 };
|
|
22
26
|
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.20",
|
|
5
5
|
"description": "Portable Coolify MCP plugin with local stdio tools generated from the official OpenAPI contract.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "JurisLM",
|