a2acalling 0.6.0 → 0.6.2
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/README.md +33 -9
- package/SKILL.md +67 -5
- package/bin/cli.js +468 -151
- package/docs/protocol.md +24 -14
- package/package.json +1 -1
- package/scripts/install-openclaw.js +64 -68
- package/src/dashboard/public/app.js +765 -28
- package/src/dashboard/public/index.html +57 -13
- package/src/dashboard/public/style.css +16 -0
- package/src/lib/callbook.js +358 -0
- package/src/lib/client.js +1 -2
- package/src/lib/config.js +67 -15
- package/src/lib/external-ip.js +18 -7
- package/src/lib/invite-host.js +26 -41
- package/src/lib/logger.js +26 -14
- package/src/lib/tokens.js +314 -113
- package/src/routes/a2a.js +11 -2
- package/src/routes/callbook.js +142 -0
- package/src/routes/dashboard.js +557 -25
- package/src/server.js +6 -0
package/src/server.js
CHANGED
|
@@ -11,6 +11,7 @@ const fs = require('fs');
|
|
|
11
11
|
const path = require('path');
|
|
12
12
|
const { createRoutes } = require('./routes/a2a');
|
|
13
13
|
const { createDashboardApiRouter, createDashboardUiRouter } = require('./routes/dashboard');
|
|
14
|
+
const { createCallbookRouter } = require('./routes/callbook');
|
|
14
15
|
const { TokenStore } = require('./lib/tokens');
|
|
15
16
|
const { createRuntimeAdapter } = require('./lib/runtime-adapter');
|
|
16
17
|
const { getTopicsForTier, formatTopicsForPrompt, loadManifest } = require('./lib/disclosure');
|
|
@@ -708,13 +709,18 @@ app.use(express.json());
|
|
|
708
709
|
// Minimal owner dashboard (local by default unless A2A_ADMIN_TOKEN is provided)
|
|
709
710
|
app.use('/api/a2a/dashboard', createDashboardApiRouter({
|
|
710
711
|
tokenStore,
|
|
712
|
+
agentContext,
|
|
711
713
|
logger: logger.child({ component: 'a2a.dashboard' })
|
|
712
714
|
}));
|
|
713
715
|
app.use('/dashboard', createDashboardUiRouter({
|
|
714
716
|
tokenStore,
|
|
717
|
+
agentContext,
|
|
715
718
|
logger: logger.child({ component: 'a2a.dashboard' })
|
|
716
719
|
}));
|
|
717
720
|
|
|
721
|
+
// Callbook Remote pairing flow (public install page).
|
|
722
|
+
app.use('/callbook', createCallbookRouter());
|
|
723
|
+
|
|
718
724
|
app.use('/api/a2a', createRoutes({
|
|
719
725
|
tokenStore,
|
|
720
726
|
logger: logger.child({ component: 'a2a.routes' }),
|