Skip to content

refactor(capture): extract scitex.capture into standalone scitex-capture package#240

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
feat/extract-scitex-capture
Open

refactor(capture): extract scitex.capture into standalone scitex-capture package#240
ywatanabe1989 wants to merge 1 commit intodevelopfrom
feat/extract-scitex-capture

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

Extracts `scitex.capture` into scitex-capture v0.1.0 (3,726 LOC, 12 source files including `_mcp/` subpackage).

  • Full public surface preserved (snap, gif, get_info, start/stop, create_gif_from_files/pattern/latest_session, plus utils, grid, session, CaptureManager).
  • `[capture]` extra → `scitex-capture[mcp,playwright]>=0.1.0` (transitively pulls Pillow, mss, playwright, mcp).
  • `scitex-capture` entry-point repointed at `scitex_capture.mcp_server:main`.
  • 146/146 tests pass.
  • Decoupling: cli.py uses `import scitex_capture as capture` so tests can patch `scitex_capture.snap` directly without the umbrella installed.

🤖 Generated with Claude Code

…ure package

Session-based screen capture (single screenshots, multi-frame GIFs, grid
overlays, monitor / cursor info, MCP server, Playwright integration) now
lives in the standalone scitex-capture package
(https://github.com/ywatanabe1989/scitex-capture).

scitex.capture/__init__.py becomes a sys.modules alias.
The [capture] extra is updated to depend on scitex-capture[mcp,playwright]>=0.1.0
(transitively pulls Pillow, mss, playwright, mcp).

The scitex-capture entry-point is updated from scitex.capture.mcp_server:main
to scitex_capture.mcp_server:main since the standalone package owns the
mcp_server module directly.

Decoupling notes (handled in scitex-capture's initial commit):
- cli.py now does `import scitex_capture as capture` instead of
  `from scitex import capture` so unit tests can patch
  `scitex_capture.snap` correctly without the umbrella installed.

146/146 tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant