feat: add interactive session support#88
Open
DocArmoryTech wants to merge 1 commit intoail-project:mainfrom
Open
feat: add interactive session support#88DocArmoryTech wants to merge 1 commit intoail-project:mainfrom
DocArmoryTech wants to merge 1 commit intoail-project:mainfrom
Conversation
- Add `interactive` and `interactive_ttl` parameters to enqueue() - Add SessionStatus enum (UNKNOWN, STARTING, READY, ERROR, STOPPED, EXPIRED, CAPTURE_REQUESTED) - Add InteractiveSessionResponse TypedDict for session status responses - Add get_interactive_session() — GET /interactive/<uuid> - Add request_interactive_capture() — POST /interactive/<uuid>/finish - Update deprecated CaptureSettings TypedDict with new fields - Export new types in __all__
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add client-side support for Lacus interactive capture sessions - new parameters on
enqueue(), new typed responses, and two new API methods for managing interactive sessions.Changes
New types (
api.py)SessionStatusIntEnum - mirrors LacusCore's session lifecycle states (UNKNOWN,STARTING,READY,ERROR,STOPPED,EXPIRED,CAPTURE_REQUESTED).InteractiveSessionResponseTypedDict - typed response for the interactive session endpoints (uuid,status,raw_status,finish_requested,view_url,created_at,expires_at,error).enqueue()changes (api.py)interactive: bool = Falseandinteractive_ttl: int = 600parameters to both the kwargs overload and the implementation.CaptureSettingsfor Pydantic validation (including the 1–600s TTL bound from lookyloo-models).New methods (
api.py)get_interactive_session(uuid)→GET /interactive/<uuid>- returnsInteractiveSessionResponse.request_interactive_capture(uuid)→POST /interactive/<uuid>/finish- returnsInteractiveSessionResponse.Deprecated TypedDict (
__init__.py)interactive: boolandinteractive_ttl: intto the deprecatedCaptureSettingsTypedDict for completeness.Exports (
__init__.py)SessionStatusandInteractiveSessionResponseadded to imports and__all__.Dependencies
Requires lookyloo-models with the
interactive/interactive_ttlfields onCaptureSettings(companion PR: Lookyloo/lookyloo-models#1).