vibesurf 0.1.21__py3-none-any.whl → 0.1.23__py3-none-any.whl
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.
Potentially problematic release.
This version of vibesurf might be problematic. Click here for more details.
- vibe_surf/_version.py +2 -2
- vibe_surf/agents/browser_use_agent.py +1 -1
- vibe_surf/agents/prompts/vibe_surf_prompt.py +11 -0
- vibe_surf/agents/vibe_surf_agent.py +13 -2
- vibe_surf/backend/api/agent.py +38 -0
- vibe_surf/backend/api/task.py +1 -1
- vibe_surf/backend/main.py +2 -0
- vibe_surf/browser/agent_browser_session.py +7 -6
- vibe_surf/chrome_extension/background.js +82 -51
- vibe_surf/chrome_extension/manifest.json +2 -11
- vibe_surf/chrome_extension/scripts/api-client.js +5 -0
- vibe_surf/chrome_extension/scripts/file-manager.js +53 -12
- vibe_surf/chrome_extension/scripts/main.js +46 -11
- vibe_surf/chrome_extension/scripts/session-manager.js +30 -4
- vibe_surf/chrome_extension/scripts/ui-manager.js +623 -43
- vibe_surf/chrome_extension/sidepanel.html +13 -1
- vibe_surf/chrome_extension/styles/input.css +115 -0
- vibe_surf/tools/browser_use_tools.py +0 -90
- vibe_surf/tools/vibesurf_registry.py +52 -0
- vibe_surf/tools/vibesurf_tools.py +954 -5
- vibe_surf/tools/views.py +60 -0
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/METADATA +2 -2
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/RECORD +27 -25
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/WHEEL +0 -0
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/entry_points.txt +0 -0
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/licenses/LICENSE +0 -0
- {vibesurf-0.1.21.dist-info → vibesurf-0.1.23.dist-info}/top_level.txt +0 -0
|
@@ -653,11 +653,37 @@ class VibeSurfSessionManager {
|
|
|
653
653
|
|
|
654
654
|
// Cleanup
|
|
655
655
|
destroy() {
|
|
656
|
-
|
|
657
|
-
this.
|
|
658
|
-
|
|
659
|
-
|
|
656
|
+
// Prevent multiple cleanup calls
|
|
657
|
+
if (this.isDestroying) {
|
|
658
|
+
console.log('[SessionManager] Cleanup already in progress, skipping...');
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
660
661
|
|
|
662
|
+
this.isDestroying = true;
|
|
663
|
+
console.log('[SessionManager] Destroying session manager...');
|
|
664
|
+
|
|
665
|
+
try {
|
|
666
|
+
this.stopActivityPolling();
|
|
667
|
+
this.eventListeners.clear();
|
|
668
|
+
|
|
669
|
+
// Clear any ongoing requests
|
|
670
|
+
if (this.pollingTimer) {
|
|
671
|
+
clearTimeout(this.pollingTimer);
|
|
672
|
+
this.pollingTimer = null;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
// Reset state
|
|
676
|
+
this.currentSession = null;
|
|
677
|
+
this.currentTaskId = null;
|
|
678
|
+
this.activityLogs = [];
|
|
679
|
+
this.isPolling = false;
|
|
680
|
+
|
|
681
|
+
console.log('[SessionManager] Session manager cleanup complete');
|
|
682
|
+
} catch (error) {
|
|
683
|
+
console.error('[SessionManager] Error during destroy:', error);
|
|
684
|
+
} finally {
|
|
685
|
+
this.isDestroying = false;
|
|
686
|
+
}
|
|
661
687
|
}
|
|
662
688
|
|
|
663
689
|
// Status helpers
|