Baixar Notícia
WhatsApp
Email

qte77 pushed to refs/heads/main at Lambda-Biolab/i3mega-pipettebot

Fonte: github.com | Data: 08/05/2026 21:15:17

🔗 Ler matéria original

Commits on May 9, 2026

  1. chore(preflight): move to tools/ + feat: –export flag for shell-eval…


    … chaining (#36)
    
    * chore(preflight): move examples/preflight.py → tools/preflight.py
    
    Preflight is a non-actuating hardware diagnostic — port discovery and
    firmware sanity check, no pipetting workflow. AGENTS.md classifies that
    as `tools/` ("hardware experiments"), not `examples/`. Moving it makes
    the categorization match the convention now that `tools/` exists.
    
    - `git mv examples/preflight.py tools/preflight.py`
    - README, docs/calibration.md, docs/hardware.md, docs/sbc-deployment.md,
      docs/marlin-commands.md updated to the new path
    - examples/showcase_v0_pipette_sim.py and tools/{diagnose_axis,marlin_repl}.py
      error messages updated
    - AGENT_LEARNINGS.md and AGENT_REQUESTS.md references updated
    - CHANGELOG: new "Changed" entry for the move; existing [Unreleased]
      entries that mention the old path updated; the `[0.0.1]` historical
      entry is left intact
    - Makefile: `tools/` added to the `ruff format/check` targets so
      `make validate` covers the whole tools/ tree
    
    PR #31 (auto-detect on examples/preflight.py) will need rebase onto
    the renamed file after this lands.
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    
    * feat(preflight): add --export flag for shell `eval` chaining
    
    Lets the discovered ports flow directly into the next command without
    copy-paste. Probe chatter is routed to stderr in this mode; stdout
    emits only `export I3MEGA_PORT=...` / `export PIPETTE_PORT=...` lines.
    A failed discovery exits non-zero with no stdout output, so
    `eval "$(...)" && next-cmd` short-circuits cleanly.
    
    Example workflow:
    
        eval "$(uv run python tools/preflight.py --export)" \
          && uv run python examples/showcase_v0_pipette_sim.py
    
    CHANGELOG entry added under [Unreleased] / Added.
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: qte77 <qte@77>
    Co-authored-by: Claude <noreply@anthropic.com>


    3 people

    authored

    May 9, 2026



    Configuration menu


    Browse the repository at this point in the history