Skip to content

refactor(sh): extract scitex.sh into standalone scitex-sh package#241

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

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

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

Extracts `scitex.sh` into scitex-sh v0.1.0.

  • `sh`, `sh_run`, `quote`, `ShellResult`, `CommandInput` preserved.
  • `[sh]` extra → `scitex-sh>=0.1.0` (zero deps, pure stdlib).
  • 149/149 tests pass.
  • Decoupling: scitex.str.color_text replaced with a tiny inline ANSI helper.

🤖 Generated with Claude Code

Safe subprocess wrapper (list-only, no shell injection, stream/timeout
support) now lives in the standalone scitex-sh package
(https://github.com/ywatanabe1989/scitex-sh).

scitex.sh/__init__.py becomes a sys.modules alias.
The [sh] extra is updated to depend on scitex-sh>=0.1.0.

Decoupling notes (handled in scitex-sh's initial commit):
- The scitex.str.color_text dep used for terminal coloring is replaced with
  a tiny inline ANSI helper that respects NO_COLOR and TTY detection.

149/149 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