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.
@@ -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
- res.json({ enabled: Boolean(process.env.COMPOSIO_API_KEY) });
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
- if (!process.env.COMPOSIO_API_KEY) {
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",