@hasna/connectors 0.6.0 → 0.6.1

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/bin/index.js CHANGED
@@ -5448,11 +5448,25 @@ Dashboard not found at: ${dashboardDir}`);
5448
5448
  const redirectUri = `http://localhost:${port}/oauth/${name}/callback`;
5449
5449
  await exchangeOAuthCode(name, code, redirectUri);
5450
5450
  logActivity("oauth_connected", name);
5451
- return htmlResponse(`<!DOCTYPE html><html><head><meta charset="utf-8"></head><body style="font-family:system-ui,sans-serif;display:flex;justify-content:center;align-items:center;height:100vh;margin:0;background:#0a0a0a;color:#e5e5e5;">
5452
- <div style="text-align:center;">
5453
- <h2 style="color:#22c55e;">Connected!</h2>
5454
- <p style="color:#888;"><strong>${name}</strong> is now authenticated.</p>
5455
- <p style="color:#666;font-size:14px;">You can close this window and return to the dashboard.</p>
5451
+ return htmlResponse(`<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
5452
+ <style>
5453
+ * { margin:0; padding:0; box-sizing:border-box; }
5454
+ body { font-family:ui-sans-serif,system-ui,-apple-system,sans-serif; display:flex; justify-content:center; align-items:center; min-height:100vh; background:#09090b; color:#fafafa; }
5455
+ .card { background:#18181b; border:1px solid #27272a; border-radius:12px; padding:48px 40px; max-width:420px; text-align:center; }
5456
+ .icon { width:64px; height:64px; border-radius:50%; background:#052e16; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; }
5457
+ .icon svg { width:32px; height:32px; color:#22c55e; }
5458
+ h2 { font-size:24px; font-weight:600; margin-bottom:8px; color:#fafafa; }
5459
+ .connector { color:#22c55e; font-weight:600; }
5460
+ .subtitle { color:#a1a1aa; font-size:15px; margin-top:12px; line-height:1.5; }
5461
+ .hint { color:#52525b; font-size:13px; margin-top:24px; }
5462
+ .cmd { background:#27272a; color:#e4e4e7; padding:2px 8px; border-radius:4px; font-family:ui-monospace,monospace; font-size:12px; }
5463
+ </style>
5464
+ </head><body>
5465
+ <div class="card">
5466
+ <div class="icon"><svg fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/></svg></div>
5467
+ <h2>Connected!</h2>
5468
+ <p class="subtitle"><span class="connector">${name}</span> is now authenticated and ready to use.</p>
5469
+ <p class="hint">You can close this window.<br>Try <span class="cmd">connectors run ${name} --help</span></p>
5456
5470
  <script>
5457
5471
  if (window.opener) {
5458
5472
  window.opener.postMessage({ type: 'oauth-complete', connector: '${name}' }, 'http://localhost:${port}');
@@ -7370,7 +7384,7 @@ var PRESETS = {
7370
7384
  commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
7371
7385
  };
7372
7386
  var program2 = new Command;
7373
- program2.name("connectors").description("Install API connectors for your project").version("0.6.0").enablePositionalOptions();
7387
+ program2.name("connectors").description("Install API connectors for your project").version("0.6.1").enablePositionalOptions();
7374
7388
  program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
7375
7389
  if (!isTTY) {
7376
7390
  console.log(`Non-interactive environment detected. Use a subcommand:
package/bin/mcp.js CHANGED
@@ -20852,7 +20852,7 @@ async function getConnectorCommandHelp(name, command) {
20852
20852
  loadConnectorVersions();
20853
20853
  var server = new McpServer({
20854
20854
  name: "connectors",
20855
- version: "0.6.0"
20855
+ version: "0.6.1"
20856
20856
  });
20857
20857
  server.registerTool("search_connectors", {
20858
20858
  title: "Search Connectors",
package/bin/serve.js CHANGED
@@ -1926,11 +1926,25 @@ Dashboard not found at: ${dashboardDir}`);
1926
1926
  const redirectUri = `http://localhost:${port}/oauth/${name}/callback`;
1927
1927
  await exchangeOAuthCode(name, code, redirectUri);
1928
1928
  logActivity("oauth_connected", name);
1929
- return htmlResponse(`<!DOCTYPE html><html><head><meta charset="utf-8"></head><body style="font-family:system-ui,sans-serif;display:flex;justify-content:center;align-items:center;height:100vh;margin:0;background:#0a0a0a;color:#e5e5e5;">
1930
- <div style="text-align:center;">
1931
- <h2 style="color:#22c55e;">Connected!</h2>
1932
- <p style="color:#888;"><strong>${name}</strong> is now authenticated.</p>
1933
- <p style="color:#666;font-size:14px;">You can close this window and return to the dashboard.</p>
1929
+ return htmlResponse(`<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
1930
+ <style>
1931
+ * { margin:0; padding:0; box-sizing:border-box; }
1932
+ body { font-family:ui-sans-serif,system-ui,-apple-system,sans-serif; display:flex; justify-content:center; align-items:center; min-height:100vh; background:#09090b; color:#fafafa; }
1933
+ .card { background:#18181b; border:1px solid #27272a; border-radius:12px; padding:48px 40px; max-width:420px; text-align:center; }
1934
+ .icon { width:64px; height:64px; border-radius:50%; background:#052e16; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; }
1935
+ .icon svg { width:32px; height:32px; color:#22c55e; }
1936
+ h2 { font-size:24px; font-weight:600; margin-bottom:8px; color:#fafafa; }
1937
+ .connector { color:#22c55e; font-weight:600; }
1938
+ .subtitle { color:#a1a1aa; font-size:15px; margin-top:12px; line-height:1.5; }
1939
+ .hint { color:#52525b; font-size:13px; margin-top:24px; }
1940
+ .cmd { background:#27272a; color:#e4e4e7; padding:2px 8px; border-radius:4px; font-family:ui-monospace,monospace; font-size:12px; }
1941
+ </style>
1942
+ </head><body>
1943
+ <div class="card">
1944
+ <div class="icon"><svg fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/></svg></div>
1945
+ <h2>Connected!</h2>
1946
+ <p class="subtitle"><span class="connector">${name}</span> is now authenticated and ready to use.</p>
1947
+ <p class="hint">You can close this window.<br>Try <span class="cmd">connectors run ${name} --help</span></p>
1934
1948
  <script>
1935
1949
  if (window.opener) {
1936
1950
  window.opener.postMessage({ type: 'oauth-complete', connector: '${name}' }, 'http://localhost:${port}');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/connectors",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Open source connector library - Install API connectors with a single command",
5
5
  "type": "module",
6
6
  "bin": {