mikro 0.1.0 → 0.10.0-next.7.gdacecb0
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.
- package/LICENSE +21 -0
- package/README.md +64 -31
- package/bin/mikrojs.js +29 -0
- package/dist/_exports/ble.d.ts +3 -0
- package/dist/_exports/ble.d.ts.map +1 -0
- package/dist/_exports/ble.js +2 -0
- package/dist/_exports/ble.js.map +1 -0
- package/dist/_exports/cbor.d.ts +3 -0
- package/dist/_exports/cbor.d.ts.map +1 -0
- package/dist/_exports/cbor.js +2 -0
- package/dist/_exports/cbor.js.map +1 -0
- package/dist/_exports/console.d.ts +2 -0
- package/dist/_exports/console.d.ts.map +1 -0
- package/dist/_exports/console.js +2 -0
- package/dist/_exports/console.js.map +1 -0
- package/dist/_exports/env.d.ts +2 -0
- package/dist/_exports/env.d.ts.map +1 -0
- package/dist/_exports/env.js +2 -0
- package/dist/_exports/env.js.map +1 -0
- package/dist/_exports/format.d.ts +2 -0
- package/dist/_exports/format.d.ts.map +1 -0
- package/dist/_exports/format.js +2 -0
- package/dist/_exports/format.js.map +1 -0
- package/dist/_exports/fs.d.ts +2 -0
- package/dist/_exports/fs.d.ts.map +1 -0
- package/dist/_exports/fs.js +2 -0
- package/dist/_exports/fs.js.map +1 -0
- package/dist/_exports/http/helpers.d.ts +3 -0
- package/dist/_exports/http/helpers.d.ts.map +1 -0
- package/dist/_exports/http/helpers.js +5 -0
- package/dist/_exports/http/helpers.js.map +1 -0
- package/dist/_exports/http/request.d.ts +4 -0
- package/dist/_exports/http/request.d.ts.map +1 -0
- package/dist/_exports/http/request.js +10 -0
- package/dist/_exports/http/request.js.map +1 -0
- package/dist/_exports/i2c.d.ts +2 -0
- package/dist/_exports/i2c.d.ts.map +1 -0
- package/dist/_exports/i2c.js +2 -0
- package/dist/_exports/i2c.js.map +1 -0
- package/dist/_exports/index.d.ts +149 -0
- package/dist/_exports/index.d.ts.map +1 -0
- package/dist/_exports/index.js +4 -0
- package/dist/_exports/index.js.map +1 -0
- package/dist/_exports/inspect.d.ts +2 -0
- package/dist/_exports/inspect.d.ts.map +1 -0
- package/dist/_exports/inspect.js +2 -0
- package/dist/_exports/inspect.js.map +1 -0
- package/dist/_exports/kv/nvs.d.ts +3 -0
- package/dist/_exports/kv/nvs.d.ts.map +1 -0
- package/dist/_exports/kv/nvs.js +2 -0
- package/dist/_exports/kv/nvs.js.map +1 -0
- package/dist/_exports/kv/rtc.d.ts +3 -0
- package/dist/_exports/kv/rtc.d.ts.map +1 -0
- package/dist/_exports/kv/rtc.js +2 -0
- package/dist/_exports/kv/rtc.js.map +1 -0
- package/dist/_exports/module.d.ts +2 -0
- package/dist/_exports/module.d.ts.map +1 -0
- package/dist/_exports/module.js +2 -0
- package/dist/_exports/module.js.map +1 -0
- package/dist/_exports/neopixel.d.ts +2 -0
- package/dist/_exports/neopixel.d.ts.map +1 -0
- package/dist/_exports/neopixel.js +2 -0
- package/dist/_exports/neopixel.js.map +1 -0
- package/dist/_exports/observable/operators.d.ts +2 -0
- package/dist/_exports/observable/operators.d.ts.map +1 -0
- package/dist/_exports/observable/operators.js +2 -0
- package/dist/_exports/observable/operators.js.map +1 -0
- package/dist/_exports/observable.d.ts +2 -0
- package/dist/_exports/observable.d.ts.map +1 -0
- package/dist/_exports/observable.js +2 -0
- package/dist/_exports/observable.js.map +1 -0
- package/dist/_exports/pin.d.ts +2 -0
- package/dist/_exports/pin.d.ts.map +1 -0
- package/dist/_exports/pin.js +2 -0
- package/dist/_exports/pin.js.map +1 -0
- package/dist/_exports/pwm.d.ts +2 -0
- package/dist/_exports/pwm.d.ts.map +1 -0
- package/dist/_exports/pwm.js +2 -0
- package/dist/_exports/pwm.js.map +1 -0
- package/dist/_exports/reader.d.ts +2 -0
- package/dist/_exports/reader.d.ts.map +1 -0
- package/dist/_exports/reader.js +2 -0
- package/dist/_exports/reader.js.map +1 -0
- package/dist/_exports/result.d.ts +2 -0
- package/dist/_exports/result.d.ts.map +1 -0
- package/dist/_exports/result.js +2 -0
- package/dist/_exports/result.js.map +1 -0
- package/dist/_exports/schema.d.ts +2 -0
- package/dist/_exports/schema.d.ts.map +1 -0
- package/dist/_exports/schema.js +2 -0
- package/dist/_exports/schema.js.map +1 -0
- package/dist/_exports/sim.d.ts +196 -0
- package/dist/_exports/sim.d.ts.map +1 -0
- package/dist/_exports/sim.js +9 -0
- package/dist/_exports/sim.js.map +1 -0
- package/dist/_exports/sleep.d.ts +2 -0
- package/dist/_exports/sleep.d.ts.map +1 -0
- package/dist/_exports/sleep.js +2 -0
- package/dist/_exports/sleep.js.map +1 -0
- package/dist/_exports/sntp.d.ts +3 -0
- package/dist/_exports/sntp.d.ts.map +1 -0
- package/dist/_exports/sntp.js +2 -0
- package/dist/_exports/sntp.js.map +1 -0
- package/dist/_exports/spi.d.ts +2 -0
- package/dist/_exports/spi.d.ts.map +1 -0
- package/dist/_exports/spi.js +2 -0
- package/dist/_exports/spi.js.map +1 -0
- package/dist/_exports/stdio.d.ts +2 -0
- package/dist/_exports/stdio.d.ts.map +1 -0
- package/dist/_exports/stdio.js +2 -0
- package/dist/_exports/stdio.js.map +1 -0
- package/dist/_exports/stream.d.ts +2 -0
- package/dist/_exports/stream.d.ts.map +1 -0
- package/dist/_exports/stream.js +2 -0
- package/dist/_exports/stream.js.map +1 -0
- package/dist/_exports/sys.d.ts +2 -0
- package/dist/_exports/sys.d.ts.map +1 -0
- package/dist/_exports/sys.js +2 -0
- package/dist/_exports/sys.js.map +1 -0
- package/dist/_exports/test.d.ts +2 -0
- package/dist/_exports/test.d.ts.map +1 -0
- package/dist/_exports/test.js +2 -0
- package/dist/_exports/test.js.map +1 -0
- package/dist/_exports/uart.d.ts +2 -0
- package/dist/_exports/uart.d.ts.map +1 -0
- package/dist/_exports/uart.js +2 -0
- package/dist/_exports/uart.js.map +1 -0
- package/dist/_exports/udp.d.ts +3 -0
- package/dist/_exports/udp.d.ts.map +1 -0
- package/dist/_exports/udp.js +2 -0
- package/dist/_exports/udp.js.map +1 -0
- package/dist/_exports/wifi.d.ts +3 -0
- package/dist/_exports/wifi.d.ts.map +1 -0
- package/dist/_exports/wifi.js +2 -0
- package/dist/_exports/wifi.js.map +1 -0
- package/dist/cli/cli.d.ts +3 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/cli/cli.js +179 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/cliWrapper.d.ts +3 -0
- package/dist/cli/cliWrapper.d.ts.map +1 -0
- package/dist/cli/cliWrapper.js +41 -0
- package/dist/cli/cliWrapper.js.map +1 -0
- package/dist/cli/commands/build-runtime.d.ts +14 -0
- package/dist/cli/commands/build-runtime.d.ts.map +1 -0
- package/dist/cli/commands/build-runtime.js +122 -0
- package/dist/cli/commands/build-runtime.js.map +1 -0
- package/dist/cli/commands/build.d.ts +31 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/build.js +146 -0
- package/dist/cli/commands/build.js.map +1 -0
- package/dist/cli/commands/clean.d.ts +16 -0
- package/dist/cli/commands/clean.d.ts.map +1 -0
- package/dist/cli/commands/clean.js +148 -0
- package/dist/cli/commands/clean.js.map +1 -0
- package/dist/cli/commands/console.d.ts +19 -0
- package/dist/cli/commands/console.d.ts.map +1 -0
- package/dist/cli/commands/console.js +32 -0
- package/dist/cli/commands/console.js.map +1 -0
- package/dist/cli/commands/deploy.d.ts +61 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.js +240 -0
- package/dist/cli/commands/deploy.js.map +1 -0
- package/dist/cli/commands/dev.d.ts +39 -0
- package/dist/cli/commands/dev.d.ts.map +1 -0
- package/dist/cli/commands/dev.js +165 -0
- package/dist/cli/commands/dev.js.map +1 -0
- package/dist/cli/commands/docs.d.ts +7 -0
- package/dist/cli/commands/docs.d.ts.map +1 -0
- package/dist/cli/commands/docs.js +20 -0
- package/dist/cli/commands/docs.js.map +1 -0
- package/dist/cli/commands/env.d.ts +59 -0
- package/dist/cli/commands/env.d.ts.map +1 -0
- package/dist/cli/commands/env.js +227 -0
- package/dist/cli/commands/env.js.map +1 -0
- package/dist/cli/commands/erase.d.ts +18 -0
- package/dist/cli/commands/erase.d.ts.map +1 -0
- package/dist/cli/commands/erase.js +92 -0
- package/dist/cli/commands/erase.js.map +1 -0
- package/dist/cli/commands/flash.d.ts +30 -0
- package/dist/cli/commands/flash.d.ts.map +1 -0
- package/dist/cli/commands/flash.js +266 -0
- package/dist/cli/commands/flash.js.map +1 -0
- package/dist/cli/commands/home.d.ts +7 -0
- package/dist/cli/commands/home.d.ts.map +1 -0
- package/dist/cli/commands/home.js +20 -0
- package/dist/cli/commands/home.js.map +1 -0
- package/dist/cli/commands/logs.d.ts +28 -0
- package/dist/cli/commands/logs.d.ts.map +1 -0
- package/dist/cli/commands/logs.js +125 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/ls.d.ts +17 -0
- package/dist/cli/commands/ls.d.ts.map +1 -0
- package/dist/cli/commands/ls.js +62 -0
- package/dist/cli/commands/ls.js.map +1 -0
- package/dist/cli/commands/sim/clean.d.ts +7 -0
- package/dist/cli/commands/sim/clean.d.ts.map +1 -0
- package/dist/cli/commands/sim/clean.js +34 -0
- package/dist/cli/commands/sim/clean.js.map +1 -0
- package/dist/cli/commands/sim/deploy.d.ts +43 -0
- package/dist/cli/commands/sim/deploy.d.ts.map +1 -0
- package/dist/cli/commands/sim/deploy.js +121 -0
- package/dist/cli/commands/sim/deploy.js.map +1 -0
- package/dist/cli/commands/sim/dev.d.ts +49 -0
- package/dist/cli/commands/sim/dev.d.ts.map +1 -0
- package/dist/cli/commands/sim/dev.js +373 -0
- package/dist/cli/commands/sim/dev.js.map +1 -0
- package/dist/cli/commands/sim/env.d.ts +56 -0
- package/dist/cli/commands/sim/env.d.ts.map +1 -0
- package/dist/cli/commands/sim/env.js +230 -0
- package/dist/cli/commands/sim/env.js.map +1 -0
- package/dist/cli/commands/sim/profile.d.ts +67 -0
- package/dist/cli/commands/sim/profile.d.ts.map +1 -0
- package/dist/cli/commands/sim/profile.js +372 -0
- package/dist/cli/commands/sim/profile.js.map +1 -0
- package/dist/cli/commands/sim/repl.d.ts +16 -0
- package/dist/cli/commands/sim/repl.d.ts.map +1 -0
- package/dist/cli/commands/sim/repl.js +119 -0
- package/dist/cli/commands/sim/repl.js.map +1 -0
- package/dist/cli/commands/sim/reset.d.ts +11 -0
- package/dist/cli/commands/sim/reset.d.ts.map +1 -0
- package/dist/cli/commands/sim/reset.js +59 -0
- package/dist/cli/commands/sim/reset.js.map +1 -0
- package/dist/cli/commands/sim/scaffold.d.ts +11 -0
- package/dist/cli/commands/sim/scaffold.d.ts.map +1 -0
- package/dist/cli/commands/sim/scaffold.js +41 -0
- package/dist/cli/commands/sim/scaffold.js.map +1 -0
- package/dist/cli/commands/sim/test.d.ts +47 -0
- package/dist/cli/commands/sim/test.d.ts.map +1 -0
- package/dist/cli/commands/sim/test.js +363 -0
- package/dist/cli/commands/sim/test.js.map +1 -0
- package/dist/cli/commands/sim.d.ts +222 -0
- package/dist/cli/commands/sim.d.ts.map +1 -0
- package/dist/cli/commands/sim.js +69 -0
- package/dist/cli/commands/sim.js.map +1 -0
- package/dist/cli/commands/test.d.ts +37 -0
- package/dist/cli/commands/test.d.ts.map +1 -0
- package/dist/cli/commands/test.js +430 -0
- package/dist/cli/commands/test.js.map +1 -0
- package/dist/cli/components/DevicePicker.d.ts +9 -0
- package/dist/cli/components/DevicePicker.d.ts.map +1 -0
- package/dist/cli/components/DevicePicker.js +77 -0
- package/dist/cli/components/DevicePicker.js.map +1 -0
- package/dist/cli/components/EnvEditor.d.ts +12 -0
- package/dist/cli/components/EnvEditor.d.ts.map +1 -0
- package/dist/cli/components/EnvEditor.js +201 -0
- package/dist/cli/components/EnvEditor.js.map +1 -0
- package/dist/cli/components/TextInput.d.ts +28 -0
- package/dist/cli/components/TextInput.d.ts.map +1 -0
- package/dist/cli/components/TextInput.js +73 -0
- package/dist/cli/components/TextInput.js.map +1 -0
- package/dist/cli/components/TitledBox.d.ts +27 -0
- package/dist/cli/components/TitledBox.d.ts.map +1 -0
- package/dist/cli/components/TitledBox.js +111 -0
- package/dist/cli/components/TitledBox.js.map +1 -0
- package/dist/cli/hooks/useDevices.d.ts +23 -0
- package/dist/cli/hooks/useDevices.d.ts.map +1 -0
- package/dist/cli/hooks/useDevices.js +19 -0
- package/dist/cli/hooks/useDevices.js.map +1 -0
- package/dist/cli/lib/RenderAndExit.d.ts +6 -0
- package/dist/cli/lib/RenderAndExit.d.ts.map +1 -0
- package/dist/cli/lib/RenderAndExit.js +8 -0
- package/dist/cli/lib/RenderAndExit.js.map +1 -0
- package/dist/cli/lib/Spinner.d.ts +11 -0
- package/dist/cli/lib/Spinner.d.ts.map +1 -0
- package/dist/cli/lib/Spinner.js +22 -0
- package/dist/cli/lib/Spinner.js.map +1 -0
- package/dist/cli/lib/agent.d.ts +38 -0
- package/dist/cli/lib/agent.d.ts.map +1 -0
- package/dist/cli/lib/agent.js +87 -0
- package/dist/cli/lib/agent.js.map +1 -0
- package/dist/cli/lib/boards.d.ts +23 -0
- package/dist/cli/lib/boards.d.ts.map +1 -0
- package/dist/cli/lib/boards.js +70 -0
- package/dist/cli/lib/boards.js.map +1 -0
- package/dist/cli/lib/build.d.ts +53 -0
- package/dist/cli/lib/build.d.ts.map +1 -0
- package/dist/cli/lib/build.js +557 -0
- package/dist/cli/lib/build.js.map +1 -0
- package/dist/cli/lib/connectSim.d.ts +21 -0
- package/dist/cli/lib/connectSim.d.ts.map +1 -0
- package/dist/cli/lib/connectSim.js +20 -0
- package/dist/cli/lib/connectSim.js.map +1 -0
- package/dist/cli/lib/deploy.d.ts +42 -0
- package/dist/cli/lib/deploy.d.ts.map +1 -0
- package/dist/cli/lib/deploy.js +123 -0
- package/dist/cli/lib/deploy.js.map +1 -0
- package/dist/cli/lib/deployProgress.d.ts +8 -0
- package/dist/cli/lib/deployProgress.d.ts.map +1 -0
- package/dist/cli/lib/deployProgress.js +32 -0
- package/dist/cli/lib/deployProgress.js.map +1 -0
- package/dist/cli/lib/dotenv.d.ts +25 -0
- package/dist/cli/lib/dotenv.d.ts.map +1 -0
- package/dist/cli/lib/dotenv.js +47 -0
- package/dist/cli/lib/dotenv.js.map +1 -0
- package/dist/cli/lib/esbuild.d.ts +7 -0
- package/dist/cli/lib/esbuild.d.ts.map +1 -0
- package/dist/cli/lib/esbuild.js +15 -0
- package/dist/cli/lib/esbuild.js.map +1 -0
- package/dist/cli/lib/esptool.d.ts +41 -0
- package/dist/cli/lib/esptool.d.ts.map +1 -0
- package/dist/cli/lib/esptool.js +43 -0
- package/dist/cli/lib/esptool.js.map +1 -0
- package/dist/cli/lib/firmware.d.ts +24 -0
- package/dist/cli/lib/firmware.d.ts.map +1 -0
- package/dist/cli/lib/firmware.js +406 -0
- package/dist/cli/lib/firmware.js.map +1 -0
- package/dist/cli/lib/firmwareCompat.d.ts +36 -0
- package/dist/cli/lib/firmwareCompat.d.ts.map +1 -0
- package/dist/cli/lib/firmwareCompat.js +73 -0
- package/dist/cli/lib/firmwareCompat.js.map +1 -0
- package/dist/cli/lib/heapBaseline.d.ts +15 -0
- package/dist/cli/lib/heapBaseline.d.ts.map +1 -0
- package/dist/cli/lib/heapBaseline.js +39 -0
- package/dist/cli/lib/heapBaseline.js.map +1 -0
- package/dist/cli/lib/ink-table/index.d.ts +88 -0
- package/dist/cli/lib/ink-table/index.d.ts.map +1 -0
- package/dist/cli/lib/ink-table/index.js +217 -0
- package/dist/cli/lib/ink-table/index.js.map +1 -0
- package/dist/cli/lib/legacyConfig.d.ts +10 -0
- package/dist/cli/lib/legacyConfig.d.ts.map +1 -0
- package/dist/cli/lib/legacyConfig.js +13 -0
- package/dist/cli/lib/legacyConfig.js.map +1 -0
- package/dist/cli/lib/loadMikroConfig.d.ts +17 -0
- package/dist/cli/lib/loadMikroConfig.d.ts.map +1 -0
- package/dist/cli/lib/loadMikroConfig.js +51 -0
- package/dist/cli/lib/loadMikroConfig.js.map +1 -0
- package/dist/cli/lib/minify.d.ts +3 -0
- package/dist/cli/lib/minify.d.ts.map +1 -0
- package/dist/cli/lib/minify.js +89 -0
- package/dist/cli/lib/minify.js.map +1 -0
- package/dist/cli/lib/openSim.d.ts +29 -0
- package/dist/cli/lib/openSim.d.ts.map +1 -0
- package/dist/cli/lib/openSim.js +32 -0
- package/dist/cli/lib/openSim.js.map +1 -0
- package/dist/cli/lib/ospawn.d.ts +34 -0
- package/dist/cli/lib/ospawn.d.ts.map +1 -0
- package/dist/cli/lib/ospawn.js +90 -0
- package/dist/cli/lib/ospawn.js.map +1 -0
- package/dist/cli/lib/parseMinifier.d.ts +10 -0
- package/dist/cli/lib/parseMinifier.d.ts.map +1 -0
- package/dist/cli/lib/parseMinifier.js +49 -0
- package/dist/cli/lib/parseMinifier.js.map +1 -0
- package/dist/cli/lib/parseSize.d.ts +6 -0
- package/dist/cli/lib/parseSize.d.ts.map +1 -0
- package/dist/cli/lib/parseSize.js +25 -0
- package/dist/cli/lib/parseSize.js.map +1 -0
- package/dist/cli/lib/pkgManager.d.ts +10 -0
- package/dist/cli/lib/pkgManager.d.ts.map +1 -0
- package/dist/cli/lib/pkgManager.js +29 -0
- package/dist/cli/lib/pkgManager.js.map +1 -0
- package/dist/cli/lib/portValueParser.d.ts +3 -0
- package/dist/cli/lib/portValueParser.d.ts.map +1 -0
- package/dist/cli/lib/portValueParser.js +41 -0
- package/dist/cli/lib/portValueParser.js.map +1 -0
- package/dist/cli/lib/projectRoot.d.ts +11 -0
- package/dist/cli/lib/projectRoot.d.ts.map +1 -0
- package/dist/cli/lib/projectRoot.js +28 -0
- package/dist/cli/lib/projectRoot.js.map +1 -0
- package/dist/cli/lib/protocol.d.ts +153 -0
- package/dist/cli/lib/protocol.d.ts.map +1 -0
- package/dist/cli/lib/protocol.js +401 -0
- package/dist/cli/lib/protocol.js.map +1 -0
- package/dist/cli/lib/recover.d.ts +25 -0
- package/dist/cli/lib/recover.d.ts.map +1 -0
- package/dist/cli/lib/recover.js +144 -0
- package/dist/cli/lib/recover.js.map +1 -0
- package/dist/cli/lib/resolveEntry.d.ts +7 -0
- package/dist/cli/lib/resolveEntry.d.ts.map +1 -0
- package/dist/cli/lib/resolveEntry.js +30 -0
- package/dist/cli/lib/resolveEntry.js.map +1 -0
- package/dist/cli/lib/runHooks.d.ts +34 -0
- package/dist/cli/lib/runHooks.d.ts.map +1 -0
- package/dist/cli/lib/runHooks.js +92 -0
- package/dist/cli/lib/runHooks.js.map +1 -0
- package/dist/cli/lib/secretInput.d.ts +3 -0
- package/dist/cli/lib/secretInput.d.ts.map +1 -0
- package/dist/cli/lib/secretInput.js +42 -0
- package/dist/cli/lib/secretInput.js.map +1 -0
- package/dist/cli/lib/serial/InkReplConsole.d.ts +27 -0
- package/dist/cli/lib/serial/InkReplConsole.d.ts.map +1 -0
- package/dist/cli/lib/serial/InkReplConsole.js +24 -0
- package/dist/cli/lib/serial/InkReplConsole.js.map +1 -0
- package/dist/cli/lib/serial/InkReplMode.d.ts +38 -0
- package/dist/cli/lib/serial/InkReplMode.d.ts.map +1 -0
- package/dist/cli/lib/serial/InkReplMode.js +90 -0
- package/dist/cli/lib/serial/InkReplMode.js.map +1 -0
- package/dist/cli/lib/serial/ReplConsole.d.ts +21 -0
- package/dist/cli/lib/serial/ReplConsole.d.ts.map +1 -0
- package/dist/cli/lib/serial/ReplConsole.js +272 -0
- package/dist/cli/lib/serial/ReplConsole.js.map +1 -0
- package/dist/cli/lib/serial/devSession.d.ts +56 -0
- package/dist/cli/lib/serial/devSession.d.ts.map +1 -0
- package/dist/cli/lib/serial/devSession.js +179 -0
- package/dist/cli/lib/serial/devSession.js.map +1 -0
- package/dist/cli/lib/serial/dispatchReplCommand.d.ts +25 -0
- package/dist/cli/lib/serial/dispatchReplCommand.d.ts.map +1 -0
- package/dist/cli/lib/serial/dispatchReplCommand.js +27 -0
- package/dist/cli/lib/serial/dispatchReplCommand.js.map +1 -0
- package/dist/cli/lib/serial/openSession.d.ts +28 -0
- package/dist/cli/lib/serial/openSession.d.ts.map +1 -0
- package/dist/cli/lib/serial/openSession.js +48 -0
- package/dist/cli/lib/serial/openSession.js.map +1 -0
- package/dist/cli/lib/serial/replStateMachine.d.ts +172 -0
- package/dist/cli/lib/serial/replStateMachine.d.ts.map +1 -0
- package/dist/cli/lib/serial/replStateMachine.js +681 -0
- package/dist/cli/lib/serial/replStateMachine.js.map +1 -0
- package/dist/cli/lib/serial/runAgentRepl.d.ts +33 -0
- package/dist/cli/lib/serial/runAgentRepl.d.ts.map +1 -0
- package/dist/cli/lib/serial/runAgentRepl.js +80 -0
- package/dist/cli/lib/serial/runAgentRepl.js.map +1 -0
- package/dist/cli/lib/serial/supervisedSession.d.ts +44 -0
- package/dist/cli/lib/serial/supervisedSession.d.ts.map +1 -0
- package/dist/cli/lib/serial/supervisedSession.js +214 -0
- package/dist/cli/lib/serial/supervisedSession.js.map +1 -0
- package/dist/cli/lib/session.d.ts +203 -0
- package/dist/cli/lib/session.d.ts.map +1 -0
- package/dist/cli/lib/session.js +563 -0
- package/dist/cli/lib/session.js.map +1 -0
- package/dist/cli/lib/simConfig.d.ts +16 -0
- package/dist/cli/lib/simConfig.d.ts.map +1 -0
- package/dist/cli/lib/simConfig.js +26 -0
- package/dist/cli/lib/simConfig.js.map +1 -0
- package/dist/cli/lib/simPid.d.ts +30 -0
- package/dist/cli/lib/simPid.d.ts.map +1 -0
- package/dist/cli/lib/simPid.js +120 -0
- package/dist/cli/lib/simPid.js.map +1 -0
- package/dist/cli/lib/simTransport.d.ts +17 -0
- package/dist/cli/lib/simTransport.d.ts.map +1 -0
- package/dist/cli/lib/simTransport.js +101 -0
- package/dist/cli/lib/simTransport.js.map +1 -0
- package/dist/cli/lib/testRunner.d.ts +86 -0
- package/dist/cli/lib/testRunner.d.ts.map +1 -0
- package/dist/cli/lib/testRunner.js +472 -0
- package/dist/cli/lib/testRunner.js.map +1 -0
- package/dist/cli/lib/transport.d.ts +34 -0
- package/dist/cli/lib/transport.d.ts.map +1 -0
- package/dist/cli/lib/transport.js +117 -0
- package/dist/cli/lib/transport.js.map +1 -0
- package/dist/cli/lib/troubleshooting.d.ts +10 -0
- package/dist/cli/lib/troubleshooting.d.ts.map +1 -0
- package/dist/cli/lib/troubleshooting.js +13 -0
- package/dist/cli/lib/troubleshooting.js.map +1 -0
- package/dist/cli/lib/useObservable.d.ts +4 -0
- package/dist/cli/lib/useObservable.d.ts.map +1 -0
- package/dist/cli/lib/useObservable.js +22 -0
- package/dist/cli/lib/useObservable.js.map +1 -0
- package/dist/cli/lib/watcher.d.ts +10 -0
- package/dist/cli/lib/watcher.d.ts.map +1 -0
- package/dist/cli/lib/watcher.js +34 -0
- package/dist/cli/lib/watcher.js.map +1 -0
- package/dist/cli/program.d.ts +840 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/program.js +49 -0
- package/dist/cli/program.js.map +1 -0
- package/dist/constants.d.ts +13 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +27 -0
- package/dist/constants.js.map +1 -0
- package/dist/simulator/builtins/ble.d.ts +3 -0
- package/dist/simulator/builtins/ble.d.ts.map +1 -0
- package/dist/simulator/builtins/ble.js +46 -0
- package/dist/simulator/builtins/ble.js.map +1 -0
- package/dist/simulator/builtins/console.d.ts +8 -0
- package/dist/simulator/builtins/console.d.ts.map +1 -0
- package/dist/simulator/builtins/console.js +24 -0
- package/dist/simulator/builtins/console.js.map +1 -0
- package/dist/simulator/builtins/http.d.ts +3 -0
- package/dist/simulator/builtins/http.d.ts.map +1 -0
- package/dist/simulator/builtins/http.js +90 -0
- package/dist/simulator/builtins/http.js.map +1 -0
- package/dist/simulator/builtins/i2c.d.ts +3 -0
- package/dist/simulator/builtins/i2c.d.ts.map +1 -0
- package/dist/simulator/builtins/i2c.js +17 -0
- package/dist/simulator/builtins/i2c.js.map +1 -0
- package/dist/simulator/builtins/index.d.ts +7 -0
- package/dist/simulator/builtins/index.d.ts.map +1 -0
- package/dist/simulator/builtins/index.js +49 -0
- package/dist/simulator/builtins/index.js.map +1 -0
- package/dist/simulator/builtins/kv.d.ts +3 -0
- package/dist/simulator/builtins/kv.d.ts.map +1 -0
- package/dist/simulator/builtins/kv.js +39 -0
- package/dist/simulator/builtins/kv.js.map +1 -0
- package/dist/simulator/builtins/neopixel.d.ts +3 -0
- package/dist/simulator/builtins/neopixel.d.ts.map +1 -0
- package/dist/simulator/builtins/neopixel.js +15 -0
- package/dist/simulator/builtins/neopixel.js.map +1 -0
- package/dist/simulator/builtins/nvs-kv.d.ts +3 -0
- package/dist/simulator/builtins/nvs-kv.d.ts.map +1 -0
- package/dist/simulator/builtins/nvs-kv.js +69 -0
- package/dist/simulator/builtins/nvs-kv.js.map +1 -0
- package/dist/simulator/builtins/pin.d.ts +3 -0
- package/dist/simulator/builtins/pin.d.ts.map +1 -0
- package/dist/simulator/builtins/pin.js +32 -0
- package/dist/simulator/builtins/pin.js.map +1 -0
- package/dist/simulator/builtins/pwm.d.ts +3 -0
- package/dist/simulator/builtins/pwm.d.ts.map +1 -0
- package/dist/simulator/builtins/pwm.js +31 -0
- package/dist/simulator/builtins/pwm.js.map +1 -0
- package/dist/simulator/builtins/sleep.d.ts +3 -0
- package/dist/simulator/builtins/sleep.d.ts.map +1 -0
- package/dist/simulator/builtins/sleep.js +26 -0
- package/dist/simulator/builtins/sleep.js.map +1 -0
- package/dist/simulator/builtins/sntp.d.ts +3 -0
- package/dist/simulator/builtins/sntp.d.ts.map +1 -0
- package/dist/simulator/builtins/sntp.js +14 -0
- package/dist/simulator/builtins/sntp.js.map +1 -0
- package/dist/simulator/builtins/spi.d.ts +3 -0
- package/dist/simulator/builtins/spi.d.ts.map +1 -0
- package/dist/simulator/builtins/spi.js +16 -0
- package/dist/simulator/builtins/spi.js.map +1 -0
- package/dist/simulator/builtins/types.d.ts +24 -0
- package/dist/simulator/builtins/types.d.ts.map +1 -0
- package/dist/simulator/builtins/types.js +2 -0
- package/dist/simulator/builtins/types.js.map +1 -0
- package/dist/simulator/builtins/uart.d.ts +3 -0
- package/dist/simulator/builtins/uart.d.ts.map +1 -0
- package/dist/simulator/builtins/uart.js +22 -0
- package/dist/simulator/builtins/uart.js.map +1 -0
- package/dist/simulator/builtins/wifi.d.ts +3 -0
- package/dist/simulator/builtins/wifi.d.ts.map +1 -0
- package/dist/simulator/builtins/wifi.js +53 -0
- package/dist/simulator/builtins/wifi.js.map +1 -0
- package/dist/simulator/devRunner.d.ts +41 -0
- package/dist/simulator/devRunner.d.ts.map +1 -0
- package/dist/simulator/devRunner.js +201 -0
- package/dist/simulator/devRunner.js.map +1 -0
- package/dist/simulator/loadSimStubs.d.ts +15 -0
- package/dist/simulator/loadSimStubs.d.ts.map +1 -0
- package/dist/simulator/loadSimStubs.js +54 -0
- package/dist/simulator/loadSimStubs.js.map +1 -0
- package/dist/simulator/simProcess.d.ts +11 -0
- package/dist/simulator/simProcess.d.ts.map +1 -0
- package/dist/simulator/simProcess.js +953 -0
- package/dist/simulator/simProcess.js.map +1 -0
- package/dist/simulator/simTemplates.d.ts +6 -0
- package/dist/simulator/simTemplates.d.ts.map +1 -0
- package/dist/simulator/simTemplates.js +21 -0
- package/dist/simulator/simTemplates.js.map +1 -0
- package/dist/suppressStripTypesWarning.d.ts +2 -0
- package/dist/suppressStripTypesWarning.d.ts.map +1 -0
- package/dist/suppressStripTypesWarning.js +22 -0
- package/dist/suppressStripTypesWarning.js.map +1 -0
- package/package.json +120 -55
- package/runtime.d.ts +92 -0
- package/tsconfig.base.json +24 -0
- package/cli/Makefile +0 -6
- package/cli/Readme.md +0 -28
- package/cli/go.mod +0 -5
- package/cli/go.sum +0 -13
- package/cli/index.js +0 -37
- package/cli/main-linux-386 +0 -0
- package/cli/main-linux-amd64 +0 -0
- package/cli/main-linux-arm +0 -0
- package/cli/main-windows-386 +0 -0
- package/cli/main-windows-386.exe +0 -0
- package/cli/main-windows-amd64.exe +0 -0
- package/cli/main.exe +0 -0
- package/cli/main.go +0 -143
- package/lib/client.d.ts +0 -46
- package/lib/client.js +0 -182
- package/lib/errors/PubSubError.d.ts +0 -3
- package/lib/errors/PubSubError.js +0 -23
- package/lib/errors/index.d.ts +0 -1
- package/lib/errors/index.js +0 -5
- package/lib/events/index.d.ts +0 -1
- package/lib/events/index.js +0 -5
- package/lib/events/interface.d.ts +0 -28
- package/lib/events/interface.js +0 -2
- package/lib/events/kafka.d.ts +0 -40
- package/lib/events/kafka.js +0 -91
- package/lib/events/redis.d.ts +0 -39
- package/lib/events/redis.js +0 -70
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Bjørge Næss
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,47 +1,80 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://mikrojs.dev/logo.svg" width="200" alt="Mikro.js logo">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-

|
|
5
|
-

|
|
5
|
+
<h1 align="center">Mikro.js</h1>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<p align="center">TypeScript-first runtime for microcontrollers with a focus on developer experience and iteration speed.</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://mikrojs.dev">Documentation</a> · <a href="https://mikrojs.dev/getting-started">Getting Started</a> · <a href="https://mikrojs.dev/api/">API Reference</a> · <a href="https://mikrojs.dev/examples/">Examples</a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<div align="center">
|
|
14
|
+
|
|
15
|
+
[](https://npmx.dev/package/mikrojs)
|
|
16
|
+
[](https://npmx.dev/package/mikrojs)
|
|
17
|
+
[](https://npmx.dev/package/mikrojs)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
> [!NOTE]
|
|
22
|
+
> Mikro.js is in early development. Expect APIs to change.
|
|
23
|
+
|
|
24
|
+
## Features
|
|
25
|
+
|
|
26
|
+
- **Fast feedback loop**: interactive dev console with watch mode and incremental builds that deploy to your device in a few seconds
|
|
27
|
+
- **Full TypeScript**: near-complete ES2024 support, type-checked hardware APIs, and editor autocomplete
|
|
28
|
+
- **Batteries included**: GPIO, PWM, I2C, SPI, UART, WiFi, HTTP, UDP, NeoPixel, deep sleep, SNTP, CBOR, schema validation, key-value storage, and more
|
|
29
|
+
- **Host simulator**: run your code on your computer with `mikro sim dev`. No microcontroller needed
|
|
30
|
+
- **No exceptions**: typed Result errors instead of try/catch. Every failure is visible in the type signature
|
|
31
|
+
- **Built-in testing**: test suites with resource leak detection and more. Run in the simulator or on a real device
|
|
32
|
+
|
|
33
|
+
## Quickstart
|
|
8
34
|
|
|
9
|
-
## Usage
|
|
10
|
-
Install the framework from npm:
|
|
11
35
|
```sh
|
|
12
|
-
npm
|
|
36
|
+
npm create mikrojs my-app
|
|
37
|
+
cd my-app
|
|
38
|
+
npm install
|
|
39
|
+
npx mikro flash # once per board
|
|
40
|
+
npx mikro dev # build, deploy, live-reload
|
|
13
41
|
```
|
|
14
42
|
|
|
15
|
-
|
|
16
|
-
```javascript
|
|
17
|
-
const { Mikro } = require('@flexwie/mikro')
|
|
43
|
+
## Example
|
|
18
44
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
const mikro = new Mikro('example', {
|
|
24
|
-
redis: { // redis connection details
|
|
25
|
-
host: 'localhost',
|
|
26
|
-
port: 6379,
|
|
27
|
-
db: 0
|
|
28
|
-
}
|
|
29
|
-
})
|
|
45
|
+
```ts
|
|
46
|
+
import {digitalWrite, pinMode} from 'mikro/pin'
|
|
47
|
+
import {sleep} from 'mikro/sleep'
|
|
30
48
|
|
|
31
|
-
|
|
49
|
+
const LED = 20
|
|
32
50
|
|
|
33
|
-
|
|
34
|
-
mikro.register()
|
|
51
|
+
pinMode(LED, 'OUTPUT').orPanic('Failed to set pin mode')
|
|
35
52
|
|
|
53
|
+
while (true) {
|
|
54
|
+
digitalWrite(LED, 1)
|
|
55
|
+
await sleep(500)
|
|
56
|
+
digitalWrite(LED, 0)
|
|
57
|
+
await sleep(500)
|
|
58
|
+
}
|
|
36
59
|
```
|
|
37
60
|
|
|
38
|
-
|
|
61
|
+
## Overview
|
|
39
62
|
|
|
40
|
-
|
|
41
|
-
npx @flexwie/mikro new service_name
|
|
42
|
-
```
|
|
63
|
+
The core runtime is a standalone C++ library with no ESP-IDF dependencies, making it portable across platforms.
|
|
43
64
|
|
|
44
|
-
|
|
65
|
+
- **Engine**: [QuickJS-NG](https://github.com/quickjs-ng/quickjs) ([near-complete ES2024 coverage](https://test262.fyi/#|qjs_ng))
|
|
66
|
+
- **Runtime**: Standalone C++ library with cooperative, single-threaded event loop
|
|
67
|
+
- **Platform**: ESP-IDF >= 6.0.1 (ESP32, ESP32-C3, ESP32-S3, ESP32-C5, ESP32-C6), desktop (macOS, Linux)
|
|
68
|
+
- **Modules**: Four-source resolution: virtual modules, native C modules, bytecode builtins, filesystem (LittleFS)
|
|
69
|
+
- **Bytecode**: TypeScript bundled with esbuild, compiled to QuickJS bytecode at build time
|
|
70
|
+
- **Tooling**: Node.js CLI (Ink/React), Node-API addon for host-side development and simulation
|
|
45
71
|
|
|
46
72
|
## Acknowledgements
|
|
47
|
-
|
|
73
|
+
|
|
74
|
+
Mikro.js has drawn heavy inspiration from [txiki.js](https://github.com/saghul/txiki.js), a small JavaScript runtime built on QuickJS.
|
|
75
|
+
|
|
76
|
+
Thanks to Felix Wieland ([@flexwie](https://github.com/flexwie)) for generously donating the `mikro` package name on npm.
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT
|
package/bin/mikrojs.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {spawn} from 'node:child_process'
|
|
3
|
+
import {join} from 'node:path'
|
|
4
|
+
|
|
5
|
+
if (process.env.MIKROJS_WORKSPACE === '1') {
|
|
6
|
+
// Pass node flags via NODE_OPTIONS instead of CLI args so any node subprocess
|
|
7
|
+
// we spawn later (notably simProcess via createSimTransport) inherits tsx
|
|
8
|
+
// loading without each spawn site having to special-case workspace mode.
|
|
9
|
+
// The stripTypeScriptTypes ExperimentalWarning is handled precisely by
|
|
10
|
+
// suppressStripTypesWarning.ts (imported in cli.ts and simProcess.ts), so we
|
|
11
|
+
// don't blanket-disable ExperimentalWarning here and keep other ones visible.
|
|
12
|
+
const nodeOptions = [process.env.NODE_OPTIONS ?? '', '--conditions=development', '--import=tsx']
|
|
13
|
+
.filter(Boolean)
|
|
14
|
+
.join(' ')
|
|
15
|
+
spawn(
|
|
16
|
+
process.execPath,
|
|
17
|
+
[join(import.meta.dirname, '../src/cli/cliWrapper.ts'), ...process.argv.slice(2)],
|
|
18
|
+
{
|
|
19
|
+
stdio: 'inherit',
|
|
20
|
+
env: {
|
|
21
|
+
...process.env,
|
|
22
|
+
NODE_OPTIONS: nodeOptions,
|
|
23
|
+
TSX_TSCONFIG_PATH: join(import.meta.dirname, '../tsconfig.json'),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
).on('exit', (code, signal) => process.exit(code ?? (signal ? 1 : 0)))
|
|
27
|
+
} else {
|
|
28
|
+
await import('../dist/cli/cliWrapper.js')
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ble.d.ts","sourceRoot":"","sources":["../../src/_exports/ble.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,EACH,QAAQ,EACR,UAAU,GACX,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAC,GAAG,EAAE,UAAU,EAAC,MAAM,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ble.js","sourceRoot":"","sources":["../../src/_exports/ble.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,GAAG,EAAE,UAAU,EAAC,MAAM,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cbor.d.ts","sourceRoot":"","sources":["../../src/_exports/cbor.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,SAAS,EAAC,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cbor.js","sourceRoot":"","sources":["../../src/_exports/cbor.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/_exports/console.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.js","sourceRoot":"","sources":["../../src/_exports/console.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/_exports/env.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/_exports/env.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/_exports/format.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/_exports/format.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/_exports/fs.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/_exports/fs.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/_exports/http/helpers.ts"],"names":[],"mappings":"AAIA,YAAY,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,YAAY,GACb,MAAM,sCAAsC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Transport-agnostic HTTP helpers. Import from here when implementing a
|
|
2
|
+
// custom transport (e.g. an LTE modem) so the native-backed `request` and
|
|
3
|
+
// its `native:http` dependency aren't retained on device.
|
|
4
|
+
export { BodyConsumedError, makeResponse, prepareBody, RequestError, } from '@mikrojs/native/runtime/http/helpers';
|
|
5
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/_exports/http/helpers.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,0EAA0E;AAC1E,0DAA0D;AAG1D,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,YAAY,GACb,MAAM,sCAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/_exports/http/request.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,sCAAsC,CAAA;AAEjE,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,CAAA;AACrC,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,MAAM,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Pure-types entry for `mikro/http/request`. Runtime values are provided
|
|
2
|
+
// on-device by the bundled `http/request` bytecode module (and by a stub in
|
|
3
|
+
// the simulator). This file declares the shapes so TypeScript and host
|
|
4
|
+
// tooling can see them without pulling in `native:http`.
|
|
5
|
+
//
|
|
6
|
+
// For `RequestError`, `BodyConsumedError`, `prepareBody`, `makeResponse`, or
|
|
7
|
+
// the shared types, import from `mikro/http/helpers` directly -- that
|
|
8
|
+
// subpath has no `native:http` dependency.
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/_exports/http/request.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,4EAA4E;AAC5E,uEAAuE;AACvE,yDAAyD;AACzD,EAAE;AACF,6EAA6E;AAC7E,sEAAsE;AACtE,2CAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i2c.d.ts","sourceRoot":"","sources":["../../src/_exports/i2c.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i2c.js","sourceRoot":"","sources":["../../src/_exports/i2c.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export type WifiCountryCode = 'AT' | 'AU' | 'BE' | 'BG' | 'BR' | 'CA' | 'CH' | 'CN' | 'CY' | 'CZ' | 'DE' | 'DK' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HK' | 'HR' | 'HU' | 'IE' | 'IN' | 'IS' | 'IT' | 'JP' | 'KR' | 'LI' | 'LT' | 'LU' | 'LV' | 'MT' | 'MX' | 'NL' | 'NO' | 'NZ' | 'PL' | 'PT' | 'RO' | 'SE' | 'SI' | 'SK' | 'TW' | 'US';
|
|
2
|
+
export interface MikroJSSimConfig {
|
|
3
|
+
/** QuickJS heap memory limit. Number of bytes, or string with K/M suffix (e.g. '300k'). */
|
|
4
|
+
memLimit?: number | string;
|
|
5
|
+
/** Virtual filesystem size limit. Number of bytes, or string with K/M suffix (e.g. '1m'). */
|
|
6
|
+
fsLimit?: number | string;
|
|
7
|
+
/** Filesystem sandbox root directory. Defaults to .mikro/sim-fs. */
|
|
8
|
+
fsRoot?: string;
|
|
9
|
+
}
|
|
10
|
+
export type Minifier = 'esbuild' | 'terser' | 'swc';
|
|
11
|
+
export type MinifyLevel = 'default' | 'max';
|
|
12
|
+
export type LogLevel = 'none' | 'error' | 'warn' | 'info' | 'debug';
|
|
13
|
+
export interface MikroJSBuildConfig {
|
|
14
|
+
/** Bundle user code into a single module via esbuild, with tree-shaking.
|
|
15
|
+
* Firmware builtins (mikrojs/*, native:*, and @mikrojs/* packages
|
|
16
|
+
* with native code) stay external. Reduces QuickJS per-module overhead
|
|
17
|
+
* and strips unused code paths, at the cost of less informative stack
|
|
18
|
+
* traces. Default: false (per-file transform). */
|
|
19
|
+
bundle?: boolean;
|
|
20
|
+
/** Which minifier to use. Requires the corresponding package to be
|
|
21
|
+
* installed: 'terser' for terser, '@swc/core' for swc. esbuild is
|
|
22
|
+
* always available. Default: 'esbuild'. */
|
|
23
|
+
minifier?: Minifier;
|
|
24
|
+
/** Minification level. 'default' uses safe transforms only. 'max' enables
|
|
25
|
+
* unsafe transforms (multiple compress passes, toplevel mangling,
|
|
26
|
+
* pure_getters, unsafe_arrows, unsafe_math, unsafe_methods) for the
|
|
27
|
+
* smallest possible output. Default: 'default'. */
|
|
28
|
+
minifyLevel?: MinifyLevel;
|
|
29
|
+
/** Build-time log level. Console methods below this threshold are
|
|
30
|
+
* eliminated as dead code by the minifier (via `pure_funcs`). For
|
|
31
|
+
* helper functions that compute values only used in log calls,
|
|
32
|
+
* annotate with `@__PURE__` so the minifier can cascade the removal:
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* const m = \/\* @__PURE__ \*\/ memoryUsage()
|
|
36
|
+
* console.log(`[mem] heap: ${m.heapUsed}`)
|
|
37
|
+
* // both statements eliminated at logLevel: 'warn'
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* Levels from most to least verbose: 'debug' > 'info' > 'warn' > 'error' > 'none'.
|
|
41
|
+
* CLI `--loglevel` flag overrides this setting. Default: 'debug' (keep all). */
|
|
42
|
+
logLevel?: LogLevel;
|
|
43
|
+
}
|
|
44
|
+
export interface MikroJSWifiConfig {
|
|
45
|
+
/** Two-letter ISO 3166-1 country code for the WiFi regulatory domain. */
|
|
46
|
+
country?: WifiCountryCode;
|
|
47
|
+
/** DHCP hostname advertised by the STA interface. Defaults to
|
|
48
|
+
* `mikrojs-<device-id>` when unset. RFC 1123: letters, digits, hyphens
|
|
49
|
+
* only; must not start or end with a hyphen; max 63 chars. */
|
|
50
|
+
hostname?: string;
|
|
51
|
+
}
|
|
52
|
+
export type LogFlush = 'line' | 'error';
|
|
53
|
+
export interface MikroJSLogFileOptions {
|
|
54
|
+
/** Directory on the device filesystem where the log file lives. The
|
|
55
|
+
* actual file is always `<dir>/log.txt` (rotated as `log.txt.1`).
|
|
56
|
+
* Default: '/appfs/logs'. */
|
|
57
|
+
dir?: string;
|
|
58
|
+
/** Maximum file size before rotation. Number of bytes, or string with
|
|
59
|
+
* K/M suffix (e.g. '64k', '1m'). At cap, `log.txt` is renamed to
|
|
60
|
+
* `log.txt.1` (replacing any previous generation) and a fresh
|
|
61
|
+
* `log.txt` is started. Total flash usage is bounded at 2 × maxSize.
|
|
62
|
+
* Default: '64k'. */
|
|
63
|
+
maxSize?: number | string;
|
|
64
|
+
/** When to commit buffered writes to flash. 'line' flushes after every
|
|
65
|
+
* newline (strongest post-mortem guarantee, hardest on flash). 'error'
|
|
66
|
+
* buffers in RAM and flushes on warn/error lines or when the buffer
|
|
67
|
+
* fills. Default: 'error'. */
|
|
68
|
+
flush?: LogFlush;
|
|
69
|
+
}
|
|
70
|
+
/** What the device does after an uncaught exception (a "panic").
|
|
71
|
+
*
|
|
72
|
+
* `delay` is the grace window (ms) the device stays awake and reachable
|
|
73
|
+
* before acting. The protocol REPL keeps servicing deploy / clean /
|
|
74
|
+
* --recover commands during it, so a long enough delay lets the host break
|
|
75
|
+
* a tight crash loop; short enough keeps the device converging when no one
|
|
76
|
+
* is watching. Default: `1000`.
|
|
77
|
+
*
|
|
78
|
+
* - `restart` (default): reboot after the grace window.
|
|
79
|
+
* - `deepSleep`: deep-sleep for `duration` ms after the grace window; the
|
|
80
|
+
* timer wake reboots the chip (the wake IS the restart). Conserves battery
|
|
81
|
+
* for field devices, at the cost of being unreachable while asleep. Keep
|
|
82
|
+
* `delay` low (or `0`) in the field; raise it on the bench so you can still
|
|
83
|
+
* grab the device before it goes dark. */
|
|
84
|
+
export type MikroJSPanicAction = {
|
|
85
|
+
mode: 'restart';
|
|
86
|
+
delay?: number;
|
|
87
|
+
} | {
|
|
88
|
+
mode: 'deepSleep';
|
|
89
|
+
delay?: number;
|
|
90
|
+
duration: number;
|
|
91
|
+
};
|
|
92
|
+
export interface MikroJSConfig {
|
|
93
|
+
/** Behavior after an uncaught exception. Default:
|
|
94
|
+
* `{mode: 'restart', delay: 1000}`. */
|
|
95
|
+
onPanic?: MikroJSPanicAction;
|
|
96
|
+
stackSize?: number;
|
|
97
|
+
memReserved?: number;
|
|
98
|
+
/** Maximum size in bytes for a single readFile() call. Files larger than
|
|
99
|
+
* this throw FSError with code 'EFBIG' — use open() + read() to stream
|
|
100
|
+
* larger files chunk-by-chunk. Number of bytes, or string with K/M
|
|
101
|
+
* suffix (e.g. '128k', '1m'). Default: 65536 (64 KiB). */
|
|
102
|
+
fsReadMax?: number | string;
|
|
103
|
+
wifi?: MikroJSWifiConfig;
|
|
104
|
+
/** File logging to the device filesystem. Captures console output and
|
|
105
|
+
* native log calls into a rotated log file for post-mortem debugging.
|
|
106
|
+
* Use `true` for defaults, or an options object to override individual
|
|
107
|
+
* settings. Omit to disable. */
|
|
108
|
+
logFile?: true | MikroJSLogFileOptions;
|
|
109
|
+
/** Simulator-only options. Stripped from the bundled config before deploy. */
|
|
110
|
+
sim?: MikroJSSimConfig;
|
|
111
|
+
/** Build-time options. Stripped from the bundled config before deploy. */
|
|
112
|
+
build?: MikroJSBuildConfig;
|
|
113
|
+
/** Per-environment overrides. Each entry is shallow-merged over the base
|
|
114
|
+
* config (the surrounding fields) for that environment. The `env` map is
|
|
115
|
+
* removed from the config deployed to the device. See {@link MikroEnv} for
|
|
116
|
+
* how each environment maps to commands.
|
|
117
|
+
*
|
|
118
|
+
* The merge is shallow: each field in an override replaces the base value
|
|
119
|
+
* wholesale (no field-by-field merging, so an override can't leave stray
|
|
120
|
+
* fields behind). To keep some of a base group like `build`, spread it.
|
|
121
|
+
* Every environment merges over the base independently; an omitted
|
|
122
|
+
* environment is just the base.
|
|
123
|
+
*
|
|
124
|
+
* ```ts
|
|
125
|
+
* export default defineConfig({
|
|
126
|
+
* build: {minifyLevel: 'max'},
|
|
127
|
+
* env: {
|
|
128
|
+
* // Write logs to flash and deep-sleep after a crash.
|
|
129
|
+
* production: {logFile: true, onPanic: {mode: 'deepSleep', delay: 0, duration: 600000}},
|
|
130
|
+
* // Keep all logs; wait before restarting after a crash.
|
|
131
|
+
* development: {build: {logLevel: 'debug'}, onPanic: {mode: 'restart', delay: 5000}},
|
|
132
|
+
* },
|
|
133
|
+
* })
|
|
134
|
+
* ``` */
|
|
135
|
+
env?: Partial<Record<MikroEnv, MikroJSConfigOverride>>;
|
|
136
|
+
}
|
|
137
|
+
/** The environment a build runs in:
|
|
138
|
+
* - `production` — `mikro deploy`, `mikro build`
|
|
139
|
+
* - `development` — `mikro dev`, `mikro sim deploy`/`dev`/`profile`
|
|
140
|
+
* - `test` — `mikro test`, `mikro sim test`
|
|
141
|
+
*
|
|
142
|
+
* This is the config environment only — the granular `.env.<mode>` file a
|
|
143
|
+
* command loads (e.g. `.env.simulator`, `.env.test`) is a separate concern. */
|
|
144
|
+
export type MikroEnv = 'development' | 'production' | 'test';
|
|
145
|
+
/** Fields that may be overridden per environment: every {@link MikroJSConfig}
|
|
146
|
+
* field except `env` itself (overrides don't nest). */
|
|
147
|
+
export type MikroJSConfigOverride = Omit<MikroJSConfig, 'env'>;
|
|
148
|
+
export declare function defineConfig<T extends MikroJSConfig>(config: T): T;
|
|
149
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_exports/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_exports/index.ts"],"names":[],"mappings":"AAqMA,MAAM,UAAU,YAAY,CAA0B,MAAS;IAC7D,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/_exports/inspect.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect.js","sourceRoot":"","sources":["../../src/_exports/inspect.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nvs.d.ts","sourceRoot":"","sources":["../../../src/_exports/kv/nvs.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,UAAU,EACV,cAAc,EACd,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nvs.js","sourceRoot":"","sources":["../../../src/_exports/kv/nvs.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc.d.ts","sourceRoot":"","sources":["../../../src/_exports/kv/rtc.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtc.js","sourceRoot":"","sources":["../../../src/_exports/kv/rtc.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/_exports/module.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/_exports/module.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neopixel.d.ts","sourceRoot":"","sources":["../../src/_exports/neopixel.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neopixel.js","sourceRoot":"","sources":["../../src/_exports/neopixel.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/_exports/observable/operators.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../src/_exports/observable/operators.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/_exports/observable.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observable.js","sourceRoot":"","sources":["../../src/_exports/observable.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA"}
|