a3s-code 0.4.5__tar.gz → 0.4.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: a3s-code
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: A3S Code Agent Python SDK
5
5
  Project-URL: Homepage, https://github.com/A3S-Lab/Code
6
6
  Project-URL: Documentation, https://github.com/A3S-Lab/Code#readme
@@ -305,6 +305,22 @@ class A3sClient:
305
305
  response = await self._stub.DestroySession({"session_id": session_id})
306
306
  return response.success
307
307
 
308
+ async def restore_session(self, session_id: str) -> Dict[str, Any]:
309
+ """Restore a persisted session from store by ID.
310
+
311
+ Args:
312
+ session_id: The session ID to restore.
313
+
314
+ Returns:
315
+ Dict with success, session_id, and message.
316
+ """
317
+ response = await self._stub.RestoreSession({"session_id": session_id})
318
+ return {
319
+ "success": response.success,
320
+ "session_id": response.session_id,
321
+ "message": response.message,
322
+ }
323
+
308
324
  async def list_sessions(self) -> List[Dict[str, Any]]:
309
325
  """List all sessions."""
310
326
  response = await self._stub.ListSessions({})
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "a3s-code"
7
- version = "0.4.5"
7
+ version = "0.4.6"
8
8
  description = "A3S Code Agent Python SDK"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes