@frumu/tandem-panel 0.4.10 → 0.4.12
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/bin/setup.js +3 -3
- package/dist/assets/{index-EGEu-G8H.js → index-ekgYKmmV.js} +36 -36
- package/dist/index.html +1 -1
- package/lib/setup/common.js +15 -1
- package/lib/setup/doctor.js +2 -1
- package/package.json +3 -3
package/dist/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Rubik:wght@500;700;800&family=Manrope:wght@400;500;600;700&display=swap"
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
/>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-ekgYKmmV.js"></script>
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/preact-vendor-jo0muZ28.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/vendor-BB3fzNns.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="/assets/react-query-wD0mx2Xi.js">
|
package/lib/setup/common.js
CHANGED
|
@@ -72,6 +72,20 @@ function shellEscape(token) {
|
|
|
72
72
|
return `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
function isLoopbackHost(host) {
|
|
76
|
+
const text = String(host || "").trim().toLowerCase();
|
|
77
|
+
if (!text) return false;
|
|
78
|
+
return text === "localhost" || text === "::1" || text.startsWith("127.");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function isLoopbackUrl(url) {
|
|
82
|
+
try {
|
|
83
|
+
return isLoopbackHost(new URL(url).hostname);
|
|
84
|
+
} catch {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
75
89
|
function log(msg) {
|
|
76
90
|
console.log(`[Tandem Setup] ${msg}`);
|
|
77
91
|
}
|
|
@@ -80,4 +94,4 @@ function err(msg) {
|
|
|
80
94
|
console.error(`[Tandem Setup] ERROR: ${msg}`);
|
|
81
95
|
}
|
|
82
96
|
|
|
83
|
-
export { err, log, parseCliArgs, runCmd, shellEscape };
|
|
97
|
+
export { err, isLoopbackHost, isLoopbackUrl, log, parseCliArgs, runCmd, shellEscape };
|
package/lib/setup/doctor.js
CHANGED
|
@@ -2,6 +2,7 @@ import { existsSync } from "fs";
|
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
|
|
4
4
|
import { ensureBootstrapEnv } from "./env.js";
|
|
5
|
+
import { isLoopbackHost } from "./common.js";
|
|
5
6
|
const require = createRequire(import.meta.url);
|
|
6
7
|
|
|
7
8
|
async function runDoctor(options = {}) {
|
|
@@ -45,7 +46,7 @@ async function runDoctor(options = {}) {
|
|
|
45
46
|
engineHealth,
|
|
46
47
|
warnings: [],
|
|
47
48
|
};
|
|
48
|
-
if (bootstrap.panelHost
|
|
49
|
+
if (!isLoopbackHost(bootstrap.panelHost) && !result.panelPublicUrl) {
|
|
49
50
|
result.warnings.push("Panel binds non-loopback without TANDEM_CONTROL_PANEL_PUBLIC_URL.");
|
|
50
51
|
}
|
|
51
52
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frumu/tandem-panel",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "Full web control center for Tandem Engine (chat, routines, swarm, memory, channels, and ops)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"homepage": "https://tandem.frumu.ai",
|
|
41
41
|
"author": "Frumu Ltd",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@frumu/tandem": "^0.4.
|
|
44
|
-
"@frumu/tandem-client": "^0.4.
|
|
43
|
+
"@frumu/tandem": "^0.4.12",
|
|
44
|
+
"@frumu/tandem-client": "^0.4.12",
|
|
45
45
|
"@tanstack/react-query": "^5.90.21",
|
|
46
46
|
"dompurify": "^3.3.1",
|
|
47
47
|
"lucide": "^0.575.0",
|