1 Commits

Author SHA1 Message Date
josh a0381b12cc Merge pull request 'test: add failing tests for sort/order on GET /api/instances' (#71) from dev into main
CI / test (push) Successful in 16s
Release / release (push) Failing after 11s
CI / build-dev (push) Has been skipped
Reviewed-on: #71
2026-05-29 16:05:54 -04:00
4 changed files with 3 additions and 11 deletions
-2
View File
@@ -539,7 +539,6 @@ function _renderJobConfigFields(key, cfg) {
</div>`;
if (key === 'patchmon_sync' || key === 'semaphore_sync') {
const label = key === 'semaphore_sync' ? 'API Token (Bearer)' : 'API Token (Basic)';
const tokenPlaceholder = key === 'patchmon_sync' ? 'token_key:token_secret' : '';
return `
<div class="form-group">
<label class="form-label" for="job-cfg-api-url">API URL</label>
@@ -549,7 +548,6 @@ function _renderJobConfigFields(key, cfg) {
<div class="form-group">
<label class="form-label" for="job-cfg-api-token">${label}</label>
<input class="form-input" id="job-cfg-api-token" type="password"
placeholder="${tokenPlaceholder}"
value="${esc(cfg.api_token ?? '')}">
</div>`;
}
+1 -1
View File
@@ -1 +1 @@
const VERSION = "1.7.1";
const VERSION = "1.5.0";
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "catalyst",
"version": "1.7.1",
"version": "1.6.0",
"type": "module",
"scripts": {
"start": "node server/server.js",
+1 -7
View File
@@ -41,14 +41,8 @@ async function patchmonSyncHandler(cfg) {
const { api_url, api_token } = cfg;
if (!api_url || !api_token) throw new Error('Patchmon not configured — set API URL and token');
// Accept raw "key:secret" (recommended) or a pre-encoded base64 string.
// ":" cannot appear in a valid base64 string, so it's a reliable discriminator.
const credential = api_token.includes(':')
? Buffer.from(api_token).toString('base64')
: api_token;
const res = await fetch(api_url, {
headers: { Authorization: `Basic ${credential}` },
headers: { Authorization: `Basic ${api_token}` },
});
if (!res.ok) throw new Error(`Patchmon API ${res.status}`);