JSPM

baudai

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 7
    • Score
      100M100P100Q63891F
    • License ISC

    Generic MCU development helper skills for PlatformIO projects

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (baudai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      BaudAI

      MCU workflow helpers for PlatformIO projects.

      中文说明

      Overview

      BaudAI packages a small set of scripts for common embedded development tasks:

      • initialize project-level Copilot context files
      • build PlatformIO firmware
      • flash firmware in mock or hardware mode
      • simulate startup serial logs for tooling workflows
      • adjust the project-specific mentor persona
      • run an interactive CLI for the above actions

      The toolkit stays board-agnostic and reads build settings from the target project's platformio.ini.

      Requirements

      • Node.js
      • npm
      • PlatformIO Core
      • a working PlatformIO project

      Quick Start

      Replace ../your-platformio-project with your own PlatformIO project path.

      cd BaudAI
      npm install
      npx tsx skills/build.ts ../your-platformio-project
      npx tsx skills/flash.ts ../your-platformio-project
      npx tsx skills/flash.ts ../your-platformio-project --real --port COM5

      Install from npm

      After publishing the package, you can install it globally and run it from the root of a PlatformIO project:

      npm install -g baudai
      cd ../your-platformio-project
      baudai
      baudai build
      baudai flash --real --port COM5

      You can also use it without a global install:

      npx baudai

      Commands

      npx tsx skills/init.ts ../your-platformio-project
      npx tsx skills/build.ts ../your-platformio-project [environment]
      npx tsx skills/flash.ts ../your-platformio-project [environment] [--mock|--real] [--port COM5] [--baud 921600]
      npx tsx skills/monitor.ts
      npx tsx skills/config.ts ../your-platformio-project

      Run the interactive CLI from inside the target PlatformIO project:

      cd ../your-platformio-project
      npx tsx ../BaudAI/skills/cli.ts

      Notes

      • flash.ts defaults to mock mode unless --real is provided.
      • monitor.ts currently outputs mock startup logs rather than reading from a physical serial port.
      • Tool scripts emit machine-readable JSON between AI_TOOL_RESULT_START and AI_TOOL_RESULT_END.

      Publishing to npm

      Before publishing:

      • make sure the package name is available on npm
      • bump version in package.json
      • review the published file list with npm run pack:check

      Publish flow:

      npm login
      npm run pack:check
      npm publish

      Public Repo Hygiene

      This repository intentionally keeps examples generic. Avoid committing local absolute paths, private project names, serial device inventories, secrets, or screenshots that expose workstation details.