@happyvertical/smrt-images 0.35.3 → 0.35.4

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1782345877332,
3
+ "timestamp": 1782365346750,
4
4
  "packageName": "@happyvertical/smrt-images",
5
- "packageVersion": "0.35.3",
5
+ "packageVersion": "0.35.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-images:Image": {
8
8
  "name": "image",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-06-25T00:04:37.657Z",
3
+ "generatedAt": "2026-06-25T05:29:13.139Z",
4
4
  "packageName": "@happyvertical/smrt-images",
5
- "packageVersion": "0.35.3",
5
+ "packageVersion": "0.35.4",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "81f0ee38c357e571bab6bea659a1ba68de7dcddafc8d631c863500966051c08f",
10
- "packageJson": "233965aac73c5f763c3f4d79b72d3eea418fe5cfe8b8f0fc9c5d6b3493af5407",
9
+ "manifest": "dbbd0883877e9736f6f9b6c3746160187bf78341f3e49babaa06bc1cbaecef1d",
10
+ "packageJson": "5ced2a8e7b4c020d066814c6b40282fe64f9c52b9bc7ad40a4b0c2018c704cf5",
11
11
  "agents": "b0cf63bd78f00cc1729ea7f1425291f8e23ab5591161cbbf0d08f4b16ace07fd"
12
12
  },
13
13
  "exports": [
@@ -101,8 +101,8 @@ async function loadImages(reset = false) {
101
101
 
102
102
  images = [...images, ...data.items];
103
103
  offset += data.items.length;
104
- } catch (e: any) {
105
- error = e.message || 'Failed to load images';
104
+ } catch (e) {
105
+ error = e instanceof Error ? e.message : 'Failed to load images';
106
106
  } finally {
107
107
  isLoading = false;
108
108
  }
@@ -103,8 +103,8 @@ async function handleResize() {
103
103
 
104
104
  successMessage = 'Image resized successfully (new derivative created).';
105
105
  if (onSave) onSave(data.image);
106
- } catch (e: any) {
107
- error = e.message || 'Failed to resize image';
106
+ } catch (e) {
107
+ error = e instanceof Error ? e.message : 'Failed to resize image';
108
108
  } finally {
109
109
  isProcessing = false;
110
110
  }
@@ -129,8 +129,8 @@ async function handleCrop() {
129
129
 
130
130
  successMessage = 'Image cropped successfully (new derivative created).';
131
131
  if (onSave) onSave(data.image);
132
- } catch (e: any) {
133
- error = e.message || 'Failed to crop image';
132
+ } catch (e) {
133
+ error = e instanceof Error ? e.message : 'Failed to crop image';
134
134
  } finally {
135
135
  isProcessing = false;
136
136
  }
@@ -150,8 +150,8 @@ async function handleConvert() {
150
150
 
151
151
  successMessage = `Image converted to ${format} successfully (new derivative created).`;
152
152
  if (onSave) onSave(data.image);
153
- } catch (e: any) {
154
- error = e.message || 'Failed to convert image';
153
+ } catch (e) {
154
+ error = e instanceof Error ? e.message : 'Failed to convert image';
155
155
  } finally {
156
156
  isProcessing = false;
157
157
  }
@@ -170,8 +170,8 @@ async function handleAIEdit() {
170
170
 
171
171
  successMessage = 'AI edit complete (new derivative created).';
172
172
  if (onSave) onSave(data.image);
173
- } catch (e: any) {
174
- error = e.message || 'Failed to apply AI edit';
173
+ } catch (e) {
174
+ error = e instanceof Error ? e.message : 'Failed to apply AI edit';
175
175
  } finally {
176
176
  isProcessing = false;
177
177
  }
@@ -145,8 +145,9 @@ async function startCamera() {
145
145
  videoElement.play().catch(() => {});
146
146
  isCameraActive = true;
147
147
  }
148
- } catch (err: any) {
149
- cameraError = `Could not access camera: ${err.message}`;
148
+ } catch (err) {
149
+ const message = err instanceof Error ? err.message : String(err);
150
+ cameraError = `Could not access camera: ${message}`;
150
151
  }
151
152
  }
152
153
 
@@ -261,8 +262,9 @@ async function handleGenerateVariation() {
261
262
  })();
262
263
  onSelect(data.image);
263
264
  selectedImage = null;
264
- } catch (e: any) {
265
- variationError = e.message || 'Failed to generate variation';
265
+ } catch (e) {
266
+ variationError =
267
+ e instanceof Error ? e.message : 'Failed to generate variation';
266
268
  } finally {
267
269
  isGenerating = false;
268
270
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUploader.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ImageUploader.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAGzB,KAAK,gBAAgB,GAAI;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,mDAAmD;IACnD,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,EAAE,CAAC;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+ZF,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ImageUploader.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ImageUploader.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAGzB,KAAK,gBAAgB,GAAI;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,mDAAmD;IACnD,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,EAAE,CAAC;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAiaF,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-images",
3
- "version": "0.35.3",
3
+ "version": "0.35.4",
4
4
  "description": "Image asset management with AI-powered categorization, search, editing, and metadata extraction for SMRT framework",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -39,12 +39,12 @@
39
39
  "@happyvertical/utils": "^0.74.7",
40
40
  "jimp": "^1.6.1",
41
41
  "sharp": "^0.34.5",
42
- "@happyvertical/smrt-assets": "0.35.3",
43
- "@happyvertical/smrt-prompts": "0.35.3",
44
- "@happyvertical/smrt-core": "0.35.3",
45
- "@happyvertical/smrt-tenancy": "0.35.3",
46
- "@happyvertical/smrt-types": "0.35.3",
47
- "@happyvertical/smrt-ui": "0.35.3"
42
+ "@happyvertical/smrt-assets": "0.35.4",
43
+ "@happyvertical/smrt-core": "0.35.4",
44
+ "@happyvertical/smrt-prompts": "0.35.4",
45
+ "@happyvertical/smrt-tenancy": "0.35.4",
46
+ "@happyvertical/smrt-types": "0.35.4",
47
+ "@happyvertical/smrt-ui": "0.35.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "svelte": "^5.18.0"
@@ -60,8 +60,8 @@
60
60
  "typescript": "^5.9.3",
61
61
  "vite": "^7.3.1",
62
62
  "vitest": "^4.0.17",
63
- "@happyvertical/smrt-playground": "0.35.3",
64
- "@happyvertical/smrt-vitest": "0.35.3"
63
+ "@happyvertical/smrt-playground": "0.35.4",
64
+ "@happyvertical/smrt-vitest": "0.35.4"
65
65
  },
66
66
  "keywords": [
67
67
  "ai",