@hemacharanpyla/infinitycli 1.0.3 → 1.0.5

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/package.json +2 -5
  2. package/server.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hemacharanpyla/infinitycli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "∞ Infinity CLI — terminal AI chat with real-time response timing",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,9 +34,6 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "express": "^4.21.0",
37
- "puppeteer": "^23.0.0"
38
- },
39
- "puppeteer": {
40
- "skipDownload": true
37
+ "puppeteer-core": "^23.0.0"
41
38
  }
42
39
  }
package/server.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import express from "express";
2
- import puppeteer from "puppeteer";
2
+ import puppeteer from "puppeteer-core";
3
3
  import { spawn } from "child_process";
4
4
  import { randomUUID } from "crypto";
5
5
  import { existsSync, readFileSync } from "fs";
@@ -10,7 +10,7 @@ import os from "os";
10
10
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
11
11
 
12
12
  const app = express();
13
- const publicPath = path.resolve(__dirname, "../public");
13
+ const publicPath = path.resolve(__dirname, "public");
14
14
 
15
15
  app.use(express.static(publicPath));
16
16
 
@@ -24,7 +24,7 @@ const CHROME_PATH =
24
24
  const CHROME_DEBUG_PORT = process.env.CHROME_DEBUG_PORT || "9222";
25
25
  const CHROME_USER_DATA_DIR =
26
26
  process.env.CHROME_USER_DATA_DIR || "C:\\chrome-debug";
27
- const COOKIES_PATH = process.env.COOKIES_PATH || path.resolve(__dirname, "../cookies/chatgpt.json");
27
+ const COOKIES_PATH = process.env.COOKIES_PATH || path.resolve(__dirname, "cookies/chatgpt.json");
28
28
  const HOME_COOKIES = path.resolve(os.homedir(), ".infinitycli", "cookies", "chatgpt.json");
29
29
 
30
30
  function positiveInt(value, fallback) {