@thingd/cli 0.50.4 → 0.50.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AA6gEA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoDvD"}
1
+ {"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAmiEA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoDvD"}
@@ -1678,19 +1678,29 @@ async function handleConnect(node) {
1678
1678
  });
1679
1679
  return;
1680
1680
  }
1681
- // No instances found — fall through to manual form
1681
+ // No instances found — try saved URL or show error
1682
+ if (cloudCfg.instanceUrl) {
1683
+ await connectToDriver("cloud", cloudCfg.instanceUrl, cloudCfg.instanceUrl, cloudCfg.token);
1684
+ return;
1685
+ }
1682
1686
  viewerLines = [
1683
1687
  pc.yellow("No cloud instances found."),
1684
- pc.dim("Create one at https://thingd.cloud, or enter the Cloud URL manually."),
1688
+ pc.dim("Create one at https://thingd.cloud, or press l to logout and re-enter credentials."),
1685
1689
  ];
1686
1690
  draw();
1691
+ return;
1687
1692
  }
1688
1693
  catch {
1694
+ if (cloudCfg.instanceUrl) {
1695
+ await connectToDriver("cloud", cloudCfg.instanceUrl, cloudCfg.instanceUrl, cloudCfg.token);
1696
+ return;
1697
+ }
1689
1698
  viewerLines = [
1690
1699
  pc.yellow("Could not fetch cloud instances."),
1691
- pc.dim("Enter the Cloud URL manually."),
1700
+ pc.dim("Check your network or press l to logout and re-enter credentials."),
1692
1701
  ];
1693
1702
  draw();
1703
+ return;
1694
1704
  }
1695
1705
  }
1696
1706
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/cli",
3
- "version": "0.50.4",
3
+ "version": "0.50.5",
4
4
  "description": "CLI, Interactive TUI Dashboard, and MCP server for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "homepage": "https://engine.thingd.cloud",
@@ -45,7 +45,7 @@
45
45
  "cli-table3": "^0.6.5",
46
46
  "picocolors": "^1.1.1",
47
47
  "zod": "^4.4.3",
48
- "@thingd/sdk": "0.50.4"
48
+ "@thingd/sdk": "0.50.5"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24.0.0"