diff --git a/.github/workflows/math.yml b/.github/workflows/math.yml
new file mode 100644
index 000000000..a6060f965
--- /dev/null
+++ b/.github/workflows/math.yml
@@ -0,0 +1,79 @@
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+# GitHub recommends pinning actions to a commit SHA.
+# To get a newer version, you will need to update the SHA.
+# You can also reference a tag or branch, but the action may change without warning.
+
+name: Testing deployment
+
+env:
+ APP_LOCATION: "/" # location of your client code
+ APP_ARTIFACT_LOCATION: "/dist" # location of client code build output
+
+on:
+ push:
+ branches:
+ - production-math
+ pull_request:
+ types: [opened, synchronize, reopened, closed]
+ branches:
+ - production-math
+
+permissions:
+ issues: write
+ contents: read
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Run Tests
+ run: |
+ npm ci
+ npm test
+ formatting_and_linting:
+ name: Prettier / svelte Check
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v3
+ - name: Run prettier
+ shell: bash
+ run: |
+ npm ci
+ npm run checkFormat
+ - name: Svelte check
+ shell: bash
+ run: npm run check
+
+ build_and_deploy:
+ if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
+ runs-on: ubuntu-latest
+ name: Build and Deploy
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: Build And Deploy
+ uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_PRODUCTION_MATH_TOKEN }}
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ action: "upload"
+ app_location: ${{ env.APP_LOCATION }}
+ app_artifact_location: ${{ env.APP_ARTIFACT_LOCATION }}
+
+ close:
+ if: github.event_name == 'pull_request' && github.event.action == 'closed'
+ runs-on: ubuntu-latest
+ name: Close
+ steps:
+ - name: Close
+ uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
+ with:
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_PRODUCTION_MATH_TOKEN }}
+ action: "close"
diff --git a/README.md b/README.md
index 9aba0716b..1ff621a14 100644
--- a/README.md
+++ b/README.md
@@ -160,6 +160,7 @@ ML-Machine utilises several packages, most notable of which are the following:
- [TensorFlow.js](https://github.com/tensorflow/tfjs) provides machine learning capabilities.
- [Smoothie Charts](https://github.com/joewalnes/smoothie) and [chart.js](https://github.com/chartjs/Chart.js) provides
a visualisation kit.
+- [MakeCode-Embed](https://www.npmjs.com/package/@microbit/makecode-embed) for makecode integration. Additional docs: https://microbit-foundation.github.io/makecode-embed/interfaces/react.MakeCodeProject.html
## Contributions
diff --git a/features.json b/features.json
index 8f1a00592..b13fec212 100644
--- a/features.json
+++ b/features.json
@@ -10,5 +10,6 @@
"fingerprint": true,
"recordingDuration": 1800,
"printableRecordings": true,
- "dialogRecordings": true
+ "dialogRecordings": true,
+ "makecodeIntroductionVideo": true
}
diff --git a/microbit/v1/source/main.cpp b/microbit/v1/source/main.cpp
index 78b5f790c..661513f32 100755
--- a/microbit/v1/source/main.cpp
+++ b/microbit/v1/source/main.cpp
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/codebook.h b/microbit/v2/source/codebook.h
index a9beb1dda..da1a6e34c 100644
--- a/microbit/v2/source/codebook.h
+++ b/microbit/v2/source/codebook.h
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/helpers.cpp b/microbit/v2/source/helpers.cpp
index 61153772f..3ec2fd299 100644
--- a/microbit/v2/source/helpers.cpp
+++ b/microbit/v2/source/helpers.cpp
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/main.cpp b/microbit/v2/source/main.cpp
index 0290a45fd..1e2af8b07 100644
--- a/microbit/v2/source/main.cpp
+++ b/microbit/v2/source/main.cpp
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/smileys.h b/microbit/v2/source/smileys.h
index 0ca3bdb04..092d4cd74 100644
--- a/microbit/v2/source/smileys.h
+++ b/microbit/v2/source/smileys.h
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/sound.cpp b/microbit/v2/source/sound.cpp
index b661dce8d..3958d26bb 100644
--- a/microbit/v2/source/sound.cpp
+++ b/microbit/v2/source/sound.cpp
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/sounds.h b/microbit/v2/source/sounds.h
index 7e06398c4..8037d50f8 100644
--- a/microbit/v2/source/sounds.h
+++ b/microbit/v2/source/sounds.h
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/microbit/v2/source/utilities.h b/microbit/v2/source/utilities.h
index 4c7915c6f..18285786d 100644
--- a/microbit/v2/source/utilities.h
+++ b/microbit/v2/source/utilities.h
@@ -1,5 +1,5 @@
/**
- * (c) 2023-2025, Center for Computational Thinking and Design at Aarhus University and contributors
+ * (c) 2023-2026, Center for Computational Thinking and Design at Aarhus University and contributors
*
* SPDX-License-Identifier: MIT
*/
diff --git a/package-lock.json b/package-lock.json
index 8ae6f4850..e36efcd0c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,8 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
+ "@microbit/makecode-embed": "^0.4.0",
+ "@microbit/microbit-universal-hex": "^0.2.2",
"@microsoft/applicationinsights-web": "^3.1.2",
"@tensorflow-models/knn-classifier": "^1.2.6",
"@tensorflow/tfjs": "^4.18.0",
@@ -21,7 +23,8 @@
"d3-3d": "^1.0.0",
"dapjs": "^2.3.0",
"js-cookie": "^3.0.5",
- "microbyte": "0.13.5",
+ "microbyte": "0.16.0",
+ "nrf-intel-hex": "^1.4.0",
"postcss": "^8.4.38",
"smoothie": "^1.36.1",
"svelte-i18n": "^4.0.0",
@@ -109,15 +112,15 @@
"license": "ISC"
},
"node_modules/@babel/code-frame": {
- "version": "7.26.2",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",
- "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/helper-validator-identifier": "^7.25.9",
+ "@babel/helper-validator-identifier": "^7.27.1",
"js-tokens": "^4.0.0",
- "picocolors": "^1.0.0"
+ "picocolors": "^1.1.1"
},
"engines": {
"node": ">=6.9.0"
@@ -417,9 +420,9 @@
}
},
"node_modules/@babel/helper-string-parser": {
- "version": "7.25.9",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
- "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -427,9 +430,9 @@
}
},
"node_modules/@babel/helper-validator-identifier": {
- "version": "7.25.9",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
- "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -462,28 +465,28 @@
}
},
"node_modules/@babel/helpers": {
- "version": "7.26.0",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz",
- "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==",
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",
+ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "@babel/template": "^7.25.9",
- "@babel/types": "^7.26.0"
+ "@babel/template": "^7.27.2",
+ "@babel/types": "^7.28.4"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/parser": {
- "version": "7.26.2",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz",
- "integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==",
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",
+ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/types": "^7.26.0"
+ "@babel/types": "^7.28.5"
},
"bin": {
"parser": "bin/babel-parser.js"
@@ -1577,35 +1580,25 @@
}
},
"node_modules/@babel/runtime": {
- "version": "7.26.0",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz",
- "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==",
+ "version": "7.28.4",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz",
+ "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==",
"dev": true,
"license": "MIT",
- "dependencies": {
- "regenerator-runtime": "^0.14.0"
- },
"engines": {
"node": ">=6.9.0"
}
},
- "node_modules/@babel/runtime/node_modules/regenerator-runtime": {
- "version": "0.14.1",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
- "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/@babel/template": {
- "version": "7.25.9",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz",
- "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==",
+ "version": "7.27.2",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",
+ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/code-frame": "^7.25.9",
- "@babel/parser": "^7.25.9",
- "@babel/types": "^7.25.9"
+ "@babel/code-frame": "^7.27.1",
+ "@babel/parser": "^7.27.2",
+ "@babel/types": "^7.27.1"
},
"engines": {
"node": ">=6.9.0"
@@ -1631,14 +1624,14 @@
}
},
"node_modules/@babel/types": {
- "version": "7.26.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz",
- "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==",
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",
+ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/helper-string-parser": "^7.25.9",
- "@babel/helper-validator-identifier": "^7.25.9"
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.28.5"
},
"engines": {
"node": ">=6.9.0"
@@ -2355,6 +2348,37 @@
"integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==",
"license": "MIT"
},
+ "node_modules/@microbit/makecode-embed": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@microbit/makecode-embed/-/makecode-embed-0.4.0.tgz",
+ "integrity": "sha512-C2d1y/CHOUlnwERBpUiq8MEBrvLU5t2SzGwbTlPvlj6N53dX4bS0BQeP8IhCjxLSirpPi9Zc970QZ/FzmG3ofQ==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": ">=2.0.0"
+ },
+ "engines": {
+ "node": ">=20",
+ "npm": ">=10"
+ },
+ "peerDependencies": {
+ "react": ">=17.0.2",
+ "react-dom": ">=17.0.2"
+ }
+ },
+ "node_modules/@microbit/microbit-universal-hex": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/@microbit/microbit-universal-hex/-/microbit-universal-hex-0.2.2.tgz",
+ "integrity": "sha512-qyFt8ATgxAyPkNz9Yado4HXEeCctwP/8L1/v2hFLeVUqw/HFqVqV4piJbqRMmyOefMcQ9OyVPhLXjtbKn9063Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.5",
+ "npm": ">=6.0",
+ "yarn": "^1.0"
+ },
+ "peerDependencies": {
+ "tslib": ">=1.11.1"
+ }
+ },
"node_modules/@microsoft/applicationinsights-analytics-js": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-analytics-js/-/applicationinsights-analytics-js-3.3.4.tgz",
@@ -3642,9 +3666,9 @@
}
},
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3743,14 +3767,14 @@
"license": "ISC"
},
"node_modules/@vitest/expect": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.4.tgz",
- "integrity": "sha512-DOETT0Oh1avie/D/o2sgMHGrzYUFFo3zqESB2Hn70z6QB1HrS2IQ9z5DfyTqU8sg4Bpu13zZe9V4+UTNQlUeQA==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",
+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/spy": "2.1.4",
- "@vitest/utils": "2.1.4",
+ "@vitest/spy": "2.1.9",
+ "@vitest/utils": "2.1.9",
"chai": "^5.1.2",
"tinyrainbow": "^1.2.0"
},
@@ -3759,13 +3783,13 @@
}
},
"node_modules/@vitest/mocker": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.4.tgz",
- "integrity": "sha512-Ky/O1Lc0QBbutJdW0rqLeFNbuLEyS+mIPiNdlVlp2/yhJ0SbyYqObS5IHdhferJud8MbbwMnexg4jordE5cCoQ==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",
+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/spy": "2.1.4",
+ "@vitest/spy": "2.1.9",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.12"
},
@@ -3786,9 +3810,9 @@
}
},
"node_modules/@vitest/pretty-format": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.4.tgz",
- "integrity": "sha512-L95zIAkEuTDbUX1IsjRl+vyBSLh3PwLLgKpghl37aCK9Jvw0iP+wKwIFhfjdUtA2myLgjrG6VU6JCFLv8q/3Ww==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3799,13 +3823,13 @@
}
},
"node_modules/@vitest/runner": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.4.tgz",
- "integrity": "sha512-sKRautINI9XICAMl2bjxQM8VfCMTB0EbsBc/EDFA57V6UQevEKY/TOPOF5nzcvCALltiLfXWbq4MaAwWx/YxIA==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",
+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/utils": "2.1.4",
+ "@vitest/utils": "2.1.9",
"pathe": "^1.1.2"
},
"funding": {
@@ -3813,13 +3837,13 @@
}
},
"node_modules/@vitest/snapshot": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.4.tgz",
- "integrity": "sha512-3Kab14fn/5QZRog5BPj6Rs8dc4B+mim27XaKWFWHWA87R56AKjHTGcBFKpvZKDzC4u5Wd0w/qKsUIio3KzWW4Q==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",
+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/pretty-format": "2.1.4",
+ "@vitest/pretty-format": "2.1.9",
"magic-string": "^0.30.12",
"pathe": "^1.1.2"
},
@@ -3828,9 +3852,9 @@
}
},
"node_modules/@vitest/spy": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.4.tgz",
- "integrity": "sha512-4JOxa+UAizJgpZfaCPKK2smq9d8mmjZVPMt2kOsg/R8QkoRzydHH1qHxIYNvr1zlEaFj4SXiaaJWxq/LPLKaLg==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",
+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3841,13 +3865,13 @@
}
},
"node_modules/@vitest/utils": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.4.tgz",
- "integrity": "sha512-MXDnZn0Awl2S86PSNIim5PWXgIAx8CIkzu35mBdSApUip6RFOGXBCf3YFyeEu8n1IHk4bWD46DeYFu9mQlFIRg==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",
+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/pretty-format": "2.1.4",
+ "@vitest/pretty-format": "2.1.9",
"loupe": "^3.1.2",
"tinyrainbow": "^1.2.0"
},
@@ -4188,9 +4212,9 @@
"license": "MIT"
},
"node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -4290,6 +4314,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/callsites": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -4331,9 +4368,9 @@
"license": "CC-BY-4.0"
},
"node_modules/chai": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz",
- "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==",
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",
+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -4344,7 +4381,7 @@
"pathval": "^2.0.0"
},
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/chalk": {
@@ -5297,6 +5334,20 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/electron-to-chromium": {
"version": "1.5.56",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.56.tgz",
@@ -5333,14 +5384,10 @@
}
},
"node_modules/es-define-property": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
- "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
- "dev": true,
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"license": "MIT",
- "dependencies": {
- "get-intrinsic": "^1.2.4"
- },
"engines": {
"node": ">= 0.4"
}
@@ -5349,7 +5396,6 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -5376,6 +5422,40 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/es-module-lexer": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/es5-ext": {
"version": "0.10.64",
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz",
@@ -5962,13 +6042,15 @@
}
},
"node_modules/form-data": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
- "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
"mime-types": "^2.1.12"
},
"engines": {
@@ -6037,17 +6119,21 @@
}
},
"node_modules/get-intrinsic": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
- "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
- "dev": true,
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
"license": "MIT",
"dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
"es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
"function-bind": "^1.1.2",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3",
- "hasown": "^2.0.0"
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
},
"engines": {
"node": ">= 0.4"
@@ -6056,6 +6142,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/glamor": {
"version": "2.20.40",
"resolved": "https://registry.npmjs.org/glamor/-/glamor-2.20.40.tgz",
@@ -6127,13 +6226,12 @@
"license": "MIT"
},
"node_modules/gopd": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
- "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
- "dev": true,
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"license": "MIT",
- "dependencies": {
- "get-intrinsic": "^1.1.3"
+ "engines": {
+ "node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -6185,24 +6283,10 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/has-proto": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
- "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/has-symbols": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
- "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
- "dev": true,
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -6215,7 +6299,6 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"has-symbols": "^1.0.3"
@@ -6816,9 +6899,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -7050,9 +7133,9 @@
}
},
"node_modules/loupe": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz",
- "integrity": "sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==",
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",
+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",
"dev": true,
"license": "MIT"
},
@@ -7094,6 +7177,15 @@
"@jridgewell/sourcemap-codec": "^1.5.0"
}
},
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/mdn-data": {
"version": "2.0.30",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
@@ -7130,9 +7222,9 @@
}
},
"node_modules/microbyte": {
- "version": "0.13.5",
- "resolved": "https://registry.npmjs.org/microbyte/-/microbyte-0.13.5.tgz",
- "integrity": "sha512-ScFrp7BSwaQzW4CtpU7w6i6aDpAxoN/jhTQf+Kf9uUqDw+f5ouYjdi7Kqge64+ADZuE/ousqMt2Z9sjJuI3/nw==",
+ "version": "0.16.0",
+ "resolved": "https://registry.npmjs.org/microbyte/-/microbyte-0.16.0.tgz",
+ "integrity": "sha512-5TJTTwr+KG2o9CEqkMRqKJQX8edX2tYcwk2JhB0avS/+6bnZ4dlcE6eRWcDCHmX0x4e4ZYGPZpUWKx9ye2nz3Q==",
"license": "MIT",
"dependencies": {
"@types/w3c-web-usb": "^1.0.10",
@@ -7238,9 +7330,9 @@
"license": "MIT"
},
"node_modules/nanoid": {
- "version": "3.3.7",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
- "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
"funding": [
{
"type": "github",
@@ -7327,6 +7419,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/nrf-intel-hex": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/nrf-intel-hex/-/nrf-intel-hex-1.4.0.tgz",
+ "integrity": "sha512-q3+GGRIpe0VvCjUP1zaqW5rk6IpCZzhD0lu7Sguo1bgWwFcA9kZRjsaKUb0jBQMnefyOl5o0BBGAxvqMqYx8Sg==",
+ "license": "BSD",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
"node_modules/nwsapi": {
"version": "2.2.16",
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.16.tgz",
@@ -7540,9 +7641,9 @@
"license": "MIT"
},
"node_modules/pathval": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz",
- "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",
+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",
"dev": true,
"license": "MIT",
"engines": {
@@ -7837,6 +7938,29 @@
],
"license": "MIT"
},
+ "node_modules/react": {
+ "version": "19.2.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.1.tgz",
+ "integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.1.tgz",
+ "integrity": "sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.1"
+ }
+ },
"node_modules/react-is": {
"version": "17.0.2",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
@@ -8179,6 +8303,13 @@
"node": ">=v12.22.7"
}
},
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT",
+ "peer": true
+ },
"node_modules/seedrandom": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz",
@@ -9420,19 +9551,19 @@
"license": "ISC"
},
"node_modules/vega-functions/node_modules/vega-expression": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/vega-expression/-/vega-expression-5.2.0.tgz",
- "integrity": "sha512-WRMa4ny3iZIVAzDlBh3ipY2QUuLk2hnJJbfbncPgvTF7BUgbIbKq947z+JicWksYbokl8n1JHXJoqi3XvpG0Zw==",
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/vega-expression/-/vega-expression-5.2.1.tgz",
+ "integrity": "sha512-9KKbI2q9qTI55NSjD/dVWg3aeCtw+gwyWCiLMM47ha6iXrAN9pQ+EKRJfxOHuoDfCTlJJTaUfnnXgbqm0HEszg==",
"license": "BSD-3-Clause",
"dependencies": {
"@types/estree": "^1.0.0",
- "vega-util": "^1.17.3"
+ "vega-util": "^1.17.4"
}
},
"node_modules/vega-functions/node_modules/vega-util": {
- "version": "1.17.3",
- "resolved": "https://registry.npmjs.org/vega-util/-/vega-util-1.17.3.tgz",
- "integrity": "sha512-nSNpZLUrRvFo46M5OK4O6x6f08WD1yOcEzHNlqivF+sDLSsVpstaF6fdJYwrbf/debFi2L9Tkp4gZQtssup9iQ==",
+ "version": "1.17.4",
+ "resolved": "https://registry.npmjs.org/vega-util/-/vega-util-1.17.4.tgz",
+ "integrity": "sha512-+y3ZW7dEqM8Ck+KRsd+jkMfxfE7MrQxUyIpNjkfhIpGEreym+aTn7XUw1DKXqclr8mqTQvbilPo16B3lnBr0wA==",
"license": "BSD-3-Clause"
},
"node_modules/vega-geo": {
@@ -9966,19 +10097,19 @@
}
},
"node_modules/vega-selections/node_modules/vega-expression": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/vega-expression/-/vega-expression-5.2.0.tgz",
- "integrity": "sha512-WRMa4ny3iZIVAzDlBh3ipY2QUuLk2hnJJbfbncPgvTF7BUgbIbKq947z+JicWksYbokl8n1JHXJoqi3XvpG0Zw==",
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/vega-expression/-/vega-expression-5.2.1.tgz",
+ "integrity": "sha512-9KKbI2q9qTI55NSjD/dVWg3aeCtw+gwyWCiLMM47ha6iXrAN9pQ+EKRJfxOHuoDfCTlJJTaUfnnXgbqm0HEszg==",
"license": "BSD-3-Clause",
"dependencies": {
"@types/estree": "^1.0.0",
- "vega-util": "^1.17.3"
+ "vega-util": "^1.17.4"
}
},
"node_modules/vega-selections/node_modules/vega-util": {
- "version": "1.17.3",
- "resolved": "https://registry.npmjs.org/vega-util/-/vega-util-1.17.3.tgz",
- "integrity": "sha512-nSNpZLUrRvFo46M5OK4O6x6f08WD1yOcEzHNlqivF+sDLSsVpstaF6fdJYwrbf/debFi2L9Tkp4gZQtssup9iQ==",
+ "version": "1.17.4",
+ "resolved": "https://registry.npmjs.org/vega-util/-/vega-util-1.17.4.tgz",
+ "integrity": "sha512-+y3ZW7dEqM8Ck+KRsd+jkMfxfE7MrQxUyIpNjkfhIpGEreym+aTn7XUw1DKXqclr8mqTQvbilPo16B3lnBr0wA==",
"license": "BSD-3-Clause"
},
"node_modules/vega-statistics": {
@@ -10301,9 +10432,9 @@
"license": "BSD-3-Clause"
},
"node_modules/vite": {
- "version": "5.4.11",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz",
- "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==",
+ "version": "5.4.21",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -10361,14 +10492,15 @@
}
},
"node_modules/vite-node": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.4.tgz",
- "integrity": "sha512-kqa9v+oi4HwkG6g8ufRnb5AeplcRw8jUF6/7/Qz1qRQOXHImG8YnLbB+LLszENwFnoBl9xIf9nVdCFzNd7GQEg==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",
+ "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",
"dev": true,
"license": "MIT",
"dependencies": {
"cac": "^6.7.14",
"debug": "^4.3.7",
+ "es-module-lexer": "^1.5.4",
"pathe": "^1.1.2",
"vite": "^5.0.0"
},
@@ -10870,31 +11002,31 @@
}
},
"node_modules/vitest": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.4.tgz",
- "integrity": "sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==",
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",
+ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@vitest/expect": "2.1.4",
- "@vitest/mocker": "2.1.4",
- "@vitest/pretty-format": "^2.1.4",
- "@vitest/runner": "2.1.4",
- "@vitest/snapshot": "2.1.4",
- "@vitest/spy": "2.1.4",
- "@vitest/utils": "2.1.4",
+ "@vitest/expect": "2.1.9",
+ "@vitest/mocker": "2.1.9",
+ "@vitest/pretty-format": "^2.1.9",
+ "@vitest/runner": "2.1.9",
+ "@vitest/snapshot": "2.1.9",
+ "@vitest/spy": "2.1.9",
+ "@vitest/utils": "2.1.9",
"chai": "^5.1.2",
"debug": "^4.3.7",
"expect-type": "^1.1.0",
"magic-string": "^0.30.12",
"pathe": "^1.1.2",
- "std-env": "^3.7.0",
+ "std-env": "^3.8.0",
"tinybench": "^2.9.0",
"tinyexec": "^0.3.1",
"tinypool": "^1.0.1",
"tinyrainbow": "^1.2.0",
"vite": "^5.0.0",
- "vite-node": "2.1.4",
+ "vite-node": "2.1.9",
"why-is-node-running": "^2.3.0"
},
"bin": {
@@ -10909,8 +11041,8 @@
"peerDependencies": {
"@edge-runtime/vm": "*",
"@types/node": "^18.0.0 || >=20.0.0",
- "@vitest/browser": "2.1.4",
- "@vitest/ui": "2.1.4",
+ "@vitest/browser": "2.1.9",
+ "@vitest/ui": "2.1.9",
"happy-dom": "*",
"jsdom": "*"
},
diff --git a/package.json b/package.json
index 34e97e810..490169f5c 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,8 @@
"vitest": "^2.1.2"
},
"dependencies": {
+ "@microbit/makecode-embed": "^0.4.0",
+ "@microbit/microbit-universal-hex": "^0.2.2",
"@microsoft/applicationinsights-web": "^3.1.2",
"@tensorflow-models/knn-classifier": "^1.2.6",
"@tensorflow/tfjs": "^4.18.0",
@@ -59,7 +61,8 @@
"d3-3d": "^1.0.0",
"dapjs": "^2.3.0",
"js-cookie": "^3.0.5",
- "microbyte": "0.13.5",
+ "microbyte": "0.16.0",
+ "nrf-intel-hex": "^1.4.0",
"postcss": "^8.4.38",
"smoothie": "^1.36.1",
"svelte-i18n": "^4.0.0",
diff --git a/src/App.svelte b/src/App.svelte
index b7b4760d5..33ac75462 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -1,5 +1,5 @@
@@ -22,84 +22,12 @@
-
{reconnectText}
Live
+ class:text-red-500={$microbitConnection.getInput().isReady()} + class:text-gray-500={!$microbitConnection.getInput().isReady()}> •
{#if hasFeature(Feature.LIVE_GRAPH_INPUT_VALUES)} diff --git a/src/components/features/connection-prompt/ConnectDialogContainer.svelte b/src/components/features/connection-prompt/ConnectDialogContainer.svelte index 7f930ec0d..6f4bcacbe 100644 --- a/src/components/features/connection-prompt/ConnectDialogContainer.svelte +++ b/src/components/features/connection-prompt/ConnectDialogContainer.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/ConnectSameDialog.svelte b/src/components/features/connection-prompt/ConnectSameDialog.svelte index 8ebc4c7ca..9ee2d4257 100644 --- a/src/components/features/connection-prompt/ConnectSameDialog.svelte +++ b/src/components/features/connection-prompt/ConnectSameDialog.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/StartDialog.svelte b/src/components/features/connection-prompt/StartDialog.svelte index 22d30d238..504102158 100644 --- a/src/components/features/connection-prompt/StartDialog.svelte +++ b/src/components/features/connection-prompt/StartDialog.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/bluetooth/BluetoothConnectDialog.svelte b/src/components/features/connection-prompt/bluetooth/BluetoothConnectDialog.svelte index cf10fe99f..a451f2ab8 100644 --- a/src/components/features/connection-prompt/bluetooth/BluetoothConnectDialog.svelte +++ b/src/components/features/connection-prompt/bluetooth/BluetoothConnectDialog.svelte @@ -1,5 +1,5 @@ @@ -17,13 +17,15 @@ import type { Writable } from 'svelte/store'; import Microbits from '../../../../lib/microbit-interfacing/Microbits'; import StaticConfiguration from '../../../../StaticConfiguration'; - import Logger from '../../../../lib/utils/Logger'; import { MBSpecs } from 'microbyte'; import StandardButton from '../../../ui/buttons/StandardButton.svelte'; import { DeviceRequestStates } from '../../../../lib/domain/Devices'; import { stores } from '../../../../lib/stores/Stores'; + import ConsoleLogger from '../../../../core/logging/ConsoleLogger'; + import { getControllers } from '../../../../backend/interface-adapter/MLMachine'; - const devices = stores.getDevices(); + const microbitController = getControllers().getMicrobitController(); + const microbitConnection = microbitController.getMicrobitConnectionState(); export let deviceState: DeviceRequestStates; export let onBluetoothConnected: () => void; @@ -57,7 +59,7 @@ } isConnecting = true; const connectionResult = async () => { - Logger.log('BluetoothConnectDialog', 'Attempting to connect to micro:bit'); + ConsoleLogger.log('BluetoothConnectDialog', 'Attempting to connect to micro:bit'); if (deviceState == DeviceRequestStates.INPUT) { await Microbits.connectInput(name); } else { @@ -66,7 +68,7 @@ }; const connectTimeout = setTimeout(() => { - Logger.log('BluetoothConnectDialog', 'Connection timed-out'); + ConsoleLogger.log('BluetoothConnectDialog', 'Connection timed-out'); timeouted.set(true); }, StaticConfiguration.connectTimeoutDuration); @@ -76,7 +78,11 @@ timeouted.set(false); onBluetoothConnected(); } catch (error) { - Logger.log('BluetoothConnectDialog', 'Failed to connect to micro:bit', error); + ConsoleLogger.log( + 'BluetoothConnectDialog', + 'Failed to connect to micro:bit', + error, + ); } finally { isConnecting = false; } @@ -102,8 +108,7 @@ }); onMount(() => { - // Resets the bluetooth connection prompt for cancelled device requests - $devices.requestDeviceWasCancelled = false; + microbitController.setRequestWasCancelled(false); }); const handleSearchWithoutName = () => { @@ -116,7 +121,7 @@ {$t('popup.connectMB.bluetooth.heading')} - {#if $devices.requestDeviceWasCancelled && !isConnecting} + {#if $microbitConnection.wasDeviceRequestCancelled() && !isConnecting}{$t('popup.connectMB.bluetooth.cancelledConnection')}
{$t('popup.connectMB.bluetooth.cancelledConnection.noNameDescription')} diff --git a/src/components/features/connection-prompt/usb/BrokenFirmwareDetected.svelte b/src/components/features/connection-prompt/usb/BrokenFirmwareDetected.svelte index 1fbbaaefb..9e05b715d 100644 --- a/src/components/features/connection-prompt/usb/BrokenFirmwareDetected.svelte +++ b/src/components/features/connection-prompt/usb/BrokenFirmwareDetected.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/usb/DoneDownloadingDialog.svelte b/src/components/features/connection-prompt/usb/DoneDownloadingDialog.svelte index 26d62aa8c..9d8ce7d1e 100644 --- a/src/components/features/connection-prompt/usb/DoneDownloadingDialog.svelte +++ b/src/components/features/connection-prompt/usb/DoneDownloadingDialog.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/usb/DownloadingDialog.svelte b/src/components/features/connection-prompt/usb/DownloadingDialog.svelte index 373421ec6..865d2ec65 100644 --- a/src/components/features/connection-prompt/usb/DownloadingDialog.svelte +++ b/src/components/features/connection-prompt/usb/DownloadingDialog.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/features/connection-prompt/usb/FindUsbDialog.svelte b/src/components/features/connection-prompt/usb/FindUsbDialog.svelte index b4ce6b6a2..05d025a07 100644 --- a/src/components/features/connection-prompt/usb/FindUsbDialog.svelte +++ b/src/components/features/connection-prompt/usb/FindUsbDialog.svelte @@ -1,10 +1,12 @@ @@ -37,6 +41,9 @@
{$t('connectMB.usb.body1')}
+ {#if $outputTarget === OutputTarget.MAKECODE} +{$t('connectMB.usb.makecodeWarning')}
+ {/if} {/if} {#if step === 2}
diff --git a/src/components/features/connection-prompt/usb/manual/ManualInstallTutorial.svelte b/src/components/features/connection-prompt/usb/manual/ManualInstallTutorial.svelte
index 07ef5024e..fb5da4630 100644
--- a/src/components/features/connection-prompt/usb/manual/ManualInstallTutorial.svelte
+++ b/src/components/features/connection-prompt/usb/manual/ManualInstallTutorial.svelte
@@ -1,5 +1,5 @@
diff --git a/src/components/features/cookie-bannner/CookieBanner.svelte b/src/components/features/cookie-bannner/CookieBanner.svelte
index 918c71cb0..48319bc33 100644
--- a/src/components/features/cookie-bannner/CookieBanner.svelte
+++ b/src/components/features/cookie-bannner/CookieBanner.svelte
@@ -1,5 +1,5 @@
diff --git a/src/components/features/cookie-bannner/CookieDescriptionOverlay.svelte b/src/components/features/cookie-bannner/CookieDescriptionOverlay.svelte
index 222161793..6a141d9f5 100644
--- a/src/components/features/cookie-bannner/CookieDescriptionOverlay.svelte
+++ b/src/components/features/cookie-bannner/CookieDescriptionOverlay.svelte
@@ -1,5 +1,5 @@
diff --git a/src/components/features/datacollection/DataPageControlBar.svelte b/src/components/features/datacollection/DataPageControlBar.svelte
index 8a897786c..bda8509b5 100644
--- a/src/components/features/datacollection/DataPageControlBar.svelte
+++ b/src/components/features/datacollection/DataPageControlBar.svelte
@@ -1,5 +1,5 @@
diff --git a/src/components/features/datacollection/Gesture.svelte b/src/components/features/datacollection/Gesture.svelte
index e2505b50f..a952ba2e5 100644
--- a/src/components/features/datacollection/Gesture.svelte
+++ b/src/components/features/datacollection/Gesture.svelte
@@ -1,5 +1,5 @@
@@ -19,23 +19,30 @@
import ImageSkeleton from '../../ui/skeletonloading/ImageSkeleton.svelte';
import GestureCard from '../../ui/Card.svelte';
import StaticConfiguration from '../../../StaticConfiguration';
- import Gesture from '../../../lib/domain/stores/gesture/Gesture';
import { stores } from '../../../lib/stores/Stores';
- import type { RecordingData } from '../../../lib/domain/RecordingData';
+ import type { RecordingData } from '../../../core/entities/RecordingData';
import { startRecording } from '../../../lib/utils/Recording';
import GestureDot from '../../ui/GestureDot.svelte';
import StandardButton from '../../ui/buttons/StandardButton.svelte';
+ import IconButton from '../../ui/buttons/IconButton.svelte';
import { Feature, getFeature, hasFeature } from '../../../lib/FeatureToggles';
import { printRecordings } from '../../../lib/utils/printRecordings';
+ import type GestureState from '../../../lib/domain/stores/gesture/GestureState';
+ import { getControllers } from '../../../backend/interface-adapter/MLMachine';
export let onNoMicrobitSelect: () => void;
- export let gesture: Gesture;
- const devices = stores.getDevices();
+ export let gesture: GestureState;
+
+ const microbitController = getControllers().getMicrobitController();
+ const microbitConnection = microbitController.getMicrobitConnectionState();
+ const dataController = getControllers().getDataController();
+ const enableFingerprint = dataController.isFingerprintEnabled();
+
const gestures = stores.getGestures();
const defaultNewName = $t('content.data.classPlaceholderNewClass');
const recordingDuration = getFeature
{$t('content.data.addData')}
+ {$t('connectMB.usb.pleaseWait')} +
++ {transferProgressLabel} +
+Gesture: {$gesture.name}
-- {JSON.stringify(reduceData($gesture), null, 2)} -
-- > {message.toString()} -
- {/each} -Model store
-- {JSON.stringify($model, null, 2).substring( - 2, - JSON.stringify($model, null, 2).length - 1, - )} -
-Classifier store
-- {JSON.stringify($classifier, null, 2).substring( - 2, - JSON.stringify($classifier, null, 2).length - 1, - )} -
-Engine store
-- {JSON.stringify($engine, null, 2).substring( - 2, - JSON.stringify($engine, null, 2).length - 1, - )} -
-LiveData store
-- {JSON.stringify($liveDataStore, null, 2).substring( - 2, - JSON.stringify($liveDataStore, null, 2).length - 1, - )} -
-Gestures (without recordings/output)
- {#each $gestures as { ID }} -Synthesis interval ({$liveDataSynthesizer.intervalSpeed}), lower is faster
-Live data synthesizer
-Uses sine-waves to produce LiveData
-{JSON.stringify($liveDataSynthesizer, null, 2)}
-No of axes ({$liveDataSynthesizer.noOfAxes})
-Speed {index}
-{snackbarText}
snackbar.clearMessaage()} /> + on:click={() => controller.clearSnackbarMessage()} />+ class:text-2xl={$microbitConnection.getInput().isReady()} + class:text-md={!$microbitConnection.getInput().isReady()}> {predictionLabel}