Skip to content

feat: add --tty option for interactive tools and update docker config#51

Merged
Mossaka merged 8 commits intomainfrom
enable-claude
Nov 25, 2025
Merged

feat: add --tty option for interactive tools and update docker config#51
Mossaka merged 8 commits intomainfrom
enable-claude

Conversation

@Mossaka
Copy link
Copy Markdown
Collaborator

@Mossaka Mossaka commented Nov 25, 2025

Signed-off-by: Jiaxiao (mossaka) Zhou duibao55328@gmail.com

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 25, 2025

Test Coverage Report

Metric Coverage Covered/Total
Lines 49.19% 274/557
Statements 48.94% 279/570
Functions 54.83% 34/62
Branches 40.57% 71/175
Coverage Thresholds

The project has the following coverage thresholds configured:

  • Lines: 38%
  • Statements: 38%
  • Functions: 35%
  • Branches: 30%

Coverage report generated by `npm run test:coverage`

Mossaka and others added 7 commits November 25, 2025 21:17
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
The args.length === 1 check is correct and necessary for preserving
shell variables ($HOME, $(command), etc.) that must expand in the
container, not on the host.

Root cause analysis:
- shell-quote library would expand variables on HOST machine
- GitHub Actions commands contain $GITHUB_WORKSPACE, $HOME, etc
- These must expand INSIDE the container, not before
- Docker Compose $$$$ escaping requires literal $ preservation

Solution: Keep single-argument passthrough, add comprehensive docs

Changes:
- Enhanced documentation in src/cli.ts explaining behavior
- Added JSDoc to test runner explaining string vs array
- Added test cases for variable preservation
- Updated docs/usage.md with environment variable examples

This ensures shell variables expand correctly in the container
environment while maintaining backward compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
@Mossaka Mossaka merged commit e5ee8bd into main Nov 25, 2025
10 checks passed
@Mossaka Mossaka deleted the enable-claude branch November 25, 2025 23:29
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