@agent-relay/dashboard-server 2.0.56 → 2.0.57
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/dist/server.d.ts.map +1 -1
- package/dist/server.js +29 -5
- package/dist/server.js.map +1 -1
- package/out/404.html +1 -1
- package/out/about.html +1 -1
- package/out/about.txt +1 -1
- package/out/app/onboarding.html +1 -1
- package/out/app/onboarding.txt +1 -1
- package/out/app.html +1 -1
- package/out/app.txt +1 -1
- package/out/blog/go-to-bed-wake-up-to-a-finished-product.html +1 -1
- package/out/blog/go-to-bed-wake-up-to-a-finished-product.txt +1 -1
- package/out/blog.html +1 -1
- package/out/blog.txt +1 -1
- package/out/careers.html +1 -1
- package/out/careers.txt +1 -1
- package/out/changelog.html +1 -1
- package/out/changelog.txt +1 -1
- package/out/cloud/link.html +1 -1
- package/out/cloud/link.txt +1 -1
- package/out/complete-profile.html +1 -1
- package/out/complete-profile.txt +1 -1
- package/out/connect-repos.html +1 -1
- package/out/connect-repos.txt +1 -1
- package/out/contact.html +1 -1
- package/out/contact.txt +1 -1
- package/out/docs.html +1 -1
- package/out/docs.txt +1 -1
- package/out/history.html +1 -1
- package/out/history.txt +1 -1
- package/out/index.html +1 -1
- package/out/index.txt +1 -1
- package/out/login.html +1 -1
- package/out/login.txt +1 -1
- package/out/metrics.html +1 -1
- package/out/metrics.txt +1 -1
- package/out/pricing.html +1 -1
- package/out/pricing.txt +1 -1
- package/out/privacy.html +1 -1
- package/out/privacy.txt +1 -1
- package/out/providers/setup/claude.html +1 -1
- package/out/providers/setup/claude.txt +1 -1
- package/out/providers/setup/codex.html +1 -1
- package/out/providers/setup/codex.txt +1 -1
- package/out/providers/setup/cursor.html +1 -1
- package/out/providers/setup/cursor.txt +1 -1
- package/out/providers.html +1 -1
- package/out/providers.txt +1 -1
- package/out/security.html +1 -1
- package/out/security.txt +1 -1
- package/out/signup.html +1 -1
- package/out/signup.txt +1 -1
- package/out/terms.html +1 -1
- package/out/terms.txt +1 -1
- package/package.json +1 -1
- /package/out/_next/static/{QqNSu80FdJe5TgWiKSby_ → QS-NFfJUw1w3081kmWJg9}/_buildManifest.js +0 -0
- /package/out/_next/static/{QqNSu80FdJe5TgWiKSby_ → QS-NFfJUw1w3081kmWJg9}/_ssgManifest.js +0 -0
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAgYzD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACvH,wBAAsB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -53,8 +53,6 @@ function findDashboardDir() {
|
|
|
53
53
|
// Return null with flag indicating bundled mode (for quieter error handling)
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
|
-
// Check if running in bundled binary mode
|
|
57
|
-
const IS_BUNDLED_BINARY = path.dirname(fileURLToPath(import.meta.url)).startsWith('/$bunfs/');
|
|
58
56
|
import { startCLIAuth, getAuthSession, cancelAuthSession, submitAuthCode, completeAuthSession, getSupportedProviders, } from '@agent-relay/daemon';
|
|
59
57
|
import { HealthWorkerManager, getHealthPort } from './services/health-worker-manager.js';
|
|
60
58
|
/**
|
|
@@ -783,9 +781,35 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
|
|
|
783
781
|
res.sendFile(path.join(dashboardDir, 'app.html'));
|
|
784
782
|
});
|
|
785
783
|
}
|
|
786
|
-
else
|
|
787
|
-
//
|
|
788
|
-
|
|
784
|
+
else {
|
|
785
|
+
// Serve a fallback page when dashboard UI files aren't available
|
|
786
|
+
const fallbackHtml = `<!DOCTYPE html>
|
|
787
|
+
<html>
|
|
788
|
+
<head>
|
|
789
|
+
<title>Agent Relay Dashboard</title>
|
|
790
|
+
<style>
|
|
791
|
+
body { font-family: system-ui, sans-serif; max-width: 600px; margin: 100px auto; padding: 20px; }
|
|
792
|
+
h1 { color: #333; }
|
|
793
|
+
code { background: #f4f4f4; padding: 2px 6px; border-radius: 3px; }
|
|
794
|
+
pre { background: #f4f4f4; padding: 12px; border-radius: 5px; overflow-x: auto; }
|
|
795
|
+
.api-status { margin-top: 30px; padding: 15px; background: #e8f5e9; border-radius: 5px; }
|
|
796
|
+
</style>
|
|
797
|
+
</head>
|
|
798
|
+
<body>
|
|
799
|
+
<h1>Agent Relay Dashboard</h1>
|
|
800
|
+
<p>The dashboard API is running, but the UI files are not available.</p>
|
|
801
|
+
<p>To get the full dashboard UI, reinstall using the official installer:</p>
|
|
802
|
+
<pre><code>curl -fsSL https://raw.githubusercontent.com/AgentWorkforce/relay/main/install.sh | bash</code></pre>
|
|
803
|
+
<div class="api-status">
|
|
804
|
+
<strong>API Status:</strong> Running<br>
|
|
805
|
+
<a href="/api/agents">View connected agents</a> |
|
|
806
|
+
<a href="/api/messages">View messages</a>
|
|
807
|
+
</div>
|
|
808
|
+
</body>
|
|
809
|
+
</html>`;
|
|
810
|
+
app.get('/', (req, res) => {
|
|
811
|
+
res.type('html').send(fallbackHtml);
|
|
812
|
+
});
|
|
789
813
|
}
|
|
790
814
|
// Relay clients for sending messages from dashboard
|
|
791
815
|
// Map of senderName -> RelayClient for per-user connections
|