@vovy-ai/go 0.1.0 → 0.1.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 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { realpathSync } from "fs";
5
+ import { fileURLToPath } from "url";
4
6
  import { parseArgs } from "util";
5
7
  import { ADAPTERS as ADAPTERS2 } from "@vovy-ai/host-detect";
6
8
 
@@ -258,7 +260,14 @@ async function main() {
258
260
  process.exitCode = 1;
259
261
  }
260
262
  }
261
- if (import.meta.url === `file://${process.argv[1]}`) {
263
+ function isMainModule() {
264
+ try {
265
+ return realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1] ?? "");
266
+ } catch {
267
+ return false;
268
+ }
269
+ }
270
+ if (isMainModule()) {
262
271
  main().catch((error) => {
263
272
  console.error(`vovy: ${error instanceof Error ? error.message : String(error)}`);
264
273
  process.exitCode = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vovy-ai/go",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Free, forever, drop-in MCP server + skill pack that teaches non-technical founders to vibe code safely. npx @vovy-ai/go install",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "@vovy-ai/host-detect": "0.1.0",
15
- "@vovy-ai/skills": "0.1.0"
15
+ "@vovy-ai/skills": "0.2.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "tsup": "^8.3.5",