Class CaptureManager
java.lang.Object
com.shaft.capture.runtime.CaptureManager
- All Implemented Interfaces:
AutoCloseable
Thread-safe local lifecycle API shared by CLI and MCP capture controls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckpoint(String description, Checkpoint.CheckpointKind kind) Adds a human-review checkpoint to the active session.voidclose()start(CaptureStartRequest request) Starts one managed browser capture.status()Returns the latest safe status without captured values.stop(boolean discard) Stops the active session.
-
Constructor Details
-
CaptureManager
public CaptureManager()Creates the default managed recorder lifecycle.
-
-
Method Details
-
start
Starts one managed browser capture.- Parameters:
request- validated start request- Returns:
- active recorder status
-
status
Returns the latest safe status without captured values.- Returns:
- recorder status
-
checkpoint
Adds a human-review checkpoint to the active session.- Parameters:
description- checkpoint descriptionkind- checkpoint kind- Returns:
- updated status
-
stop
Stops the active session.- Parameters:
discard- whether to remove capture artifacts after clean shutdown- Returns:
- final status
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-