browser-assistant 2.9.36 → 2.9.37

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/README.md CHANGED
@@ -10,7 +10,7 @@ A Chrome Manifest V3 extension with a local Python backend for exploring multipl
10
10
  - Displays results in an in-page panel, offers code copying, and saves successful scans in local SQLite history.
11
11
  - Includes a local practice page and automation for selecting answers, filling editors, and submitting supported forms after starting a run.
12
12
  - Resumes CCBP practice from an already submitted answer through its submitted-question Next control, without generating or submitting that answer again. Delayed Submit controls are awaited for up to 15 seconds while the question and selected answer remain unchanged.
13
- - Press **⌥A** (Alt + A) on the webpage to start automation, then press it again to pause or resume. The previous **⌥⇧A** (Alt + Shift + A) shortcut also works, including with the code editor focused, and opens QA Control. Journal automation uses the same toggle; its **⌥⇧J** shortcut remains available. Panel chords are **⌃⇧O** (open), **⌃⇧X** (close), **⌃⇧S** (vision scan) and **⌃⇧M** (minimal mode).
13
+ - Press **⌥A** (Alt + A) on the webpage to start automation, then press it again to pause or resume. The previous **⌥⇧A** (Alt + Shift + A) shortcut also works, including with the code editor focused, and opens QA Control. Journal automation uses the same toggle; its dedicated shortcut is **⌥J** (Alt + J). Panel chords are **⌃⇧O** (open), **⌃⇧X** (close), **⌃⇧S** (vision scan) and **⌃⇧M** (minimal mode).
14
14
 
15
15
  AI answers can be wrong. Automation can change or submit page content: use it only where authorized, review results, and avoid restricted assessments. Site detection is heuristic; custom controls, frames, editors, and navigation can fail. The policy includes a general HTTP/HTTPS fallback, so it is not a strict site allowlist.
16
16
 
@@ -157,7 +157,7 @@
157
157
  event.preventDefault();
158
158
  void send('automation');
159
159
  }
160
- else if (event.shiftKey && (key === 'j' || event.code === 'KeyJ')) {
160
+ else if (!event.shiftKey && (key === 'j' || event.code === 'KeyJ')) {
161
161
  event.preventDefault();
162
162
  void send('journal');
163
163
  }
@@ -228,13 +228,13 @@ function browserAssistantJournal(global) {
228
228
  publishedDeadline = undefined;
229
229
  }
230
230
  }
231
- button.title = 'Fill & Submit Journal (Alt + Shift + J)';
232
- button.setAttribute('aria-keyshortcuts', 'Alt+Shift+J');
231
+ button.title = 'Fill & Submit Journal (Alt + J)';
232
+ button.setAttribute('aria-keyshortcuts', 'Alt+J');
233
233
  const shortcutHint = document.createElement('p');
234
- shortcutHint.textContent = 'Shortcut: Alt + Shift + J';
234
+ shortcutHint.textContent = 'Shortcut: Alt + J';
235
235
  panel.insertBefore(shortcutHint, status);
236
236
  const shortcutListener = event => {
237
- if (!event.altKey || !event.shiftKey || event.ctrlKey || event.metaKey || event.repeat || event.isComposing)
237
+ if (!event.altKey || event.shiftKey || event.ctrlKey || event.metaKey || event.repeat || event.isComposing)
238
238
  return;
239
239
  if (event.code !== 'KeyJ' && String(event.key).toLowerCase() !== 'j')
240
240
  return;
@@ -637,7 +637,7 @@ if (typeof window !== 'undefined' && isSidusJournalOrigin(location.origin)) {
637
637
  if (!window.BrowserAssistantJournalListShortcut) {
638
638
  window.BrowserAssistantJournalListShortcut = true;
639
639
  document.addEventListener('keydown', event => {
640
- if (!/^\/modules\/assessments\/assessments\/?$/.test(location.pathname) || !event.altKey || !event.shiftKey || event.ctrlKey || event.metaKey || event.repeat || event.isComposing)
640
+ if (!/^\/modules\/assessments\/assessments\/?$/.test(location.pathname) || !event.altKey || event.shiftKey || event.ctrlKey || event.metaKey || event.repeat || event.isComposing)
641
641
  return;
642
642
  if (event.code !== 'KeyJ' && String(event.key).toLowerCase() !== 'j')
643
643
  return;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Browser Assistant",
4
- "version": "2.9.36",
4
+ "version": "2.9.37",
5
5
  "description": "Scans webpages for MCQs and coding problems. Powered by Groq (cloud) and Ollama (local fallback).",
6
6
  "permissions": [
7
7
  "activeTab",
@@ -24,7 +24,7 @@
24
24
  <div class="shortcut-row"><span>Close panel</span> <span><kbd>]</kbd> <kbd>⌃⇧X</kbd></span></div>
25
25
  <div class="shortcut-row"><span>Vision scan</span> <span><kbd>\</kbd> <kbd>⌃⇧S</kbd></span></div>
26
26
  <div class="shortcut-row"><span>Minimal mode</span> <span><kbd>[</kbd> <kbd>⌃⇧M</kbd></span></div>
27
- <div class="shortcut-row"><span>Fill and submit journal</span> <kbd>⌥⇧J</kbd></div>
27
+ <div class="shortcut-row"><span>Fill and submit journal</span> <kbd>⌥J</kbd></div>
28
28
  <div class="shortcut-row"><span>Start, pause or resume</span> <kbd>⌥A</kbd></div>
29
29
  </section>
30
30
  </main>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-assistant",
3
- "version": "2.9.36",
3
+ "version": "2.9.37",
4
4
  "description": "Chrome extension and local Python backend for exploring webpage questions and coding exercises",
5
5
  "license": "MIT",
6
6
  "repository": {
package/server/main.py CHANGED
@@ -195,7 +195,7 @@ async def lifespan(_app: FastAPI):
195
195
  client.close()
196
196
 
197
197
 
198
- app = FastAPI(title="Browser Assistant API", version="2.9.36", lifespan=lifespan)
198
+ app = FastAPI(title="Browser Assistant API", version="2.9.37", lifespan=lifespan)
199
199
  install_local_guards(app)
200
200
 
201
201
  @app.exception_handler(HTTPException)