@react-grab/codex 0.0.83 → 0.0.85

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/server.cjs CHANGED
@@ -22,7 +22,12 @@ var DEFAULT_PORT = 7567;
22
22
 
23
23
  // ../utils/dist/server.js
24
24
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
25
- var VERSION = "0.0.83";
25
+ var VERSION = "0.0.85";
26
+ try {
27
+ fetch(`https://www.react-grab.com/api/version?source=codex&t=${Date.now()}`).catch(() => {
28
+ });
29
+ } catch {
30
+ }
26
31
  var codexInstance = null;
27
32
  var threadMap = /* @__PURE__ */ new Map();
28
33
  var abortControllers = /* @__PURE__ */ new Map();
@@ -150,7 +155,9 @@ var startServer = async (port = DEFAULT_PORT) => {
150
155
  await sleep(100);
151
156
  const honoApplication = createServer();
152
157
  nodeServer.serve({ fetch: honoApplication.fetch, port });
153
- console.log(`${pc__default.default.magenta("\u269B")} ${pc__default.default.bold("React Grab")} ${pc__default.default.gray(VERSION)} ${pc__default.default.dim("(Codex)")}`);
158
+ console.log(
159
+ `${pc__default.default.magenta("\u269B")} ${pc__default.default.bold("React Grab")} ${pc__default.default.gray(VERSION)} ${pc__default.default.dim("(Codex)")}`
160
+ );
154
161
  console.log(`- Local: ${pc__default.default.cyan(`http://localhost:${port}`)}`);
155
162
  };
156
163
  if ((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('server.cjs', document.baseURI).href)) === url.pathToFileURL(process.argv[1]).href) {
package/dist/server.js CHANGED
@@ -14,7 +14,12 @@ var DEFAULT_PORT = 7567;
14
14
 
15
15
  // ../utils/dist/server.js
16
16
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
17
- var VERSION = "0.0.83";
17
+ var VERSION = "0.0.85";
18
+ try {
19
+ fetch(`https://www.react-grab.com/api/version?source=codex&t=${Date.now()}`).catch(() => {
20
+ });
21
+ } catch {
22
+ }
18
23
  var codexInstance = null;
19
24
  var threadMap = /* @__PURE__ */ new Map();
20
25
  var abortControllers = /* @__PURE__ */ new Map();
@@ -142,7 +147,9 @@ var startServer = async (port = DEFAULT_PORT) => {
142
147
  await sleep(100);
143
148
  const honoApplication = createServer();
144
149
  serve({ fetch: honoApplication.fetch, port });
145
- console.log(`${pc.magenta("\u269B")} ${pc.bold("React Grab")} ${pc.gray(VERSION)} ${pc.dim("(Codex)")}`);
150
+ console.log(
151
+ `${pc.magenta("\u269B")} ${pc.bold("React Grab")} ${pc.gray(VERSION)} ${pc.dim("(Codex)")}`
152
+ );
146
153
  console.log(`- Local: ${pc.cyan(`http://localhost:${port}`)}`);
147
154
  };
148
155
  if (import.meta.url === pathToFileURL(process.argv[1]).href) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-grab/codex",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "react-grab-codex": "./dist/cli.cjs"
@@ -24,18 +24,17 @@
24
24
  "dist"
25
25
  ],
26
26
  "devDependencies": {
27
- "@types/cross-spawn": "^6.0.6",
28
27
  "tsup": "^8.4.0",
29
- "@react-grab/utils": "0.0.83"
28
+ "@react-grab/utils": "0.0.85"
30
29
  },
31
30
  "dependencies": {
32
31
  "@hono/node-server": "^1.19.6",
33
- "cross-spawn": "^7.0.6",
32
+ "execa": "^9.6.0",
34
33
  "@openai/codex-sdk": "^0.66.0",
35
34
  "fkill": "^9.0.0",
36
35
  "hono": "^4.0.0",
37
36
  "picocolors": "^1.1.1",
38
- "react-grab": "0.0.83"
37
+ "react-grab": "0.0.85"
39
38
  },
40
39
  "scripts": {
41
40
  "dev": "tsup --watch",