molecule-ai-workspace-runtime/molecule_runtime
Molecule AI Infra-Runtime-BE 0e67b0d005
Some checks failed
ci / mirror-guard (pull_request) Failing after 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
fix(runtime): __name__ guard in a2a_mcp_server allows module-as-script and test imports
- Restructure main() to accept (transport, port) params so argparse
  moves into the __name__ guard block, not the function body.
- Replace the fragile __spec__.name check with a reliable basename
  comparison: os.path.basename(sys.argv[0]) == os.path.basename(__spec__.origin).
  Fires for `python a2a_mcp_server.py` and `python -m
  molecule_runtime.a2a_mcp_server`, but NOT for test imports where
  sys.argv[0] is the outer runner (pytest, python -c, etc.).
- Add missing `import uvicorn` inside _run_http_server() so the HTTP
  transport actually starts (was a pre-existing bug — uvicorn was used
  but never imported).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 04:40:12 +00:00
..
adapters fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
builtin_tools fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
plugins_registry fix(plugins_registry/builtins): strip API keys from plugin setup.sh env 2026-04-20 22:52:13 +00:00
policies
scripts fix(pre-commit): align SECRET_PATTERNS with molecule-core canonical (add sk-cp-) 2026-04-28 15:21:13 -07:00
skill_loader
__init__.py
a2a_cli.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
a2a_client.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
a2a_executor.py feat: migrate a2a-sdk 1.x (KI-009) (#39) 2026-04-24 01:54:33 +00:00
a2a_mcp_server.py fix(runtime): __name__ guard in a2a_mcp_server allows module-as-script and test imports 2026-05-12 04:40:12 +00:00
a2a_tools.py fix(builtin_tools/validation): complete WORKSPACE_ID validation in a2a_tools.py 2026-04-21 00:55:08 +00:00
agent.py
claude_sdk_executor.py Merge pull request #42 from Molecule-AI/fix/stderr-capture-a2a-response 2026-04-24 13:25:15 -07:00
cli_executor.py feat: migrate a2a-sdk 1.x (KI-009) (#39) 2026-04-24 01:54:33 +00:00
config.py
consolidation.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
coordinator.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
credential_helper.py feat: ship GitHub credential-helper inline in runtime (fixes #1933 class) 2026-04-24 00:41:32 -07:00
events.py
executor_helpers.py fix(executor): sanitize peer delegation content in read_delegation_results (OFFSEC-003) 2026-05-11 03:38:14 +00:00
heartbeat.py fix(heartbeat): refresh on-disk auth token on 401 + retry once (#1877) 2026-04-23 13:26:36 -07:00
initial_prompt.py
llm_auth.py fix(llm_auth): tighten base-URL hostname match + strip whitespace + no token in logs 2026-04-23 10:46:07 -07:00
main.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
molecule_ai_status.py fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules 2026-05-11 03:34:24 +00:00
platform_auth.py fix(heartbeat): refresh on-disk auth token on 401 + retry once (#1877) 2026-04-23 13:26:36 -07:00
plugins.py
precommit_hook.py feat(precommit): add secret scan to bundled pre-commit hook (defense-in-depth for #2090-style leaks) 2026-04-26 11:57:39 -07:00
preflight.py fix: gate session resume on file existence (closes #488) 2026-04-16 11:12:03 -07:00
prompt.py fix: switch top-level from adapters import to absolute imports (#1) 2026-04-16 07:53:03 -07:00
transcript_auth.py
watcher.py