mpflash 1.29.0__tar.gz → 1.29.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mpflash-1.29.2/.agents/skills/beads/SKILL.md +80 -0
- mpflash-1.29.2/.agents/skills/beads/agents/openai.yaml +4 -0
- mpflash-1.29.2/.beads/.gitignore +81 -0
- mpflash-1.29.2/.beads/README.md +81 -0
- mpflash-1.29.2/.beads/config.yaml +74 -0
- mpflash-1.29.2/.beads/hooks/post-checkout +59 -0
- mpflash-1.29.2/.beads/hooks/post-merge +59 -0
- mpflash-1.29.2/.beads/hooks/pre-commit +59 -0
- mpflash-1.29.2/.beads/hooks/pre-push +59 -0
- mpflash-1.29.2/.beads/hooks/prepare-commit-msg +59 -0
- mpflash-1.29.2/.beads/metadata.json +7 -0
- mpflash-1.29.2/.claude/settings.json +15 -0
- mpflash-1.29.2/.codex/config.toml +2 -0
- mpflash-1.29.2/.codex/hooks.json +51 -0
- mpflash-1.29.2/.cursor/hooks.json +20 -0
- mpflash-1.29.2/.cursor/rules/beads.mdc +67 -0
- mpflash-1.29.2/.github/copilot-instructions.md +85 -0
- mpflash-1.29.2/.github/instructions/python.instructions.md +45 -0
- mpflash-1.29.2/.github/instructions/tests.instructions.md +23 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.gitignore +7 -0
- mpflash-1.29.2/AGENTS.md +128 -0
- mpflash-1.29.2/CLAUDE.md +77 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/PKG-INFO +1 -1
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/config.py +2 -2
- mpflash-1.29.2/mpflash/flash/builtins/esptool_backend.py +104 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpremoteboard/format_bdev.py +5 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/pyproject.toml +1 -1
- mpflash-1.29.2/tests/flash/test_esptool_backend.py +163 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_flash_1.py +4 -4
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_format_fs.py +48 -1
- {mpflash-1.29.0 → mpflash-1.29.2}/uv.lock +26 -26
- mpflash-1.29.0/.github/copilot-instructions.md +0 -217
- mpflash-1.29.0/mpflash/flash/builtins/esptool_backend.py +0 -50
- mpflash-1.29.0/tests/data/mpflash.db +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.all-contributorsrc +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.env +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/CODEOWNERS +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/codecov.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/dependabot.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/workflows/copilot-setup-steps.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/workflows/dependency-review.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/workflows/pytest_mpflash.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.github/workflows/release.yml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.mailmap +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.readthedocs.yaml +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.vscode/extensions.json +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.vscode/launch.json +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.vscode/micropython-dict.txt +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.vscode/settings.json +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/.vscode/tasks.json +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/CHANGELOG.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/LICENSE +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/README.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/OIG4.jpg +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/api-reference.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/architecture.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/contributing.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/custom_firmware_prd.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/developer.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/index.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/logger_fixes.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/mpflash-2 (Small).jpg +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/mpflash-2.jpg +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/mpflash.jpg +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/mpflash_api_example.ipynb +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/mpremoteboard_api.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/startup_speed.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/stm32_udev_rules.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/docs/troubleshooting.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/examples/worklist_api_improvements.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/justfile +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/ask_input.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/basicgit.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/activate.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/base.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/builtins/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/builtins/manual.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/builtins/mpy.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/builtins/touch1200.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/detect.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/bootloader/registry.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/build.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_add.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_download.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_erase.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_flash.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_format.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_group.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_list.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_main.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_plugins.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/cli_pyocd.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/common.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/connected.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/custom/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/custom/add.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/custom/copy.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/custom/naming.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/boards_hash.txt +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/core.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/gather_boards.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/loader.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/meta.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/micropython_boards.zip +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/models.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/db/tools.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/download/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/download/from_web.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/download/fwinfo.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/download/jid.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/downloaded.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/errors.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/base.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/dfu/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/dfu/stm32_dfu.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/dfu_backend.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/esp/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/pyocd/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/pyocd/core.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/pyocd/flash.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/pyocd/probes.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/pyocd_backend.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/boardid.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/erase.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/linux.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/macos.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/uf2disk.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/volume.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/windows.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2/wsl2.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/builtins/uf2_backend.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/context.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/format_fs.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/registry.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/services.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/flash/worklist.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/list.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/logger.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpboard_id/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpboard_id/alternate.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpboard_id/board_id.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpboard_id/known.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpboard_id/resolve.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpremoteboard/__init__.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpremoteboard/erase_bdev.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpremoteboard/mpy_fw_info.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/mpremoteboard/runner.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/py.typed +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/49-stlinkv2-1.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/49-stlinkv2.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/49-stlinkv3.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/49-vtlinkii.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/49-wch-link.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/50-cmsis-dap.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/50-picoprobe.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/65-mpflash-stm32-dfu.rules +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/udev_rules/README.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/vendor/board_database.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/vendor/click_aliases.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/vendor/dfu.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/vendor/pydfu.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/vendor/readme.md +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash/versions.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/mpflash.code-workspace +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/reporting/MicroPython_boards.ipynb +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/reporting/build_reporting_db.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/reporting/micropython_boards_reporting.sqlite3 +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Qry_board_id_to_versions.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-1.ipynb +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-1.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-2.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-3.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-4.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-6.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-7.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/Untitled-8.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/join_boards-downloads.sqlite3-query +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/libusb_flash.ipynb +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/micropython_boards.zip +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/mpr_command.ipynb +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/publish.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/scripts/sqlite3.exe +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/src/mpflash/db/gather_boards.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/basicgit/test_basicgit.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/basicgit_test.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/bootloader/test_bootloader_detect.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/bootloader/test_bootloader_registry.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_download.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_erase.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_flash.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_format.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_list.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_options.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_plugins.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/cli/test_cli_pyocd.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/conftest.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/custom/test_init.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/custom/test_naming.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/data/firmware.jsonl +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/conftest.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_core.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_find_board_id.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_gather.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_loader.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_meta.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/db/test_tools.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/fixtures/mock_pyocd_data.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_boot_touch1200.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_dfu_backend.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_flash_esp.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_flash_tasks.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_flash_uf2_A.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_registry.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_services.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_stm32_dfu.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_boardid.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_erase.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_linux.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_mac.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_volume.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_windows.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_uf2_wsl2.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/flash/test_worklist_refactored.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/hw/conftest.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/hw/test_hw_backends.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/hw/test_hw_erase.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/integration/test_cli_integration.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpboard_id/test_alternate.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpboard_id/test_known_boards.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpremoteboard/fake_output.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpremoteboard/fake_reset.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpremoteboard/fake_slow_output.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/mpremoteboard/test_mprb.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_ask_input.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_build.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_cli_add.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_cli_main.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_common.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_config.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_connected.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_download.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_downloaded.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_filtered_comports.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_gather_boards_additional.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_list.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_logger_fix.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_mp_board_filter.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_mpf_api.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_version_preservation_fix.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/test_versions.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/unit/test_probe_management.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/unit/test_pyocd_flash_coverage.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests/unit/test_target_detection.py +0 -0
- {mpflash-1.29.0 → mpflash-1.29.2}/tests.md +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: beads
|
|
3
|
+
description: Use when working in a repository that uses bd or Beads for durable project task tracking, issue dependencies, blocker management, multi-session handoff, or shared work memory. Trigger when the user asks to find ready work, claim or close tasks, create follow-up work, inspect blockers, recover project context, or choose between local planning and persistent project tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Beads
|
|
7
|
+
|
|
8
|
+
Use Beads as the shared project task system. Local plans, scratch files, and personal memories are useful, but they are not the durable source of truth for project work.
|
|
9
|
+
|
|
10
|
+
## First Step
|
|
11
|
+
|
|
12
|
+
Run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
bd prime
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
If that prints nothing, check whether the repository has an active Beads workspace:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
bd where
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Preferred Route
|
|
25
|
+
|
|
26
|
+
Use the `bd` CLI when shell access is available. It is the most compact and direct Beads interface.
|
|
27
|
+
|
|
28
|
+
## Core CLI Workflow
|
|
29
|
+
|
|
30
|
+
1. Find work:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
bd ready
|
|
34
|
+
bd list --status=open
|
|
35
|
+
bd list --status=in_progress
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Inspect before editing:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bd show <id>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
3. Claim work atomically:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
bd update <id> --claim
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
4. Create durable follow-up work when implementation reveals new tasks:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
bd create "Short title" --description="Why this exists and what needs to be done" --type=task --priority=2
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
5. Close completed work:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
bd close <id> --reason="Completed"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## What Belongs In Beads
|
|
63
|
+
|
|
64
|
+
Use Beads for:
|
|
65
|
+
|
|
66
|
+
- shared project tasks
|
|
67
|
+
- blockers and dependencies
|
|
68
|
+
- discovered follow-up work
|
|
69
|
+
- work that must survive thread reset, compaction, or handoff
|
|
70
|
+
- status that another person or agent should be able to resume
|
|
71
|
+
|
|
72
|
+
Use agent-local planning tools only for the current turn's execution checklist. Do not treat them as shared project state.
|
|
73
|
+
|
|
74
|
+
## Rules
|
|
75
|
+
|
|
76
|
+
- Do not create markdown TODO files as the source of truth when Beads is available.
|
|
77
|
+
- Do not use `bd edit`; it opens an interactive editor. Use `bd update` flags instead.
|
|
78
|
+
- Prefer `--json` when parsing `bd` output programmatically.
|
|
79
|
+
- If hooks are installed, `bd prime` may already be injected. Run it manually when context is missing.
|
|
80
|
+
- Do not auto-close or mutate tasks unless the work is actually complete.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Dolt database (managed by Dolt, not git)
|
|
2
|
+
dolt/
|
|
3
|
+
embeddeddolt/
|
|
4
|
+
proxieddb/
|
|
5
|
+
|
|
6
|
+
# Runtime files
|
|
7
|
+
bd.sock
|
|
8
|
+
bd.sock.startlock
|
|
9
|
+
sync-state.json
|
|
10
|
+
last-touched
|
|
11
|
+
.exclusive-lock
|
|
12
|
+
|
|
13
|
+
# Daemon runtime (lock, log, pid)
|
|
14
|
+
daemon.*
|
|
15
|
+
|
|
16
|
+
# Push state (runtime, per-machine)
|
|
17
|
+
push-state.json
|
|
18
|
+
|
|
19
|
+
# Lock files (various runtime locks)
|
|
20
|
+
*.lock
|
|
21
|
+
|
|
22
|
+
# Credential key (encryption key for federation peer auth — never commit)
|
|
23
|
+
.beads-credential-key
|
|
24
|
+
|
|
25
|
+
# Local version tracking (prevents upgrade notification spam after git ops)
|
|
26
|
+
.local_version
|
|
27
|
+
|
|
28
|
+
proxied_server_client_info.json
|
|
29
|
+
|
|
30
|
+
# Worktree redirect file (contains relative path to main repo's .beads/)
|
|
31
|
+
# Must not be committed as paths would be wrong in other clones
|
|
32
|
+
redirect
|
|
33
|
+
|
|
34
|
+
# Sync state (local-only, per-machine)
|
|
35
|
+
# These files are machine-specific and should not be shared across clones
|
|
36
|
+
.sync.lock
|
|
37
|
+
|
|
38
|
+
# Workspace operation gate (internal/workspacegate): physical-root gate
|
|
39
|
+
# files live beside the guarded root inside .beads (e.g. dolt.gate.lock)
|
|
40
|
+
*.gate.lock*
|
|
41
|
+
export-state/
|
|
42
|
+
export-state.json
|
|
43
|
+
last_pull
|
|
44
|
+
|
|
45
|
+
# Ephemeral store (SQLite - wisps/molecules, intentionally not versioned)
|
|
46
|
+
ephemeral.sqlite3
|
|
47
|
+
ephemeral.sqlite3-journal
|
|
48
|
+
ephemeral.sqlite3-wal
|
|
49
|
+
ephemeral.sqlite3-shm
|
|
50
|
+
|
|
51
|
+
# Dolt server management (auto-started by bd)
|
|
52
|
+
dolt-server.pid
|
|
53
|
+
dolt-server.log
|
|
54
|
+
dolt-server.lock
|
|
55
|
+
dolt-server.port
|
|
56
|
+
dolt-server.activity
|
|
57
|
+
|
|
58
|
+
# Debug-mode pprof artifacts (written when dolt.debug: true in config.yaml)
|
|
59
|
+
dolt-pprof/
|
|
60
|
+
|
|
61
|
+
# Corrupt backup directories (created by bd doctor --fix recovery)
|
|
62
|
+
*.corrupt.backup/
|
|
63
|
+
|
|
64
|
+
# Backup data (auto-exported JSONL, local-only)
|
|
65
|
+
backup/
|
|
66
|
+
|
|
67
|
+
# Per-project environment file (Dolt connection config, GH#2520)
|
|
68
|
+
.env
|
|
69
|
+
|
|
70
|
+
# Legacy files (from pre-Dolt versions)
|
|
71
|
+
*.db
|
|
72
|
+
*.db?*
|
|
73
|
+
*.db-journal
|
|
74
|
+
*.db-wal
|
|
75
|
+
*.db-shm
|
|
76
|
+
db.sqlite
|
|
77
|
+
bd.db
|
|
78
|
+
# NOTE: Do NOT add negation patterns here.
|
|
79
|
+
# They would override fork protection in .git/info/exclude.
|
|
80
|
+
# Config files (metadata.json, config.yaml) are tracked by git by default
|
|
81
|
+
# since no pattern above ignores them.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Beads - AI-Native Issue Tracking
|
|
2
|
+
|
|
3
|
+
Welcome to Beads! This repository uses **Beads** for issue tracking - a modern, AI-native tool designed to live directly in your codebase alongside your code.
|
|
4
|
+
|
|
5
|
+
## What is Beads?
|
|
6
|
+
|
|
7
|
+
Beads is issue tracking that lives in your repo, making it perfect for AI coding agents and developers who want their issues close to their code. No web UI required - everything works through the CLI and integrates seamlessly with git.
|
|
8
|
+
|
|
9
|
+
**Learn more:** [github.com/steveyegge/beads](https://github.com/steveyegge/beads)
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
### Essential Commands
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Create new issues
|
|
17
|
+
bd create "Add user authentication"
|
|
18
|
+
|
|
19
|
+
# View all issues
|
|
20
|
+
bd list
|
|
21
|
+
|
|
22
|
+
# View issue details
|
|
23
|
+
bd show <issue-id>
|
|
24
|
+
|
|
25
|
+
# Update issue status
|
|
26
|
+
bd update <issue-id> --claim
|
|
27
|
+
bd update <issue-id> --status done
|
|
28
|
+
|
|
29
|
+
# Sync with Dolt remote
|
|
30
|
+
bd dolt push
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Working with Issues
|
|
34
|
+
|
|
35
|
+
Issues in Beads are:
|
|
36
|
+
- **Git-native**: Stored in Dolt database with version control and branching
|
|
37
|
+
- **AI-friendly**: CLI-first design works perfectly with AI coding agents
|
|
38
|
+
- **Branch-aware**: Issues can follow your branch workflow
|
|
39
|
+
- **Sync-ready**: Uses Dolt remotes for backup and team sharing
|
|
40
|
+
|
|
41
|
+
## Why Beads?
|
|
42
|
+
|
|
43
|
+
✨ **AI-Native Design**
|
|
44
|
+
- Built specifically for AI-assisted development workflows
|
|
45
|
+
- CLI-first interface works seamlessly with AI coding agents
|
|
46
|
+
- No context switching to web UIs
|
|
47
|
+
|
|
48
|
+
🚀 **Developer Focused**
|
|
49
|
+
- Issues live in your repo, right next to your code
|
|
50
|
+
- Works offline, syncs when you push
|
|
51
|
+
- Fast, lightweight, and stays out of your way
|
|
52
|
+
|
|
53
|
+
🔧 **Git Integration**
|
|
54
|
+
- Dolt-native sync via bd dolt push / bd dolt pull
|
|
55
|
+
- Branch-aware issue tracking
|
|
56
|
+
- Dolt-native three-way merge resolution
|
|
57
|
+
|
|
58
|
+
## Get Started with Beads
|
|
59
|
+
|
|
60
|
+
Try Beads in your own projects:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Install Beads
|
|
64
|
+
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
|
|
65
|
+
|
|
66
|
+
# Initialize in your repo
|
|
67
|
+
bd init
|
|
68
|
+
|
|
69
|
+
# Create your first issue
|
|
70
|
+
bd create "Try out Beads"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Learn More
|
|
74
|
+
|
|
75
|
+
- **Documentation**: [github.com/steveyegge/beads/docs](https://github.com/steveyegge/beads/tree/main/docs)
|
|
76
|
+
- **Quick Start Guide**: Run `bd quickstart`
|
|
77
|
+
- **Examples**: [github.com/steveyegge/beads/examples](https://github.com/steveyegge/beads/tree/main/examples)
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
*Beads: Issue tracking that moves at the speed of thought* ⚡
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Beads Configuration File
|
|
2
|
+
# This file configures default behavior for all bd commands in this repository
|
|
3
|
+
# All settings can also be set via environment variables (BD_* prefix)
|
|
4
|
+
# or overridden with command-line flags
|
|
5
|
+
|
|
6
|
+
# Issue prefix for this repository (used by bd init)
|
|
7
|
+
# If not set, bd init will auto-detect from directory name
|
|
8
|
+
# Example: issue-prefix: "myproject" creates issues like "myproject-1", "myproject-2", etc.
|
|
9
|
+
# issue-prefix: ""
|
|
10
|
+
|
|
11
|
+
# Use no-db mode: JSONL-only, no Dolt database
|
|
12
|
+
# When true, .beads/issues.jsonl is the only local store
|
|
13
|
+
# no-db: false
|
|
14
|
+
|
|
15
|
+
# Enable JSON output by default
|
|
16
|
+
# json: false
|
|
17
|
+
|
|
18
|
+
# Feedback title formatting for mutating commands (create/update/close/dep/edit)
|
|
19
|
+
# 0 = hide titles, N > 0 = truncate to N characters
|
|
20
|
+
# output:
|
|
21
|
+
# title-length: 255
|
|
22
|
+
|
|
23
|
+
# Default actor for audit trails (overridden by BEADS_ACTOR or --actor)
|
|
24
|
+
# actor: ""
|
|
25
|
+
|
|
26
|
+
# Optional JSONL sidecar for explicit agent/tool interaction audit records.
|
|
27
|
+
# Issue history is always recorded in the database and is visible with
|
|
28
|
+
# bd history <id> --events; this only controls .beads/interactions.jsonl.
|
|
29
|
+
# audit:
|
|
30
|
+
# enabled: false
|
|
31
|
+
|
|
32
|
+
# Export events (audit trail) to .beads/events.jsonl on each flush/sync
|
|
33
|
+
# When enabled, new events are appended incrementally using a high-water mark.
|
|
34
|
+
# Use 'bd export --events' to trigger manually regardless of this setting.
|
|
35
|
+
# events-export: false
|
|
36
|
+
|
|
37
|
+
# Multi-repo configuration (experimental - bd-307)
|
|
38
|
+
# Allows hydrating from multiple repositories and routing writes to the correct database
|
|
39
|
+
# repos:
|
|
40
|
+
# primary: "." # Primary repo (where this database lives)
|
|
41
|
+
# additional: # Additional repos to hydrate from (read-only)
|
|
42
|
+
# - ~/beads-planning # Personal planning repo
|
|
43
|
+
# - ~/work-planning # Work planning repo
|
|
44
|
+
|
|
45
|
+
# Dolt-native backup (periodic backup for off-machine recovery)
|
|
46
|
+
# This is full database backup only. Cross-machine sync uses Dolt remotes.
|
|
47
|
+
# backup:
|
|
48
|
+
# enabled: false # Disable auto-backup entirely
|
|
49
|
+
# interval: 15m # Minimum time between auto-backups
|
|
50
|
+
# git-push: false # Disable git push (backup locally only)
|
|
51
|
+
# git-repo: "" # Separate git repo for backups (default: project repo)
|
|
52
|
+
|
|
53
|
+
# Optional JSONL auto-export for viewers, interchange, and issue-level migration.
|
|
54
|
+
# Disabled by default; enable only when an integration needs fresh .beads/issues.jsonl.
|
|
55
|
+
# Use relative paths under .beads/ for JSONL import/export filenames.
|
|
56
|
+
# export:
|
|
57
|
+
# auto: false
|
|
58
|
+
# path: issues.jsonl
|
|
59
|
+
# interval: 60s
|
|
60
|
+
# git-add: false
|
|
61
|
+
# import:
|
|
62
|
+
# path: issues.jsonl
|
|
63
|
+
|
|
64
|
+
# Integration settings (access with 'bd config get/set')
|
|
65
|
+
# Non-secret keys (stored in the database):
|
|
66
|
+
# - jira.url, jira.project
|
|
67
|
+
# - linear.team_id
|
|
68
|
+
# - github.org, github.repo
|
|
69
|
+
#
|
|
70
|
+
# Secret keys (stored in this file but prefer env vars to avoid git exposure):
|
|
71
|
+
# - linear.api_key → use LINEAR_API_KEY env var instead
|
|
72
|
+
# - github.token → use GITHUB_TOKEN env var instead
|
|
73
|
+
|
|
74
|
+
sync.remote: "git+https://github.com/Josverl/mpflash"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
# --- BEGIN BEADS INTEGRATION v1.3.0 ---
|
|
3
|
+
# This section is managed by beads. Do not remove these markers.
|
|
4
|
+
if command -v bd >/dev/null 2>&1; then
|
|
5
|
+
export BD_GIT_HOOK=1
|
|
6
|
+
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
7
|
+
case "$_bd_timeout" in
|
|
8
|
+
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
|
9
|
+
*[1-9]*) _bd_timeout_invalid=0 ;;
|
|
10
|
+
*) _bd_timeout_invalid=1 ;;
|
|
11
|
+
esac
|
|
12
|
+
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
|
13
|
+
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
|
14
|
+
_bd_timeout=300
|
|
15
|
+
fi
|
|
16
|
+
_bd_timeout_backend=none
|
|
17
|
+
_bd_timeout_command=
|
|
18
|
+
for _bd_timeout_candidate in timeout gtimeout; do
|
|
19
|
+
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
|
20
|
+
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
|
21
|
+
case "$_bd_timeout_version" in
|
|
22
|
+
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
|
23
|
+
esac
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
if [ -n "$_bd_timeout_command" ]; then
|
|
28
|
+
_bd_timeout_backend=coreutils
|
|
29
|
+
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
|
|
30
|
+
_bd_exit=0
|
|
31
|
+
else
|
|
32
|
+
_bd_exit=$?
|
|
33
|
+
fi
|
|
34
|
+
elif command -v perl >/dev/null 2>&1; then
|
|
35
|
+
_bd_timeout_backend=perl
|
|
36
|
+
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
|
|
37
|
+
_bd_exit=0
|
|
38
|
+
else
|
|
39
|
+
_bd_exit=$?
|
|
40
|
+
fi
|
|
41
|
+
else
|
|
42
|
+
echo >&2 "beads: hook 'post-checkout' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
|
43
|
+
if bd hooks run post-checkout "$@"; then
|
|
44
|
+
_bd_exit=0
|
|
45
|
+
else
|
|
46
|
+
_bd_exit=$?
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
|
50
|
+
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
|
|
51
|
+
_bd_exit=0
|
|
52
|
+
fi
|
|
53
|
+
if [ "$_bd_exit" -eq 3 ]; then
|
|
54
|
+
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
|
|
55
|
+
_bd_exit=0
|
|
56
|
+
fi
|
|
57
|
+
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
|
58
|
+
fi
|
|
59
|
+
# --- END BEADS INTEGRATION v1.3.0 ---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
# --- BEGIN BEADS INTEGRATION v1.3.0 ---
|
|
3
|
+
# This section is managed by beads. Do not remove these markers.
|
|
4
|
+
if command -v bd >/dev/null 2>&1; then
|
|
5
|
+
export BD_GIT_HOOK=1
|
|
6
|
+
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
7
|
+
case "$_bd_timeout" in
|
|
8
|
+
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
|
9
|
+
*[1-9]*) _bd_timeout_invalid=0 ;;
|
|
10
|
+
*) _bd_timeout_invalid=1 ;;
|
|
11
|
+
esac
|
|
12
|
+
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
|
13
|
+
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
|
14
|
+
_bd_timeout=300
|
|
15
|
+
fi
|
|
16
|
+
_bd_timeout_backend=none
|
|
17
|
+
_bd_timeout_command=
|
|
18
|
+
for _bd_timeout_candidate in timeout gtimeout; do
|
|
19
|
+
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
|
20
|
+
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
|
21
|
+
case "$_bd_timeout_version" in
|
|
22
|
+
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
|
23
|
+
esac
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
if [ -n "$_bd_timeout_command" ]; then
|
|
28
|
+
_bd_timeout_backend=coreutils
|
|
29
|
+
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-merge "$@"; then
|
|
30
|
+
_bd_exit=0
|
|
31
|
+
else
|
|
32
|
+
_bd_exit=$?
|
|
33
|
+
fi
|
|
34
|
+
elif command -v perl >/dev/null 2>&1; then
|
|
35
|
+
_bd_timeout_backend=perl
|
|
36
|
+
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-merge "$@"; then
|
|
37
|
+
_bd_exit=0
|
|
38
|
+
else
|
|
39
|
+
_bd_exit=$?
|
|
40
|
+
fi
|
|
41
|
+
else
|
|
42
|
+
echo >&2 "beads: hook 'post-merge' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
|
43
|
+
if bd hooks run post-merge "$@"; then
|
|
44
|
+
_bd_exit=0
|
|
45
|
+
else
|
|
46
|
+
_bd_exit=$?
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
|
50
|
+
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
|
51
|
+
_bd_exit=0
|
|
52
|
+
fi
|
|
53
|
+
if [ "$_bd_exit" -eq 3 ]; then
|
|
54
|
+
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
|
55
|
+
_bd_exit=0
|
|
56
|
+
fi
|
|
57
|
+
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
|
58
|
+
fi
|
|
59
|
+
# --- END BEADS INTEGRATION v1.3.0 ---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
# --- BEGIN BEADS INTEGRATION v1.3.0 ---
|
|
3
|
+
# This section is managed by beads. Do not remove these markers.
|
|
4
|
+
if command -v bd >/dev/null 2>&1; then
|
|
5
|
+
export BD_GIT_HOOK=1
|
|
6
|
+
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
7
|
+
case "$_bd_timeout" in
|
|
8
|
+
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
|
9
|
+
*[1-9]*) _bd_timeout_invalid=0 ;;
|
|
10
|
+
*) _bd_timeout_invalid=1 ;;
|
|
11
|
+
esac
|
|
12
|
+
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
|
13
|
+
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
|
14
|
+
_bd_timeout=300
|
|
15
|
+
fi
|
|
16
|
+
_bd_timeout_backend=none
|
|
17
|
+
_bd_timeout_command=
|
|
18
|
+
for _bd_timeout_candidate in timeout gtimeout; do
|
|
19
|
+
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
|
20
|
+
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
|
21
|
+
case "$_bd_timeout_version" in
|
|
22
|
+
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
|
23
|
+
esac
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
if [ -n "$_bd_timeout_command" ]; then
|
|
28
|
+
_bd_timeout_backend=coreutils
|
|
29
|
+
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
|
|
30
|
+
_bd_exit=0
|
|
31
|
+
else
|
|
32
|
+
_bd_exit=$?
|
|
33
|
+
fi
|
|
34
|
+
elif command -v perl >/dev/null 2>&1; then
|
|
35
|
+
_bd_timeout_backend=perl
|
|
36
|
+
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
|
|
37
|
+
_bd_exit=0
|
|
38
|
+
else
|
|
39
|
+
_bd_exit=$?
|
|
40
|
+
fi
|
|
41
|
+
else
|
|
42
|
+
echo >&2 "beads: hook 'pre-commit' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
|
43
|
+
if bd hooks run pre-commit "$@"; then
|
|
44
|
+
_bd_exit=0
|
|
45
|
+
else
|
|
46
|
+
_bd_exit=$?
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
|
50
|
+
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
|
|
51
|
+
_bd_exit=0
|
|
52
|
+
fi
|
|
53
|
+
if [ "$_bd_exit" -eq 3 ]; then
|
|
54
|
+
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
|
|
55
|
+
_bd_exit=0
|
|
56
|
+
fi
|
|
57
|
+
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
|
58
|
+
fi
|
|
59
|
+
# --- END BEADS INTEGRATION v1.3.0 ---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
# --- BEGIN BEADS INTEGRATION v1.3.0 ---
|
|
3
|
+
# This section is managed by beads. Do not remove these markers.
|
|
4
|
+
if command -v bd >/dev/null 2>&1; then
|
|
5
|
+
export BD_GIT_HOOK=1
|
|
6
|
+
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
7
|
+
case "$_bd_timeout" in
|
|
8
|
+
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
|
9
|
+
*[1-9]*) _bd_timeout_invalid=0 ;;
|
|
10
|
+
*) _bd_timeout_invalid=1 ;;
|
|
11
|
+
esac
|
|
12
|
+
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
|
13
|
+
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
|
14
|
+
_bd_timeout=300
|
|
15
|
+
fi
|
|
16
|
+
_bd_timeout_backend=none
|
|
17
|
+
_bd_timeout_command=
|
|
18
|
+
for _bd_timeout_candidate in timeout gtimeout; do
|
|
19
|
+
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
|
20
|
+
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
|
21
|
+
case "$_bd_timeout_version" in
|
|
22
|
+
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
|
23
|
+
esac
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
if [ -n "$_bd_timeout_command" ]; then
|
|
28
|
+
_bd_timeout_backend=coreutils
|
|
29
|
+
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-push "$@"; then
|
|
30
|
+
_bd_exit=0
|
|
31
|
+
else
|
|
32
|
+
_bd_exit=$?
|
|
33
|
+
fi
|
|
34
|
+
elif command -v perl >/dev/null 2>&1; then
|
|
35
|
+
_bd_timeout_backend=perl
|
|
36
|
+
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-push "$@"; then
|
|
37
|
+
_bd_exit=0
|
|
38
|
+
else
|
|
39
|
+
_bd_exit=$?
|
|
40
|
+
fi
|
|
41
|
+
else
|
|
42
|
+
echo >&2 "beads: hook 'pre-push' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
|
43
|
+
if bd hooks run pre-push "$@"; then
|
|
44
|
+
_bd_exit=0
|
|
45
|
+
else
|
|
46
|
+
_bd_exit=$?
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
|
50
|
+
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
|
|
51
|
+
_bd_exit=0
|
|
52
|
+
fi
|
|
53
|
+
if [ "$_bd_exit" -eq 3 ]; then
|
|
54
|
+
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
|
|
55
|
+
_bd_exit=0
|
|
56
|
+
fi
|
|
57
|
+
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
|
58
|
+
fi
|
|
59
|
+
# --- END BEADS INTEGRATION v1.3.0 ---
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
# --- BEGIN BEADS INTEGRATION v1.3.0 ---
|
|
3
|
+
# This section is managed by beads. Do not remove these markers.
|
|
4
|
+
if command -v bd >/dev/null 2>&1; then
|
|
5
|
+
export BD_GIT_HOOK=1
|
|
6
|
+
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
|
7
|
+
case "$_bd_timeout" in
|
|
8
|
+
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
|
9
|
+
*[1-9]*) _bd_timeout_invalid=0 ;;
|
|
10
|
+
*) _bd_timeout_invalid=1 ;;
|
|
11
|
+
esac
|
|
12
|
+
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
|
13
|
+
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
|
14
|
+
_bd_timeout=300
|
|
15
|
+
fi
|
|
16
|
+
_bd_timeout_backend=none
|
|
17
|
+
_bd_timeout_command=
|
|
18
|
+
for _bd_timeout_candidate in timeout gtimeout; do
|
|
19
|
+
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
|
20
|
+
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
|
21
|
+
case "$_bd_timeout_version" in
|
|
22
|
+
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
|
23
|
+
esac
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
if [ -n "$_bd_timeout_command" ]; then
|
|
28
|
+
_bd_timeout_backend=coreutils
|
|
29
|
+
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
|
|
30
|
+
_bd_exit=0
|
|
31
|
+
else
|
|
32
|
+
_bd_exit=$?
|
|
33
|
+
fi
|
|
34
|
+
elif command -v perl >/dev/null 2>&1; then
|
|
35
|
+
_bd_timeout_backend=perl
|
|
36
|
+
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
|
|
37
|
+
_bd_exit=0
|
|
38
|
+
else
|
|
39
|
+
_bd_exit=$?
|
|
40
|
+
fi
|
|
41
|
+
else
|
|
42
|
+
echo >&2 "beads: hook 'prepare-commit-msg' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
|
43
|
+
if bd hooks run prepare-commit-msg "$@"; then
|
|
44
|
+
_bd_exit=0
|
|
45
|
+
else
|
|
46
|
+
_bd_exit=$?
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
|
50
|
+
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
|
|
51
|
+
_bd_exit=0
|
|
52
|
+
fi
|
|
53
|
+
if [ "$_bd_exit" -eq 3 ]; then
|
|
54
|
+
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
|
|
55
|
+
_bd_exit=0
|
|
56
|
+
fi
|
|
57
|
+
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
|
58
|
+
fi
|
|
59
|
+
# --- END BEADS INTEGRATION v1.3.0 ---
|