browser-assistant 2.8.23 → 2.8.25
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 +1 -1
- package/extension/content.js +4 -4
- package/extension/manifest.json +1 -1
- package/extension/popup.html +1 -1
- package/package.json +1 -1
- package/server/main.py +1 -1
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 **Alt +
|
|
13
|
+
- Press **Alt + A** on the webpage to start automation, then press it again to pause or resume. The previous **Alt + Shift + A** shortcut also works. It also works with the code editor focused and opens QA Control. Journal automation uses the same toggle; its existing **Alt + Shift + J** shortcut remains available.
|
|
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
|
|
package/extension/content.js
CHANGED
|
@@ -2058,7 +2058,7 @@ function mountJournalCountdown(signal) {
|
|
|
2058
2058
|
root.style.display = 'none';
|
|
2059
2059
|
}
|
|
2060
2060
|
function handleAutomationShortcut(e) {
|
|
2061
|
-
if (e.repeat || e.isComposing || e.defaultPrevented || !e.altKey ||
|
|
2061
|
+
if (e.repeat || e.isComposing || e.defaultPrevented || !e.altKey || e.ctrlKey || e.metaKey
|
|
2062
2062
|
|| (e.code !== 'KeyA' && String(e.key).toLowerCase() !== 'a'))
|
|
2063
2063
|
return false;
|
|
2064
2064
|
e.preventDefault();
|
|
@@ -2583,11 +2583,11 @@ function mountJournalCountdown(signal) {
|
|
|
2583
2583
|
<div class="assistant-qa-latest" id="assistant-automation-latest" aria-live="polite"></div>
|
|
2584
2584
|
<div id="assistant-journal-slot"></div>
|
|
2585
2585
|
<div class="assistant-automation-actions assistant-qa-actions">
|
|
2586
|
-
<button class="assistant-auto-btn start" id="assistant-auto-start-btn" aria-keyshortcuts="Alt+Shift+A" title="Start automation (Alt +
|
|
2587
|
-
<button class="assistant-auto-btn" id="assistant-auto-pause-btn" aria-keyshortcuts="Alt+Shift+A" title="Pause or resume (Alt +
|
|
2586
|
+
<button class="assistant-auto-btn start" id="assistant-auto-start-btn" aria-keyshortcuts="Alt+A Alt+Shift+A" title="Start automation (Alt + A)">▶ Start automation</button>
|
|
2587
|
+
<button class="assistant-auto-btn" id="assistant-auto-pause-btn" aria-keyshortcuts="Alt+A Alt+Shift+A" title="Pause or resume (Alt + A)" disabled>Pause</button>
|
|
2588
2588
|
<button class="assistant-auto-btn stop" id="assistant-auto-stop-btn" disabled>■ Stop</button>
|
|
2589
2589
|
</div>
|
|
2590
|
-
<p class="assistant-automation-status">Alt +
|
|
2590
|
+
<p class="assistant-automation-status">Alt + A: Start / Pause / Resume</p>
|
|
2591
2591
|
<button class="assistant-auto-btn" id="assistant-export-question-btn">Export question details</button>
|
|
2592
2592
|
</section>
|
|
2593
2593
|
`;
|
package/extension/manifest.json
CHANGED
package/extension/popup.html
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<div class="shortcut-row"><span>Vision scan</span> <kbd>\</kbd></div>
|
|
71
71
|
<div class="shortcut-row"><span>Minimal mode</span> <kbd>[</kbd></div>
|
|
72
72
|
<div class="shortcut-row"><span>Journal fill & submit</span> <kbd>Alt+Shift+J</kbd></div>
|
|
73
|
-
<div class="shortcut-row"><span>Automation start / pause / resume</span> <kbd>Alt+
|
|
73
|
+
<div class="shortcut-row"><span>Automation start / pause / resume</span> <kbd>Alt+A</kbd></div>
|
|
74
74
|
</div>
|
|
75
75
|
<script src="popup.js"></script>
|
|
76
76
|
</body>
|
package/package.json
CHANGED
package/server/main.py
CHANGED
|
@@ -191,7 +191,7 @@ async def lifespan(_app: FastAPI):
|
|
|
191
191
|
client.close()
|
|
192
192
|
|
|
193
193
|
|
|
194
|
-
app = FastAPI(title="Browser Assistant API", version="2.8.
|
|
194
|
+
app = FastAPI(title="Browser Assistant API", version="2.8.25", lifespan=lifespan)
|
|
195
195
|
install_local_guards(app)
|
|
196
196
|
|
|
197
197
|
@app.exception_handler(HTTPException)
|