Skip to content

Commit 5ba5522

Browse files
committed
chore: release version 0.7.1
### Enhancements - **Default Parameters**: Adjusted default parameter values for improved usability and performance - **API Documentation**: Updated API documentation to reflect current functionality ### Refactoring - **Code Cleanup**: Removed deprecated session management methods and simplified API surface - **Documentation Updates**: Cleaned up documentation references to align with current API ### Testing & CI/CD - **Test Adjustments**: Updated test cases to match current API behavior and improve test reliability
1 parent 83c323a commit 5ba5522

41 files changed

Lines changed: 1772 additions & 3868 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,5 @@ dmypy.json
133133
.cursorrules
134134
CLAUDE.md
135135
.DS_Store
136+
137+
.history/

CHANGES.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [0.7.1] - 2025-12-22
4+
5+
### Enhancements
6+
- **Default Parameters**: Adjusted default parameter values for improved usability and performance
7+
- **API Documentation**: Updated API documentation to reflect current functionality
8+
9+
### Refactoring
10+
- **Code Cleanup**: Removed deprecated session management methods and simplified API surface
11+
- **Documentation Updates**: Cleaned up documentation references to align with current API
12+
13+
### Testing & CI/CD
14+
- **Test Adjustments**: Updated test cases to match current API behavior and improve test reliability
15+
316
## [0.7.0] - 2025-12-18
417

518
### New Features
@@ -11,7 +24,6 @@
1124
- Window listing and management functionality
1225
- Application operations support
1326
- **File Transfer Function**: Complete file transfer functionality for moving files between local and remote environments
14-
- **Session Pause and Resume**: Added pause and resume functionality for sessions to optimize resource usage and costs
1527
- **Async Session Deletion**: Migrated session deletion API from `release_mcp_session` to `delete_session_async` with polling support
1628
- **Browser Type Configuration**: Support for browser type and command arguments settings for enhanced browser control
1729
- **MCP Access Documentation**: Comprehensive guide for MCP (Model Context Protocol) access and configuration
@@ -28,7 +40,6 @@
2840
- Updated text input examples in documentation
2941
- Corrected documentation regarding command execution instructions
3042
- Standardized guides structure to match template
31-
- Fixed ContextManager docstring to use AGB instead of AgentBay
3243
- Removed example code from ContextManager docstring
3344
- Added file transfer guide markdown
3445

@@ -38,7 +49,6 @@
3849
- Cleaned up unrelated files and code
3950

4051
### Testing & CI/CD
41-
- Added comprehensive unit and integration tests for pause and resume functionality
4252
- Optimized CI/CD pipeline summary with switch state for better visibility
4353
- Enhanced test coverage for computer module, file transfer, and browser fingerprint features
4454
- Fixed context manager sync tests to match new validation logic

agb/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from .context_sync import ContextSync, SyncPolicy, UploadPolicy, DownloadPolicy, DeletePolicy, ExtractPolicy, UploadStrategy, DownloadStrategy, UploadMode, MappingPolicy
99
from .extension import ExtensionsService, ExtensionOption, Extension
1010
from .modules.computer import Computer, MouseButton, ScrollDirection
11-
from .model.response import SessionPauseResult, SessionResumeResult
1211

1312
__all__ = [
1413
"AGB", "Session", "CreateSessionParams", "HTTPClient", "Client",
@@ -19,6 +18,5 @@
1918
"UploadStrategy", "DownloadStrategy", "UploadMode", "MappingPolicy", "ExtensionsService","ExtensionOption","Extension",
2019
# Computer related exports
2120
"Computer", "MouseButton", "ScrollDirection",
22-
# Pause and resume related exports
23-
"SessionPauseResult", "SessionResumeResult",
21+
2422
]

agb/agb.py

Lines changed: 65 additions & 93 deletions
Large diffs are not rendered by default.

agb/api/client.py

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
SetLabelResponse,
3131
GetLabelRequest,
3232
GetLabelResponse,
33-
# Pause and Resume imports
34-
PauseSessionRequest,
35-
PauseSessionResponse,
36-
ResumeSessionRequest,
37-
ResumeSessionResponse,
3833
# Delete session async imports
3934
DeleteSessionAsyncRequest,
4035
DeleteSessionAsyncResponse,
@@ -589,86 +584,6 @@ def get_and_load_internal_context(self, request: GetAndLoadInternalContextReques
589584
# Always close the HTTP client to release resources
590585
http_client.close()
591586

592-
def pause_session(self, request: PauseSessionRequest) -> PauseSessionResponse:
593-
"""
594-
Pause session using HTTP client
595-
"""
596-
if not request.authorization:
597-
raise ValueError("authorization is required")
598-
599-
if not request.session_id:
600-
raise ValueError("session_id is required")
601-
602-
# Get HTTP client and make request directly with the input request
603-
http_client = self._get_http_client(request.authorization)
604-
605-
try:
606-
response = http_client.pause_session(request)
607-
return response
608-
finally:
609-
# Always close the HTTP client to release resources
610-
http_client.close()
611-
612-
async def pause_session_async(self, request: PauseSessionRequest) -> PauseSessionResponse:
613-
"""
614-
Pause session asynchronously using HTTP client
615-
"""
616-
if not request.authorization:
617-
raise ValueError("authorization is required")
618-
619-
if not request.session_id:
620-
raise ValueError("session_id is required")
621-
622-
# Get HTTP client and make request directly with the input request
623-
http_client = self._get_http_client(request.authorization)
624-
625-
try:
626-
response = await http_client.pause_session_async(request)
627-
return response
628-
finally:
629-
# Always close the HTTP client to release resources
630-
http_client.close()
631-
632-
633-
def resume_session(self, request: ResumeSessionRequest) -> ResumeSessionResponse:
634-
"""
635-
Resume session using HTTP client
636-
"""
637-
if not request.authorization:
638-
raise ValueError("authorization is required")
639-
640-
if not request.session_id:
641-
raise ValueError("session_id is required")
642-
643-
# Get HTTP client and make request directly with the input request
644-
http_client = self._get_http_client(request.authorization)
645-
646-
try:
647-
response = http_client.resume_session(request)
648-
return response
649-
finally:
650-
# Always close the HTTP client to release resources
651-
http_client.close()
652-
653-
async def resume_session_async(self, request: ResumeSessionRequest) -> ResumeSessionResponse:
654-
"""
655-
Resume session asynchronously using HTTP client
656-
"""
657-
if not request.authorization:
658-
raise ValueError("authorization is required")
659-
660-
if not request.session_id:
661-
raise ValueError("session_id is required")
662-
663-
# Get HTTP client and make request directly with the input request
664-
http_client = self._get_http_client(request.authorization)
665-
666-
try:
667-
response = await http_client.resume_session_async(request)
668-
return response
669-
finally:
670-
# Always close the HTTP client to release resources
671-
http_client.close()
672587

673588
def delete_session_async(self, request: "DeleteSessionAsyncRequest") -> "DeleteSessionAsyncResponse":
674589
"""

0 commit comments

Comments
 (0)