openfox 1.0.5 → 1.0.6

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.
@@ -129,7 +129,7 @@ async function runCli(options) {
129
129
  await runInitWithSelect(mode);
130
130
  }
131
131
  }
132
- const { runServe } = await import("./serve-3YE76OJH.js");
132
+ const { runServe } = await import("./serve-X5CLO7YU.js");
133
133
  await runServe({
134
134
  mode,
135
135
  port: values.port ? parseInt(values.port) : void 0,
@@ -142,4 +142,4 @@ async function runCli(options) {
142
142
  export {
143
143
  runCli
144
144
  };
145
- //# sourceMappingURL=chunk-WCC3HABH.js.map
145
+ //# sourceMappingURL=chunk-ZGPWTTOV.js.map
package/dist/cli/dev.js CHANGED
@@ -1,13 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-WCC3HABH.js";
4
+ } from "../chunk-ZGPWTTOV.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-PNBH3RAX.js";
8
8
 
9
9
  // src/cli/dev.ts
10
+ import { readFileSync } from "fs";
10
11
  var mode = process.env["OPENFOX_MODE"] ?? "development";
12
+ var pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
13
+ process.env["VERSION"] = pkg.version + "-dev";
11
14
  runCli({ mode }).catch((error) => {
12
15
  logger.error("CLI fatal error", { error: error instanceof Error ? error.message : String(error) });
13
16
  process.exit(1);
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-WCC3HABH.js";
4
+ } from "../chunk-ZGPWTTOV.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.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,17 +39,9 @@ import os from "os";
39
39
  import { statSync } from "fs";
40
40
 
41
41
  // src/constants.ts
42
- import { readFileSync, existsSync } from "fs";
43
- import { join } from "path";
44
- var pkgPath = join(process.cwd(), "package.json");
45
- var pkg = existsSync(pkgPath) ? JSON.parse(readFileSync(pkgPath, "utf-8")) : { version: "0.0.0" };
46
- var isDev = process.env["OPENFOX_DEV"] === "true";
47
- var VERSION = isDev ? `${pkg.version}-dev` : pkg.version;
42
+ var VERSION = "1.0.6";
48
43
 
49
44
  // src/server/utils/network.ts
50
- function getVersion() {
51
- return VERSION;
52
- }
53
45
  function getNetworkInterfaces() {
54
46
  const interfaces = os.networkInterfaces();
55
47
  const result = [];
@@ -110,7 +102,7 @@ function displayStartupBanner(config) {
110
102
  const { host, port, databasePath, configPath } = config;
111
103
  const isLocalhost = host === "127.0.0.1";
112
104
  console.log(`
113
- \u{1F98A} OpenFox v${getVersion()}
105
+ \u{1F98A} OpenFox v${VERSION}
114
106
  `);
115
107
  if (isLocalhost) {
116
108
  console.log(` \u{1F310} Server: http://localhost:${port}`);
@@ -198,4 +190,4 @@ async function runServe(options) {
198
190
  export {
199
191
  runServe
200
192
  };
201
- //# sourceMappingURL=serve-3YE76OJH.js.map
193
+ //# sourceMappingURL=serve-X5CLO7YU.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {