a2acalling 0.6.25 → 0.6.26
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/package.json +1 -1
- package/src/routes/dashboard.js +2 -2
- package/src/server.js +11 -1
package/package.json
CHANGED
package/src/routes/dashboard.js
CHANGED
|
@@ -502,7 +502,7 @@ function createDashboardApiRouter(options = {}) {
|
|
|
502
502
|
manifest_file: require('../lib/disclosure').MANIFEST_FILE,
|
|
503
503
|
public_base_url: publicBaseUrl,
|
|
504
504
|
public_dashboard_url: publicBaseUrl ? `${publicBaseUrl}/dashboard/` : null,
|
|
505
|
-
callbook_install_base: publicBaseUrl ? `${publicBaseUrl}/callbook/install` : null,
|
|
505
|
+
callbook_install_base: publicBaseUrl ? `${publicBaseUrl}/api/a2a/callbook/install` : null,
|
|
506
506
|
invite_host: inviteResolution ? {
|
|
507
507
|
host: inviteResolution.host,
|
|
508
508
|
source: inviteResolution.source || null,
|
|
@@ -570,7 +570,7 @@ function createDashboardApiRouter(options = {}) {
|
|
|
570
570
|
const schemeOverride = String(process.env.A2A_PUBLIC_SCHEME || '').trim();
|
|
571
571
|
const scheme = schemeOverride || (isHttpsRequest(req) ? 'https' : 'http');
|
|
572
572
|
const baseUrl = resolvedHost ? `${scheme}://${resolvedHost}` : null;
|
|
573
|
-
const installUrl = baseUrl ? `${baseUrl}/callbook/install#code=${created.code}` : null;
|
|
573
|
+
const installUrl = baseUrl ? `${baseUrl}/api/a2a/callbook/install#code=${created.code}` : null;
|
|
574
574
|
|
|
575
575
|
return res.json({
|
|
576
576
|
success: true,
|
package/src/server.js
CHANGED
|
@@ -717,18 +717,28 @@ const app = express();
|
|
|
717
717
|
app.use(express.json());
|
|
718
718
|
|
|
719
719
|
// Minimal owner dashboard (local by default unless A2A_ADMIN_TOKEN is provided)
|
|
720
|
+
// All routes under /api/a2a/* so reverse proxy config stays simple.
|
|
720
721
|
app.use('/api/a2a/dashboard', createDashboardApiRouter({
|
|
721
722
|
tokenStore,
|
|
722
723
|
agentContext,
|
|
723
724
|
logger: logger.child({ component: 'a2a.dashboard' })
|
|
724
725
|
}));
|
|
725
|
-
app.use('/dashboard', createDashboardUiRouter({
|
|
726
|
+
app.use('/api/a2a/dashboard', createDashboardUiRouter({
|
|
726
727
|
tokenStore,
|
|
727
728
|
agentContext,
|
|
728
729
|
logger: logger.child({ component: 'a2a.dashboard' })
|
|
729
730
|
}));
|
|
730
731
|
|
|
731
732
|
// Callbook Remote pairing flow (public install page).
|
|
733
|
+
// Mounted under /api/a2a/ for reverse proxy compatibility.
|
|
734
|
+
app.use('/api/a2a/callbook', createCallbookRouter());
|
|
735
|
+
|
|
736
|
+
// Legacy routes for backwards compatibility (direct access without reverse proxy)
|
|
737
|
+
app.use('/dashboard', createDashboardUiRouter({
|
|
738
|
+
tokenStore,
|
|
739
|
+
agentContext,
|
|
740
|
+
logger: logger.child({ component: 'a2a.dashboard' })
|
|
741
|
+
}));
|
|
732
742
|
app.use('/callbook', createCallbookRouter());
|
|
733
743
|
|
|
734
744
|
app.use('/api/a2a', createRoutes({
|