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 COM5Install 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 COM5You can also use it without a global install:
npx baudaiCommands
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-projectRun the interactive CLI from inside the target PlatformIO project:
cd ../your-platformio-project
npx tsx ../BaudAI/skills/cli.tsNotes
flash.tsdefaults to mock mode unless--realis provided.monitor.tscurrently outputs mock startup logs rather than reading from a physical serial port.- Tool scripts emit machine-readable JSON between
AI_TOOL_RESULT_STARTandAI_TOOL_RESULT_END.
Publishing to npm
Before publishing:
- make sure the package name is available on npm
- bump
versioninpackage.json - review the published file list with
npm run pack:check
Publish flow:
npm login
npm run pack:check
npm publishPublic 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.