openfox 1.6.41 → 1.6.42

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.
@@ -1,6 +1,8 @@
1
1
  // src/cli/main.ts
2
2
  import { parseArgs } from "util";
3
3
  import { spawnSync } from "child_process";
4
+ import { fileURLToPath } from "url";
5
+ import { dirname, join } from "path";
4
6
  import { select, password, isCancel, cancel } from "@clack/prompts";
5
7
  import { generateKeyPairSync } from "crypto";
6
8
  import { writeFile } from "fs/promises";
@@ -127,11 +129,11 @@ async function runCli(options) {
127
129
  const [command] = positionals;
128
130
  if (values.version && !command) {
129
131
  const { readFileSync } = await import("fs");
130
- const { fileURLToPath } = await import("url");
131
- const { dirname, join } = await import("path");
132
- const __filename = fileURLToPath(import.meta.url);
133
- const __dirname = dirname(__filename);
134
- const packageJsonPath = join(__dirname, "../package.json");
132
+ const { fileURLToPath: fileURLToPath2 } = await import("url");
133
+ const { dirname: dirname2, join: join2 } = await import("path");
134
+ const __filename = fileURLToPath2(import.meta.url);
135
+ const __dirname = dirname2(__filename);
136
+ const packageJsonPath = join2(__dirname, "../package.json");
135
137
  const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
136
138
  console.log(packageJson.version);
137
139
  process.exit(0);
@@ -162,7 +164,10 @@ async function runCli(options) {
162
164
  break;
163
165
  }
164
166
  case "update": {
165
- const result = spawnSync("./update.sh", [], { shell: true, stdio: "inherit" });
167
+ const __filename = fileURLToPath(import.meta.url);
168
+ const __dirname = dirname(__filename);
169
+ const updateScriptPath = join(__dirname, "cli", "update.sh");
170
+ const result = spawnSync(updateScriptPath, [], { shell: true, stdio: "inherit" });
166
171
  if (result.status !== 0) {
167
172
  process.exit(result.status ?? 1);
168
173
  }
@@ -174,7 +179,7 @@ async function runCli(options) {
174
179
  if (!configExists) {
175
180
  await runNetworkSetup(mode);
176
181
  }
177
- const { runServe } = await import("./serve-PT3WTJEB.js");
182
+ const { runServe } = await import("./serve-HFJLUGA3.js");
178
183
  await runServe({
179
184
  mode,
180
185
  port: values.port ? parseInt(values.port) : void 0,
@@ -187,4 +192,4 @@ async function runCli(options) {
187
192
  export {
188
193
  runCli
189
194
  };
190
- //# sourceMappingURL=chunk-VW5I25YS.js.map
195
+ //# sourceMappingURL=chunk-K3CI5UEC.js.map
@@ -5479,7 +5479,7 @@ function createTerminalRoutes() {
5479
5479
  }
5480
5480
 
5481
5481
  // src/constants.ts
5482
- var VERSION = "1.6.41";
5482
+ var VERSION = "1.6.42";
5483
5483
 
5484
5484
  // src/server/index.ts
5485
5485
  var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
@@ -6375,4 +6375,4 @@ export {
6375
6375
  createServerHandle,
6376
6376
  createServer
6377
6377
  };
6378
- //# sourceMappingURL=chunk-KYRCBDPU.js.map
6378
+ //# sourceMappingURL=chunk-MIG4XMTI.js.map
package/dist/cli/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-VW5I25YS.js";
4
+ } from "../chunk-K3CI5UEC.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-PNBH3RAX.js";
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-VW5I25YS.js";
4
+ } from "../chunk-K3CI5UEC.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-PNBH3RAX.js";
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.41",
3
+ "version": "1.6.42",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-KYRCBDPU.js";
9
+ } from "./chunk-MIG4XMTI.js";
10
10
  import "./chunk-BHSTSA7U.js";
11
11
  import "./chunk-VCVHYZZS.js";
12
12
  import "./chunk-QFOT3J6I.js";
@@ -188,4 +188,4 @@ async function runServe(options) {
188
188
  export {
189
189
  runServe
190
190
  };
191
- //# sourceMappingURL=serve-PT3WTJEB.js.map
191
+ //# sourceMappingURL=serve-HFJLUGA3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-KYRCBDPU.js";
4
+ } from "../chunk-MIG4XMTI.js";
5
5
  import "../chunk-BHSTSA7U.js";
6
6
  import "../chunk-VCVHYZZS.js";
7
7
  import "../chunk-QFOT3J6I.js";