@react-grab/gemini 0.1.8 → 0.1.9

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/cli.cjs CHANGED
@@ -2,9 +2,11 @@
2
2
  'use strict';
3
3
 
4
4
  var child_process = require('child_process');
5
+ var fs = require('fs');
5
6
  var path = require('path');
6
7
 
7
- var scriptDir = path.dirname(process.argv[1]);
8
+ var realScriptPath = fs.realpathSync(process.argv[1]);
9
+ var scriptDir = path.dirname(realScriptPath);
8
10
  var serverPath = path.join(scriptDir, "server.cjs");
9
11
  var child = child_process.spawn(process.execPath, [serverPath], {
10
12
  detached: true,
package/dist/cli.js CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from 'child_process';
3
+ import { realpathSync } from 'fs';
3
4
  import { dirname, join } from 'path';
4
5
 
5
- var scriptDir = dirname(process.argv[1]);
6
+ var realScriptPath = realpathSync(process.argv[1]);
7
+ var scriptDir = dirname(realScriptPath);
6
8
  var serverPath = join(scriptDir, "server.cjs");
7
9
  var child = spawn(process.execPath, [serverPath], {
8
10
  detached: true,
package/dist/server.cjs CHANGED
@@ -8374,7 +8374,7 @@ async function fkill(inputs, options = {}) {
8374
8374
  }
8375
8375
  }
8376
8376
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
8377
- var VERSION = "0.1.8";
8377
+ var VERSION = "0.1.9";
8378
8378
  var checkIfRelayServerIsRunning = async (port, token) => {
8379
8379
  try {
8380
8380
  const healthUrl = token ? `http://localhost:${port}/health?${RELAY_TOKEN_PARAM}=${encodeURIComponent(token)}` : `http://localhost:${port}/health`;
package/dist/server.js CHANGED
@@ -8363,7 +8363,7 @@ async function fkill(inputs, options = {}) {
8363
8363
  }
8364
8364
  }
8365
8365
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
8366
- var VERSION = "0.1.8";
8366
+ var VERSION = "0.1.9";
8367
8367
  var checkIfRelayServerIsRunning = async (port, token) => {
8368
8368
  try {
8369
8369
  const healthUrl = token ? `http://localhost:${port}/health?${RELAY_TOKEN_PARAM}=${encodeURIComponent(token)}` : `http://localhost:${port}/health`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-grab/gemini",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "bin": {
5
5
  "react-grab-gemini": "./dist/cli.cjs"
6
6
  },
@@ -20,18 +20,23 @@
20
20
  "import": "./dist/handler.js",
21
21
  "require": "./dist/handler.cjs"
22
22
  },
23
+ "./server": {
24
+ "types": "./dist/server.d.ts",
25
+ "import": "./dist/server.js",
26
+ "require": "./dist/server.cjs"
27
+ },
23
28
  "./dist/*": "./dist/*.js",
24
29
  "./dist/*.js": "./dist/*.js"
25
30
  },
26
31
  "dependencies": {
27
32
  "execa": "^9.6.0",
28
- "@react-grab/relay": "0.1.8",
29
- "react-grab": "0.1.8"
33
+ "react-grab": "0.1.9",
34
+ "@react-grab/relay": "0.1.9"
30
35
  },
31
36
  "devDependencies": {
32
37
  "@types/node": "^22.10.7",
33
38
  "tsup": "^8.4.0",
34
- "@react-grab/utils": "0.1.8"
39
+ "@react-grab/utils": "0.1.9"
35
40
  },
36
41
  "scripts": {
37
42
  "dev": "tsup --watch",