Skip to content

feat: add gh source mode for Dart repositories#1

Open
leehack wants to merge 5 commits intomainfrom
feat/gh-source-mode
Open

feat: add gh source mode for Dart repositories#1
leehack wants to merge 5 commits intomainfrom
feat/gh-source-mode

Conversation

@leehack
Copy link
Owner

@leehack leehack commented Feb 15, 2026

Summary

  • add explicit --gh-mode (binary|source|auto) and --git-path options for gh: sources
  • implement GitHub source execution for Dart CLIs using a sandboxed git dependency (dart pub get + dart run), with --gh-mode auto fallback from binary mode when compatible release assets are unavailable
  • expand docs and tests for parser validation, source-mode execution, auto fallback, and gh source cache path behavior

Testing

  • dart analyze
  • dart test
  • dart run bin/drx.dart --gh-mode source --from gh:leehack/mcp_dart@mcp_dart_cli-v0.1.6 --git-path packages/mcp_dart_cli mcp_dart -- --help
  • dart run bin/drx.dart --gh-mode auto --from gh:leehack/mcp_dart@mcp_dart_cli-v0.1.6 --git-path packages/mcp_dart_cli mcp_dart -- --help

Introduce --gh-mode and --git-path so gh sources can run Dart tools directly from GitHub when release binaries are unavailable.
Use auto as the default for gh sources so binary execution is attempted first and Dart source fallback is used when release assets are unavailable.
Support --runtime aot for gh source execution and make --runtime auto try AOT first before falling back to JIT.
Cover gh-mode and runtime combinations through DrxEngine, including binary-first auto behavior, source AOT execution, and source auto fallback to JIT.
Introduce opt-in live-network smoke tests for binary and source fallback paths, and wire a workflow_dispatch job to run them in CI.
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