Commit Graph

2 Commits

Author SHA1 Message Date
Dery Ferdika a1e4dabba4 test(python): probe python3/python and skip when unavailable (#59)
python-ast-weave/pyc-weave tests hardcoded execFileSync('python3') which
on Windows resolves to the Microsoft Store stub (fails) even when Python
is installed as 'python'. Add a shared tests/helpers/python-interpreter.ts
probe (python3, fallback python, requires >=3.8) and it.skipIf guards so
the suite skips instead of failing; python3() accessor throws loudly if
misused outside a guarded test.
2026-11-02 20:32:34 +08:00
Timo Zhang a076c3d72f feat(python): structural AST weave of decoys into customer defs (#53)
Make MCP weave_decoys a real pipeline attribute for Python source:
when true, after tarpit prepend, structurally walk customer FunctionDef
bodies and insert shared-slot touch + opaque-false decoy calls (JS
ast-shield §3 analog). Selection is indent-stack + tarpit name identity
skip + seeded PRNG — not a business-name rule engine.

When false, preserve #51 warm-init-only behavior. Update planner maturity
(python-source → woven), MCP descriptions, docs, and CHANGELOG honesty.
2026-11-01 23:05:13 +08:00