@byh3071/vhk 2.0.1 → 2.0.2

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 +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47,7 +47,8 @@ import {
47
47
 
48
48
  // src/index.ts
49
49
  import { Command, Help } from "commander";
50
- import { pathToFileURL } from "url";
50
+ import { fileURLToPath as fileURLToPath4 } from "url";
51
+ import fs13 from "fs";
51
52
  import chalk35 from "chalk";
52
53
  import inquirer14 from "inquirer";
53
54
 
@@ -7114,7 +7115,14 @@ program.action(async () => {
7114
7115
  return diff();
7115
7116
  }
7116
7117
  });
7117
- var isMainModule = !!process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href;
7118
+ var getRealPath = (p) => {
7119
+ try {
7120
+ return fs13.realpathSync(p);
7121
+ } catch {
7122
+ return p;
7123
+ }
7124
+ };
7125
+ var isMainModule = !!process.argv[1] && getRealPath(fileURLToPath4(import.meta.url)) === getRealPath(process.argv[1]);
7118
7126
  if (isMainModule) {
7119
7127
  try {
7120
7128
  const nlInput = detectNaturalLanguageInput(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byh3071/vhk",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Vibe Harness Kit — AI 코딩 도구·기기를 바꿔도 규칙·맥락이 따라가는 포터빌리티 CLI (sync: Cursor·Claude·Windsurf·Copilot·Antigravity / cloud 백업)",
5
5
  "bin": {
6
6
  "vhk": "dist/index.js",