clementine-agent 1.10.3 → 1.10.4
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/cli/dashboard.js +9 -4
- package/package.json +1 -1
package/dist/cli/dashboard.js
CHANGED
|
@@ -4387,16 +4387,21 @@ If the tool returns nothing or errors, return an empty array \`[]\`.`,
|
|
|
4387
4387
|
}
|
|
4388
4388
|
});
|
|
4389
4389
|
// ── Composio (1000+ third-party services via OAuth broker) ────
|
|
4390
|
-
app.get('/api/composio/status', (_req, res) => {
|
|
4391
|
-
|
|
4390
|
+
app.get('/api/composio/status', async (_req, res) => {
|
|
4391
|
+
// Use isComposioEnabled — checks both process.env (dashboard hot-reload)
|
|
4392
|
+
// and the .env file (survives daemon restart). Reading process.env
|
|
4393
|
+
// directly here was the bug: after restart, .env had the key but
|
|
4394
|
+
// process.env was empty, so the dashboard reported the key as unset.
|
|
4395
|
+
const c = await import('../integrations/composio/client.js');
|
|
4396
|
+
res.json({ enabled: c.isComposioEnabled() });
|
|
4392
4397
|
});
|
|
4393
4398
|
app.get('/api/composio/toolkits', async (_req, res) => {
|
|
4394
4399
|
try {
|
|
4395
|
-
|
|
4400
|
+
const c = await import('../integrations/composio/client.js');
|
|
4401
|
+
if (!c.isComposioEnabled()) {
|
|
4396
4402
|
res.json({ enabled: false, toolkits: [] });
|
|
4397
4403
|
return;
|
|
4398
4404
|
}
|
|
4399
|
-
const c = await import('../integrations/composio/client.js');
|
|
4400
4405
|
const [connected, configured, meta] = await Promise.all([
|
|
4401
4406
|
c.listConnectedToolkits(),
|
|
4402
4407
|
c.listToolkitSlugsWithAuthConfig(),
|