@skilly-hand/skilly-hand 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/CHANGELOG.md CHANGED
@@ -16,6 +16,21 @@ All notable changes to this project are documented in this file.
16
16
  ### Removed
17
17
  - _None._
18
18
 
19
+ ## [0.6.1] - 2026-04-04
20
+ [View on npm](https://www.npmjs.com/package/@skilly-hand/skilly-hand/v/0.6.1)
21
+
22
+ ### Added
23
+ - _None._
24
+
25
+ ### Changed
26
+ - _None._
27
+
28
+ ### Fixed
29
+ - _None._
30
+
31
+ ### Removed
32
+ - _None._
33
+
19
34
  ## [0.6.0] - 2026-04-03
20
35
  [View on npm](https://www.npmjs.com/package/@skilly-hand/skilly-hand/v/0.6.0)
21
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skilly-hand/skilly-hand",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "license": "CC-BY-NC-4.0",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ import fs from "node:fs";
2
3
  import path from "node:path";
3
4
  import { createRequire } from "node:module";
4
- import { pathToFileURL } from "node:url";
5
+ import { fileURLToPath } from "node:url";
5
6
  import { checkbox as inquirerCheckbox, confirm as inquirerConfirm, select as inquirerSelect } from "@inquirer/prompts";
6
7
  import { loadAllSkills } from "../../catalog/src/index.js";
7
8
  import {
@@ -19,7 +20,17 @@ const { version } = require("../../../package.json");
19
20
 
20
21
  function isExecutedDirectly(metaUrl, argv1) {
21
22
  if (!argv1) return false;
22
- return metaUrl === pathToFileURL(argv1).href;
23
+ const normalizePath = (filePath) => {
24
+ const absolutePath = path.resolve(filePath);
25
+ try {
26
+ const realPath = fs.realpathSync.native ? fs.realpathSync.native(absolutePath) : fs.realpathSync(absolutePath);
27
+ return path.normalize(realPath);
28
+ } catch {
29
+ return path.normalize(absolutePath);
30
+ }
31
+ };
32
+
33
+ return normalizePath(fileURLToPath(metaUrl)) === normalizePath(argv1);
23
34
  }
24
35
 
25
36
  export function parseArgs(argv) {