You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(stealth-diagnostic): stop sync wrapper from shadowing the subpackage (#10)
The sync convenience wrapper was exported as `stealth_diagnostic`, the
same name as the `mithwire.stealth_diagnostic` subpackage. Binding it on
the `mithwire` namespace overwrote the subpackage attribute, so
`import mithwire.stealth_diagnostic.<x> as alias` (which compiles to
IMPORT_FROM and walks that attribute) raised
"cannot import name '<x>' from 'stealth_diagnostic' (unknown location)".
The `from mithwire.stealth_diagnostic.<x> import ...` form happened to
work, which masked the bug.
Rename the sync wrapper to `diagnose_stealth`. The async
`run_stealth_diagnostic` and the `mithwire.stealth_diagnostic.*` import
paths are unchanged, so existing consumers (incl. mithwire-mcp) are
unaffected. Add regression tests asserting `mithwire.stealth_diagnostic`
is the module and that the dotted submodule import resolves.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments