ghostdock 0.0.9 → 0.0.10

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/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8555,12 +8555,16 @@ var BUILTIN_SKILL_NAMES = GENERATED_SKILL_NAMES;
8555
8555
  // src/cli-name.ts
8556
8556
  import { basename } from "node:path";
8557
8557
  var CLI_NAMES = ["ghostdock", "gdock"];
8558
+ var NPX_CACHE_SEGMENT = /[\\/]_npx[\\/]/;
8558
8559
  function getCliName(argv = process.argv) {
8559
- const invoked = basename(argv[1] ?? "");
8560
+ const entry = argv[1] ?? "";
8561
+ if (NPX_CACHE_SEGMENT.test(entry))
8562
+ return "npx ghostdock";
8563
+ const invoked = basename(entry);
8560
8564
  return CLI_NAMES.find((name) => name === invoked) ?? "ghostdock";
8561
8565
  }
8562
8566
  // package.json
8563
- var version = "0.0.9";
8567
+ var version = "0.0.10";
8564
8568
  var package_default = {
8565
8569
  name: "ghostdock",
8566
8570
  description: "Ghostdock CLI — device login and agent tool invocation from the command line",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ghostdock",
3
3
  "description": "Ghostdock CLI — device login and agent tool invocation from the command line",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "ghostdock": "dist/index.js",