@thingd/cli 0.52.3 → 0.52.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":"AAilEA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAqDvD"}
1
+ {"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAilEA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAyDvD"}
@@ -1975,15 +1975,20 @@ export async function runInteractiveCli() {
1975
1975
  // Background polling loop for real-time updates
1976
1976
  pollTimer = setInterval(async () => {
1977
1977
  if (connected && !formState?.active) {
1978
- const snapItemId = loadedItemId;
1979
- await fetchResources();
1980
- draw();
1981
- const tree = buildTree();
1982
- const n = tree[cursorIndex];
1983
- // Silently reload content if the same node is still actively viewed
1984
- if (n && snapItemId === n.id && n.type !== "category") {
1985
- await loadContent(n).catch(() => { });
1978
+ try {
1979
+ const snapItemId = loadedItemId;
1980
+ await fetchResources();
1981
+ draw();
1982
+ const tree = buildTree();
1983
+ const n = tree[cursorIndex];
1984
+ // Silently reload content if the same node is still actively viewed
1985
+ if (n && snapItemId === n.id && n.type !== "category") {
1986
+ await loadContent(n).catch(() => { });
1987
+ }
1988
+ }
1989
+ catch {
1990
+ // Prevent unhandled rejection from killing the process
1986
1991
  }
1987
1992
  }
1988
- }, 2000);
1993
+ }, 10_000);
1989
1994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/cli",
3
- "version": "0.52.3",
3
+ "version": "0.52.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.52.3"
48
+ "@thingd/sdk": "0.52.5"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24.0.0"