@floomhq/signaldash 0.11.0 → 0.11.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.
Files changed (2) hide show
  1. package/bin/sd.mjs +7 -0
  2. package/package.json +1 -1
package/bin/sd.mjs CHANGED
@@ -110,6 +110,13 @@ export async function cmdConnect(provider, dependencies = {}) {
110
110
  process.exitCode = 1;
111
111
  return;
112
112
  }
113
+ // Check first: if the human already authenticated (or is already connected),
114
+ // confirm that instead of minting a confusing second link.
115
+ const pre = await request(`/connect/${provider}/status`, undefined, { method: "GET" });
116
+ if (pre.status === 200 && pre.json.connected) {
117
+ log(` Connected ${provider}${pre.json.name ? `: ${pre.json.name}` : ""}`);
118
+ return;
119
+ }
113
120
  const r = await request(`/connect/${provider}`, {});
114
121
  if (r.status >= 300) {
115
122
  error(r.json.error === "login required"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floomhq/signaldash",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Secure LinkedIn and WhatsApp MCP access for AI agents",
5
5
  "type": "module",
6
6
  "bin": {