browser-assistant 2.9.11 → 2.9.12

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.
@@ -2500,7 +2500,10 @@ function mountJournalCountdown(signal) {
2500
2500
  showAutomationNotice('Automation is unavailable on this page.');
2501
2501
  return;
2502
2502
  }
2503
- if (context.target.id !== 'local-practice'
2503
+ const startDirectly = context.target.id === 'local-practice'
2504
+ || (type === 'MCQ' && context.target.id === 'ccbp-learning-practice'
2505
+ && /^\/(?:default-question|primitive-coding(?:-review)?)\/practice\//.test(location.pathname));
2506
+ if (!startDirectly
2504
2507
  && !window.confirm('Start ' + type + ' automation on this page? It can enter and submit answers as it runs.'))
2505
2508
  return;
2506
2509
  const progress = document.querySelector('[data-practice-quiz] #progress')?.textContent;
@@ -2509,7 +2512,8 @@ function mountJournalCountdown(signal) {
2509
2512
  started_at: new Date().toISOString(), ended_at: null, total, completed: 0, failed: 0, status: 'Running', revision: 0 };
2510
2513
  directRunStarting = true;
2511
2514
  saveDirectRun();
2512
- showAutomationNotice(type + ' automation started.');
2515
+ if (!startDirectly)
2516
+ showAutomationNotice(type + ' automation started.');
2513
2517
  const started = startPracticeAutomation();
2514
2518
  directRunStarting = false;
2515
2519
  updateDirectRun();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Browser Assistant",
4
- "version": "2.9.11",
4
+ "version": "2.9.12",
5
5
  "description": "Scans webpages for MCQs and coding problems. Powered by Groq (cloud) and Ollama (local fallback).",
6
6
  "permissions": [
7
7
  "activeTab",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-assistant",
3
- "version": "2.9.11",
3
+ "version": "2.9.12",
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
@@ -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.9.11", lifespan=lifespan)
194
+ app = FastAPI(title="Browser Assistant API", version="2.9.12", lifespan=lifespan)
195
195
  install_local_guards(app)
196
196
 
197
197
  @app.exception_handler(HTTPException)