thingd-cli 0.10.0 → 0.11.0

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/dist/index.js CHANGED
@@ -15,7 +15,7 @@ Admin and operator CLI for thingd.
15
15
  Usage:
16
16
  thingd status [--url <url>]
17
17
  thingd tools --url <url>
18
- thingd install
18
+ thingd install [--raw] [--claude] [--cursor]
19
19
  thingd mcp [--path <path>] [--driver <driver>]
20
20
  thingd mcp-http [--path <path>] [--driver <driver>] [--host <host>] [--port <port>] [--auth-token <tok>] [--allow-unauthenticated]
21
21
  thingd search <query> [--collection <name>] [--limit <n>]
@@ -558,7 +558,12 @@ function resolveCliPath() {
558
558
  if (!scriptPath) {
559
559
  throw new Error("Could not detect thingd CLI path from process.argv[1].");
560
560
  }
561
- return resolve(scriptPath);
561
+ try {
562
+ return realpathSync(resolve(scriptPath));
563
+ }
564
+ catch {
565
+ return resolve(scriptPath);
566
+ }
562
567
  }
563
568
  let isMain = false;
564
569
  if (process.argv[1]) {
package/dist/install.js CHANGED
@@ -1,4 +1,4 @@
1
- import { existsSync, readFileSync, writeFileSync } from "node:fs";
1
+ import { existsSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
2
2
  import { homedir, platform } from "node:os";
3
3
  import { join, resolve } from "node:path";
4
4
  import { createInterface } from "node:readline/promises";
@@ -152,7 +152,12 @@ function resolveCliPath() {
152
152
  if (!scriptPath) {
153
153
  throw new Error("Could not detect thingd CLI path from process.argv[1].");
154
154
  }
155
- return resolve(scriptPath);
155
+ try {
156
+ return realpathSync(resolve(scriptPath));
157
+ }
158
+ catch {
159
+ return resolve(scriptPath);
160
+ }
156
161
  }
157
162
  function detectDriver() {
158
163
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thingd-cli",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Command-line interface, Interactive TUI Dashboard, and MCP server for thingd.",
5
5
  "type": "module",
6
6
  "author": "Sayan Mohsin",
@@ -33,7 +33,7 @@
33
33
  "cli-table3": "^0.6.5",
34
34
  "picocolors": "^1.1.1",
35
35
  "zod": "^4.4.3",
36
- "thingd": "0.10.0"
36
+ "thingd": "0.11.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=20"