openfox 1.6.65 → 1.6.67

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.
@@ -5058,7 +5058,7 @@ function createTerminalRoutes() {
5058
5058
  }
5059
5059
 
5060
5060
  // src/constants.ts
5061
- var VERSION = "1.6.65";
5061
+ var VERSION = "1.6.67";
5062
5062
 
5063
5063
  // src/server/index.ts
5064
5064
  var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
@@ -5972,4 +5972,4 @@ export {
5972
5972
  createServerHandle,
5973
5973
  createServer
5974
5974
  };
5975
- //# sourceMappingURL=chunk-A2Q6JCPK.js.map
5975
+ //# sourceMappingURL=chunk-PMSVEKQ5.js.map
@@ -179,7 +179,7 @@ async function runCli(options) {
179
179
  if (!configExists) {
180
180
  await runNetworkSetup(mode);
181
181
  }
182
- const { runServe } = await import("./serve-NM33QHGG.js");
182
+ const { runServe } = await import("./serve-3RNFK76D.js");
183
183
  await runServe({
184
184
  mode,
185
185
  port: values.port ? parseInt(values.port) : void 0,
@@ -192,4 +192,4 @@ async function runCli(options) {
192
192
  export {
193
193
  runCli
194
194
  };
195
- //# sourceMappingURL=chunk-2F2BUO46.js.map
195
+ //# sourceMappingURL=chunk-WK2SRZRY.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-2F2BUO46.js";
4
+ } from "../chunk-WK2SRZRY.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-2F2BUO46.js";
4
+ } from "../chunk-WK2SRZRY.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.65",
3
+ "version": "1.6.67",
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-A2Q6JCPK.js";
9
+ } from "./chunk-PMSVEKQ5.js";
10
10
  import "./chunk-7XO4OW2P.js";
11
11
  import "./chunk-PU4AOT3E.js";
12
12
  import "./chunk-NRUMWHLX.js";
@@ -188,4 +188,4 @@ async function runServe(options) {
188
188
  export {
189
189
  runServe
190
190
  };
191
- //# sourceMappingURL=serve-NM33QHGG.js.map
191
+ //# sourceMappingURL=serve-3RNFK76D.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-A2Q6JCPK.js";
4
+ } from "../chunk-PMSVEKQ5.js";
5
5
  import "../chunk-7XO4OW2P.js";
6
6
  import "../chunk-PU4AOT3E.js";
7
7
  import "../chunk-NRUMWHLX.js";
@@ -7,6 +7,7 @@
7
7
  window.__foxInspectEnabled = true;
8
8
  window.__foxSentPending = false;
9
9
  window.__foxPopupOpen = false;
10
+ window.__foxHighlightedEl = null;
10
11
 
11
12
  var overlayStyle = document.createElement('style');
12
13
  overlayStyle.textContent = [
@@ -50,9 +51,9 @@
50
51
  }
51
52
 
52
53
  function clearHighlights() {
53
- var highlighted = document.querySelectorAll('.__fox-highlight');
54
- for (var i = 0; i < highlighted.length; i++) {
55
- highlighted[i].classList.remove('__fox-highlight');
54
+ if (window.__foxHighlightedEl) {
55
+ window.__foxHighlightedEl.classList.remove('__fox-highlight');
56
+ window.__foxHighlightedEl = null;
56
57
  }
57
58
  }
58
59
 
@@ -98,13 +99,6 @@
98
99
  }
99
100
  var rect = el.getBoundingClientRect();
100
101
  var tagName = el.tagName ? el.tagName.toLowerCase() : '';
101
- // Avoid capturing the highlight overlay in xpath/outerHTML
102
- if (el.classList && el.classList.contains('__fox-highlight')) {
103
- var parent = el.parentNode;
104
- if (parent) {
105
- return buildElementData(parent);
106
- }
107
- }
108
102
  return {
109
103
  tag: tagName,
110
104
  id: el.id || null,
@@ -211,14 +205,9 @@
211
205
  if (!window.__foxInspectMode || window.__foxPopupOpen) return;
212
206
  if (e.target === document.documentElement || e.target === document.body) return;
213
207
  if (overlay.contains(e.target)) return;
208
+ clearHighlights();
214
209
  e.target.classList.add('__fox-highlight');
215
- }, true);
216
-
217
- document.addEventListener('mouseout', function(e) {
218
- if (!window.__foxInspectMode || window.__foxPopupOpen) return;
219
- if (e.target === document.documentElement || e.target === document.body) return;
220
- if (overlay.contains(e.target)) return;
221
- e.target.classList.remove('__fox-highlight');
210
+ window.__foxHighlightedEl = e.target;
222
211
  }, true);
223
212
 
224
213
  document.addEventListener('click', function(e) {
@@ -228,7 +217,9 @@
228
217
 
229
218
  e.preventDefault();
230
219
  e.stopPropagation();
231
- showPopup(e.target, e.clientX, e.clientY);
220
+ var el = window.__foxHighlightedEl;
221
+ if (!el) return;
222
+ showPopup(el, e.clientX, e.clientY);
232
223
  }, true);
233
224
 
234
225
  document.addEventListener('keydown', function(e) {
@@ -7,6 +7,7 @@
7
7
  window.__foxInspectEnabled = true;
8
8
  window.__foxSentPending = false;
9
9
  window.__foxPopupOpen = false;
10
+ window.__foxHighlightedEl = null;
10
11
 
11
12
  var overlayStyle = document.createElement('style');
12
13
  overlayStyle.textContent = [
@@ -50,9 +51,9 @@
50
51
  }
51
52
 
52
53
  function clearHighlights() {
53
- var highlighted = document.querySelectorAll('.__fox-highlight');
54
- for (var i = 0; i < highlighted.length; i++) {
55
- highlighted[i].classList.remove('__fox-highlight');
54
+ if (window.__foxHighlightedEl) {
55
+ window.__foxHighlightedEl.classList.remove('__fox-highlight');
56
+ window.__foxHighlightedEl = null;
56
57
  }
57
58
  }
58
59
 
@@ -98,13 +99,6 @@
98
99
  }
99
100
  var rect = el.getBoundingClientRect();
100
101
  var tagName = el.tagName ? el.tagName.toLowerCase() : '';
101
- // Avoid capturing the highlight overlay in xpath/outerHTML
102
- if (el.classList && el.classList.contains('__fox-highlight')) {
103
- var parent = el.parentNode;
104
- if (parent) {
105
- return buildElementData(parent);
106
- }
107
- }
108
102
  return {
109
103
  tag: tagName,
110
104
  id: el.id || null,
@@ -211,14 +205,9 @@
211
205
  if (!window.__foxInspectMode || window.__foxPopupOpen) return;
212
206
  if (e.target === document.documentElement || e.target === document.body) return;
213
207
  if (overlay.contains(e.target)) return;
208
+ clearHighlights();
214
209
  e.target.classList.add('__fox-highlight');
215
- }, true);
216
-
217
- document.addEventListener('mouseout', function(e) {
218
- if (!window.__foxInspectMode || window.__foxPopupOpen) return;
219
- if (e.target === document.documentElement || e.target === document.body) return;
220
- if (overlay.contains(e.target)) return;
221
- e.target.classList.remove('__fox-highlight');
210
+ window.__foxHighlightedEl = e.target;
222
211
  }, true);
223
212
 
224
213
  document.addEventListener('click', function(e) {
@@ -228,7 +217,9 @@
228
217
 
229
218
  e.preventDefault();
230
219
  e.stopPropagation();
231
- showPopup(e.target, e.clientX, e.clientY);
220
+ var el = window.__foxHighlightedEl;
221
+ if (!el) return;
222
+ showPopup(el, e.clientX, e.clientY);
232
223
  }, true);
233
224
 
234
225
  document.addEventListener('keydown', function(e) {
package/dist/web/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),d={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>d[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"d756f8b43030c25aaa97db8413d17b59"},{url:"__inspect__.js",revision:"614b4def6866227cbcdcd14de0892aae"},{url:"assets/index-KbZgYzd8.js",revision:null},{url:"assets/index-CRQDugUa.css",revision:null},{url:"assets/html2canvas.esm-QH1iLAAe.js",revision:null},{url:"assets/openfox-192.png",revision:"79feeb86d692c274854e37959a7dae67"},{url:"assets/openfox-512.png",revision:"fee24b214220594b4f595a467e73036e"},{url:"manifest.webmanifest",revision:"c25f372c782e623ab1e768a8dfe350ca"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
1
+ if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>c[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"d756f8b43030c25aaa97db8413d17b59"},{url:"__inspect__.js",revision:"dcb0a7b70a0153a18cdc0794e39ee0d6"},{url:"assets/index-KbZgYzd8.js",revision:null},{url:"assets/index-CRQDugUa.css",revision:null},{url:"assets/html2canvas.esm-QH1iLAAe.js",revision:null},{url:"assets/openfox-192.png",revision:"79feeb86d692c274854e37959a7dae67"},{url:"assets/openfox-512.png",revision:"fee24b214220594b4f595a467e73036e"},{url:"manifest.webmanifest",revision:"c25f372c782e623ab1e768a8dfe350ca"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.65",
3
+ "version": "1.6.67",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {