@axium/ai 0.1.1 → 0.1.2

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.
@@ -225,7 +225,8 @@ export function track({ model: name, event, data }) {
225
225
  switch (event) {
226
226
  case 'download_progress': {
227
227
  const progress = { done: 0, total: 0 };
228
- for (const file of Object.values(data)) {
228
+ const files = data?.progress ?? {};
229
+ for (const file of Object.values(files)) {
229
230
  progress.done += file.done;
230
231
  progress.total += file.total;
231
232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/ai",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "description": "Local-first AI assistant for Axium",
6
6
  "funding": {